@slotted/react 0.1.0-beta.24 → 0.1.0-beta.26

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 (188) hide show
  1. package/dist/{action-bar-D-V2uWjA.js → action-bar-DckD0Sug.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{cascader-DO1HiJT6.js → cascader-47GYpojH.js} +1 -1
  4. package/dist/cascader.js +1 -1
  5. package/dist/{checkbox-Hq1PXk04.js → checkbox-Dw9R1CGR.js} +3 -3
  6. package/dist/{checkbox-group-Ckoh-2GJ.js → checkbox-group-DDlz-UF4.js} +2 -2
  7. package/dist/checkbox-group.js +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/{color-picker-BsDplfdK.js → color-picker-BbyW5ALf.js} +3 -3
  10. package/dist/color-picker.js +1 -1
  11. package/dist/{column-manager-Dm5ZLz6p.js → column-manager-Bz0bb4mq.js} +3 -3
  12. package/dist/column-manager.js +1 -1
  13. package/dist/{combobox-vE8dmv4K.js → combobox-BA2nvbnA.js} +1 -1
  14. package/dist/combobox.js +1 -1
  15. package/dist/{context-menu-BxbGq4bu.js → context-menu-CfEEqDKr.js} +1 -1
  16. package/dist/context-menu.js +1 -1
  17. package/dist/{currency-field-ZvfrfM0z.js → currency-field-CTzBMH8g.js} +1 -1
  18. package/dist/currency-field.js +1 -1
  19. package/dist/{dashboard-grid-Bx4J-aC7.js → dashboard-grid-WinSY-q3.js} +1 -1
  20. package/dist/dashboard-grid.js +1 -1
  21. package/dist/{data-grid-Dez5RojO.js → data-grid-BWWvixwB.js} +16 -16
  22. package/dist/data-grid.js +1 -1
  23. package/dist/{data-list-B18kLC9Q.js → data-list-iw9K_oiz.js} +2 -2
  24. package/dist/data-list.js +1 -1
  25. package/dist/{date-field-EBPrQL6A.js → date-field-B2WG_m4C.js} +1 -1
  26. package/dist/date-field.js +1 -1
  27. package/dist/{date-picker-B5V8NZCT.js → date-picker-B2wqU3Mw.js} +2 -2
  28. package/dist/date-picker.js +1 -1
  29. package/dist/{date-range-picker-B89Q973N.js → date-range-picker-BhQwOKkE.js} +2 -2
  30. package/dist/date-range-picker.js +1 -1
  31. package/dist/{datetime-field-DavJbR0H.js → datetime-field-CvKPkvaE.js} +1 -1
  32. package/dist/datetime-field.js +1 -1
  33. package/dist/{datetime-picker-Cx6Z52Ka.js → datetime-picker-C-PwlBW5.js} +2 -2
  34. package/dist/datetime-picker.js +1 -1
  35. package/dist/{datetime-range-picker-DYshAlgq.js → datetime-range-picker-0xs12Cf1.js} +2 -2
  36. package/dist/datetime-range-picker.js +1 -1
  37. package/dist/docs/app-shell.json +1 -1
  38. package/dist/docs/app-shell.md +1 -1
  39. package/dist/docs/dialog.json +1 -1
  40. package/dist/docs/dialog.md +1 -1
  41. package/dist/docs/drawer.json +1 -1
  42. package/dist/docs/drawer.md +1 -1
  43. package/dist/docs/field.json +16 -1
  44. package/dist/docs/field.md +3 -1
  45. package/dist/docs/form.json +14 -3
  46. package/dist/docs/form.md +3 -2
  47. package/dist/docs/guidelines/forms.md +89 -1
  48. package/dist/docs/guidelines/index.md +7 -0
  49. package/dist/docs/menu.json +2 -2
  50. package/dist/docs/menu.md +1 -1
  51. package/dist/{entity-picker-DB1HeuvJ.js → entity-picker-WkBLvR2T.js} +2 -2
  52. package/dist/entity-picker.js +1 -1
  53. package/dist/{event-calendar-CEIyV-fW.js → event-calendar-BaPllnNk.js} +3 -3
  54. package/dist/event-calendar.js +1 -1
  55. package/dist/{field-CnSMUZw6.js → field-CSSHwGq_.js} +106 -105
  56. package/dist/{field-group-RACkEXPp.js → field-group-DeBTueJW.js} +1 -1
  57. package/dist/field-group.js +1 -1
  58. package/dist/field.js +1 -1
  59. package/dist/{filter-bar-CzuAJsSf.js → filter-bar-DRQEl4-J.js} +9 -9
  60. package/dist/filter-bar.js +1 -1
  61. package/dist/{form-DEcJ7tHf.js → form-Im9lGi45.js} +13 -3
  62. package/dist/form.js +2 -2
  63. package/dist/{import-export-center-tbHmRTGb.js → import-export-center-C1t2tkzg.js} +1 -1
  64. package/dist/import-export-center.js +1 -1
  65. package/dist/index.js +82 -82
  66. package/dist/{listbox-DvwUa0yH.js → listbox-B9cBuitS.js} +1 -1
  67. package/dist/listbox.js +1 -1
  68. package/dist/{markdown-Bw6L0Ifo.js → markdown-DX-mBYVT.js} +1 -1
  69. package/dist/markdown.js +1 -1
  70. package/dist/menu-parts-7F8syoFE.js +815 -0
  71. package/dist/menu.js +1 -1
  72. package/dist/{menubar-hazvXRYd.js → menubar-DzVGFn_I.js} +1 -1
  73. package/dist/menubar.js +1 -1
  74. package/dist/{multi-select-C1GNk4e0.js → multi-select-DnOAXeuF.js} +1 -1
  75. package/dist/multi-select.js +1 -1
  76. package/dist/{number-field-BPYe9kLB.js → number-field-C20-8yda.js} +1 -1
  77. package/dist/number-field.js +1 -1
  78. package/dist/{otp-input-CYtF30Q-.js → otp-input-YI-Emc5k.js} +1 -1
  79. package/dist/otp-input.js +1 -1
  80. package/dist/{prompt-composer-C57BzYrn.js → prompt-composer-DsnPcKa4.js} +1 -1
  81. package/dist/prompt-composer.js +1 -1
  82. package/dist/{radio-group-CLX8D2Ew.js → radio-group-DA8_LbEz.js} +2 -2
  83. package/dist/radio-group.js +1 -1
  84. package/dist/{rating-BB2k-Fay.js → rating-DSSqi85N.js} +1 -1
  85. package/dist/rating.js +1 -1
  86. package/dist/{saved-views-B54F_Bk4.js → saved-views-CsVRZTwK.js} +3 -3
  87. package/dist/saved-views.js +1 -1
  88. package/dist/{segmented-control-B1U-s58C.js → segmented-control-Dae5wU9X.js} +2 -2
  89. package/dist/segmented-control.js +1 -1
  90. package/dist/{select-OUGNxyS5.js → select-De77allF.js} +311 -309
  91. package/dist/select.js +1 -1
  92. package/dist/{slider-Bp1QjJKu.js → slider-DNRphJot.js} +1 -1
  93. package/dist/slider.js +1 -1
  94. package/dist/{split-button-Dg67gBMP.js → split-button-DA1wcDJB.js} +1 -1
  95. package/dist/split-button.js +1 -1
  96. package/dist/styles/cascader.css +1 -1
  97. package/dist/styles/checkbox-group.css +1 -1
  98. package/dist/styles/checkbox.css +1 -1
  99. package/dist/styles/color-picker.css +1 -1
  100. package/dist/styles/column-manager.css +1 -1
  101. package/dist/styles/combobox.css +1 -1
  102. package/dist/styles/currency-field.css +1 -1
  103. package/dist/styles/data-grid.css +1 -1
  104. package/dist/styles/data-list.css +1 -1
  105. package/dist/styles/date-field.css +1 -1
  106. package/dist/styles/date-picker.css +1 -1
  107. package/dist/styles/date-range-picker.css +1 -1
  108. package/dist/styles/datetime-field.css +1 -1
  109. package/dist/styles/datetime-picker.css +1 -1
  110. package/dist/styles/datetime-range-picker.css +1 -1
  111. package/dist/styles/entity-picker.css +1 -1
  112. package/dist/styles/event-calendar.css +1 -1
  113. package/dist/styles/field-group.css +1 -1
  114. package/dist/styles/field.css +1 -1
  115. package/dist/styles/filter-bar.css +1 -1
  116. package/dist/styles/form.css +1 -1
  117. package/dist/styles/import-export-center.css +1 -1
  118. package/dist/styles/index.css +2 -2
  119. package/dist/styles/listbox.css +1 -1
  120. package/dist/styles/markdown.css +1 -1
  121. package/dist/styles/multi-select.css +1 -1
  122. package/dist/styles/number-field.css +1 -1
  123. package/dist/styles/otp-input.css +1 -1
  124. package/dist/styles/prompt-composer.css +1 -1
  125. package/dist/styles/radio-group.css +1 -1
  126. package/dist/styles/rating.css +1 -1
  127. package/dist/styles/saved-views.css +1 -1
  128. package/dist/styles/segmented-control.css +1 -1
  129. package/dist/styles/select.css +1 -1
  130. package/dist/styles/slider.css +1 -1
  131. package/dist/styles/switch.css +1 -1
  132. package/dist/styles/table.css +1 -1
  133. package/dist/styles/tags-input.css +1 -1
  134. package/dist/styles/text-field.css +1 -1
  135. package/dist/styles/textarea.css +1 -1
  136. package/dist/styles/time-field.css +1 -1
  137. package/dist/styles/time-picker.css +1 -1
  138. package/dist/styles/time-range-picker.css +1 -1
  139. package/dist/styles/toggle-group.css +1 -1
  140. package/dist/styles/transfer.css +1 -1
  141. package/dist/styles/upload.css +1 -1
  142. package/dist/styles/wizard.css +2 -2
  143. package/dist/styles.css +1 -1
  144. package/dist/{switch-DmLzDbTb.js → switch-gR_OvGG8.js} +1 -1
  145. package/dist/switch.js +1 -1
  146. package/dist/{table-Cz9YpgLT.js → table-C3cjkzps.js} +12 -12
  147. package/dist/table.js +1 -1
  148. package/dist/{tags-input-CAmXKSeZ.js → tags-input-DEhtpizX.js} +1 -1
  149. package/dist/tags-input.js +1 -1
  150. package/dist/{text-field-CHYoral_.js → text-field-RGXN7zNu.js} +1 -1
  151. package/dist/text-field.js +1 -1
  152. package/dist/{textarea-47JGOZKv.js → textarea-AhpUmnMk.js} +1 -1
  153. package/dist/textarea.js +1 -1
  154. package/dist/{time-field-D1-rNBsB.js → time-field-xkxX8JF6.js} +1 -1
  155. package/dist/time-field.js +1 -1
  156. package/dist/{time-picker-mwCULYh7.js → time-picker-Da_UhP9X.js} +2 -2
  157. package/dist/time-picker.js +1 -1
  158. package/dist/{time-range-picker-BKgsEHmd.js → time-range-picker-CfVzD53N.js} +2 -2
  159. package/dist/time-range-picker.js +1 -1
  160. package/dist/{toggle-group-Bnig_MWl.js → toggle-group-DoxPLYJ3.js} +1 -1
  161. package/dist/toggle-group.js +1 -1
  162. package/dist/{toolbar-EdmEn_ph.js → toolbar-CtSZ88HI.js} +1 -1
  163. package/dist/toolbar.js +1 -1
  164. package/dist/{transfer-CEHIa2XD.js → transfer-BMRyopEw.js} +5 -5
  165. package/dist/transfer.js +1 -1
  166. package/dist/types/field/field.d.ts +1 -1
  167. package/dist/types/field/field.d.ts.map +1 -1
  168. package/dist/types/field/field.types.d.ts +10 -0
  169. package/dist/types/field/field.types.d.ts.map +1 -1
  170. package/dist/types/field/index.d.ts +1 -1
  171. package/dist/types/field/index.d.ts.map +1 -1
  172. package/dist/types/form/form-parts.d.ts +7 -1
  173. package/dist/types/form/form-parts.d.ts.map +1 -1
  174. package/dist/types/form/form.types.d.ts +3 -0
  175. package/dist/types/form/form.types.d.ts.map +1 -1
  176. package/dist/types/form/index.d.ts +2 -2
  177. package/dist/types/form/index.d.ts.map +1 -1
  178. package/dist/types/menu/menu-items.d.ts.map +1 -1
  179. package/dist/types/select/select-parts.d.ts +1 -1
  180. package/dist/types/select/select-parts.d.ts.map +1 -1
  181. package/dist/types/select/select.types.d.ts +5 -1
  182. package/dist/types/select/select.types.d.ts.map +1 -1
  183. package/dist/{upload-S3d3tUt-.js → upload-BqVBpYaZ.js} +1 -1
  184. package/dist/upload.js +1 -1
  185. package/dist/{wizard-gZyH8HIo.js → wizard-CpYwQGQ-.js} +1 -1
  186. package/dist/wizard.js +1 -1
  187. package/package.json +6 -6
  188. package/dist/menu-parts-BDdCTmko.js +0 -805
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./button-defaults-DNq_DDJh.js";
2
2
  import { r as t } from "./i18n-D7xXDd8-.js";
3
3
  import { n, t as r } from "./icon-D04-_QFA.js";
4
- import { _ as i, g as a, n as o, t as s } from "./menu-parts-BDdCTmko.js";
4
+ import { _ as i, g as a, n as o, t as s } from "./menu-parts-7F8syoFE.js";
5
5
  import { keyedProps as c } from "@slotted/core/selector-key";
6
6
  import { Fragment as l, createContext as u, useCallback as d, useContext as f, useEffect as p, useId as m, useMemo as h, useRef as g, useState as _ } from "react";
7
7
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./action-bar-D-V2uWjA.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./action-bar-DckD0Sug.js";
2
2
  export { a as ActionBar, c as ActionBarAction, i as ActionBarActions, s as ActionBarDefaultsProvider, e as ActionBarOverflow, o as ActionBarSeparator, n as ActionBarStatus, t as useActionBarDefaults, r as useActionBarOverflow };
@@ -4,7 +4,7 @@ import { n, t as r } from "./icon-D04-_QFA.js";
4
4
  import { t as i } from "./spinner-ring-DyfaYloA.js";
5
5
  import { n as a } from "./icon-button-DERKFHX1.js";
6
6
  /* empty css */
7
- import { b as o } from "./field-CnSMUZw6.js";
7
+ import { b as o } from "./field-CSSHwGq_.js";
8
8
  import { t as s } from "./select-tags-3792weoq.js";
9
9
  import { t as c } from "./highlight-9lRPIZ9O.js";
10
10
  import { withSelectorKey as l } from "@slotted/core/selector-key";
package/dist/cascader.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./cascader-DO1HiJT6.js";
1
+ import { a as e, i as t, n, r, t as i } from "./cascader-47GYpojH.js";
2
2
  export { r as CASCADER_FALLBACK, i as Cascader, t as CascaderDefaultsProvider, n as CascaderPanel, e as useCascaderDefaults };
@@ -1,7 +1,7 @@
1
1
  import { n as e, t } from "./icon-D04-_QFA.js";
2
- import { b as n, f as r } from "./field-CnSMUZw6.js";
3
- import { n as i } from "./checkbox-group-Ckoh-2GJ.js";
4
- import { r as ee } from "./field-group-RACkEXPp.js";
2
+ import { b as n, f as r } from "./field-CSSHwGq_.js";
3
+ import { n as i } from "./checkbox-group-DDlz-UF4.js";
4
+ import { r as ee } from "./field-group-DeBTueJW.js";
5
5
  import { keyedProps as a } from "@slotted/core/selector-key";
6
6
  import { createControllable as o } from "@slotted/core/state";
7
7
  import { createContext as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as te, useRef as d, useState as f } from "react";
@@ -1,5 +1,5 @@
1
- import { b as e, f as t, h as n } from "./field-CnSMUZw6.js";
2
- import { r } from "./field-group-RACkEXPp.js";
1
+ import { b as e, f as t, h as n } from "./field-CSSHwGq_.js";
2
+ import { r } from "./field-group-DeBTueJW.js";
3
3
  import { keyedProps as i } from "@slotted/core/selector-key";
4
4
  import { createControllable as a } from "@slotted/core/state";
5
5
  import { createContext as o, useContext as s, useEffect as c, useState as l } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./checkbox-group-Ckoh-2GJ.js";
1
+ import { i as e, n as t, r as n, t as r } from "./checkbox-group-DDlz-UF4.js";
2
2
  export { r as CheckboxGroup, n as CheckboxGroupDefaultsProvider, t as useCheckboxGroup, e as useCheckboxGroupDefaults };
package/dist/checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./checkbox-Hq1PXk04.js";
1
+ import { n as e, r as t, t as n } from "./checkbox-Dw9R1CGR.js";
2
2
  export { n as Checkbox, e as CheckboxDefaultsProvider, t as useCheckboxDefaults };
@@ -1,8 +1,8 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-BDdCTmko.js";
4
- import { b as c } from "./field-CnSMUZw6.js";
5
- import { t as l } from "./text-field-CHYoral_.js";
3
+ import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-7F8syoFE.js";
4
+ import { b as c } from "./field-CSSHwGq_.js";
5
+ import { t as l } from "./text-field-RGXN7zNu.js";
6
6
  import { a as u, d, f, l as p, r as m, t as h } from "./popover-BfEn2wdZ.js";
7
7
  import { withSelectorKey as g } from "@slotted/core/selector-key";
8
8
  import { createControllable as _ } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-BsDplfdK.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-BbyW5ALf.js";
2
2
  export { f as ColorField, s as ColorPicker, u as ColorPickerArea, i as ColorPickerChannel, e as ColorPickerContrast, l as ColorPickerDefaultsProvider, c as ColorPickerEyedropper, d as ColorPickerFormat, t as ColorPickerGamut, a as ColorPickerInput, p as ColorPickerPresets, n as ColorPickerRow, r as ColorPickerSwatch, o as useColorPickerDefaults };
@@ -1,10 +1,10 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, c as i, n as a, t as o } from "./menu-parts-BDdCTmko.js";
3
+ import { _ as r, c as i, n as a, t as o } from "./menu-parts-7F8syoFE.js";
4
4
  import { d as s, f as c, s as l } from "./drawer-Du1aC1px.js";
