@valiify/dashboard-ui 0.1.1 → 0.2.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +411 -4
  2. package/CLAUDE.md +809 -768
  3. package/COMPONENTS.md +520 -520
  4. package/GETTING_STARTED.md +14 -14
  5. package/QUICK_REFERENCE.md +22 -22
  6. package/README.md +28 -6
  7. package/TROUBLESHOOTING.md +6 -6
  8. package/class-manifest.json +664 -0
  9. package/design-methodology/dashboard.md +496 -0
  10. package/dist/dashboard-ui.css +4897 -0
  11. package/dist/index.css +502 -502
  12. package/examples/basic/index.html +8 -8
  13. package/examples/daisyui-starter/README.md +35 -0
  14. package/examples/daisyui-starter/check-no-bleed.mjs +81 -0
  15. package/examples/daisyui-starter/index.html +45 -0
  16. package/examples/daisyui-starter/package-lock.json +2221 -0
  17. package/examples/daisyui-starter/package.json +22 -0
  18. package/examples/daisyui-starter/postcss.config.js +1 -0
  19. package/examples/daisyui-starter/src/styles.css +20 -0
  20. package/examples/daisyui-starter/tailwind.config.js +12 -0
  21. package/examples/postcss-starter/index.html +8 -8
  22. package/examples/postcss-starter/package.json +1 -1
  23. package/examples/vite-starter/README.md +4 -4
  24. package/examples/vite-starter/package.json +1 -1
  25. package/examples/vite-starter/src/main.js +41 -41
  26. package/package.json +23 -4
  27. package/src/build/components.css +29 -0
  28. package/src/build/utilities.css +42 -0
  29. package/src/components/ICON-SYSTEM.md +39 -39
  30. package/src/components/alert.css +26 -26
  31. package/src/components/avatar.css +9 -9
  32. package/src/components/breadcrumbs.css +15 -15
  33. package/src/components/button.css +21 -21
  34. package/src/components/card.css +10 -10
  35. package/src/components/checkbox.css +21 -21
  36. package/src/components/chip.css +43 -43
  37. package/src/components/data-row.css +19 -19
  38. package/src/components/divider.css +23 -23
  39. package/src/components/dropdown-field.css +34 -34
  40. package/src/components/dropdown-menu.css +12 -12
  41. package/src/components/field-verification.css +25 -25
  42. package/src/components/filter-segment.css +20 -20
  43. package/src/components/icon-button.css +11 -11
  44. package/src/components/icon.css +18 -18
  45. package/src/components/input.css +29 -29
  46. package/src/components/link.css +28 -28
  47. package/src/components/loading-indicator.css +20 -20
  48. package/src/components/loading-inline.css +8 -8
  49. package/src/components/menu-item.css +28 -28
  50. package/src/components/modal.css +36 -36
  51. package/src/components/navigation-rail.css +95 -95
  52. package/src/components/pagination-item.css +22 -22
  53. package/src/components/pagination.css +24 -24
  54. package/src/components/pill.css +14 -14
  55. package/src/components/progress-bar.css +28 -28
  56. package/src/components/radio-select.css +13 -13
  57. package/src/components/section-marker.css +12 -12
  58. package/src/components/segment-selector.css +9 -9
  59. package/src/components/sensitive-data.css +8 -8
  60. package/src/components/skeleton.css +29 -29
  61. package/src/components/step.css +14 -14
  62. package/src/components/stepper.css +15 -15
  63. package/src/components/switch.css +12 -12
  64. package/src/components/tabs.css +40 -40
  65. package/src/components/tag.css +20 -20
  66. package/src/components/text-button.css +24 -24
  67. package/src/components/textarea.css +23 -23
  68. package/src/components/toast.css +29 -29
  69. package/src/components/tooltip.css +11 -11
  70. package/src/icons/README.md +16 -10
  71. package/src/icons/sprite.svg +1 -1
  72. package/src/themes/valiify-tokens.css +285 -0
  73. package/src/themes/valiify-type-prefixed.css +37 -0
  74. package/src/utilities/index.css +1 -1
  75. package/src/utility-surface.css +321 -0
  76. package/types/components.d.ts +235 -236
@@ -171,16 +171,16 @@ fetch(spriteUrl)
171
171
  ### Step 6: Use Components
172
172
 
173
173
  ```html
174
- <button class="btn btn-primary">Click me</button>
174
+ <button class="vd-btn vd-btn-primary">Click me</button>
175
175
 
176
- <div class="input-container">
177
- <div class="input-field">
178
- <input type="text" class="input" placeholder="Enter text..." />
176
+ <div class="vd-input-container">
177
+ <div class="vd-input-field">
178
+ <input type="text" class="vd-input" placeholder="Enter text..." />
179
179
  </div>
180
180
  </div>
181
181
 
182
- <span class="chip chip-success">
183
- <span class="chip-dot"></span>
182
+ <span class="vd-chip vd-chip-success">
183
+ <span class="vd-chip-dot"></span>
184
184
  <span>Approved</span>
185
185
  </span>
186
186
  ```
