@fusion.dev/helix-headless 0.52.0 → 0.53.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 (58) hide show
  1. package/custom-elements.json +680 -283
  2. package/dist/announcement/root/announcement-root.js +2 -5
  3. package/dist/area-chart/root/area-chart-root.d.ts +7 -0
  4. package/dist/area-chart/root/area-chart-root.js +10 -12
  5. package/dist/bar-chart/root/bar-chart-root.js +4 -5
  6. package/dist/blockquote/root/blockquote-root.js +2 -5
  7. package/dist/chat/composer/chat-composer.js +2 -5
  8. package/dist/chat/message/chat-message.js +4 -11
  9. package/dist/chat/root/chat-root.js +1 -1
  10. package/dist/checkbox-group/root/checkbox-group-root.js +1 -1
  11. package/dist/color-input/root/color-input-root.js +1 -1
  12. package/dist/combobox/root/combobox-root.js +1 -1
  13. package/dist/data-table/root/data-table-root.d.ts +0 -10
  14. package/dist/data-table/root/data-table-root.js +4 -10
  15. package/dist/date-input/root/date-input-root.js +1 -1
  16. package/dist/divider/root/divider-root.js +2 -5
  17. package/dist/donut-chart/root/donut-chart-root.js +5 -6
  18. package/dist/drilldown/item/drilldown-item.d.ts +18 -0
  19. package/dist/drilldown/item/drilldown-item.js +3 -0
  20. package/dist/drilldown/root/drilldown-root.d.ts +20 -1
  21. package/dist/drilldown/root/drilldown-root.js +6 -13
  22. package/dist/file-input/root/file-input-root.js +2 -2
  23. package/dist/filter-input/root/filter-input-root.js +1 -1
  24. package/dist/heatmap/root/buckets.d.ts +2 -2
  25. package/dist/heatmap/root/buckets.js +3 -4
  26. package/dist/heatmap/root/heatmap-root.d.ts +0 -10
  27. package/dist/heatmap/root/heatmap-root.js +2 -8
  28. package/dist/input/root/input-root.js +1 -1
  29. package/dist/line-chart/root/line-chart-root.d.ts +6 -0
  30. package/dist/line-chart/root/line-chart-root.js +15 -17
  31. package/dist/listbox/root/listbox-root.js +1 -1
  32. package/dist/menu/item/menu-item.js +2 -2
  33. package/dist/notifications/notification/notification.d.ts +3 -9
  34. package/dist/notifications/notification/notification.js +3 -11
  35. package/dist/notifications/root/notifications-root.d.ts +0 -10
  36. package/dist/notifications/root/notifications-root.js +3 -9
  37. package/dist/number-input/root/number-input-root.js +2 -2
  38. package/dist/qr-code/root/qr-code-root.d.ts +8 -6
  39. package/dist/qr-code/root/qr-code-root.js +2 -3
  40. package/dist/radio/root/radio-root.d.ts +4 -36
  41. package/dist/radio/root/radio-root.js +2 -27
  42. package/dist/scatter-chart/root/scatter-chart-root.js +10 -11
  43. package/dist/select/root/select-root.js +1 -1
  44. package/dist/slider/root/slider-root.js +1 -1
  45. package/dist/sparkline/root/sparkline-root.d.ts +6 -0
  46. package/dist/sparkline/root/sparkline-root.js +10 -12
  47. package/dist/switch/root/switch-root.js +2 -5
  48. package/dist/tabs/tab/tab.d.ts +5 -34
  49. package/dist/tabs/tab/tab.js +3 -28
  50. package/dist/textarea/root/textarea-root.js +1 -1
  51. package/dist/time-input/root/time-input-root.js +1 -1
  52. package/dist/toggle/root/toggle-root.d.ts +4 -40
  53. package/dist/toggle/root/toggle-root.js +2 -27
  54. package/dist/tree/item/tree-item.js +2 -2
  55. package/dist/video/root/video-root.js +7 -14
  56. package/package.json +5 -5
  57. package/types/jsx.d.ts +302 -100
  58. package/types/vue.d.ts +65 -24
package/types/vue.d.ts CHANGED
@@ -408,7 +408,14 @@ can draw a part as less than nothing, `step` is for a quantity that changes
408
408
  at a moment and is ordered the way `straight` is.
409
409
 
410
410
  Absent rather than defaulted because a reflecting property with a default
