@viraui/react 0.0.26 → 0.0.27
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/dist/catalog.json +102 -84
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion.module.js +14 -7
- package/dist/components/avatar/avatar.module.js +8 -4
- package/dist/components/avatar-group/avatar-group.js +1 -1
- package/dist/components/avatar-group/avatar-group.module.js +12 -6
- package/dist/components/basic-input/basic-input.module.js +4 -2
- package/dist/components/basic-input/field-label.module.js +4 -2
- package/dist/components/bleed/bleed.module.js +4 -2
- package/dist/components/button/button.css +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.module.js +8 -4
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox/checkbox.module.js +16 -8
- package/dist/components/chip/chip.module.js +10 -5
- package/dist/components/clamp-text/clamp-text.module.js +4 -2
- package/dist/components/dialog/dialog-sheet.js +2 -2
- package/dist/components/dialog/dialog.module.js +24 -12
- package/dist/components/elevator/elevator.js +2 -2
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/icon/icon.module.js +4 -2
- package/dist/components/index.d.ts +18 -15
- package/dist/components/linear-progress/linear-progress.js +1 -1
- package/dist/components/linear-progress/linear-progress.module.js +8 -4
- package/dist/components/masonry/masonry.module.js +6 -3
- package/dist/components/meter/meter.js +1 -1
- package/dist/components/meter/meter.module.js +8 -4
- package/dist/components/popover/popover-sheet.js +2 -2
- package/dist/components/popover/popover.module.js +10 -5
- package/dist/components/progressive-blur/progressive-blur.module.js +6 -3
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio/radio.module.js +8 -4
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-option.js +2 -2
- package/dist/components/select/select.js +4 -4
- package/dist/components/select/select.module.js +36 -18
- package/dist/components/separator/separator.module.js +4 -2
- package/dist/components/shimmer/shimmer.module.js +4 -2
- package/dist/components/skeleton/skeleton.module.js +4 -2
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/slider/slider.module.js +20 -10
- package/dist/components/spinner/spinner.module.js +6 -3
- package/dist/components/stack/stack.module.js +4 -2
- package/dist/components/static-noise/static-noise.module.js +6 -3
- package/dist/components/surface/surface-radius-context.js +1 -1
- package/dist/components/surface/surface.module.js +4 -2
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/switch/switch.module.js +10 -5
- package/dist/components/tabs/tabs.module.js +16 -8
- package/dist/components/text/text.module.js +4 -2
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textarea/textarea.module.js +10 -5
- package/dist/components/textfield/textfield.js +1 -1
- package/dist/components/textfield/textfield.module.js +14 -7
- package/dist/components/title/title.module.js +4 -2
- package/dist/components/toast/toast-banner.js +1 -1
- package/dist/components/toast/toast.css +1 -1
- package/dist/components/toast/toast.module.js +8 -4
- package/dist/components/toggle-button/index.d.ts +2 -0
- package/dist/components/toggle-button/toggle-button.d.ts +39 -0
- package/dist/components/toggle-button/toggle-button.guide.json +25 -0
- package/dist/components/toggle-button/toggle-button.js +25 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group.guide.json +26 -0
- package/dist/components/toggle-group/toggle-group.js +15 -0
- package/dist/components/tooltip/index.d.ts +6 -0
- package/dist/components/tooltip/tooltip-content.d.ts +15 -0
- package/dist/components/tooltip/tooltip-content.js +32 -0
- package/dist/components/tooltip/tooltip.css +1 -0
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components/tooltip/tooltip.guide.json +25 -0
- package/dist/components/tooltip/tooltip.js +20 -0
- package/dist/components/tooltip/tooltip.module.js +11 -0
- package/dist/components/typewriter/index.d.ts +3 -0
- package/dist/components/typewriter/typewriter.css +1 -0
- package/dist/components/typewriter/typewriter.d.ts +68 -0
- package/dist/components/typewriter/typewriter.guide.json +39 -0
- package/dist/components/typewriter/typewriter.js +105 -0
- package/dist/components/typewriter/typewriter.module.js +18 -0
- package/dist/components/typewriter/typewriter.utils.d.ts +23 -0
- package/dist/components/typewriter/typewriter.utils.js +100 -0
- package/dist/index.js +22 -17
- package/dist/preflight.css +1 -1
- package/package.json +6 -6
package/dist/catalog.json
CHANGED
|
@@ -20,36 +20,42 @@
|
|
|
20
20
|
"summary": "Overlapping avatar stack with shared sizing, directional layout, and an optional overflow pill.",
|
|
21
21
|
"guidePath": "./components/avatar-group/avatar-group.guide.json"
|
|
22
22
|
},
|
|
23
|
-
{
|
|
24
|
-
"id": "accordion",
|
|
25
|
-
"name": "Accordion",
|
|
26
|
-
"summary": "Collapsible sections grouped into open/closed blocks with optional Surface wrapping, shared corner radius, and background on open items.",
|
|
27
|
-
"guidePath": "./components/accordion/accordion.guide.json"
|
|
28
|
-
},
|
|
29
23
|
{
|
|
30
24
|
"id": "bleed",
|
|
31
25
|
"name": "Bleed",
|
|
32
26
|
"summary": "Layout utility that pulls content past inline padding using negative margins or full viewport bleed.",
|
|
33
27
|
"guidePath": "./components/bleed/bleed.guide.json"
|
|
34
28
|
},
|
|
29
|
+
{
|
|
30
|
+
"id": "button",
|
|
31
|
+
"name": "Button",
|
|
32
|
+
"summary": "Primary action control with size, variant, optional addon, optional pill shape, and loading state.",
|
|
33
|
+
"guidePath": "./components/button/button.guide.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "checkbox",
|
|
37
|
+
"name": "Checkbox",
|
|
38
|
+
"summary": "Field.Item checkbox option for standalone fields or CheckboxGroup children.",
|
|
39
|
+
"guidePath": "./components/checkbox/checkbox.guide.json"
|
|
40
|
+
},
|
|
35
41
|
{
|
|
36
42
|
"id": "chip",
|
|
37
43
|
"name": "Chip",
|
|
38
44
|
"summary": "Compact visual label primitive for short status, category, or metadata treatments.",
|
|
39
45
|
"guidePath": "./components/chip/chip.guide.json"
|
|
40
46
|
},
|
|
41
|
-
{
|
|
42
|
-
"id": "dialog",
|
|
43
|
-
"name": "Dialog",
|
|
44
|
-
"summary": "Compound drawer sheet with `Dialog.Trigger`, `Dialog.Sheet`, `Dialog.Close`, and Base UI pass-through `Dialog.Provider`, `Dialog.Indent`, and `Dialog.IndentBackground` for app-shell indent effects.",
|
|
45
|
-
"guidePath": "./components/dialog/dialog.guide.json"
|
|
46
|
-
},
|
|
47
47
|
{
|
|
48
48
|
"id": "clamp-text",
|
|
49
49
|
"name": "ClampText",
|
|
50
50
|
"summary": "Presentational utility that truncates overflowing copy to a fixed line count.",
|
|
51
51
|
"guidePath": "./components/clamp-text/clamp-text.guide.json"
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"id": "dialog",
|
|
55
|
+
"name": "Dialog",
|
|
56
|
+
"summary": "Compound drawer sheet with `Dialog.Trigger`, `Dialog.Sheet`, `Dialog.Close`, and Base UI pass-through `Dialog.Provider`, `Dialog.Indent`, and `Dialog.IndentBackground` for app-shell indent effects.",
|
|
57
|
+
"guidePath": "./components/dialog/dialog.guide.json"
|
|
58
|
+
},
|
|
53
59
|
{
|
|
54
60
|
"id": "elevator",
|
|
55
61
|
"name": "Elevator",
|
|
@@ -57,10 +63,16 @@
|
|
|
57
63
|
"guidePath": "./components/elevator/elevator.guide.json"
|
|
58
64
|
},
|
|
59
65
|
{
|
|
60
|
-
"id": "
|
|
61
|
-
"name": "
|
|
62
|
-
"summary": "
|
|
63
|
-
"guidePath": "./components/
|
|
66
|
+
"id": "fieldset",
|
|
67
|
+
"name": "Fieldset",
|
|
68
|
+
"summary": "Semantic field grouping with shared legend and optional group helper copy.",
|
|
69
|
+
"guidePath": "./components/fieldset/fieldset.guide.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "icon",
|
|
73
|
+
"name": "Icon",
|
|
74
|
+
"summary": "Decorative Vira SVG icon selected by name and variant.",
|
|
75
|
+
"guidePath": "./components/icon/icon.guide.json"
|
|
64
76
|
},
|
|
65
77
|
{
|
|
66
78
|
"id": "icon-button",
|
|
@@ -74,18 +86,18 @@
|
|
|
74
86
|
"summary": "Shows determinate or indeterminate progress for a task in a compact horizontal track.",
|
|
75
87
|
"guidePath": "./components/linear-progress/linear-progress.guide.json"
|
|
76
88
|
},
|
|
77
|
-
{
|
|
78
|
-
"id": "meter",
|
|
79
|
-
"name": "Meter",
|
|
80
|
-
"summary": "Shows a determinate metric in a compact horizontal track for static capacity, level, or score values.",
|
|
81
|
-
"guidePath": "./components/meter/meter.guide.json"
|
|
82
|
-
},
|
|
83
89
|
{
|
|
84
90
|
"id": "masonry",
|
|
85
91
|
"name": "Masonry",
|
|
86
92
|
"summary": "Multi-column layout primitive for read-only mixed-height content walls.",
|
|
87
93
|
"guidePath": "./components/masonry/masonry.guide.json"
|
|
88
94
|
},
|
|
95
|
+
{
|
|
96
|
+
"id": "meter",
|
|
97
|
+
"name": "Meter",
|
|
98
|
+
"summary": "Shows a determinate metric in a compact horizontal track for static capacity, level, or score values.",
|
|
99
|
+
"guidePath": "./components/meter/meter.guide.json"
|
|
100
|
+
},
|
|
89
101
|
{
|
|
90
102
|
"id": "popover",
|
|
91
103
|
"name": "Popover",
|
|
@@ -93,40 +105,10 @@
|
|
|
93
105
|
"guidePath": "./components/popover/popover.guide.json"
|
|
94
106
|
},
|
|
95
107
|
{
|
|
96
|
-
"id": "
|
|
97
|
-
"name": "
|
|
98
|
-
"summary": "
|
|
99
|
-
"guidePath": "./components/
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"id": "textarea",
|
|
103
|
-
"name": "Textarea",
|
|
104
|
-
"summary": "Multi-line field control with shared field copy and optional resize.",
|
|
105
|
-
"guidePath": "./components/textarea/textarea.guide.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"id": "slider",
|
|
109
|
-
"name": "Slider",
|
|
110
|
-
"summary": "Field-wrapped range input supporting single-thumb or two-thumb range selection.",
|
|
111
|
-
"guidePath": "./components/slider/slider.guide.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"id": "switch",
|
|
115
|
-
"name": "Switch",
|
|
116
|
-
"summary": "Field-wrapped toggle control with regular or small track and optional field copy.",
|
|
117
|
-
"guidePath": "./components/switch/switch.guide.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"id": "checkbox",
|
|
121
|
-
"name": "Checkbox",
|
|
122
|
-
"summary": "Field.Item checkbox option for standalone fields or CheckboxGroup children.",
|
|
123
|
-
"guidePath": "./components/checkbox/checkbox.guide.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"id": "fieldset",
|
|
127
|
-
"name": "Fieldset",
|
|
128
|
-
"summary": "Semantic field grouping with shared legend and optional group helper copy.",
|
|
129
|
-
"guidePath": "./components/fieldset/fieldset.guide.json"
|
|
108
|
+
"id": "progressive-blur",
|
|
109
|
+
"name": "ProgressiveBlur",
|
|
110
|
+
"summary": "Decorative stacked backdrop-filter overlay that ramps blur from one edge toward the opposite edge.",
|
|
111
|
+
"guidePath": "./components/progressive-blur/progressive-blur.guide.json"
|
|
130
112
|
},
|
|
131
113
|
{
|
|
132
114
|
"id": "radio",
|
|
@@ -152,36 +134,78 @@
|
|
|
152
134
|
"summary": "Decorative inline text shimmer that inherits typography and color from a parent text primitive.",
|
|
153
135
|
"guidePath": "./components/shimmer/shimmer.guide.json"
|
|
154
136
|
},
|
|
155
|
-
{
|
|
156
|
-
"id": "icon",
|
|
157
|
-
"name": "Icon",
|
|
158
|
-
"summary": "Decorative Vira SVG icon selected by name and variant.",
|
|
159
|
-
"guidePath": "./components/icon/icon.guide.json"
|
|
160
|
-
},
|
|
161
137
|
{
|
|
162
138
|
"id": "skeleton",
|
|
163
139
|
"name": "Skeleton",
|
|
164
140
|
"summary": "Decorative loading placeholder sized by props, not children.",
|
|
165
141
|
"guidePath": "./components/skeleton/skeleton.guide.json"
|
|
166
142
|
},
|
|
143
|
+
{
|
|
144
|
+
"id": "slider",
|
|
145
|
+
"name": "Slider",
|
|
146
|
+
"summary": "Field-wrapped range input supporting single-thumb or two-thumb range selection.",
|
|
147
|
+
"guidePath": "./components/slider/slider.guide.json"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "spinner",
|
|
151
|
+
"name": "Spinner",
|
|
152
|
+
"summary": "Decorative SVG pulsing loading indicator used inside interactive components.",
|
|
153
|
+
"guidePath": "./components/spinner/spinner.guide.json"
|
|
154
|
+
},
|
|
167
155
|
{
|
|
168
156
|
"id": "stack",
|
|
169
157
|
"name": "Stack",
|
|
170
158
|
"summary": "Flex layout primitive for arranging children with token spacing, alignment, and padding; root is a named CSS container query context (`stack`).",
|
|
171
159
|
"guidePath": "./components/stack/stack.guide.json"
|
|
172
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"id": "static-noise",
|
|
163
|
+
"name": "StaticNoise",
|
|
164
|
+
"summary": "Decorative SVG turbulence noise overlay for textured surfaces and hero sections.",
|
|
165
|
+
"guidePath": "./components/static-noise/static-noise.guide.json"
|
|
166
|
+
},
|
|
173
167
|
{
|
|
174
168
|
"id": "surface",
|
|
175
169
|
"name": "Surface",
|
|
176
170
|
"summary": "Presentational container with token background, optional border, radius, and padding; nested surfaces use radius=\"auto\" for concentric corners; root is a named CSS container query context (`surface`).",
|
|
177
171
|
"guidePath": "./components/surface/surface.guide.json"
|
|
178
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"id": "switch",
|
|
175
|
+
"name": "Switch",
|
|
176
|
+
"summary": "Field-wrapped toggle control with regular or small track and optional field copy.",
|
|
177
|
+
"guidePath": "./components/switch/switch.guide.json"
|
|
178
|
+
},
|
|
179
179
|
{
|
|
180
180
|
"id": "tabs",
|
|
181
181
|
"name": "Tabs",
|
|
182
182
|
"summary": "Compound segmented tab control with Surface list chrome, moving indicator, and animated panels.",
|
|
183
183
|
"guidePath": "./components/tabs/tabs.guide.json"
|
|
184
184
|
},
|
|
185
|
+
{
|
|
186
|
+
"id": "text",
|
|
187
|
+
"name": "Text",
|
|
188
|
+
"summary": "Theme-aware body-copy primitive with tone, family, and responsive body sizing.",
|
|
189
|
+
"guidePath": "./components/text/text.guide.json"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "textarea",
|
|
193
|
+
"name": "Textarea",
|
|
194
|
+
"summary": "Multi-line field control with shared field copy and optional resize.",
|
|
195
|
+
"guidePath": "./components/textarea/textarea.guide.json"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "textfield",
|
|
199
|
+
"name": "Textfield",
|
|
200
|
+
"summary": "Single-line field input with control-group chrome and optional addons.",
|
|
201
|
+
"guidePath": "./components/textfield/textfield.guide.json"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "title",
|
|
205
|
+
"name": "Title",
|
|
206
|
+
"summary": "Theme-aware heading and display typography primitive.",
|
|
207
|
+
"guidePath": "./components/title/title.guide.json"
|
|
208
|
+
},
|
|
185
209
|
{
|
|
186
210
|
"id": "toast",
|
|
187
211
|
"name": "Toast",
|
|
@@ -189,34 +213,28 @@
|
|
|
189
213
|
"guidePath": "./components/toast/toast.guide.json"
|
|
190
214
|
},
|
|
191
215
|
{
|
|
192
|
-
"id": "
|
|
193
|
-
"name": "
|
|
194
|
-
"summary": "
|
|
195
|
-
"guidePath": "./components/
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"id": "static-noise",
|
|
199
|
-
"name": "StaticNoise",
|
|
200
|
-
"summary": "Decorative SVG turbulence noise overlay for textured surfaces and hero sections.",
|
|
201
|
-
"guidePath": "./components/static-noise/static-noise.guide.json"
|
|
216
|
+
"id": "toggle-button",
|
|
217
|
+
"name": "ToggleButton",
|
|
218
|
+
"summary": "Icon-only two-state toggle that swaps resting and optional pressed icons on Base UI Toggle state.",
|
|
219
|
+
"guidePath": "./components/toggle-button/toggle-button.guide.json"
|
|
202
220
|
},
|
|
203
221
|
{
|
|
204
|
-
"id": "
|
|
205
|
-
"name": "
|
|
206
|
-
"summary": "
|
|
207
|
-
"guidePath": "./components/
|
|
222
|
+
"id": "toggle-group",
|
|
223
|
+
"name": "ToggleGroup",
|
|
224
|
+
"summary": "Toolbar toggle set with shared selection state and default Stack spacing on Base UI ToggleGroup.",
|
|
225
|
+
"guidePath": "./components/toggle-group/toggle-group.guide.json"
|
|
208
226
|
},
|
|
209
227
|
{
|
|
210
|
-
"id": "
|
|
211
|
-
"name": "
|
|
212
|
-
"summary": "
|
|
213
|
-
"guidePath": "./components/
|
|
228
|
+
"id": "typewriter",
|
|
229
|
+
"name": "Typewriter",
|
|
230
|
+
"summary": "Decorative inline typewriter animation that inherits typography and color from a parent text primitive.",
|
|
231
|
+
"guidePath": "./components/typewriter/typewriter.guide.json"
|
|
214
232
|
},
|
|
215
233
|
{
|
|
216
|
-
"id": "
|
|
217
|
-
"name": "
|
|
218
|
-
"summary": "
|
|
219
|
-
"guidePath": "./components/
|
|
234
|
+
"id": "tooltip",
|
|
235
|
+
"name": "Tooltip",
|
|
236
|
+
"summary": "Compound tooltip built on Base UI Tooltip with `Tooltip.Provider`, `Tooltip.Trigger`, `Tooltip.Content`, and `Tooltip.createHandle` for detached and multiple triggers; `Content` encapsulates Portal + Positioner + Popup + Viewport and animates position, size, and content between triggers.",
|
|
237
|
+
"guidePath": "./components/tooltip/tooltip.guide.json"
|
|
220
238
|
}
|
|
221
239
|
],
|
|
222
240
|
"consumption": "./consumption.json",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { clsx } from "../../core/clsx.js";
|
|
2
2
|
import accordion_module_default from "./accordion.module.js";
|
|
3
|
-
import { Stack } from "../stack/stack.js";
|
|
4
3
|
import { Text } from "../text/text.js";
|
|
4
|
+
import { Stack } from "../stack/stack.js";
|
|
5
5
|
import { Icon } from "../icon/icon.js";
|
|
6
6
|
import { Surface } from "../surface/surface.js";
|
|
7
7
|
import { Accordion } from "@base-ui/react/accordion";
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
//#region src/components/accordion/accordion.module.css
|
|
2
|
+
var Accordion = "viraui__accordion-module__Accordion_wFOlN";
|
|
3
|
+
var Trigger = "viraui__accordion-module__Trigger_4HzIb";
|
|
4
|
+
var Item = "viraui__accordion-module__Item_66o2x";
|
|
5
|
+
var IconSlot = "viraui__accordion-module__IconSlot_AVQq3";
|
|
6
|
+
var Icon = "viraui__accordion-module__Icon_qdu2v";
|
|
7
|
+
var Panel = "viraui__accordion-module__Panel_U1Ofk";
|
|
1
8
|
var accordion_module_default = {
|
|
2
|
-
Accordion
|
|
3
|
-
Trigger
|
|
4
|
-
Item
|
|
5
|
-
IconSlot
|
|
6
|
-
Icon
|
|
7
|
-
Panel
|
|
9
|
+
Accordion,
|
|
10
|
+
Trigger,
|
|
11
|
+
Item,
|
|
12
|
+
IconSlot,
|
|
13
|
+
Icon,
|
|
14
|
+
Panel
|
|
8
15
|
};
|
|
9
16
|
//#endregion
|
|
10
|
-
export { accordion_module_default as default };
|
|
17
|
+
export { Accordion, Icon, IconSlot, Item, Panel, Trigger, accordion_module_default as default };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
//#region src/components/avatar/avatar.module.css
|
|
2
|
+
var Avatar = "viraui__avatar-module__Avatar_BRuS3";
|
|
3
|
+
var Image = "viraui__avatar-module__Image_Q7bHi";
|
|
4
|
+
var Label = "viraui__avatar-module__Label_QASTF";
|
|
1
5
|
var avatar_module_default = {
|
|
2
|
-
Avatar
|
|
3
|
-
Image
|
|
4
|
-
Label
|
|
6
|
+
Avatar,
|
|
7
|
+
Image,
|
|
8
|
+
Label
|
|
5
9
|
};
|
|
6
10
|
//#endregion
|
|
7
|
-
export { avatar_module_default as default };
|
|
11
|
+
export { Avatar, Image, Label, avatar_module_default as default };
|
|
@@ -3,8 +3,8 @@ import { clsx } from "../../core/clsx.js";
|
|
|
3
3
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
4
4
|
import { Avatar } from "../avatar/avatar.js";
|
|
5
5
|
import avatar_group_module_default from "./avatar-group.module.js";
|
|
6
|
-
import { Stack } from "../stack/stack.js";
|
|
7
6
|
import { Text } from "../text/text.js";
|
|
7
|
+
import { Stack } from "../stack/stack.js";
|
|
8
8
|
import { Surface } from "../surface/surface.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/avatar-group/avatar-group.tsx
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
//#region src/components/avatar-group/avatar-group.module.css
|
|
2
|
+
var AvatarGroup = "viraui__avatar-group-module__AvatarGroup_zOrR-";
|
|
3
|
+
var AvatarWrapper = "viraui__avatar-group-module__AvatarWrapper_0opqY";
|
|
4
|
+
var OverflowWrapper = "viraui__avatar-group-module__OverflowWrapper_bKv6I";
|
|
5
|
+
var AvatarGroupItem = "viraui__avatar-group-module__AvatarGroupItem_Vvlyh";
|
|
6
|
+
var OverflowPill = "viraui__avatar-group-module__OverflowPill_nMmTD";
|
|
1
7
|
var avatar_group_module_default = {
|
|
2
|
-
AvatarGroup
|
|
3
|
-
AvatarWrapper
|
|
4
|
-
OverflowWrapper
|
|
5
|
-
AvatarGroupItem
|
|
6
|
-
OverflowPill
|
|
8
|
+
AvatarGroup,
|
|
9
|
+
AvatarWrapper,
|
|
10
|
+
OverflowWrapper,
|
|
11
|
+
AvatarGroupItem,
|
|
12
|
+
OverflowPill
|
|
7
13
|
};
|
|
8
14
|
//#endregion
|
|
9
|
-
export { avatar_group_module_default as default };
|
|
15
|
+
export { AvatarGroup, AvatarGroupItem, AvatarWrapper, OverflowPill, OverflowWrapper, avatar_group_module_default as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/basic-input/basic-input.module.css
|
|
2
|
+
var BasicInput = "viraui__basic-input-module__BasicInput_5uE64";
|
|
3
|
+
var basic_input_module_default = { BasicInput };
|
|
2
4
|
//#endregion
|
|
3
|
-
export { basic_input_module_default as default };
|
|
5
|
+
export { BasicInput, basic_input_module_default as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/basic-input/field-label.module.css
|
|
2
|
+
var FieldLabel = "viraui__field-label-module__FieldLabel_R9SYf";
|
|
3
|
+
var field_label_module_default = { FieldLabel };
|
|
2
4
|
//#endregion
|
|
3
|
-
export { field_label_module_default as default };
|
|
5
|
+
export { FieldLabel, field_label_module_default as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/bleed/bleed.module.css
|
|
2
|
+
var Bleed = "viraui__bleed-module__Bleed_7rnR6";
|
|
3
|
+
var bleed_module_default = { Bleed };
|
|
2
4
|
//#endregion
|
|
3
|
-
export { bleed_module_default as default };
|
|
5
|
+
export { Bleed, bleed_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.viraui__button-module__Button_oPhrP{--vui-button-background:var(--global-primary);--vui-button-color:var(--base-1);--vui-button-height:var(--space-x-large);--vui-button-padding-inline:var(--space-small);--vui-button-padding-block:var(--space-small);--vui-button-spinner-color:currentColor;--vui-button-icon-size:1.125em;--vui-button-radius:var(--radius-medium);-webkit-user-select:none;user-select:none;margin:0;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;min-inline-size:fit-content;max-block-size:var(--vui-button-height);block-size:var(--vui-button-height);justify-content:center;text-decoration:none;white-space:nowrap;appearance:button;overflow:hidden;position:relative;padding:var(--vui-button-padding-block) var(--vui-button-padding-inline);font-weight:400;font-variation-settings:"wght" 400;gap:var(--space-small);border:1px solid #0000;background:var(--vui-button-background);color:var(--vui-button-color);font-size:var(--font-scale-body-medium);border-radius:var(--vui-button-radius);transition:translate var(--easing-elastic) var(--duration-instant);will-change:translate;&:not(:disabled){background-clip:padding-box}&:not(:disabled):active{translate:0 1px}&[data-pill=true]{border-radius:var(--radius-infinite);&[data-addon-position=end]{padding-inline-end:calc(var(--vui-button-padding-inline) / 2)}&[data-addon-position=start]{padding-inline-start:calc(var(--vui-button-padding-inline) / 2)}}&[data-size=big]{--vui-button-height:var(--space-2x-large);--vui-button-padding-inline:var(--space-medium);--vui-button-padding-block:var(--space-small);--vui-button-icon-size:1.125em;--vui-button-radius:var(--radius-medium)}&[data-size=small]{--vui-button-height:var(--space-large);--vui-button-padding-inline:var(--space-small);--vui-button-padding-block:var(--space-x-small);--vui-button-icon-size:1em;--vui-button-radius:var(--radius-small);gap:var(--space-x-small);font-size:var(--font-scale-body-small)}&[data-variant=primary]{--vui-button-background:var(--global-primary);--vui-button-color:contrast-color(var(--global-primary));&:hover{--vui-button-background:oklab(from var(--global-primary) calc(l + 0.05) a b)}}&[data-variant=secondary]{--vui-button-background:var(--global-contrast);--vui-button-color:var(--base-6);background-clip:unset;&:hover{--vui-button-background:oklab(from var(--global-contrast) l a b/calc(alpha + 0.03))}@container root style(--is-light-theme: black){--vui-button-background:oklab(from var(--global-contrast) l a b/0.1)}}&[data-variant=flat]{--vui-button-background:#0000;--vui-button-color:var(--base-5);&:hover{--vui-button-background:var(--global-contrast);--vui-button-color:var(--base-7)}}&[data-variant=destructive]{--vui-button-background:oklab(from var(--highlight-red) l a b/12%);--vui-button-color:var(--highlight-red);&:hover{--vui-button-background:oklab(from var(--highlight-red) l a b/30%)}}&[data-addon-position=start]{flex-direction:row;padding-inline-end:calc(var(--vui-button-padding-inline) * 1.2)}&[data-addon-position=end]{flex-direction:row-reverse;padding-inline-start:calc(var(--vui-button-padding-inline) * 1.2)}&[data-icon-only=true]{gap:0;padding-block:var(--vui-button-padding-block);padding-inline:var(--vui-button-padding-block);inline-size:var(--vui-button-height);min-inline-size:var(--vui-button-height);max-inline-size:var(--vui-button-height);aspect-ratio:1/1}&:disabled,&:disabled:hover,&[aria-disabled=true]{--vui-button-background:var(--global-disabled-background);--vui-button-color:var(--global-disabled-foreground);cursor:not-allowed;box-shadow:none}&[data-loading=true][data-disabled]{pointer-events:none;border:0;box-shadow:none;--vui-button-color:var(--base-7)}}.viraui__button-module__Content_w-pX-{display:inline-grid;place-items:center;&[data-loading=true]{opacity:0}&:first-child>svg{block-size:var(--vui-button-icon-size);inline-size:var(--vui-button-icon-size);flex-shrink:0}}.viraui__button-module__SpinnerOverlay_vKqw1{position:absolute;inset:0;display:grid;place-content:center;pointer-events:none}
|
|
1
|
+
.viraui__button-module__Button_oPhrP{--vui-button-background:var(--global-primary);--vui-button-color:var(--base-1);--vui-button-height:var(--space-x-large);--vui-button-padding-inline:var(--space-small);--vui-button-padding-block:var(--space-small);--vui-button-spinner-color:currentColor;--vui-button-icon-size:1.125em;--vui-button-radius:var(--radius-medium);-webkit-user-select:none;user-select:none;margin:0;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;min-inline-size:fit-content;max-block-size:var(--vui-button-height);block-size:var(--vui-button-height);justify-content:center;text-decoration:none;white-space:nowrap;appearance:button;overflow:hidden;position:relative;padding:var(--vui-button-padding-block) var(--vui-button-padding-inline);font-weight:400;font-variation-settings:"wght" 400;gap:var(--space-small);border:1px solid #0000;background:var(--vui-button-background);color:var(--vui-button-color);font-size:var(--font-scale-body-medium);border-radius:var(--vui-button-radius);transition:translate var(--easing-elastic) var(--duration-instant);will-change:translate;&:not(:disabled){background-clip:padding-box}&:not(:disabled,[aria-disabled=true]):active{translate:0 1px}&[data-pill=true]{border-radius:var(--radius-infinite);&[data-addon-position=end]{padding-inline-end:calc(var(--vui-button-padding-inline) / 2)}&[data-addon-position=start]{padding-inline-start:calc(var(--vui-button-padding-inline) / 2)}}&[data-size=big]{--vui-button-height:var(--space-2x-large);--vui-button-padding-inline:var(--space-medium);--vui-button-padding-block:var(--space-small);--vui-button-icon-size:1.125em;--vui-button-radius:var(--radius-medium)}&[data-size=small]{--vui-button-height:var(--space-large);--vui-button-padding-inline:var(--space-small);--vui-button-padding-block:var(--space-x-small);--vui-button-icon-size:1em;--vui-button-radius:var(--radius-small);gap:var(--space-x-small);font-size:var(--font-scale-body-small)}&[data-variant=primary]{--vui-button-background:var(--global-primary);--vui-button-color:contrast-color(var(--global-primary));&:hover{--vui-button-background:oklab(from var(--global-primary) calc(l + 0.05) a b)}}&[data-variant=secondary]{--vui-button-background:var(--global-contrast);--vui-button-color:var(--base-6);background-clip:unset;&:hover{--vui-button-background:oklab(from var(--global-contrast) l a b/calc(alpha + 0.03))}@container root style(--is-light-theme: black){--vui-button-background:oklab(from var(--global-contrast) l a b/0.1)}}&[data-variant=flat]{--vui-button-background:#0000;--vui-button-color:var(--base-5);&:hover{--vui-button-background:var(--global-contrast);--vui-button-color:var(--base-7)}}&[data-variant=destructive]{--vui-button-background:oklab(from var(--highlight-red) l a b/12%);--vui-button-color:var(--highlight-red);&:hover{--vui-button-background:oklab(from var(--highlight-red) l a b/30%)}}&[data-addon-position=start]{flex-direction:row;padding-inline-end:calc(var(--vui-button-padding-inline) * 1.2)}&[data-addon-position=end]{flex-direction:row-reverse;padding-inline-start:calc(var(--vui-button-padding-inline) * 1.2)}&[data-icon-only=true]{gap:0;padding-block:var(--vui-button-padding-block);padding-inline:var(--vui-button-padding-block);inline-size:var(--vui-button-height);min-inline-size:var(--vui-button-height);max-inline-size:var(--vui-button-height);aspect-ratio:1/1}&:disabled,&:disabled:active,&:disabled:hover,&[aria-disabled=true],&[aria-disabled=true]:active,&[aria-disabled=true]:hover{--vui-button-background:var(--global-disabled-background);--vui-button-color:var(--global-disabled-foreground);cursor:not-allowed;box-shadow:none;translate:0}&[data-loading=true][data-disabled]{pointer-events:none;border:0;box-shadow:none;--vui-button-color:var(--base-7)}}.viraui__button-module__Content_w-pX-{display:inline-grid;place-items:center;&[data-loading=true]{opacity:0}&:first-child>svg{block-size:var(--vui-button-icon-size);inline-size:var(--vui-button-icon-size);flex-shrink:0}}.viraui__button-module__SpinnerOverlay_vKqw1{position:absolute;inset:0;display:grid;place-content:center;pointer-events:none}
|
|
@@ -4,9 +4,9 @@ import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props
|
|
|
4
4
|
import { Spinner } from "../spinner/spinner.js";
|
|
5
5
|
import button_module_default from "./button.module.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Button } from "@base-ui/react/button";
|
|
7
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
8
9
|
import * as React from "react";
|
|
9
|
-
import { Button } from "@base-ui/react/button";
|
|
10
10
|
//#region src/components/button/button.tsx
|
|
11
11
|
var spinnerDimensionsBySize = {
|
|
12
12
|
small: "small",
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
//#region src/components/button/button.module.css
|
|
2
|
+
var Button = "viraui__button-module__Button_oPhrP";
|
|
3
|
+
var Content = "viraui__button-module__Content_w-pX-";
|
|
4
|
+
var SpinnerOverlay = "viraui__button-module__SpinnerOverlay_vKqw1";
|
|
1
5
|
var button_module_default = {
|
|
2
|
-
Button
|
|
3
|
-
Content
|
|
4
|
-
SpinnerOverlay
|
|
6
|
+
Button,
|
|
7
|
+
Content,
|
|
8
|
+
SpinnerOverlay
|
|
5
9
|
};
|
|
6
10
|
//#endregion
|
|
7
|
-
export { button_module_default as default };
|
|
11
|
+
export { Button, Content, SpinnerOverlay, button_module_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './checkbox.css';
|
|
2
2
|
import { clsx } from "../../core/clsx.js";
|
|
3
|
-
import { Stack } from "../stack/stack.js";
|
|
4
3
|
import { FieldHelperCopy } from "../basic-input/field-helper-copy.js";
|
|
5
4
|
import { FieldLabel } from "../basic-input/field-label.js";
|
|
6
5
|
import checkbox_module_default from "./checkbox.module.js";
|
|
6
|
+
import { Stack } from "../stack/stack.js";
|
|
7
7
|
import { Icon } from "../icon/icon.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Field } from "@base-ui/react/field";
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
//#region src/components/checkbox/checkbox.module.css
|
|
2
|
+
var Checkbox = "viraui__checkbox-module__Checkbox_3oGip";
|
|
3
|
+
var Label = "viraui__checkbox-module__Label_n9HL7";
|
|
4
|
+
var CheckboxRoot = "viraui__checkbox-module__CheckboxRoot_PeyF5";
|
|
5
|
+
var Indicator = "viraui__checkbox-module__Indicator_C-k-l";
|
|
6
|
+
var Icon = "viraui__checkbox-module__Icon_926Sa";
|
|
7
|
+
var MinusIcon = "viraui__checkbox-module__MinusIcon_Q57pY";
|
|
8
|
+
var CheckIcon = "viraui__checkbox-module__CheckIcon_XqUcs";
|
|
1
9
|
var checkbox_module_default = {
|
|
2
|
-
Checkbox
|
|
3
|
-
Label
|
|
4
|
-
CheckboxRoot
|
|
5
|
-
Indicator
|
|
6
|
-
Icon
|
|
7
|
-
MinusIcon
|
|
8
|
-
CheckIcon
|
|
10
|
+
Checkbox,
|
|
11
|
+
Label,
|
|
12
|
+
CheckboxRoot,
|
|
13
|
+
Indicator,
|
|
14
|
+
Icon,
|
|
15
|
+
MinusIcon,
|
|
16
|
+
CheckIcon
|
|
9
17
|
};
|
|
10
18
|
//#endregion
|
|
11
|
-
export { checkbox_module_default as default };
|
|
19
|
+
export { CheckIcon, Checkbox, CheckboxRoot, Icon, Indicator, Label, MinusIcon, checkbox_module_default as default };
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
//#region src/components/chip/chip.module.css
|
|
2
|
+
var Chip = "viraui__chip-module__Chip_2D18T";
|
|
3
|
+
var Content = "viraui__chip-module__Content_7mLuL";
|
|
4
|
+
var IconSlot = "viraui__chip-module__IconSlot_9N5vD";
|
|
5
|
+
var Label = "viraui__chip-module__Label_Hdx7l";
|
|
1
6
|
var chip_module_default = {
|
|
2
|
-
Chip
|
|
3
|
-
Content
|
|
4
|
-
IconSlot
|
|
5
|
-
Label
|
|
7
|
+
Chip,
|
|
8
|
+
Content,
|
|
9
|
+
IconSlot,
|
|
10
|
+
Label
|
|
6
11
|
};
|
|
7
12
|
//#endregion
|
|
8
|
-
export { chip_module_default as default };
|
|
13
|
+
export { Chip, Content, IconSlot, Label, chip_module_default as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/clamp-text/clamp-text.module.css
|
|
2
|
+
var ClampText = "viraui__clamp-text-module__ClampText_Whnkd";
|
|
3
|
+
var clamp_text_module_default = { ClampText };
|
|
2
4
|
//#endregion
|
|
3
|
-
export { clamp_text_module_default as default };
|
|
5
|
+
export { ClampText, clamp_text_module_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Text } from "../text/text.js";
|
|
1
2
|
import { Stack } from "../stack/stack.js";
|
|
2
3
|
import dialog_module_default from "./dialog.module.js";
|
|
3
|
-
import { IconButton } from "../icon-button/icon-button.js";
|
|
4
|
-
import { Text } from "../text/text.js";
|
|
5
4
|
import { Icon } from "../icon/icon.js";
|
|
5
|
+
import { IconButton } from "../icon-button/icon-button.js";
|
|
6
6
|
import { Surface } from "../surface/surface.js";
|
|
7
7
|
import { Title } from "../title/title.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
+
//#region src/components/dialog/dialog.module.css
|
|
2
|
+
var Backdrop = "viraui__dialog-module__Backdrop_xgFhs";
|
|
3
|
+
var Viewport = "viraui__dialog-module__Viewport_kmZN1";
|
|
4
|
+
var Popup = "viraui__dialog-module__Popup_5qIyj";
|
|
5
|
+
var Handle = "viraui__dialog-module__Handle_nd9SN";
|
|
6
|
+
var HandleShape = "viraui__dialog-module__HandleShape_mEg8R";
|
|
7
|
+
var Header = "viraui__dialog-module__Header_WnBly";
|
|
8
|
+
var Body = "viraui__dialog-module__Body_9-UgN";
|
|
9
|
+
var Content = "viraui__dialog-module__Content_r8lJc";
|
|
10
|
+
var CloseButton = "viraui__dialog-module__CloseButton_U-B1r";
|
|
11
|
+
var IndentBackground = "viraui__dialog-module__IndentBackground_OEfbh";
|
|
12
|
+
var Indent = "viraui__dialog-module__Indent_qfiNW";
|
|
1
13
|
var dialog_module_default = {
|
|
2
|
-
Backdrop
|
|
3
|
-
Viewport
|
|
4
|
-
Popup
|
|
5
|
-
Handle
|
|
6
|
-
HandleShape
|
|
7
|
-
Header
|
|
8
|
-
Body
|
|
9
|
-
Content
|
|
10
|
-
CloseButton
|
|
11
|
-
IndentBackground
|
|
12
|
-
Indent
|
|
14
|
+
Backdrop,
|
|
15
|
+
Viewport,
|
|
16
|
+
Popup,
|
|
17
|
+
Handle,
|
|
18
|
+
HandleShape,
|
|
19
|
+
Header,
|
|
20
|
+
Body,
|
|
21
|
+
Content,
|
|
22
|
+
CloseButton,
|
|
23
|
+
IndentBackground,
|
|
24
|
+
Indent
|
|
13
25
|
};
|
|
14
26
|
//#endregion
|
|
15
|
-
export { dialog_module_default as default };
|
|
27
|
+
export { Backdrop, Body, CloseButton, Content, Handle, HandleShape, Header, Indent, IndentBackground, Popup, Viewport, dialog_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
2
|
-
import "../../core/elevation/elevation-types.js";
|
|
2
|
+
import { ELEVATION_DEFAULTS } from "../../core/elevation/elevation-types.js";
|
|
3
3
|
import { getElevationProps } from "../../core/elevation/get-elevation-props.js";
|
|
4
4
|
import { Children, cloneElement, isValidElement } from "react";
|
|
5
5
|
//#region src/components/elevator/elevator.tsx
|
|
@@ -26,4 +26,4 @@ var Elevator = ({ children, resting, hover, direction, shadowColor, extraShadow,
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
|
-
export { Elevator };
|
|
29
|
+
export { ELEVATION_DEFAULTS, Elevator, getElevationProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { extractIntrinsicViraProps } from "../../core/props/intrinsic-vira-props.js";
|
|
2
|
-
import { Stack } from "../stack/stack.js";
|
|
3
2
|
import { FieldHelperCopy } from "../basic-input/field-helper-copy.js";
|
|
4
3
|
import { FieldLabel } from "../basic-input/field-label.js";
|
|
4
|
+
import { Stack } from "../stack/stack.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Fieldset } from "@base-ui/react";
|
|
7
7
|
//#region src/components/fieldset/fieldset.tsx
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/components/icon/icon.module.css
|
|
2
|
+
var Icon = "viraui__icon-module__Icon_6DoBq";
|
|
3
|
+
var icon_module_default = { Icon };
|
|
2
4
|
//#endregion
|
|
3
|
-
export { icon_module_default as default };
|
|
5
|
+
export { Icon, icon_module_default as default };
|