@voidable/ui 0.8.1 → 0.10.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/base-entry.d.ts +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BxmMM3B7.js +298 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-D_YVy2vg.js → modal-CgGp_fCs.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
- package/dist/chunks/{parts-D30c8OoG.js → parts-DI_3VpSy.js} +25 -18
- package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
- package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
- package/dist/chunks/value-list-CH6GjYXM.js +28 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +8 -4
- package/dist/components/action-input.js +61 -49
- package/dist/components/alert.js +2 -2
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +2 -2
- package/dist/components/bar-chart.js +31 -29
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +78 -76
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +18 -17
- package/dist/components/checkbox-group.d.ts +10 -0
- package/dist/components/checkbox-group.js +36 -23
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.d.ts +4 -2
- package/dist/components/combobox.js +22 -18
- package/dist/components/compose-input.d.ts +1 -1
- package/dist/components/compose-input.js +15 -10
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.js +51 -49
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +4 -4
- package/dist/components/editable.d.ts +1 -1
- package/dist/components/editable.js +13 -12
- package/dist/components/error-fallback.js +2 -2
- package/dist/components/field.js +10 -9
- package/dist/components/file-upload.js +19 -17
- package/dist/components/gauge.js +90 -85
- package/dist/components/hamburger.js +11 -9
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.d.ts +6 -2
- package/dist/components/input.js +46 -34
- package/dist/components/line-chart.js +41 -39
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.d.ts +9 -0
- package/dist/components/multiselect.js +64 -54
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/nav-menu.js +20 -19
- package/dist/components/number-input.d.ts +2 -2
- package/dist/components/number-input.js +17 -15
- package/dist/components/pagination.js +22 -20
- package/dist/components/panel.js +2 -2
- package/dist/components/pin-input.d.ts +6 -2
- package/dist/components/pin-input.js +39 -27
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +15 -10
- package/dist/components/radio.d.ts +25 -0
- package/dist/components/radio.js +78 -29
- package/dist/components/scroll-area.js +8 -7
- package/dist/components/segmented-control.d.ts +1 -1
- package/dist/components/segmented-control.js +21 -21
- package/dist/components/select.d.ts +67 -16
- package/dist/components/select.js +183 -56
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +18 -13
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.js +19 -17
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +14 -12
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.d.ts +1 -1
- package/dist/components/tags-input.js +25 -19
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +36 -31
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +5 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +3 -3
- package/dist/custom-elements.json +133 -67
- package/dist/dev/types.d.ts +2 -3
- package/dist/dev.js +81 -55
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +125 -0
- package/dist/parts.d.ts +8 -1
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- 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 +46 -26
- package/dist/web-types.json +73 -53
- package/package.json +5 -3
|
@@ -5,8 +5,8 @@ declare const VoidToggleGroup_base: (new (...args: any[]) => import('../form-con
|
|
|
5
5
|
/** Multi-button toggle set for text editor toolbars and filter chips where one or many options can be active. */
|
|
6
6
|
export declare class VoidToggleGroup extends VoidToggleGroup_base {
|
|
7
7
|
/**
|
|
8
|
-
* Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value.
|
|
9
|
-
* attribute
|
|
8
|
+
* Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the
|
|
9
|
+
* attribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the
|
|
10
10
|
* toggles that carry `pressed` in the markup set the initial value (the first of them unless
|
|
11
11
|
* `multiple`); a non-empty `value` wins over their `pressed`.
|
|
12
12
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
3
|
import { t as n } from "../chunks/form-control-C0vH6gii.js";
|
|
4
|
-
import {
|
|
4
|
+
import { r } from "../chunks/keyboard-CEhMSkws.js";
|
|
5
|
+
import { property as i } from "lit/decorators.js";
|
|
5
6
|
//#region src/components/toggle-group.ts
|
|
6
|
-
var
|
|
7
|
+
var a = class extends n(e) {
|
|
7
8
|
constructor(...e) {
|
|
8
9
|
super(...e), this.value = "", this.multiple = !1, this.disabled = !1, this.size = "md", this.color = "default", this.orientation = "horizontal", this._handleChildChange = (e) => {
|
|
9
10
|
let t = e.target.closest("void-toggle");
|
|
@@ -31,11 +32,11 @@ var i = class extends n(e) {
|
|
|
31
32
|
}, this._handleKeydown = (e) => {
|
|
32
33
|
let t = this._toggles().filter((e) => !e.disabled);
|
|
33
34
|
if (!t.length) return;
|
|
34
|
-
let n = this.orientation === "horizontal", r = n ?
|
|
35
|
-
if (e.key !==
|
|
35
|
+
let n = this.orientation === "horizontal", i = r(this), a = n ? i.next : "ArrowDown", o = n ? i.prev : "ArrowUp";
|
|
36
|
+
if (e.key !== a && e.key !== o) return;
|
|
36
37
|
e.preventDefault();
|
|
37
|
-
let
|
|
38
|
-
|
|
38
|
+
let s = t.indexOf(e.target), c;
|
|
39
|
+
c = e.key === a ? s < 0 ? 0 : (s + 1) % t.length : s < 0 ? t.length - 1 : (s - 1 + t.length) % t.length, t[c].focus();
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
connectedCallback() {
|
|
@@ -84,24 +85,24 @@ var i = class extends n(e) {
|
|
|
84
85
|
e.pressed = t.includes(n), this.disabled && (e.disabled = !0), e.size = this.size, this.color !== "default" && (e.color = this.color);
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
|
-
t([
|
|
88
|
+
t([i({
|
|
88
89
|
type: String,
|
|
89
90
|
reflect: !0
|
|
90
|
-
})],
|
|
91
|
+
})], a.prototype, "value", void 0), t([i({
|
|
91
92
|
type: Boolean,
|
|
92
93
|
reflect: !0
|
|
93
|
-
})],
|
|
94
|
+
})], a.prototype, "multiple", void 0), t([i({
|
|
94
95
|
type: Boolean,
|
|
95
96
|
reflect: !0
|
|
96
|
-
})],
|
|
97
|
+
})], a.prototype, "disabled", void 0), t([i({
|
|
97
98
|
type: String,
|
|
98
99
|
reflect: !0
|
|
99
|
-
})],
|
|
100
|
+
})], a.prototype, "size", void 0), t([i({
|
|
100
101
|
type: String,
|
|
101
102
|
reflect: !0
|
|
102
|
-
})],
|
|
103
|
+
})], a.prototype, "color", void 0), t([i({
|
|
103
104
|
type: String,
|
|
104
105
|
reflect: !0
|
|
105
|
-
})],
|
|
106
|
+
})], a.prototype, "orientation", void 0), customElements.get("void-toggle-group") || customElements.define("void-toggle-group", a);
|
|
106
107
|
//#endregion
|
|
107
|
-
export {
|
|
108
|
+
export { a as VoidToggleGroup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
3
|
import { t as n } from "../chunks/keyboard-activation-CV0m4hkn.js";
|
|
4
4
|
import { i as r, r as i } from "../chunks/form-control-C0vH6gii.js";
|
|
@@ -37,7 +37,10 @@ var o = class extends e {
|
|
|
37
37
|
t([a({
|
|
38
38
|
type: Boolean,
|
|
39
39
|
reflect: !0
|
|
40
|
-
})], o.prototype, "pressed", void 0), t([a({
|
|
40
|
+
})], o.prototype, "pressed", void 0), t([a({
|
|
41
|
+
type: String,
|
|
42
|
+
reflect: !0
|
|
43
|
+
})], o.prototype, "value", void 0), t([a({
|
|
41
44
|
type: Boolean,
|
|
42
45
|
reflect: !0
|
|
43
46
|
})], o.prototype, "disabled", void 0), t([a({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BxmMM3B7.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import { i as n, n as r } from "../chunks/parts-
|
|
4
|
-
import { t as i } from "../chunks/overlay-
|
|
3
|
+
import { i as n, n as r } from "../chunks/parts-DI_3VpSy.js";
|
|
4
|
+
import { t as i } from "../chunks/overlay-hLJ7IQHx.js";
|
|
5
5
|
import { property as a } from "lit/decorators.js";
|
|
6
6
|
//#region src/components/tooltip.ts
|
|
7
7
|
var o = class extends e {
|
package/dist/components.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Generated from custom-elements.json by packages/ui/cem/generate.js. Do not edit.",
|
|
3
3
|
"package": "@voidable/ui",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"componentCount": 66,
|
|
6
6
|
"tagCount": 78,
|
|
7
7
|
"eventNames": [
|
|
@@ -912,7 +912,7 @@
|
|
|
912
912
|
"tag": "void-checkbox-group",
|
|
913
913
|
"className": "VoidCheckboxGroup",
|
|
914
914
|
"module": "dist/components/checkbox-group.js",
|
|
915
|
-
"attributes":
|
|
915
|
+
"attributes": 7,
|
|
916
916
|
"properties": 6,
|
|
917
917
|
"events": [
|
|
918
918
|
"void-change"
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
"tag": "void-multiselect",
|
|
1186
1186
|
"className": "VoidMultiselect",
|
|
1187
1187
|
"module": "dist/components/multiselect.js",
|
|
1188
|
-
"attributes":
|
|
1188
|
+
"attributes": 8,
|
|
1189
1189
|
"properties": 8,
|
|
1190
1190
|
"events": [
|
|
1191
1191
|
"void-change",
|