@fusion.dev/helix 0.179.0 → 0.180.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.179.0",
4
+ "version": "0.180.1",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -54,13 +54,13 @@
54
54
  },
55
55
  "bugs": "https://github.com/project-fusion/fusion/issues",
56
56
  "dependencies": {
57
- "@fusion.dev/helix-core": "0.179.0",
58
- "@fusion.dev/helix-headless": "0.179.0",
59
- "@fusion.dev/helix-styles": "0.179.0"
57
+ "@fusion.dev/helix-core": "0.180.1",
58
+ "@fusion.dev/helix-headless": "0.180.1",
59
+ "@fusion.dev/helix-styles": "0.180.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@fusion.dev/helix-cem": "0.179.0",
63
- "@fusion.dev/helix-testing": "0.179.0",
62
+ "@fusion.dev/helix-cem": "0.180.1",
63
+ "@fusion.dev/helix-testing": "0.180.1",
64
64
  "@fusion.dev/scripts": "0.0.0-dev",
65
65
  "@happy-dom/global-registrator": "^20.14.5",
66
66
  "@lit-labs/ssr": "^4.1.0",
package/types/jsx.d.ts CHANGED
@@ -12337,6 +12337,12 @@ for the page's language, then the English. */
12337
12337
  so a form in another language speaks it. Unset is the sentence registered
12338
12338
  for the page's language, then the English. */
12339
12339
  rangeLengthMessage?: (HelixDateInput["rangeLengthMessage"]) | undefined;
12340
+ /** The message shown when a range ends before it starts. `{start}` is
12341
+ replaced with the start, written the way the field writes dates. */
12342
+ "range-order-message"?: (HelixDateInput["rangeOrderMessage"]) | undefined;
12343
+ /** The message shown when a range ends before it starts. `{start}` is
12344
+ replaced with the start, written the way the field writes dates. */
12345
+ rangeOrderMessage?: (HelixDateInput["rangeOrderMessage"]) | undefined;
12340
12346
  /** The message shown when a date is after `max`. `{max}` is replaced with
12341
12347
  `max`, written the way the field writes dates. */
12342
12348
  "range-overflow-message"?: (HelixDateInput["rangeOverflowMessage"]) | undefined;
@@ -12869,6 +12875,12 @@ for the page's language, then the English. */
12869
12875
  so a form in another language speaks it. Unset is the sentence registered
12870
12876
  for the page's language, then the English. */
12871
12877
  "prop:rangeLengthMessage"?: (HelixDateInput["rangeLengthMessage"]) | undefined;
12878
+ /** The message shown when a range ends before it starts. `{start}` is
12879
+ replaced with the start, written the way the field writes dates. */
12880
+ "attr:range-order-message"?: (HelixDateInput["rangeOrderMessage"]) | undefined;
12881
+ /** The message shown when a range ends before it starts. `{start}` is
12882
+ replaced with the start, written the way the field writes dates. */
12883
+ "prop:rangeOrderMessage"?: (HelixDateInput["rangeOrderMessage"]) | undefined;
12872
12884
  /** The message shown when a date is after `max`. `{max}` is replaced with
12873
12885
  `max`, written the way the field writes dates. */
12874
12886
  "attr:range-overflow-message"?: (HelixDateInput["rangeOverflowMessage"]) | undefined;
@@ -13218,6 +13230,12 @@ it. */
13218
13230
  "previous-years-label"?: (HelixDatePicker["previousYearsLabel"]) | undefined;
13219
13231
  /** Accessible name for the control that moves back a page, in the years. */
13220
13232
  previousYearsLabel?: (HelixDatePicker["previousYearsLabel"]) | undefined;
13233
+ /** The validation message for a range that ends before it starts. `{start}`
13234
+ is replaced with the start, written as a date in `locale`. */
13235
+ "range-order-message"?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
13236
+ /** The validation message for a range that ends before it starts. `{start}`
13237
+ is replaced with the start, written as a date in `locale`. */
13238
+ rangeOrderMessage?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
13221
13239
  /** The validation message for a date after `max`. `{max}` is replaced with
13222
13240
  `max`, written as a date in `locale`. */
13223
13241
  "range-overflow-message"?: (HelixDatePicker["rangeOverflowMessage"]) | undefined;
@@ -13571,6 +13589,12 @@ it. */
13571
13589
  "attr:previous-years-label"?: (HelixDatePicker["previousYearsLabel"]) | undefined;
13572
13590
  /** Accessible name for the control that moves back a page, in the years. */
13573
13591
  "prop:previousYearsLabel"?: (HelixDatePicker["previousYearsLabel"]) | undefined;
13592
+ /** The validation message for a range that ends before it starts. `{start}`
13593
+ is replaced with the start, written as a date in `locale`. */
13594
+ "attr:range-order-message"?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
13595
+ /** The validation message for a range that ends before it starts. `{start}`
13596
+ is replaced with the start, written as a date in `locale`. */
13597
+ "prop:rangeOrderMessage"?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
13574
13598
  /** The validation message for a date after `max`. `{max}` is replaced with
13575
13599
  `max`, written as a date in `locale`. */
13576
13600
  "attr:range-overflow-message"?: (HelixDatePicker["rangeOverflowMessage"]) | undefined;
@@ -21809,7 +21833,8 @@ React Aria virtualizes a `ListBox` with its `Virtualizer`; this is core's
21809
21833
 
21810
21834
  **The list needs a height to scroll in**: the styled tier's
21811
21835
  `--listbox-max-block-size`, or a `max-block-size` on `::part(items)` in the
21812
- headless tier. Import the Option family as well, whose elements are drawn.
21836
+ headless tier. The options drawn are this tier's Option, which the page
21837
+ imports, as it imports the options it writes.
21813
21838
  A server sends the list empty, and the options are drawn once it hydrates. */
21814
21839
  items?: (HelixListbox["items"]) | undefined;
21815
21840
  /** Which option is chosen, as an index, or `-1` where none is.
@@ -22109,7 +22134,8 @@ React Aria virtualizes a `ListBox` with its `Virtualizer`; this is core's
22109
22134
 
22110
22135
  **The list needs a height to scroll in**: the styled tier's
22111
22136
  `--listbox-max-block-size`, or a `max-block-size` on `::part(items)` in the
22112
- headless tier. Import the Option family as well, whose elements are drawn.
22137
+ headless tier. The options drawn are this tier's Option, which the page
22138
+ imports, as it imports the options it writes.
22113
22139
  A server sends the list empty, and the options are drawn once it hydrates. */
22114
22140
  "prop:items"?: (HelixListbox["items"]) | undefined;
22115
22141
  /** Which option is chosen, as an index, or `-1` where none is.
@@ -47198,6 +47224,9 @@ export type CustomElements = {
47198
47224
  *
47199
47225
  * Through the base's prototype rather than `super`, because the base this
47200
47226
  * grafts onto is any element and only a form element has the hook.
47227
+ * - `click() => void`: Ticks or clears the box, as `click()` does a native checkbox: passed to the control
47228
+ * inside, so the one click a listener hears is the control's, after it has
47229
+ * moved. See `HostClickController`.
47201
47230
  * - `formDisabledCallback(disabled: boolean) => void`: Called by the browser when an ancestor fieldset is disabled or enabled.
47202
47231
  *
47203
47232
  * **The argument is the effective state, and taking it whole is what latched
@@ -49886,6 +49915,8 @@ export type CustomElements = {
49886
49915
  * **Every sentence a control raises in the browser's bubble is a property**,
49887
49916
  * so a form in another language speaks it. Unset is the sentence registered
49888
49917
  * for the page's language, then the English.
49918
+ * - `range-order-message`/`rangeOrderMessage`: The message shown when a range ends before it starts. `{start}` is
49919
+ * replaced with the start, written the way the field writes dates.
49889
49920
  * - `range-overflow-message`/`rangeOverflowMessage`: The message shown when a date is after `max`. `{max}` is replaced with
49890
49921
  * `max`, written the way the field writes dates.
49891
49922
  * - `range-underflow-message`/`rangeUnderflowMessage`: The message shown when a date is before `min`. `{min}` is replaced with
@@ -50276,6 +50307,8 @@ export type CustomElements = {
50276
50307
  * it.
50277
50308
  * - `previous-year-label`/`previousYearLabel`: Accessible name for the control that moves back a year, in the months.
50278
50309
  * - `previous-years-label`/`previousYearsLabel`: Accessible name for the control that moves back a page, in the years.
50310
+ * - `range-order-message`/`rangeOrderMessage`: The validation message for a range that ends before it starts. `{start}`
50311
+ * is replaced with the start, written as a date in `locale`.
50279
50312
  * - `range-overflow-message`/`rangeOverflowMessage`: The validation message for a date after `max`. `{max}` is replaced with
50280
50313
  * `max`, written as a date in `locale`.
50281
50314
  * - `range-underflow-message`/`rangeUnderflowMessage`: The validation message for a date before `min`. `{min}` is replaced with
@@ -56470,7 +56503,8 @@ export type CustomElements = {
56470
56503
  *
56471
56504
  * **The list needs a height to scroll in**: the styled tier's
56472
56505
  * `--listbox-max-block-size`, or a `max-block-size` on `::part(items)` in the
56473
- * headless tier. Import the Option family as well, whose elements are drawn.
56506
+ * headless tier. The options drawn are this tier's Option, which the page
56507
+ * imports, as it imports the options it writes.
56474
56508
  * A server sends the list empty, and the options are drawn once it hydrates. (property only)
56475
56509
  * - `selectedIndex`: Which option is chosen, as an index, or `-1` where none is.
56476
56510
  *
@@ -62194,6 +62228,9 @@ export type CustomElements = {
62194
62228
  * the item's.
62195
62229
  * - `select() => boolean`: Selects the item and fires `helix-select`. Returns `false` if the item is
62196
62230
  * disabled or a listener cancels the event.
62231
+ * - `click() => void`: Chooses the radio, as `click()` does a native radio: passed to the control
62232
+ * inside, so the one click a listener hears is the control's, after it has
62233
+ * moved. See `HostClickController`.
62197
62234
  *
62198
62235
  * ## CSS Custom Properties
62199
62236
  *
@@ -66290,6 +66327,9 @@ export type CustomElements = {
66290
66327
  *
66291
66328
  * Through the base's prototype rather than `super`, because the base this
66292
66329
  * grafts onto is any element and only a form element has the hook.
66330
+ * - `click() => void`: Turns the switch on or off, as `click()` does a native checkbox: passed to the control
66331
+ * inside, so the one click a listener hears is the control's, after it has
66332
+ * moved. See `HostClickController`.
66293
66333
  * - `formDisabledCallback(disabled: boolean) => void`: Called by the browser when an ancestor fieldset is disabled or enabled.
66294
66334
  *
66295
66335
  * **The argument is the effective state, and taking it whole is what latched
@@ -69734,6 +69774,9 @@ export type CustomElements = {
69734
69774
  * the item's.
69735
69775
  * - `select() => boolean`: Selects the item and fires `helix-select`. Returns `false` if the item is
69736
69776
  * disabled or a listener cancels the event.
69777
+ * - `click() => void`: Presses the toggle, as `click()` does a native button: passed to the control
69778
+ * inside, so the one click a listener hears is the control's, after it has
69779
+ * moved. See `HostClickController`.
69737
69780
  *
69738
69781
  * ## CSS Custom Properties
69739
69782
  *
@@ -76938,6 +76981,9 @@ export type CustomElementsSolidJs = {
76938
76981
  *
76939
76982
  * Through the base's prototype rather than `super`, because the base this
76940
76983
  * grafts onto is any element and only a form element has the hook.
76984
+ * - `click() => void`: Ticks or clears the box, as `click()` does a native checkbox: passed to the control
76985
+ * inside, so the one click a listener hears is the control's, after it has
76986
+ * moved. See `HostClickController`.
76941
76987
  * - `formDisabledCallback(disabled: boolean) => void`: Called by the browser when an ancestor fieldset is disabled or enabled.
76942
76988
  *
76943
76989
  * **The argument is the effective state, and taking it whole is what latched
@@ -79652,6 +79698,8 @@ export type CustomElementsSolidJs = {
79652
79698
  * **Every sentence a control raises in the browser's bubble is a property**,
79653
79699
  * so a form in another language speaks it. Unset is the sentence registered
79654
79700
  * for the page's language, then the English.
79701
+ * - `range-order-message`/`rangeOrderMessage`: The message shown when a range ends before it starts. `{start}` is
79702
+ * replaced with the start, written the way the field writes dates.
79655
79703
  * - `range-overflow-message`/`rangeOverflowMessage`: The message shown when a date is after `max`. `{max}` is replaced with
79656
79704
  * `max`, written the way the field writes dates.
79657
79705
  * - `range-underflow-message`/`rangeUnderflowMessage`: The message shown when a date is before `min`. `{min}` is replaced with
@@ -80045,6 +80093,8 @@ export type CustomElementsSolidJs = {
80045
80093
  * it.
80046
80094
  * - `previous-year-label`/`previousYearLabel`: Accessible name for the control that moves back a year, in the months.
80047
80095
  * - `previous-years-label`/`previousYearsLabel`: Accessible name for the control that moves back a page, in the years.
80096
+ * - `range-order-message`/`rangeOrderMessage`: The validation message for a range that ends before it starts. `{start}`
80097
+ * is replaced with the start, written as a date in `locale`.
80048
80098
  * - `range-overflow-message`/`rangeOverflowMessage`: The validation message for a date after `max`. `{max}` is replaced with
80049
80099
  * `max`, written as a date in `locale`.
80050
80100
  * - `range-underflow-message`/`rangeUnderflowMessage`: The validation message for a date before `min`. `{min}` is replaced with
@@ -86336,7 +86386,8 @@ export type CustomElementsSolidJs = {
86336
86386
  *
86337
86387
  * **The list needs a height to scroll in**: the styled tier's
86338
86388
  * `--listbox-max-block-size`, or a `max-block-size` on `::part(items)` in the
86339
- * headless tier. Import the Option family as well, whose elements are drawn.
86389
+ * headless tier. The options drawn are this tier's Option, which the page
86390
+ * imports, as it imports the options it writes.
86340
86391
  * A server sends the list empty, and the options are drawn once it hydrates. (property only)
86341
86392
  * - `selectedIndex`: Which option is chosen, as an index, or `-1` where none is.
86342
86393
  *
@@ -92175,6 +92226,9 @@ export type CustomElementsSolidJs = {
92175
92226
  * the item's.
92176
92227
  * - `select() => boolean`: Selects the item and fires `helix-select`. Returns `false` if the item is
92177
92228
  * disabled or a listener cancels the event.
92229
+ * - `click() => void`: Chooses the radio, as `click()` does a native radio: passed to the control
92230
+ * inside, so the one click a listener hears is the control's, after it has
92231
+ * moved. See `HostClickController`.
92178
92232
  *
92179
92233
  * ## CSS Custom Properties
92180
92234
  *
@@ -96348,6 +96402,9 @@ export type CustomElementsSolidJs = {
96348
96402
  *
96349
96403
  * Through the base's prototype rather than `super`, because the base this
96350
96404
  * grafts onto is any element and only a form element has the hook.
96405
+ * - `click() => void`: Turns the switch on or off, as `click()` does a native checkbox: passed to the control
96406
+ * inside, so the one click a listener hears is the control's, after it has
96407
+ * moved. See `HostClickController`.
96351
96408
  * - `formDisabledCallback(disabled: boolean) => void`: Called by the browser when an ancestor fieldset is disabled or enabled.
96352
96409
  *
96353
96410
  * **The argument is the effective state, and taking it whole is what latched
@@ -99852,6 +99909,9 @@ export type CustomElementsSolidJs = {
99852
99909
  * the item's.
99853
99910
  * - `select() => boolean`: Selects the item and fires `helix-select`. Returns `false` if the item is
99854
99911
  * disabled or a listener cancels the event.
99912
+ * - `click() => void`: Presses the toggle, as `click()` does a native button: passed to the control
99913
+ * inside, so the one click a listener hears is the control's, after it has
99914
+ * moved. See `HostClickController`.
99855
99915
  *
99856
99916
  * ## CSS Custom Properties
99857
99917
  *
package/types/vue.d.ts CHANGED
@@ -6539,6 +6539,12 @@ for the page's language, then the English. */
6539
6539
  so a form in another language speaks it. Unset is the sentence registered
6540
6540
  for the page's language, then the English. */
6541
6541
  rangeLengthMessage?: (HelixDateInput["rangeLengthMessage"]) | undefined;
6542
+ /** The message shown when a range ends before it starts. `{start}` is
6543
+ replaced with the start, written the way the field writes dates. */
6544
+ "range-order-message"?: (HelixDateInput["rangeOrderMessage"]) | undefined;
6545
+ /** The message shown when a range ends before it starts. `{start}` is
6546
+ replaced with the start, written the way the field writes dates. */
6547
+ rangeOrderMessage?: (HelixDateInput["rangeOrderMessage"]) | undefined;
6542
6548
  /** The message shown when a date is after `max`. `{max}` is replaced with
6543
6549
  `max`, written the way the field writes dates. */
6544
6550
  "range-overflow-message"?: (HelixDateInput["rangeOverflowMessage"]) | undefined;
@@ -6880,6 +6886,12 @@ it. */
6880
6886
  "previous-years-label"?: (HelixDatePicker["previousYearsLabel"]) | undefined;
6881
6887
  /** Accessible name for the control that moves back a page, in the years. */
6882
6888
  previousYearsLabel?: (HelixDatePicker["previousYearsLabel"]) | undefined;
6889
+ /** The validation message for a range that ends before it starts. `{start}`
6890
+ is replaced with the start, written as a date in `locale`. */
6891
+ "range-order-message"?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
6892
+ /** The validation message for a range that ends before it starts. `{start}`
6893
+ is replaced with the start, written as a date in `locale`. */
6894
+ rangeOrderMessage?: (HelixDatePicker["rangeOrderMessage"]) | undefined;
6883
6895
  /** The validation message for a date after `max`. `{max}` is replaced with
6884
6896
  `max`, written as a date in `locale`. */
6885
6897
  "range-overflow-message"?: (HelixDatePicker["rangeOverflowMessage"]) | undefined;
@@ -11305,7 +11317,8 @@ React Aria virtualizes a `ListBox` with its `Virtualizer`; this is core's
11305
11317
 
11306
11318
  **The list needs a height to scroll in**: the styled tier's
11307
11319
  `--listbox-max-block-size`, or a `max-block-size` on `::part(items)` in the
11308
- headless tier. Import the Option family as well, whose elements are drawn.
11320
+ headless tier. The options drawn are this tier's Option, which the page
11321
+ imports, as it imports the options it writes.
11309
11322
  A server sends the list empty, and the options are drawn once it hydrates. */
11310
11323
  items?: (HelixListbox["items"]) | undefined;
11311
11324
  /** Which option is chosen, as an index, or `-1` where none is.
package/types/words.d.ts CHANGED
@@ -614,6 +614,13 @@ declare module '@fusion.dev/helix-core' {
614
614
  * English: `A range is two dates.`
615
615
  */
616
616
  rangeLengthMessage: Message
617
+ /**
618
+ * The message shown when a range ends before it starts. `{start}` is
619
+ * replaced with the start, written the way the field writes dates.
620
+ *
621
+ * English: `Choose an end on or after {start}.`
622
+ */
623
+ rangeOrderMessage: Message
617
624
  /**
618
625
  * The message shown when a date is after `max`. `{max}` is replaced with
619
626
  * `max`, written the way the field writes dates.
@@ -1505,6 +1512,13 @@ declare module '@fusion.dev/helix-core' {
1505
1512
  * English: `Earlier years`
1506
1513
  */
1507
1514
  previousYearsLabel: Message
1515
+ /**
1516
+ * The validation message for a range that ends before it starts. `{start}`
1517
+ * is replaced with the start, written as a date in `locale`.
1518
+ *
1519
+ * English: `Choose an end on or after {start}.`
1520
+ */
1521
+ rangeOrderMessage: Message
1508
1522
  /**
1509
1523
  * The validation message for a date after `max`. `{max}` is replaced with
1510
1524
  * `max`, written as a date in `locale`.