@warp-ds/css 1.1.1 → 2.0.0-v2.1
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/component-classes/classes.js +10 -6
- package/component-classes/index.js +1 -1
- package/package.json +10 -10
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as components from './index.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const getClasses = () =>
|
|
4
|
+
Object.values(components)
|
|
5
|
+
.map((e) => {
|
|
6
|
+
if (typeof e === 'object')
|
|
7
|
+
return Object.values(e).map((e) => e.split(/\s/));
|
|
8
|
+
return e.split(/\s/);
|
|
9
|
+
})
|
|
10
|
+
.flat(Infinity);
|
|
11
|
+
|
|
12
|
+
export const classes = [...new Set(getClasses())];
|
|
@@ -361,7 +361,7 @@ export const button = {
|
|
|
361
361
|
|
|
362
362
|
link: `${buttonSizes.link} ${buttonTextSizes.medium} ${buttonTypes.link}`,
|
|
363
363
|
linkSmall: `${buttonSizes.link} ${buttonTextSizes.xsmall} ${buttonTypes.link}`,
|
|
364
|
-
linkAsButton: 'inline-block hover:no-underline',
|
|
364
|
+
linkAsButton: 'inline-block hover:no-underline text-center',
|
|
365
365
|
a11y: 'sr-only',
|
|
366
366
|
fullWidth: "w-full max-w-full",
|
|
367
367
|
contentWidth: "max-w-max",
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/css",
|
|
3
3
|
"repository": "git@github.com:warp-ds/css.git",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-v2.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "pnpm build:tokens && pnpm build:resets && pnpm build:cc",
|
|
7
7
|
"commit": "cz",
|
|
8
8
|
"semantic-release": "semantic-release",
|
|
9
|
-
"build:cc": "cd component-classes && rm -rf *.d.ts && tsc && vite build",
|
|
9
|
+
"build:cc": "cd component-classes && rm -rf *.d.ts && tsc && vite build && node ./scripts/updateClassesToPurge.js",
|
|
10
10
|
"build:tokens": "cd tokens && node index.js",
|
|
11
11
|
"build:resets": "cd resets && node index.js",
|
|
12
12
|
"lint:fix": "eslint . --fix",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
"./component-classes": "./component-classes/index.js",
|
|
18
|
-
"./
|
|
18
|
+
"./warp": "./dist/warp.css",
|
|
19
19
|
"./component-classes/classes": "./component-classes/classes.js",
|
|
20
20
|
"./component-classes/shortcuts": "./component-classes/shortcuts.js"
|
|
21
21
|
},
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"./component-classes/index.d.ts"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@warp-ds/fonts": "1.1.0",
|
|
43
42
|
"@warp-ds/tokenizer": "^0.0.2",
|
|
44
43
|
"@warp-ds/uno": "^1.1.0"
|
|
45
44
|
},
|
|
@@ -48,17 +47,18 @@
|
|
|
48
47
|
"@semantic-release/changelog": "^6.0.2",
|
|
49
48
|
"@semantic-release/exec": "^6.0.3",
|
|
50
49
|
"@semantic-release/git": "^10.0.1",
|
|
51
|
-
"
|
|
50
|
+
"@sindresorhus/slugify": "^2.2.0",
|
|
52
51
|
"@warp-ds/eslint-config": "^0.0.1",
|
|
52
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
53
|
+
"drnm": "^0.9.0",
|
|
53
54
|
"eslint": "^8.43.0",
|
|
55
|
+
"husky": "^8.0.3",
|
|
56
|
+
"lightningcss": "^1.19.0",
|
|
54
57
|
"semantic-release": "^20.1.3",
|
|
55
58
|
"typescript": "^5.0.0",
|
|
56
|
-
"unocss": "^0.
|
|
59
|
+
"unocss": "^0.56.0",
|
|
57
60
|
"vite": "^4.3.9",
|
|
58
|
-
"vite-plugin-dts": "^3.0.0"
|
|
59
|
-
"@sindresorhus/slugify": "^2.2.0",
|
|
60
|
-
"drnm": "^0.9.0",
|
|
61
|
-
"lightningcss": "^1.19.0"
|
|
61
|
+
"vite-plugin-dts": "^3.0.0"
|
|
62
62
|
},
|
|
63
63
|
"eslintConfig": {
|
|
64
64
|
"extends": "@warp-ds"
|