@abumble/design-system 0.0.15 → 0.0.17

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":["import type { ClassValue } from 'clsx';\nimport { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: Array<ClassValue>) {\n\treturn twMerge(clsx(inputs))\n}\n\n/**\n * Returns a random integer between 0 and max, inclusive.\n * @param {number} max - The maximum possible number (inclusive).\n */\nexport function getRandomIntUpTo(max: number) {\n\t// We use (max + 1) to make 'max' inclusive after Math.floor()\n\treturn Math.floor(Math.random() * (max + 1));\n}\n\nexport function stringToBoolean(str: string | null): boolean {\n\tif (!str) return false;\n\treturn [\"true\", \"1\", \"yes\"].includes(str.trim().toLowerCase());\n}\n\nexport function booleanToString(bool: boolean | null): string {\n\tif (!bool) return false.toString();\n\treturn bool.toString();\n}\n\n"],"names":["cn","inputs","twMerge","clsx","getRandomIntUpTo","max","stringToBoolean","str","booleanToString","bool"],"mappings":";;AAIO,SAASA,KAAMC,GAA2B;AAChD,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC5B;AAMO,SAASG,EAAiBC,GAAa;AAE7C,SAAO,KAAK,MAAM,KAAK,OAAA,KAAYA,IAAM,EAAE;AAC5C;AAEO,SAASC,EAAgBC,GAA6B;AAC5D,SAAKA,IACE,CAAC,QAAQ,KAAK,KAAK,EAAE,SAASA,EAAI,OAAO,aAAa,IAD5C;AAElB;AAEO,SAASC,EAAgBC,GAA8B;AAC7D,SAAKA,IACEA,EAAK,SAAA,IADM;AAEnB;"}
1
+ {"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":["import type { ClassValue } from 'clsx';\nimport { clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: Array<ClassValue>) {\n\treturn twMerge(clsx(inputs))\n}\n\n/**\n * Returns a random integer between 0 and max, inclusive.\n * @param {number} max - The maximum possible number (inclusive).\n */\nexport function getRandomIntUpTo(max: number) {\n\t// We use (max + 1) to make 'max' inclusive after Math.floor()\n\treturn Math.floor(Math.random() * (max + 1));\n}\n\nexport function stringToBoolean(str: string | null | undefined): boolean {\n\tif (!str) return false;\n\treturn [\"true\", \"1\", \"yes\"].includes(str.trim().toLowerCase());\n}\n\nexport function booleanToString(bool: boolean | null | undefined): string {\n\tif (!bool) return false.toString();\n\treturn bool.toString();\n}\n\n"],"names":["cn","inputs","twMerge","clsx","getRandomIntUpTo","max","stringToBoolean","str","booleanToString","bool"],"mappings":";;AAIO,SAASA,KAAMC,GAA2B;AAChD,SAAOC,EAAQC,EAAKF,CAAM,CAAC;AAC5B;AAMO,SAASG,EAAiBC,GAAa;AAE7C,SAAO,KAAK,MAAM,KAAK,OAAA,KAAYA,IAAM,EAAE;AAC5C;AAEO,SAASC,EAAgBC,GAAyC;AACxE,SAAKA,IACE,CAAC,QAAQ,KAAK,KAAK,EAAE,SAASA,EAAI,OAAO,aAAa,IAD5C;AAElB;AAEO,SAASC,EAAgBC,GAA0C;AACzE,SAAKA,IACEA,EAAK,SAAA,IADM;AAEnB;"}
@@ -5,6 +5,6 @@ export declare function cn(...inputs: Array<ClassValue>): string;
5
5
  * @param {number} max - The maximum possible number (inclusive).
6
6
  */
7
7
  export declare function getRandomIntUpTo(max: number): number;
8
- export declare function stringToBoolean(str: string | null): boolean;
9
- export declare function booleanToString(bool: boolean | null): string;
8
+ export declare function stringToBoolean(str: string | null | undefined): boolean;
9
+ export declare function booleanToString(bool: boolean | null | undefined): string;
10
10
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,UAE9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,UAG3C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAG3D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,MAAM,CAG5D"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,UAE9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,UAG3C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAGvE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAGxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abumble/design-system",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "files": [
5
5
  "dist",
6
6
  "src/styles.css"
@@ -105,9 +105,12 @@
105
105
  "./styles.css": "./src/styles.css"
106
106
  },
107
107
  "scripts": {
108
+ "version": "npm run build",
109
+ "postversion": "git push",
108
110
  "build:js": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly",
109
111
  "build": "npm run clean && npm run build:js",
110
- "clean": "rm -rf dist",
112
+ "clean": "rimraf dist",
113
+ "prepublishOnly": "npm run build",
111
114
  "publish:npm": "npm publish --access public",
112
115
  "dev": "vite",
113
116
  "storybook": "storybook dev -p 6006",
@@ -119,6 +122,13 @@
119
122
  "devDependencies": {
120
123
  "@chromatic-com/storybook": "^4.1.2",
121
124
  "@eslint/js": "^9.39.1",
125
+ "@radix-ui/react-collapsible": "^1.1.12",
126
+ "@radix-ui/react-context-menu": "^2.2.16",
127
+ "@radix-ui/react-dialog": "^1.1.15",
128
+ "@radix-ui/react-popover": "^1.1.15",
129
+ "@radix-ui/react-separator": "^1.1.7",
130
+ "@radix-ui/react-slot": "^1.2.3",
131
+ "@radix-ui/react-tooltip": "^1.2.8",
122
132
  "@storybook/addon-a11y": "^10.0.7",
123
133
  "@storybook/addon-docs": "^10.0.7",
124
134
  "@storybook/addon-onboarding": "^10.0.7",
@@ -132,54 +142,48 @@
132
142
  "@vitest/browser-playwright": "^4.0.9",
133
143
  "@vitest/coverage-v8": "^4.0.9",
134
144
  "autoprefixer": "^10.4.22",
145
+ "class-variance-authority": "^0.7.1",
146
+ "clsx": "^2.1.1",
147
+ "embla-carousel": "^8.6.0",
148
+ "embla-carousel-react": "^8.6.0",
135
149
  "eslint": "^9.39.1",
136
150
  "eslint-plugin-react-hooks": "^7.0.1",
137
151
  "eslint-plugin-react-refresh": "^0.4.24",
138
152
  "eslint-plugin-storybook": "^10.0.7",
139
153
  "globals": "^16.5.0",
154
+ "lucide-react": "^0.544.0",
140
155
  "playwright": "^1.56.1",
141
156
  "postcss": "^8.5.6",
142
157
  "prettier": "^3.6.2",
158
+ "react": "^19.2.0",
159
+ "react-dom": "^19.2.0",
160
+ "rimraf": "^6.1.2",
143
161
  "storybook": "^10.0.7",
162
+ "tailwind-merge": "^3.0.2",
163
+ "tailwindcss": "^4.1.17",
144
164
  "typescript": "~5.9.3",
145
165
  "typescript-eslint": "^8.46.3",
146
166
  "vite": "^7.2.2",
147
167
  "vite-tsconfig-paths": "^5.1.4",
148
- "vitest": "^4.0.9",
149
- "lucide-react": "^0.544.0",
150
- "react": "^19.2.0",
151
- "react-dom": "^19.2.0",
152
- "tailwindcss": "^4.1.17",
153
- "clsx": "^2.1.1",
154
- "tailwind-merge": "^3.0.2",
155
- "class-variance-authority": "^0.7.1",
156
- "embla-carousel": "^8.6.0",
157
- "embla-carousel-react": "^8.6.0",
168
+ "vitest": "^4.0.9"
169
+ },
170
+ "peerDependencies": {
158
171
  "@radix-ui/react-collapsible": "^1.1.12",
159
172
  "@radix-ui/react-context-menu": "^2.2.16",
160
173
  "@radix-ui/react-dialog": "^1.1.15",
161
174
  "@radix-ui/react-popover": "^1.1.15",
162
175
  "@radix-ui/react-separator": "^1.1.7",
163
176
  "@radix-ui/react-slot": "^1.2.3",
164
- "@radix-ui/react-tooltip": "^1.2.8"
165
- },
166
- "peerDependencies": {
177
+ "@radix-ui/react-tooltip": "^1.2.8",
178
+ "class-variance-authority": "^0.7.1",
179
+ "clsx": "^2.1.1",
180
+ "embla-carousel": "^8.6.0",
181
+ "embla-carousel-react": "^8.6.0",
167
182
  "lucide-react": ">=0.544.0",
168
183
  "react": ">=19.0.0",
169
184
  "react-dom": ">=19.0.0",
170
- "tailwindcss": ">=4.0.0",
171
- "clsx": "^2.1.1",
172
185
  "tailwind-merge": "^3.0.2",
173
- "class-variance-authority": "^0.7.1",
174
- "embla-carousel": "^8.6.0",
175
- "embla-carousel-react": "^8.6.0",
176
- "@radix-ui/react-collapsible": "^1.1.12",
177
- "@radix-ui/react-context-menu": "^2.2.16",
178
- "@radix-ui/react-dialog": "^1.1.15",
179
- "@radix-ui/react-popover": "^1.1.15",
180
- "@radix-ui/react-separator": "^1.1.7",
181
- "@radix-ui/react-slot": "^1.2.3",
182
- "@radix-ui/react-tooltip": "^1.2.8"
186
+ "tailwindcss": ">=4.0.0"
183
187
  },
184
188
  "license": "MIT"
185
189
  }