@valiify/dashboard-ui 0.3.0 → 0.5.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/CHANGELOG.md +948 -10
- package/COMPONENTS.md +199 -79
- package/GETTING_STARTED.md +116 -54
- package/QUICK_REFERENCE.md +48 -30
- package/README.md +107 -85
- package/TROUBLESHOOTING.md +52 -34
- package/class-manifest.json +141 -71
- package/design-methodology/dashboard.md +92 -80
- package/dist/dashboard-ui.css +1529 -1078
- package/dist/index.css +1250 -732
- package/package.json +17 -10
- package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
- package/src/build/utilities.css +7 -10
- package/src/components/_template.css +12 -8
- package/src/components/alert.css +35 -8
- package/src/components/avatar.css +42 -30
- package/src/components/breadcrumbs.css +39 -22
- package/src/components/button.css +84 -14
- package/src/components/card.css +2 -2
- package/src/components/checkbox.css +16 -11
- package/src/components/chip.css +155 -79
- package/src/components/composer.css +145 -0
- package/src/components/data-row.css +10 -6
- package/src/components/divider.css +17 -22
- package/src/components/dropdown-field.css +83 -43
- package/src/components/dropdown-menu.css +80 -14
- package/src/components/field-verification.css +21 -5
- package/src/components/filter-segment.css +27 -8
- package/src/components/icon-button.css +49 -10
- package/src/components/index.css +2 -0
- package/src/components/input.css +88 -32
- package/src/components/link.css +27 -16
- package/src/components/loading-inline.css +15 -21
- package/src/components/menu-item.css +149 -49
- package/src/components/modal.css +8 -5
- package/src/components/navigation-rail.css +67 -31
- package/src/components/pagination-item.css +29 -28
- package/src/components/pagination.css +9 -14
- package/src/components/pill.css +16 -10
- package/src/components/progress-bar.css +8 -10
- package/src/components/radio-select.css +9 -2
- package/src/components/recipient-input.css +119 -0
- package/src/components/section-marker.css +5 -5
- package/src/components/segment-selector.css +9 -3
- package/src/components/sensitive-data.css +7 -5
- package/src/components/skeleton.css +18 -6
- package/src/components/step.css +15 -4
- package/src/components/stepper.css +3 -2
- package/src/components/switch.css +7 -0
- package/src/components/tabs.css +122 -28
- package/src/components/tag.css +156 -51
- package/src/components/text-button.css +54 -59
- package/src/components/textarea.css +87 -22
- package/src/components/toast.css +41 -15
- package/src/components/tooltip.css +13 -2
- package/src/fonts.css +2 -1
- package/src/library.css +1 -1
- package/src/reset.css +1 -1
- package/src/themes/valiify-tokens.css +101 -126
- package/src/themes/valiify.css +258 -157
- package/src/utility-surface.css +51 -49
- package/types/components.d.ts +145 -25
- package/CLAUDE.md +0 -3740
- package/examples/README.md +0 -198
- package/examples/basic/index.html +0 -155
- package/examples/daisyui-starter/README.md +0 -58
- package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
- package/examples/daisyui-starter/index.html +0 -72
- package/examples/daisyui-starter/linked.html +0 -74
- package/examples/daisyui-starter/package-lock.json +0 -2221
- package/examples/daisyui-starter/package.json +0 -22
- package/examples/daisyui-starter/postcss.config.js +0 -1
- package/examples/daisyui-starter/src/host.css +0 -14
- package/examples/daisyui-starter/src/only-import.css +0 -4
- package/examples/daisyui-starter/src/styles.css +0 -36
- package/examples/daisyui-starter/tailwind.config.js +0 -13
- package/examples/postcss-starter/README.md +0 -47
- package/examples/postcss-starter/index.html +0 -54
- package/examples/postcss-starter/package.json +0 -19
- package/examples/postcss-starter/postcss.config.js +0 -5
- package/examples/postcss-starter/src/styles.css +0 -17
- package/examples/sveltekit-starter/README.md +0 -32
- package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
- package/examples/sveltekit-starter/package-lock.json +0 -1300
- package/examples/sveltekit-starter/package.json +0 -24
- package/examples/sveltekit-starter/src/app.css +0 -17
- package/examples/sveltekit-starter/src/app.html +0 -11
- package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
- package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
- package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
- package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
- package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
- package/examples/sveltekit-starter/svelte.config.js +0 -4
- package/examples/sveltekit-starter/vite.config.js +0 -6
- package/examples/vite-starter/README.md +0 -125
- package/examples/vite-starter/index.html +0 -12
- package/examples/vite-starter/package.json +0 -19
- package/examples/vite-starter/src/main.js +0 -188
- package/examples/vite-starter/src/styles.css +0 -22
- package/examples/vite-starter/vite.config.js +0 -6
- package/src/themes/valiify-type-prefixed.css +0 -37
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>dashboard-ui + Tailwind 3 + daisyUI 4 — no-bleed check</title>
|
|
6
|
-
<link rel="stylesheet" href="/src/styles.css" />
|
|
7
|
-
</head>
|
|
8
|
-
<body class="p-8 space-y-8">
|
|
9
|
-
<!--
|
|
10
|
-
DIRECTION B — the host's ELEMENT RESET must not defeat our component rules.
|
|
11
|
-
Tailwind 3 preflight touches button, input, select and textarea (and `*` for
|
|
12
|
-
border-width). These controls come FIRST in the DOM so the check can Tab
|
|
13
|
-
through them in order and read the focus ring where each component paints it.
|
|
14
|
-
The fingerprint of a cascade-layer defeat: the outline survives (preflight never
|
|
15
|
-
touches outline) while the border does not.
|
|
16
|
-
-->
|
|
17
|
-
<section class="space-y-3">
|
|
18
|
-
<h2 class="text-lg font-bold">host element reset vs our controls</h2>
|
|
19
|
-
|
|
20
|
-
<!-- button -->
|
|
21
|
-
<button id="vd-trigger" class="vd-dropdown-field" type="button" aria-haspopup="listbox" aria-expanded="false">
|
|
22
|
-
<span class="vd-dropdown-field-placeholder">Select a frequency</span>
|
|
23
|
-
</button>
|
|
24
|
-
|
|
25
|
-
<!-- input (the ring is painted on the field box) -->
|
|
26
|
-
<div class="vd-input-container">
|
|
27
|
-
<div id="vd-input-box" class="vd-input-field">
|
|
28
|
-
<input id="vd-input" class="vd-input" type="text" value="Jane" />
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<!-- textarea (the ring is painted on the field box) -->
|
|
33
|
-
<div class="vd-textarea-container">
|
|
34
|
-
<div id="vd-textarea-box" class="vd-textarea-field">
|
|
35
|
-
<textarea id="vd-textarea" class="vd-textarea" rows="2">Anything else?</textarea>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<!-- select: the library ships NO select component. The check asserts that from
|
|
40
|
-
the manifest, so the day one lands this section fails until it is covered. -->
|
|
41
|
-
<select id="host-select" class="select select-bordered"><option>daisyUI select</option></select>
|
|
42
|
-
|
|
43
|
-
<button id="vd-btn-primary" class="vd-btn vd-btn-primary" type="button">Continue</button>
|
|
44
|
-
</section>
|
|
45
|
-
|
|
46
|
-
<!--
|
|
47
|
-
DIRECTION A — class-name collisions. Every pair is a name daisyUI owns; ours
|
|
48
|
-
carries vd-. Both must keep their own look.
|
|
49
|
-
-->
|
|
50
|
-
<section class="space-y-3">
|
|
51
|
-
<h2 class="text-lg font-bold">daisyUI names vs ours</h2>
|
|
52
|
-
<button id="daisy-btn" class="btn btn-primary">daisyUI</button>
|
|
53
|
-
<button id="vd-btn" class="vd-btn vd-btn-outline" type="button">dashboard-ui</button>
|
|
54
|
-
<span id="daisy-badge" class="badge badge-primary">daisyUI</span>
|
|
55
|
-
<span id="vd-badge" class="vd-badge vd-badge-primary">3</span>
|
|
56
|
-
<div id="daisy-card" class="card bg-base-200 p-4">daisyUI card</div>
|
|
57
|
-
<div id="vd-card" class="vd-card">dashboard-ui card</div>
|
|
58
|
-
<div id="daisy-alert" class="alert">daisyUI alert</div>
|
|
59
|
-
<div id="vd-alert" class="vd-alert vd-alert-info">dashboard-ui alert</div>
|
|
60
|
-
<input id="daisy-input" class="input input-bordered" value="daisyUI" />
|
|
61
|
-
<input id="daisy-checkbox" type="checkbox" class="checkbox" />
|
|
62
|
-
<span id="vd-tooltip" class="vd-tooltip"><p class="vd-tooltip-content">ours</p></span>
|
|
63
|
-
</section>
|
|
64
|
-
|
|
65
|
-
<!-- the utility layer: ours is vd:-prefixed, the host's is bare -->
|
|
66
|
-
<section class="space-y-3">
|
|
67
|
-
<h2 class="text-lg font-bold">utilities</h2>
|
|
68
|
-
<p id="host-util" class="text-center">host Tailwind 3 utility</p>
|
|
69
|
-
<p id="vd-util" class="vd:text-content-tertiary vd:type-label-l-bold">ours, prefixed</p>
|
|
70
|
-
</section>
|
|
71
|
-
</body>
|
|
72
|
-
</html>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>dashboard-ui + Tailwind 3 + daisyUI 4 — no-bleed check (linked bundle)</title>
|
|
6
|
-
<link rel="stylesheet" href="/src/host.css" />
|
|
7
|
-
<!-- the bundle AS SHIPPED, after the host reset, untouched by the host pipeline -->
|
|
8
|
-
<link rel="stylesheet" href="/bundle.css" />
|
|
9
|
-
</head>
|
|
10
|
-
<body class="p-8 space-y-8">
|
|
11
|
-
<!--
|
|
12
|
-
DIRECTION B — the host's ELEMENT RESET must not defeat our component rules.
|
|
13
|
-
Tailwind 3 preflight touches button, input, select and textarea (and `*` for
|
|
14
|
-
border-width). These controls come FIRST in the DOM so the check can Tab
|
|
15
|
-
through them in order and read the focus ring where each component paints it.
|
|
16
|
-
The fingerprint of a cascade-layer defeat: the outline survives (preflight never
|
|
17
|
-
touches outline) while the border does not.
|
|
18
|
-
-->
|
|
19
|
-
<section class="space-y-3">
|
|
20
|
-
<h2 class="text-lg font-bold">host element reset vs our controls</h2>
|
|
21
|
-
|
|
22
|
-
<!-- button -->
|
|
23
|
-
<button id="vd-trigger" class="vd-dropdown-field" type="button" aria-haspopup="listbox" aria-expanded="false">
|
|
24
|
-
<span class="vd-dropdown-field-placeholder">Select a frequency</span>
|
|
25
|
-
</button>
|
|
26
|
-
|
|
27
|
-
<!-- input (the ring is painted on the field box) -->
|
|
28
|
-
<div class="vd-input-container">
|
|
29
|
-
<div id="vd-input-box" class="vd-input-field">
|
|
30
|
-
<input id="vd-input" class="vd-input" type="text" value="Jane" />
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<!-- textarea (the ring is painted on the field box) -->
|
|
35
|
-
<div class="vd-textarea-container">
|
|
36
|
-
<div id="vd-textarea-box" class="vd-textarea-field">
|
|
37
|
-
<textarea id="vd-textarea" class="vd-textarea" rows="2">Anything else?</textarea>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<!-- select: the library ships NO select component. The check asserts that from
|
|
42
|
-
the manifest, so the day one lands this section fails until it is covered. -->
|
|
43
|
-
<select id="host-select" class="select select-bordered"><option>daisyUI select</option></select>
|
|
44
|
-
|
|
45
|
-
<button id="vd-btn-primary" class="vd-btn vd-btn-primary" type="button">Continue</button>
|
|
46
|
-
</section>
|
|
47
|
-
|
|
48
|
-
<!--
|
|
49
|
-
DIRECTION A — class-name collisions. Every pair is a name daisyUI owns; ours
|
|
50
|
-
carries vd-. Both must keep their own look.
|
|
51
|
-
-->
|
|
52
|
-
<section class="space-y-3">
|
|
53
|
-
<h2 class="text-lg font-bold">daisyUI names vs ours</h2>
|
|
54
|
-
<button id="daisy-btn" class="btn btn-primary">daisyUI</button>
|
|
55
|
-
<button id="vd-btn" class="vd-btn vd-btn-outline" type="button">dashboard-ui</button>
|
|
56
|
-
<span id="daisy-badge" class="badge badge-primary">daisyUI</span>
|
|
57
|
-
<span id="vd-badge" class="vd-badge vd-badge-primary">3</span>
|
|
58
|
-
<div id="daisy-card" class="card bg-base-200 p-4">daisyUI card</div>
|
|
59
|
-
<div id="vd-card" class="vd-card">dashboard-ui card</div>
|
|
60
|
-
<div id="daisy-alert" class="alert">daisyUI alert</div>
|
|
61
|
-
<div id="vd-alert" class="vd-alert vd-alert-info">dashboard-ui alert</div>
|
|
62
|
-
<input id="daisy-input" class="input input-bordered" value="daisyUI" />
|
|
63
|
-
<input id="daisy-checkbox" type="checkbox" class="checkbox" />
|
|
64
|
-
<span id="vd-tooltip" class="vd-tooltip"><p class="vd-tooltip-content">ours</p></span>
|
|
65
|
-
</section>
|
|
66
|
-
|
|
67
|
-
<!-- the utility layer: ours is vd:-prefixed, the host's is bare -->
|
|
68
|
-
<section class="space-y-3">
|
|
69
|
-
<h2 class="text-lg font-bold">utilities</h2>
|
|
70
|
-
<p id="host-util" class="text-center">host Tailwind 3 utility</p>
|
|
71
|
-
<p id="vd-util" class="vd:text-content-tertiary vd:type-label-l-bold">ours, prefixed</p>
|
|
72
|
-
</section>
|
|
73
|
-
</body>
|
|
74
|
-
</html>
|