@sigx/zero-daisyui 0.2.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/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/components.d.ts +478 -0
- package/dist/components.js +76 -0
- package/dist/css/components/accordion.css +165 -0
- package/dist/css/components/alert.css +126 -0
- package/dist/css/components/avatar.css +94 -0
- package/dist/css/components/badge.css +82 -0
- package/dist/css/components/breadcrumbs.css +102 -0
- package/dist/css/components/button.css +252 -0
- package/dist/css/components/card.css +97 -0
- package/dist/css/components/carousel.css +196 -0
- package/dist/css/components/chat.css +167 -0
- package/dist/css/components/checkbox.css +245 -0
- package/dist/css/components/collapsible.css +157 -0
- package/dist/css/components/combobox.css +251 -0
- package/dist/css/components/countdown.css +83 -0
- package/dist/css/components/dialog.css +313 -0
- package/dist/css/components/diff.css +120 -0
- package/dist/css/components/divider.css +70 -0
- package/dist/css/components/drawer.css +285 -0
- package/dist/css/components/field.css +111 -0
- package/dist/css/components/file-upload.css +198 -0
- package/dist/css/components/indicator.css +166 -0
- package/dist/css/components/input.css +151 -0
- package/dist/css/components/join.css +122 -0
- package/dist/css/components/kbd.css +84 -0
- package/dist/css/components/menu.css +382 -0
- package/dist/css/components/native-select.css +128 -0
- package/dist/css/components/navbar.css +93 -0
- package/dist/css/components/number-input.css +211 -0
- package/dist/css/components/pagination.css +203 -0
- package/dist/css/components/popover.css +263 -0
- package/dist/css/components/progress.css +109 -0
- package/dist/css/components/radial-progress.css +129 -0
- package/dist/css/components/radio-group.css +176 -0
- package/dist/css/components/rating-group.css +143 -0
- package/dist/css/components/select.css +212 -0
- package/dist/css/components/skeleton.css +74 -0
- package/dist/css/components/slider.css +182 -0
- package/dist/css/components/spinner.css +75 -0
- package/dist/css/components/stats.css +115 -0
- package/dist/css/components/status.css +66 -0
- package/dist/css/components/steps.css +208 -0
- package/dist/css/components/swap.css +116 -0
- package/dist/css/components/switch.css +126 -0
- package/dist/css/components/table.css +124 -0
- package/dist/css/components/tabs.css +137 -0
- package/dist/css/components/textarea.css +131 -0
- package/dist/css/components/timeline.css +204 -0
- package/dist/css/components/toast.css +234 -0
- package/dist/css/components/toggle-group.css +164 -0
- package/dist/css/components/toggle.css +139 -0
- package/dist/css/components/tooltip.css +226 -0
- package/dist/css/components/tree-view.css +197 -0
- package/dist/css/index.css +8521 -0
- package/dist/css/tokens.css +265 -0
- package/dist/design-system.d.ts +5 -0
- package/dist/design-system.d.ts.map +1 -0
- package/dist/design-system.js +46 -0
- package/dist/design-system.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/lynx/components/accordion.css +87 -0
- package/dist/lynx/components/alert.css +108 -0
- package/dist/lynx/components/avatar.css +83 -0
- package/dist/lynx/components/badge.css +80 -0
- package/dist/lynx/components/breadcrumbs.css +61 -0
- package/dist/lynx/components/button.css +173 -0
- package/dist/lynx/components/card.css +62 -0
- package/dist/lynx/components/carousel.css +124 -0
- package/dist/lynx/components/chat.css +105 -0
- package/dist/lynx/components/checkbox.css +163 -0
- package/dist/lynx/components/collapsible.css +79 -0
- package/dist/lynx/components/combobox.css +195 -0
- package/dist/lynx/components/countdown.css +43 -0
- package/dist/lynx/components/dialog.css +227 -0
- package/dist/lynx/components/diff.css +59 -0
- package/dist/lynx/components/divider.css +60 -0
- package/dist/lynx/components/drawer.css +184 -0
- package/dist/lynx/components/field.css +63 -0
- package/dist/lynx/components/file-upload.css +147 -0
- package/dist/lynx/components/indicator.css +108 -0
- package/dist/lynx/components/input.css +112 -0
- package/dist/lynx/components/join.css +60 -0
- package/dist/lynx/components/kbd.css +81 -0
- package/dist/lynx/components/menu.css +282 -0
- package/dist/lynx/components/native-select.css +100 -0
- package/dist/lynx/components/navbar.css +91 -0
- package/dist/lynx/components/number-input.css +156 -0
- package/dist/lynx/components/pagination.css +155 -0
- package/dist/lynx/components/popover.css +184 -0
- package/dist/lynx/components/progress.css +43 -0
- package/dist/lynx/components/radial-progress.css +59 -0
- package/dist/lynx/components/radio-group.css +149 -0
- package/dist/lynx/components/rating-group.css +69 -0
- package/dist/lynx/components/select.css +163 -0
- package/dist/lynx/components/skeleton.css +34 -0
- package/dist/lynx/components/slider.css +136 -0
- package/dist/lynx/components/spinner.css +49 -0
- package/dist/lynx/components/stats.css +95 -0
- package/dist/lynx/components/status.css +45 -0
- package/dist/lynx/components/steps.css +171 -0
- package/dist/lynx/components/swap.css +60 -0
- package/dist/lynx/components/switch.css +95 -0
- package/dist/lynx/components/table.css +74 -0
- package/dist/lynx/components/tabs.css +105 -0
- package/dist/lynx/components/textarea.css +104 -0
- package/dist/lynx/components/timeline.css +123 -0
- package/dist/lynx/components/toast.css +200 -0
- package/dist/lynx/components/toggle-group.css +114 -0
- package/dist/lynx/components/toggle.css +112 -0
- package/dist/lynx/components/tooltip.css +153 -0
- package/dist/lynx/components/tree-view.css +161 -0
- package/dist/lynx/index.css +6223 -0
- package/dist/lynx/manifest.json +1758 -0
- package/dist/lynx/tokens.css +425 -0
- package/dist/manifest.json +1752 -0
- package/dist/recipes.d.ts +188 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/recipes.js +5128 -0
- package/dist/recipes.js.map +1 -0
- package/dist/register.d.ts +507 -0
- package/dist/register.js +4 -0
- package/dist/report.json +10752 -0
- package/dist/tokens.d.ts +150 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +306 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +61 -0
- package/src/design-system.ts +52 -0
- package/src/index.ts +14 -0
- package/src/recipes.ts +5236 -0
- package/src/tokens.ts +321 -0
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
// daisyui — generated by @sigx/zero-kit. Do not edit.
|
|
2
|
+
//
|
|
3
|
+
// Augments @sigx/zero's ZeroVocabulary with this design system's compiled
|
|
4
|
+
// vocabulary. Opt in with: import '@sigx/<ds>/register';
|
|
5
|
+
declare module '@sigx/zero' {
|
|
6
|
+
interface ZeroVocabulary {
|
|
7
|
+
theme: 'light' | 'dark' | 'dim' | 'nord' | 'sunset';
|
|
8
|
+
breakpoint: never;
|
|
9
|
+
property: '--border' | '--color-accent' | '--color-accent-content' | '--color-accent-soft' | '--color-base-100' | '--color-base-200' | '--color-base-300' | '--color-base-content' | '--color-error' | '--color-error-content' | '--color-error-soft' | '--color-info' | '--color-info-content' | '--color-info-soft' | '--color-neutral' | '--color-neutral-content' | '--color-neutral-soft' | '--color-primary' | '--color-primary-content' | '--color-primary-soft' | '--color-secondary' | '--color-secondary-content' | '--color-secondary-soft' | '--color-success' | '--color-success-content' | '--color-success-soft' | '--color-warning' | '--color-warning-content' | '--color-warning-soft' | '--depth' | '--depth-shade' | '--depth-sheen' | '--disabled-opacity' | '--duration-fast' | '--duration-instant' | '--duration-normal' | '--duration-slow' | '--ease-standard' | '--font-mono' | '--font-sans' | '--fx-noise' | '--leading-none' | '--leading-normal' | '--leading-tight' | '--noise' | '--radius-box' | '--radius-field' | '--radius-selector' | '--shadow-lg' | '--shadow-md' | '--shadow-sm' | '--shadow-xl' | '--shadow-xs' | '--size-field' | '--size-selector' | '--space-2xl' | '--space-2xs' | '--space-lg' | '--space-md' | '--space-sm' | '--space-xl' | '--space-xs' | '--tracking-normal' | '--tracking-wide' | '--weight-bold' | '--weight-medium' | '--weight-normal' | '--weight-semibold';
|
|
10
|
+
tokens: {
|
|
11
|
+
radius: 'selector' | 'field' | 'box';
|
|
12
|
+
size: 'selector' | 'field';
|
|
13
|
+
font: 'sans' | 'serif' | 'mono' | 'display';
|
|
14
|
+
text: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
15
|
+
weight: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
16
|
+
leading: 'none' | 'tight' | 'normal' | 'relaxed';
|
|
17
|
+
tracking: 'tight' | 'normal' | 'wide';
|
|
18
|
+
space: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
19
|
+
shadow: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20
|
+
duration: 'instant' | 'fast' | 'normal' | 'slow';
|
|
21
|
+
ease: 'linear' | 'standard' | 'emphasized';
|
|
22
|
+
};
|
|
23
|
+
components: {
|
|
24
|
+
/** tabs — color, size wired. */
|
|
25
|
+
'tabs': {
|
|
26
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
27
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
28
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
29
|
+
variant: never;
|
|
30
|
+
axes: Record<string, never>;
|
|
31
|
+
mods: Record<string, never>;
|
|
32
|
+
};
|
|
33
|
+
/** collapsible — color, size wired. */
|
|
34
|
+
'collapsible': {
|
|
35
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
36
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
37
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
38
|
+
variant: never;
|
|
39
|
+
axes: Record<string, never>;
|
|
40
|
+
mods: Record<string, never>;
|
|
41
|
+
};
|
|
42
|
+
/** switch — color, size wired. */
|
|
43
|
+
'switch': {
|
|
44
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
45
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
46
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
47
|
+
variant: never;
|
|
48
|
+
axes: Record<string, never>;
|
|
49
|
+
mods: Record<string, never>;
|
|
50
|
+
};
|
|
51
|
+
/** dialog — color, size wired. */
|
|
52
|
+
'dialog': {
|
|
53
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
54
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
55
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
56
|
+
variant: never;
|
|
57
|
+
axes: Record<string, never>;
|
|
58
|
+
mods: Record<string, never>;
|
|
59
|
+
};
|
|
60
|
+
/** popover — color, size wired. */
|
|
61
|
+
'popover': {
|
|
62
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
63
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
64
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
65
|
+
variant: never;
|
|
66
|
+
axes: Record<string, never>;
|
|
67
|
+
mods: Record<string, never>;
|
|
68
|
+
};
|
|
69
|
+
/** tooltip — color, size wired. */
|
|
70
|
+
'tooltip': {
|
|
71
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
72
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
73
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
74
|
+
variant: never;
|
|
75
|
+
axes: Record<string, never>;
|
|
76
|
+
mods: Record<string, never>;
|
|
77
|
+
};
|
|
78
|
+
/** menu — color, size wired. */
|
|
79
|
+
'menu': {
|
|
80
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
81
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
82
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
83
|
+
variant: never;
|
|
84
|
+
axes: Record<string, never>;
|
|
85
|
+
mods: Record<string, never>;
|
|
86
|
+
};
|
|
87
|
+
/** field — color, size wired. */
|
|
88
|
+
'field': {
|
|
89
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
90
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
91
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
92
|
+
variant: never;
|
|
93
|
+
axes: Record<string, never>;
|
|
94
|
+
mods: Record<string, never>;
|
|
95
|
+
};
|
|
96
|
+
/** checkbox — color, size wired. */
|
|
97
|
+
'checkbox': {
|
|
98
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
99
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
100
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
101
|
+
variant: never;
|
|
102
|
+
axes: Record<string, never>;
|
|
103
|
+
mods: Record<string, never>;
|
|
104
|
+
};
|
|
105
|
+
/** radio-group — color, size wired. */
|
|
106
|
+
'radio-group': {
|
|
107
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
108
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
109
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
110
|
+
variant: never;
|
|
111
|
+
axes: Record<string, never>;
|
|
112
|
+
mods: Record<string, never>;
|
|
113
|
+
};
|
|
114
|
+
/** progress — color, size wired. */
|
|
115
|
+
'progress': {
|
|
116
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
117
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
118
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
119
|
+
variant: never;
|
|
120
|
+
axes: Record<string, never>;
|
|
121
|
+
mods: Record<string, never>;
|
|
122
|
+
};
|
|
123
|
+
/** slider — color, size wired. */
|
|
124
|
+
'slider': {
|
|
125
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
126
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
127
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
128
|
+
variant: never;
|
|
129
|
+
axes: Record<string, never>;
|
|
130
|
+
mods: Record<string, never>;
|
|
131
|
+
};
|
|
132
|
+
/** accordion — color, size wired. */
|
|
133
|
+
'accordion': {
|
|
134
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
135
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
136
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
137
|
+
variant: never;
|
|
138
|
+
axes: Record<string, never>;
|
|
139
|
+
mods: Record<string, never>;
|
|
140
|
+
};
|
|
141
|
+
/** select — color, size wired. */
|
|
142
|
+
'select': {
|
|
143
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
144
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
145
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
146
|
+
variant: never;
|
|
147
|
+
axes: Record<string, never>;
|
|
148
|
+
mods: Record<string, never>;
|
|
149
|
+
};
|
|
150
|
+
/** button — color, size, variant, mods.active, mods.block, mods.circle, mods.loading, mods.square, mods.wide wired. */
|
|
151
|
+
'button': {
|
|
152
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
153
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
154
|
+
variant: 'solid' | 'outline' | 'soft' | 'ghost' | 'dash' | 'link';
|
|
155
|
+
axes: Record<string, never>;
|
|
156
|
+
mods: { 'active': boolean; 'block': boolean; 'circle': boolean; 'loading': boolean; 'square': boolean; 'wide': boolean };
|
|
157
|
+
};
|
|
158
|
+
/** avatar — color, size wired. */
|
|
159
|
+
'avatar': {
|
|
160
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
161
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
162
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
163
|
+
variant: never;
|
|
164
|
+
axes: Record<string, never>;
|
|
165
|
+
mods: Record<string, never>;
|
|
166
|
+
};
|
|
167
|
+
/** toast — color, size wired. */
|
|
168
|
+
'toast': {
|
|
169
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
170
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
171
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
172
|
+
variant: never;
|
|
173
|
+
axes: Record<string, never>;
|
|
174
|
+
mods: Record<string, never>;
|
|
175
|
+
};
|
|
176
|
+
/** combobox — color, size wired. */
|
|
177
|
+
'combobox': {
|
|
178
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
179
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
180
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
181
|
+
variant: never;
|
|
182
|
+
axes: Record<string, never>;
|
|
183
|
+
mods: Record<string, never>;
|
|
184
|
+
};
|
|
185
|
+
/** toggle — color, size wired. */
|
|
186
|
+
'toggle': {
|
|
187
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
188
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
189
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
190
|
+
variant: never;
|
|
191
|
+
axes: Record<string, never>;
|
|
192
|
+
mods: Record<string, never>;
|
|
193
|
+
};
|
|
194
|
+
/** toggle-group — color, size wired. */
|
|
195
|
+
'toggle-group': {
|
|
196
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
197
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
198
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
199
|
+
variant: never;
|
|
200
|
+
axes: Record<string, never>;
|
|
201
|
+
mods: Record<string, never>;
|
|
202
|
+
};
|
|
203
|
+
/** number-input — color, size wired. */
|
|
204
|
+
'number-input': {
|
|
205
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
206
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
207
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
208
|
+
variant: never;
|
|
209
|
+
axes: Record<string, never>;
|
|
210
|
+
mods: Record<string, never>;
|
|
211
|
+
};
|
|
212
|
+
/** rating-group — color, size wired. */
|
|
213
|
+
'rating-group': {
|
|
214
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
215
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
216
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
217
|
+
variant: never;
|
|
218
|
+
axes: Record<string, never>;
|
|
219
|
+
mods: Record<string, never>;
|
|
220
|
+
};
|
|
221
|
+
/** tree-view — color, size wired. */
|
|
222
|
+
'tree-view': {
|
|
223
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
224
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
225
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
226
|
+
variant: never;
|
|
227
|
+
axes: Record<string, never>;
|
|
228
|
+
mods: Record<string, never>;
|
|
229
|
+
};
|
|
230
|
+
/** input — color, size wired. */
|
|
231
|
+
'input': {
|
|
232
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
233
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
234
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
235
|
+
variant: never;
|
|
236
|
+
axes: Record<string, never>;
|
|
237
|
+
mods: Record<string, never>;
|
|
238
|
+
};
|
|
239
|
+
/** textarea — color, size wired. */
|
|
240
|
+
'textarea': {
|
|
241
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
242
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
243
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
244
|
+
variant: never;
|
|
245
|
+
axes: Record<string, never>;
|
|
246
|
+
mods: Record<string, never>;
|
|
247
|
+
};
|
|
248
|
+
/** native-select — color, size wired. */
|
|
249
|
+
'native-select': {
|
|
250
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
251
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
252
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
253
|
+
variant: never;
|
|
254
|
+
axes: Record<string, never>;
|
|
255
|
+
mods: Record<string, never>;
|
|
256
|
+
};
|
|
257
|
+
/** card — color, size wired. */
|
|
258
|
+
'card': {
|
|
259
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
260
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
261
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
262
|
+
variant: never;
|
|
263
|
+
axes: Record<string, never>;
|
|
264
|
+
mods: Record<string, never>;
|
|
265
|
+
};
|
|
266
|
+
/** alert — color, size wired. */
|
|
267
|
+
'alert': {
|
|
268
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
269
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
270
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
271
|
+
variant: never;
|
|
272
|
+
axes: Record<string, never>;
|
|
273
|
+
mods: Record<string, never>;
|
|
274
|
+
};
|
|
275
|
+
/** badge — color, size wired. */
|
|
276
|
+
'badge': {
|
|
277
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
278
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
279
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
280
|
+
variant: never;
|
|
281
|
+
axes: Record<string, never>;
|
|
282
|
+
mods: Record<string, never>;
|
|
283
|
+
};
|
|
284
|
+
/** divider — color, size wired. */
|
|
285
|
+
'divider': {
|
|
286
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
287
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
288
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
289
|
+
variant: never;
|
|
290
|
+
axes: Record<string, never>;
|
|
291
|
+
mods: Record<string, never>;
|
|
292
|
+
};
|
|
293
|
+
/** skeleton — color, size wired. */
|
|
294
|
+
'skeleton': {
|
|
295
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
296
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
297
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
298
|
+
variant: never;
|
|
299
|
+
axes: Record<string, never>;
|
|
300
|
+
mods: Record<string, never>;
|
|
301
|
+
};
|
|
302
|
+
/** spinner — color, size wired. */
|
|
303
|
+
'spinner': {
|
|
304
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
305
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
306
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
307
|
+
variant: never;
|
|
308
|
+
axes: Record<string, never>;
|
|
309
|
+
mods: Record<string, never>;
|
|
310
|
+
};
|
|
311
|
+
/** kbd — color, size wired. */
|
|
312
|
+
'kbd': {
|
|
313
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
314
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
315
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
316
|
+
variant: never;
|
|
317
|
+
axes: Record<string, never>;
|
|
318
|
+
mods: Record<string, never>;
|
|
319
|
+
};
|
|
320
|
+
/** status — color, size wired. */
|
|
321
|
+
'status': {
|
|
322
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
323
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
324
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
325
|
+
variant: never;
|
|
326
|
+
axes: Record<string, never>;
|
|
327
|
+
mods: Record<string, never>;
|
|
328
|
+
};
|
|
329
|
+
/** indicator — color, size wired. */
|
|
330
|
+
'indicator': {
|
|
331
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
332
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
333
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
334
|
+
variant: never;
|
|
335
|
+
axes: Record<string, never>;
|
|
336
|
+
mods: Record<string, never>;
|
|
337
|
+
};
|
|
338
|
+
/** stats — color, size wired. */
|
|
339
|
+
'stats': {
|
|
340
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
341
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
342
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
343
|
+
variant: never;
|
|
344
|
+
axes: Record<string, never>;
|
|
345
|
+
mods: Record<string, never>;
|
|
346
|
+
};
|
|
347
|
+
/** timeline — color, size wired. */
|
|
348
|
+
'timeline': {
|
|
349
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
350
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
351
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
352
|
+
variant: never;
|
|
353
|
+
axes: Record<string, never>;
|
|
354
|
+
mods: Record<string, never>;
|
|
355
|
+
};
|
|
356
|
+
/** chat — color, size wired. */
|
|
357
|
+
'chat': {
|
|
358
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
359
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
360
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
361
|
+
variant: never;
|
|
362
|
+
axes: Record<string, never>;
|
|
363
|
+
mods: Record<string, never>;
|
|
364
|
+
};
|
|
365
|
+
/** radial-progress — color, size wired. */
|
|
366
|
+
'radial-progress': {
|
|
367
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
368
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
369
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
370
|
+
variant: never;
|
|
371
|
+
axes: Record<string, never>;
|
|
372
|
+
mods: Record<string, never>;
|
|
373
|
+
};
|
|
374
|
+
/** join — color, size wired. */
|
|
375
|
+
'join': {
|
|
376
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
377
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
378
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
379
|
+
variant: never;
|
|
380
|
+
axes: Record<string, never>;
|
|
381
|
+
mods: Record<string, never>;
|
|
382
|
+
};
|
|
383
|
+
/** navbar — color, size wired. */
|
|
384
|
+
'navbar': {
|
|
385
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
386
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
387
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
388
|
+
variant: never;
|
|
389
|
+
axes: Record<string, never>;
|
|
390
|
+
mods: Record<string, never>;
|
|
391
|
+
};
|
|
392
|
+
/** breadcrumbs — color, size wired. */
|
|
393
|
+
'breadcrumbs': {
|
|
394
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
395
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
396
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
397
|
+
variant: never;
|
|
398
|
+
axes: Record<string, never>;
|
|
399
|
+
mods: Record<string, never>;
|
|
400
|
+
};
|
|
401
|
+
/** pagination — color, size wired. */
|
|
402
|
+
'pagination': {
|
|
403
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
404
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
405
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
406
|
+
variant: never;
|
|
407
|
+
axes: Record<string, never>;
|
|
408
|
+
mods: Record<string, never>;
|
|
409
|
+
};
|
|
410
|
+
/** steps — color, size wired. */
|
|
411
|
+
'steps': {
|
|
412
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
413
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
414
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
415
|
+
variant: never;
|
|
416
|
+
axes: Record<string, never>;
|
|
417
|
+
mods: Record<string, never>;
|
|
418
|
+
};
|
|
419
|
+
/** drawer — color, size wired. */
|
|
420
|
+
'drawer': {
|
|
421
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
422
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
423
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
424
|
+
variant: never;
|
|
425
|
+
axes: Record<string, never>;
|
|
426
|
+
mods: Record<string, never>;
|
|
427
|
+
};
|
|
428
|
+
/** table — color, size, mods.hover, mods.zebra wired. */
|
|
429
|
+
'table': {
|
|
430
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
431
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
432
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
433
|
+
variant: never;
|
|
434
|
+
axes: Record<string, never>;
|
|
435
|
+
mods: { 'hover': boolean; 'zebra': boolean };
|
|
436
|
+
};
|
|
437
|
+
/** file-upload — color, size wired. */
|
|
438
|
+
'file-upload': {
|
|
439
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
440
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
441
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
442
|
+
variant: never;
|
|
443
|
+
axes: Record<string, never>;
|
|
444
|
+
mods: Record<string, never>;
|
|
445
|
+
};
|
|
446
|
+
/** carousel — color, size wired. */
|
|
447
|
+
'carousel': {
|
|
448
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
449
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
450
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
451
|
+
variant: never;
|
|
452
|
+
axes: Record<string, never>;
|
|
453
|
+
mods: Record<string, never>;
|
|
454
|
+
};
|
|
455
|
+
/** swap — color, size wired. */
|
|
456
|
+
'swap': {
|
|
457
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
458
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
459
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
460
|
+
variant: never;
|
|
461
|
+
axes: Record<string, never>;
|
|
462
|
+
mods: Record<string, never>;
|
|
463
|
+
};
|
|
464
|
+
/** countdown — color, size wired. */
|
|
465
|
+
'countdown': {
|
|
466
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
467
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
468
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
469
|
+
variant: never;
|
|
470
|
+
axes: Record<string, never>;
|
|
471
|
+
mods: Record<string, never>;
|
|
472
|
+
};
|
|
473
|
+
/** diff — color, size wired. */
|
|
474
|
+
'diff': {
|
|
475
|
+
color: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
476
|
+
size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
477
|
+
/** Accepts `variant` at runtime, but no daisyui recipe wires it — the attribute would match nothing. */
|
|
478
|
+
variant: never;
|
|
479
|
+
axes: Record<string, never>;
|
|
480
|
+
mods: Record<string, never>;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// Fails to compile if a scope above is not in zero's anatomy registry
|
|
487
|
+
// (a typo or a version skew would otherwise silently take the open
|
|
488
|
+
// fallback — docs/architecture.md, "The register artifact").
|
|
489
|
+
type _MustBeTrue<T extends true> = T;
|
|
490
|
+
type _ScopesValid = _MustBeTrue<
|
|
491
|
+
keyof import('@sigx/zero').ZeroVocabulary['components'] extends import('@sigx/zero').ZeroScope
|
|
492
|
+
? true : false
|
|
493
|
+
>;
|
|
494
|
+
// Fails to compile if any entry above drops one of the five members.
|
|
495
|
+
// A dropped key is not a smaller entry: the vocabulary resolvers fall
|
|
496
|
+
// back to the OPEN union for a member they cannot find, so a truncated
|
|
497
|
+
// entry silently un-narrows the axis it omitted (#316).
|
|
498
|
+
type _EntryShape = {
|
|
499
|
+
color: string; size: string; variant: string;
|
|
500
|
+
axes: Record<string, string>; mods: Record<string, boolean>;
|
|
501
|
+
};
|
|
502
|
+
type _Entries = import('@sigx/zero').ZeroVocabulary['components'];
|
|
503
|
+
type _EntriesValid = _MustBeTrue<
|
|
504
|
+
{ [K in keyof _Entries]: _Entries[K] extends _EntryShape ? true : false }[keyof _Entries] extends true
|
|
505
|
+
? true : false
|
|
506
|
+
>;
|
|
507
|
+
export {};
|
package/dist/register.js
ADDED