411
- writes its attribute onto every host, including the ones nobody configured. */
411
+ writes its attribute onto every host, including the ones nobody configured.
412
+ The resting value therefore lives in the render, as `curve ?? 'straight'`.
413
+
414
+ **`LineChart` and `Sparkline` rest at `smooth` and are not disagreeing.** A
415
+ line claims a position, so the bounded invention a monotone cubic makes is
416
+ a reading aid and costs nothing. A band claims an amount, and two sums
417
+ smoothed independently can cross, so the same aid here draws a part as less
418
+ than nothing. Same axis, different mark, different resting value. */
412
419
  curve?: (HelixHeadlessAreaChart["curve"]) | undefined;
413
420
  /** Which rules are drawn across the plot, if any.
414
421
 
@@ -4360,7 +4367,13 @@ renders, including the ones nobody configured.
4360
4367
  consumer wrote. The default therefore lives where the path is built, as
4361
4368
  `curve ?? 'smooth'`.
4362
4369
 
4363
- `step` claims the opposite of both, that a reading holds until the next. */
4370
+ `step` claims the opposite of both, that a reading holds until the next.
4371
+
4372
+ **`AreaChart` rests at `straight` and is not disagreeing.** A line claims a
4373
+ position and a stacked band claims an amount: a curve fitted through one
4374
+ sum can pass under the curve fitted through the sum beneath it, so a
4375
+ smoothed stack can draw a part as less than nothing. There is no such edge
4376
+ here, which is what lets a line take the reading aid. */
4364
4377
  curve?: (HelixHeadlessLineChart["curve"]) | undefined;
4365
4378
  /** Which rules are drawn across the plot, if any.
4366
4379
 
@@ -5122,16 +5135,26 @@ declaration. `:state(read)` is what the stylesheet reads.
5122
5135
  "default-read"?: (HelixHeadlessNotification["defaultRead"]) | undefined;
5123
5136
  /** State to open with, where nothing declared one. */
5124
5137
  defaultRead?: (HelixHeadlessNotification["defaultRead"]) | undefined;
5125
- /** Whether a reader may remove it. */
5126
- dismissible?: (HelixHeadlessNotification["dismissible"]) | undefined;
5127
- /** Accessible name for the dismiss control. */
5128
- "dismiss-label"?: (HelixHeadlessNotification["dismissLabel"]) | undefined;
5129
- /** Accessible name for the dismiss control. */
5130
- dismissLabel?: (HelixHeadlessNotification["dismissLabel"]) | undefined;
5131
5138
  /** Locale for the timestamp.
5132
5139
 
5133
5140
  Empty is the runtime's own. */
5134
5141
  locale?: (HelixHeadlessNotification["locale"]) | undefined;
5142
+ /** Whether it offers a control to take it away. */
5143
+ dismissible?: (HelixHeadlessNotification["dismissible"]) | undefined;
5144
+ /** Accessible name for that control.
5145
+
5146
+ `attribute` is spelled out because Lit lowercases a property name to
5147
+ derive one rather than dash-casing it, so this would otherwise be
5148
+ reachable only as `dismisslabel`, which nobody would guess and no linter
5149
+ would catch. */
5150
+ "dismiss-label"?: (HelixHeadlessNotification["dismissLabel"]) | undefined;
5151
+ /** Accessible name for that control.
5152
+
5153
+ `attribute` is spelled out because Lit lowercases a property name to
5154
+ derive one rather than dash-casing it, so this would otherwise be
5155
+ reachable only as `dismisslabel`, which nobody would guess and no linter
5156
+ would catch. */
5157
+ dismissLabel?: (HelixHeadlessNotification["dismissLabel"]) | undefined;
5135
5158
  };
5136
5159
 