5
5
  import { n as u } from "./icon-button-DERKFHX1.js";
6
- import { t as d } from "./checkbox-Hq1PXk04.js";
7
- import { t as f } from "./text-field-CHYoral_.js";
6
+ import { t as d } from "./checkbox-Dw9R1CGR.js";
7
+ import { t as f } from "./text-field-RGXN7zNu.js";
8
8
  import { a as p, f as m, l as h, p as g } from "./popover-BfEn2wdZ.js";
9
9
  import { t as _ } from "./visually-hidden-BUSrFZ1_.js";
10
10
  import { keyedProps as ee, withSelectorKey as v } from "@slotted/core/selector-key";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./column-manager-Dm5ZLz6p.js";
1
+ import { a as e, i as t, n, r, t as i } from "./column-manager-Bz0bb4mq.js";
2
2
  export { i as ColumnManager, t as ColumnManagerProvider, n as ColumnManagerRoot, r as ColumnManagerTrigger, e as useColumnManagerDefaults };
@@ -1,7 +1,7 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { t as i } from "./spinner-ring-DyfaYloA.js";
4
- import { b as a } from "./field-CnSMUZw6.js";
4
+ import { b as a } from "./field-CSSHwGq_.js";
5
5
  import { t as o } from "./highlight-9lRPIZ9O.js";
