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

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 (178) 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-Dh-oaGY7.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/field.json +16 -1
  38. package/dist/docs/field.md +3 -1
  39. package/dist/docs/form.json +14 -3
  40. package/dist/docs/form.md +3 -2
  41. package/dist/docs/guidelines/forms.md +89 -1
  42. package/dist/docs/guidelines/index.md +7 -0
  43. package/dist/docs/menu.json +2 -2
  44. package/dist/docs/menu.md +1 -1
  45. package/dist/{entity-picker-DB1HeuvJ.js → entity-picker-BFoKN50H.js} +2 -2
  46. package/dist/entity-picker.js +1 -1
  47. package/dist/{event-calendar-CEIyV-fW.js → event-calendar-BaPllnNk.js} +3 -3
  48. package/dist/event-calendar.js +1 -1
  49. package/dist/{field-CnSMUZw6.js → field-CSSHwGq_.js} +106 -105
  50. package/dist/{field-group-RACkEXPp.js → field-group-DeBTueJW.js} +1 -1
  51. package/dist/field-group.js +1 -1
  52. package/dist/field.js +1 -1
  53. package/dist/{filter-bar-CzuAJsSf.js → filter-bar-CPBr_n2c.js} +9 -9
  54. package/dist/filter-bar.js +1 -1
  55. package/dist/{form-DEcJ7tHf.js → form-Im9lGi45.js} +13 -3
  56. package/dist/form.js +2 -2
  57. package/dist/{import-export-center-tbHmRTGb.js → import-export-center-CzyIlQB_.js} +1 -1
  58. package/dist/import-export-center.js +1 -1
  59. package/dist/index.js +82 -82
  60. package/dist/{listbox-DvwUa0yH.js → listbox-B9cBuitS.js} +1 -1
  61. package/dist/listbox.js +1 -1
  62. package/dist/{markdown-Bw6L0Ifo.js → markdown-DX-mBYVT.js} +1 -1
  63. package/dist/markdown.js +1 -1
  64. package/dist/menu-parts-7F8syoFE.js +815 -0
  65. package/dist/menu.js +1 -1
  66. package/dist/{menubar-hazvXRYd.js → menubar-DzVGFn_I.js} +1 -1
  67. package/dist/menubar.js +1 -1
  68. package/dist/{multi-select-C1GNk4e0.js → multi-select-DnOAXeuF.js} +1 -1
  69. package/dist/multi-select.js +1 -1
  70. package/dist/{number-field-BPYe9kLB.js → number-field-C20-8yda.js} +1 -1
  71. package/dist/number-field.js +1 -1
  72. package/dist/{otp-input-CYtF30Q-.js → otp-input-YI-Emc5k.js} +1 -1
  73. package/dist/otp-input.js +1 -1
  74. package/dist/{prompt-composer-C57BzYrn.js → prompt-composer-DsnPcKa4.js} +1 -1
  75. package/dist/prompt-composer.js +1 -1
  76. package/dist/{radio-group-CLX8D2Ew.js → radio-group-DA8_LbEz.js} +2 -2
  77. package/dist/radio-group.js +1 -1
  78. package/dist/{rating-BB2k-Fay.js → rating-DSSqi85N.js} +1 -1
  79. package/dist/rating.js +1 -1
  80. package/dist/{saved-views-B54F_Bk4.js → saved-views-CsVRZTwK.js} +3 -3
  81. package/dist/saved-views.js +1 -1
  82. package/dist/{segmented-control-B1U-s58C.js → segmented-control-Dae5wU9X.js} +2 -2
  83. package/dist/segmented-control.js +1 -1
  84. package/dist/{select-OUGNxyS5.js → select-BTncjDuM.js} +38 -38
  85. package/dist/select.js +1 -1
  86. package/dist/{slider-Bp1QjJKu.js → slider-DNRphJot.js} +1 -1
  87. package/dist/slider.js +1 -1
  88. package/dist/{split-button-Dg67gBMP.js → split-button-DA1wcDJB.js} +1 -1
  89. package/dist/split-button.js +1 -1
  90. package/dist/styles/cascader.css +1 -1
  91. package/dist/styles/checkbox-group.css +1 -1
  92. package/dist/styles/checkbox.css +1 -1
  93. package/dist/styles/color-picker.css +1 -1
  94. package/dist/styles/column-manager.css +1 -1
  95. package/dist/styles/combobox.css +1 -1
  96. package/dist/styles/currency-field.css +1 -1
  97. package/dist/styles/data-grid.css +1 -1
  98. package/dist/styles/data-list.css +1 -1
  99. package/dist/styles/date-field.css +1 -1
  100. package/dist/styles/date-picker.css +1 -1
  101. package/dist/styles/date-range-picker.css +1 -1
  102. package/dist/styles/datetime-field.css +1 -1
  103. package/dist/styles/datetime-picker.css +1 -1
  104. package/dist/styles/datetime-range-picker.css +1 -1
  105. package/dist/styles/entity-picker.css +1 -1
  106. package/dist/styles/event-calendar.css +1 -1
  107. package/dist/styles/field-group.css +1 -1
  108. package/dist/styles/field.css +1 -1
  109. package/dist/styles/filter-bar.css +1 -1
  110. package/dist/styles/form.css +1 -1
  111. package/dist/styles/import-export-center.css +1 -1
  112. package/dist/styles/index.css +2 -2
  113. package/dist/styles/listbox.css +1 -1
  114. package/dist/styles/markdown.css +1 -1
  115. package/dist/styles/multi-select.css +1 -1
  116. package/dist/styles/number-field.css +1 -1
  117. package/dist/styles/otp-input.css +1 -1
  118. package/dist/styles/prompt-composer.css +1 -1
  119. package/dist/styles/radio-group.css +1 -1
  120. package/dist/styles/rating.css +1 -1
  121. package/dist/styles/saved-views.css +1 -1
  122. package/dist/styles/segmented-control.css +1 -1
  123. package/dist/styles/select.css +1 -1
  124. package/dist/styles/slider.css +1 -1
  125. package/dist/styles/switch.css +1 -1
  126. package/dist/styles/table.css +1 -1
  127. package/dist/styles/tags-input.css +1 -1
  128. package/dist/styles/text-field.css +1 -1
  129. package/dist/styles/textarea.css +1 -1
  130. package/dist/styles/time-field.css +1 -1
  131. package/dist/styles/time-picker.css +1 -1
  132. package/dist/styles/time-range-picker.css +1 -1
  133. package/dist/styles/toggle-group.css +1 -1
  134. package/dist/styles/transfer.css +1 -1
  135. package/dist/styles/upload.css +1 -1
  136. package/dist/styles/wizard.css +2 -2
  137. package/dist/styles.css +1 -1
  138. package/dist/{switch-DmLzDbTb.js → switch-gR_OvGG8.js} +1 -1
  139. package/dist/switch.js +1 -1
  140. package/dist/{table-Cz9YpgLT.js → table-Boy-0cjy.js} +12 -12
  141. package/dist/table.js +1 -1
  142. package/dist/{tags-input-CAmXKSeZ.js → tags-input-DEhtpizX.js} +1 -1
  143. package/dist/tags-input.js +1 -1
  144. package/dist/{text-field-CHYoral_.js → text-field-RGXN7zNu.js} +1 -1
  145. package/dist/text-field.js +1 -1
  146. package/dist/{textarea-47JGOZKv.js → textarea-AhpUmnMk.js} +1 -1
  147. package/dist/textarea.js +1 -1
  148. package/dist/{time-field-D1-rNBsB.js → time-field-xkxX8JF6.js} +1 -1
  149. package/dist/time-field.js +1 -1
  150. package/dist/{time-picker-mwCULYh7.js → time-picker-Da_UhP9X.js} +2 -2
  151. package/dist/time-picker.js +1 -1
  152. package/dist/{time-range-picker-BKgsEHmd.js → time-range-picker-CfVzD53N.js} +2 -2
  153. package/dist/time-range-picker.js +1 -1
  154. package/dist/{toggle-group-Bnig_MWl.js → toggle-group-DoxPLYJ3.js} +1 -1
  155. package/dist/toggle-group.js +1 -1
  156. package/dist/{toolbar-EdmEn_ph.js → toolbar-CtSZ88HI.js} +1 -1
  157. package/dist/toolbar.js +1 -1
  158. package/dist/{transfer-CEHIa2XD.js → transfer-BMRyopEw.js} +5 -5
  159. package/dist/transfer.js +1 -1
  160. package/dist/types/field/field.d.ts +1 -1
  161. package/dist/types/field/field.d.ts.map +1 -1
  162. package/dist/types/field/field.types.d.ts +10 -0
  163. package/dist/types/field/field.types.d.ts.map +1 -1
  164. package/dist/types/field/index.d.ts +1 -1
  165. package/dist/types/field/index.d.ts.map +1 -1
  166. package/dist/types/form/form-parts.d.ts +7 -1
  167. package/dist/types/form/form-parts.d.ts.map +1 -1
  168. package/dist/types/form/form.types.d.ts +3 -0
  169. package/dist/types/form/form.types.d.ts.map +1 -1
  170. package/dist/types/form/index.d.ts +2 -2
  171. package/dist/types/form/index.d.ts.map +1 -1
  172. package/dist/types/menu/menu-items.d.ts.map +1 -1
  173. package/dist/{upload-S3d3tUt-.js → upload-BqVBpYaZ.js} +1 -1
  174. package/dist/upload.js +1 -1
  175. package/dist/{wizard-gZyH8HIo.js → wizard-CpYwQGQ-.js} +1 -1
  176. package/dist/wizard.js +1 -1
  177. package/package.json +6 -6
  178. 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-BTncjDuM.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-Dh-oaGY7.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 };
