@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.
- package/CHANGELOG.md +411 -4
- package/CLAUDE.md +809 -768
- package/COMPONENTS.md +520 -520
- package/GETTING_STARTED.md +14 -14
- package/QUICK_REFERENCE.md +22 -22
- package/README.md +28 -6
- package/TROUBLESHOOTING.md +6 -6
- package/class-manifest.json +664 -0
- package/design-methodology/dashboard.md +496 -0
- package/dist/dashboard-ui.css +4897 -0
- package/dist/index.css +502 -502
- package/examples/basic/index.html +8 -8
- package/examples/daisyui-starter/README.md +35 -0
- package/examples/daisyui-starter/check-no-bleed.mjs +81 -0
- package/examples/daisyui-starter/index.html +45 -0
- package/examples/daisyui-starter/package-lock.json +2221 -0
- package/examples/daisyui-starter/package.json +22 -0
- package/examples/daisyui-starter/postcss.config.js +1 -0
- package/examples/daisyui-starter/src/styles.css +20 -0
- package/examples/daisyui-starter/tailwind.config.js +12 -0
- package/examples/postcss-starter/index.html +8 -8
- package/examples/postcss-starter/package.json +1 -1
- package/examples/vite-starter/README.md +4 -4
- package/examples/vite-starter/package.json +1 -1
- package/examples/vite-starter/src/main.js +41 -41
- package/package.json +23 -4
- package/src/build/components.css +29 -0
- package/src/build/utilities.css +42 -0
- package/src/components/ICON-SYSTEM.md +39 -39
- package/src/components/alert.css +26 -26
- package/src/components/avatar.css +9 -9
- package/src/components/breadcrumbs.css +15 -15
- package/src/components/button.css +21 -21
- package/src/components/card.css +10 -10
- package/src/components/checkbox.css +21 -21
- package/src/components/chip.css +43 -43
- package/src/components/data-row.css +19 -19
- package/src/components/divider.css +23 -23
- package/src/components/dropdown-field.css +34 -34
- package/src/components/dropdown-menu.css +12 -12
- package/src/components/field-verification.css +25 -25
- package/src/components/filter-segment.css +20 -20
- package/src/components/icon-button.css +11 -11
- package/src/components/icon.css +18 -18
- package/src/components/input.css +29 -29
- package/src/components/link.css +28 -28
- package/src/components/loading-indicator.css +20 -20
- package/src/components/loading-inline.css +8 -8
- package/src/components/menu-item.css +28 -28
- package/src/components/modal.css +36 -36
- package/src/components/navigation-rail.css +95 -95
- package/src/components/pagination-item.css +22 -22
- package/src/components/pagination.css +24 -24
- package/src/components/pill.css +14 -14
- package/src/components/progress-bar.css +28 -28
- package/src/components/radio-select.css +13 -13
- package/src/components/section-marker.css +12 -12
- package/src/components/segment-selector.css +9 -9
- package/src/components/sensitive-data.css +8 -8
- package/src/components/skeleton.css +29 -29
- package/src/components/step.css +14 -14
- package/src/components/stepper.css +15 -15
- package/src/components/switch.css +12 -12
- package/src/components/tabs.css +40 -40
- package/src/components/tag.css +20 -20
- package/src/components/text-button.css +24 -24
- package/src/components/textarea.css +23 -23
- package/src/components/toast.css +29 -29
- package/src/components/tooltip.css +11 -11
- package/src/icons/README.md +16 -10
- package/src/icons/sprite.svg +1 -1
- package/src/themes/valiify-tokens.css +285 -0
- package/src/themes/valiify-type-prefixed.css +37 -0
- package/src/utilities/index.css +1 -1
- package/src/utility-surface.css +321 -0
- package/types/components.d.ts +235 -236
package/types/components.d.ts
CHANGED
|
@@ -9,156 +9,155 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
// Input component classes
|
|
12
|
-
export type InputSize = "input-sm" | "input-md" | "input-lg";
|
|
13
|
-
export type InputBgVariant = "input-bg-neutral";
|
|
14
|
-
export type InputState = "input-error" | "input-disabled";
|
|
12
|
+
export type InputSize = "vd-input-sm" | "vd-input-md" | "vd-input-lg";
|
|
13
|
+
export type InputBgVariant = "vd-input-bg-neutral";
|
|
14
|
+
export type InputState = "vd-input-error" | "vd-input-disabled";
|
|
15
15
|
export type InputPart =
|
|
16
|
-
| "input-container"
|
|
17
|
-
| "input-label"
|
|
18
|
-
| "input-
|
|
19
|
-
| "input
|
|
20
|
-
| "input"
|
|
21
|
-
| "input-icon-
|
|
22
|
-
| "input-
|
|
23
|
-
| "input-error-message";
|
|
16
|
+
| "vd-input-container"
|
|
17
|
+
| "vd-input-label"
|
|
18
|
+
| "vd-input-field"
|
|
19
|
+
| "vd-input"
|
|
20
|
+
| "vd-input-icon-left"
|
|
21
|
+
| "vd-input-icon-right"
|
|
22
|
+
| "vd-input-error-message";
|
|
24
23
|
|
|
25
24
|
export type InputClass = InputPart | InputSize | InputBgVariant | InputState;
|
|
26
25
|
|
|
27
26
|
// Card component classes
|
|
28
|
-
export type CardModifier = "card-compact" | "card-bordered" | "card-hover";
|
|
29
|
-
export type CardPart = "card-title" | "card-body";
|
|
30
|
-
export type CardClass = "card" | CardModifier | CardPart;
|
|
27
|
+
export type CardModifier = "vd-card-compact" | "vd-card-bordered" | "vd-card-hover";
|
|
28
|
+
export type CardPart = "vd-card-title" | "vd-card-body";
|
|
29
|
+
export type CardClass = "vd-card" | CardModifier | CardPart;
|
|
31
30
|
|
|
32
31
|
// RadioSelect component classes
|
|
33
|
-
export type RadioSelectPart = "radio-select-input" | "radio-select-label";
|
|
34
|
-
export type RadioSelectClass = "radio-select" | RadioSelectPart;
|
|
32
|
+
export type RadioSelectPart = "vd-radio-select-input" | "vd-radio-select-label";
|
|
33
|
+
export type RadioSelectClass = "vd-radio-select" | RadioSelectPart;
|
|
35
34
|
|
|
36
35
|
// Button component classes
|
|
37
36
|
// btn-critical is NOT in Figma's Button set (73:180) — it comes from Modal's
|
|
38
37
|
// destructive confirm button. See src/components/button.css.
|
|
39
38
|
export type ButtonVariant =
|
|
40
|
-
"btn-primary" | "btn-outline" | "btn-empty" | "btn-critical";
|
|
41
|
-
export type ButtonSize = "btn-sm" | "btn-lg";
|
|
42
|
-
export type ButtonClass = "btn" | ButtonVariant | ButtonSize;
|
|
39
|
+
"vd-btn-primary" | "vd-btn-outline" | "vd-btn-empty" | "vd-btn-critical";
|
|
40
|
+
export type ButtonSize = "vd-btn-sm" | "vd-btn-lg";
|
|
41
|
+
export type ButtonClass = "vd-btn" | ButtonVariant | ButtonSize;
|
|
43
42
|
|
|
44
43
|
// Chip component classes
|
|
45
44
|
export type ChipVariant =
|
|
46
|
-
| "chip-warning"
|
|
47
|
-
| "chip-critical"
|
|
48
|
-
| "chip-success"
|
|
49
|
-
| "chip-neutral"
|
|
50
|
-
| "chip-primary";
|
|
45
|
+
| "vd-chip-warning"
|
|
46
|
+
| "vd-chip-critical"
|
|
47
|
+
| "vd-chip-success"
|
|
48
|
+
| "vd-chip-neutral"
|
|
49
|
+
| "vd-chip-primary";
|
|
51
50
|
export type BadgeVariant =
|
|
52
|
-
| "badge-warning"
|
|
53
|
-
| "badge-critical"
|
|
54
|
-
| "badge-success"
|
|
55
|
-
| "badge-neutral"
|
|
56
|
-
| "badge-primary";
|
|
51
|
+
| "vd-badge-warning"
|
|
52
|
+
| "vd-badge-critical"
|
|
53
|
+
| "vd-badge-success"
|
|
54
|
+
| "vd-badge-neutral"
|
|
55
|
+
| "vd-badge-primary";
|
|
57
56
|
export type DotVariant =
|
|
58
|
-
| "dot-warning"
|
|
59
|
-
| "dot-critical"
|
|
60
|
-
| "dot-success"
|
|
61
|
-
| "dot-neutral"
|
|
62
|
-
| "dot-primary";
|
|
63
|
-
export type ChipPart = "chip-dot";
|
|
64
|
-
export type ChipState = "with-ring";
|
|
57
|
+
| "vd-dot-warning"
|
|
58
|
+
| "vd-dot-critical"
|
|
59
|
+
| "vd-dot-success"
|
|
60
|
+
| "vd-dot-neutral"
|
|
61
|
+
| "vd-dot-primary";
|
|
62
|
+
export type ChipPart = "vd-chip-dot";
|
|
63
|
+
export type ChipState = "vd-with-ring";
|
|
65
64
|
// Figma BG property. `yes` (filled) is the default, so it takes no class and
|
|
66
65
|
// only the opt-out is named — the same shape as Input/Textarea/DropdownField's
|
|
67
66
|
// `-bg-*` classes. There is no dot equivalent: BG is a no-op for a dot, whose
|
|
68
67
|
// BG=yes and BG=no variants render identically.
|
|
69
|
-
export type ChipBg = "chip-bg-no";
|
|
70
|
-
export type BadgeBg = "badge-bg-no";
|
|
68
|
+
export type ChipBg = "vd-chip-bg-no";
|
|
69
|
+
export type BadgeBg = "vd-badge-bg-no";
|
|
71
70
|
// Figma Size property. SM is the default, so the bare classes stay SM.
|
|
72
|
-
export type ChipSize = "chip-sm" | "chip-md";
|
|
73
|
-
export type BadgeSize = "badge-sm" | "badge-md";
|
|
74
|
-
export type DotSize = "dot-sm" | "dot-md";
|
|
71
|
+
export type ChipSize = "vd-chip-sm" | "vd-chip-md";
|
|
72
|
+
export type BadgeSize = "vd-badge-sm" | "vd-badge-md";
|
|
73
|
+
export type DotSize = "vd-dot-sm" | "vd-dot-md";
|
|
75
74
|
export type ChipClass =
|
|
76
|
-
| "chip"
|
|
75
|
+
| "vd-chip"
|
|
77
76
|
| ChipVariant
|
|
78
77
|
| ChipPart
|
|
79
78
|
| ChipSize
|
|
80
79
|
| ChipBg
|
|
81
|
-
| "badge"
|
|
80
|
+
| "vd-badge"
|
|
82
81
|
| BadgeVariant
|
|
83
82
|
| BadgeSize
|
|
84
83
|
| BadgeBg
|
|
85
|
-
| "dot"
|
|
84
|
+
| "vd-dot"
|
|
86
85
|
| DotVariant
|
|
87
86
|
| DotSize
|
|
88
87
|
| ChipState;
|
|
89
88
|
|
|
90
89
|
// Switch component classes
|
|
91
|
-
export type SwitchPart = "switch-input";
|
|
92
|
-
export type SwitchClass = "switch" | SwitchPart;
|
|
90
|
+
export type SwitchPart = "vd-switch-input";
|
|
91
|
+
export type SwitchClass = "vd-switch" | SwitchPart;
|
|
93
92
|
|
|
94
93
|
// Icon component classes
|
|
95
94
|
export type IconSize =
|
|
96
|
-
| "icon-size-10"
|
|
97
|
-
| "icon-size-11"
|
|
98
|
-
| "icon-size-12"
|
|
99
|
-
| "icon-size-13"
|
|
100
|
-
| "icon-size-14"
|
|
101
|
-
| "icon-size-15"
|
|
102
|
-
| "icon-size-16"
|
|
103
|
-
| "icon-size-18"
|
|
104
|
-
| "icon-size-20"
|
|
105
|
-
| "icon-size-22"
|
|
106
|
-
| "icon-size-24";
|
|
107
|
-
export type IconState = "icon-ring";
|
|
108
|
-
export type IconClass = "icon" | IconSize | IconState;
|
|
95
|
+
| "vd-icon-size-10"
|
|
96
|
+
| "vd-icon-size-11"
|
|
97
|
+
| "vd-icon-size-12"
|
|
98
|
+
| "vd-icon-size-13"
|
|
99
|
+
| "vd-icon-size-14"
|
|
100
|
+
| "vd-icon-size-15"
|
|
101
|
+
| "vd-icon-size-16"
|
|
102
|
+
| "vd-icon-size-18"
|
|
103
|
+
| "vd-icon-size-20"
|
|
104
|
+
| "vd-icon-size-22"
|
|
105
|
+
| "vd-icon-size-24";
|
|
106
|
+
export type IconState = "vd-icon-ring";
|
|
107
|
+
export type IconClass = "vd-icon" | IconSize | IconState;
|
|
109
108
|
|
|
110
109
|
// IconButton component classes
|
|
111
110
|
export type IconButtonSize =
|
|
112
|
-
"icon-button-xs" | "icon-button-md" | "icon-button-lg";
|
|
113
|
-
export type IconButtonClass = "icon-button" | IconButtonSize | "icon-ring";
|
|
111
|
+
"vd-icon-button-xs" | "vd-icon-button-md" | "vd-icon-button-lg";
|
|
112
|
+
export type IconButtonClass = "vd-icon-button" | IconButtonSize | "vd-icon-ring";
|
|
114
113
|
|
|
115
114
|
// Textarea component classes
|
|
116
|
-
export type TextareaBgVariant = "textarea-bg-neutral";
|
|
117
|
-
export type TextareaState = "textarea-error" | "textarea-disabled";
|
|
115
|
+
export type TextareaBgVariant = "vd-textarea-bg-neutral";
|
|
116
|
+
export type TextareaState = "vd-textarea-error" | "vd-textarea-disabled";
|
|
118
117
|
export type TextareaPart =
|
|
119
|
-
| "textarea-container"
|
|
120
|
-
| "textarea-label"
|
|
121
|
-
| "textarea-field"
|
|
122
|
-
| "textarea"
|
|
123
|
-
| "textarea-error-message"
|
|
124
|
-
| "textarea-counter";
|
|
118
|
+
| "vd-textarea-container"
|
|
119
|
+
| "vd-textarea-label"
|
|
120
|
+
| "vd-textarea-field"
|
|
121
|
+
| "vd-textarea"
|
|
122
|
+
| "vd-textarea-error-message"
|
|
123
|
+
| "vd-textarea-counter";
|
|
125
124
|
|
|
126
125
|
// No size type: Figma defines no Size property and height is consumer-driven.
|
|
127
126
|
export type TextareaClass = TextareaPart | TextareaBgVariant | TextareaState;
|
|
128
127
|
|
|
129
128
|
// MenuItem component classes
|
|
130
|
-
export type MenuItemSize = "menu-item-sm" | "menu-item-md" | "menu-item-lg";
|
|
131
|
-
export type MenuItemVariant = "menu-item-combined";
|
|
129
|
+
export type MenuItemSize = "vd-menu-item-sm" | "vd-menu-item-md" | "vd-menu-item-lg";
|
|
130
|
+
export type MenuItemVariant = "vd-menu-item-combined";
|
|
132
131
|
export type MenuItemPart =
|
|
133
|
-
| "menu-item"
|
|
134
|
-
| "menu-item-text"
|
|
135
|
-
| "menu-item-title"
|
|
136
|
-
| "menu-item-subtitle"
|
|
137
|
-
| "menu-item-right-text"
|
|
138
|
-
| "menu-item-badge";
|
|
132
|
+
| "vd-menu-item"
|
|
133
|
+
| "vd-menu-item-text"
|
|
134
|
+
| "vd-menu-item-title"
|
|
135
|
+
| "vd-menu-item-subtitle"
|
|
136
|
+
| "vd-menu-item-right-text"
|
|
137
|
+
| "vd-menu-item-badge";
|
|
139
138
|
|
|
140
139
|
export type MenuItemClass = MenuItemPart | MenuItemSize | MenuItemVariant;
|
|
141
140
|
|
|
142
141
|
// DropdownMenu component classes
|
|
143
142
|
export type DropdownMenuPart =
|
|
144
|
-
"dropdown-menu" | "dropdown-menu-divider" | "dropdown" | "dropdown-panel";
|
|
143
|
+
"vd-dropdown-menu" | "vd-dropdown-menu-divider" | "vd-dropdown" | "vd-dropdown-panel";
|
|
145
144
|
|
|
146
145
|
export type DropdownMenuClass = DropdownMenuPart;
|
|
147
146
|
|
|
148
147
|
// DropdownField component classes
|
|
149
148
|
export type DropdownFieldSize =
|
|
150
|
-
"dropdown-field-sm" | "dropdown-field-md" | "dropdown-field-lg";
|
|
151
|
-
export type DropdownFieldBgVariant = "dropdown-field-bg-neutral";
|
|
152
|
-
export type DropdownFieldState = "dropdown-field-error";
|
|
149
|
+
"vd-dropdown-field-sm" | "vd-dropdown-field-md" | "vd-dropdown-field-lg";
|
|
150
|
+
export type DropdownFieldBgVariant = "vd-dropdown-field-bg-neutral";
|
|
151
|
+
export type DropdownFieldState = "vd-dropdown-field-error";
|
|
153
152
|
export type DropdownFieldPart =
|
|
154
|
-
| "dropdown-field-container"
|
|
155
|
-
| "dropdown-field-label"
|
|
156
|
-
| "dropdown-field"
|
|
157
|
-
| "dropdown-field-value"
|
|
158
|
-
| "dropdown-field-placeholder"
|
|
159
|
-
| "dropdown-field-icon"
|
|
160
|
-
| "dropdown-field-chevron"
|
|
161
|
-
| "dropdown-field-error-message";
|
|
153
|
+
| "vd-dropdown-field-container"
|
|
154
|
+
| "vd-dropdown-field-label"
|
|
155
|
+
| "vd-dropdown-field"
|
|
156
|
+
| "vd-dropdown-field-value"
|
|
157
|
+
| "vd-dropdown-field-placeholder"
|
|
158
|
+
| "vd-dropdown-field-icon"
|
|
159
|
+
| "vd-dropdown-field-chevron"
|
|
160
|
+
| "vd-dropdown-field-error-message";
|
|
162
161
|
|
|
163
162
|
export type DropdownFieldClass =
|
|
164
163
|
| DropdownFieldPart
|
|
@@ -167,278 +166,278 @@ export type DropdownFieldClass =
|
|
|
167
166
|
| DropdownFieldState;
|
|
168
167
|
|
|
169
168
|
// Avatar component classes
|
|
170
|
-
export type AvatarSize = "avatar-xs" | "avatar-sm" | "avatar-md" | "avatar-lg";
|
|
171
|
-
export type AvatarState = "avatar-disabled" | "with-ring";
|
|
172
|
-
export type AvatarClass = "avatar" | AvatarSize | AvatarState;
|
|
169
|
+
export type AvatarSize = "vd-avatar-xs" | "vd-avatar-sm" | "vd-avatar-md" | "vd-avatar-lg";
|
|
170
|
+
export type AvatarState = "vd-avatar-disabled" | "vd-with-ring";
|
|
171
|
+
export type AvatarClass = "vd-avatar" | AvatarSize | AvatarState;
|
|
173
172
|
|
|
174
173
|
// Pill component classes
|
|
175
|
-
export type PillPart = "pill" | "pill-chevron";
|
|
176
|
-
export type PillState = "with-ring";
|
|
174
|
+
export type PillPart = "vd-pill" | "vd-pill-chevron";
|
|
175
|
+
export type PillState = "vd-with-ring";
|
|
177
176
|
export type PillClass = PillPart | PillState;
|
|
178
177
|
|
|
179
178
|
// Tag component classes
|
|
180
|
-
export type TagSize = "tag-sm" | "tag-md";
|
|
181
|
-
export type TagPart = "tag" | "tag-count";
|
|
182
|
-
export type TagState = "with-ring";
|
|
179
|
+
export type TagSize = "vd-tag-sm" | "vd-tag-md";
|
|
180
|
+
export type TagPart = "vd-tag" | "vd-tag-count";
|
|
181
|
+
export type TagState = "vd-with-ring";
|
|
183
182
|
export type TagClass = TagPart | TagSize | TagState;
|
|
184
183
|
|
|
185
184
|
// Tabs component classes
|
|
186
|
-
export type TabsType = "tab-underline" | "tab-chip" | "tab-segment";
|
|
187
|
-
export type TabsSize = "tab-sm";
|
|
188
|
-
export type TabsPart = "tabs" | "tab" | "tab-subtitle";
|
|
189
|
-
export type TabsState = "with-ring";
|
|
185
|
+
export type TabsType = "vd-tab-underline" | "vd-tab-chip" | "vd-tab-segment";
|
|
186
|
+
export type TabsSize = "vd-tab-sm";
|
|
187
|
+
export type TabsPart = "vd-tabs" | "vd-tab" | "vd-tab-subtitle";
|
|
188
|
+
export type TabsState = "vd-with-ring";
|
|
190
189
|
export type TabsClass = TabsPart | TabsType | TabsSize | TabsState;
|
|
191
190
|
|
|
192
191
|
// SegmentSelector component classes
|
|
193
192
|
export type SegmentSelectorClass =
|
|
194
|
-
| "segment-selector"
|
|
193
|
+
| "vd-segment-selector"
|
|
195
194
|
/** Equal-width segments. Not from Figma — its segments hug their labels. */
|
|
196
|
-
| "segment-selector-fill"
|
|
197
|
-
| "with-ring";
|
|
195
|
+
| "vd-segment-selector-fill"
|
|
196
|
+
| "vd-with-ring";
|
|
198
197
|
|
|
199
198
|
// Tooltip component classes
|
|
200
199
|
export type TooltipPart =
|
|
201
|
-
| "tooltip"
|
|
202
|
-
| "tooltip-title"
|
|
203
|
-
| "tooltip-content"
|
|
204
|
-
| "tooltip-divider"
|
|
205
|
-
| "tooltip-subtext";
|
|
200
|
+
| "vd-tooltip"
|
|
201
|
+
| "vd-tooltip-title"
|
|
202
|
+
| "vd-tooltip-content"
|
|
203
|
+
| "vd-tooltip-divider"
|
|
204
|
+
| "vd-tooltip-subtext";
|
|
206
205
|
export type TooltipClass = TooltipPart;
|
|
207
206
|
|
|
208
207
|
// Modal component classes
|
|
209
208
|
export type ModalAction =
|
|
210
|
-
"modal-destructive" | "modal-positive" | "modal-neutral";
|
|
209
|
+
"vd-modal-destructive" | "vd-modal-positive" | "vd-modal-neutral";
|
|
211
210
|
export type ModalPart =
|
|
212
|
-
| "modal-header"
|
|
213
|
-
| "modal-title-group"
|
|
214
|
-
| "modal-icon"
|
|
215
|
-
| "modal-title"
|
|
216
|
-
| "modal-subtitles"
|
|
217
|
-
| "modal-subtitle"
|
|
218
|
-
| "modal-description"
|
|
219
|
-
| "modal-context"
|
|
220
|
-
| "modal-context-text"
|
|
221
|
-
| "modal-footer";
|
|
222
|
-
export type ModalClass = "modal" | ModalAction | ModalPart;
|
|
211
|
+
| "vd-modal-header"
|
|
212
|
+
| "vd-modal-title-group"
|
|
213
|
+
| "vd-modal-icon"
|
|
214
|
+
| "vd-modal-title"
|
|
215
|
+
| "vd-modal-subtitles"
|
|
216
|
+
| "vd-modal-subtitle"
|
|
217
|
+
| "vd-modal-description"
|
|
218
|
+
| "vd-modal-context"
|
|
219
|
+
| "vd-modal-context-text"
|
|
220
|
+
| "vd-modal-footer";
|
|
221
|
+
export type ModalClass = "vd-modal" | ModalAction | ModalPart;
|
|
223
222
|
|
|
224
223
|
// TextButton component classes
|
|
225
224
|
// Text Button is NOT a .btn variant — different Figma component (679:21601),
|
|
226
225
|
// different type scale, and it hugs its text instead of having a fixed height.
|
|
227
226
|
export type TextButtonType =
|
|
228
|
-
"text-button-cell" | "text-button-text" | "text-button-primary";
|
|
229
|
-
export type TextButtonClass = "text-button" | TextButtonType | "with-ring";
|
|
227
|
+
"vd-text-button-cell" | "vd-text-button-text" | "vd-text-button-primary";
|
|
228
|
+
export type TextButtonClass = "vd-text-button" | TextButtonType | "vd-with-ring";
|
|
230
229
|
|
|
231
230
|
// Toast component classes
|
|
232
231
|
// Style=Simple exists only for Type=info in Figma, so the type classes are
|
|
233
232
|
// inert on .toast-simple.
|
|
234
|
-
export type ToastType = "toast-success" | "toast-error" | "toast-info";
|
|
235
|
-
export type ToastStyle = "toast-simple";
|
|
233
|
+
export type ToastType = "vd-toast-success" | "vd-toast-error" | "vd-toast-info";
|
|
234
|
+
export type ToastStyle = "vd-toast-simple";
|
|
236
235
|
export type ToastPart =
|
|
237
|
-
| "toast-header"
|
|
238
|
-
| "toast-main"
|
|
239
|
-
| "toast-icon"
|
|
240
|
-
| "toast-text"
|
|
241
|
-
| "toast-title"
|
|
242
|
-
| "toast-message"
|
|
243
|
-
| "toast-footer"
|
|
244
|
-
| "toast-timestamp";
|
|
245
|
-
export type ToastClass = "toast" | ToastType | ToastStyle | ToastPart;
|
|
236
|
+
| "vd-toast-header"
|
|
237
|
+
| "vd-toast-main"
|
|
238
|
+
| "vd-toast-icon"
|
|
239
|
+
| "vd-toast-text"
|
|
240
|
+
| "vd-toast-title"
|
|
241
|
+
| "vd-toast-message"
|
|
242
|
+
| "vd-toast-footer"
|
|
243
|
+
| "vd-toast-timestamp";
|
|
244
|
+
export type ToastClass = "vd-toast" | ToastType | ToastStyle | ToastPart;
|
|
246
245
|
|
|
247
246
|
// Alert component classes
|
|
248
247
|
// A type class is REQUIRED — .alert carries layout only and Figma's Type axis
|
|
249
248
|
// has no default. See src/components/alert.css.
|
|
250
249
|
export type AlertType =
|
|
251
|
-
| "alert-critical"
|
|
252
|
-
| "alert-warning"
|
|
253
|
-
| "alert-success"
|
|
254
|
-
| "alert-info"
|
|
255
|
-
| "alert-neutral";
|
|
250
|
+
| "vd-alert-critical"
|
|
251
|
+
| "vd-alert-warning"
|
|
252
|
+
| "vd-alert-success"
|
|
253
|
+
| "vd-alert-info"
|
|
254
|
+
| "vd-alert-neutral";
|
|
256
255
|
export type AlertPart =
|
|
257
|
-
| "alert-body"
|
|
258
|
-
| "alert-icon"
|
|
259
|
-
| "alert-content"
|
|
260
|
-
| "alert-title"
|
|
261
|
-
| "alert-message";
|
|
262
|
-
export type AlertClass = "alert" | AlertType | AlertPart;
|
|
256
|
+
| "vd-alert-body"
|
|
257
|
+
| "vd-alert-icon"
|
|
258
|
+
| "vd-alert-content"
|
|
259
|
+
| "vd-alert-title"
|
|
260
|
+
| "vd-alert-message";
|
|
261
|
+
export type AlertClass = "vd-alert" | AlertType | AlertPart;
|
|
263
262
|
|
|
264
263
|
// SectionMarker component classes
|
|
265
264
|
// No "section-marker-na" — Figma's na variant draws nothing, so the class would
|
|
266
265
|
// carry no declarations. na is a bare .section-marker with no child.
|
|
267
266
|
export type SectionMarkerStatus =
|
|
268
|
-
| "section-marker-approve"
|
|
269
|
-
| "section-marker-mismatch"
|
|
270
|
-
| "section-marker-unverified";
|
|
267
|
+
| "vd-section-marker-approve"
|
|
268
|
+
| "vd-section-marker-mismatch"
|
|
269
|
+
| "vd-section-marker-unverified";
|
|
271
270
|
export type SectionMarkerClass =
|
|
272
|
-
"section-marker" | SectionMarkerStatus | "section-marker-dot" | "with-ring";
|
|
271
|
+
"vd-section-marker" | SectionMarkerStatus | "vd-section-marker-dot" | "vd-with-ring";
|
|
273
272
|
|
|
274
273
|
// FieldVerification component classes
|
|
275
274
|
export type FieldVerificationState =
|
|
276
|
-
| "field-verification-verified"
|
|
277
|
-
| "field-verification-pending"
|
|
278
|
-
| "field-verification-none"
|
|
279
|
-
| "field-verification-mismatch";
|
|
275
|
+
| "vd-field-verification-verified"
|
|
276
|
+
| "vd-field-verification-pending"
|
|
277
|
+
| "vd-field-verification-none"
|
|
278
|
+
| "vd-field-verification-mismatch";
|
|
280
279
|
export type FieldVerificationPart =
|
|
281
|
-
| "field-verification-icon"
|
|
282
|
-
| "field-verification-label"
|
|
283
|
-
| "field-verification-details"
|
|
284
|
-
| "field-verification-detail"
|
|
285
|
-
| "field-verification-action";
|
|
280
|
+
| "vd-field-verification-icon"
|
|
281
|
+
| "vd-field-verification-label"
|
|
282
|
+
| "vd-field-verification-details"
|
|
283
|
+
| "vd-field-verification-detail"
|
|
284
|
+
| "vd-field-verification-action";
|
|
286
285
|
export type FieldVerificationClass =
|
|
287
|
-
| "field-verification"
|
|
286
|
+
| "vd-field-verification"
|
|
288
287
|
| FieldVerificationState
|
|
289
288
|
| FieldVerificationPart
|
|
290
|
-
| "with-ring";
|
|
289
|
+
| "vd-with-ring";
|
|
291
290
|
|
|
292
291
|
// PaginationItem component classes
|
|
293
292
|
// No "pagination-item-default" — default is the bare base class, matching
|
|
294
293
|
// Figma's default variant.
|
|
295
294
|
export type PaginationItemKind =
|
|
296
|
-
"pagination-item-active" | "pagination-item-ellipsis" | "pagination-item-nav";
|
|
297
|
-
export type PaginationItemClass = "pagination-item" | PaginationItemKind;
|
|
295
|
+
"vd-pagination-item-active" | "vd-pagination-item-ellipsis" | "vd-pagination-item-nav";
|
|
296
|
+
export type PaginationItemClass = "vd-pagination-item" | PaginationItemKind;
|
|
298
297
|
|
|
299
298
|
// Pagination component classes
|
|
300
299
|
// No "pagination-numbered" / "pagination-simple" — both Figma types share the
|
|
301
300
|
// same root and differ only in their children.
|
|
302
301
|
export type PaginationPart =
|
|
303
|
-
| "pagination-pages"
|
|
304
|
-
| "pagination-summary"
|
|
305
|
-
| "pagination-status"
|
|
306
|
-
| "pagination-status-current";
|
|
307
|
-
export type PaginationClass = "pagination" | PaginationPart;
|
|
302
|
+
| "vd-pagination-pages"
|
|
303
|
+
| "vd-pagination-summary"
|
|
304
|
+
| "vd-pagination-status"
|
|
305
|
+
| "vd-pagination-status-current";
|
|
306
|
+
export type PaginationClass = "vd-pagination" | PaginationPart;
|
|
308
307
|
|
|
309
308
|
// FilterSegment component classes
|
|
310
309
|
// Position is three separate yes/no booleans in Figma (First/Middle/Last) with
|
|
311
310
|
// exactly one ever set. Middle is the default, so it is the bare base class.
|
|
312
311
|
export type FilterSegmentPosition =
|
|
313
|
-
"filter-segment-first" | "filter-segment-last";
|
|
314
|
-
export type FilterSegmentSize = "filter-segment-md";
|
|
312
|
+
"vd-filter-segment-first" | "vd-filter-segment-last";
|
|
313
|
+
export type FilterSegmentSize = "vd-filter-segment-md";
|
|
315
314
|
export type FilterSegmentClass =
|
|
316
|
-
| "filter-segment"
|
|
315
|
+
| "vd-filter-segment"
|
|
317
316
|
| FilterSegmentPosition
|
|
318
317
|
| FilterSegmentSize
|
|
319
|
-
| "filter-segments"
|
|
320
|
-
| "with-ring";
|
|
318
|
+
| "vd-filter-segments"
|
|
319
|
+
| "vd-with-ring";
|
|
321
320
|
|
|
322
321
|
// Link component classes
|
|
323
322
|
// strong is the base. `link-inline` is NOT used with `.link` — it is a
|
|
324
323
|
// paragraph class whose anchors are styled as descendants.
|
|
325
324
|
export type LinkStyle =
|
|
326
|
-
"link-strong" | "link-quiet" | "link-monospace" | "link-critical";
|
|
327
|
-
export type LinkClass = "link" | LinkStyle | "link-inline";
|
|
325
|
+
"vd-link-strong" | "vd-link-quiet" | "vd-link-monospace" | "vd-link-critical";
|
|
326
|
+
export type LinkClass = "vd-link" | LinkStyle | "vd-link-inline";
|
|
328
327
|
|
|
329
328
|
// Divider component classes
|
|
330
329
|
// The three Figma types are structurally incompatible, so `-labeled` and
|
|
331
330
|
// `-metadata` are standalone container classes rather than modifiers — they do
|
|
332
331
|
// NOT take `.divider`, which is itself the simple type.
|
|
333
332
|
export type DividerPart =
|
|
334
|
-
| "divider-labeled"
|
|
335
|
-
| "divider-label"
|
|
336
|
-
| "divider-metadata"
|
|
337
|
-
| "divider-metadata-item"
|
|
338
|
-
| "divider-metadata-key"
|
|
339
|
-
| "divider-metadata-value"
|
|
340
|
-
| "divider-metadata-separator";
|
|
341
|
-
export type DividerClass = "divider" | DividerPart;
|
|
333
|
+
| "vd-divider-labeled"
|
|
334
|
+
| "vd-divider-label"
|
|
335
|
+
| "vd-divider-metadata"
|
|
336
|
+
| "vd-divider-metadata-item"
|
|
337
|
+
| "vd-divider-metadata-key"
|
|
338
|
+
| "vd-divider-metadata-value"
|
|
339
|
+
| "vd-divider-metadata-separator";
|
|
340
|
+
export type DividerClass = "vd-divider" | DividerPart;
|
|
342
341
|
|
|
343
342
|
// LoadingIndicator component classes
|
|
344
343
|
// XS is the default, matching Figma's first variant — and the size Loading
|
|
345
344
|
// Inline embeds at every one of ITS sizes.
|
|
346
345
|
export type LoadingIndicatorSize =
|
|
347
|
-
"loading-indicator-sm" | "loading-indicator-md" | "loading-indicator-lg";
|
|
346
|
+
"vd-loading-indicator-sm" | "vd-loading-indicator-md" | "vd-loading-indicator-lg";
|
|
348
347
|
export type LoadingIndicatorClass =
|
|
349
|
-
| "loading-indicator"
|
|
348
|
+
| "vd-loading-indicator"
|
|
350
349
|
| LoadingIndicatorSize
|
|
351
|
-
| "loading-indicator-dots"
|
|
352
|
-
| "loading-indicator-dot";
|
|
350
|
+
| "vd-loading-indicator-dots"
|
|
351
|
+
| "vd-loading-indicator-dot";
|
|
353
352
|
|
|
354
353
|
// LoadingInline component classes
|
|
355
354
|
export type LoadingInlineSize =
|
|
356
|
-
"loading-inline-sm" | "loading-inline-md" | "loading-inline-lg";
|
|
357
|
-
export type LoadingInlineClass = "loading-inline" | LoadingInlineSize;
|
|
355
|
+
"vd-loading-inline-sm" | "vd-loading-inline-md" | "vd-loading-inline-lg";
|
|
356
|
+
export type LoadingInlineClass = "vd-loading-inline" | LoadingInlineSize;
|
|
358
357
|
|
|
359
358
|
// ProgressBar component classes
|
|
360
359
|
// Figma's variant axis is named "Has Legend" but actually swaps the COLOUR —
|
|
361
360
|
// both variants render a legend. Renamed here. See src/components/progress-bar.css.
|
|
362
|
-
export type ProgressBarScheme = "progress-bar-success";
|
|
361
|
+
export type ProgressBarScheme = "vd-progress-bar-success";
|
|
363
362
|
export type ProgressBarPart =
|
|
364
|
-
| "progress-bar-header"
|
|
365
|
-
| "progress-bar-title"
|
|
366
|
-
| "progress-bar-value"
|
|
367
|
-
| "progress-bar-track"
|
|
368
|
-
| "progress-bar-fill"
|
|
369
|
-
| "progress-bar-legend"
|
|
370
|
-
| "progress-bar-legend-item"
|
|
371
|
-
| "progress-bar-legend-swatch"
|
|
372
|
-
| "progress-bar-legend-swatch-neutral"
|
|
373
|
-
| "progress-bar-legend-label";
|
|
363
|
+
| "vd-progress-bar-header"
|
|
364
|
+
| "vd-progress-bar-title"
|
|
365
|
+
| "vd-progress-bar-value"
|
|
366
|
+
| "vd-progress-bar-track"
|
|
367
|
+
| "vd-progress-bar-fill"
|
|
368
|
+
| "vd-progress-bar-legend"
|
|
369
|
+
| "vd-progress-bar-legend-item"
|
|
370
|
+
| "vd-progress-bar-legend-swatch"
|
|
371
|
+
| "vd-progress-bar-legend-swatch-neutral"
|
|
372
|
+
| "vd-progress-bar-legend-label";
|
|
374
373
|
export type ProgressBarClass =
|
|
375
|
-
"progress-bar" | ProgressBarScheme | ProgressBarPart;
|
|
374
|
+
"vd-progress-bar" | ProgressBarScheme | ProgressBarPart;
|
|
376
375
|
|
|
377
376
|
// Step component classes
|
|
378
377
|
// Completed is Figma's default variant, so it is the bare base class.
|
|
379
|
-
export type StepState = "step-active" | "step-upcoming";
|
|
380
|
-
export type StepPart = "step-marker" | "step-label";
|
|
381
|
-
export type StepClass = "step" | StepState | StepPart;
|
|
378
|
+
export type StepState = "vd-step-active" | "vd-step-upcoming";
|
|
379
|
+
export type StepPart = "vd-step-marker" | "vd-step-label";
|
|
380
|
+
export type StepClass = "vd-step" | StepState | StepPart;
|
|
382
381
|
|
|
383
382
|
// Stepper component classes
|
|
384
383
|
export type StepperPart =
|
|
385
|
-
| "stepper-title"
|
|
386
|
-
| "stepper-steps"
|
|
387
|
-
| "stepper-connector"
|
|
388
|
-
| "stepper-connector-complete";
|
|
389
|
-
export type StepperClass = "stepper" | StepperPart;
|
|
384
|
+
| "vd-stepper-title"
|
|
385
|
+
| "vd-stepper-steps"
|
|
386
|
+
| "vd-stepper-connector"
|
|
387
|
+
| "vd-stepper-connector-complete";
|
|
388
|
+
export type StepperClass = "vd-stepper" | StepperPart;
|
|
390
389
|
|
|
391
390
|
// Breadcrumbs component classes
|
|
392
391
|
// `-mono` carries TYPE ONLY and composes with `-current`, which supplies the
|
|
393
392
|
// colour. Separators are text characters, not icons.
|
|
394
393
|
export type BreadcrumbsPart =
|
|
395
|
-
| "breadcrumb"
|
|
396
|
-
| "breadcrumb-current"
|
|
397
|
-
| "breadcrumb-home"
|
|
398
|
-
| "breadcrumb-separator"
|
|
399
|
-
| "breadcrumb-separator-chevron"
|
|
400
|
-
| "breadcrumb-separator-dot";
|
|
401
|
-
export type BreadcrumbsClass = "breadcrumbs" | BreadcrumbsPart;
|
|
394
|
+
| "vd-breadcrumb"
|
|
395
|
+
| "vd-breadcrumb-current"
|
|
396
|
+
| "vd-breadcrumb-home"
|
|
397
|
+
| "vd-breadcrumb-separator"
|
|
398
|
+
| "vd-breadcrumb-separator-chevron"
|
|
399
|
+
| "vd-breadcrumb-separator-dot";
|
|
400
|
+
export type BreadcrumbsClass = "vd-breadcrumbs" | BreadcrumbsPart;
|
|
402
401
|
|
|
403
402
|
// SensitiveData component classes
|
|
404
|
-
export type SensitiveDataPart = "sensitive-data-value";
|
|
405
|
-
export type SensitiveDataClass = "sensitive-data" | SensitiveDataPart;
|
|
403
|
+
export type SensitiveDataPart = "vd-sensitive-data-value";
|
|
404
|
+
export type SensitiveDataClass = "vd-sensitive-data" | SensitiveDataPart;
|
|
406
405
|
|
|
407
406
|
// DataRow component classes
|
|
408
407
|
export type DataRowPart =
|
|
409
|
-
| "data-row-field"
|
|
410
|
-
| "data-row-value"
|
|
408
|
+
| "vd-data-row-field"
|
|
409
|
+
| "vd-data-row-value"
|
|
411
410
|
/** Additive: stretches the Field Verification slot, like segment-selector-fill. */
|
|
412
|
-
| "data-row-status"
|
|
413
|
-
| "data-row-action";
|
|
414
|
-
export type DataRowClass = "data-row" | DataRowPart | "with-ring";
|
|
411
|
+
| "vd-data-row-status"
|
|
412
|
+
| "vd-data-row-action";
|
|
413
|
+
export type DataRowClass = "vd-data-row" | DataRowPart | "vd-with-ring";
|
|
415
414
|
|
|
416
415
|
// Checkbox component classes
|
|
417
416
|
// The control is a native <input type="checkbox"> inside a real <label>; every
|
|
418
417
|
// state is native (:checked / :disabled), so there is no checked/disabled class.
|
|
419
418
|
export type CheckboxPart =
|
|
420
|
-
| "checkbox-control"
|
|
421
|
-
| "checkbox-input"
|
|
422
|
-
| "checkbox-check"
|
|
423
|
-
| "checkbox-label"
|
|
424
|
-
| "checkbox-subtitle";
|
|
425
|
-
export type CheckboxClass = "checkbox" | CheckboxPart | "with-ring";
|
|
419
|
+
| "vd-checkbox-control"
|
|
420
|
+
| "vd-checkbox-input"
|
|
421
|
+
| "vd-checkbox-check"
|
|
422
|
+
| "vd-checkbox-label"
|
|
423
|
+
| "vd-checkbox-subtitle";
|
|
424
|
+
export type CheckboxClass = "vd-checkbox" | CheckboxPart | "vd-with-ring";
|
|
426
425
|
|
|
427
426
|
// Skeleton component classes
|
|
428
427
|
// Skeleton component classes
|
|
429
428
|
// Both axes are required — neither has a default in Figma, and the dimensions
|
|
430
429
|
// are a 5x3 matrix rather than one box with three scales.
|
|
431
430
|
export type SkeletonShape =
|
|
432
|
-
| "skeleton-line"
|
|
433
|
-
| "skeleton-heading"
|
|
434
|
-
| "skeleton-circle"
|
|
435
|
-
| "skeleton-rectangle"
|
|
436
|
-
| "skeleton-button";
|
|
437
|
-
export type SkeletonSize = "skeleton-sm" | "skeleton-md" | "skeleton-lg";
|
|
438
|
-
export type SkeletonClass = "skeleton" | SkeletonShape | SkeletonSize;
|
|
431
|
+
| "vd-skeleton-line"
|
|
432
|
+
| "vd-skeleton-heading"
|
|
433
|
+
| "vd-skeleton-circle"
|
|
434
|
+
| "vd-skeleton-rectangle"
|
|
435
|
+
| "vd-skeleton-button";
|
|
436
|
+
export type SkeletonSize = "vd-skeleton-sm" | "vd-skeleton-md" | "vd-skeleton-lg";
|
|
437
|
+
export type SkeletonClass = "vd-skeleton" | SkeletonShape | SkeletonSize;
|
|
439
438
|
|
|
440
439
|
// NavigationRail component classes
|
|
441
|
-
export type NavigationRailClass = "
|
|
440
|
+
export type NavigationRailClass = "vd-nav-rail";
|
|
442
441
|
|
|
443
442
|
// Union of all component classes
|
|
444
443
|
export type ValiifyComponentClass =
|