@foundrykit/utils 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/config.ts +1 -20
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -9,26 +9,7 @@ export const utilsConfig: ComponentConfig = {
|
|
|
9
9
|
type: 'static',
|
|
10
10
|
html: '<div class="flex h-12 w-full items-center justify-center rounded-md bg-gray-200"><code class="text-xs">cn(...classes)</code></div>',
|
|
11
11
|
},
|
|
12
|
-
variants: [
|
|
13
|
-
{
|
|
14
|
-
name: 'Basic Usage',
|
|
15
|
-
description: 'Merge class names with cn function',
|
|
16
|
-
code: "cn('px-4 py-2', 'bg-blue-500', { 'opacity-50': disabled })",
|
|
17
|
-
preview: {
|
|
18
|
-
type: 'static',
|
|
19
|
-
html: '<code>cn("px-4 py-2", "bg-blue-500")</code>',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'With Tailwind Merge',
|
|
24
|
-
description: 'Automatically resolves conflicting Tailwind classes',
|
|
25
|
-
code: "cn('px-2', 'px-4') // Returns: 'px-4'",
|
|
26
|
-
preview: {
|
|
27
|
-
type: 'static',
|
|
28
|
-
html: '<code>cn("px-2", "px-4") → "px-4"</code>',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
],
|
|
12
|
+
variants: [],
|
|
32
13
|
dependencies: [],
|
|
33
14
|
packageDependencies: ['clsx', 'tailwind-merge'],
|
|
34
15
|
files: ['lib/utils.ts'],
|