@sigx/zero-daisyui 0.2.0-beta.3 → 0.2.0-beta.5

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.
Files changed (58) hide show
  1. package/README.md +8 -0
  2. package/dist/components.d.ts +3 -2
  3. package/dist/css/components/button.css +6 -0
  4. package/dist/css/components/tabs.css +191 -19
  5. package/dist/css/index.css +197 -19
  6. package/dist/lynx/components/alert.css +1 -1
  7. package/dist/lynx/components/avatar.css +22 -7
  8. package/dist/lynx/components/badge.css +1 -1
  9. package/dist/lynx/components/button.css +6 -1
  10. package/dist/lynx/components/checkbox.css +25 -10
  11. package/dist/lynx/components/combobox.css +2 -2
  12. package/dist/lynx/components/countdown.css +1 -1
  13. package/dist/lynx/components/dialog.css +3 -3
  14. package/dist/lynx/components/divider.css +18 -19
  15. package/dist/lynx/components/drawer.css +2 -2
  16. package/dist/lynx/components/file-upload.css +18 -7
  17. package/dist/lynx/components/indicator.css +1 -1
  18. package/dist/lynx/components/input.css +2 -2
  19. package/dist/lynx/components/join.css +1 -1
  20. package/dist/lynx/components/kbd.css +1 -1
  21. package/dist/lynx/components/menu.css +1 -1
  22. package/dist/lynx/components/native-select.css +1 -1
  23. package/dist/lynx/components/number-input.css +2 -2
  24. package/dist/lynx/components/pagination.css +92 -23
  25. package/dist/lynx/components/popover.css +2 -2
  26. package/dist/lynx/components/progress.css +17 -25
  27. package/dist/lynx/components/radial-progress.css +22 -24
  28. package/dist/lynx/components/radio-group.css +26 -11
  29. package/dist/lynx/components/rating-group.css +19 -23
  30. package/dist/lynx/components/select.css +2 -2
  31. package/dist/lynx/components/slider.css +3 -0
  32. package/dist/lynx/components/spinner.css +22 -19
  33. package/dist/lynx/components/status.css +27 -20
  34. package/dist/lynx/components/steps.css +67 -18
  35. package/dist/lynx/components/switch.css +79 -37
  36. package/dist/lynx/components/table.css +51 -8
  37. package/dist/lynx/components/tabs.css +383 -21
  38. package/dist/lynx/components/textarea.css +1 -1
  39. package/dist/lynx/components/timeline.css +27 -20
  40. package/dist/lynx/components/toggle-group.css +2 -2
  41. package/dist/lynx/components/toggle.css +1 -1
  42. package/dist/lynx/components/tooltip.css +1 -1
  43. package/dist/lynx/index.css +952 -321
  44. package/dist/lynx/manifest.json +33 -7
  45. package/dist/manifest.json +31 -5
  46. package/dist/recipes.d.ts +28 -0
  47. package/dist/recipes.d.ts.map +1 -1
  48. package/dist/recipes.js +522 -80
  49. package/dist/recipes.js.map +1 -1
  50. package/dist/register.d.ts +2 -3
  51. package/dist/report.json +401 -44
  52. package/dist/tokens.d.ts +17 -5
  53. package/dist/tokens.d.ts.map +1 -1
  54. package/dist/tokens.js +22 -8
  55. package/dist/tokens.js.map +1 -1
  56. package/package.json +4 -4
  57. package/src/recipes.ts +527 -81
  58. package/src/tokens.ts +24 -8
package/src/tokens.ts CHANGED
@@ -112,17 +112,31 @@ const fx = (depth: '0' | '1'): Record<string, string> => ({
112
112
  });
113
113
 
114
114
  /**
115
- * The `variant` axis vocabulary — what button's variants.variant keys on.
115
+ * Button's `variant` vocabulary — what button's variants.variant keys on.
116
116
  * Declared so a recipe typo is a build error, not a minted value; exported
117
117
  * `as const` so `defineApi` can narrow the api declaration against it.
118
118
  *
119
119
  * `dash` and `link` are daisyUI 5's `btn-dash` / `btn-link` (#332). daisy
120
120
  * documents `dash` (with `outline` and `soft`) on badge and alert too, but
121
- * this package wires `variant` on button only — the repo-wide decision
122
- * (#175) — so the union below IS button's vocabulary, and the `scopes`
123
- * entry makes that claim explicit.
121
+ * this package wires them on button only — the repo-wide decision (#175) —
122
+ * and the `scopes` entry makes that claim explicit.
124
123
  */
125
- export const variants = ['solid', 'outline', 'soft', 'ghost', 'dash', 'link'] as const;
124
+ export const buttonVariants = ['solid', 'outline', 'soft', 'ghost', 'dash', 'link'] as const;
125
+
126
+ /**
127
+ * Tabs' `variant` vocabulary — daisy's three tab flavors (#377):
128
+ * `tabs-border` (underline, daisy's default look), `tabs-lift`, `tabs-box`.
129
+ * Its own set rather than a widening of button's: a `border` button or a
130
+ * `solid` tab is a word with no box, and the per-scope claims below keep
131
+ * each recipe answerable only for its own flavors.
132
+ */
133
+ export const tabVariants = ['border', 'lift', 'box'] as const;
134
+
135
+ /**
136
+ * The design-system-wide `variant` axis vocabulary — the union of the
137
+ * per-scope sets; `scopes` narrows each scope back to its own.
138
+ */
139
+ export const variants = [...buttonVariants, ...tabVariants] as const;
126
140
 
127
141
  /**
128
142
  * daisyUI 5's button modifier set (#332), each a documented `btn-*` class:
@@ -153,17 +167,19 @@ export const tokens: TokensInput<typeof roles, typeof system> = {
153
167
  modifiers: [...modifiers, ...tableModifiers],
154
168
  /**
155
169
  * Per-scope vocabulary claims (#294). Button wires `variant` and the
156
- * `btn-*` modifier set (#175); restating that union is the explicit
170
+ * `btn-*` modifier set (#175); restating its union is the explicit
157
171
  * claim "yes, button carries all of it", the same grammar zero-basic's
158
172
  * button entry uses. Table (#340) narrows to its own two looks — the
159
- * "later scope adopts part of the axis" case this block predicted.
173
+ * "later scope adopts part of the axis" case this block predicted —
174
+ * and tabs (#377) carries the three flavors and nothing of button's.
160
175
  */
161
176
  scopes: {
162
177
  button: {
163
- variants: [...variants],
178
+ variants: [...buttonVariants],
164
179
  modifiers: [...modifiers],
165
180
  },
166
181
  table: { modifiers: [...tableModifiers] },
182
+ tabs: { variants: [...tabVariants] },
167
183
  },
168
184
  system,
169
185
  defaultLight: 'light',