@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.
Files changed (118) hide show
  1. package/README.md +8 -0
  2. package/dist/base-entry.d.ts +1 -0
  3. package/dist/base.d.ts +2 -1
  4. package/dist/base.js +5 -1
  5. package/dist/chunks/base-BxmMM3B7.js +298 -0
  6. package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
  7. package/dist/chunks/{modal-D_YVy2vg.js → modal-CgGp_fCs.js} +3 -3
  8. package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
  9. package/dist/chunks/{parts-D30c8OoG.js → parts-DI_3VpSy.js} +25 -18
  10. package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
  11. package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
  12. package/dist/chunks/value-list-CH6GjYXM.js +28 -0
  13. package/dist/components/accordion.js +2 -2
  14. package/dist/components/action-input.d.ts +8 -4
  15. package/dist/components/action-input.js +61 -49
  16. package/dist/components/alert.js +2 -2
  17. package/dist/components/avatar.js +13 -11
  18. package/dist/components/badge.js +1 -1
  19. package/dist/components/banner.js +2 -2
  20. package/dist/components/bar-chart.js +31 -29
  21. package/dist/components/breadcrumbs.js +2 -2
  22. package/dist/components/button.js +1 -1
  23. package/dist/components/calendar.js +78 -76
  24. package/dist/components/card.js +1 -1
  25. package/dist/components/carousel.js +18 -17
  26. package/dist/components/checkbox-group.d.ts +10 -0
  27. package/dist/components/checkbox-group.js +36 -23
  28. package/dist/components/checkbox.d.ts +2 -2
  29. package/dist/components/checkbox.js +17 -16
  30. package/dist/components/collapsible.js +2 -2
  31. package/dist/components/color-picker.d.ts +2 -2
  32. package/dist/components/color-picker.js +26 -24
  33. package/dist/components/combobox.d.ts +4 -2
  34. package/dist/components/combobox.js +22 -18
  35. package/dist/components/compose-input.d.ts +1 -1
  36. package/dist/components/compose-input.js +15 -10
  37. package/dist/components/dialog.js +1 -1
  38. package/dist/components/divider.js +11 -9
  39. package/dist/components/donut-chart.js +51 -49
  40. package/dist/components/drawer.d.ts +2 -2
  41. package/dist/components/drawer.js +1 -1
  42. package/dist/components/dropdown-menu.js +4 -4
  43. package/dist/components/editable.d.ts +1 -1
  44. package/dist/components/editable.js +13 -12
  45. package/dist/components/error-fallback.js +2 -2
  46. package/dist/components/field.js +10 -9
  47. package/dist/components/file-upload.js +19 -17
  48. package/dist/components/gauge.js +90 -85
  49. package/dist/components/hamburger.js +11 -9
  50. package/dist/components/hover-card.js +3 -3
  51. package/dist/components/indicator.js +14 -12
  52. package/dist/components/input.d.ts +6 -2
  53. package/dist/components/input.js +46 -34
  54. package/dist/components/line-chart.js +41 -39
  55. package/dist/components/list.js +1 -1
  56. package/dist/components/menu.js +3 -3
  57. package/dist/components/multiselect.d.ts +9 -0
  58. package/dist/components/multiselect.js +64 -54
  59. package/dist/components/nav-bar.js +1 -1
  60. package/dist/components/nav-menu.js +20 -19
  61. package/dist/components/number-input.d.ts +2 -2
  62. package/dist/components/number-input.js +17 -15
  63. package/dist/components/pagination.js +22 -20
  64. package/dist/components/panel.js +2 -2
  65. package/dist/components/pin-input.d.ts +6 -2
  66. package/dist/components/pin-input.js +39 -27
  67. package/dist/components/popover.js +3 -3
  68. package/dist/components/progress.js +14 -12
  69. package/dist/components/radio-group.d.ts +2 -2
  70. package/dist/components/radio-group.js +15 -10
  71. package/dist/components/radio.d.ts +25 -0
  72. package/dist/components/radio.js +78 -29
  73. package/dist/components/scroll-area.js +8 -7
  74. package/dist/components/segmented-control.d.ts +1 -1
  75. package/dist/components/segmented-control.js +21 -21
  76. package/dist/components/select.d.ts +67 -16
  77. package/dist/components/select.js +183 -56
  78. package/dist/components/sidebar.d.ts +2 -2
  79. package/dist/components/sidebar.js +2 -2
  80. package/dist/components/skeleton.js +1 -1
  81. package/dist/components/slider.d.ts +2 -2
  82. package/dist/components/slider.js +18 -13
  83. package/dist/components/spinner.js +11 -9
  84. package/dist/components/stat.js +19 -17
  85. package/dist/components/status-dot.js +1 -1
  86. package/dist/components/stepper.js +15 -13
  87. package/dist/components/switch.d.ts +1 -1
  88. package/dist/components/switch.js +14 -12
  89. package/dist/components/table.js +1 -1
  90. package/dist/components/tabs.js +29 -29
  91. package/dist/components/tag.js +9 -8
  92. package/dist/components/tags-input.d.ts +1 -1
  93. package/dist/components/tags-input.js +25 -19
  94. package/dist/components/textarea.d.ts +2 -2
  95. package/dist/components/textarea.js +36 -31
  96. package/dist/components/toast.d.ts +19 -2
  97. package/dist/components/toast.js +43 -10
  98. package/dist/components/toggle-group.d.ts +2 -2
  99. package/dist/components/toggle-group.js +16 -15
  100. package/dist/components/toggle.js +5 -2
  101. package/dist/components/tooltip.js +3 -3
  102. package/dist/components.json +3 -3
  103. package/dist/custom-elements.json +133 -67
  104. package/dist/dev/types.d.ts +2 -3
  105. package/dist/dev.js +81 -55
  106. package/dist/index.js +1 -1
  107. package/dist/keyboard.d.ts +10 -0
  108. package/dist/llms.txt +125 -0
  109. package/dist/parts.d.ts +8 -1
  110. package/dist/projection-api.d.ts +23 -0
  111. package/dist/projection.d.ts +8 -2
  112. package/dist/reference.md +4575 -0
  113. package/dist/secret-value.d.ts +17 -0
  114. package/dist/types/elements.d.ts +2 -2
  115. package/dist/value-list.d.ts +14 -0
  116. package/dist/vscode.html-custom-data.json +46 -26
  117. package/dist/web-types.json +73 -53
  118. package/package.json +5 -3