@@ -245,15 +245,15 @@ Many components require wrapper elements:
245
245
  **This looks broken:**
246
246
 
247
247
  ```html
248
- <input class="input" />
248
+ <input class="vd-input" />
249
249
  ```
250
250
 
251
251
  **This works:**
252
252
 
253
253
  ```html
254
- <div class="input-container">
255
- <div class="input-field">
256
- <input class="input" />
254
+ <div class="vd-input-container">
255
+ <div class="vd-input-field">
256
+ <input class="vd-input" />
257
257
  </div>
258
258
  </div>
259
259
  ```
@@ -270,7 +270,7 @@ import "./styles.css";
270
270
 
271
271
  function App() {
272
272
  return (
273
- <button className="btn btn-primary">
273
+ <button className="vd-btn vd-btn-primary">
274
274
  Click me
275
275
  </button>
276
276
  );
@@ -285,7 +285,7 @@ import "./styles.css";
285
285
  </script>
286
286
 
287
287
  <template>
288
- <button class="btn btn-primary">Click me</button>
288
+ <button class="vd-btn vd-btn-primary">Click me</button>
289
289
  </template>
290
290
  ```
291
291
 
@@ -296,7 +296,7 @@ import "./styles.css";
296
296
  import "./styles.css";
297
297
  </script>
298
298
 
299
- <button class="btn btn-primary">Click me</button>
299
+ <button class="vd-btn vd-btn-primary">Click me</button>
300
300
  ```
301
301
 
302
302
  ### Next.js (App Router)
@@ -383,7 +383,7 @@ Either:
383
383
  **Recommended approach:**
384
384
 
385
385
  ```html
386
- <dialog class="modal modal-positive">
386
+ <dialog class="vd-modal vd-modal-positive">
387
387
  <!-- modal content -->
388
388
  </dialog>
389
389
 
@@ -38,29 +38,29 @@ fetch(spriteUrl).then(r => r.text()).then(svg => {
38
38
 
39
39
  **Button:**
40
40
  ```html
41
- <button class="btn btn-primary">Save</button>
42
- <button class="btn btn-outline btn-sm">Cancel</button>
41
+ <button class="vd-btn vd-btn-primary">Save</button>
42
+ <button class="vd-btn vd-btn-outline vd-btn-sm">Cancel</button>
43
43
  ```
44
44
 
45
45
  **Input:**
46
46
  ```html
47
- <div class="input-container">
48
- <div class="input-field">
49
- <input type="text" class="input" placeholder="Enter text..." />
47
+ <div class="vd-input-container">
48
+ <div class="vd-input-field">
49
+ <input type="text" class="vd-input" placeholder="Enter text..." />
50
50
  </div>
51
51
  </div>
52
52
  ```
53
53
 
54
54
  **Alert:**
55
55
  ```html
56
- <div class="alert alert-warning" role="alert">
57
- <div class="alert-body">
58
- <svg class="alert-icon icon icon-size-18" aria-hidden="true">
56
+ <div class="vd-alert vd-alert-warning" role="alert">
57
+ <div class="vd-alert-body">
58
+ <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
59
59
  <use href="#info" />
60
60
  </svg>
61
- <div class="alert-content">
62
- <p class="alert-title">Warning</p>
63
- <p class="alert-message">Message here</p>
61
+ <div class="vd-alert-content">
62
+ <p class="vd-alert-title">Warning</p>
63
+ <p class="vd-alert-message">Message here</p>
64
64
  </div>
65
65
  </div>
66
66
  </div>
@@ -68,8 +68,8 @@ fetch(spriteUrl).then(r => r.text()).then(svg => {
68
68
 
69
69
  **Chip:**
70
70
  ```html
71
- <span class="chip chip-success">
72
- <span class="chip-dot"></span>
71
+ <span class="vd-chip vd-chip-success">
72
+ <span class="vd-chip-dot"></span>
73
73
  <span>Approved</span>
74
74
  </span>
75
75
  ```
@@ -77,23 +77,23 @@ fetch(spriteUrl).then(r => r.text()).then(svg => {
77
77
  ## Dropdown (Minimal JS)
78
78
 
79
79
  ```html
80
- <div class="dropdown">
80
+ <div class="vd-dropdown">
81
81
  <button
82
82
  id="trigger"
83
- class="dropdown-field"
83
+ class="vd-dropdown-field"
84
84
  aria-haspopup="listbox"
85
85
  aria-expanded="false"
86
86
  >
87
- <span class="dropdown-field-placeholder">Select...</span>
88
- <svg class="dropdown-field-chevron icon icon-size-14" aria-hidden="true">
87
+ <span class="vd-dropdown-field-placeholder">Select...</span>
88
+ <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
89
89
  <use href="#chevron-down" />
90
90
  </svg>
91
91
  </button>
92
- <div id="panel" class="dropdown-panel" hidden>
93
- <div class="dropdown-menu" role="listbox">
94
- <button class="menu-item" role="option" data-value="1">
95
- <span class="menu-item-text">
96
- <span class="menu-item-title">Option 1</span>
92
+ <div id="panel" class="vd-dropdown-panel" hidden>
93
+ <div class="vd-dropdown-menu" role="listbox">
94
+ <button class="vd-menu-item" role="option" data-value="1">
95
+ <span class="vd-menu-item-text">
96
+ <span class="vd-menu-item-title">Option 1</span>
97
97
  </span>
98
98
  </button>
99
99
  </div>
package/README.md CHANGED
@@ -33,6 +33,28 @@ Open [http://localhost:5173](http://localhost:5173) - if you see styled componen
33
33
 
34
34
  **Or:** See the [complete installation guide](GETTING_STARTED.md) for manual setup with any build tool.
35
35
 
36
+ ## Entry points
37
+
38
+ | Import | Use it when |
39
+ | --- | --- |
40
+ | `@valiify/dashboard-ui/styles.css` | dropping the library into a host app that already has a reset — **no Preflight, no `html` rule**, closed `vd:` utility set |
41
+ | `@valiify/dashboard-ui` | a standalone page where our Preflight is welcome |
42
+ | `@valiify/dashboard-ui/source` | your Tailwind compiles our `@theme`, giving every token utility |
43
+
44
+ Component classes are namespaced: `.vd-btn`, `.vd-card-title`, `.vd-input-field`.
45
+ The generated list ships as `@valiify/dashboard-ui/manifest`.
46
+
47
+ ```css
48
+ /* a host app — the @import must come FIRST, CSS discards a later one */
49
+ @import "@valiify/dashboard-ui/styles.css";
50
+ @tailwind base;
51
+ @tailwind components;
52
+ @tailwind utilities;
53
+ ```
54
+
55
+ See `examples/daisyui-starter/` for a working Tailwind 3 + daisyUI 4 setup with an
56
+ automated no-bleed check.
57
+
36
58
  ## Installation
37
59
 
38
60
  ### Step 1: Install Packages
@@ -140,16 +162,16 @@ fetch(spriteUrl)
140
162
  ### Step 6: Use Components
141
163
 
142
164
  ```html
143
- <button class="btn btn-primary">Click me</button>
165
+ <button class="vd-btn vd-btn-primary">Click me</button>
144
166
 
145
- <div class="input-container">
146
- <div class="input-field">
147
- <input type="text" class="input" placeholder="Enter text..." />
167
+ <div class="vd-input-container">
168
+ <div class="vd-input-field">
169
+ <input type="text" class="vd-input" placeholder="Enter text..." />
148
170
  </div>
149
171
  </div>
150
172
 
151
- <span class="chip chip-success">
152
- <span class="chip-dot"></span>
173
+ <span class="vd-chip vd-chip-success">
174
+ <span class="vd-chip-dot"></span>
153
175
  <span>Approved</span>
154
176
  </span>
155
177
  ```
@@ -209,14 +209,14 @@ Missing wrapper elements or incorrect markup structure.
209
209
 
210
210
  ❌ **Wrong:**
211
211
  ```html
212
- <input class="input" />
212
+ <input class="vd-input" />
213
213
  ```
214
214
 
215
215
  ✅ **Correct:**
216
216
  ```html
217
- <div class="input-container">
218
- <div class="input-field">
219
- <input class="input" />
217
+ <div class="vd-input-container">
218
+ <div class="vd-input-field">
219
+ <input class="vd-input" />
220
220
  </div>
221
221
  </div>
222
222
  ```
@@ -263,7 +263,7 @@ See `examples/vite-starter/src/main.js` for a complete working dropdown implemen
263
263
  **For modals:** Use native `<dialog>` instead:
264
264
 
265
265
  ```html
266
- <dialog class="modal modal-positive">
266
+ <dialog class="vd-modal vd-modal-positive">
267
267
  <!-- content -->
268
268
  </dialog>
269
269
 
@@ -387,7 +387,7 @@ Designer-blocked. This is a token-level issue, not a CSS bug. See `docs/accessib
387
387
  For critical labels that must pass AA, override with a darker color:
388
388
 
389
389
  ```html
390
- <span class="input-label" style="color: var(--color-content-secondary);">
390
+ <span class="vd-input-label" style="color: var(--color-content-secondary);">
391
391
  Required Field
392
392
  </span>
393
393
  ```