@voidable/ui 0.9.0 → 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 (93) hide show
  1. package/dist/base-entry.d.ts +1 -0
  2. package/dist/base.d.ts +2 -1
  3. package/dist/base.js +5 -1
  4. package/dist/chunks/base-BxmMM3B7.js +298 -0
  5. package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
  6. package/dist/chunks/{modal-hivQ4YoU.js → modal-CgGp_fCs.js} +3 -3
  7. package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
  8. package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
  9. package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
  10. package/dist/components/accordion.js +2 -2
  11. package/dist/components/action-input.d.ts +2 -2
  12. package/dist/components/action-input.js +56 -54
  13. package/dist/components/alert.js +2 -2
  14. package/dist/components/avatar.js +13 -11
  15. package/dist/components/badge.js +1 -1
  16. package/dist/components/banner.js +2 -2
  17. package/dist/components/bar-chart.js +31 -29
  18. package/dist/components/breadcrumbs.js +2 -2
  19. package/dist/components/button.js +1 -1
  20. package/dist/components/calendar.js +78 -76
  21. package/dist/components/card.js +1 -1
  22. package/dist/components/carousel.js +18 -17
  23. package/dist/components/checkbox-group.js +13 -12
  24. package/dist/components/checkbox.js +17 -16
  25. package/dist/components/collapsible.js +2 -2
  26. package/dist/components/color-picker.js +26 -24
  27. package/dist/components/combobox.js +17 -16
  28. package/dist/components/compose-input.js +13 -11
  29. package/dist/components/dialog.js +1 -1
  30. package/dist/components/divider.js +11 -9
  31. package/dist/components/donut-chart.js +51 -49
  32. package/dist/components/drawer.d.ts +2 -2
  33. package/dist/components/drawer.js +1 -1
  34. package/dist/components/dropdown-menu.js +4 -4
  35. package/dist/components/editable.js +13 -12
  36. package/dist/components/error-fallback.js +2 -2
  37. package/dist/components/field.js +10 -9
  38. package/dist/components/file-upload.js +19 -17
  39. package/dist/components/gauge.js +88 -86
  40. package/dist/components/hamburger.js +11 -9
  41. package/dist/components/hover-card.js +3 -3
  42. package/dist/components/indicator.js +14 -12
  43. package/dist/components/input.js +41 -39
  44. package/dist/components/line-chart.js +41 -39
  45. package/dist/components/list.js +1 -1
  46. package/dist/components/menu.js +3 -3
  47. package/dist/components/multiselect.js +30 -29
  48. package/dist/components/nav-bar.js +1 -1
  49. package/dist/components/nav-menu.js +20 -19
  50. package/dist/components/number-input.js +17 -15
  51. package/dist/components/pagination.js +22 -20
  52. package/dist/components/panel.js +2 -2
  53. package/dist/components/pin-input.js +32 -30
  54. package/dist/components/popover.js +3 -3
  55. package/dist/components/progress.js +14 -12
  56. package/dist/components/radio-group.js +13 -11
  57. package/dist/components/radio.d.ts +25 -0
  58. package/dist/components/radio.js +78 -29
  59. package/dist/components/scroll-area.js +8 -7
  60. package/dist/components/segmented-control.js +21 -21
  61. package/dist/components/select.js +49 -47
  62. package/dist/components/sidebar.d.ts +2 -2
  63. package/dist/components/sidebar.js +2 -2
  64. package/dist/components/skeleton.js +1 -1
  65. package/dist/components/slider.js +16 -14
  66. package/dist/components/spinner.js +11 -9
  67. package/dist/components/stat.js +19 -17
  68. package/dist/components/status-dot.js +1 -1
  69. package/dist/components/stepper.js +15 -13
  70. package/dist/components/switch.js +14 -12
  71. package/dist/components/table.js +1 -1
  72. package/dist/components/tabs.js +29 -29
  73. package/dist/components/tag.js +9 -8
  74. package/dist/components/tags-input.js +24 -22
  75. package/dist/components/textarea.js +34 -32
  76. package/dist/components/toast.d.ts +19 -2
  77. package/dist/components/toast.js +43 -10
  78. package/dist/components/toggle-group.js +16 -15
  79. package/dist/components/toggle.js +1 -1
  80. package/dist/components/tooltip.js +3 -3
  81. package/dist/components.json +1 -1
  82. package/dist/custom-elements.json +48 -18
  83. package/dist/dev.js +31 -7
  84. package/dist/index.js +1 -1
  85. package/dist/keyboard.d.ts +10 -0
  86. package/dist/llms.txt +1 -1
  87. package/dist/parts.d.ts +5 -0
  88. package/dist/projection-api.d.ts +23 -0
  89. package/dist/projection.d.ts +8 -2
  90. package/dist/reference.md +4 -4
  91. package/dist/vscode.html-custom-data.json +13 -7
  92. package/dist/web-types.json +17 -17
  93. package/package.json +1 -1