@@ -0,0 +1,14 @@
1
+ //#region src/secret-value.ts
2
+ function e(e, t, n, r) {
3
+ return t !== "value" || !e ? n : {
4
+ ...n ?? r(),
5
+ reflect: !1
6
+ };
7
+ }
8
+ function t(e) {
9
+ if (!e.hasAttribute("value")) return;
10
+ let t = e.value;
11
+ e.removeAttribute("value"), e.value = t;
12
+ }
13
+ //#endregion
14
+ export { e as n, t };
@@ -0,0 +1,28 @@
1
+ //#region src/value-list.ts
2
+ var e = {
3
+ fromAttribute(e) {
4
+ if (e === null || e.trim() === "") return [];
5
+ try {
6
+ let t = JSON.parse(e);
7
+ if (Array.isArray(t)) return t;
8
+ } catch {}
9
+ return [];
10
+ },
11
+ toAttribute(e) {
12
+ return JSON.stringify(e ?? []);
13
+ }
14
+ }, t = {
15
+ fromAttribute(e) {
16
+ if (e === null || e.trim() === "") return [];
17
+ try {
18
+ let t = JSON.parse(e);
19
+ if (Array.isArray(t)) return t.map(String);
20
+ } catch {}
21
+ return [e];
22
+ },
23
+ toAttribute(e) {
24
+ return JSON.stringify(e ?? []);
25
+ }
26
+ };
27
+ //#endregion
28
+ export { t as n, e as t };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n } from "../chunks/parts-D30c8OoG.js";
3
+ import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { t as r } from "../chunks/disclosure-Bj_49GcC.js";
5
5
  import { property as i } from "lit/decorators.js";
6
6
  //#region src/components/accordion.ts
