@helloimjolopez-pathway/pathway-tokens 5.3.0 → 6.0.0
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/README.md +12 -5
- package/components/scrollbar/scrollbar.jsx +184 -0
- package/components/sidenav/sidenav.jsx +795 -0
- package/dist/breakpoints.css +11 -0
- package/dist/layout-contextual.css +52 -0
- package/dist/layout.css +51 -0
- package/dist/motion.css +23 -0
- package/dist/primitives.css +356 -0
- package/dist/themes/light.css +332 -0
- package/dist/themes/midnight.css +332 -0
- package/dist/tokens.js +14378 -69460
- package/dist/tokens.json +4765 -10337
- package/dist/type.css +49 -0
- package/package.json +43 -7
- package/dist/tokens.css +0 -2646
package/dist/type.css
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* semantic-type — one name per token, breakpoint resolved by media query.
|
|
3
|
+
* Generated by style-dictionary.config.js. Do not edit.
|
|
4
|
+
*
|
|
5
|
+
* :root is the desktop value. Narrower breakpoints override only what differs.
|
|
6
|
+
*/
|
|
7
|
+
:root {
|
|
8
|
+
--semantic-type-family-brand: Red Hat Text;
|
|
9
|
+
--semantic-type-font-size-4xl: 40px;
|
|
10
|
+
--semantic-type-font-size-5xl: 48px;
|
|
11
|
+
--semantic-type-font-size-6xl: 56px;
|
|
12
|
+
--semantic-type-font-size-l: 20px;
|
|
13
|
+
--semantic-type-font-size-m: 18px;
|
|
14
|
+
--semantic-type-font-size-r: 16px;
|
|
15
|
+
--semantic-type-font-size-s: 14px;
|
|
16
|
+
--semantic-type-font-size-xl: 24px;
|
|
17
|
+
--semantic-type-font-size-xs: 12px;
|
|
18
|
+
--semantic-type-font-size-xxl: 32px;
|
|
19
|
+
--semantic-type-font-size-xxs: 11px;
|
|
20
|
+
--semantic-type-font-size-xxxl: 36px;
|
|
21
|
+
--semantic-type-font-size-xxxs: 10px;
|
|
22
|
+
--semantic-type-letter-spacing-compact: 0px;
|
|
23
|
+
--semantic-type-letter-spacing-extraspacious: 0.6px;
|
|
24
|
+
--semantic-type-letter-spacing-spacious: 0.3px;
|
|
25
|
+
--semantic-type-letter-spacing-wide: 0.1px;
|
|
26
|
+
--semantic-type-line-height-4xl-single: 48px;
|
|
27
|
+
--semantic-type-line-height-5xl-single: 58px;
|
|
28
|
+
--semantic-type-line-height-6xl-single: 68px;
|
|
29
|
+
--semantic-type-line-height-l-single: 28px;
|
|
30
|
+
--semantic-type-line-height-m-relaxed: 30px;
|
|
31
|
+
--semantic-type-line-height-m-single: 24px;
|
|
32
|
+
--semantic-type-line-height-r-single: 22px;
|
|
33
|
+
--semantic-type-line-height-s-single: 20px;
|
|
34
|
+
--semantic-type-line-height-s-tight: 18px;
|
|
35
|
+
--semantic-type-line-height-xl-single: 30px;
|
|
36
|
+
--semantic-type-line-height-xs-single: 18px;
|
|
37
|
+
--semantic-type-line-height-xs-tight: 16px;
|
|
38
|
+
--semantic-type-line-height-xxl-single: 40px;
|
|
39
|
+
--semantic-type-line-height-xxs-single: 16px;
|
|
40
|
+
--semantic-type-line-height-xxs-tight: 14px;
|
|
41
|
+
--semantic-type-line-height-xxxl-single: 44px;
|
|
42
|
+
--semantic-type-line-height-xxxs-single: 14px;
|
|
43
|
+
--semantic-type-line-height-xxxs-tight: 12px;
|
|
44
|
+
--semantic-type-weight-bold: 700;
|
|
45
|
+
--semantic-type-weight-light: 300;
|
|
46
|
+
--semantic-type-weight-medium: 500;
|
|
47
|
+
--semantic-type-weight-regular: 400;
|
|
48
|
+
--semantic-type-weight-semibold: 600;
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helloimjolopez-pathway/pathway-tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Pathway Design System tokens — CSS custom properties, JS export, and DTCG JSON",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -8,14 +8,36 @@
|
|
|
8
8
|
"node": ">=20"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"components/sidenav/sidenav.jsx",
|
|
13
|
+
"components/scrollbar/scrollbar.jsx"
|
|
12
14
|
],
|
|
13
15
|
"main": "./dist/tokens.js",
|
|
14
|
-
"style": "./dist/
|
|
16
|
+
"style": "./dist/themes/light.css",
|
|
15
17
|
"exports": {
|
|
16
18
|
".": "./dist/tokens.js",
|
|
17
|
-
"./
|
|
18
|
-
"./
|
|
19
|
+
"./json": "./dist/tokens.json",
|
|
20
|
+
"./primitives.css": "./dist/primitives.css",
|
|
21
|
+
"./themes/light.css": "./dist/themes/light.css",
|
|
22
|
+
"./themes/midnight.css": "./dist/themes/midnight.css",
|
|
23
|
+
"./sidenav": "./components/sidenav/sidenav.jsx",
|
|
24
|
+
"./layout.css": "./dist/layout.css",
|
|
25
|
+
"./layout-contextual.css": "./dist/layout-contextual.css",
|
|
26
|
+
"./motion.css": "./dist/motion.css",
|
|
27
|
+
"./breakpoints.css": "./dist/breakpoints.css",
|
|
28
|
+
"./type.css": "./dist/type.css"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": ">=18",
|
|
32
|
+
"react-dom": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"peerDependenciesMeta": {
|
|
35
|
+
"react": {
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
"react-dom": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
19
41
|
},
|
|
20
42
|
"publishConfig": {
|
|
21
43
|
"access": "public",
|
|
@@ -30,20 +52,34 @@
|
|
|
30
52
|
"fix-tokens": "node scripts/fix-tokens.js",
|
|
31
53
|
"fix-tokens-preview": "node scripts/fix-tokens.js --dry-run",
|
|
32
54
|
"build-tokens": "node scripts/sync-motion-tokens.js && node style-dictionary.config.js",
|
|
33
|
-
"build-dist": "node scripts/sync-motion-tokens.js && node style-dictionary.config.js && node scripts/build-dist.js",
|
|
55
|
+
"build-dist": "node scripts/sync-motion-tokens.js && node style-dictionary.config.js && node scripts/check-demo-tokens.js && node scripts/check-token-refs.js && node scripts/check-token-names.js && node scripts/build-dist.js && npm run build-elements",
|
|
34
56
|
"storybook": "node style-dictionary.config.js && storybook dev -p 6006",
|
|
35
|
-
"build-storybook": "storybook build"
|
|
57
|
+
"build-storybook": "storybook build",
|
|
58
|
+
"check-demo-tokens": "node scripts/check-demo-tokens.js",
|
|
59
|
+
"assemble-export": "node scripts/assemble-figma-export.js",
|
|
60
|
+
"sync-from-figma": "node scripts/assemble-figma-export.js .figma-dump && node scripts/sync-tokens.js && npm run build-dist",
|
|
61
|
+
"figma:parse": "figma connect parse",
|
|
62
|
+
"figma:publish": "figma connect publish",
|
|
63
|
+
"figma:unpublish": "figma connect unpublish",
|
|
64
|
+
"check-secrets": "node scripts/check-secrets.js",
|
|
65
|
+
"check-token-refs": "node scripts/check-token-refs.js",
|
|
66
|
+
"check-token-names": "node scripts/check-token-names.js",
|
|
67
|
+
"check-tokens": "node scripts/check-demo-tokens.js && node scripts/check-token-refs.js && node scripts/check-token-names.js",
|
|
68
|
+
"build-elements": "esbuild components/sidenav/pathway-sidenav.js --bundle --format=esm --minify --loader:.jsx=jsx --jsx=automatic --define:process.env.NODE_ENV='\"production\"' --outfile=dist/pathway-sidenav.js"
|
|
36
69
|
},
|
|
37
70
|
"devDependencies": {
|
|
38
71
|
"@babel/preset-env": "^7.29.2",
|
|
39
72
|
"@babel/preset-react": "^7.28.5",
|
|
73
|
+
"@figma/code-connect": "^2.0.0",
|
|
40
74
|
"@storybook/addon-a11y": "^8.6.18",
|
|
41
75
|
"@storybook/addon-docs": "^8.6.18",
|
|
42
76
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
43
77
|
"@storybook/blocks": "^8.6.18",
|
|
44
78
|
"@storybook/react-webpack5": "^8.6.18",
|
|
79
|
+
"esbuild": "^0.25.12",
|
|
45
80
|
"react": "^18.3.1",
|
|
46
81
|
"react-dom": "^18.3.1",
|
|
82
|
+
"remark-gfm": "^4.0.1",
|
|
47
83
|
"storybook": "^8.6.18",
|
|
48
84
|
"style-dictionary": "^5.4.0"
|
|
49
85
|
}
|