@@ -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
 
@@ -18,8 +18,26 @@ triggers:
18
18
  read-only,
19
19
  permission,
20
20
  conflict,
21
+ layout,
22
+ section,
23
+ width,
24
+ ]
25
+ families:
26
+ [
27
+ form,
28
+ field,
29
+ field-group,
30
+ text-field,
31
+ number-field,
32
+ select,
33
+ currency-field,
34
+ checkbox,
35
+ radio-group,
36
+ segmented-control,
37
+ section,
38
+ grid,
39
+ page-header,
21
40
  ]
22
- families: [form, field, text-field, select, currency-field, checkbox, section, grid, page-header]
23
41
  ---
24
42
 
25
43
  # Forms
@@ -200,3 +218,73 @@ Why: A form whose fields touch reads as one control, and a spacing written field
200
218
  Do: Write one `field` after another inside the `form`; set `--slotted-form-field-gap` on the theme to change the step for every form.
201
219
  Don't: Write a margin or a spacer element between two fields, or wrap each field in an element of the page's own that breaks the run of fields the form spaces.
202
220
  Check: Two consecutive fields of a form stand apart by the form's step, and no field or wrapper between them carries its own margin.
221
+
222
+ ### FM-18 · One column at a bounded measure
223
+
224
+ Level: SHOULD
225
+ Applies to: every form a page draws, on any page width
226
+ Rule: The fields of a form stand in one column no wider than `--slotted-form-measure` (40rem); a field never spans the page's whole measure, and the page's own width does not widen the column.
227
+ Why: A reader goes down one column without losing their place, and a field as wide as an 80rem page puts the label and the end of the answer a head turn apart (Baymard, "Avoid Multi-Column Forms"; CXL, "Form Field Usability").
228
+ Do: Write the fields as direct children of `form`, which holds them at the measure; let the page keep its own width for the header and the footer.
229
+ Don't: Set the page to `measure` to narrow the form, widen a field past the measure with a style of the page's own, or wrap the fields in a grid that fills the page.
230
+ Check: In a page 80rem wide, no control of the form is wider than 40rem.
231
+
232
+ ### FM-19 · Two fields share a row only when they are one answer
233
+
234
+ Level: SHOULD
235
+ Applies to: a row of a form that holds more than one field
236
+ Rule: Two fields stand side by side only when together they answer one question — a start and an end, a frequency and its interval, an amount and its unit — in a `field-group` whose `orientation` is `horizontal`; unrelated fields never share a row to fill width.
237
+ Why: Two unrelated fields side by side make the reading order zig-zag, and a reader skips the field on the right (Baymard, "Avoid Multi-Column Forms").
238
+ Do: Write the pair in one horizontal `field-group` whose legend names the answer they make together; keep every other field on a row of its own.
239
+ Don't: Write a two-column `grid` of fields to fill the width, or pair a name with a date because both are short.
240
+ Check: Every row with two or more fields is one `field-group`, and its legend names one answer the fields make together.
241
+
242
+ ### FM-20 · A field's width says what it expects
243
+
244
+ Level: SHOULD
245
+ Applies to: every field whose answer has a known length
246
+ Rule: A field's `width` follows its expected answer: `short` for an integer of up to four digits, `medium` for an amount, a code or a choice among short words, `full` (the default) for free text, a name or a picker of records.
247
+ Why: The width of a control is a cue to the length of its answer, and a two-digit field as wide as a description reads as a request for a sentence (Baymard, "Form Field Usability: Matching User Expectations").
248
+ Do: Set `width` to `short` on a day of the month or an interval, and to `medium` on an amount or a currency; change `--slotted-field-width-short` and `--slotted-field-width-medium` on the theme to change the steps for every form.
249
+ Don't: Write a class or a style that sizes one field, or leave a numeric field of two digits at full width.
250
+ Check: No field whose answer is an integer of up to four digits renders a control wider than `--slotted-field-width-short`.
251
+
252
+ ### FM-21 · Sections group a topic
253
+
254
+ Level: SHOULD
255
+ Applies to: a form with more than six fields, or with two or more topics
256
+ Rule: The fields are split by topic into `field-group`s, each with a legend that names the topic; consecutive groups stand apart by `--slotted-form-section-gap`, a step larger than the gap between two fields.
257
+ Why: A long form whose fields all stand at one distance shows no structure, and a reader cannot tell where one topic ends.
258
+ Do: Write each topic as a `field-group` with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
259
+ Don't: Write a margin, a heading or a separator of the page's own between two groups, or hold seven fields in one run with no group.
260
+ Check: A form with more than six fields holds at least two `field-group`s, and two consecutive groups stand further apart than two fields of one group.
261
+
262
+ ### FM-22 · Every set of choices is a question
263
+
264
+ Level: MUST
265
+ Applies to: a `segmented-control`, a `radio-group` or a set of checkboxes in a form
266
+ Rule: A set of choices is a `field-group` whose legend asks the question the choices answer.
267
+ Why: A set of options with no question above it is announced as a list of words, and a reader who sees it out of order cannot tell what is being chosen.
268
+ Do: Write the legend as the question — "How often does it run?" — and the options as its answers.
269
+ Don't: Leave a segmented control or a radio set with no legend, or put the question in a placeholder or a description under the options.
270
+ Check: Every segmented control, radio group and checkbox set of the form has a `field-group` legend as its accessible name.
271
+
272
+ ### FM-23 · Necessity is said once, the same way
273
+
274
+ Level: SHOULD
275
+ Applies to: every application whose forms hold required and optional fields
276
+ Rule: One `necessity` holds for the whole application, set once through the field defaults provider; `optional` is preferred, which marks the fields a reader may skip and says nothing on the rest.
277
+ Why: A form that marks some fields with an asterisk and others with a word asks the reader to learn two conventions, and in a form where most fields are required the asterisk on every one says nothing (Adam Silver, "Don't mark required fields with an asterisk").
278
+ Do: Set `necessity` to `optional` on the field defaults provider at the application's root.
279
+ Don't: Set `necessity` field by field, or mix a mark and a word in one form.
280
+ Check: No field of the application sets `necessity` on itself, and every form renders one convention.
281
+
282
+ ### FM-24 · Help sits where its question is
283
+
284
+ Level: SHOULD
285
+ Applies to: every text that helps a reader answer a form
286
+ Rule: A format or a consequence of one answer is a one-line `description` under its control; the definition of a term is the field's `help` beside the label; what the whole record will do is the form's `aside`, beside the fields on a wide form and after them on a narrow one.
287
+ Why: Help placed away from its question is read after the answer is given, or not at all, and a paragraph above the form is skipped.
288
+ Do: Write the format under the field it applies to, the definition behind the help control, and the summary of the record in the aside.
289
+ Don't: Write a paragraph of help above the form, a description of more than one line, or a summary of the record in a field's description.
290
+ Check: Every help text of the form is a description, a help hint or the aside, and no description runs past one line.