@accelint/design-toolkit 2.4.0 → 2.4.2
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/dist/components/checkbox/styles.js +1 -1
- package/dist/components/checkbox/styles.js.map +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/styles.d.ts +12 -0
- package/dist/components/input/styles.js +1 -1
- package/dist/components/input/styles.js.map +1 -1
- package/dist/index.css +13 -87
- package/dist/metafile-esm.json +1 -1
- package/dist/styles.css +416 -396
- package/dist/tokens/themes.css +60 -60
- package/dist/variants/variants.css +58 -0
- package/dist/variants/variants.d.ts +2 -0
- package/package.json +5 -4
package/dist/tokens/themes.css
CHANGED
@@ -70,74 +70,74 @@
|
|
70
70
|
|
71
71
|
@theme {
|
72
72
|
/** Typography **/
|
73
|
-
--typography-header-xxl-size: var(--typography-header-xxl-size);
|
74
|
-
--typography-header-xxl-height: var(--typography-header-xxl-height);
|
75
|
-
--typography-header-xxl-spacing: var(--typography-header-xxl-spacing);
|
76
|
-
--typography-header-xl-size: var(--typography-header-xl-size);
|
77
|
-
--typography-header-xl-height: var(--typography-header-xl-height);
|
78
|
-
--typography-header-xl-spacing: var(--typography-header-xl-spacing);
|
79
|
-
--typography-header-l-size: var(--typography-header-l-size);
|
80
|
-
--typography-header-l-height: var(--typography-header-l-height);
|
81
|
-
--typography-header-l-spacing: var(--typography-header-l-spacing);
|
82
|
-
--typography-header-m-size: var(--typography-header-m-size);
|
83
|
-
--typography-header-m-height: var(--typography-header-m-height);
|
84
|
-
--typography-header-m-spacing: var(--typography-header-m-spacing);
|
85
|
-
--typography-header-s-size: var(--typography-header-s-size);
|
86
|
-
--typography-header-s-height: var(--typography-header-s-height);
|
87
|
-
--typography-header-s-spacing: var(--typography-header-s-spacing);
|
88
|
-
--typography-header-xs-size: var(--typography-header-xs-size);
|
89
|
-
--typography-header-xs-height: var(--typography-header-xs-height);
|
90
|
-
--typography-header-xs-spacing: var(--typography-header-xs-spacing);
|
91
|
-
--typography-body-l-size: var(--typography-body-l-size);
|
92
|
-
--typography-body-l-height: var(--typography-body-l-height);
|
93
|
-
--typography-body-l-spacing: var(--typography-body-l-spacing);
|
94
|
-
--typography-body-m-size: var(--typography-body-m-size);
|
95
|
-
--typography-body-m-height: var(--typography-body-m-height);
|
96
|
-
--typography-body-m-spacing: var(--typography-body-m-spacing);
|
97
|
-
--typography-body-s-size: var(--typography-body-s-size);
|
98
|
-
--typography-body-s-height: var(--typography-body-s-height);
|
99
|
-
--typography-body-s-spacing: var(--typography-body-s-spacing);
|
100
|
-
--typography-body-xs-size: var(--typography-body-xs-size);
|
101
|
-
--typography-body-xs-height: var(--typography-body-xs-height);
|
102
|
-
--typography-body-xs-spacing: var(--typography-body-xs-spacing);
|
103
|
-
--typography-body-xxs-size: var(--typography-body-xxs-size);
|
104
|
-
--typography-body-xxs-height: var(--typography-body-xxs-height);
|
105
|
-
--typography-body-xxs-spacing: var(--typography-body-xxs-spacing);
|
106
|
-
--typography-button-l-size: var(--typography-button-l-size);
|
107
|
-
--typography-button-l-height: var(--typography-button-l-height);
|
108
|
-
--typography-button-l-spacing: var(--typography-button-l-spacing);
|
109
|
-
--typography-button-m-size: var(--typography-button-m-size);
|
110
|
-
--typography-button-m-height: var(--typography-button-m-height);
|
111
|
-
--typography-button-m-spacing: var(--typography-button-m-spacing);
|
112
|
-
--typography-button-s-size: var(--typography-button-s-size);
|
113
|
-
--typography-button-s-height: var(--typography-button-s-height);
|
114
|
-
--typography-button-s-spacing: var(--typography-button-s-spacing);
|
115
|
-
--typography-button-xs-size: var(--typography-button-xs-size);
|
116
|
-
--typography-button-xs-height: var(--typography-button-xs-height);
|
117
|
-
--typography-button-xs-spacing: var(--typography-button-xs-spacing);
|
73
|
+
--typography-header-xxl-size: var(--typography-header-xxl-size, 32px);
|
74
|
+
--typography-header-xxl-height: var(--typography-header-xxl-height, 40px);
|
75
|
+
--typography-header-xxl-spacing: var(--typography-header-xxl-spacing, 0px);
|
76
|
+
--typography-header-xl-size: var(--typography-header-xl-size, 24px);
|
77
|
+
--typography-header-xl-height: var(--typography-header-xl-height, 28px);
|
78
|
+
--typography-header-xl-spacing: var(--typography-header-xl-spacing, 0.18px);
|
79
|
+
--typography-header-l-size: var(--typography-header-l-size, 20px);
|
80
|
+
--typography-header-l-height: var(--typography-header-l-height, 24px);
|
81
|
+
--typography-header-l-spacing: var(--typography-header-l-spacing, 0.18px);
|
82
|
+
--typography-header-m-size: var(--typography-header-m-size, 14px);
|
83
|
+
--typography-header-m-height: var(--typography-header-m-height, 20px);
|
84
|
+
--typography-header-m-spacing: var(--typography-header-m-spacing, 0.25px);
|
85
|
+
--typography-header-s-size: var(--typography-header-s-size, 12px);
|
86
|
+
--typography-header-s-height: var(--typography-header-s-height, 16px);
|
87
|
+
--typography-header-s-spacing: var(--typography-header-s-spacing, 0.4px);
|
88
|
+
--typography-header-xs-size: var(--typography-header-xs-size, 10px);
|
89
|
+
--typography-header-xs-height: var(--typography-header-xs-height, 12px);
|
90
|
+
--typography-header-xs-spacing: var(--typography-header-xs-spacing, 0.25px);
|
91
|
+
--typography-body-l-size: var(--typography-body-l-size, 16px);
|
92
|
+
--typography-body-l-height: var(--typography-body-l-height, 24px);
|
93
|
+
--typography-body-l-spacing: var(--typography-body-l-spacing, 0.5px);
|
94
|
+
--typography-body-m-size: var(--typography-body-m-size, 14px);
|
95
|
+
--typography-body-m-height: var(--typography-body-m-height, 20px);
|
96
|
+
--typography-body-m-spacing: var(--typography-body-m-spacing, 0.25px);
|
97
|
+
--typography-body-s-size: var(--typography-body-s-size, 12px);
|
98
|
+
--typography-body-s-height: var(--typography-body-s-height, 16px);
|
99
|
+
--typography-body-s-spacing: var(--typography-body-s-spacing, 0.4px);
|
100
|
+
--typography-body-xs-size: var(--typography-body-xs-size, 10px);
|
101
|
+
--typography-body-xs-height: var(--typography-body-xs-height, 12px);
|
102
|
+
--typography-body-xs-spacing: var(--typography-body-xs-spacing, 0.5px);
|
103
|
+
--typography-body-xxs-size: var(--typography-body-xxs-size, 9px);
|
104
|
+
--typography-body-xxs-height: var(--typography-body-xxs-height, 12px);
|
105
|
+
--typography-body-xxs-spacing: var(--typography-body-xxs-spacing, 0.25px);
|
106
|
+
--typography-button-l-size: var(--typography-button-l-size, 16px);
|
107
|
+
--typography-button-l-height: var(--typography-button-l-height, 24px);
|
108
|
+
--typography-button-l-spacing: var(--typography-button-l-spacing, 0.5px);
|
109
|
+
--typography-button-m-size: var(--typography-button-m-size, 14px);
|
110
|
+
--typography-button-m-height: var(--typography-button-m-height, 20px);
|
111
|
+
--typography-button-m-spacing: var(--typography-button-m-spacing, 0.25px);
|
112
|
+
--typography-button-s-size: var(--typography-button-s-size, 12px);
|
113
|
+
--typography-button-s-height: var(--typography-button-s-height, 16px);
|
114
|
+
--typography-button-s-spacing: var(--typography-button-s-spacing, 0.4px);
|
115
|
+
--typography-button-xs-size: var(--typography-button-xs-size, 10px);
|
116
|
+
--typography-button-xs-height: var(--typography-button-xs-height, 12px);
|
117
|
+
--typography-button-xs-spacing: var(--typography-button-xs-spacing, 0.5px);
|
118
118
|
}
|
119
119
|
|
120
120
|
@theme {
|
121
121
|
/** Spacing **/
|
122
|
-
--spacing-0: var(--spacing-0);
|
123
|
-
--spacing-none: var(--spacing-none);
|
124
|
-
--spacing-xxs: var(--spacing-xxs);
|
125
|
-
--spacing-xs: var(--spacing-xs);
|
126
|
-
--spacing-s: var(--spacing-s);
|
127
|
-
--spacing-m: var(--spacing-m);
|
128
|
-
--spacing-l: var(--spacing-l);
|
129
|
-
--spacing-xl: var(--spacing-xl);
|
130
|
-
--spacing-xxl: var(--spacing-xxl);
|
131
|
-
--spacing-oversized: var(--spacing-oversized);
|
122
|
+
--spacing-0: var(--spacing-0, 0px);
|
123
|
+
--spacing-none: var(--spacing-none, unset);
|
124
|
+
--spacing-xxs: var(--spacing-xxs, 2px);
|
125
|
+
--spacing-xs: var(--spacing-xs, 4px);
|
126
|
+
--spacing-s: var(--spacing-s, 8px);
|
127
|
+
--spacing-m: var(--spacing-m, 12px);
|
128
|
+
--spacing-l: var(--spacing-l, 16px);
|
129
|
+
--spacing-xl: var(--spacing-xl, 24px);
|
130
|
+
--spacing-xxl: var(--spacing-xxl, 40px);
|
131
|
+
--spacing-oversized: var(--spacing-oversized, 80px);
|
132
132
|
}
|
133
133
|
|
134
134
|
@theme {
|
135
135
|
/** Radius **/
|
136
|
-
--radius-none: var(--radius-none);
|
137
|
-
--radius-small: var(--radius-small);
|
138
|
-
--radius-medium: var(--radius-medium);
|
139
|
-
--radius-large: var(--radius-large);
|
140
|
-
--radius-round: var(--radius-round);
|
136
|
+
--radius-none: var(--radius-none, 0px);
|
137
|
+
--radius-small: var(--radius-small, 2px);
|
138
|
+
--radius-medium: var(--radius-medium, 4px);
|
139
|
+
--radius-large: var(--radius-large, 8px);
|
140
|
+
--radius-round: var(--radius-round, 80px);
|
141
141
|
}
|
142
142
|
|
143
143
|
@theme {
|
@@ -0,0 +1,58 @@
|
|
1
|
+
@custom-variant placement-left (&:where([data-placement~="left"]));
|
2
|
+
@custom-variant placement-right (&:where([data-placement~="right"]));
|
3
|
+
@custom-variant placement-top (&:where([data-placement~="top"]));
|
4
|
+
@custom-variant placement-bottom (&:where([data-placement~="bottom"]));
|
5
|
+
@custom-variant size-xlarge (&:where([data-size="xlarge"]));
|
6
|
+
@custom-variant size-large (&:where([data-size="large"]));
|
7
|
+
@custom-variant size-medium (&:where([data-size="medium"]));
|
8
|
+
@custom-variant size-small (&:where([data-size="small"]));
|
9
|
+
@custom-variant size-xsmall (&:where([data-size="xsmall"]));
|
10
|
+
@custom-variant type-literal (&:where([data-type="literal"]));
|
11
|
+
@custom-variant type-year (&:where([data-type="year"]));
|
12
|
+
@custom-variant type-month (&:where([data-type="month"]));
|
13
|
+
@custom-variant type-day (&:where([data-type="day"]));
|
14
|
+
@custom-variant layout-grid (&:where([data-layout="grid"]));
|
15
|
+
@custom-variant layout-stack (&:where([data-layout="stack"]));
|
16
|
+
@custom-variant orientation-horizontal (&:where([data-orientation="horizontal"]));
|
17
|
+
@custom-variant orientation-vertical (&:where([data-orientation="vertical"]));
|
18
|
+
@custom-variant selection-single (&:where([data-selection-mode="single"]));
|
19
|
+
@custom-variant selection-multiple (&:where([data-selection-mode="multiple"]));
|
20
|
+
@custom-variant resizable-right (&:where([data-resizable-direction="right"]));
|
21
|
+
@custom-variant resizable-left (&:where([data-resizable-direction="left"]));
|
22
|
+
@custom-variant resizable-both (&:where([data-resizable-direction="both"]));
|
23
|
+
@custom-variant sort-ascending (&:where([data-sort-direction="ascending"]));
|
24
|
+
@custom-variant sort-descending (&:where([data-sort-direction="descending"]));
|
25
|
+
@custom-variant allows-removing (&:where([data-allows-removing]));
|
26
|
+
@custom-variant allows-sorting (&:where([data-allows-sorting]));
|
27
|
+
@custom-variant allows-dragging (&:where([data-allows-dragging]));
|
28
|
+
@custom-variant has-submenu (&:where([data-has-submenu]));
|
29
|
+
@custom-variant has-child-items (&:where([data-has-child-items]));
|
30
|
+
@custom-variant enabled (&:where(:not([disabled], [data-disabled]), :enabled));
|
31
|
+
@custom-variant open (&:where([open], [data-open], :open));
|
32
|
+
@custom-variant expanded (&:where([expanded], [data-expanded]));
|
33
|
+
@custom-variant entering (&:where([data-entering]));
|
34
|
+
@custom-variant exiting (&:where([data-exiting]));
|
35
|
+
@custom-variant indeterminate (&:where([data-indeterminate], :indeterminate));
|
36
|
+
@custom-variant placeholder-shown (&:where([data-placeholder], :placeholder-shown));
|
37
|
+
@custom-variant current (&:where([data-current]));
|
38
|
+
@custom-variant optional (&:where(:not([required], [data-required]), :optional));
|
39
|
+
@custom-variant required (&:where([required], [data-required], :required));
|
40
|
+
@custom-variant unavailable (&:where([data-unavailable]));
|
41
|
+
@custom-variant invalid (&:where([invalid], [data-invalid], :invalid));
|
42
|
+
@custom-variant read-only (&:where([readonly], [data-readonly], :read-only));
|
43
|
+
@custom-variant outside-month (&:where([data-outside-month]));
|
44
|
+
@custom-variant outside-visible-range (&:where([data-outside-visible-range]));
|
45
|
+
@custom-variant pending (&:where([data-pending]));
|
46
|
+
@custom-variant empty (&:where([data-empty], :empty));
|
47
|
+
@custom-variant focus-within (&:where([data-focus-within], :focus-within));
|
48
|
+
@custom-variant hover (&:where([data-hovered], :hover));
|
49
|
+
@custom-variant focus (&:where([data-focused], :focus));
|
50
|
+
@custom-variant focus-visible (&:where([data-focus-visible], :focus-visible));
|
51
|
+
@custom-variant pressed (&:where([data-pressed], :active));
|
52
|
+
@custom-variant selected (&:where([data-selected], :checked));
|
53
|
+
@custom-variant selection-start (&:where([data-selection-start]));
|
54
|
+
@custom-variant selection-end (&:where([data-selection-end]));
|
55
|
+
@custom-variant dragging (&:where([data-dragging]));
|
56
|
+
@custom-variant drop-target (&:where([data-drop-target]));
|
57
|
+
@custom-variant resizing (&:where([data-resizing]));
|
58
|
+
@custom-variant disabled (&:where([disabled], [data-disabled], :disabled));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@accelint/design-toolkit",
|
3
|
-
"version": "2.4.
|
3
|
+
"version": "2.4.2",
|
4
4
|
"private": false,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"repository": {
|
@@ -111,8 +111,8 @@
|
|
111
111
|
"vite-tsconfig-paths": "5.0.1",
|
112
112
|
"vitest": "^3.1.1",
|
113
113
|
"@accelint/biome-config": "0.1.2",
|
114
|
-
"@accelint/
|
115
|
-
"@accelint/
|
114
|
+
"@accelint/vitest-config": "0.1.3",
|
115
|
+
"@accelint/typescript-config": "0.1.2"
|
116
116
|
},
|
117
117
|
"$schema": "https://json.schemastore.org/package",
|
118
118
|
"author": "https://hypergiant.com",
|
@@ -121,10 +121,11 @@
|
|
121
121
|
},
|
122
122
|
"scripts": {
|
123
123
|
"bench": "pnpm vitest bench --run --dir src",
|
124
|
-
"build": "pnpm gen:tokens && pnpm tsup && pnpm build:css",
|
124
|
+
"build": "pnpm gen:tokens && pnpm gen:variants && pnpm tsup && pnpm build:css",
|
125
125
|
"build:css": "pnpm tailwindcss -i ./src/index.css -o ./dist/styles.css",
|
126
126
|
"dev": "pnpm tsc --watch",
|
127
127
|
"gen:tokens": "node scripts/generate-tokens.mjs",
|
128
|
+
"gen:variants": "node scripts/generate-variants.mjs",
|
128
129
|
"index": "pnpm zx ../../scripts/indexer.mjs design-toolkit/components",
|
129
130
|
"lint": "pnpm biome lint",
|
130
131
|
"preview": "pnpm storybook dev -p 6006",
|