@@ -1706,10 +1706,10 @@
1706
1706
  "kind": "field",
1707
1707
  "name": "iconSide",
1708
1708
  "type": {
1709
- "text": "'left' | 'right'"
1709
+ "text": "'start' | 'end'"
1710
1710
  },
1711
- "default": "'right'",
1712
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
1711
+ "default": "'end'",
1712
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
1713
1713
  "attribute": "icon-side",
1714
1714
  "reflects": true
1715
1715
  },
@@ -2119,10 +2119,10 @@
2119
2119
  {
2120
2120
  "name": "icon-side",
2121
2121
  "type": {
2122
- "text": "'left' | 'right'"
2122
+ "text": "'start' | 'end'"
2123
2123
  },
2124
- "default": "'right'",
2125
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
2124
+ "default": "'end'",
2125
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
2126
2126
  "fieldName": "iconSide"
2127
2127
  },
2128
2128
  {
@@ -2180,11 +2180,21 @@
2180
2180
  "voidRenamed": {
2181
2181
  "attributes": {
2182
2182
  "position": {
2183
- "to": "icon-side"
2183
+ "to": "icon-side",
2184
+ "values": {
2185
+ "left": "icon-side=\"start\"",
2186
+ "right": "icon-side=\"end\""
2187
+ }
2184
2188
  },
2185
2189
  "tooltip-position": {
2186
2190
  "to": "tooltip-side"
2187
2191
  }
2192
+ },
2193
+ "values": {
2194
+ "icon-side": {
2195
+ "left": "start",
2196
+ "right": "end"
2197
+ }
2188
2198
  }
2189
2199
  }
2190
2200
  }
@@ -10810,10 +10820,10 @@
10810
10820
  "kind": "field",
10811
10821
  "name": "side",
10812
10822
  "type": {
10813
- "text": "'left' | 'right' | 'top' | 'bottom'"
10823
+ "text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
10814
10824
  },
10815
10825
  "default": "'right'",
10816
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
10826
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
10817
10827
  "attribute": "side",
10818
10828
  "reflects": true
10819
10829
  },
@@ -11088,10 +11098,10 @@
11088
11098
  {
11089
11099
  "name": "side",
11090
11100
  "type": {
11091
- "text": "'left' | 'right' | 'top' | 'bottom'"
11101
+ "text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
11092
11102
  },
11093
11103
  "default": "'right'",
11094
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
11104
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
11095
11105
  "fieldName": "side"
11096
11106
  },
11097
11107
  {
@@ -24731,10 +24741,10 @@
24731
24741
  "kind": "field",
24732
24742
  "name": "side",
24733
24743
  "type": {
24734
- "text": "'left' | 'right'"
24744
+ "text": "'start' | 'end'"
24735
24745
  },
24736
- "default": "'left'",
24737
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
24746
+ "default": "'start'",
24747
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
24738
24748
  "attribute": "side",
24739
24749
  "reflects": true
24740
24750
  },
@@ -25006,10 +25016,10 @@
25006
25016
  {
25007
25017
  "name": "side",
25008
25018
  "type": {
25009
- "text": "'left' | 'right'"
25019
+ "text": "'start' | 'end'"
25010
25020
  },
25011
- "default": "'left'",
25012
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
25021
+ "default": "'start'",
25022
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
25013
25023
  "fieldName": "side"
25014
25024
  }
25015
25025
  ],
