mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-28 15:14:12 +00:00
* fix(cli): deduplicate classNames in applyColorMapping * refactor: simplify applyColorMapping return * chore: add changeset --------- Co-authored-by: shadcn <m@shadcn.com>
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`transform css vars 1`] = `
|
|
"import * as React from \\"react\\"
|
|
export function Foo() {
|
|
return <div className=\\"bg-background hover:bg-muted text-primary-foreground sm:focus:text-accent-foreground\\">foo</div>
|
|
}\\"
|
|
"
|
|
`;
|
|
|
|
exports[`transform css vars 2`] = `
|
|
"import * as React from \\"react\\"
|
|
export function Foo() {
|
|
return <div className=\\"bg-white hover:bg-stone-100 text-stone-50 sm:focus:text-stone-900 dark:bg-stone-950 dark:hover:bg-stone-800 dark:text-stone-900 dark:sm:focus:text-stone-50\\">foo</div>
|
|
}\\"\\"
|
|
"
|
|
`;
|
|
|
|
exports[`transform css vars 3`] = `
|
|
"import * as React from \\"react\\"
|
|
export function Foo() {
|
|
return <div className={cn(\\"bg-white hover:bg-stone-100 dark:bg-stone-950 dark:hover:bg-stone-800\\", true && \\"text-stone-50 sm:focus:text-stone-900 dark:text-stone-900 dark:sm:focus:text-stone-50\\")}>foo</div>
|
|
}\\"\\"
|
|
"
|
|
`;
|
|
|
|
exports[`transform css vars 4`] = `
|
|
"import * as React from \\"react\\"
|
|
export function Foo() {
|
|
return <div className={cn(\\"bg-white border border-stone-200 dark:bg-stone-950 dark:border-stone-800\\")}>foo</div>
|
|
}\\"\\"
|
|
"
|
|
`;
|