@foundrykit/utils 1.0.4 → 1.0.6

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @foundrykit/utils
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Just a quick demo for Anvar
8
+
9
+ ## 1.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updating components and primitives as well as improving the registry demo
14
+
3
15
  ## 1.0.4
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foundrykit/utils",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "eslint": "^9.0.0",
25
25
  "tsup": "^8.0.0",
26
26
  "typescript": "^5.9.2",
27
- "@foundrykit/eslint-config": "1.0.4",
28
- "@foundrykit/typescript-config": "1.0.4"
27
+ "@foundrykit/eslint-config": "1.0.5",
28
+ "@foundrykit/typescript-config": "1.0.5"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup",
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'],