@@ -25022,7 +25032,17 @@
25022
25032
  "voidRenamed": {
25023
25033
  "attributes": {
25024
25034
  "position": {
25025
- "to": "side"
25035
+ "to": "side",
25036
+ "values": {
25037
+ "left": "side=\"start\"",
25038
+ "right": "side=\"end\""
25039
+ }
25040
+ }
25041
+ },
25042
+ "values": {
25043
+ "side": {
25044
+ "left": "start",
25045
+ "right": "end"
25026
25046
  }
25027
25047
  },
25028
25048
  "events": {
@@ -29926,6 +29946,16 @@
29926
29946
  "description": "Milliseconds before the toast closes itself. Defaults to 5000; 0 keeps it until dismissed. The timer\npauses while the pointer or focus is on the toast.",
29927
29947
  "attribute": "duration"
29928
29948
  },
29949
+ {
29950
+ "kind": "method",
29951
+ "name": "announcement",
29952
+ "return": {
29953
+ "type": {
29954
+ "text": "string"
29955
+ }
29956
+ },
29957
+ "description": "What a screen reader should say for this toast: its title, then its message (or, without parts, its text)."
29958
+ },
29929
29959
  {
29930
29960
  "kind": "method",
29931
29961
  "name": "close",
package/dist/dev.js CHANGED
@@ -417,7 +417,7 @@ var k = {
417
417
  ],
418
418
  icon: 0,
419
419
  "action-label": 0,
420
- "icon-side": ["left", "right"],
420
+ "icon-side": ["start", "end"],
421
421
  "tooltip-side": [
422
422
  "top",
423
423
  "bottom",
@@ -441,10 +441,22 @@ var k = {
441
441
  h: "wrap it in <void-field label=\"...\"> or give it aria-label",
442
442
  p: [["void-field", "label"], ["label"]]
443
443
  },
444
- l: { a: {
445
- position: { to: "icon-side" },
446
- "tooltip-position": { to: "tooltip-side" }
447
- } }
444
+ l: {
445
+ a: {
446
+ position: {
447
+ to: "icon-side",
448
+ values: {
449
+ left: "icon-side=\"start\"",
450
+ right: "icon-side=\"end\""
451
+ }
452
+ },
453
+ "tooltip-position": { to: "tooltip-side" }
454
+ },
455
+ v: { "icon-side": {
456
+ left: "start",
457
+ right: "end"
458
+ } }
459
+ }
448
460
  },
449
461
  "void-alert": {
450
462
  m: "alert",
@@ -1323,6 +1335,8 @@ var k = {
1323
1335
  side: [
1324
1336
  "left",
1325
1337
  "right",
1338
+ "start",
1339
+ "end",
1326
1340
  "top",
1327
1341
  "bottom"
1328
1342
  ],
@@ -2593,11 +2607,21 @@ var k = {
2593
2607
  collapsed: 1,
2594
2608
  width: 0,
2595
2609
  "collapsed-width": 0,
2596
- side: ["left", "right"]
2610
+ side: ["start", "end"]
2597
2611
  },
2598
2612
  e: ["void-collapse", "void-expand"],
2599
2613
  l: {
2600
- a: { position: { to: "side" } },
2614
+ a: { position: {
2615
+ to: "side",
2616
+ values: {
2617
+ left: "side=\"start\"",
2618
+ right: "side=\"end\""
2619
+ }
2620
+ } },
2621
+ v: { side: {
2622
+ left: "start",
2623
+ right: "end"
2624
+ } },
2601
2625
  e: { "void-toggle": "listen for void-collapse and void-expand on the sidebar (they do not bubble)" }
2602
2626
  }
2603
2627
  },
package/dist/index.js CHANGED
@@ -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 { VoidBadge as t } from "./components/badge.js";
3
3
  import { VoidButton as n } from "./components/button.js";
4
4
  import { VoidDivider as r } from "./components/divider.js";
@@ -28,5 +28,15 @@ export declare class Typeahead {
28
28
  match(char: string, labels: readonly string[], disabled: readonly boolean[], current: number): number;
29
29
  reset(): void;
30
30
  }
31
+ /** True when `el` renders right-to-left (`dir`, `lang`-derived direction or CSS `direction`). */
32
+ export declare function isRtl(el: Element): boolean;
33
+ /**
34
+ * The keys that move along the inline axis for `el`: `next` is ArrowRight in
35
+ * left-to-right and ArrowLeft in right-to-left; `prev` is the opposite.
36
+ */
37
+ export declare function inlineKeys(el: Element): {
38
+ next: 'ArrowLeft' | 'ArrowRight';
39
+ prev: 'ArrowLeft' | 'ArrowRight';
40
+ };
31
41
  /** A document-unique id for ARIA relationships. */
32
42
  export declare function uid(prefix: string): string;
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Voidable UI (@voidable/ui 0.9.0)
1
+ # Voidable UI (@voidable/ui 0.10.0)
2
2
 
3
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
4
 
package/dist/parts.d.ts CHANGED
@@ -82,6 +82,10 @@ export declare class PartsController implements ReactiveController, MorphPartici
82
82
  /** Attribute names the observer watches: every name ever owned. */
83
83
  private readonly _names;
84
84
  private _syncing;
85
+ /** The observer is registered on the host (it is after the first sync of a connection). */
86
+ private _observing;
87
+ /** A sync owned a name the registered filter does not list yet. */
88
+ private _namesDirty;
85
89
  /** Counts sync passes, so a pass can sweep what the previous one wrote and this one did not. */
86
90
  private _pass;
87
91
  constructor(host: ReactiveControllerHost & HTMLElement, options: PartsOptions);
@@ -121,6 +125,7 @@ export declare class PartsController implements ReactiveController, MorphPartici
121
125
  sync(): void;
122
126
  /** Re-wires in a microtask (several requests in one task make one call). */
123
127
  requestSync(): void;
128
+ /** `echo`: called at the end of a sync, where what is pending is only the echo of its own writes. */
124
129
  private _observe;
125
130
  private _tokenNames;
126
131
  private _onMutations;
@@ -0,0 +1,23 @@
1
+ import { LitElement } from 'lit';
2
+ /** @internal Instance key under which a host's controller is stored (read by VoidElement's DOM overrides). */
3
+ export declare const PROJECTION_KEY = "__voidProjection";
4
+ /**
5
+ * @internal What `VoidElement` needs from projection.ts (about 19 kB minified, of which a button, a badge or any
6
+ * component with explicit parts needs none). projection.ts registers itself here when it is loaded, so a
7
+ * component pays for it only if it, or what it extends, imports it: the components that render or host children
8
+ * through a `ProjectionController` do (`useProjection()`), and so does the public `@voidable/ui/base` entry.
9
+ */
10
+ export interface ProjectionApi {
11
+ /** Gives a rendering component with no controller of its own the region-less default one. */
12
+ create(host: LitElement): void;
13
+ /** Drops the chrome of a serialised copy of a rendered element; true when it was one. */
14
+ strip(host: Element): boolean;
15
+ /** Focus inside `host` is parked by a morph. */
16
+ isFocusParked(host: Element): boolean;
17
+ /** Puts back focus a morph is still holding. */
18
+ restoreParkedFocus(doc: Document): void;
19
+ }
20
+ /** Set by projection.ts when it loads; undefined until then. */
21
+ export declare const projectionApi: {
22
+ current?: ProjectionApi;
23
+ };
@@ -1,4 +1,6 @@
1
1
  import { LitElement, ReactiveController } from 'lit';
2
+ import { PROJECTION_KEY } from './projection-api.js';
3
+ export { PROJECTION_KEY };
2
4
  /**
3
5
  * Where a projection region puts its nodes.
4
6
  *
@@ -77,8 +79,12 @@ export interface ProjectionOptions {
77
79
  */
78
80
  onChange?: () => void;
79
81
  }
80
- /** @internal Instance key under which a host's controller is stored (read by VoidElement's DOM overrides). */
81
- export declare const PROJECTION_KEY = "__voidProjection";
82
+ /**
83
+ * @internal Makes projection available to `VoidElement` (see projection-api.ts). Every `ProjectionController`
84
+ * does it when it is built; a component that renders without a controller of its own calls it at the top level
85
+ * of its module, so that the default controller exists for it.
86
+ */
87
+ export declare function useProjection(): void;
82
88
  /**
83
89
  * @internal True while a morph holds the focus of
84
90
  * an element inside `host` (from just before it is moved out until it is
package/dist/reference.md CHANGED
@@ -1,4 +1,4 @@
1
- # @voidable/ui 0.9.0: element reference
1
+ # @voidable/ui 0.10.0: element reference
2
2
 
3
3
  Generated from the package's Custom Elements Manifest. 164 elements (78 registered by JavaScript, 86 CSS-only parts and patterns). Each section gives the parts, attributes with their allowed values, events with their `detail`, where the element may sit and a correct example. Start at `llms.txt` for the rules that apply to all of them.
4
4
 
@@ -161,7 +161,7 @@ Input field with an attached icon button — used for copy-to-clipboard inputs,
161
161
  | `type` | `text\|password\|search\|email\|tel\|url` | `text` | Native input type; any text-like type is forwarded to the native control. |
162
162
  | `icon` | `string` | `search` | Icon on the button: `search` (default), `copy`, `clipboard`, `send`, `eye`, `eye-off`, `check`, `x` or `arrow-right`. Any other value draws the search icon. |
163
163
  | `action-label` | `string` | `Action` | Accessible name of the button and its tooltip. Defaults to `Action`; say what it does (`Copy link`). |
164
- | `icon-side` | `left\|right` | `right` | Which side of the field the button sits on: `right` (default) or `left`. |
164
+ | `icon-side` | `start\|end` | `end` | Which side of the field the button sits on, in the reading direction: `end` (default) or `start`. |
165
165
  | `tooltip-side` | `top\|bottom\|left\|right` | `top` | Where the button's tooltip appears: `top` (default), `bottom`, `left` or `right`. |
166
166
  | `form` | `string \| null` | | `id` of a `<form>` elsewhere in the page that this control belongs to, as on a native control. Without it the control belongs to the form it sits inside. |
167
167
 
@@ -1510,7 +1510,7 @@ Markup: `<void-drawer open><void-drawer-title>Title</void-drawer-title><void-dra
1510
1510
  | Attribute | Values | Default | Description |
1511
1511
  |---|---|---|---|
1512
1512
  | `aria-label` | `string` | | Accessible name when there is no `<void-drawer-title>` (prefer the title). |
1513
- | `side` | `left\|right\|top\|bottom` | `right` | Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`. |
1513
+ | `side` | `left\|right\|start\|end\|top\|bottom` | `right` | Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left). |
1514
1514
  | `size` | `sm\|md\|lg` | `md` | Width of a side drawer, or height of a top or bottom one: `sm`, `md` (default) or `lg`. |
1515
1515
  | `open` | `boolean` | `false` | Whether it is open. Set or remove the attribute (or property) to open and close it; the server may do the same through a morph. |
1516
1516
  | `hide-close` | `boolean` | `false` | Leave out the close button, and ignore Escape and presses on the backdrop: the user closes it only with a button you put in its actions part (a forced choice). |
@@ -3746,7 +3746,7 @@ Collapsible side navigation for app shells, admin panels, and documentation site
3746
3746
  | `collapsed` | `boolean` | `false` | Show the narrow, collapsed width (a rail that stays on screen, not a closed panel). `toggle()` fires `void-collapse` or `void-expand`; the element has no built-in toggle button, so wire one (for example a `void-hamburger`) to this attribute. |
3747
3747
  | `width` | `string` | `var(--void-sidebar-width)` | CSS width when expanded. Defaults to the theme's `--void-sidebar-width`. |
3748
3748
  | `collapsed-width` | `string` | `var(--void-sidebar-collapsed-width)` | CSS width when collapsed. Defaults to the theme's `--void-sidebar-collapsed-width`. |
3749
- | `side` | `left\|right` | `left` | Which edge of the page the sidebar sits on: `left` (default) or `right`. |
3749
+ | `side` | `start\|end` | `start` | Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`. |
3750
3750
 
3751
3751
  | Event | `detail` | Description |
3752
3752
  |---|---|---|
@@ -334,14 +334,14 @@
334
334
  "name": "icon-side",
335
335
  "description": {
336
336
  "kind": "markdown",
337
- "value": "Which side of the field the button sits on: `right` (default) or `left`.\n\nType: `'left' | 'right'`\n\nDefault: `'right'`\n\nReflected to the attribute."
337
+ "value": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.\n\nType: `'start' | 'end'`\n\nDefault: `'end'`\n\nReflected to the attribute."
338
338
  },
339
339
  "values": [
340
340
  {
341
- "name": "left"
341
+ "name": "start"
342
342
  },
343
343
  {
344
- "name": "right"
344
+ "name": "end"
345
345
  }
346
346
  ]
347
347
  },
@@ -1948,7 +1948,7 @@
1948
1948
  "name": "side",
1949
1949
  "description": {
1950
1950
  "kind": "markdown",
1951
- "value": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.\n\nType: `'left' | 'right' | 'top' | 'bottom'`\n\nDefault: `'right'`\n\nReflected to the attribute."
1951
+ "value": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).\n\nType: `'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'`\n\nDefault: `'right'`\n\nReflected to the attribute."
1952
1952
  },
1953
1953
  "values": [
1954
1954
  {
@@ -1957,6 +1957,12 @@
1957
1957
  {
1958
1958
  "name": "right"
1959
1959
  },
1960
+ {
1961
+ "name": "start"
1962
+ },
1963
+ {
1964
+ "name": "end"
1965
+ },
1960
1966
  {
1961
1967
  "name": "top"
1962
1968
  },
@@ -4522,14 +4528,14 @@
4522
4528
  "name": "side",
4523
4529
  "description": {
4524
4530
  "kind": "markdown",
4525
- "value": "Which edge of the page the sidebar sits on: `left` (default) or `right`.\n\nType: `'left' | 'right'`\n\nDefault: `'left'`\n\nReflected to the attribute."
4531
+ "value": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.\n\nType: `'start' | 'end'`\n\nDefault: `'start'`\n\nReflected to the attribute."
4526
4532
  },
4527
4533
  "values": [
4528
4534
  {
4529
- "name": "left"
4535
+ "name": "start"
4530
4536
  },
4531
4537
  {
4532
- "name": "right"
4538
+ "name": "end"
4533
4539
  }
4534
4540
  ]
4535
4541
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@voidable/ui",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
@@ -277,11 +277,11 @@
277
277
  },
278
278
  {
279
279
  "name": "icon-side",
280
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
281
- "default": "'right'",
280
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
281
+ "default": "'end'",
282
282
  "value": {
283
283
  "kind": "plain",
284
- "type": "'left' | 'right'"
284
+ "type": "'start' | 'end'"
285
285
  }
286
286
  },
287
287
  {
@@ -415,9 +415,9 @@
415
415
  },
416
416
  {
417
417
  "name": "iconSide",
418
- "description": "Which side of the field the button sits on: `right` (default) or `left`.",
419
- "type": "'left' | 'right'",
420
- "default": "'right'"
418
+ "description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
419
+ "type": "'start' | 'end'",
420
+ "default": "'end'"
421
421
  },
422
422
  {
423
423
  "name": "tooltipSide",
@@ -2683,11 +2683,11 @@
2683
2683
  },
2684
2684
  {
2685
2685
  "name": "side",
2686
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
2686
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
2687
2687
  "default": "'right'",
2688
2688
  "value": {
2689
2689
  "kind": "plain",
2690
- "type": "'left' | 'right' | 'top' | 'bottom'"
2690
+ "type": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
2691
2691
  }
2692
2692
  },
2693
2693
  {
@@ -2722,8 +2722,8 @@
2722
2722
  "properties": [
2723
2723
  {
2724
2724
  "name": "side",
2725
- "description": "Screen edge the drawer slides in from: `right` (default), `left`, `top` or `bottom`.",
2726
- "type": "'left' | 'right' | 'top' | 'bottom'",
2725
+ "description": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).",
2726
+ "type": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'",
2727
2727
  "default": "'right'"
2728
2728
  },
2729
2729
  {
@@ -6464,11 +6464,11 @@
6464
6464
  },
6465
6465
  {
6466
6466
  "name": "side",
6467
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
6468
- "default": "'left'",
6467
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
6468
+ "default": "'start'",
6469
6469
  "value": {
6470
6470
  "kind": "plain",
6471
- "type": "'left' | 'right'"
6471
+ "type": "'start' | 'end'"
6472
6472
  }
6473
6473
  }
6474
6474
  ],
@@ -6494,9 +6494,9 @@
6494
6494
  },
6495
6495
  {
6496
6496
  "name": "side",
6497
- "description": "Which edge of the page the sidebar sits on: `left` (default) or `right`.",
6498
- "type": "'left' | 'right'",
6499
- "default": "'left'"
6497
+ "description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
6498
+ "type": "'start' | 'end'",
6499
+ "default": "'start'"
6500
6500
  }
6501
6501
  ],
6502
6502
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidable/ui",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Lit 3 web components for Voidable UI: light DOM, no visual CSS until a theme is loaded",
5
5
  "keywords": [
6
6
  "web-components",