@@ -1,3 +1,4 @@
1
+ import { PropertyDeclaration, PropertyValues } from 'lit';
1
2
  import { VoidElement } from '../base.js';
2
3
  declare const VoidActionInput_base: (new (...args: any[]) => import('../form-control.js').VoidNativeFormControl) & typeof VoidElement;
3
4
  /** Input field with an attached icon button — used for copy-to-clipboard inputs, search boxes, and similar patterns. */
@@ -7,8 +8,9 @@ export declare class VoidActionInput extends VoidActionInput_base {
7
8
  /** While focus is inside, a morph does not apply the server's value over what the user is typing. */
8
9
  static editState: string[];
9
10
  /**
10
- * The text in the field. As an attribute it is the initial value; read or set the `value` property for
11
- * the current text.
11
+ * The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute
12
+ * sets it; the form's reset target stays the value the field started with. A `type="password"` field
13
+ * does not reflect: its attribute is only ever the initial value.
12
14
  */
13
15
  value: string;
14
16
  /**
@@ -65,11 +67,13 @@ export declare class VoidActionInput extends VoidActionInput_base {
65
67
  icon: string;
66
68
  /** Accessible name of the button and its tooltip. Defaults to `Action`; say what it does (`Copy link`). */
67
69
  actionLabel: string;
68
- /** Which side of the field the button sits on: `right` (default) or `left`. */
69
- iconSide: 'left' | 'right';
70
+ /** Which side of the field the button sits on, in the reading direction: `end` (default) or `start`. */
71
+ iconSide: 'start' | 'end';
70
72
  /** Where the button's tooltip appears: `top` (default), `bottom`, `left` or `right`. */
71
73
  tooltipSide: 'top' | 'bottom' | 'left' | 'right';
72
74
  private _renderIcon;
75
+ requestUpdate(name?: PropertyKey, oldValue?: unknown, options?: PropertyDeclaration): void;
76
+ protected updated(changed: PropertyValues): void;
73
77
  protected formWriteNativeDefault(state: unknown): void;
74
78
  protected formReadNative(): void;
75
79
  protected formSyncNative(): void;
@@ -1,13 +1,16 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
3
  import { n } from "../chunks/form-control-C0vH6gii.js";
4
- import { html as r, nothing as i } from "lit";
5
- import { property as a } from "lit/decorators.js";
6
- import { live as o } from "lit/directives/live.js";
4
+ import { r } from "../chunks/projection-SnR79EHI.js";
5
+ import { n as i, t as a } from "../chunks/secret-value-CmTtVkMg.js";
6
+ import { html as o, nothing as s } from "lit";
7
+ import { property as c } from "lit/decorators.js";
8
+ import { live as l } from "lit/directives/live.js";
7
9
  //#region src/components/action-input.ts
8
- var s = class extends n(e) {
10
+ r();
11
+ var u = class t extends n(e) {
9
12
  constructor(...e) {
10
- super(...e), this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.autocomplete = "", this.minlength = void 0, this.maxlength = void 0, this.pattern = "", this.inputMode = "", this.enterKeyHint = "", this.autocapitalize = "", this.spellcheckAttr = null, this.size = "md", this.color = "default", this.type = "text", this.icon = "search", this.actionLabel = "Action", this.iconSide = "right", this.tooltipSide = "top";
13
+ super(...e), this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.autocomplete = "", this.minlength = void 0, this.maxlength = void 0, this.pattern = "", this.inputMode = "", this.enterKeyHint = "", this.autocapitalize = "", this.spellcheckAttr = null, this.size = "md", this.color = "default", this.type = "text", this.icon = "search", this.actionLabel = "Action", this.iconSide = "end", this.tooltipSide = "top";
11
14
  }
12
15
  static {
13
16
  this.labelTarget = ".void-action-input-field";
@@ -17,18 +20,24 @@ var s = class extends n(e) {
17
20
  }
18
21
  _renderIcon() {
19
22
  switch (this.icon) {
20
- case "copy": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666"/><path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"/></svg>`;
21
- case "search": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>`;
22
- case "send": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 14l11 -11"/><path d="M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"/></svg>`;
23
- case "eye": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>`;
24
- case "eye-off": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>`;
25
- case "check": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10"/></svg>`;
26
- case "x": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12"/><path d="M6 6l12 12"/></svg>`;
27
- case "arrow-right": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l14 0"/><path d="M13 18l6 -6"/><path d="M13 6l6 6"/></svg>`;
28
- case "clipboard": return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"/><path d="M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2"/></svg>`;
29
- default: return r`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>`;
23
+ case "copy": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666"/><path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1"/></svg>`;
24
+ case "search": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>`;
25
+ case "send": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 14l11 -11"/><path d="M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5"/></svg>`;
26
+ case "eye": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>`;
27
+ case "eye-off": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>`;
28
+ case "check": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10"/></svg>`;
29
+ case "x": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12"/><path d="M6 6l12 12"/></svg>`;
30
+ case "arrow-right": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l14 0"/><path d="M13 18l6 -6"/><path d="M13 6l6 6"/></svg>`;
31
+ case "clipboard": return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"/><path d="M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2"/></svg>`;
32
+ default: return o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/><path d="M21 21l-6 -6"/></svg>`;
30
33
  }
31
34
  }
35
+ requestUpdate(e, n, r) {
36
+ super.requestUpdate(e, n, i(this.type === "password", e, r, () => t.getPropertyOptions("value")));
37
+ }
38
+ updated(e) {
39
+ super.updated(e), this.type === "password" && e.get("type") !== void 0 && a(this);
40
+ }
32
41
  formWriteNativeDefault(e) {
33
42
  let t = this.querySelector(".void-action-input-field");
34
43
  t && (t.defaultValue = String(e ?? ""));
@@ -65,7 +74,7 @@ var s = class extends n(e) {
65
74
  }));
66
75
  }
67
76
  render() {
68
- let e = r`
77
+ let e = o`
69
78
  <void-tooltip side=${this.tooltipSide}>
70
79
  <void-tooltip-trigger><button
71
80
  class="void-action-input-btn"
@@ -77,84 +86,87 @@ var s = class extends n(e) {
77
86
  <void-tooltip-content>${this.actionLabel}</void-tooltip-content>
78
87
  </void-tooltip>
79
88
  `;
80
- return r`
81
- ${this.iconSide === "left" ? e : ""}
89
+ return o`
90
+ ${this.iconSide === "start" ? e : ""}
82
91
  <input
83
92
  class="void-action-input-field"
84
93
  type=${this.type}
85
- .value=${o(this.value)}
94
+ .value=${l(this.value)}
86
95
  placeholder=${this.placeholder}
87
96
  ?disabled=${this.disabled}
88
97
  ?readonly=${this.readonly}
89
98
  ?required=${this.required}
90
99
  name=${this.name}
91
- form=${this.formAttr ?? i}
92
- autocomplete=${this.autocomplete || i}
93
- minlength=${this.minlength ?? i}
94
- maxlength=${this.maxlength ?? i}
95
- pattern=${this.pattern || i}
96
- inputmode=${this.inputMode || i}
97
- enterkeyhint=${this.enterKeyHint || i}
98
- autocapitalize=${this.autocapitalize || i}
99
- spellcheck=${this.spellcheckAttr ?? i}
100
- aria-label=${this.placeholder || i}
100
+ form=${this.formAttr ?? s}
101
+ autocomplete=${this.autocomplete || s}
102
+ minlength=${this.minlength ?? s}
103
+ maxlength=${this.maxlength ?? s}
104
+ pattern=${this.pattern || s}
105
+ inputmode=${this.inputMode || s}
106
+ enterkeyhint=${this.enterKeyHint || s}
107
+ autocapitalize=${this.autocapitalize || s}
108
+ spellcheck=${this.spellcheckAttr ?? s}
109
+ aria-label=${this.placeholder || s}
101
110
  @input=${this._onInput}
102
111
  @change=${this._onChange}
103
112
  />
104
- ${this.iconSide === "right" ? e : ""}
113
+ ${this.iconSide === "end" ? e : ""}
105
114
  `;
106
115
  }
107
116
  };
108
- t([a({ type: String })], s.prototype, "value", void 0), t([a({
117
+ t([c({
118
+ type: String,
119
+ reflect: !0
120
+ })], u.prototype, "value", void 0), t([c({
109
121
  type: String,
110
122
  reflect: !0
111
- })], s.prototype, "placeholder", void 0), t([a({
123
+ })], u.prototype, "placeholder", void 0), t([c({
112
124
  type: Boolean,
113
125
  reflect: !0
114
- })], s.prototype, "disabled", void 0), t([a({
126
+ })], u.prototype, "disabled", void 0), t([c({
115
127
  type: Boolean,
116
128
  reflect: !0
117
- })], s.prototype, "readonly", void 0), t([a({
129
+ })], u.prototype, "readonly", void 0), t([c({
118
130
  type: Boolean,
119
131
  reflect: !0
120
- })], s.prototype, "required", void 0), t([a({
132
+ })], u.prototype, "required", void 0), t([c({
121
133
  type: String,
122
134
  reflect: !0
123
- })], s.prototype, "name", void 0), t([a({
135
+ })], u.prototype, "name", void 0), t([c({
124
136
  type: String,
125
137
  reflect: !0
126
- })], s.prototype, "autocomplete", void 0), t([a({ type: Number })], s.prototype, "minlength", void 0), t([a({ type: Number })], s.prototype, "maxlength", void 0), t([a({ type: String })], s.prototype, "pattern", void 0), t([a({
138
+ })], u.prototype, "autocomplete", void 0), t([c({ type: Number })], u.prototype, "minlength", void 0), t([c({ type: Number })], u.prototype, "maxlength", void 0), t([c({ type: String })], u.prototype, "pattern", void 0), t([c({
127
139
  type: String,
128
140
  attribute: "inputmode"
129
- })], s.prototype, "inputMode", void 0), t([a({
141
+ })], u.prototype, "inputMode", void 0), t([c({
130
142
  type: String,
131
143
  attribute: "enterkeyhint"
132
- })], s.prototype, "enterKeyHint", void 0), t([a({ type: String })], s.prototype, "autocapitalize", void 0), t([a({
144
+ })], u.prototype, "enterKeyHint", void 0), t([c({ type: String })], u.prototype, "autocapitalize", void 0), t([c({
133
145
  type: String,
134
146
  attribute: "spellcheck"
135
- })], s.prototype, "spellcheckAttr", void 0), t([a({
147
+ })], u.prototype, "spellcheckAttr", void 0), t([c({
136
148
  type: String,
137
149
  reflect: !0
138
- })], s.prototype, "size", void 0), t([a({
150
+ })], u.prototype, "size", void 0), t([c({
139
151
  type: String,
140
152
  reflect: !0
141
- })], s.prototype, "color", void 0), t([a({
153
+ })], u.prototype, "color", void 0), t([c({
142
154
  type: String,
143
155
  reflect: !0
144
- })], s.prototype, "type", void 0), t([a({
156
+ })], u.prototype, "type", void 0), t([c({
145
157
  type: String,
146
158
  reflect: !0
147
- })], s.prototype, "icon", void 0), t([a({
159
+ })], u.prototype, "icon", void 0), t([c({
148
160
  type: String,
149
161
  attribute: "action-label"
150
- })], s.prototype, "actionLabel", void 0), t([a({
162
+ })], u.prototype, "actionLabel", void 0), t([c({
151
163
  type: String,
152
164
  reflect: !0,
153
165
  attribute: "icon-side"
154
- })], s.prototype, "iconSide", void 0), t([a({
166
+ })], u.prototype, "iconSide", void 0), t([c({
155
167
  type: String,
156
168
  reflect: !0,
157
169
  attribute: "tooltip-side"
158
- })], s.prototype, "tooltipSide", void 0), customElements.get("void-action-input") || customElements.define("void-action-input", s);
170
+ })], u.prototype, "tooltipSide", void 0), customElements.get("void-action-input") || customElements.define("void-action-input", u);
159
171
  //#endregion
160
- export { s as VoidActionInput };
172
+ export { u as VoidActionInput };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n } from "../chunks/parts-D30c8OoG.js";
3
+ import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { n as r, t as i } from "../chunks/dismiss-Drsy_dE5.js";
5
5
  import { property as a } from "lit/decorators.js";
6
6
  //#region src/components/alert.ts
@@ -1,9 +1,11 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { html as n } from "lit";
4
- import { property as r } from "lit/decorators.js";
3
+ import { r as n } from "../chunks/projection-SnR79EHI.js";
4
+ import { html as r } from "lit";
5
+ import { property as i } from "lit/decorators.js";
5
6
  //#region src/components/avatar.ts
6
- var i = class extends e {
7
+ n();
8
+ var a = class extends e {
7
9
  constructor(...e) {
8
10
  super(...e), this.src = "", this.alt = "", this.initials = "", this.size = "md", this._onImgError = () => {
9
11
  this.src = "";
@@ -16,21 +18,21 @@ var i = class extends e {
16
18
  (e.has("alt") || e.has("initials")) && this.setHostAttribute("aria-label", this.alt || this.initials);
17
19
  }
18
20
  render() {
19
- return this.src ? n`<img src="${this.src}" alt="${this.alt}" @error="${this._onImgError}" />` : this.initials ? n`<span class="void-avatar-initials">${this.initials}</span>` : n``;
21
+ return this.src ? r`<img src="${this.src}" alt="${this.alt}" @error="${this._onImgError}" />` : this.initials ? r`<span class="void-avatar-initials">${this.initials}</span>` : r``;
20
22
  }
21
23
  };
22
- t([r({
24
+ t([i({
23
25
  type: String,
24
26
  reflect: !0
25
- })], i.prototype, "src", void 0), t([r({
27
+ })], a.prototype, "src", void 0), t([i({
26
28
  type: String,
27
29
  reflect: !0
28
- })], i.prototype, "alt", void 0), t([r({
30
+ })], a.prototype, "alt", void 0), t([i({
29
31
  type: String,
30
32
  reflect: !0
31
- })], i.prototype, "initials", void 0), t([r({
33
+ })], a.prototype, "initials", void 0), t([i({
32
34
  type: String,
33
35
  reflect: !0
34
- })], i.prototype, "size", void 0), customElements.get("void-avatar") || customElements.define("void-avatar", i);
36
+ })], a.prototype, "size", void 0), customElements.get("void-avatar") || customElements.define("void-avatar", a);
35
37
  //#endregion
36
- export { i as VoidAvatar };
38
+ export { a as VoidAvatar };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
3
  import { property as n } from "lit/decorators.js";
4
4
  //#region src/components/badge.ts
@@ -1,6 +1,6 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n } from "../chunks/parts-D30c8OoG.js";
3
+ import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { n as r, t as i } from "../chunks/dismiss-Drsy_dE5.js";
5
5
  import { property as a } from "lit/decorators.js";
6
6
  //#region src/components/banner.ts
@@ -1,24 +1,26 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n, t as r } from "../chunks/scale-_ccSuoYg.js";
4
- import { html as i, nothing as a, svg as o } from "lit";
5
- import { property as s, state as c } from "lit/decorators.js";
3
+ import { r as n } from "../chunks/projection-SnR79EHI.js";
4
+ import { n as r, t as i } from "../chunks/scale-_ccSuoYg.js";
5
+ import { html as a, nothing as o, svg as s } from "lit";
6
+ import { property as c, state as l } from "lit/decorators.js";
6
7
  //#region src/components/bar-chart.ts
7
- function l(e) {
8
+ n();
9
+ function u(e) {
8
10
  return 1 - (1 - e) ** 3;
9
11
  }
10
- function u(e) {
12
+ function d(e) {
11
13
  return e === 0 ? "0" : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Number.isInteger(e) ? String(e) : e.toFixed(1);
12
14
  }
13
- function d(e) {
15
+ function f(e) {
14
16
  return Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
15
17
  }
16
- function f(e) {
18
+ function p(e) {
17
19
  if (e <= 0) return 1;
18
20
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
19
21
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
20
22
  }
21
- var p = class extends e {
23
+ var m = class extends e {
22
24
  constructor(...e) {
23
25
  super(...e), this.height = 220, this.showValue = !1, this.variant = "filled", this.ariaLabel = "", this.stagger = null, this._data = { series: [] }, this._phase = "pre", this._display = /* @__PURE__ */ new Map(), this._targets = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._animStart = 0, this._animDuration = 0, this._staggerMs = 0, this._rafHandle = 0, this._tick = (e) => {
24
26
  let t = e - this._animStart, n = !1;
@@ -28,7 +30,7 @@ var p = class extends e {
28
30
  else if (t >= o) this._display.set(e, r);
29
31
  else {
30
32
  let i = (t - a) / this._animDuration;
31
- this._display.set(e, s + (r - s) * l(i)), n = !0;
33
+ this._display.set(e, s + (r - s) * u(i)), n = !0;
32
34
  }
33
35
  }
34
36
  this.requestUpdate(), n ? this._rafHandle = requestAnimationFrame(this._tick) : this._phase = "idle";
@@ -68,9 +70,9 @@ var p = class extends e {
68
70
  }
69
71
  render() {
70
72
  let { series: e, labels: t = [] } = this._data;
71
- if (e.length === 0) return i`<svg viewBox="0 0 600 ${this.height}" role="img" aria-label=${this.ariaLabel || "Bar chart"}></svg>`;
72
- let s = this.height - 16 - 32, c = Math.max(...e.map((e) => e.values.length)), l = e.flatMap((e) => e.values).filter(Number.isFinite), p = Math.max(...l, 0), m = Math.min(...l, 0), h = m < 0 ? -f(-m * 1.1) : 0, g = new n([h, p > 0 || h === 0 ? f(p * 1.1) || 1 : 0], [16 + s, 16]), _ = g.scale(0), v = new r(c, [40, 584], .2), y = g.ticks(5);
73
- return i`
73
+ if (e.length === 0) return a`<svg viewBox="0 0 600 ${this.height}" role="img" aria-label=${this.ariaLabel || "Bar chart"}></svg>`;
74
+ let n = this.height - 16 - 32, c = Math.max(...e.map((e) => e.values.length)), l = e.flatMap((e) => e.values).filter(Number.isFinite), u = Math.max(...l, 0), m = Math.min(...l, 0), h = m < 0 ? -p(-m * 1.1) : 0, g = new r([h, u > 0 || h === 0 ? p(u * 1.1) || 1 : 0], [16 + n, 16]), _ = g.scale(0), v = new i(c, [40, 584], .2), y = g.ticks(5);
75
+ return a`
74
76
  <svg
75
77
  viewBox="0 0 600 ${this.height}"
76
78
  preserveAspectRatio="none"
@@ -81,29 +83,29 @@ var p = class extends e {
81
83
  <g class="void-bar-chart-grid">
82
84
  ${y.map((e) => {
83
85
  let t = g.scale(e);
84
- return o`<line x1=${40} x2=${584} y1=${t} y2=${t}></line>`;
86
+ return s`<line x1=${40} x2=${584} y1=${t} y2=${t}></line>`;
85
87
  })}
86
88
  </g>
87
89
 
88
- ${h < 0 ? o`<line class="void-bar-chart-baseline" x1=${40} x2=${584} y1=${_} y2=${_}></line>` : a}
90
+ ${h < 0 ? s`<line class="void-bar-chart-baseline" x1=${40} x2=${584} y1=${_} y2=${_}></line>` : o}
89
91
 
90
92
  <g class="void-bar-chart-y-axis">
91
- ${y.map((e) => o`<text x=${32} y=${g.scale(e)} dy="0.32em" text-anchor="end">${u(e)}</text>`)}
93
+ ${y.map((e) => s`<text x=${32} y=${g.scale(e)} dy="0.32em" text-anchor="end">${d(e)}</text>`)}
92
94
  </g>
93
95
 
94
96
  ${e.map((t, n) => {
95
97
  let r = t.color ?? `var(--void-chart-series-${n % 6 + 1})`, i = v.bandwidth / e.length;
96
- return o`
98
+ return s`
97
99
  <g class="void-bar-chart-series" style="--series-color: ${r}">
98
100
  ${t.values.map((e, r) => {
99
- let s = this._display.get(this._key(n, r)) ?? 0, c = v.scale(r) + i * n, l = g.scale(s), u = Math.min(l, _), d = Math.abs(_ - l), f = t.colors?.[r];
100
- return o`<rect
101
+ let a = this._display.get(this._key(n, r)) ?? 0, c = v.scale(r) + i * n, l = g.scale(a), u = Math.min(l, _), d = Math.abs(_ - l), f = t.colors?.[r];
102
+ return s`<rect
101
103
  class="void-bar-chart-bar"
102
104
  x=${c}
103
105
  y=${u}
104
106
  width=${i - 2}
105
107
  height=${d}
106
- style=${f ? `--series-color: ${f}` : a}
108
+ style=${f ? `--series-color: ${f}` : o}
107
109
  ></rect>`;
108
110
  })}
109
111
  </g>
@@ -112,30 +114,30 @@ var p = class extends e {
112
114
 
113
115
  ${this.showValue ? e.map((t, n) => {
114
116
  let r = v.bandwidth / e.length;
115
- return o`
117
+ return s`
116
118
  <g class="void-bar-chart-values">
117
119
  ${t.values.map((e, t) => {
118
- let i = this._display.get(this._key(n, t)) ?? 0, a = v.scale(t) + r * n + (r - 2) / 2, s = g.scale(i);
119
- return o`<text x=${a} y=${i < 0 ? s + 14 : s - 6} text-anchor="middle">${d(i)}</text>`;
120
+ let i = this._display.get(this._key(n, t)) ?? 0, a = v.scale(t) + r * n + (r - 2) / 2, o = g.scale(i);
121
+ return s`<text x=${a} y=${i < 0 ? o + 14 : o - 6} text-anchor="middle">${f(i)}</text>`;
120
122
  })}
121
123
  </g>
122
124
  `;
123
- }) : a}
125
+ }) : o}
124
126
 
125
127
  <g class="void-bar-chart-x-axis">
126
- ${t.slice(0, c).map((e, t) => o`<text x=${v.scale(t) + v.bandwidth / 2} y=${16 + s + 18} text-anchor="middle">${e}</text>`)}
128
+ ${t.slice(0, c).map((e, t) => s`<text x=${v.scale(t) + v.bandwidth / 2} y=${16 + n + 18} text-anchor="middle">${e}</text>`)}
127
129
  </g>
128
130
  </svg>
129
131
  `;
130
132
  }
131
133
  };
132
- t([s({
134
+ t([c({
133
135
  type: Number,
134
136
  reflect: !0
135
- })], p.prototype, "height", void 0), t([s({
137
+ })], m.prototype, "height", void 0), t([c({
136
138
  type: Boolean,
137
139
  attribute: "show-value",
138
140
  reflect: !0
139
- })], p.prototype, "showValue", void 0), t([s({ reflect: !0 })], p.prototype, "variant", void 0), t([s({ attribute: "aria-label" })], p.prototype, "ariaLabel", void 0), t([s({ type: Number })], p.prototype, "stagger", void 0), t([c()], p.prototype, "_phase", void 0), customElements.get("void-bar-chart") || customElements.define("void-bar-chart", p);
141
+ })], m.prototype, "showValue", void 0), t([c({ reflect: !0 })], m.prototype, "variant", void 0), t([c({ attribute: "aria-label" })], m.prototype, "ariaLabel", void 0), t([c({ type: Number })], m.prototype, "stagger", void 0), t([l()], m.prototype, "_phase", void 0), customElements.get("void-bar-chart") || customElements.define("void-bar-chart", m);
140
142
  //#endregion
141
- export { p as VoidBarChart };
143
+ export { m as VoidBarChart };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BxmMM3B7.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n } from "../chunks/parts-D30c8OoG.js";
3
+ import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { property as r } from "lit/decorators.js";
5
5
  //#region src/components/breadcrumbs.ts
6
6
  var i = "void-breadcrumbs-list", a = "void-breadcrumbs-item", o = class extends e {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
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";