@voidable/ui 0.8.1 → 0.9.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/README.md +8 -0
- package/dist/chunks/{modal-D_YVy2vg.js → modal-hivQ4YoU.js} +1 -1
- package/dist/chunks/{parts-D30c8OoG.js → parts-CMQQop0D.js} +4 -1
- package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
- package/dist/chunks/value-list-CH6GjYXM.js +28 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-input.d.ts +6 -2
- package/dist/components/action-input.js +55 -45
- package/dist/components/alert.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox-group.d.ts +10 -0
- package/dist/components/checkbox-group.js +30 -18
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/combobox.d.ts +4 -2
- package/dist/components/combobox.js +8 -5
- package/dist/components/compose-input.d.ts +1 -1
- package/dist/components/compose-input.js +4 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/editable.d.ts +1 -1
- package/dist/components/error-fallback.js +1 -1
- package/dist/components/gauge.js +4 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input.d.ts +6 -2
- package/dist/components/input.js +43 -33
- package/dist/components/menu.js +1 -1
- package/dist/components/multiselect.d.ts +9 -0
- package/dist/components/multiselect.js +47 -38
- package/dist/components/nav-menu.js +1 -1
- package/dist/components/number-input.d.ts +2 -2
- package/dist/components/panel.js +1 -1
- package/dist/components/pin-input.d.ts +6 -2
- package/dist/components/pin-input.js +27 -17
- package/dist/components/popover.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +4 -1
- package/dist/components/segmented-control.d.ts +1 -1
- package/dist/components/select.d.ts +67 -16
- package/dist/components/select.js +172 -47
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +4 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tags-input.d.ts +1 -1
- package/dist/components/tags-input.js +22 -18
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +4 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle.js +4 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components.json +3 -3
- package/dist/custom-elements.json +85 -49
- package/dist/dev/types.d.ts +2 -3
- package/dist/dev.js +50 -48
- package/dist/llms.txt +125 -0
- package/dist/parts.d.ts +3 -1
- package/dist/reference.md +4575 -0
- package/dist/secret-value.d.ts +17 -0
- package/dist/types/elements.d.ts +2 -2
- package/dist/value-list.d.ts +14 -0
- package/dist/vscode.html-custom-data.json +33 -19
- package/dist/web-types.json +57 -37
- package/package.json +5 -3
package/dist/dev.js
CHANGED
|
@@ -122,8 +122,8 @@ function h(e, t, n) {
|
|
|
122
122
|
let e = a.map((e) => e === "" ? "\"\"" : e), r = s(o, a.filter((e) => e !== ""), !0);
|
|
123
123
|
return d("invalid-value", t.localName, n, `${l}: "${o}" is not a valid value for ${n}, so it is ignored. Valid values: ${c(e)}.${r ? ` Did you mean "${r}"?` : ""}`, t);
|
|
124
124
|
}
|
|
125
|
-
if (a === 1
|
|
126
|
-
if (a ===
|
|
125
|
+
if (a === 1) return o.toLowerCase() === "false" ? d("boolean-false", t.localName, n, `${l}: ${n} is a boolean attribute, on whenever it is present, so ${n}="false" does not turn it off. Remove the attribute to turn it off.`, t) : void 0;
|
|
126
|
+
if (a === 2 && !f(o)) return d("invalid-value", t.localName, n, `${l}: "${o}" is not a number, so ${n} is ignored. Write a plain number such as ${n}="10".`, t);
|
|
127
127
|
}
|
|
128
128
|
function g(e, t) {
|
|
129
129
|
let n = [];
|
|
@@ -358,8 +358,8 @@ var k = {
|
|
|
358
358
|
required: 1,
|
|
359
359
|
name: 0,
|
|
360
360
|
autocomplete: 0,
|
|
361
|
-
minlength:
|
|
362
|
-
maxlength:
|
|
361
|
+
minlength: 2,
|
|
362
|
+
maxlength: 2,
|
|
363
363
|
pattern: 0,
|
|
364
364
|
inputmode: [
|
|
365
365
|
"",
|
|
@@ -633,7 +633,7 @@ var k = {
|
|
|
633
633
|
"void-bar-chart": {
|
|
634
634
|
m: "bar-chart",
|
|
635
635
|
a: {
|
|
636
|
-
height:
|
|
636
|
+
height: 2,
|
|
637
637
|
"show-value": 1,
|
|
638
638
|
variant: [
|
|
639
639
|
"filled",
|
|
@@ -641,7 +641,7 @@ var k = {
|
|
|
641
641
|
"wireframe"
|
|
642
642
|
],
|
|
643
643
|
"aria-label": 0,
|
|
644
|
-
stagger:
|
|
644
|
+
stagger: 2
|
|
645
645
|
},
|
|
646
646
|
e: [],
|
|
647
647
|
l: {
|
|
@@ -741,7 +741,7 @@ var k = {
|
|
|
741
741
|
"lg"
|
|
742
742
|
],
|
|
743
743
|
locale: 0,
|
|
744
|
-
"first-day":
|
|
744
|
+
"first-day": 2,
|
|
745
745
|
required: 1,
|
|
746
746
|
name: 0
|
|
747
747
|
},
|
|
@@ -837,10 +837,10 @@ var k = {
|
|
|
837
837
|
"void-carousel": {
|
|
838
838
|
m: "carousel",
|
|
839
839
|
a: {
|
|
840
|
-
index:
|
|
840
|
+
index: 2,
|
|
841
841
|
loop: 1,
|
|
842
842
|
autoplay: 1,
|
|
843
|
-
interval:
|
|
843
|
+
interval: 2,
|
|
844
844
|
size: [
|
|
845
845
|
"sm",
|
|
846
846
|
"md",
|
|
@@ -989,6 +989,7 @@ var k = {
|
|
|
989
989
|
name: 0,
|
|
990
990
|
required: 1,
|
|
991
991
|
disabled: 1,
|
|
992
|
+
value: 0,
|
|
992
993
|
form: 0
|
|
993
994
|
},
|
|
994
995
|
e: ["void-change"],
|
|
@@ -1143,7 +1144,7 @@ var k = {
|
|
|
1143
1144
|
value: 0,
|
|
1144
1145
|
placeholder: 0,
|
|
1145
1146
|
disabled: 1,
|
|
1146
|
-
maxlength:
|
|
1147
|
+
maxlength: 2
|
|
1147
1148
|
},
|
|
1148
1149
|
e: ["void-input", "void-submit"],
|
|
1149
1150
|
n: {
|
|
@@ -1169,7 +1170,7 @@ var k = {
|
|
|
1169
1170
|
"lg"
|
|
1170
1171
|
],
|
|
1171
1172
|
locale: 0,
|
|
1172
|
-
"first-day":
|
|
1173
|
+
"first-day": 2,
|
|
1173
1174
|
open: 1,
|
|
1174
1175
|
placeholder: 0,
|
|
1175
1176
|
format: 0,
|
|
@@ -1300,8 +1301,8 @@ var k = {
|
|
|
1300
1301
|
"void-donut-chart": {
|
|
1301
1302
|
m: "donut-chart",
|
|
1302
1303
|
a: {
|
|
1303
|
-
size:
|
|
1304
|
-
inner:
|
|
1304
|
+
size: 2,
|
|
1305
|
+
inner: 2,
|
|
1305
1306
|
gaps: 0,
|
|
1306
1307
|
variant: [
|
|
1307
1308
|
"filled",
|
|
@@ -1606,7 +1607,7 @@ var k = {
|
|
|
1606
1607
|
accept: 0,
|
|
1607
1608
|
multiple: 1,
|
|
1608
1609
|
disabled: 1,
|
|
1609
|
-
"max-size":
|
|
1610
|
+
"max-size": 2,
|
|
1610
1611
|
error: 0,
|
|
1611
1612
|
required: 1,
|
|
1612
1613
|
name: 0
|
|
@@ -1627,11 +1628,11 @@ var k = {
|
|
|
1627
1628
|
m: "gauge",
|
|
1628
1629
|
a: {
|
|
1629
1630
|
unit: 0,
|
|
1630
|
-
value:
|
|
1631
|
-
min:
|
|
1632
|
-
max:
|
|
1633
|
-
size:
|
|
1634
|
-
thickness:
|
|
1631
|
+
value: 2,
|
|
1632
|
+
min: 2,
|
|
1633
|
+
max: 2,
|
|
1634
|
+
size: 2,
|
|
1635
|
+
thickness: 2,
|
|
1635
1636
|
circular: [
|
|
1636
1637
|
"full",
|
|
1637
1638
|
"semi",
|
|
@@ -1644,8 +1645,8 @@ var k = {
|
|
|
1644
1645
|
],
|
|
1645
1646
|
"hide-value": 1,
|
|
1646
1647
|
"unit-inline": 1,
|
|
1647
|
-
"tick-major":
|
|
1648
|
-
"tick-minor":
|
|
1648
|
+
"tick-major": 2,
|
|
1649
|
+
"tick-minor": 2,
|
|
1649
1650
|
"hide-tick-min": 1,
|
|
1650
1651
|
"hide-tick-max": 1,
|
|
1651
1652
|
"segments-sort": ["value", "manual"],
|
|
@@ -1708,8 +1709,8 @@ var k = {
|
|
|
1708
1709
|
"center",
|
|
1709
1710
|
"end"
|
|
1710
1711
|
],
|
|
1711
|
-
"open-delay":
|
|
1712
|
-
"close-delay":
|
|
1712
|
+
"open-delay": 2,
|
|
1713
|
+
"close-delay": 2
|
|
1713
1714
|
},
|
|
1714
1715
|
e: ["void-close", "void-open"],
|
|
1715
1716
|
l: { a: { position: {
|
|
@@ -1779,7 +1780,7 @@ var k = {
|
|
|
1779
1780
|
"bottom-right",
|
|
1780
1781
|
"bottom-left"
|
|
1781
1782
|
],
|
|
1782
|
-
count:
|
|
1783
|
+
count: 2,
|
|
1783
1784
|
ping: 1,
|
|
1784
1785
|
size: [
|
|
1785
1786
|
"sm",
|
|
@@ -1820,8 +1821,8 @@ var k = {
|
|
|
1820
1821
|
],
|
|
1821
1822
|
error: 0,
|
|
1822
1823
|
autocomplete: 0,
|
|
1823
|
-
minlength:
|
|
1824
|
-
maxlength:
|
|
1824
|
+
minlength: 2,
|
|
1825
|
+
maxlength: 2,
|
|
1825
1826
|
pattern: 0,
|
|
1826
1827
|
inputmode: [
|
|
1827
1828
|
"",
|
|
@@ -1871,7 +1872,7 @@ var k = {
|
|
|
1871
1872
|
"void-line-chart": {
|
|
1872
1873
|
m: "line-chart",
|
|
1873
1874
|
a: {
|
|
1874
|
-
height:
|
|
1875
|
+
height: 2,
|
|
1875
1876
|
"show-value": 1,
|
|
1876
1877
|
variant: [
|
|
1877
1878
|
"filled",
|
|
@@ -2047,6 +2048,7 @@ var k = {
|
|
|
2047
2048
|
error: 0,
|
|
2048
2049
|
name: 0,
|
|
2049
2050
|
open: 1,
|
|
2051
|
+
value: 0,
|
|
2050
2052
|
required: 1
|
|
2051
2053
|
},
|
|
2052
2054
|
e: [
|
|
@@ -2162,11 +2164,11 @@ var k = {
|
|
|
2162
2164
|
"void-number-input": {
|
|
2163
2165
|
m: "number-input",
|
|
2164
2166
|
a: {
|
|
2165
|
-
value:
|
|
2166
|
-
min:
|
|
2167
|
-
max:
|
|
2167
|
+
value: 2,
|
|
2168
|
+
min: 2,
|
|
2169
|
+
max: 2,
|
|
2168
2170
|
step: 0,
|
|
2169
|
-
precision:
|
|
2171
|
+
precision: 2,
|
|
2170
2172
|
disabled: 1,
|
|
2171
2173
|
readonly: 1,
|
|
2172
2174
|
size: [
|
|
@@ -2223,9 +2225,9 @@ var k = {
|
|
|
2223
2225
|
"void-pagination": {
|
|
2224
2226
|
m: "pagination",
|
|
2225
2227
|
a: {
|
|
2226
|
-
total:
|
|
2227
|
-
value:
|
|
2228
|
-
siblings:
|
|
2228
|
+
total: 2,
|
|
2229
|
+
value: 2,
|
|
2230
|
+
siblings: 2,
|
|
2229
2231
|
size: [
|
|
2230
2232
|
"sm",
|
|
2231
2233
|
"md",
|
|
@@ -2303,7 +2305,7 @@ var k = {
|
|
|
2303
2305
|
"void-pin-input": {
|
|
2304
2306
|
m: "pin-input",
|
|
2305
2307
|
a: {
|
|
2306
|
-
length:
|
|
2308
|
+
length: 2,
|
|
2307
2309
|
groups: 0,
|
|
2308
2310
|
value: 0,
|
|
2309
2311
|
disabled: 1,
|
|
@@ -2412,8 +2414,8 @@ var k = {
|
|
|
2412
2414
|
"void-progress": {
|
|
2413
2415
|
m: "progress",
|
|
2414
2416
|
a: {
|
|
2415
|
-
value:
|
|
2416
|
-
max:
|
|
2417
|
+
value: 2,
|
|
2418
|
+
max: 2,
|
|
2417
2419
|
color: [
|
|
2418
2420
|
"default",
|
|
2419
2421
|
"error",
|
|
@@ -2612,10 +2614,10 @@ var k = {
|
|
|
2612
2614
|
"void-slider": {
|
|
2613
2615
|
m: "slider",
|
|
2614
2616
|
a: {
|
|
2615
|
-
value:
|
|
2616
|
-
min:
|
|
2617
|
-
max:
|
|
2618
|
-
step:
|
|
2617
|
+
value: 2,
|
|
2618
|
+
min: 2,
|
|
2619
|
+
max: 2,
|
|
2620
|
+
step: 2,
|
|
2619
2621
|
disabled: 1,
|
|
2620
2622
|
name: 0,
|
|
2621
2623
|
"show-value": 1,
|
|
@@ -2702,7 +2704,7 @@ var k = {
|
|
|
2702
2704
|
"void-stepper": {
|
|
2703
2705
|
m: "stepper",
|
|
2704
2706
|
a: {
|
|
2705
|
-
value:
|
|
2707
|
+
value: 2,
|
|
2706
2708
|
steps: 0
|
|
2707
2709
|
},
|
|
2708
2710
|
e: []
|
|
@@ -2859,7 +2861,7 @@ var k = {
|
|
|
2859
2861
|
value: 0,
|
|
2860
2862
|
disabled: 1,
|
|
2861
2863
|
readonly: 1,
|
|
2862
|
-
max:
|
|
2864
|
+
max: 2,
|
|
2863
2865
|
placeholder: 0,
|
|
2864
2866
|
size: [
|
|
2865
2867
|
"sm",
|
|
@@ -2901,7 +2903,7 @@ var k = {
|
|
|
2901
2903
|
readonly: 1,
|
|
2902
2904
|
required: 1,
|
|
2903
2905
|
name: 0,
|
|
2904
|
-
rows:
|
|
2906
|
+
rows: 2,
|
|
2905
2907
|
resize: [
|
|
2906
2908
|
"none",
|
|
2907
2909
|
"vertical",
|
|
@@ -2914,8 +2916,8 @@ var k = {
|
|
|
2914
2916
|
],
|
|
2915
2917
|
error: 0,
|
|
2916
2918
|
autocomplete: 0,
|
|
2917
|
-
minlength:
|
|
2918
|
-
maxlength:
|
|
2919
|
+
minlength: 2,
|
|
2920
|
+
maxlength: 2,
|
|
2919
2921
|
inputmode: [
|
|
2920
2922
|
"",
|
|
2921
2923
|
"none",
|
|
@@ -2974,7 +2976,7 @@ var k = {
|
|
|
2974
2976
|
"notice",
|
|
2975
2977
|
"highlight"
|
|
2976
2978
|
],
|
|
2977
|
-
duration:
|
|
2979
|
+
duration: 2
|
|
2978
2980
|
},
|
|
2979
2981
|
e: ["void-close"],
|
|
2980
2982
|
x: {
|
|
@@ -3133,7 +3135,7 @@ var k = {
|
|
|
3133
3135
|
"center",
|
|
3134
3136
|
"end"
|
|
3135
3137
|
],
|
|
3136
|
-
delay:
|
|
3138
|
+
delay: 2,
|
|
3137
3139
|
open: 1
|
|
3138
3140
|
},
|
|
3139
3141
|
e: ["void-close", "void-open"],
|
package/dist/llms.txt
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Voidable UI (@voidable/ui 0.9.0)
|
|
2
|
+
|
|
3
|
+
> Lit 3 web components in the light DOM, `<void-*>` tags with no visual CSS of their own: `@voidable/theme` supplies every look through `--void-*` custom properties. They work in plain HTML, React, Vue, Svelte, Solid, Angular, Rails/Hotwire, Phoenix LiveView and Laravel/Livewire.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @voidable/ui @voidable/theme
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import '@voidable/theme'; // the look (CSS)
|
|
13
|
+
import '@voidable/ui'; // registers every element; or '@voidable/ui/components/button', or '@voidable/ui/autoloader'
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Without the theme loaded the components are unstyled. Development warnings for misused markup: `import '@voidable/ui/dev'` (development only).
|
|
17
|
+
|
|
18
|
+
## Composition rules
|
|
19
|
+
|
|
20
|
+
- A component with regions takes explicit parts: plain `void-*` child tags named after the component (`<void-dialog-title>`, `<void-tabs-list>`). Write exactly the parts the element lists in `reference.md`, in the listed order where it says so. There is one way to write each component; the old implicit forms (`heading="..."`, `slot="trigger"`) are gone.
|
|
21
|
+
- A trigger part wraps exactly one control (`<void-popover-trigger><void-button>Open</void-button></void-popover-trigger>`).
|
|
22
|
+
- State lives on the parent as reflected attributes (`open`, `value`, `active`). Do not write wrapper `<div>`s or utility classes around parts.
|
|
23
|
+
- Only `<void-dialog>` and `<void-drawer>` have a shadow root; everything else is light DOM, so your CSS, ids and framework bindings reach every node.
|
|
24
|
+
- Some elements are CSS-only (patterns such as `<void-shell>`, and many parts): the theme styles them, no JavaScript registers them; write them as plain markup.
|
|
25
|
+
|
|
26
|
+
## Conventions
|
|
27
|
+
|
|
28
|
+
- Booleans are present or absent: `<void-button disabled>`. Never write `disabled="false"`; for a default-true boolean the reference says how to turn it off.
|
|
29
|
+
- Events are `void-*` CustomEvents; read the value from `event.detail`. `void-change` always carries `detail.value`; text controls also fire `void-input` per edit. Overlays fire `void-open` and `void-close` with `detail.reason`; they do not bubble.
|
|
30
|
+
- Only attributes listed in `reference.md` exist. A guessed attribute does nothing; the dev warnings and `voidable check` report it.
|
|
31
|
+
- Sizes, variants and colours are enumerated attributes (`size="sm|md|lg"`, `variant`, `color`); a value outside the listed set is an error.
|
|
32
|
+
|
|
33
|
+
## Where the full reference is
|
|
34
|
+
|
|
35
|
+
- `@voidable/ui/reference.md` (`node_modules/@voidable/ui/dist/reference.md`): every element in full, generated from the manifest.
|
|
36
|
+
- `@voidable/ui/custom-elements.json`: the Custom Elements Manifest it is generated from.
|
|
37
|
+
- `@voidable/ui/llms.txt`: this file. The docs site serves the same in `/llms.txt` and `/llms-full.txt`: https://voidable.dev
|
|
38
|
+
- `voidable ref <tag>` prints one element offline; `voidable check <file>` checks markup (https://voidable.dev/getting-started/for-agents/).
|
|
39
|
+
|
|
40
|
+
## Elements (78)
|
|
41
|
+
|
|
42
|
+
- `<void-accordion>`: Collapsible section container for FAQs, settings panels, and long-form content organized into expandable items.
|
|
43
|
+
- `<void-accordion-item>`: One collapsible item of a `<void-accordion>`: a `<void-accordion-trigger>` followed by a `<void-accordion-content>`.
|
|
44
|
+
- `<void-action-input>`: Input field with an attached icon button — used for copy-to-clipboard inputs, search boxes, and similar patterns.
|
|
45
|
+
- `<void-alert>`: Inline contextual message for form validation feedback, permission warnings, and system status notices.
|
|
46
|
+
- `<void-avatar>`: User identity display for comment threads, user lists, and profile cards; falls back to initials when no image is provided.
|
|
47
|
+
- `<void-badge>`: Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.
|
|
48
|
+
- `<void-banner>`: Full-width site-level announcement for maintenance windows, cookie consent, and promotional messaging.
|
|
49
|
+
- `<void-bar-chart>`: Bar chart for comparing categories and series, drawn in SVG with animated bars.
|
|
50
|
+
- `<void-breadcrumbs>`: Navigation trail for deep page hierarchies in dashboards, e-commerce category trees, and file browsers.
|
|
51
|
+
- `<void-button>`: Action trigger for forms, dialogs, and toolbars; supports semantic color variants.
|
|
52
|
+
- `<void-calendar>`: Date selection for booking flows, scheduling UIs, and form fields with locale-aware formatting and min/max constraints.
|
|
53
|
+
- `<void-card>`: Content grouping container for dashboard widgets, product listings, and media previews.
|
|
54
|
+
- `<void-carousel>`: Scrollable content gallery for product photo viewers, onboarding flows, and featured content sliders.
|
|
55
|
+
- `<void-carousel-next>`: Next-slide control of a `<void-carousel>`: a button the theme draws as an arrow over the slides.
|
|
56
|
+
- `<void-carousel-previous>`: Previous-slide control of a `<void-carousel>`: a button the theme draws as an arrow over the slides.
|
|
57
|
+
- `<void-checkbox>`: Binary or indeterminate selection for form fields, data table row selection, and toggle-able settings.
|
|
58
|
+
- `<void-checkbox-group>`: Grouped multi-option selection for preference forms, filter panels, and permission editors.
|
|
59
|
+
- `<void-collapsible>`: Simple expand/collapse panel for FAQ sections, spoiler text, and progressive disclosure of secondary content.
|
|
60
|
+
- `<void-color-picker>`: Color selection control with spectrum area, hue slider, hex input, and preset swatches for theme customization and design tools.
|
|
61
|
+
- `<void-combobox>`: Filterable dropdown for long option lists like country selectors, user assignment fields, and tag pickers.
|
|
62
|
+
- `<void-compose-input>`: Rich text entry area for messaging UIs, comment boxes, and social post composers.
|
|
63
|
+
- `<void-date-picker>`: Input-anchored date picker that combines a text field with a VoidCalendar dropdown for form date selection.
|
|
64
|
+
- `<void-dialog>`: Modal overlay for confirmations, detail views, and multi-step forms that require user attention before continuing.
|
|
65
|
+
- `<void-divider>`: Visual separator between sections in forms, sidebars, and content layouts; supports optional label text.
|
|
66
|
+
- `<void-donut-chart>`: Donut chart for part-to-whole breakdowns, drawn in SVG with animated segments and an optional total in the centre.
|
|
67
|
+
- `<void-drawer>`: Slide-out overlay panel for filters, detail views, and navigation menus; opens from any screen edge.
|
|
68
|
+
- `<void-dropdown-menu>`: Trigger-anchored action menu for table row actions, toolbar overflow menus, and context menus.
|
|
69
|
+
- `<void-dropdown-menu-item>`: An item of a `<void-dropdown-menu>`, inside its `<void-dropdown-menu-content>`.
|
|
70
|
+
- `<void-editable>`: Inline editable text for renaming items, editing headings, and click-to-edit table cells.
|
|
71
|
+
- `<void-error-fallback>`: Error state display for failed data fetches and unexpected runtime errors; includes an optional retry action.
|
|
72
|
+
- `<void-field>`: Form field wrapper that pairs an input with its label, helper text, and validation error.
|
|
73
|
+
- `<void-file-upload>`: Drag-and-drop file picker for document uploads, image attachment flows, and import wizards.
|
|
74
|
+
- `<void-gauge>`: Radial gauge for a single value within a range (capacity, score, load) or for a few segments that share it, drawn in SVG as a full, semi or three-quarter arc with optional tick marks and colour zones.
|
|
75
|
+
- `<void-hamburger>`: Animated open/close toggle for mobile navigation menus and collapsible sidebars.
|
|
76
|
+
- `<void-hover-card>`: Rich content preview card that appears on hover for user profiles, link previews, and contextual information panels.
|
|
77
|
+
- `<void-indicator>`: Badge overlay for notification counts on icons and online presence signals on avatars.
|
|
78
|
+
- `<void-input>`: Single-line text entry for login forms, search fields, and structured data capture.
|
|
79
|
+
- `<void-line-chart>`: Line chart for trends over time with one or more series, linear or stepped, drawn in SVG with an animated entry.
|
|
80
|
+
- `<void-list>`: Structured item list for menus, option sets, and content feeds with consistent spacing and optional dividers.
|
|
81
|
+
- `<void-list-item>`: Individual selectable item within a VoidList.
|
|
82
|
+
- `<void-menu>`: Always-visible menu panel for command palettes, side panels, and searchable action lists.
|
|
83
|
+
- `<void-menu-group>`: Labelled group of `void-menu-item`s inside a `void-menu`.
|
|
84
|
+
- `<void-menu-item>`: One action in a `void-menu`: activating it (click, Enter or Space) fires `void-select` with its `value`.
|
|
85
|
+
- `<void-multiselect>`: Multi-value picker for tag selection, permission assignment, and filter fields that allow several simultaneous choices.
|
|
86
|
+
- `<void-nav-bar>`: Top application navigation bar for branding, primary links, and user account controls.
|
|
87
|
+
- `<void-nav-menu>`: Horizontal navigation bar with dropdown sub-menus for site headers, application nav bars, and mega-menu layouts.
|
|
88
|
+
- `<void-nav-menu-item>`: One entry of a `<void-nav-menu>`: a `<void-nav-menu-trigger>` around one control (a `<button>` for an entry that opens a panel, an `<a href>` for one that navigates) and, for a panel, a `<void-nav-menu-content>` after it.
|
|
89
|
+
- `<void-number-input>`: Precise numeric entry for quantity selectors, price fields, and settings with increment/decrement controls.
|
|
90
|
+
- `<void-option>`: One option of a `<void-combobox>` or `<void-multiselect>`, inside its `-content` part.
|
|
91
|
+
- `<void-pagination>`: Page navigation for data tables, search result lists, and content archives.
|
|
92
|
+
- `<void-panel>`: Bordered or elevated content region for grouping related settings, dashboard sections, and detail blocks.
|
|
93
|
+
- `<void-pin-input>`: Single-character input cells for OTP verification codes, PIN entry, and multi-digit confirmation fields.
|
|
94
|
+
- `<void-popover>`: Anchored overlay for contextual detail and mini-forms that need more room than a tooltip.
|
|
95
|
+
- `<void-progress>`: Visual progress indicator for file uploads, multi-step processes, and loading states.
|
|
96
|
+
- `<void-radio>`: Single mutually exclusive option for forms and surveys; typically used inside VoidRadioGroup.
|
|
97
|
+
- `<void-radio-group>`: Mutually exclusive option group for plan pickers, survey questions, and preference settings.
|
|
98
|
+
- `<void-scroll-area>`: Scrollable container with styled scrollbars for long content areas, code blocks, and chat histories.
|
|
99
|
+
- `<void-segmented-control>`: Mutually exclusive button group for view mode toggles, time range selectors, and compact tab-like navigation.
|
|
100
|
+
- `<void-segmented-control-item>`: Individual option within a VoidSegmentedControl button group.
|
|
101
|
+
- `<void-select>`: Native dropdown for small option sets in forms where a simple pick-one is sufficient.
|
|
102
|
+
- `<void-sidebar>`: Collapsible side navigation for app shells, admin panels, and documentation sites.
|
|
103
|
+
- `<void-skeleton>`: Content placeholder during data loading for cards, lists, and profile pages to prevent layout shift.
|
|
104
|
+
- `<void-slider>`: Continuous value selection for volume controls, price range filters, and numeric range settings.
|
|
105
|
+
- `<void-spinner>`: Indeterminate loading indicator for async operations, button loading states, and inline fetching.
|
|
106
|
+
- `<void-stat>`: Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.
|
|
107
|
+
- `<void-status-dot>`: Presence indicator for user lists and chat rosters showing online/away/offline state at a glance.
|
|
108
|
+
- `<void-stepper>`: Multi-step progress tracker for onboarding flows, checkout funnels, and guided wizards.
|
|
109
|
+
- `<void-switch>`: On/off toggle for feature flags, notification preferences, and settings that take immediate effect.
|
|
110
|
+
- `<void-table>`: Data table around a native `<table>`: sets how it looks (`striped`, `hoverable`, `compact`, `bordered`, `inset`), how it behaves when the container is narrow (`stack`) and when it is wider than its container (`scrollable`, `sticky-header`, `sticky-column`).
|
|
111
|
+
- `<void-tabs>`: Tabbed section navigation for settings pages, detail views, and parallel content categories.
|
|
112
|
+
- `<void-tag>`: Removable label chip for selected filters, applied tags, and multi-value inputs.
|
|
113
|
+
- `<void-tags-input>`: Multi-tag input field for email recipients, category labels, keyword tagging, and comma-separated value entry.
|
|
114
|
+
- `<void-textarea>`: Multi-line text entry for comment fields, description inputs, and freeform text that needs more than one line.
|
|
115
|
+
- `<void-toast>`: Temporary notification for action confirmations, error alerts, and copy-to-clipboard feedback.
|
|
116
|
+
- `<void-toast-container>`: Container that manages toast positioning and provides a static show() helper for programmatic toast display.
|
|
117
|
+
- `<void-toggle>`: Pressable toggle button for toolbar actions and editor formatting controls with binary active/inactive state.
|
|
118
|
+
- `<void-toggle-group>`: Multi-button toggle set for text editor toolbars and filter chips where one or many options can be active.
|
|
119
|
+
- `<void-tooltip>`: Hover hint for icon buttons and truncated text that need a label without cluttering the visible interface.
|
|
120
|
+
|
|
121
|
+
## CSS-only parts and patterns (86)
|
|
122
|
+
|
|
123
|
+
Styled by `@voidable/theme`, registered by no JavaScript; write them as plain markup. Each is described in `reference.md`.
|
|
124
|
+
|
|
125
|
+
`<void-accordion-content>`, `<void-accordion-trigger>`, `<void-actions>`, `<void-alert-close>`, `<void-alert-description>`, `<void-alert-title>`, `<void-banner-actions>`, `<void-banner-close>`, `<void-banner-description>`, `<void-banner-title>`, `<void-brand>`, `<void-breadcrumbs-item>`, `<void-breadcrumbs-list>`, `<void-card-body>`, `<void-card-description>`, `<void-card-footer>`, `<void-card-header>`, `<void-card-title>`, `<void-carousel-content>`, `<void-carousel-indicators>`, `<void-carousel-item>`, `<void-collapsible-content>`, `<void-collapsible-trigger>`, `<void-combobox-content>`, `<void-delta>`, `<void-description-list>`, `<void-dialog-actions>`, `<void-dialog-body>`, `<void-dialog-description>`, `<void-dialog-title>`, `<void-drawer-actions>`, `<void-drawer-body>`, `<void-drawer-description>`, `<void-drawer-title>`, `<void-dropdown-menu-content>`, `<void-dropdown-menu-separator>`, `<void-dropdown-menu-trigger>`, `<void-empty>`, `<void-error-fallback-actions>`, `<void-error-fallback-description>`, `<void-error-fallback-title>`, `<void-figure>`, `<void-figures>`, `<void-glass>`, `<void-hover-card-content>`, `<void-hover-card-trigger>`, `<void-media>`, `<void-media-content>`, `<void-menu-content>`, `<void-menu-empty>`, `<void-menu-group-label>`, `<void-menu-item-icon>`, `<void-menu-item-shortcut>`, `<void-menu-search>`, `<void-multiselect-content>`, `<void-nav-links>`, `<void-nav-menu-content>`, `<void-nav-menu-trigger>`, `<void-page>`, `<void-page-head>`, `<void-panel-body>`, `<void-panel-description>`, `<void-panel-header>`, `<void-panel-title>`, `<void-popover-content>`, `<void-popover-trigger>`, `<void-row>`, `<void-row-text>`, `<void-rows>`, `<void-section>`, `<void-section-head>`, `<void-shell>`, `<void-spacer>`, `<void-split>`, `<void-stack>`, `<void-state>`, `<void-tabs-content>`, `<void-tabs-list>`, `<void-tabs-trigger>`, `<void-toast-actions>`, `<void-toast-close>`, `<void-toast-description>`, `<void-toast-title>`, `<void-toolbar>`, `<void-tooltip-content>`, `<void-tooltip-trigger>`
|
package/dist/parts.d.ts
CHANGED
|
@@ -154,7 +154,9 @@ export declare class PartsController implements ReactiveController, MorphPartici
|
|
|
154
154
|
/**
|
|
155
155
|
* The control inside an overlay trigger part: the first element child of
|
|
156
156
|
* `<void-popover-trigger>` (a `<void-button>`, a `<button>`, a link), which gets
|
|
157
|
-
* the trigger ARIA. Null when the trigger holds no element.
|
|
157
|
+
* the trigger ARIA. Null when the trigger holds no element. A link button
|
|
158
|
+
* (`<void-button>` holding a direct `<a href>` or `<button>`) is presentational,
|
|
159
|
+
* so its inner element is the control, the one assistive technology sees.
|
|
158
160
|
*/
|
|
159
161
|
export declare function triggerControl(trigger: Element | null): HTMLElement | null;
|
|
160
162
|
/**
|