@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +948 -10
  2. package/COMPONENTS.md +199 -79
  3. package/GETTING_STARTED.md +116 -54
  4. package/QUICK_REFERENCE.md +48 -30
  5. package/README.md +107 -85
  6. package/TROUBLESHOOTING.md +52 -34
  7. package/class-manifest.json +141 -71
  8. package/design-methodology/dashboard.md +92 -80
  9. package/dist/dashboard-ui.css +1529 -1078
  10. package/dist/index.css +1250 -732
  11. package/package.json +17 -10
  12. package/scripts/codemods/0.5.0-chip-sizes.mjs +437 -0
  13. package/src/build/utilities.css +7 -10
  14. package/src/components/_template.css +12 -8
  15. package/src/components/alert.css +35 -8
  16. package/src/components/avatar.css +42 -30
  17. package/src/components/breadcrumbs.css +39 -22
  18. package/src/components/button.css +84 -14
  19. package/src/components/card.css +2 -2
  20. package/src/components/checkbox.css +16 -11
  21. package/src/components/chip.css +155 -79
  22. package/src/components/composer.css +145 -0
  23. package/src/components/data-row.css +10 -6
  24. package/src/components/divider.css +17 -22
  25. package/src/components/dropdown-field.css +83 -43
  26. package/src/components/dropdown-menu.css +80 -14
  27. package/src/components/field-verification.css +21 -5
  28. package/src/components/filter-segment.css +27 -8
  29. package/src/components/icon-button.css +49 -10
  30. package/src/components/index.css +2 -0
  31. package/src/components/input.css +88 -32
  32. package/src/components/link.css +27 -16
  33. package/src/components/loading-inline.css +15 -21
  34. package/src/components/menu-item.css +149 -49
  35. package/src/components/modal.css +8 -5
  36. package/src/components/navigation-rail.css +67 -31
  37. package/src/components/pagination-item.css +29 -28
  38. package/src/components/pagination.css +9 -14
  39. package/src/components/pill.css +16 -10
  40. package/src/components/progress-bar.css +8 -10
  41. package/src/components/radio-select.css +9 -2
  42. package/src/components/recipient-input.css +119 -0
  43. package/src/components/section-marker.css +5 -5
  44. package/src/components/segment-selector.css +9 -3
  45. package/src/components/sensitive-data.css +7 -5
  46. package/src/components/skeleton.css +18 -6
  47. package/src/components/step.css +15 -4
  48. package/src/components/stepper.css +3 -2
  49. package/src/components/switch.css +7 -0
  50. package/src/components/tabs.css +122 -28
  51. package/src/components/tag.css +156 -51
  52. package/src/components/text-button.css +54 -59
  53. package/src/components/textarea.css +87 -22
  54. package/src/components/toast.css +41 -15
  55. package/src/components/tooltip.css +13 -2
  56. package/src/fonts.css +2 -1
  57. package/src/library.css +1 -1
  58. package/src/reset.css +1 -1
  59. package/src/themes/valiify-tokens.css +101 -126
  60. package/src/themes/valiify.css +258 -157
  61. package/src/utility-surface.css +51 -49
  62. package/types/components.d.ts +145 -25
  63. package/CLAUDE.md +0 -3740
  64. package/examples/README.md +0 -198
  65. package/examples/basic/index.html +0 -155
  66. package/examples/daisyui-starter/README.md +0 -58
  67. package/examples/daisyui-starter/check-no-bleed.mjs +0 -249
  68. package/examples/daisyui-starter/index.html +0 -72
  69. package/examples/daisyui-starter/linked.html +0 -74
  70. package/examples/daisyui-starter/package-lock.json +0 -2221
  71. package/examples/daisyui-starter/package.json +0 -22
  72. package/examples/daisyui-starter/postcss.config.js +0 -1
  73. package/examples/daisyui-starter/src/host.css +0 -14
  74. package/examples/daisyui-starter/src/only-import.css +0 -4
  75. package/examples/daisyui-starter/src/styles.css +0 -36
  76. package/examples/daisyui-starter/tailwind.config.js +0 -13
  77. package/examples/postcss-starter/README.md +0 -47
  78. package/examples/postcss-starter/index.html +0 -54
  79. package/examples/postcss-starter/package.json +0 -19
  80. package/examples/postcss-starter/postcss.config.js +0 -5
  81. package/examples/postcss-starter/src/styles.css +0 -17
  82. package/examples/sveltekit-starter/README.md +0 -32
  83. package/examples/sveltekit-starter/check-scoped-styles.mjs +0 -103
  84. package/examples/sveltekit-starter/package-lock.json +0 -1300
  85. package/examples/sveltekit-starter/package.json +0 -24
  86. package/examples/sveltekit-starter/src/app.css +0 -17
  87. package/examples/sveltekit-starter/src/app.html +0 -11
  88. package/examples/sveltekit-starter/src/lib/GlobalReset.svelte +0 -20
  89. package/examples/sveltekit-starter/src/lib/ScopedRemedy.svelte +0 -27
  90. package/examples/sveltekit-starter/src/lib/ScopedReset.svelte +0 -22
  91. package/examples/sveltekit-starter/src/routes/+layout.svelte +0 -6
  92. package/examples/sveltekit-starter/src/routes/+page.svelte +0 -10
  93. package/examples/sveltekit-starter/svelte.config.js +0 -4
  94. package/examples/sveltekit-starter/vite.config.js +0 -6
  95. package/examples/vite-starter/README.md +0 -125
  96. package/examples/vite-starter/index.html +0 -12
  97. package/examples/vite-starter/package.json +0 -19
  98. package/examples/vite-starter/src/main.js +0 -188
  99. package/examples/vite-starter/src/styles.css +0 -22
  100. package/examples/vite-starter/vite.config.js +0 -6
  101. package/src/themes/valiify-type-prefixed.css +0 -37