5137
5160
  export type HelixHeadlessNotificationVueEvents = {
@@ -6038,11 +6061,13 @@ and a URL is a better name than "QR code" for a reader who cannot see it. */
6038
6061
  label?: (HelixHeadlessQrCode["label"]) | undefined;
6039
6062
  /** How the modules are drawn.
6040
6063
 
6041
- `square` is the default and the only one that joins runs of adjacent
6042
- modules into a single subpath, which is what keeps a thousand modules to a
6043
- handful of nodes. `rounded` and `dots` draw each module on its own, because
6044
- the corners are the thing being drawn and a joined run has none in the
6045
- middle. That cost is paid only by a code that asks for them.
6064
+ `square` is the resting state and is written by not writing it, per the
6065
+ rule that a reflected property takes no default. It is also the only one
6066
+ that joins runs of adjacent modules into a single subpath, which is what
6067
+ keeps a thousand modules to a handful of nodes. `rounded` and `dots` draw
6068
+ each module on its own, because the corners are the thing being drawn and a
6069
+ joined run has none in the middle. That cost is paid only by a code that
6070
+ asks for them.
6046
6071
 
6047
6072
  A scanner reads contrast between cells, not their shape, so all three
6048
6073
  scan. `dots` sits a little under half a module so neighbors do not touch,
@@ -6151,13 +6176,15 @@ export type HelixHeadlessRadioHelixSelectElementEvent =
6151
6176
  HelixHeadlessRadioElementEvent<HelixSelectEvent>;
6152
6177
 
6153
6178
  export type HelixHeadlessRadioVueProps = {
6154
- /** Whether this choice can be made. */
6179
+ /** Whether this one can be chosen. */
6155
6180
  disabled?: (HelixHeadlessRadio["disabled"]) | undefined;
6156
- /** Whether this is the current choice.
6181
+ /** Whether this is the current one.
6157
6182
 
6158
- Written by the group. */
6183
+ Written by the set rather than by a consumer, which is why it takes no
6184
+ default from an attribute here: a family whose selection a consumer
6185
+ declares in markup carries `defaultSelected` of its own to say so. */
6159
6186
  selected?: (HelixHeadlessRadio["selected"]) | undefined;
6160
- /** Identifies this choice to the group, and is what the form submits. */
6187
+ /** Identifies this one to the set, and is what a form submits. */
6161
6188
  value?: (HelixHeadlessRadio["value"]) | undefined;
6162
6189
  /** Whether the markup declared this one chosen, which is what a reset returns to.
6163
6190
 
@@ -6693,7 +6720,13 @@ assert against. So the resting state is still the attribute's absence, and
6693
6720
  `curve ?? 'smooth'` is what reads it.
6694
6721
 
6695
6722
  `step` claims the opposite of both, that a reading holds until the next.
6696
- Bars ignore it, having no between to interpolate. */
6723
+ Bars ignore it, having no between to interpolate.
6724
+
6725
+ **`AreaChart` rests at `straight` and is not disagreeing.** A line claims a
6726
+ position and a stacked band claims an amount: a curve fitted through one
6727
+ sum can pass under the curve fitted through the sum beneath it, so a
6728
+ smoothed stack can draw a part as less than nothing. There is no such edge
6729
+ here, which is what lets a line take the reading aid. */
6697
6730
  curve?: (HelixHeadlessSparkline["curve"]) | undefined;
6698
6731
  /** The id of a table to read instead, when there is one behind the line.
6699
6732
 
@@ -7415,11 +7448,15 @@ export type HelixHeadlessTabHelixSelectElementEvent =
7415
7448
  HelixHeadlessTabElementEvent<HelixSelectEvent>;
7416
7449
 
7417
7450
  export type HelixHeadlessTabVueProps = {
7418
- /** Whether the tab can be chosen. */
7451
+ /** Whether this one can be chosen. */
7419
7452
  disabled?: (HelixHeadlessTab["disabled"]) | undefined;
7420
- /** Whether this tab is the current one. */
7453
+ /** Whether this is the current one.
7454
+
7455
+ Written by the set rather than by a consumer, which is why it takes no
7456
+ default from an attribute here: a family whose selection a consumer
7457
+ declares in markup carries `defaultSelected` of its own to say so. */
7421
7458
  selected?: (HelixHeadlessTab["selected"]) | undefined;
7422
- /** Identifies the tab, and pairs it with the panel of the same value. */
7459
+ /** Identifies this one to the set, and is what a form submits. */
7423
7460
  value?: (HelixHeadlessTab["value"]) | undefined;
7424
7461
  };
7425
7462
 
@@ -8208,11 +8245,15 @@ export type HelixHeadlessToggleHelixSelectElementEvent =
8208
8245
  HelixHeadlessToggleElementEvent<HelixSelectEvent>;
8209
8246
 
8210
8247
  export type HelixHeadlessToggleVueProps = {
8211
- /** Whether the item can be chosen. */
8248
+ /** Whether this one can be chosen. */
8212
8249
  disabled?: (HelixHeadlessToggle["disabled"]) | undefined;
8213
- /** Whether this item is the current one. */
8250
+ /** Whether this is the current one.
8251
+
8252
+ Written by the set rather than by a consumer, which is why it takes no
8253
+ default from an attribute here: a family whose selection a consumer
8254
+ declares in markup carries `defaultSelected` of its own to say so. */
8214
8255
  selected?: (HelixHeadlessToggle["selected"]) | undefined;
8215
- /** Identifies the item to the group. */
8256
+ /** Identifies this one to the set, and is what a form submits. */
8216
8257
  value?: (HelixHeadlessToggle["value"]) | undefined;
8217
8258
  /** Whether the markup declared this one chosen, which is what a reset returns to.
8218
8259