@sigx/zero-daisyui 0.2.0-beta.5 → 0.3.0-beta.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/README.md +78 -5
- package/dist/audit.json +271915 -0
- package/dist/components.d.ts +75 -18
- package/dist/components.js +15 -3
- package/dist/css/breakpoints.css +7 -0
- package/dist/css/components/avatar.css +12 -0
- package/dist/css/components/badge.css +130 -1
- package/dist/css/components/box.css +58 -0
- package/dist/css/components/button.css +17 -17
- package/dist/css/components/center.css +17 -0
- package/dist/css/components/checkbox.css +1 -1
- package/dist/css/components/combobox.css +57 -6
- package/dist/css/components/container.css +16 -0
- package/dist/css/components/countdown.css +5 -0
- package/dist/css/components/dialog.css +3 -2
- package/dist/css/components/drawer.css +102 -6
- package/dist/css/components/empty-state.css +164 -0
- package/dist/css/components/grid.css +32 -0
- package/dist/css/components/kbd.css +1 -1
- package/dist/css/components/menu.css +4 -4
- package/dist/css/components/nav-list.css +165 -0
- package/dist/css/components/radio-group.css +2 -2
- package/dist/css/components/select.css +1 -1
- package/dist/css/components/spacer.css +13 -0
- package/dist/css/components/stack.css +39 -0
- package/dist/css/components/steps.css +109 -28
- package/dist/css/components/table.css +276 -2
- package/dist/css/components/timeline.css +64 -1
- package/dist/css/components/tree-view.css +2 -2
- package/dist/css/index.css +2220 -279
- package/dist/css/index.d.ts +2 -0
- package/dist/css/tokens.css +9 -0
- package/dist/design-system.d.ts.map +1 -1
- package/dist/design-system.js +15 -8
- package/dist/design-system.js.map +1 -1
- package/dist/lynx/components/avatar.css +12 -0
- package/dist/lynx/components/badge.css +56 -1
- package/dist/lynx/components/box.css +54 -0
- package/dist/lynx/components/breadcrumbs.css +10 -10
- package/dist/lynx/components/button.css +19 -6
- package/dist/lynx/components/card.css +5 -5
- package/dist/lynx/components/carousel.css +4 -4
- package/dist/lynx/components/center.css +13 -0
- package/dist/lynx/components/chat.css +12 -11
- package/dist/lynx/components/checkbox.css +4 -5
- package/dist/lynx/components/combobox.css +49 -6
- package/dist/lynx/components/container.css +11 -0
- package/dist/lynx/components/countdown.css +5 -0
- package/dist/lynx/components/dialog.css +22 -14
- package/dist/lynx/components/diff.css +6 -4
- package/dist/lynx/components/drawer.css +30 -6
- package/dist/lynx/components/empty-state.css +342 -0
- package/dist/lynx/components/file-upload.css +10 -10
- package/dist/lynx/components/grid.css +28 -0
- package/dist/lynx/components/indicator.css +24 -24
- package/dist/lynx/components/kbd.css +1 -1
- package/dist/lynx/components/menu.css +14 -9
- package/dist/lynx/components/nav-list.css +302 -0
- package/dist/lynx/components/number-input.css +4 -2
- package/dist/lynx/components/pagination.css +7 -6
- package/dist/lynx/components/popover.css +12 -6
- package/dist/lynx/components/progress.css +1 -1
- package/dist/lynx/components/radial-progress.css +5 -5
- package/dist/lynx/components/radio-group.css +2 -2
- package/dist/lynx/components/rating-group.css +5 -5
- package/dist/lynx/components/select.css +18 -12
- package/dist/lynx/components/slider.css +6 -5
- package/dist/lynx/components/spacer.css +11 -0
- package/dist/lynx/components/stack.css +35 -0
- package/dist/lynx/components/stats.css +10 -10
- package/dist/lynx/components/steps.css +117 -77
- package/dist/lynx/components/switch.css +5 -5
- package/dist/lynx/components/table.css +18 -12
- package/dist/lynx/components/tabs.css +5 -5
- package/dist/lynx/components/timeline.css +14 -5
- package/dist/lynx/components/toast.css +4 -4
- package/dist/lynx/components/tooltip.css +10 -5
- package/dist/lynx/components/tree-view.css +3 -3
- package/dist/lynx/index.css +1402 -450
- package/dist/lynx/manifest.json +354 -37
- package/dist/lynx/tokens.css +36 -0
- package/dist/manifest.json +351 -34
- package/dist/recipes.d.ts +17 -10
- package/dist/recipes.d.ts.map +1 -1
- package/dist/recipes.js +866 -153
- package/dist/recipes.js.map +1 -1
- package/dist/register.d.ts +89 -14
- package/dist/report.json +2815 -408
- package/dist/tokens.d.ts +22 -11
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +57 -7
- package/dist/tokens.js.map +1 -1
- package/package.json +28 -10
- package/src/design-system.ts +15 -8
- package/src/recipes.ts +880 -157
- package/src/tokens.ts +54 -7
- package/dist/css/components/native-select.css +0 -128
- package/dist/lynx/components/native-select.css +0 -130
package/dist/tokens.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* zero-daisyui tokens — daisyUI's "light" and "dark" theme values on the
|
|
3
|
-
* zero contract. Values match the daisy presets `@sigx/daisyui` ships, so a
|
|
4
|
-
* zero app skinned with this package sits visually next to a daisy app.
|
|
5
|
-
*/
|
|
6
1
|
import type { TokensInput } from '@sigx/zero-kit';
|
|
7
2
|
/** daisyUI's color vocabulary — the recommended eight roles, declared explicitly. */
|
|
8
3
|
export declare const roles: {
|
|
@@ -61,6 +56,14 @@ export declare const system: {
|
|
|
61
56
|
readonly wide: '0.05em';
|
|
62
57
|
};
|
|
63
58
|
};
|
|
59
|
+
readonly measure: {
|
|
60
|
+
readonly xs: '20rem';
|
|
61
|
+
readonly sm: '24rem';
|
|
62
|
+
readonly md: '28rem';
|
|
63
|
+
readonly lg: '32rem';
|
|
64
|
+
readonly xl: '36rem';
|
|
65
|
+
readonly prose: '65ch';
|
|
66
|
+
};
|
|
64
67
|
readonly spacing: {
|
|
65
68
|
readonly '2xs': '0.125rem';
|
|
66
69
|
readonly xs: '0.25rem';
|
|
@@ -140,23 +143,31 @@ export declare const tabVariants: readonly ['border', 'lift', 'box'];
|
|
|
140
143
|
export declare const variants: readonly ["solid", "outline", "soft", "ghost", "dash", "link", "border", "lift", "box"];
|
|
141
144
|
/**
|
|
142
145
|
* daisyUI 5's button modifier set (#332), each a documented `btn-*` class:
|
|
143
|
-
* `btn-wide`, `btn-block`, `btn-square`, `btn-circle`, `btn-active
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
146
|
+
* `btn-wide`, `btn-block`, `btn-square`, `btn-circle`, `btn-active`. All
|
|
147
|
+
* five were boolean props on the old `@sigx/daisyui` Button — the api
|
|
148
|
+
* declaration routes them back to those names. The sixth, `loading`, is not
|
|
149
|
+
* a modifier any more: since #50 it is `Button.Root`'s own prop (a state
|
|
150
|
+
* with `aria-busy` and blocked activation, not just paint), so
|
|
151
|
+
* `<Button loading>` reaches zero directly and the recipe draws the
|
|
152
|
+
* `spinner` part.
|
|
148
153
|
*
|
|
149
154
|
* `glass` is deliberately NOT here: daisyUI 5 no longer documents it on
|
|
150
155
|
* any component (a v4 relic whose v5 survival is a compatibility style
|
|
151
156
|
* with open breakage — saadeghi/daisyui#3316, #3501), and the old
|
|
152
157
|
* `@sigx/daisyui` Button never exposed it either.
|
|
153
158
|
*/
|
|
154
|
-
export declare const modifiers: readonly ['wide', 'block', 'square', 'circle', 'active'
|
|
159
|
+
export declare const modifiers: readonly ['wide', 'block', 'square', 'circle', 'active'];
|
|
155
160
|
/**
|
|
156
161
|
* daisyUI's table looks (#340): `table-zebra` and the row-level `hover`
|
|
157
162
|
* class, spelled as presence-only mods on the table root. Kept apart from
|
|
158
163
|
* the button set so `scopes` can hand each scope exactly its own names.
|
|
159
164
|
*/
|
|
160
165
|
export declare const tableModifiers: readonly ['zebra', 'hover'];
|
|
166
|
+
/**
|
|
167
|
+
* A countdown set inside a sentence (#57). daisy's own `.countdown` sets no
|
|
168
|
+
* display size — it takes the text utilities around it — so `inline` is the
|
|
169
|
+
* daisy-faithful look, spelled as the opt-out from this skin's display step.
|
|
170
|
+
*/
|
|
171
|
+
export declare const countdownModifiers: readonly ['inline'];
|
|
161
172
|
export declare const tokens: TokensInput<typeof roles, typeof system>;
|
|
162
173
|
//# sourceMappingURL=tokens.d.ts.map
|
package/dist/tokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK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5E,OAAO;qBAAI,QAAQ,EAAE,MAAM;;;qBAEvB,KAAK;8BACI,KAAK;CACO,CAAC;AAoBlC;;;GAGG;AACH,eAAO,MAAM,MAAM;;iBACN,WAAW,EAAE,qDAAqD;iBAAE,MAAM,EAAE,UAAU;;;iBAC9E,WAAW,EAAE,uCAAuC;;;iBACpD,WAAW,EAAE,uCAAuC;;;iBAC5D,WAAW,EAAE,+CAA+C;iBAAE,MAAM,EAAE,UAAU;;;iBAC3E,WAAW,EAAE,6BAA6B;;CACR,CAAC;AAWrD;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,YAAI,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,YAAI,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAU,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,QAAQ,yFAA+C,CAAC;AAErE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,YAAI,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAElF;;;;GAIG;AACH,eAAO,MAAM,cAAc,YAAI,OAAO,EAAE,OAAO,CAAU,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YAAI,QAAQ,CAAU,CAAC;AAEtD,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,OAAO,KAAK,EAAE,OAAO,MAAM,CAuM3D,CAAC"}
|
package/dist/tokens.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* zero-daisyui tokens — daisyUI's "light" and "dark" theme values on the
|
|
3
|
+
* zero contract. Values match the daisy presets `@sigx/daisyui` ships, so a
|
|
4
|
+
* zero app skinned with this package sits visually next to a daisy app.
|
|
5
|
+
*/
|
|
6
|
+
import { layoutScopes } from '@sigx/zero-kit/define';
|
|
1
7
|
/** daisyUI's color vocabulary — the recommended eight roles, declared explicitly. */
|
|
2
8
|
export const roles = {
|
|
3
9
|
primary: {}, secondary: {}, accent: {}, neutral: {},
|
|
@@ -34,6 +40,17 @@ export const system = {
|
|
|
34
40
|
},
|
|
35
41
|
// daisy runs a slightly roomier ramp than basic — the `xl`/`2xl` steps
|
|
36
42
|
// are where its cards and modals get their air.
|
|
43
|
+
// Page-scale widths a Container is bounded by. The density ramp cannot
|
|
44
|
+
// reach these — it tops out at a rung you would not notice.
|
|
45
|
+
// Tailwind's container ramp, which is what daisy is authored against.
|
|
46
|
+
measure: {
|
|
47
|
+
xs: '20rem',
|
|
48
|
+
sm: '24rem',
|
|
49
|
+
md: '28rem',
|
|
50
|
+
lg: '32rem',
|
|
51
|
+
xl: '36rem',
|
|
52
|
+
prose: '65ch',
|
|
53
|
+
},
|
|
37
54
|
spacing: {
|
|
38
55
|
'2xs': '0.125rem',
|
|
39
56
|
xs: '0.25rem',
|
|
@@ -124,29 +141,56 @@ export const tabVariants = ['border', 'lift', 'box'];
|
|
|
124
141
|
export const variants = [...buttonVariants, ...tabVariants];
|
|
125
142
|
/**
|
|
126
143
|
* daisyUI 5's button modifier set (#332), each a documented `btn-*` class:
|
|
127
|
-
* `btn-wide`, `btn-block`, `btn-square`, `btn-circle`, `btn-active
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
144
|
+
* `btn-wide`, `btn-block`, `btn-square`, `btn-circle`, `btn-active`. All
|
|
145
|
+
* five were boolean props on the old `@sigx/daisyui` Button — the api
|
|
146
|
+
* declaration routes them back to those names. The sixth, `loading`, is not
|
|
147
|
+
* a modifier any more: since #50 it is `Button.Root`'s own prop (a state
|
|
148
|
+
* with `aria-busy` and blocked activation, not just paint), so
|
|
149
|
+
* `<Button loading>` reaches zero directly and the recipe draws the
|
|
150
|
+
* `spinner` part.
|
|
132
151
|
*
|
|
133
152
|
* `glass` is deliberately NOT here: daisyUI 5 no longer documents it on
|
|
134
153
|
* any component (a v4 relic whose v5 survival is a compatibility style
|
|
135
154
|
* with open breakage — saadeghi/daisyui#3316, #3501), and the old
|
|
136
155
|
* `@sigx/daisyui` Button never exposed it either.
|
|
137
156
|
*/
|
|
138
|
-
export const modifiers = ['wide', 'block', 'square', 'circle', 'active'
|
|
157
|
+
export const modifiers = ['wide', 'block', 'square', 'circle', 'active'];
|
|
139
158
|
/**
|
|
140
159
|
* daisyUI's table looks (#340): `table-zebra` and the row-level `hover`
|
|
141
160
|
* class, spelled as presence-only mods on the table root. Kept apart from
|
|
142
161
|
* the button set so `scopes` can hand each scope exactly its own names.
|
|
143
162
|
*/
|
|
144
163
|
export const tableModifiers = ['zebra', 'hover'];
|
|
164
|
+
/**
|
|
165
|
+
* A countdown set inside a sentence (#57). daisy's own `.countdown` sets no
|
|
166
|
+
* display size — it takes the text utilities around it — so `inline` is the
|
|
167
|
+
* daisy-faithful look, spelled as the opt-out from this skin's display step.
|
|
168
|
+
*/
|
|
169
|
+
export const countdownModifiers = ['inline'];
|
|
145
170
|
export const tokens = {
|
|
146
171
|
roles,
|
|
147
172
|
custom,
|
|
148
173
|
variants,
|
|
149
|
-
modifiers: [...modifiers, ...tableModifiers],
|
|
174
|
+
modifiers: [...modifiers, ...tableModifiers, ...countdownModifiers],
|
|
175
|
+
/**
|
|
176
|
+
* The avatar's shape (zero#129) — the first custom axis a shipped skin
|
|
177
|
+
* declares, and the acceptance test for `tokens.axes`: an enumerated
|
|
178
|
+
* choice with no named prop (`axes={{ shape: 'square' }}` →
|
|
179
|
+
* `data-shape="square"`). Wired on avatar alone; its unset default is
|
|
180
|
+
* this skin's own avatar radius.
|
|
181
|
+
*/
|
|
182
|
+
axes: { shape: ['circle', 'square', 'rounded'] },
|
|
183
|
+
/**
|
|
184
|
+
* daisyUI's own ramp — Tailwind's, which daisy is authored against.
|
|
185
|
+
*
|
|
186
|
+
* Declared because of the layout tier: the other five skins already had
|
|
187
|
+
* breakpoints, and without one here a responsive layout prop
|
|
188
|
+
* (`gap={{ md: 'lg' }}`) would render an attribute that matches nothing
|
|
189
|
+
* on this skin alone — a zero-level prop silently working in five design
|
|
190
|
+
* systems and not the sixth. `resolveCondition` also throws on an
|
|
191
|
+
* unknown condition key, so a recipe could not reference one either.
|
|
192
|
+
*/
|
|
193
|
+
breakpoints: { sm: '40rem', md: '48rem', lg: '64rem' },
|
|
150
194
|
/**
|
|
151
195
|
* Per-scope vocabulary claims (#294). Button wires `variant` and the
|
|
152
196
|
* `btn-*` modifier set (#175); restating its union is the explicit
|
|
@@ -156,11 +200,17 @@ export const tokens = {
|
|
|
156
200
|
* and tabs (#377) carries the three flavors and nothing of button's.
|
|
157
201
|
*/
|
|
158
202
|
scopes: {
|
|
203
|
+
// The layout tier wires neither colour nor size — every one of its
|
|
204
|
+
// scopes is geometry, and `data-color` on geometry would paint
|
|
205
|
+
// nothing. Declared out of existence rather than left to the
|
|
206
|
+
// axis-coverage audit to report.
|
|
207
|
+
...layoutScopes,
|
|
159
208
|
button: {
|
|
160
209
|
variants: [...buttonVariants],
|
|
161
210
|
modifiers: [...modifiers],
|
|
162
211
|
},
|
|
163
212
|
table: { modifiers: [...tableModifiers] },
|
|
213
|
+
countdown: { modifiers: [...countdownModifiers] },
|
|
164
214
|
tabs: { variants: [...tabVariants] },
|
|
165
215
|
},
|
|
166
216
|
system,
|
package/dist/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qFAAqF;AACrF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,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AAE,4BAA4B;gBAC/C,SAAS,EAAE,2BAA2B;gBACtC,mBAAmB,EAAE,2BAA2B;gBAChD,MAAM,EAAE,8BAA8B;gBACtC,gBAAgB,EAAE,8BAA8B;gBAChD,OAAO,EAAE,yBAAyB;gBAClC,iBAAiB,EAAE,yBAAyB;gBAC5C,IAAI,EAAE,8BAA8B;gBACpC,cAAc,EAAE,8BAA8B;gBAC9C,OAAO,EAAE,6BAA6B;gBACtC,iBAAiB,EAAE,8BAA8B;gBACjD,OAAO,EAAE,6BAA6B;gBACtC,iBAAiB,EAAE,6BAA6B;gBAChD,KAAK,EAAE,6BAA6B;gBACpC,eAAe,EAAE,6BAA6B;aACjD;YACD,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;YACtE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC;SAClB;KACJ;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigx/zero-daisyui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta.1",
|
|
4
4
|
"description": "DaisyUI-flavored design system for SignalX Zero — daisy's token values and component look as a pure tokens+recipes skin over @sigx/zero primitives. No Tailwind, no daisyUI plugin required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./design-system": {
|
|
14
|
+
"types": "./dist/design-system.d.ts",
|
|
15
|
+
"import": "./dist/design-system.js"
|
|
16
|
+
},
|
|
13
17
|
"./register": {
|
|
14
18
|
"types": "./dist/register.d.ts",
|
|
15
19
|
"import": "./dist/register.js"
|
|
@@ -18,14 +22,28 @@
|
|
|
18
22
|
"types": "./dist/components.d.ts",
|
|
19
23
|
"import": "./dist/components.js"
|
|
20
24
|
},
|
|
21
|
-
"./css":
|
|
25
|
+
"./css": {
|
|
26
|
+
"types": "./dist/css/index.d.ts",
|
|
27
|
+
"default": "./dist/css/index.css"
|
|
28
|
+
},
|
|
22
29
|
"./lynx/index.css": "./dist/lynx/index.css",
|
|
23
30
|
"./lynx/tokens.css": "./dist/lynx/tokens.css",
|
|
24
31
|
"./lynx/manifest.json": "./dist/lynx/manifest.json",
|
|
25
|
-
"./css/tokens":
|
|
26
|
-
|
|
32
|
+
"./css/tokens": {
|
|
33
|
+
"types": "./dist/css/index.d.ts",
|
|
34
|
+
"default": "./dist/css/tokens.css"
|
|
35
|
+
},
|
|
36
|
+
"./css/breakpoints": {
|
|
37
|
+
"types": "./dist/css/index.d.ts",
|
|
38
|
+
"default": "./dist/css/breakpoints.css"
|
|
39
|
+
},
|
|
40
|
+
"./css/*": {
|
|
41
|
+
"types": "./dist/css/index.d.ts",
|
|
42
|
+
"default": "./dist/css/components/*.css"
|
|
43
|
+
},
|
|
27
44
|
"./manifest.json": "./dist/manifest.json",
|
|
28
|
-
"./report.json": "./dist/report.json"
|
|
45
|
+
"./report.json": "./dist/report.json",
|
|
46
|
+
"./audit.json": "./dist/audit.json"
|
|
29
47
|
},
|
|
30
48
|
"files": [
|
|
31
49
|
"dist",
|
|
@@ -36,20 +54,20 @@
|
|
|
36
54
|
"license": "MIT",
|
|
37
55
|
"repository": {
|
|
38
56
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/
|
|
57
|
+
"url": "git+https://github.com/signalxjs/zero.git",
|
|
40
58
|
"directory": "packages/zero-daisyui"
|
|
41
59
|
},
|
|
42
60
|
"homepage": "https://sigx.dev/zero/",
|
|
43
61
|
"bugs": {
|
|
44
|
-
"url": "https://github.com/
|
|
62
|
+
"url": "https://github.com/signalxjs/zero/issues"
|
|
45
63
|
},
|
|
46
64
|
"peerDependencies": {
|
|
47
|
-
"@sigx/zero": "^0.
|
|
65
|
+
"@sigx/zero": "^0.3.0-beta.1"
|
|
48
66
|
},
|
|
49
67
|
"devDependencies": {
|
|
50
68
|
"typescript": "^6.0.3",
|
|
51
|
-
"@sigx/zero": "^0.
|
|
52
|
-
"@sigx/zero
|
|
69
|
+
"@sigx/zero-kit": "^0.3.0-beta.1",
|
|
70
|
+
"@sigx/zero": "^0.3.0-beta.1"
|
|
53
71
|
},
|
|
54
72
|
"publishConfig": {
|
|
55
73
|
"access": "public"
|
package/src/design-system.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DesignSystemInput } from '@sigx/zero-kit';
|
|
2
2
|
import { defineApi } from '@sigx/zero-kit/define';
|
|
3
|
-
import { modifiers, roles, system, tableModifiers, tokens, variants } from './tokens.js';
|
|
3
|
+
import { countdownModifiers, modifiers, roles, system, tableModifiers, tokens, variants } from './tokens.js';
|
|
4
|
+
import { layoutCss, layoutRecipes } from '@sigx/zero-kit/define';
|
|
4
5
|
import { recipes } from './recipes.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -12,11 +13,13 @@ import { recipes } from './recipes.js';
|
|
|
12
13
|
* modeling artifact rather than the real shape — so no axis is renamed and
|
|
13
14
|
* no value respelled: `variant: {}` is the explicit `exact` claim. What the
|
|
14
15
|
* api adds is the modifier surface: the old library's boolean props
|
|
15
|
-
* (`wide`, `block`, `square`, `circle`, `active
|
|
16
|
-
*
|
|
16
|
+
* (`wide`, `block`, `square`, `circle`, `active`) surface under their own
|
|
17
|
+
* names on the generated `./components` module, so
|
|
17
18
|
* `<Button wide loading variant="dash" color="primary">` is fully typed from
|
|
18
|
-
* one import
|
|
19
|
-
*
|
|
19
|
+
* one import — `loading` being zero's own Button prop since #50, which is
|
|
20
|
+
* why it is no modifier here: it would collide with
|
|
21
|
+
* `RESERVED_PROPS_BY_SCOPE`, and the validator checks exactly that for
|
|
22
|
+
* every identity-named modifier.
|
|
20
23
|
*
|
|
21
24
|
* `defineApi` from `@sigx/zero-kit/define`, the node:-free authoring
|
|
22
25
|
* subpath (#318): this module is in the package's RUNTIME graph (the barrel
|
|
@@ -26,7 +29,7 @@ import { recipes } from './recipes.js';
|
|
|
26
29
|
* modifier names and any `values` keys against the declared vocabulary.
|
|
27
30
|
*/
|
|
28
31
|
const api = defineApi(
|
|
29
|
-
{ variants, modifiers: [...modifiers, ...tableModifiers] },
|
|
32
|
+
{ variants, modifiers: [...modifiers, ...tableModifiers, ...countdownModifiers] },
|
|
30
33
|
{
|
|
31
34
|
variant: {},
|
|
32
35
|
modifiers: {
|
|
@@ -35,9 +38,9 @@ const api = defineApi(
|
|
|
35
38
|
square: {},
|
|
36
39
|
circle: {},
|
|
37
40
|
active: {},
|
|
38
|
-
loading: {},
|
|
39
41
|
zebra: {},
|
|
40
42
|
hover: {},
|
|
43
|
+
inline: {},
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
);
|
|
@@ -45,7 +48,11 @@ const api = defineApi(
|
|
|
45
48
|
export const designSystem: DesignSystemInput<typeof roles, typeof system> = {
|
|
46
49
|
name: 'daisyui',
|
|
47
50
|
tokens,
|
|
48
|
-
|
|
51
|
+
// The layout tier, generated from this design system's own spacing ramp
|
|
52
|
+
// and breakpoints. Composed HERE rather than in `recipes.ts`, which
|
|
53
|
+
// `@sigx/create-zero-ds` copies verbatim as a scaffold's frozen baseline.
|
|
54
|
+
recipes: [...layoutRecipes(tokens), ...recipes],
|
|
55
|
+
css: [layoutCss(tokens)],
|
|
49
56
|
api,
|
|
50
57
|
};
|
|
51
58
|
|