@@ -1,24 +0,0 @@
1
- {
2
- "name": "valiify-dashboard-ui-sveltekit-starter",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite dev",
8
- "build": "vite build",
9
- "preview": "vite preview",
10
- "prepare": "svelte-kit sync || echo ''",
11
- "check": "node check-scoped-styles.mjs"
12
- },
13
- "devDependencies": {
14
- "@sveltejs/adapter-auto": "^7.0.1",
15
- "@sveltejs/kit": "^2.63.0",
16
- "@sveltejs/vite-plugin-svelte": "^7.1.2",
17
- "playwright": "1.62.1",
18
- "svelte": "^5.56.1",
19
- "vite": "^8.0.16"
20
- },
21
- "dependencies": {
22
- "@valiify/dashboard-ui": "^0.3.0"
23
- }
24
- }
@@ -1,17 +0,0 @@
1
- /*
2
- * The app shell's load path — the prebuilt entry, standalone.
3
- *
4
- * Only the bundle. dashboard-ui ships no reset.css and no document default: the
5
- * `./styles.css` entry carries no preflight and no `html` rule, so the host paints
6
- * its own page (below) and owns its own reset. Import ONE of the library's three
7
- * style entries, never two — `@valiify/dashboard-ui` (dist/index.css) would bring
8
- * Tailwind 4's preflight into a host that did not ask for it.
9
- */
10
- @import "@valiify/dashboard-ui/styles.css";
11
-
12
- body {
13
- margin: 0;
14
- padding: 32px;
15
- color: var(--color-content-primary);
16
- background: var(--color-surface-frame);
17
- }
@@ -1,11 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- %sveltekit.head%
7
- </head>
8
- <body>
9
- <div style="display: contents">%sveltekit.body%</div>
10
- </body>
11
- </html>
@@ -1,20 +0,0 @@
1
- <!--
2
- Case 1 — a :global element reset from a Svelte component.
3
- Compiles to a bare, UNLAYERED `button { border: 0 }` (0,0,1). This is the shape
4
- of a house reset written inside a component, and it is the case the unlayered
5
- bundle defends against: our class (0,1,0) beats it on specificity.
6
- -->
7
- <div class="row">
8
- <button id="global-reset-trigger" class="vd-dropdown-field" type="button" aria-haspopup="listbox" aria-expanded="false">
9
- <span class="vd-dropdown-field-placeholder">:global(button) reset in scope</span>
10
- </button>
11
- </div>
12
-
13
- <style>
14
- :global(button) {
15
- border: 0;
16
- }
17
- .row {
18
- margin-bottom: 24px;
19
- }
20
- </style>
@@ -1,27 +0,0 @@
1
- <!--
2
- Case 3 — the remedy for case 2. Exclude library controls from the scoped element
3
- selector: `button:not([class*="vd-"])`. The dev's own plain button still gets the
4
- reset; ours is never matched, so specificity never enters into it. (Scoping the
5
- reset by class — `.plain { }` — works the same way and reads better; this form
6
- is shown because it is the mechanical edit to an existing element reset.)
7
- -->
8
- <div class="row">
9
- <button id="remedy-trigger" class="vd-dropdown-field" type="button" aria-haspopup="listbox" aria-expanded="false">
10
- <span class="vd-dropdown-field-placeholder">scoped reset that excludes [class*="vd-"]</span>
11
- </button>
12
- <button id="remedy-plain" type="button">the component's own plain button</button>
13
- <button id="remedy-primary" class="vd-btn vd-btn-primary" type="button">Continue</button>
14
- </div>
15
-
16
- <style>
17
- button:not([class*="vd-"]) {
18
- border: 0;
19
- padding: 0;
20
- }
21
- .row {
22
- display: flex;
23
- flex-direction: column;
24
- gap: 12px;
25
- align-items: flex-start;
26
- }
27
- </style>
@@ -1,22 +0,0 @@
1
- <!--
2
- Case 2 — a SCOPED element selector. THE CASE THE BUNDLE CANNOT DEFEND AGAINST.
3
- Svelte scopes `button { }` to `button.svelte-<hash>` — specificity 0,1,1, which
4
- outranks our single-class rule (0,1,0) whether or not the bundle is layered.
5
- check-scoped-styles.mjs asserts that our border is LOST here on purpose: this
6
- pins the contract's second clause (a host rule at higher specificity wins) to a
7
- measurement, so the README / GETTING_STARTED text cannot drift from what is true.
8
- -->
9
- <div class="row">
10
- <button id="scoped-trigger" class="vd-dropdown-field" type="button" aria-haspopup="listbox" aria-expanded="false">
11
- <span class="vd-dropdown-field-placeholder">scoped element reset — wins over us</span>
12
- </button>
13
- </div>
14
-
15
- <style>
16
- button {
17
- border: 0;
18
- }
19
- .row {
20
- margin-bottom: 24px;
21
- }
22
- </style>
@@ -1,6 +0,0 @@
1
- <script>
2
- import "../app.css";
3
- let { children } = $props();
4
- </script>
5
-
6
- {@render children?.()}
@@ -1,10 +0,0 @@
1
- <script>
2
- import GlobalReset from "$lib/GlobalReset.svelte";
3
- import ScopedReset from "$lib/ScopedReset.svelte";
4
- import ScopedRemedy from "$lib/ScopedRemedy.svelte";
5
- </script>
6
-
7
- <h1>dashboard-ui inside SvelteKit — scoped styles vs component rules</h1>
8
- <GlobalReset />
9
- <ScopedReset />
10
- <ScopedRemedy />
@@ -1,4 +0,0 @@
1
- import adapter from "@sveltejs/adapter-auto";
2
-
3
- /** @type {import('@sveltejs/kit').Config} */
4
- export default { kit: { adapter: adapter() } };
@@ -1,6 +0,0 @@
1
- import { sveltekit } from "@sveltejs/kit/vite";
2
- import { defineConfig } from "vite";
3
-
4
- // No Tailwind in this host at all. The library's prebuilt bundle is a plain
5
- // stylesheet, and the thing under test is what SvelteKit itself does to CSS.
6
- export default defineConfig({ plugins: [sveltekit()] });
@@ -1,125 +0,0 @@
1
- # Valiify Dashboard UI - Vite Starter
2
-
3
- A minimal working example of `@valiify/dashboard-ui` with Vite.
4
-
5
- ## Quick Start
6
-
7
- ```bash
8
- # Install dependencies
9
- npm install
10
-
11
- # Start dev server
12
- npm run dev
13
-
14
- # Build for production
15
- npm run build
16
- ```
17
-
18
- Open [http://localhost:5173](http://localhost:5173) to see the result.
19
-
20
- > **Note:** If you copied this example from the GitHub repo, the `package.json` may reference `"file:../.."`. When installing from npm, this is automatically fixed to use the published version. If you see installation errors, check that the dependency is set to a version number like `"^0.1.0-alpha.2"`.
21
-
22
- ## What This Example Shows
23
-
24
- 1. **Correct installation** - How to install the required packages
25
- 2. **Vite configuration** - The `@tailwindcss/vite` plugin is required
26
- 3. **CSS imports** - Import the library from CSS, never from JavaScript
27
- 4. **Icon sprite loading** - How to load and inline the icon sprite
28
- 5. **Component usage** - Examples of buttons, inputs, alerts, and chips
29
- 6. **Interactive components** - Minimal JavaScript for dropdown behavior
30
-
31
- ## Key Files
32
-
33
- - `vite.config.js` - Vite configuration with Tailwind plugin
34
- - `src/styles.css` - Stylesheet with correct import order
35
- - `src/main.js` - JavaScript entry point (imports CSS, loads sprite)
36
- - `package.json` - Required dependencies
37
-
38
- ## Important Notes
39
-
40
- ### Import from CSS, Not JavaScript
41
-
42
- ❌ **Don't do this:**
43
- ```js
44
- // main.js
45
- import "@valiify/dashboard-ui/source";
46
- ```
47
-
48
- ✅ **Do this:**
49
- ```css
50
- /* styles.css */
51
- @import "tailwindcss";
52
- @import "@valiify/dashboard-ui/source";
53
- ```
54
-
55
- ```js
56
- // main.js
57
- import "./styles.css";
58
- ```
59
-
60
- ### Components That Need JavaScript
61
-
62
- These components ship no JavaScript and require you to implement behavior:
63
-
64
- - **DropdownField** - Needs click handler, aria-expanded toggle, outside-click detection
65
- - **DropdownMenu** - Same as DropdownField
66
- - **Tabs** - Needs tab switching and aria-selected management
67
- - **Modal** - Needs open/close handlers (or use native `<dialog>`)
68
- - **Tooltip** - Needs positioning and show/hide logic
69
-
70
- See `src/main.js` for a minimal dropdown implementation.
71
-
72
- ## Adapting for Your Framework
73
-
74
- ### React
75
- ```jsx
76
- // App.jsx
77
- import "./styles.css";
78
-
79
- function App() {
80
- return <button className="vd-btn vd-btn-primary">Click me</button>;
81
- }
82
- ```
83
-
84
- ### Vue
85
- ```vue
86
- <script setup>
87
- import "./styles.css";
88
- </script>
89
-
90
- <template>
91
- <button class="vd-btn vd-btn-primary">Click me</button>
92
- </template>
93
- ```
94
-
95
- ### Svelte
96
- ```svelte
97
- <script>
98
- import "./styles.css";
99
- </script>
100
-
101
- <button class="vd-btn vd-btn-primary">Click me</button>
102
- ```
103
-
104
- ## Troubleshooting
105
-
106
- ### Styles don't apply
107
- - Make sure `@tailwindcss/vite` is installed and registered in `vite.config.js`
108
- - Verify you're importing from CSS, not JavaScript
109
- - Check that `@import "tailwindcss"` comes before `@import "@valiify/dashboard-ui/source"`
110
-
111
- ### Icons don't show
112
- - Make sure the sprite is loaded and inlined (see `src/main.js`)
113
- - Check the browser console for fetch errors
114
- - Verify sprite.svg path is correct for your bundler
115
-
116
- ### Components look broken
117
- - Check that you're using the full markup structure (see CLAUDE.md in the repo)
118
- - Many components need wrapper elements (e.g., `.vd-input-container` > `.vd-input-field` > `.vd-input`)
119
- - Verify you're using the correct variant/size classes
120
-
121
- ## Learn More
122
-
123
- - [Package README](../../README.md) - Installation and configuration
124
- - [CLAUDE.md](../../CLAUDE.md) - Complete component reference with full markup
125
- - [Component Docs](../../docs/component-process.md) - How components are built
@@ -1,12 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Valiify Dashboard UI - Vite Starter</title>
7
- </head>
8
- <body>
9
- <div id="app"></div>
10
- <script type="module" src="/src/main.js"></script>
11
- </body>
12
- </html>
@@ -1,19 +0,0 @@
1
- {
2
- "name": "valiify-ui-vite-starter",
3
- "version": "0.0.0",
4
- "private": true,
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite",
8
- "build": "vite build",
9
- "preview": "vite preview"
10
- },
11
- "dependencies": {
12
- "@valiify/dashboard-ui": "^0.3.0"
13
- },
14
- "devDependencies": {
15
- "@tailwindcss/vite": "^4.0.0",
16
- "tailwindcss": "^4.0.0",
17
- "vite": "^6.0.0"
18
- }
19
- }
@@ -1,188 +0,0 @@
1
- // Import your stylesheet (NOT the library directly)
2
- import "./styles.css";
3
-
4
- // Load the icon sprite
5
- import spriteUrl from "@valiify/dashboard-ui/icons/sprite.svg?url";
6
-
7
- // Inline the sprite into the document
8
- fetch(spriteUrl)
9
- .then((r) => r.text())
10
- .then((svg) => {
11
- const host = document.createElement("div");
12
- host.style.display = "none";
13
- host.innerHTML = svg;
14
- document.body.prepend(host);
15
- });
16
-
17
- // Render a simple example
18
- const app = document.getElementById("app");
19
- app.innerHTML = `
20
- <div style="max-width: 800px; margin: 0 auto;">
21
- <h1 style="font-size: 32px; font-weight: 600; margin-bottom: 24px; color: var(--color-content-primary);">
22
- Valiify Dashboard UI - Vite Starter
23
- </h1>
24
-
25
- <div style="display: flex; flex-direction: column; gap: 24px;">
26
- <!-- Buttons -->
27
- <section>
28
- <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
29
- Buttons
30
- </h2>
31
- <div style="display: flex; gap: 12px; flex-wrap: wrap;">
32
- <button class="vd-btn vd-btn-primary">Primary</button>
33
- <button class="vd-btn vd-btn-outline">Outline</button>
34
- <button class="vd-btn vd-btn-empty">Empty</button>
35
- <button class="vd-btn vd-btn-primary" disabled>Disabled</button>
36
- </div>
37
- </section>
38
-
39
- <!-- Input -->
40
- <section>
41
- <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
42
- Input
43
- </h2>
44
- <div class="vd-input-container" style="max-width: 400px;">
45
- <div class="vd-input-label">
46
- <span>Email Address</span>
47
- </div>
48
- <div class="vd-input-field vd-input-lg">
49
- <svg class="vd-input-icon-left vd-icon vd-icon-size-14" aria-hidden="true">
50
- <use href="#mail" />
51
- </svg>
52
- <input type="email" class="vd-input" placeholder="you@example.com" />
53
- </div>
54
- </div>
55
- </section>
56
-
57
- <!-- Alert -->
58
- <section>
59
- <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
60
- Alert
61
- </h2>
62
- <div class="vd-alert vd-alert-warning" role="alert">
63
- <div class="vd-alert-body">
64
- <svg class="vd-alert-icon vd-icon vd-icon-size-18" aria-hidden="true">
65
- <use href="#info" />
66
- </svg>
67
- <div class="vd-alert-content">
68
- <p class="vd-alert-title">Setup Complete</p>
69
- <p class="vd-alert-message">
70
- If you can see this alert with proper styling and icons,
71
- your installation is working correctly!
72
- </p>
73
- </div>
74
- </div>
75
- </div>
76
- </section>
77
-
78
- <!-- Status Chips -->
79
- <section>
80
- <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
81
- Status Indicators
82
- </h2>
83
- <div style="display: flex; gap: 12px; flex-wrap: wrap;">
84
- <span class="vd-chip vd-chip-success">
85
- <span class="vd-chip-dot"></span>
86
- <span>Approved</span>
87
- </span>
88
- <span class="vd-chip vd-chip-warning">
89
- <span class="vd-chip-dot"></span>
90
- <span>Pending</span>
91
- </span>
92
- <span class="vd-chip vd-chip-critical">
93
- <span class="vd-chip-dot"></span>
94
- <span>Rejected</span>
95
- </span>
96
- </div>
97
- </section>
98
-
99
- <!-- Interactive Dropdown Example -->
100
- <section>
101
- <h2 style="font-size: 18px; font-weight: 500; margin-bottom: 12px; color: var(--color-content-primary);">
102
- Dropdown (Interactive)
103
- </h2>
104
- <p style="margin-bottom: 12px; font-size: 14px; color: var(--color-content-secondary);">
105
- Note: Dropdowns require JavaScript to function. See the code below for a minimal implementation.
106
- </p>
107
- <div id="dropdown-example"></div>
108
- </section>
109
- </div>
110
- </div>
111
- `;
112
-
113
- // Example of minimal dropdown behavior
114
- const dropdownExample = document.getElementById("dropdown-example");
115
- dropdownExample.innerHTML = `
116
- <div class="vd-dropdown-field-container" style="max-width: 300px;">
117
- <div class="vd-dropdown-field-label">
118
- <span>Select an option</span>
119
- </div>
120
- <div class="vd-dropdown">
121
- <button
122
- id="dropdown-trigger"
123
- class="vd-dropdown-field"
124
- aria-haspopup="listbox"
125
- aria-expanded="false"
126
- >
127
- <span class="vd-dropdown-field-placeholder">Choose one...</span>
128
- <svg class="vd-dropdown-field-chevron vd-icon vd-icon-size-14" aria-hidden="true">
129
- <use href="#chevron-down" />
130
- </svg>
131
- </button>
132
- <div id="dropdown-panel" class="vd-dropdown-panel" hidden>
133
- <div class="vd-dropdown-menu" role="listbox">
134
- <button class="vd-menu-item" role="option" data-value="weekly">
135
- <span class="vd-menu-item-text">
136
- <span class="vd-menu-item-title">Weekly</span>
137
- </span>
138
- </button>
139
- <button class="vd-menu-item" role="option" data-value="monthly">
140
- <span class="vd-menu-item-text">
141
- <span class="vd-menu-item-title">Monthly</span>
142
- </span>
143
- </button>
144
- <button class="vd-menu-item" role="option" data-value="yearly">
145
- <span class="vd-menu-item-text">
146
- <span class="vd-menu-item-title">Yearly</span>
147
- </span>
148
- </button>
149
- </div>
150
- </div>
151
- </div>
152
- </div>
153
- `;
154
-
155
- // Minimal dropdown behavior
156
- const trigger = document.getElementById("dropdown-trigger");
157
- const panel = document.getElementById("dropdown-panel");
158
- const options = panel.querySelectorAll('[role="option"]');
159
- const placeholder = trigger.querySelector(".vd-dropdown-field-placeholder");
160
-
161
- trigger.addEventListener("click", () => {
162
- const isOpen = trigger.getAttribute("aria-expanded") === "true";
163
- trigger.setAttribute("aria-expanded", !isOpen);
164
- panel.hidden = isOpen;
165
- });
166
-
167
- options.forEach((option) => {
168
- option.addEventListener("click", () => {
169
- const value = option.getAttribute("data-value");
170
- const title = option.querySelector(".vd-menu-item-title").textContent;
171
-
172
- // Update the trigger
173
- placeholder.textContent = title;
174
- placeholder.className = "vd-dropdown-field-value";
175
-
176
- // Close the dropdown
177
- trigger.setAttribute("aria-expanded", "false");
178
- panel.hidden = true;
179
- });
180
- });
181
-
182
- // Close on outside click
183
- document.addEventListener("click", (e) => {
184
- if (!trigger.contains(e.target) && !panel.contains(e.target)) {
185
- trigger.setAttribute("aria-expanded", "false");
186
- panel.hidden = true;
187
- }
188
- });
@@ -1,22 +0,0 @@
1
- /**
2
- * IMPORTANT: Import from CSS, never from JavaScript
3
- *
4
- * Importing @valiify/dashboard-ui from a .js/.ts file breaks silently.
5
- * Always import it here in your CSS file.
6
- */
7
-
8
- /* Optional: Load Google Fonts (or self-host for better performance) */
9
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
10
-
11
- /* Required: Tailwind CSS */
12
- @import "tailwindcss";
13
-
14
- /* Required: Valiify Dashboard UI (use /source for token utilities) */
15
- @import "@valiify/dashboard-ui/source";
16
-
17
- /* Your custom styles go here */
18
- body {
19
- font-family: Inter, system-ui, sans-serif;
20
- background: var(--color-surface-frame);
21
- padding: 2rem;
22
- }
@@ -1,6 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import tailwindcss from "@tailwindcss/vite";
3
-
4
- export default defineConfig({
5
- plugins: [tailwindcss()],
6
- });
@@ -1,37 +0,0 @@
1
- /**
2
- * Label type utilities, PREFIXED payloads. GENERATED — do not edit by hand.
3
- *
4
- * Source: tokens/figma-tokens.json
5
- * Generator: scripts/build-theme.mjs (npm run build:theme)
6
- *
7
- * Byte-for-byte the twin of the @utility blocks in valiify.css, except that each
8
- * @apply payload is spelled `vd:`. Only the prebuilt bundle's prefixed pass imports
9
- * this file, and it imports it WITHOUT a prefix — the payloads already carry one.
10
- *
11
- * The utility NAMES stay unprefixed here. Tailwind prefixes them at use site, so
12
- * `@utility type-label-l` is written `vd:type-label-l` in markup.
13
- */
14
-
15
- @utility type-label-l {
16
- @apply vd:text-label-l vd:uppercase; /* Label/Label L Sans */
17
- }
18
-
19
- @utility type-label-l-bold {
20
- @apply vd:text-label-l-bold vd:uppercase; /* Label/Label L Sans - Bold */
21
- }
22
-
23
- @utility type-label-l-mono {
24
- @apply vd:text-label-l-mono vd:font-mono vd:uppercase; /* Label/Label L Mono */
25
- }
26
-
27
- @utility type-label-s {
28
- @apply vd:text-label-s vd:uppercase; /* Label/Label S Sans */
29
- }
30
-
31
- @utility type-label-s-bold {
32
- @apply vd:text-label-s-bold vd:uppercase; /* Label/Label S Sans - Bold */
33
- }
34
-
35
- @utility type-label-s-mono {
36
- @apply vd:text-label-s-mono vd:font-mono vd:uppercase; /* Label/Label S Mono */
37
- }