6
6
  import { keyedProps as s, selectorKeyProps as c, withSelectorKey as l } from "@slotted/core/selector-key";
7
7
  import { createControllable as u } from "@slotted/core/state";
package/dist/combobox.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-vE8dmv4K.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-BA2nvbnA.js";
2
2
  export { t as COMBOBOX_FALLBACK, a as Combobox, n as ComboboxContent, r as ComboboxDefaultsProvider, c as ComboboxGroup, e as ComboboxInput, i as ComboboxItem, o as ComboboxSeparator, s as useCombobox, l as useComboboxDefaults };
@@ -1,4 +1,4 @@
1
- import { _ as e, b as t } from "./menu-parts-BDdCTmko.js";
1
+ import { _ as e, b as t } from "./menu-parts-7F8syoFE.js";
2
2
  import { keyedProps as n } from "@slotted/core/selector-key";
3
3
  import { createContext as r, useCallback as i, useContext as a, useEffect as o, useImperativeHandle as s, useRef as c, useState as l } from "react";
4
4
  import { jsx as u } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-BxbGq4bu.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-CfEEqDKr.js";
2
2
  export { t as CONTEXT_MENU_FALLBACK, a as ContextMenu, e as ContextMenuDefaultsProvider, n as ContextMenuTrigger, i as useContextMenu, r as useContextMenuDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
- import { b as i } from "./field-CnSMUZw6.js";
3
+ import { b as i } from "./field-CSSHwGq_.js";
4
4
  import { keyedProps as a, selectorKeyProps as o, withSelectorKey as ee } from "@slotted/core/selector-key";
5
5
  import { createControllable as te } from "@slotted/core/state";
6
6
  import { createContext as s, createElement as ne, useCallback as c, useContext as re, useEffect as l, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as oe, useRef as u, useState as d } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./currency-field-ZvfrfM0z.js";
1
+ import { i as e, n as t, r as n, t as r } from "./currency-field-CTzBMH8g.js";
2
2
  export { r as CurrencyField, n as CurrencyFieldDefaultsProvider, t as CurrencyFieldScrub, e as useCurrencyFieldDefaults };
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-BDdCTmko.js";
3
+ import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-7F8syoFE.js";
4
4
  /* empty css */
5
5
  import { n as u, t as d } from "./icon-button-DERKFHX1.js";
6
6
  import { a as f, c as p, i as m, o as ee, s as h } from "./card-DRmq8_5e.js";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-Bx4J-aC7.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-WinSY-q3.js";
2
2
  export { t as DASHBOARD_GRID_FALLBACK, i as DashboardGrid, e as DashboardGridDefaultsProvider, n as DashboardWidget, r as useDashboardGridDefaults, a as usePersistedDashboardLayout };
@@ -1,27 +1,27 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
- import { _ as i, c as a, g as o, n as s, t as c } from "./menu-parts-BDdCTmko.js";
3
+ import { _ as i, c as a, g as o, n as s, t as c } from "./menu-parts-7F8syoFE.js";
4
4
  import { n as l } from "./icon-button-DERKFHX1.js";
5
5
  import { a as u, i as d, n as f, r as p } from "./tooltip-DrFiRlH8.js";
6
- import { t as m } from "./checkbox-Hq1PXk04.js";
6
+ import { t as m } from "./checkbox-Dw9R1CGR.js";
7
7
  import { i as h } from "./skeleton-DeEOmm1y.js";
8
- import { t as g } from "./text-field-CHYoral_.js";
8
+ import { t as g } from "./text-field-RGXN7zNu.js";
9
9
  import { a as _, d as ee, f as te, l as ne, r as re, t as ie } from "./popover-BfEn2wdZ.js";
10
10
  import { t as v } from "./visually-hidden-BUSrFZ1_.js";
11
11
  import { i as ae, n as oe, o as se, r as ce, t as le } from "./result-state-BMYhelu1.js";
12
- import { t as ue } from "./date-picker-B5V8NZCT.js";
13
- import { t as de } from "./date-field-EBPrQL6A.js";
14
- import { t as fe } from "./date-range-picker-B89Q973N.js";
15
- import { t as pe } from "./datetime-picker-Cx6Z52Ka.js";
16
- import { t as me } from "./datetime-field-DavJbR0H.js";
17
- import { t as he } from "./datetime-range-picker-DYshAlgq.js";
18
- import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-C1GNk4e0.js";
19
- import { t as be } from "./number-field-BPYe9kLB.js";
20
- import { a as xe, t as Se } from "./segmented-control-B1U-s58C.js";
21
- import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-OUGNxyS5.js";
22
- import { t as Oe } from "./time-picker-mwCULYh7.js";
23
- import { t as ke } from "./time-field-D1-rNBsB.js";
24
- import { t as Ae } from "./time-range-picker-BKgsEHmd.js";
12
+ import { t as ue } from "./date-picker-B2wqU3Mw.js";
13
+ import { t as de } from "./date-field-B2WG_m4C.js";
14
+ import { t as fe } from "./date-range-picker-BhQwOKkE.js";
15
+ import { t as pe } from "./datetime-picker-C-PwlBW5.js";
16
+ import { t as me } from "./datetime-field-CvKPkvaE.js";
17
+ import { t as he } from "./datetime-range-picker-0xs12Cf1.js";
18
+ import { a as ge, i as _e, n as ve, s as ye } from "./multi-select-DnOAXeuF.js";
19
+ import { t as be } from "./number-field-C20-8yda.js";
20
+ import { a as xe, t as Se } from "./segmented-control-Dae5wU9X.js";
21
+ import { c as Ce, i as we, n as Te, o as Ee, s as De } from "./select-De77allF.js";
22
+ import { t as Oe } from "./time-picker-Da_UhP9X.js";
23
+ import { t as ke } from "./time-field-xkxX8JF6.js";
24
+ import { t as Ae } from "./time-range-picker-CfVzD53N.js";
25
25
  import { selectorKeyProps as je, withSelectorKey as Me } from "@slotted/core/selector-key";
26
26
  import { createControllable as Ne } from "@slotted/core/state";
27
27
  import { createContext as Pe, createElement as Fe, memo as Ie, useCallback as y, useContext as Le, useEffect as b, useId as Re, useImperativeHandle as ze, useLayoutEffect as Be, useMemo as x, useRef as S, useState as C, useSyncExternalStore as Ve } from "react";
package/dist/data-grid.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-Dez5RojO.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./data-grid-BWWvixwB.js";
2
2
  export { e as DRAG_COLUMN, n as DataGrid, i as DataGridDefaultsProvider, r as EXPANDER_COLUMN, a as SELECTION_COLUMN, t as useDataGridDefaults, o as usePersistedGridView };
@@ -1,8 +1,8 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
- import { _ as i, g as a, h as o, m as s, n as c, o as l, t as ee } from "./menu-parts-BDdCTmko.js";
3
+ import { _ as i, g as a, h as o, m as s, n as c, o as l, t as ee } from "./menu-parts-7F8syoFE.js";
4
4
  import { n as u } from "./icon-button-DERKFHX1.js";
5
- import { t as te } from "./checkbox-Hq1PXk04.js";
5
+ import { t as te } from "./checkbox-Dw9R1CGR.js";
6
6
  import { i as d, n as f } from "./skeleton-DeEOmm1y.js";
7
7
  import { t as p } from "./visually-hidden-BUSrFZ1_.js";
8
8
  import { n as m, o as ne, r as h, t as re } from "./result-state-BMYhelu1.js";
package/dist/data-list.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./data-list-B18kLC9Q.js";
1
+ import { n as e, r as t, t as n } from "./data-list-iw9K_oiz.js";
2
2
  export { n as DataList, e as DataListDefaultsProvider, t as useDataListDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
- import { b as i } from "./field-CnSMUZw6.js";
3
+ import { b as i } from "./field-CSSHwGq_.js";
4
4
  import { keyedProps as a } from "@slotted/core/selector-key";
5
5
  import { createControllable as o } from "@slotted/core/state";
6
6
  import { createContext as s, useCallback as c, useContext as l, useEffect as u, useId as d, useImperativeHandle as f, useMemo as p, useRef as m, useState as h } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./date-field-EBPrQL6A.js";
1
+ import { i as e, n as t, r as n, t as r } from "./date-field-B2WG_m4C.js";
2
2
  export { t as DATE_FIELD_YEAR_PIVOT, r as DateField, n as DateFieldDefaultsProvider, e as useDateFieldDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { n as i, r as a, t as ee } from "./calendar-wqDIW4Z8.js";
4
- import { b as o } from "./field-CnSMUZw6.js";
5
- import { t as te } from "./date-field-EBPrQL6A.js";
4
+ import { b as o } from "./field-CSSHwGq_.js";
5
+ import { t as te } from "./date-field-B2WG_m4C.js";
6
6
  import { keyedProps as ne } from "@slotted/core/selector-key";
7
7
  import { tabbables as re } from "@slotted/core/focus";
8
8
  import { createControllable as s } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./date-picker-B5V8NZCT.js";
1
+ import { n as e, r as t, t as n } from "./date-picker-B2wqU3Mw.js";
2
2
  export { n as DatePicker, e as DatePickerDefaultsProvider, t as useDatePickerDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { i, t as a } from "./calendar-wqDIW4Z8.js";
4
- import { b as ee } from "./field-CnSMUZw6.js";
5
- import { t as o } from "./date-field-EBPrQL6A.js";
4
+ import { b as ee } from "./field-CSSHwGq_.js";
5
+ import { t as o } from "./date-field-B2WG_m4C.js";
6
6
  import { keyedProps as te } from "@slotted/core/selector-key";
7
7
  import { tabbables as ne } from "@slotted/core/focus";
8
8
  import { createControllable as s } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./date-range-picker-B89Q973N.js";
1
+ import { i as e, n as t, r as n, t as r } from "./date-range-picker-BhQwOKkE.js";
2
2
  export { r as DateRangePicker, n as DateRangePickerDefaultsProvider, t as DateRangePickerPreset, e as useDateRangePickerDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
- import { b as i } from "./field-CnSMUZw6.js";
3
+ import { b as i } from "./field-CSSHwGq_.js";
4
4
  import { keyedProps as ee } from "@slotted/core/selector-key";
5
5
  import { createControllable as te } from "@slotted/core/state";
6
6
  import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as u, useMemo as d, useRef as f, useState as p } from "react";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./datetime-field-DavJbR0H.js";
1
+ import { n as e, r as t, t as n } from "./datetime-field-CvKPkvaE.js";
2
2
  export { n as DateTimeField, e as DateTimeFieldDefaultsProvider, t as useDateTimeFieldDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { t as i } from "./calendar-wqDIW4Z8.js";
4
- import { b as ee } from "./field-CnSMUZw6.js";
5
- import { t as te } from "./datetime-field-DavJbR0H.js";
4
+ import { b as ee } from "./field-CSSHwGq_.js";
5
+ import { t as te } from "./datetime-field-CvKPkvaE.js";
6
6
  import { keyedProps as ne } from "@slotted/core/selector-key";
7
7
  import { tabbables as re } from "@slotted/core/focus";
8
8
  import { createControllable as ie } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./datetime-picker-Cx6Z52Ka.js";
1
+ import { i as e, n as t, r as n, t as r } from "./datetime-picker-C-PwlBW5.js";
2
2
  export { t as DATE_TIME_PICKER_MAX_OPTIONS, r as DateTimePicker, n as DateTimePickerDefaultsProvider, e as useDateTimePickerDefaults };
@@ -1,8 +1,8 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { t as i } from "./calendar-wqDIW4Z8.js";
4
- import { b as a } from "./field-CnSMUZw6.js";
5
- import { t as o } from "./datetime-field-DavJbR0H.js";
4
+ import { b as a } from "./field-CSSHwGq_.js";
5
+ import { t as o } from "./datetime-field-CvKPkvaE.js";
6
6
  import { keyedProps as s } from "@slotted/core/selector-key";
7
7
  import { createControllable as c } from "@slotted/core/state";
8
8
  import { createContext as l, useCallback as u, useContext as ee, useEffect as d, useId as te, useImperativeHandle as ne, useLayoutEffect as re, useMemo as f, useRef as p, useState as m } from "react";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./datetime-range-picker-DYshAlgq.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./datetime-range-picker-0xs12Cf1.js";
2
2
  export { n as DATETIME_RANGE_PICKER_MAX_OPTIONS, e as DATETIME_RANGE_PICKER_MONTHS, a as DATETIME_RANGE_PICKER_STEP, c as DateTimeRangePicker, s as DateTimeRangePickerDefaultsProvider, i as DateTimeRangePickerPreset, t as dateTimeRangePickerLengthLabel, o as isSameDateTimeRange, r as useDateTimeRangePickerDefaults };
@@ -461,7 +461,7 @@
461
461
  "type": "'close' | 'none'",
462
462
  "defaultValue": "close",
463
463
  "appliesTo": "AppShell, AppShellDefaultsProvider",
464
- "description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one history entry per modal layer and answers the popstate that leaves it with the reason back"
464
+ "description": "The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back"
465
465
  },
466
466
  {
467
467
  "name": "closeOnNavigate",
@@ -139,7 +139,7 @@ export default function AppShellBasic() {
139
139
  | `modal` | `boolean` | true | AppShell, AppShellDefaultsProvider | Whether an overlaid region contains focus and makes every other region inert. Only the overlaid modes read it, and it applies to whichever layer is open |
140
140
  | `escape` | `'close' \| 'none'` | close | AppShell, AppShellDefaultsProvider | Whether Escape closes an overlaid region. Registered in the capture phase by @slotted/core/dismissable-layer, so a handler inside the panel runs after the layer has already asked |
141
141
  | `outsidePress` | `'close' \| 'none'` | close | AppShell, AppShellDefaultsProvider | Whether a press outside an overlaid panel closes it |
142
- | `back` | `'close' \| 'none'` | close | AppShell, AppShellDefaultsProvider | The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one history entry per modal layer and answers the popstate that leaves it with the reason back |
142
+ | `back` | `'close' \| 'none'` | close | AppShell, AppShellDefaultsProvider | The platform's way back — a phone's gesture, a browser's button — closes the layer instead of leaving the page, while it is modal: @slotted/core/dismissable-layer holds one close watcher per modal layer where the browser has CloseWatcher, and one history entry elsewhere, and answers the way back with the reason back |
143
143
  | `closeOnNavigate` | `boolean` | true | AppShell, AppShellDefaultsProvider | Whether a click on an a[href] inside the overlaid navigation closes it, with the reason select — a router’s preventDefault included, an aria-disabled link excluded. Without it a phone costs two taps per destination |
144
144
  | `messages` | `Partial<AppShellMessages>` | — | AppShell | Words laid over the language in force, key by key — aside, close, closeAside, nav, open, openAside, progress, resizeAside, skipToAside, skipToMain, skipToNav: the two regions’ accessible names, the two controls’ labels in each state, the wait’s name, the pane edge’s name, and the three skip links. An aria-label written on the part itself still wins |
145
145
  | `loading` | `boolean` | true | AppShellProgress | Whether the next page is on its way. The bar appears once it has lasted delay (200 ms), stays at least minDuration (400 ms), and main carries aria-busy for exactly that long. Every other ProgressBar prop but placement passes through — value for a wait that reports its fraction, tone, label, size (sm by default) — and a value set through ProgressIndicatorDefaultsProvider wins over the shell’s timing |
@@ -356,7 +356,7 @@
356
356
  "type": "'close' | 'none'",
357
357
  "defaultValue": "close",
358
358
  "appliesTo": "Dialog, DialogDefaultsProvider",
359
- "description": "Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog adds one history entry, and the close request carries the reason back."
359
+ "description": "Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it."
360
360
  },
361
361
  {
362
362
  "name": "surface",
@@ -150,7 +150,7 @@ export default function DialogBasic() {
150
150
  | `value` | `string` | — | DialogClose, AlertDialogCancel, AlertDialogAction | The result this button closes the dialog with, read from request.result in onOpenChange. AlertDialogCancel defaults to "cancel" and AlertDialogAction to "confirm". |
151
151
  | `modal` | `boolean` | true | Dialog, DialogDefaultsProvider | Whether the page behind is inert, its scroll locked and focus kept inside the panel. false does none of this, paints no scrim, lets the pointer reach the page and writes no aria-modal. |
152
152
  | `outsidePress` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether a press outside the panel asks the dialog to close. AlertDialog fixes it at none. |
153
- | `back` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog adds one history entry, and the close request carries the reason back. |
153
+ | `back` | `'close' \| 'none'` | close | Dialog, DialogDefaultsProvider | Whether the browser’s way back, a back button or a phone’s back gesture, closes a modal dialog instead of leaving the page. Each open modal dialog holds one close watcher where the browser has CloseWatcher, and adds one history entry elsewhere; the close request carries the reason back. A dialog opened without a press shares the way back with the layer opened before it. |
154
154
  | `surface` | `'panel' \| 'plain'` | panel | Dialog, DialogDefaultsProvider | Whether Dialog paints the panel. plain removes the background, border, radius, shadow, rows and padding, and keeps the portal, the scrim, focus handling and the dismissal policy, for a panel of your own such as a Card or an image viewer. A plain panel does not keep its footer on screen for a long body. |
155
155
  | `fullScreen` | `'never' \| 'narrow' \| 'always'` | narrow | Dialog, DialogDefaultsProvider | When the panel fills the whole layer, without margins or radius. narrow does so while the layer is narrower than 480 pixels, measured with a container query on the layer. |
156
156
  | `fullscreenToggle` | `boolean` | false | Dialog | Adds a button to the header that expands the panel to the whole layer and restores it, for content the reader wants more room for. |
@@ -305,7 +305,7 @@
305
305
  "type": "'close' | 'none'",
306
306
  "defaultValue": "close",
307
307
  "appliesTo": "Drawer, DrawerDefaultsProvider",
308
- "description": "Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one history entry while it is open. It has no effect under mode=\"inline\"."
308
+ "description": "Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one close watcher while it is open where the browser has CloseWatcher, and one history entry elsewhere; a drawer opened without a press shares the way back with the layer opened before it. It has no effect under mode=\"inline\"."
309
309
  },
310
310
  {
311
311
  "name": "drag",
@@ -128,7 +128,7 @@ export default function DrawerBasic() {
128
128
  | `modal` | `boolean` | true | Drawer, DrawerDefaultsProvider | Whether the page behind is inert, its scroll is locked and focus is contained in the panel, and whether the panel carries aria-modal. The scrim is painted either way. Always false under mode="inline". |
129
129
  | `escape` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether Escape asks to close the drawer. Escape reaches only the topmost layer, and a layer that refuses it does not pass it to the one below. |
130
130
  | `outsidePress` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether a press outside the layer, the scrim included, asks to close the drawer. It has no effect under mode="inline". |
131
- | `back` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one history entry while it is open. It has no effect under mode="inline". |
131
+ | `back` | `'close' \| 'none'` | close | Drawer, DrawerDefaultsProvider | Whether the browser’s back button or a phone’s back gesture closes a modal drawer instead of leaving the page. The drawer holds one close watcher while it is open where the browser has CloseWatcher, and one history entry elsewhere; a drawer opened without a press shares the way back with the layer opened before it. It has no effect under mode="inline". |
132
132
  | `drag` | `'panel' \| 'resizer'` | panel | Drawer, DrawerDefaultsProvider | What a touch moves a bottom sheet by: panel, anywhere on the panel, the sheet and its content scrolling as one; or resizer, the separator only, the body scrolling on its own at the highest stop. A mouse drags the separator, and the sheet settles on the nearest stop. |
133
133
  | `scrimFrom` | `number` | 0 | Drawer | While the measure is below this fraction, the scrim is not painted, a press reaches the page, and the root carries data-undimmed. Use it with modal={false} and outsidePress="none". |
134
134
  | `loading` | `boolean` | false | Drawer | Marks the body as busy with aria-busy and gives it a minimum height, so the panel does not jump when the content arrives. The header, the ✕, Escape and the separator stay available. |
@@ -21,6 +21,11 @@
21
21
  "optional",
22
22
  "words",
23
23
  "none"
24
+ ],
25
+ "width": [
26
+ "full",
27
+ "medium",
28
+ "short"
24
29
  ]
25
30
  },
26
31
  "members": {
@@ -29,7 +34,8 @@
29
34
  "defaults": {
30
35
  "size": "md",
31
36
  "labelPlacement": "top",
32
- "necessity": "mark"
37
+ "necessity": "mark",
38
+ "width": "full"
33
39
  },
34
40
  "capabilities": [
35
41
  "appearance",
@@ -150,6 +156,13 @@
150
156
  "appliesTo": "Field",
151
157
  "description": "How necessity is written: an asterisk on a required field, (optional) on a field a reader may skip, both words, or nothing, for a form that says once that every field is required."
152
158
  },
159
+ {
160
+ "name": "width",
161
+ "type": "'short' | 'medium' | 'full'",
162
+ "defaultValue": "full",
163
+ "appliesTo": "Field",
164
+ "description": "The longest the control stands, as a cue to the length of its answer: short (--slotted-field-width-short, 6rem) for an integer of up to four digits, medium (--slotted-field-width-medium, 15rem) for an amount, a code or a short word, full for free text, a name or a picker of records. The control still shrinks below the bound in a narrower field."
165
+ },
153
166
  {
154
167
  "name": "messages",
155
168
  "type": "Partial<FieldMessages>",
@@ -359,6 +372,8 @@
359
372
  "--slotted-field-mark-gap",
360
373
  "--slotted-field-mark-text-color",
361
374
  "--slotted-field-row-gap",
375
+ "--slotted-field-width-medium",
376
+ "--slotted-field-width-short",
362
377
  "--slotted-focus-ring-color",
363
378
  "--slotted-focus-ring-offset",
364
379
  "--slotted-focus-ring-width",
@@ -61,6 +61,7 @@ export default function FieldBasic() {
61
61
  | `size` | `'sm' \| 'md' \| 'lg'` | md | Field | The type step, matching the control the field wraps. The label, the messages and the counter read the control type scale, which the theme restates per density. |
62
62
  | `labelPlacement` | `'top' \| 'side'` | top | Field | Where the label sits. side reflows to top when the field’s own inline size is below 320 pixels; the query is a container query, not a viewport query. |
63
63
  | `necessity` | `'mark' \| 'optional' \| 'words' \| 'none'` | mark | Field | How necessity is written: an asterisk on a required field, (optional) on a field a reader may skip, both words, or nothing, for a form that says once that every field is required. |
64
+ | `width` | `'short' \| 'medium' \| 'full'` | full | Field | The longest the control stands, as a cue to the length of its answer: short (--slotted-field-width-short, 6rem) for an integer of up to four digits, medium (--slotted-field-width-medium, 15rem) for an amount, a code or a short word, full for free text, a name or a picker of records. The control still shrinks below the bound in a narrower field. |
64
65
  | `messages` | `Partial<FieldMessages>` | — | Field | Words that replace the active language’s, key by key: the necessity words (optional, required) and the help button’s name (help). |
65
66
  | `required` | `boolean` | — | Field | Unset rather than false. Writes aria-required on the control, never the native required, which would turn on browser constraint validation and change how the form submits. |
66
67
  | `invalid` | `boolean` | — | Field, FieldCounter | On Field: unset rather than false; writes aria-invalid on the control and data-invalid on the field, and leaves the label’s colour unchanged. On FieldCounter: the count has passed its limit, which can happen before validation runs, so it is the counter’s own state and defaults to false. |
@@ -96,6 +97,7 @@ export default function FieldBasic() {
96
97
  | `size` | `sm`, `md`, `lg` | `md` |
97
98
  | `labelPlacement` | `top`, `side` | `top` |
98
99
  | `necessity` | `mark`, `optional`, `words`, `none` | `mark` |
100
+ | `width` | `full`, `medium`, `short` | `full` |
99
101
 
100
102
  ## Rules
101
103
 
@@ -112,7 +114,7 @@ export default function FieldBasic() {
112
114
 
113
115
  ## Tokens
114
116
 
115
- `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-field-action-color`, `--slotted-field-action-color-active`, `--slotted-field-action-color-hover`, `--slotted-field-action-radius`, `--slotted-field-column-gap`, `--slotted-field-counter-color`, `--slotted-field-counter-invalid-color`, `--slotted-field-font-family`, `--slotted-field-header-gap`, `--slotted-field-help-color`, `--slotted-field-help-radius`, `--slotted-field-help-surface-active`, `--slotted-field-help-surface-hover`, `--slotted-field-icon-size-min`, `--slotted-field-label-color`, `--slotted-field-label-font-weight`, `--slotted-field-label-inline-size`, `--slotted-field-line-height`, `--slotted-field-mark-color`, `--slotted-field-mark-gap`, `--slotted-field-mark-text-color`, `--slotted-field-row-gap`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
117
+ `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-radius`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-field-action-color`, `--slotted-field-action-color-active`, `--slotted-field-action-color-hover`, `--slotted-field-action-radius`, `--slotted-field-column-gap`, `--slotted-field-counter-color`, `--slotted-field-counter-invalid-color`, `--slotted-field-font-family`, `--slotted-field-header-gap`, `--slotted-field-help-color`, `--slotted-field-help-radius`, `--slotted-field-help-surface-active`, `--slotted-field-help-surface-hover`, `--slotted-field-icon-size-min`, `--slotted-field-label-color`, `--slotted-field-label-font-weight`, `--slotted-field-label-inline-size`, `--slotted-field-line-height`, `--slotted-field-mark-color`, `--slotted-field-mark-gap`, `--slotted-field-mark-text-color`, `--slotted-field-row-gap`, `--slotted-field-width-medium`, `--slotted-field-width-short`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-line-height-sm`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-text`, `--slotted-tone-danger-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
116
118
 
117
119
  ## Examples
118
120
 
@@ -60,14 +60,15 @@
60
60
  "summary-title",
61
61
  "summary-list",
62
62
  "summary-item",
63
- "actions"
63
+ "actions",
64
+ "aside"
64
65
  ]
65
66
  }
66
67
  },
67
68
  "docs": {
68
69
  "form": {
69
70
  "imports": {
70
- "source": "import { Form, FormActions, FormDefaultsProvider, FormSummary, useFormState } from '@slotted/react';"
71
+ "source": "import { Form, FormActions, FormAside, FormDefaultsProvider, FormSummary, useFormState } from '@slotted/react';"
71
72
  },
72
73
  "anatomy": [
73
74
  {
@@ -105,6 +106,12 @@
105
106
  "element": "div",
106
107
  "required": false,
107
108
  "purpose": "The row a form’s actions stand in, aligned to the reading end. Below 360 container pixels it becomes a column of full-width actions with the primary one first — a reader’s thumb is at the bottom of a phone and their eye at the end of a row. It carries data-ui=\"form\" beside its data-part, so a nested family’s actions — a section’s — keep their own row."
109
+ },
110
+ {
111
+ "part": "aside",
112
+ "element": "div",
113
+ "required": false,
114
+ "purpose": "What the form says about the whole record — a live preview, a summary in words, a help panel. From a form 75rem wide it stands beside the column of fields, --slotted-form-aside-size (20rem) wide at the end, and sticks under --slotted-page-sticky-top while the fields scroll; below that it follows in source order, so write it after the last field. With or without it, the fields, the summary and the actions stand at most --slotted-form-measure (40rem) wide."
108
115
  }
109
116
  ],
110
117
  "api": [
@@ -277,8 +284,11 @@
277
284
  "--slotted-font-family-heading",
278
285
  "--slotted-font-family-sans",
279
286
  "--slotted-font-weight-semibold",
287
+ "--slotted-form-aside-size",
280
288
  "--slotted-form-color",
281
289
  "--slotted-form-field-gap",
290
+ "--slotted-form-measure",
291
+ "--slotted-form-section-gap",
282
292
  "--slotted-form-summary-background",
283
293
  "--slotted-form-summary-border-color",
284
294
  "--slotted-form-summary-color",
@@ -294,6 +304,7 @@
294
304
  "--slotted-space-5",
295
305
  "--slotted-space-6",
296
306
  "--slotted-space-8",
307
+ "--slotted-space-9",
297
308
  "--slotted-text",
298
309
  "--slotted-tone-danger-border",
299
310
  "--slotted-tone-danger-surface",
@@ -303,7 +314,7 @@
303
314
  {
304
315
  "id": "playground",
305
316
  "title": "Playground",
306
- "note": "A form of two fields with the family’s whole lifecycle on it. Submit it empty: the platform’s own messages appear in the summary, focus moves there, and each link jumps to the field it names. Two fields written one after the other inside the form stand apart by --slotted-form-field-gap (space-6 by default); a layout the page draws itself — a Grid, a Stack — keeps its own gap.",
317
+ "note": "A form of two fields with the family’s whole lifecycle on it. Submit it empty: the platform’s own messages appear in the summary, focus moves there, and each link jumps to the field it names. Two fields written one after the other inside the form stand apart by --slotted-form-field-gap (space-6 by default), and two field groups by --slotted-form-section-gap (space-9 by default); a layout the page draws itself — a Grid, a Stack — keeps its own gap.",
307
318
  "language": "tsx",
308
319
  "source": "<Form onSubmit={(values) => save(values)}>\n <Field>\n <FieldLabel>Nome completo</FieldLabel>\n <TextField name=\"nome\" required />\n </Field>\n <FormActions>\n <Button type=\"submit\">Salvar</Button>\n </FormActions>\n</Form>;\n",
309
320
  "verdict": "excerpt"
package/dist/docs/form.md CHANGED
@@ -6,7 +6,7 @@
6
6
  ## Import
7
7
 
8
8
  ```tsx
9
- import { Form, FormActions, FormDefaultsProvider, FormSummary, useFormState } from '@slotted/react';
9
+ import { Form, FormActions, FormAside, FormDefaultsProvider, FormSummary, useFormState } from '@slotted/react';
10
10
  ```
11
11
 
12
12
  ## Minimal example
@@ -35,6 +35,7 @@ Excerpt — not a complete module
35
35
  | `summary-list` | ul | no |
36
36
  | `summary-item` | a[href], or span | no |
37
37
  | `actions` | div | no |
38
+ | `aside` | div | no |
38
39
 
39
40
  ## Props
40
41
 
@@ -87,7 +88,7 @@ Excerpt — not a complete module
87
88
 
88
89
  ## Tokens
89
90
 
90
- `--slotted-border-width-thick`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-weight-semibold`, `--slotted-form-color`, `--slotted-form-field-gap`, `--slotted-form-summary-background`, `--slotted-form-summary-border-color`, `--slotted-form-summary-color`, `--slotted-form-summary-radius`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-md`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`
91
+ `--slotted-border-width-thick`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-weight-semibold`, `--slotted-form-aside-size`, `--slotted-form-color`, `--slotted-form-field-gap`, `--slotted-form-measure`, `--slotted-form-section-gap`, `--slotted-form-summary-background`, `--slotted-form-summary-border-color`, `--slotted-form-summary-color`, `--slotted-form-summary-radius`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-radius-md`, `--slotted-radius-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-6`, `--slotted-space-8`, `--slotted-space-9`, `--slotted-text`, `--slotted-tone-danger-border`, `--slotted-tone-danger-surface`, `--slotted-tone-danger-text`
91
92
 
92
93
  ## Examples
93
94