@namroodinc/liquid-editorial 0.6.8 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +110 -4
  2. package/UPGRADING.md +129 -0
  3. package/dist/chunks/CollectionView-BIuOL917.cjs +2 -0
  4. package/dist/chunks/CollectionView-BIuOL917.cjs.map +1 -0
  5. package/dist/chunks/CollectionView-Cr12UFWa.js +179 -0
  6. package/dist/chunks/CollectionView-Cr12UFWa.js.map +1 -0
  7. package/dist/chunks/{ColourField-DC6cLb9h.js → ColourField-B-tjjBfA.js} +2 -2
  8. package/dist/chunks/{ColourField-DC6cLb9h.js.map → ColourField-B-tjjBfA.js.map} +1 -1
  9. package/dist/chunks/{ColourField-NnFxLEsh.cjs → ColourField-ynUP1pfN.cjs} +2 -2
  10. package/dist/chunks/{ColourField-NnFxLEsh.cjs.map → ColourField-ynUP1pfN.cjs.map} +1 -1
  11. package/dist/chunks/FormEditor-C_4JbAnS.cjs +2 -0
  12. package/dist/chunks/FormEditor-C_4JbAnS.cjs.map +1 -0
  13. package/dist/chunks/{FormEditor-BkBhcYI5.js → FormEditor-ucTbDyQt.js} +177 -161
  14. package/dist/chunks/FormEditor-ucTbDyQt.js.map +1 -0
  15. package/dist/chunks/LoadState-B7GTDlWv.js +71 -0
  16. package/dist/chunks/LoadState-B7GTDlWv.js.map +1 -0
  17. package/dist/chunks/LoadState-C7tQ6fIP.cjs +2 -0
  18. package/dist/chunks/LoadState-C7tQ6fIP.cjs.map +1 -0
  19. package/dist/chunks/NumberField-1EYJdwDY.cjs +2 -0
  20. package/dist/chunks/NumberField-1EYJdwDY.cjs.map +1 -0
  21. package/dist/chunks/NumberField-DizR4NJv.js +178 -0
  22. package/dist/chunks/NumberField-DizR4NJv.js.map +1 -0
  23. package/dist/chunks/Slider-BfvNPjRJ.cjs +2 -0
  24. package/dist/chunks/Slider-BfvNPjRJ.cjs.map +1 -0
  25. package/dist/chunks/Slider-Cab6NqhK.js +168 -0
  26. package/dist/chunks/Slider-Cab6NqhK.js.map +1 -0
  27. package/dist/chunks/Wizard-B_CPW1V6.cjs +2 -0
  28. package/dist/chunks/Wizard-B_CPW1V6.cjs.map +1 -0
  29. package/dist/chunks/Wizard-C1iR5z44.js +99 -0
  30. package/dist/chunks/Wizard-C1iR5z44.js.map +1 -0
  31. package/dist/chunks/decimal-Ca7qJExZ.cjs +2 -0
  32. package/dist/chunks/decimal-Ca7qJExZ.cjs.map +1 -0
  33. package/dist/chunks/decimal-hq_W9D3s.js +15 -0
  34. package/dist/chunks/decimal-hq_W9D3s.js.map +1 -0
  35. package/dist/components/CollectionView/empty.d.cts +15 -0
  36. package/dist/components/CollectionView/empty.d.cts.map +1 -0
  37. package/dist/components/CollectionView/empty.d.ts +15 -0
  38. package/dist/components/CollectionView/empty.d.ts.map +1 -0
  39. package/dist/components/CollectionView/filters.d.cts +6 -0
  40. package/dist/components/CollectionView/filters.d.cts.map +1 -0
  41. package/dist/components/CollectionView/filters.d.ts +6 -0
  42. package/dist/components/CollectionView/filters.d.ts.map +1 -0
  43. package/dist/components/CollectionView/index.cjs +1 -0
  44. package/dist/components/CollectionView/index.d.cts +6 -0
  45. package/dist/components/CollectionView/index.d.cts.map +1 -0
  46. package/dist/components/CollectionView/index.d.ts +6 -0
  47. package/dist/components/CollectionView/index.d.ts.map +1 -0
  48. package/dist/components/CollectionView/index.js +2 -0
  49. package/dist/components/CollectionView/style.css +70 -0
  50. package/dist/components/CollectionView/toolbar.d.cts +5 -0
  51. package/dist/components/CollectionView/toolbar.d.cts.map +1 -0
  52. package/dist/components/CollectionView/toolbar.d.ts +5 -0
  53. package/dist/components/CollectionView/toolbar.d.ts.map +1 -0
  54. package/dist/components/CollectionView/types.d.cts +40 -0
  55. package/dist/components/CollectionView/types.d.cts.map +1 -0
  56. package/dist/components/CollectionView/types.d.ts +40 -0
  57. package/dist/components/CollectionView/types.d.ts.map +1 -0
  58. package/dist/components/ColourField/index.cjs +1 -1
  59. package/dist/components/ColourField/index.js +1 -1
  60. package/dist/components/EditLayout/style.css +1 -1
  61. package/dist/components/EditSection/index.cjs +2 -0
  62. package/dist/components/EditSection/index.cjs.map +1 -0
  63. package/dist/components/EditSection/index.d.cts +9 -0
  64. package/dist/components/EditSection/index.d.cts.map +1 -0
  65. package/dist/components/EditSection/index.d.ts +9 -0
  66. package/dist/components/EditSection/index.d.ts.map +1 -0
  67. package/dist/components/EditSection/index.js +22 -0
  68. package/dist/components/EditSection/index.js.map +1 -0
  69. package/dist/components/EditSection/style.css +31 -0
  70. package/dist/components/FormEditor/README.md +49 -7
  71. package/dist/components/FormEditor/index.cjs +1 -1
  72. package/dist/components/FormEditor/index.js +1 -1
  73. package/dist/components/FormEditor/model.d.cts +5 -0
  74. package/dist/components/FormEditor/model.d.cts.map +1 -1
  75. package/dist/components/FormEditor/model.d.ts +5 -0
  76. package/dist/components/FormEditor/model.d.ts.map +1 -1
  77. package/dist/components/ImageCropper/index.cjs +1 -1
  78. package/dist/components/ImageCropper/index.js +1 -1
  79. package/dist/components/LoadState/error.d.cts +13 -0
  80. package/dist/components/LoadState/error.d.cts.map +1 -0
  81. package/dist/components/LoadState/error.d.ts +13 -0
  82. package/dist/components/LoadState/error.d.ts.map +1 -0
  83. package/dist/components/LoadState/index.cjs +1 -0
  84. package/dist/components/LoadState/index.d.cts +15 -0
  85. package/dist/components/LoadState/index.d.cts.map +1 -0
  86. package/dist/components/LoadState/index.d.ts +15 -0
  87. package/dist/components/LoadState/index.d.ts.map +1 -0
  88. package/dist/components/LoadState/index.js +1 -0
  89. package/dist/components/LoadState/types.d.cts +3 -0
  90. package/dist/components/LoadState/types.d.cts.map +1 -0
  91. package/dist/components/LoadState/types.d.ts +3 -0
  92. package/dist/components/LoadState/types.d.ts.map +1 -0
  93. package/dist/components/LoadState/useRetryAttempt.d.cts +15 -0
  94. package/dist/components/LoadState/useRetryAttempt.d.cts.map +1 -0
  95. package/dist/components/LoadState/useRetryAttempt.d.ts +15 -0
  96. package/dist/components/LoadState/useRetryAttempt.d.ts.map +1 -0
  97. package/dist/components/MetaList/index.cjs +2 -0
  98. package/dist/components/MetaList/index.cjs.map +1 -0
  99. package/dist/components/MetaList/index.d.cts +7 -0
  100. package/dist/components/MetaList/index.d.cts.map +1 -0
  101. package/dist/components/MetaList/index.d.ts +7 -0
  102. package/dist/components/MetaList/index.d.ts.map +1 -0
  103. package/dist/components/MetaList/index.js +13 -0
  104. package/dist/components/MetaList/index.js.map +1 -0
  105. package/dist/components/MetaList/style.css +19 -0
  106. package/dist/components/NumberField/index.cjs +1 -2
  107. package/dist/components/NumberField/index.d.cts +10 -3
  108. package/dist/components/NumberField/index.d.cts.map +1 -1
  109. package/dist/components/NumberField/index.d.ts +10 -3
  110. package/dist/components/NumberField/index.d.ts.map +1 -1
  111. package/dist/components/NumberField/index.js +1 -128
  112. package/dist/components/NumberField/step.d.cts +29 -0
  113. package/dist/components/NumberField/step.d.cts.map +1 -0
  114. package/dist/components/NumberField/step.d.ts +29 -0
  115. package/dist/components/NumberField/step.d.ts.map +1 -0
  116. package/dist/components/PageHeader/index.cjs +2 -0
  117. package/dist/components/PageHeader/index.cjs.map +1 -0
  118. package/dist/components/PageHeader/index.d.cts +9 -0
  119. package/dist/components/PageHeader/index.d.cts.map +1 -0
  120. package/dist/components/PageHeader/index.d.ts +9 -0
  121. package/dist/components/PageHeader/index.d.ts.map +1 -0
  122. package/dist/components/PageHeader/index.js +27 -0
  123. package/dist/components/PageHeader/index.js.map +1 -0
  124. package/dist/components/PageHeader/style.css +39 -0
  125. package/dist/components/Slider/index.cjs +1 -1
  126. package/dist/components/Slider/index.d.cts.map +1 -1
  127. package/dist/components/Slider/index.d.ts.map +1 -1
  128. package/dist/components/Slider/index.js +1 -1
  129. package/dist/components/Slider/scale.d.cts +0 -2
  130. package/dist/components/Slider/scale.d.cts.map +1 -1
  131. package/dist/components/Slider/scale.d.ts +0 -2
  132. package/dist/components/Slider/scale.d.ts.map +1 -1
  133. package/dist/components/Stepper/index.cjs +1 -1
  134. package/dist/components/Stepper/index.cjs.map +1 -1
  135. package/dist/components/Stepper/index.d.cts +8 -0
  136. package/dist/components/Stepper/index.d.cts.map +1 -1
  137. package/dist/components/Stepper/index.d.ts +8 -0
  138. package/dist/components/Stepper/index.d.ts.map +1 -1
  139. package/dist/components/Stepper/index.js +15 -14
  140. package/dist/components/Stepper/index.js.map +1 -1
  141. package/dist/components/Stepper/style.css +53 -0
  142. package/dist/components/Wizard/actions.d.cts +13 -0
  143. package/dist/components/Wizard/actions.d.cts.map +1 -0
  144. package/dist/components/Wizard/actions.d.ts +13 -0
  145. package/dist/components/Wizard/actions.d.ts.map +1 -0
  146. package/dist/components/Wizard/index.cjs +1 -0
  147. package/dist/components/Wizard/index.d.cts +7 -0
  148. package/dist/components/Wizard/index.d.cts.map +1 -0
  149. package/dist/components/Wizard/index.d.ts +7 -0
  150. package/dist/components/Wizard/index.d.ts.map +1 -0
  151. package/dist/components/Wizard/index.js +2 -0
  152. package/dist/components/Wizard/review-table.d.cts +13 -0
  153. package/dist/components/Wizard/review-table.d.cts.map +1 -0
  154. package/dist/components/Wizard/review-table.d.ts +13 -0
  155. package/dist/components/Wizard/review-table.d.ts.map +1 -0
  156. package/dist/components/Wizard/style.css +13 -0
  157. package/dist/components/Wizard/types.d.cts +35 -0
  158. package/dist/components/Wizard/types.d.cts.map +1 -0
  159. package/dist/components/Wizard/types.d.ts +35 -0
  160. package/dist/components/Wizard/types.d.ts.map +1 -0
  161. package/dist/index.cjs +1 -1
  162. package/dist/index.d.cts +13 -1
  163. package/dist/index.d.cts.map +1 -1
  164. package/dist/index.d.ts +13 -1
  165. package/dist/index.d.ts.map +1 -1
  166. package/dist/index.js +36 -30
  167. package/dist/internal/decimal.d.cts +7 -0
  168. package/dist/internal/decimal.d.cts.map +1 -0
  169. package/dist/internal/decimal.d.ts +7 -0
  170. package/dist/internal/decimal.d.ts.map +1 -0
  171. package/dist/styles.css +5 -0
  172. package/package.json +1 -1
  173. package/dist/chunks/FormEditor-B4mtAxaU.cjs +0 -2
  174. package/dist/chunks/FormEditor-B4mtAxaU.cjs.map +0 -1
  175. package/dist/chunks/FormEditor-BkBhcYI5.js.map +0 -1
  176. package/dist/chunks/Slider-k8weRl34.cjs +0 -2
  177. package/dist/chunks/Slider-k8weRl34.cjs.map +0 -1
  178. package/dist/chunks/Slider-vdMFLX-H.js +0 -174
  179. package/dist/chunks/Slider-vdMFLX-H.js.map +0 -1
  180. package/dist/components/NumberField/index.cjs.map +0 -1
  181. package/dist/components/NumberField/index.js.map +0 -1
package/README.md CHANGED
@@ -77,7 +77,18 @@ Field supplies labels and validation relationships. Button supplies action styli
77
77
 
78
78
  ## Component catalogue
79
79
 
80
- All **44 families** and **94 runtime exports** are listed below, including compound components, hooks, helpers, and compatibility aliases. Each family links to a practical guide and its source stories. Run Storybook locally for interactive examples; this README does not assume a hosted Storybook. Exported TypeScript declarations provide the detailed prop reference.
80
+ All **50 families** and **103 runtime exports** are listed below, including compound components, hooks, helpers, and compatibility aliases. Each family links to a practical guide and its source stories. Run Storybook locally for interactive examples; this README does not assume a hosted Storybook. Exported TypeScript declarations provide the detailed prop reference.
81
+
82
+ ### Collection and editing catalogue
83
+
84
+ | Family / usage | Public exports | Source examples |
85
+ | --- | --- | --- |
86
+ | [CollectionView](#collectionview) | `CollectionView`, `CollectionEmpty` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/CollectionView/CollectionView.stories.tsx) |
87
+ | [EditSection](#editsection) | `EditSection` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/EditSection/EditSection.stories.tsx) |
88
+ | [PageHeader](#pageheader) | `PageHeader` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/PageHeader/PageHeader.stories.tsx) |
89
+ | [MetaList](#metalist) | `MetaList` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/MetaList/MetaList.stories.tsx) |
90
+ | [LoadState](#loadstate) | `LoadState`, `LoadError` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/LoadState/LoadState.stories.tsx) |
91
+ | [Wizard](#wizard) | `Wizard`, `ReviewTable` | [Stories](https://github.com/namroodinc/liquid-editorial/blob/main/src/components/Wizard/Wizard.stories.tsx) |
81
92
 
82
93
  ### Actions and feedback catalogue
83
94
 
@@ -853,7 +864,7 @@ import { Field, NumberField, NumberRangeField } from "@namroodinc/liquid-editori
853
864
  </>;
854
865
  ```
855
866
 
856
- Use `value`/`onValueChange` for controlled numbers and ranges; sizes are `sm`, `md` (default), and `lg`. Steppers honor `min`, `max`, and `step`; typing stays editable. Set `hasSteppers={false}` for typing only. Name steppers after their field when several are present; `isDisabled` disables the whole widget.
867
+ Use `value`/`onValueChange` for controlled numbers and ranges; sizes are `sm`, `md` (default), and `lg`. Steppers and ArrowUp/ArrowDown honor `min`, `max`, and `step`; typing stays editable. A numeric `step` keeps stepped values on the grid `min + k × step` (from 0 without `min`), so they never fail browser step validation, and `max` stops at the last grid value inside it. An empty field counts as 0, but its first press lands on a bound at or beyond 0 (an empty `min={1}` field gives 1). With `step="any"`, steppers move by 1, or by the largest power of ten below the range when `min` and `max` are at most 1 apart, keeping the typed precision. The steppers stay out of the tab order and never take focus, so a tap does not open the soft keyboard. Set `hasSteppers={false}` to hide them. Name steppers after their field when several are present; `isDisabled` disables the whole widget.
857
868
 
858
869
  ### Slider
859
870
 
@@ -1224,7 +1235,7 @@ Radio and checkbox fields are groups, including when `options` contains one item
1224
1235
 
1225
1236
  Use `defaultValue` for an uncontrolled editor, `errors` for app-specific messages, `showAllErrors` after a submit attempt, and `isDisabled` to disable editing. Required and format errors appear after a field changes; loaded numeric, slider, range, calendar-date and colour fields validate immediately, except blank date and colour strings, which wait like other empty fields. `false` and `0` are populated values. Missing keys render controls without emitting changes; sliders show fallback positions without storing them. An unset slider or range slider prints `placeholder` or `"Not set"` (an unset range also has no fill) until a click or arrow key on a thumb stores the shown position or full range. Loaded slider values outside the scale, or reversed ranges, are drawn clamped and ordered while validation still reports them. Clearing a number, date, colour, select, radio group or single picker removes its key; empty text, rich-text documents and lists keep their shapes. Unrelated keys are preserved. Validation runs per field and is reused until that field or its value changes, so define schemas outside render or memoize them.
1226
1237
 
1227
- General forms can use select fields with `options: [{ value, label }]`, per-field `isDisabled`, and React-node hints. Optional selects lead with an empty choice, labelled with the field's `placeholder` or "None", that clears the value. Pass `options: []` while choices load; a stored value stays valid until they arrive. Text fields support `maxLength` and `readOnly`; short text also supports `inputType: "email"`, long text supports `rows`, and numeric fields support `min`, `max`, `step`, and `hasSteppers`. Steppers are named after their field, such as "Increase Width". `validateFormValues` enforces `maxLength`, numeric limits, and `picker.max`. `autoFocus` applies to text, number, select, boolean, UTC date-time, slider, and colour fields.
1238
+ General forms can use select fields with `options: [{ value, label }]`, per-field `isDisabled`, and React-node hints. Optional selects lead with an empty choice, labelled with the field's `placeholder` or "None", that clears the value. Pass `options: []` while choices load; a stored value stays valid until they arrive. Text fields support `maxLength` and `readOnly`; short text also supports `inputType: "email"`, long text supports `rows`, and numeric fields support `min`, `max`, `step`, `hasSteppers`, `decreaseLabel`, and `increaseLabel`. Number fields show NumberField's − / + buttons by default, with NumberField's stepping rules above; set `hasSteppers: false` to hide them. Steppers are named after their field, such as "Increase Width"; translate the names with `decreaseLabel` and `increaseLabel`. The default `step: "any"` accepts typed decimals while the buttons move by 1, or by 0.1 across a 0–1 range; set a numeric `step` for another increment. Number schemas need finite bounds with `min <= max` and a positive step or `"any"`. See FormEditor's **NumberSteppers** story for bounds, affixes, typing-only, translated and disabled examples. `validateFormValues` enforces `maxLength`, numeric limits, and `picker.max`. `autoFocus` applies to text, number, select, boolean, UTC date-time, slider, and colour fields.
1228
1239
 
1229
1240
  `columns` sets the most columns and defaults to one. The form drops a column whenever a field would be narrower than `minColumnWidth` (default `16rem`), measured against the form's own width, so it steps down inside drawers and modals. Use `columns="auto"` to fit as many columns as the width allows. FormEditor is not a size container, so it keeps its content width in flex rows and popovers.
1230
1241
 
@@ -1525,7 +1536,7 @@ Active links use `aria-current`; buttons use `aria-pressed`. Items support an ic
1525
1536
 
1526
1537
  ### Stepper
1527
1538
 
1528
- Progress through ordered steps. `activeStep` is a zero-based index; earlier steps appear complete. Size defaults to `"md"`, with `"sm"` available for compact bands.
1539
+ Progress through ordered steps. `activeStep` is a zero-based index; earlier steps appear complete. Size defaults to `"md"`, with `"sm"` available for compact bands. `orientation` defaults to `"horizontal"`; `"vertical"` stacks steps with each marker beside its label, and `"auto"` stacks them while the stepper is narrower than 28rem, for dialogs, drawers and sidebars. `"auto"` makes the stepper an inline-size container, so give it a definite width rather than sizing it to its content.
1529
1540
 
1530
1541
  ```tsx
1531
1542
  import { useState } from "react";
@@ -1942,3 +1953,98 @@ Validation or version-push failures stop publishing. If publication fails after
1942
1953
  ## License
1943
1954
 
1944
1955
  MIT © Namrood Inc.
1956
+
1957
+ ### CollectionView
1958
+
1959
+ `CollectionView` composes TableFrame, controlled search/filter/Mine/view controls,
1960
+ selection actions, loading feedback and pagination. Supply `title`, `count`,
1961
+ `query`, `onQueryChange`, `status`, `onRetry`, `pagination` and `children`.
1962
+ `pagination` takes Pagination's props: `page`, `pageSize`, `totalResults` and
1963
+ `onChange`, plus any of its options. Its `size`, `menuPlacement` and `isDisabled`
1964
+ override the collection's defaults (`md`, menus opening upward, enabled). Paging
1965
+ stays operable while a page loads, so focus stays on the pressed Next or Previous
1966
+ button; pass `pagination.isDisabled` to lock it. A pending selection also locks it.
1967
+ Optional `filter`, `mine`, `view`, `selection` and `actions` configure the toolbar.
1968
+ The selected count is announced from a status region present before selection.
1969
+ When Clear or a selection action leaves with focus, focus returns to the title.
1970
+ The application owns filtering, records, eligibility, selection and requests.
1971
+ Search retains its native 200-character cap; counts stay exact above 99.
1972
+ `CollectionEmpty` takes `kind="empty" | "no-match"`, a plural `noun`, initial
1973
+ `title`, optional `description`, `icon` and `action`. No-match feedback points
1974
+ back to search. Import both from the root or `components/CollectionView`.
1975
+
1976
+ ### EditSection
1977
+
1978
+ `<EditSection title="Details" actions={<Button>Configure</Button>}>…</EditSection>`
1979
+ groups editor content under a named section and h2. Several actions stay grouped
1980
+ at the header's end. The section and wrapping header use `lg` gaps. FormEditor
1981
+ supplies its own `lg` gap between fields.
1982
+
1983
+ ### PageHeader
1984
+
1985
+ `<PageHeader title={<em>Article</em>} description="Editorial workspace" actions={…} />`
1986
+ renders a wrapping native header and h1, with optional description and actions.
1987
+ Headings clear their own browser margins, so `reset.css` remains optional.
1988
+ It forwards native header attributes and a ref. Routing and back navigation stay
1989
+ with the application; the title accepts React content. Long headings wrap.
1990
+
1991
+ ### MetaList
1992
+
1993
+ `<MetaList items={[["Status", "Draft"], ["Author", <strong>Ada</strong>]]} />`
1994
+ renders read-only facts as a definition list. Terms may repeat. Row spacing stays
1995
+ compact; values wrap and align to the end. Import from the root or
1996
+ `components/MetaList`.
1997
+
1998
+ ### LoadState
1999
+
2000
+ `<LoadState status={status} error={error} onRetry={reload}>{content}</LoadState>`
2001
+ shows a skeleton, failure or ready content. A first error is a quiet note; retries
2002
+ announce progress and repeated failure politely. Keep the component mounted and
2003
+ report `loading` then `error`/`ready` during retries. Report `loading` as the retry
2004
+ starts: a retry that reports no load within a second lapses, so a later load (a
2005
+ new filter, say) shows the skeleton rather than "Trying again…". Retry retains its
2006
+ DOM node and focus while pending, ignores repeat activation, and success renders
2007
+ children.
2008
+ `LoadError` is the standalone Banner composition; its optional `retryState` is
2009
+ `"pending" | "failed"`. Import both from `components/LoadState` or the root.
2010
+ They do not fetch, cache or decide application refresh policy.
2011
+
2012
+ ### Wizard
2013
+
2014
+ `Wizard` requires `isOpen`, `title`, `steps`, `submitLabel`, `onSubmit` and
2015
+ `onClose`. Each step has `id`, `label` and React `content`, with optional
2016
+ `description`, modal `title`/`modalDescription`, `canContinue`, `onInvalid`,
2017
+ `primaryAction` and `hideSecondary`. Multiple steps use controlled `activeStep`
2018
+ and `onStepChange`; one step defaults to index 0. An index past the last step,
2019
+ such as after a conditional step is removed, shows the last step; with no steps,
2020
+ only the dialog frame and its Close button show. `isPending` guards close,
2021
+ progress and actions; `isNavigable={false}` prevents direct progress navigation.
2022
+ Second clicks of double-clicks cannot skip a step or submit a second time. Blocked
2023
+ Back/Cancel and Next/Finish buttons stay focusable with `aria-disabled`, so focus
2024
+ survives a step that cannot continue yet and a pending submission.
2025
+
2026
+ Each step's content mounts fresh when the active step changes, so steps that
2027
+ render the same component type (two FormEditors, say) never share touched,
2028
+ error or uncontrolled state. Keep values in application state above the wizard.
2029
+
2030
+ The default dialog is Modal. Supply a **stable component reference** through
2031
+ `modalComponent: ComponentType<ModalProps>` to retain application dialog hiding
2032
+ or close coordination. It stays mounted and receives `isOpen={false}` when the
2033
+ wizard closes, so it can run exit animations or close bookkeeping. Do not create
2034
+ that component inline during rendering.
2035
+ Applications own validation, persistence and drafts, including whether to confirm
2036
+ leaving. Keep step state above the wizard if closing should preserve it.
2037
+ `ReviewTable` renders `rows: { term, value, step }[]`, `onStepChange` and optional
2038
+ `isDisabled` for review/edit navigation; terms may repeat. Both export from
2039
+ `components/Wizard`.
2040
+
2041
+ Collection, editor, heading, metadata, loading and wizard components compose
2042
+ presentation; they are not FormEditor value controls and need no field adapter.
2043
+ Use `lg` (`var(--space-6)`, normally 24px) between form fields, groups and sections.
2044
+ EditLayout uses the same section gap; Wizard separates progress and step content
2045
+ with `lg` gaps. Label/hint internals, option rows, metadata, tables and button
2046
+ bars keep their compact spacing. General Grid and Stack defaults are unchanged.
2047
+
2048
+ Wizard progress uses Stepper's `orientation="auto"`, stacking vertically when its
2049
+ available width is below 28rem so step labels and descriptions stay readable in
2050
+ narrow dialogs.
package/UPGRADING.md CHANGED
@@ -2,6 +2,135 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.7.0
6
+
7
+ ### Breaking changes
8
+
9
+ - FormEditor number fields now show NumberField's − / + steppers when
10
+ `hasSteppers` is omitted (previously hidden). Queries such as
11
+ `getByRole("button")` beside a FormEditor can now match several buttons, and
12
+ narrow layouts gain two buttons per number field. Set `hasSteppers: false` to
13
+ keep a field typing-only.
14
+ - NumberField steppers (standalone, in NumberRangeField and in FormEditor) are
15
+ out of the tab order (`tabindex="-1"`) and no longer move focus to the input
16
+ when pressed. Keyboard users step with ArrowUp/ArrowDown in the input; tests
17
+ that tabbed to "Decrease …"/"Increase …" or expected the input to gain focus
18
+ after a press need updating.
19
+ - NumberField stepping follows new rules (below): numeric steps snap to the
20
+ `min`-based grid, an empty field's first press lands on a bound at or beyond 0,
21
+ and `step="any"` moves by a power of ten below narrow ranges. Tests that
22
+ asserted the previous off-grid or `min + step` results need updating.
23
+ - FormEditor and `validateFormValues` now throw for number fields with non-finite
24
+ bounds, `min > max`, a `step` that is neither positive nor `"any"`, or empty
25
+ `decreaseLabel`/`increaseLabel`.
26
+
27
+ ### FormEditor number steppers by default, with grid-aligned stepping
28
+
29
+ FormEditor number fields show NumberField's shared − / + buttons unless
30
+ `hasSteppers: false`. The adapter passes `hasSteppers` through, so NumberField
31
+ owns the default. New `decreaseLabel` and `increaseLabel` schema options replace
32
+ the default "Decrease {label}"/"Increase {label}" names for translation.
33
+
34
+ NumberField's steppers and ArrowUp/ArrowDown share one set of rules:
35
+
36
+ - A numeric `step` keeps stepped values on the grid `min + k × step` (from 0
37
+ without `min`). Off-grid values move to the neighbouring grid value, and `max`
38
+ stops at the last grid value inside it, so stepping never produces a value the
39
+ browser rejects as a step mismatch.
40
+ - An empty field counts as 0, but its first press lands on a bound at or beyond
41
+ 0: an empty `min: 1` field gives 1, and `min: 0` gives 0.
42
+ - `step: "any"` moves by 1, or by the largest power of ten below the range when
43
+ `min` and `max` are at most 1 apart (0.1 for 0–1). Results keep the operands'
44
+ precision instead of rounding to 10 places.
45
+ - Out-of-range values only step back towards their range; a direction that
46
+ cannot move disables its stepper.
47
+ - Steppers stay out of the tab order and keep focus where it is, so a tap does
48
+ not open the soft keyboard and a second Enter cannot submit a form.
49
+
50
+ Adoption: set `hasSteppers: false` on fields that should stay typing-only. Add
51
+ `decreaseLabel`/`increaseLabel` to number fields in translated forms. Fix any
52
+ schema that now throws. If your form wraps FormEditor in a `<form>` and relies
53
+ on `validateFormValues`, add `noValidate` (as the FormEditor guide's example now
54
+ does): a typed number off a numeric step's grid still fails the browser's own
55
+ constraint validation. Update tests and selectors listed above.
56
+
57
+ Compatibility: explicit `hasSteppers` values keep their meaning. Value contracts
58
+ are unchanged. The `onKeyDown` you pass to NumberField runs first; calling
59
+ `preventDefault()` there for an arrow key skips NumberField's stepping, and
60
+ read-only inputs do not step. No dependency or manual version change.
61
+
62
+ Verification: run `npm run validate` and consuming lint/typechecks/tests/build.
63
+ Review FormEditor's NumberSteppers story in all four themes at desktop, 390px and
64
+ 320px widths. Check the default buttons, the empty-minimum, ratio and translated
65
+ fields, the opt-out, min/max stops on the step grid, ArrowUp/ArrowDown, that
66
+ Tab moves between inputs without stopping on steppers, that pressing a stepper
67
+ leaves focus where it was, disabled controls, affixes and clearing.
68
+
69
+ ## 0.6.9
70
+
71
+ ### Shared collection, editor, loading and wizard presentation
72
+
73
+ Adds CollectionView/CollectionEmpty, EditSection, PageHeader, MetaList,
74
+ LoadState/LoadError and Wizard/ReviewTable, with props/types at the root and
75
+ family imports. Toolbar/filter helpers, retry tracking and wizard actions stay
76
+ private. Composed families can omit a stylesheet when they own no CSS.
77
+
78
+ Stepper gains `orientation: "horizontal" | "vertical" | "auto"` (default
79
+ `horizontal`, exported as `StepperOrientation`). `vertical` stacks steps with
80
+ each marker beside its label; `auto` makes the stepper an inline-size container
81
+ and stacks below 28rem. Wizard progress uses `auto`, so labels and descriptions
82
+ stay readable in narrow dialogs.
83
+
84
+ Behavior to rely on:
85
+
86
+ - CollectionView passes the application's `pagination` options through, so its
87
+ `size`, `menuPlacement` and `isDisabled` win. Paging stays operable while a page
88
+ loads, keeping focus on the pressed button; a pending selection still locks it.
89
+ The selected count is announced from a status region mounted before selection.
90
+ When Clear or a selection action unmounts with focus, focus moves to the title.
91
+ - LoadState lets a retry claim only a load reported within a second; later loads
92
+ show the skeleton instead of the old failure with "Trying again…".
93
+ - Wizard clamps `activeStep` to the last step and shows only its dialog frame
94
+ without steps. Each step's content mounts fresh when the step changes. Blocked
95
+ footer buttons stay focusable with `aria-disabled`. A `modalComponent` stays
96
+ mounted and receives `isOpen={false}` on close.
97
+ - EditSection groups several actions at the header's end. PageHeader and
98
+ EditSection headings clear their own browser margins without `reset.css`.
99
+ - MetaList and ReviewTable accept repeated terms.
100
+
101
+ Adoption: replace equivalent application presentation and CSS with these
102
+ components; keep records, search/filter calculations, routing, permissions,
103
+ requests and workflow state in the application. Import the aggregate stylesheet.
104
+ PageHeader accepts React title content, description, actions and native header
105
+ attributes; it has no router-specific back option. Use required Wizard `isOpen`
106
+ and a stable optional `modalComponent` when bridging application Modal behavior;
107
+ an application modal must render nothing (or its exit state) when `isOpen` is
108
+ false. Keep wizard step values in application state above the wizard. Report
109
+ `loading` as a LoadState retry starts. Pass `pagination.isDisabled` to lock paging
110
+ during application work. Use Stepper `orientation="auto"` or `"vertical"` for
111
+ narrow progress instead of overriding `.ds-stepper__*` internals.
112
+ Layout/feedback components need no FormEditor adapter.
113
+
114
+ EditSection's body/header, EditLayout's section gap and Wizard layout use `lg`
115
+ (`var(--space-6)`, normally 24px). FormEditor's field gap remains `lg`. Audit
116
+ application form-group gaps and remove overlapping margins; preserve compact
117
+ control/option/metadata/toolbar spacing. Grid/Stack defaults are unchanged.
118
+
119
+ Compatibility: additive exports and an additive Stepper prop; no removed APIs,
120
+ dependencies or value changes. Existing EditLayout content now has a 24px
121
+ section gap (previously 32px). Steppers without `orientation` render as before.
122
+ Wizard footer buttons report blocked state with `aria-disabled` rather than the
123
+ native `disabled` attribute; update tests that assert `toBeDisabled()` on them.
124
+
125
+ Verification: run `npm run validate`, consuming lint/typechecks/tests/build,
126
+ check controlled collection selection/count/filter behavior, paging by keyboard
127
+ while pages load, focus after Clear and bulk actions, quiet first failure,
128
+ focused pending Retry and polite repeated failures, wizard validation/pending and
129
+ double-click guards, focus on Next/Finish across blocked steps, per-step form
130
+ state, plus application modal hiding/drag-close integration including its close
131
+ transition. Review all themes at 1440px, 390px and 320px, including long
132
+ headings, narrow wizard progress and forms/dialogs.
133
+
5
134
  ## 0.6.8
6
135
 
7
136
  ### Supporting hints beside field labels
@@ -0,0 +1,2 @@
1
+ const e=require("../components/Button/index.cjs"),t=require("./portalScope-BVA1-Ypu.cjs"),n=require("../components/ButtonGroup/index.cjs"),r=require("../components/Badge/index.cjs"),i=require("../components/SearchField/index.cjs"),a=require("../components/Select/index.cjs"),o=require("../components/Table/index.cjs"),s=require("../components/Pagination/index.cjs"),c=require("./LoadState-C7tQ6fIP.cjs");let l=require("react"),u=require("react/jsx-runtime");function d({title:t,query:r,onQueryChange:o,filter:s,mine:c,view:l,actions:d}){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.SearchField,{size:`sm`,maxLength:200,placeholder:`Search ${t.toLowerCase()}`,"aria-label":`Search ${t.toLowerCase()}`,value:r,onChange:e=>o(e.target.value),onClear:()=>o(``)}),s&&(0,u.jsx)(`div`,{className:`ds-collection-view__filter`,children:(0,u.jsx)(a.Select,{size:`sm`,"aria-label":s.label,value:s.value,options:s.options,onValueChange:s.onChange})}),c&&(0,u.jsx)(e.Button,{size:`sm`,iconStart:`user`,variant:c.isPressed?`active`:`neutral`,"aria-pressed":c.isPressed,onClick:()=>c.onChange(!c.isPressed),children:c.label}),l&&(0,u.jsxs)(n.ButtonGroup,{isAttached:!1,"aria-label":`${t} view`,children:[(0,u.jsx)(e.Button,{size:`sm`,isIconOnly:!0,iconStart:`layout-grid`,"aria-label":`Grid view`,"aria-pressed":l.value===`grid`,variant:l.value===`grid`?`active`:`neutral`,onClick:()=>l.onChange(`grid`)}),(0,u.jsx)(e.Button,{size:`sm`,isIconOnly:!0,iconStart:`list`,"aria-label":`Table view`,"aria-pressed":l.value===`table`,variant:l.value===`table`?`active`:`neutral`,onClick:()=>l.onChange(`table`)})]}),d]})}function f({title:n,count:i,query:a,onQueryChange:s,filter:c,mine:f,view:p,selection:m,actions:h}){let g=!!m?.count,_=(0,l.useRef)(null),v=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=v.current;!g&&e&&!e.isConnected&&t.i(document.activeElement)&&(v.current=null,_.current?.focus({preventScroll:!0}))},[g]),(0,u.jsx)(o.TableToolbar,{className:`ds-collection-view__toolbar`,"data-selected":g||void 0,onFocus:e=>{v.current=e.target},onBlur:e=>{e.relatedTarget&&(v.current=null)},start:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`ds-collection-view__selected`,role:`status`,children:g&&`${m.count} selected`}),!g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{ref:_,className:`ds-table-toolbar__title`,tabIndex:-1,children:n}),(0,u.jsx)(r.Badge,{shape:`count`,appearance:`soft`,isCountExact:!0,className:`ds-collection-view__count`,children:i})]})]}),end:g?(0,u.jsxs)(u.Fragment,{children:[m.reason&&(0,u.jsx)(`span`,{className:`ds-collection-view__reason`,children:m.reason}),m.actions,(0,u.jsx)(e.Button,{size:`sm`,variant:`simple`,isDisabled:m.isPending,onClick:m.onClear,children:`Clear`})]}):(0,u.jsx)(d,{title:n,query:a,onQueryChange:s,filter:c,mine:f,view:p,actions:h})})}function p({kind:e,noun:t,icon:n,title:r,description:i,action:a}){return e===`no-match`?(0,u.jsx)(o.TableEmpty,{icon:`search`,title:`No matching ${t}`,description:`Try a different search or clear a filter.`}):(0,u.jsx)(o.TableEmpty,{icon:n,title:r,description:i,action:a})}function m({title:e,count:t,query:n,onQueryChange:r,status:i,error:a,onRetry:l,pagination:d,filter:p,mine:m,view:h,selection:g,actions:_,children:v}){return(0,u.jsxs)(o.TableFrame,{className:`ds-collection-view`,"aria-busy":i===`loading`||g?.isPending||void 0,children:[(0,u.jsx)(f,{title:e,count:t,query:n,onQueryChange:r,filter:p,mine:m,view:h,selection:g,actions:_}),(0,u.jsx)(`div`,{className:`ds-collection-view__body`,"data-feedback":i!==`ready`||void 0,children:(0,u.jsx)(c.t,{status:i,error:a,onRetry:l,children:v})}),(0,u.jsx)(`div`,{className:`ds-collection-view__footer`,children:(0,u.jsx)(s.Pagination,{size:`md`,menuPlacement:`top`,...d,isDisabled:d.isDisabled||g?.isPending})})]})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
2
+ //# sourceMappingURL=CollectionView-BIuOL917.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionView-BIuOL917.cjs","names":["_Fragment","SearchField","Select","Button","ButtonGroup","useRef","cannotHoldFocus","TableToolbar","_Fragment","Badge","Button","TableEmpty","TableFrame","LoadState","Pagination","require_components_Button_index","require_portalScope","require_components_ButtonGroup_index","require_components_Badge_index","require_components_SearchField_index","require_components_Select_index","require_components_Table_index","require_components_Pagination_index","require_LoadState","react","react_jsx_runtime","CollectionFilters","title","query","onQueryChange","event","filter","mine","view","actions","CollectionToolbar","selected","selection","titleRef","focused","previous","count","CollectionEmpty","kind","noun","CollectionView","status","pagination"],"sources":["../../src/components/CollectionView/filters.tsx","../../src/components/CollectionView/toolbar.tsx","../../src/components/CollectionView/empty.tsx","../../src/components/CollectionView/index.tsx"],"sourcesContent":["import { Button } from \"../Button\";\nimport { ButtonGroup } from \"../ButtonGroup\";\nimport { SearchField } from \"../SearchField\";\nimport { Select } from \"../Select\";\nimport type { CollectionViewProps } from \"./types\";\n\ntype FiltersProps = Pick<\n CollectionViewProps,\n \"title\" | \"query\" | \"onQueryChange\" | \"filter\" | \"mine\" | \"view\" | \"actions\"\n>;\n\n/** Search and view controls for a collection without an active selection. */\nexport function CollectionFilters({\n title,\n query,\n onQueryChange,\n filter,\n mine,\n view,\n actions,\n}: FiltersProps) {\n return (\n <>\n <SearchField\n size=\"sm\"\n maxLength={200}\n placeholder={`Search ${title.toLowerCase()}`}\n aria-label={`Search ${title.toLowerCase()}`}\n value={query}\n onChange={(event) => onQueryChange(event.target.value)}\n onClear={() => onQueryChange(\"\")}\n />\n {filter && (\n <div className=\"ds-collection-view__filter\">\n <Select\n size=\"sm\"\n aria-label={filter.label}\n value={filter.value}\n options={filter.options}\n onValueChange={filter.onChange}\n />\n </div>\n )}\n {mine && (\n <Button\n size=\"sm\"\n iconStart=\"user\"\n variant={mine.isPressed ? \"active\" : \"neutral\"}\n aria-pressed={mine.isPressed}\n onClick={() => mine.onChange(!mine.isPressed)}\n >\n {mine.label}\n </Button>\n )}\n {view && (\n <ButtonGroup\n isAttached={false}\n aria-label={`${title} view`}\n >\n <Button\n size=\"sm\"\n isIconOnly\n iconStart=\"layout-grid\"\n aria-label=\"Grid view\"\n aria-pressed={view.value === \"grid\"}\n variant={view.value === \"grid\" ? \"active\" : \"neutral\"}\n onClick={() => view.onChange(\"grid\")}\n />\n <Button\n size=\"sm\"\n isIconOnly\n iconStart=\"list\"\n aria-label=\"Table view\"\n aria-pressed={view.value === \"table\"}\n variant={view.value === \"table\" ? \"active\" : \"neutral\"}\n onClick={() => view.onChange(\"table\")}\n />\n </ButtonGroup>\n )}\n {actions}\n </>\n );\n}\n","import { useEffect, useRef } from \"react\";\nimport { Badge } from \"../Badge\";\nimport { Button } from \"../Button\";\nimport { TableToolbar } from \"../Table\";\nimport { cannotHoldFocus } from \"../../internal/dialogFocus\";\nimport type { CollectionViewProps } from \"./types\";\nimport { CollectionFilters } from \"./filters\";\ntype ToolbarProps = Pick<\n CollectionViewProps,\n | \"title\"\n | \"count\"\n | \"query\"\n | \"onQueryChange\"\n | \"filter\"\n | \"mine\"\n | \"view\"\n | \"selection\"\n | \"actions\"\n>;\nexport function CollectionToolbar({\n title,\n count,\n query,\n onQueryChange,\n filter,\n mine,\n view,\n selection,\n actions,\n}: ToolbarProps) {\n const selected = Boolean(selection?.count);\n const titleRef = useRef<HTMLSpanElement>(null);\n // The toolbar control holding focus. A blur toward the page or a removal\n // keeps it, so the selection ending can tell that it took focus away.\n const focused = useRef<Element | null>(null);\n useEffect(() => {\n const previous = focused.current;\n // Clear, or a selection action, unmounted with focus: return it to the\n // collection's title rather than leave it on the page.\n if (!selected && previous && !previous.isConnected && cannotHoldFocus(document.activeElement)) {\n focused.current = null;\n titleRef.current?.focus({ preventScroll: true });\n }\n }, [selected]);\n return (\n <TableToolbar\n className=\"ds-collection-view__toolbar\"\n data-selected={selected || undefined}\n onFocus={(event) => {\n focused.current = event.target;\n }}\n onBlur={(event) => {\n if (event.relatedTarget) {\n focused.current = null;\n }\n }}\n start={\n <>\n {/* Mounted throughout, so screen readers hear the first selection. */}\n <span\n className=\"ds-collection-view__selected\"\n role=\"status\"\n >\n {selected && `${selection!.count} selected`}\n </span>\n {!selected && (\n <>\n <span\n ref={titleRef}\n className=\"ds-table-toolbar__title\"\n tabIndex={-1}\n >\n {title}\n </span>\n <Badge\n shape=\"count\"\n appearance=\"soft\"\n isCountExact\n className=\"ds-collection-view__count\"\n >\n {count}\n </Badge>\n </>\n )}\n </>\n }\n end={\n selected ? (\n <>\n {selection!.reason && (\n <span className=\"ds-collection-view__reason\">{selection!.reason}</span>\n )}\n {selection!.actions}\n <Button\n size=\"sm\"\n variant=\"simple\"\n isDisabled={selection!.isPending}\n onClick={selection!.onClear}\n >\n Clear\n </Button>\n </>\n ) : (\n <CollectionFilters\n title={title}\n query={query}\n onQueryChange={onQueryChange}\n filter={filter}\n mine={mine}\n view={view}\n actions={actions}\n />\n )\n }\n />\n );\n}\n","import { TableEmpty, type TableEmptyProps } from \"../Table\";\nimport type { CollectionEmptyKind } from \"./types\";\n\nexport interface CollectionEmptyProps extends Pick<\n TableEmptyProps,\n \"icon\" | \"description\" | \"action\"\n> {\n kind: CollectionEmptyKind;\n /** Plural noun for the no-match title, e.g. \"entries\". */\n noun: string;\n /** Shown when the collection itself has no items. */\n title: string;\n}\n\n/**\n * What a searchable collection's frame shows instead of its table: how to\n * start an empty collection, or a pointer back to the search field.\n */\nexport function CollectionEmpty({\n kind,\n noun,\n icon,\n title,\n description,\n action,\n}: CollectionEmptyProps) {\n if (kind === \"no-match\") {\n return (\n <TableEmpty\n icon=\"search\"\n title={`No matching ${noun}`}\n description=\"Try a different search or clear a filter.\"\n />\n );\n }\n return (\n <TableEmpty\n icon={icon}\n title={title}\n description={description}\n action={action}\n />\n );\n}\n","import { Pagination } from \"../Pagination\";\nimport { TableFrame } from \"../Table\";\nimport { CollectionToolbar } from \"./toolbar\";\nimport { LoadState } from \"../LoadState\";\nimport type { CollectionViewProps } from \"./types\";\nimport \"./style.css\";\nexport type { CollectionViewProps, CollectionEmptyKind } from \"./types\";\nexport { CollectionEmpty } from \"./empty\";\nexport type { CollectionEmptyProps } from \"./empty\";\n\nexport function CollectionView({\n title,\n count,\n query,\n onQueryChange,\n status,\n error,\n onRetry,\n pagination,\n filter,\n mine,\n view,\n selection,\n actions,\n children,\n}: CollectionViewProps) {\n return (\n <TableFrame\n className=\"ds-collection-view\"\n aria-busy={status === \"loading\" || selection?.isPending || undefined}\n >\n <CollectionToolbar\n title={title}\n count={count}\n query={query}\n onQueryChange={onQueryChange}\n filter={filter}\n mine={mine}\n view={view}\n selection={selection}\n actions={actions}\n />\n <div\n className=\"ds-collection-view__body\"\n data-feedback={status !== \"ready\" || undefined}\n >\n <LoadState\n status={status}\n error={error}\n onRetry={onRetry}\n >\n {children}\n </LoadState>\n </div>\n <div className=\"ds-collection-view__footer\">\n {/* Paging stays live while a page loads: disabling the pressed Next or\n Previous button would drop its focus on every page change. */}\n <Pagination\n size=\"md\"\n menuPlacement=\"top\"\n {...pagination}\n isDisabled={pagination.isDisabled || selection?.isPending}\n />\n </div>\n </TableFrame>\n );\n}\n"],"mappings":"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"}
@@ -0,0 +1,179 @@
1
+ import { Button as e } from "../components/Button/index.js";
2
+ import { i as t } from "./portalScope-AzzPM54i.js";
3
+ import { ButtonGroup as n } from "../components/ButtonGroup/index.js";
4
+ import { Badge as r } from "../components/Badge/index.js";
5
+ import { SearchField as i } from "../components/SearchField/index.js";
6
+ import { Select as a } from "../components/Select/index.js";
7
+ import { TableEmpty as o, TableFrame as s, TableToolbar as c } from "../components/Table/index.js";
8
+ import { Pagination as l } from "../components/Pagination/index.js";
9
+ import { t as u } from "./LoadState-B7GTDlWv.js";
10
+ import { useEffect as d, useRef as f } from "react";
11
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
12
+ //#region src/components/CollectionView/filters.tsx
13
+ function g({ title: t, query: r, onQueryChange: o, filter: s, mine: c, view: l, actions: u }) {
14
+ return /* @__PURE__ */ h(p, { children: [
15
+ /* @__PURE__ */ m(i, {
16
+ size: "sm",
17
+ maxLength: 200,
18
+ placeholder: `Search ${t.toLowerCase()}`,
19
+ "aria-label": `Search ${t.toLowerCase()}`,
20
+ value: r,
21
+ onChange: (e) => o(e.target.value),
22
+ onClear: () => o("")
23
+ }),
24
+ s && /* @__PURE__ */ m("div", {
25
+ className: "ds-collection-view__filter",
26
+ children: /* @__PURE__ */ m(a, {
27
+ size: "sm",
28
+ "aria-label": s.label,
29
+ value: s.value,
30
+ options: s.options,
31
+ onValueChange: s.onChange
32
+ })
33
+ }),
34
+ c && /* @__PURE__ */ m(e, {
35
+ size: "sm",
36
+ iconStart: "user",
37
+ variant: c.isPressed ? "active" : "neutral",
38
+ "aria-pressed": c.isPressed,
39
+ onClick: () => c.onChange(!c.isPressed),
40
+ children: c.label
41
+ }),
42
+ l && /* @__PURE__ */ h(n, {
43
+ isAttached: !1,
44
+ "aria-label": `${t} view`,
45
+ children: [/* @__PURE__ */ m(e, {
46
+ size: "sm",
47
+ isIconOnly: !0,
48
+ iconStart: "layout-grid",
49
+ "aria-label": "Grid view",
50
+ "aria-pressed": l.value === "grid",
51
+ variant: l.value === "grid" ? "active" : "neutral",
52
+ onClick: () => l.onChange("grid")
53
+ }), /* @__PURE__ */ m(e, {
54
+ size: "sm",
55
+ isIconOnly: !0,
56
+ iconStart: "list",
57
+ "aria-label": "Table view",
58
+ "aria-pressed": l.value === "table",
59
+ variant: l.value === "table" ? "active" : "neutral",
60
+ onClick: () => l.onChange("table")
61
+ })]
62
+ }),
63
+ u
64
+ ] });
65
+ }
66
+ //#endregion
67
+ //#region src/components/CollectionView/toolbar.tsx
68
+ function _({ title: n, count: i, query: a, onQueryChange: o, filter: s, mine: l, view: u, selection: _, actions: v }) {
69
+ let y = !!_?.count, b = f(null), x = f(null);
70
+ return d(() => {
71
+ let e = x.current;
72
+ !y && e && !e.isConnected && t(document.activeElement) && (x.current = null, b.current?.focus({ preventScroll: !0 }));
73
+ }, [y]), /* @__PURE__ */ m(c, {
74
+ className: "ds-collection-view__toolbar",
75
+ "data-selected": y || void 0,
76
+ onFocus: (e) => {
77
+ x.current = e.target;
78
+ },
79
+ onBlur: (e) => {
80
+ e.relatedTarget && (x.current = null);
81
+ },
82
+ start: /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
83
+ className: "ds-collection-view__selected",
84
+ role: "status",
85
+ children: y && `${_.count} selected`
86
+ }), !y && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
87
+ ref: b,
88
+ className: "ds-table-toolbar__title",
89
+ tabIndex: -1,
90
+ children: n
91
+ }), /* @__PURE__ */ m(r, {
92
+ shape: "count",
93
+ appearance: "soft",
94
+ isCountExact: !0,
95
+ className: "ds-collection-view__count",
96
+ children: i
97
+ })] })] }),
98
+ end: y ? /* @__PURE__ */ h(p, { children: [
99
+ _.reason && /* @__PURE__ */ m("span", {
100
+ className: "ds-collection-view__reason",
101
+ children: _.reason
102
+ }),
103
+ _.actions,
104
+ /* @__PURE__ */ m(e, {
105
+ size: "sm",
106
+ variant: "simple",
107
+ isDisabled: _.isPending,
108
+ onClick: _.onClear,
109
+ children: "Clear"
110
+ })
111
+ ] }) : /* @__PURE__ */ m(g, {
112
+ title: n,
113
+ query: a,
114
+ onQueryChange: o,
115
+ filter: s,
116
+ mine: l,
117
+ view: u,
118
+ actions: v
119
+ })
120
+ });
121
+ }
122
+ //#endregion
123
+ //#region src/components/CollectionView/empty.tsx
124
+ function v({ kind: e, noun: t, icon: n, title: r, description: i, action: a }) {
125
+ return e === "no-match" ? /* @__PURE__ */ m(o, {
126
+ icon: "search",
127
+ title: `No matching ${t}`,
128
+ description: "Try a different search or clear a filter."
129
+ }) : /* @__PURE__ */ m(o, {
130
+ icon: n,
131
+ title: r,
132
+ description: i,
133
+ action: a
134
+ });
135
+ }
136
+ //#endregion
137
+ //#region src/components/CollectionView/index.tsx
138
+ function y({ title: e, count: t, query: n, onQueryChange: r, status: i, error: a, onRetry: o, pagination: c, filter: d, mine: f, view: p, selection: g, actions: v, children: y }) {
139
+ return /* @__PURE__ */ h(s, {
140
+ className: "ds-collection-view",
141
+ "aria-busy": i === "loading" || g?.isPending || void 0,
142
+ children: [
143
+ /* @__PURE__ */ m(_, {
144
+ title: e,
145
+ count: t,
146
+ query: n,
147
+ onQueryChange: r,
148
+ filter: d,
149
+ mine: f,
150
+ view: p,
151
+ selection: g,
152
+ actions: v
153
+ }),
154
+ /* @__PURE__ */ m("div", {
155
+ className: "ds-collection-view__body",
156
+ "data-feedback": i !== "ready" || void 0,
157
+ children: /* @__PURE__ */ m(u, {
158
+ status: i,
159
+ error: a,
160
+ onRetry: o,
161
+ children: y
162
+ })
163
+ }),
164
+ /* @__PURE__ */ m("div", {
165
+ className: "ds-collection-view__footer",
166
+ children: /* @__PURE__ */ m(l, {
167
+ size: "md",
168
+ menuPlacement: "top",
169
+ ...c,
170
+ isDisabled: c.isDisabled || g?.isPending
171
+ })
172
+ })
173
+ ]
174
+ });
175
+ }
176
+ //#endregion
177
+ export { v as n, y as t };
178
+
179
+ //# sourceMappingURL=CollectionView-Cr12UFWa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionView-Cr12UFWa.js","names":["_Fragment","_Fragment","cannotHoldFocus","LoadState","Fragment$1","CollectionFilters","SearchField","title","query","onQueryChange","event","filter","Select","mine","Button","view","ButtonGroup","actions","CollectionToolbar","selected","selection","titleRef","useRef","focused","useEffect","previous","TableToolbar","Badge","count","CollectionEmpty","kind","TableEmpty","noun","CollectionView","TableFrame","status","Pagination","pagination"],"sources":["../../src/components/CollectionView/filters.tsx","../../src/components/CollectionView/toolbar.tsx","../../src/components/CollectionView/empty.tsx","../../src/components/CollectionView/index.tsx"],"sourcesContent":["import { Button } from \"../Button\";\nimport { ButtonGroup } from \"../ButtonGroup\";\nimport { SearchField } from \"../SearchField\";\nimport { Select } from \"../Select\";\nimport type { CollectionViewProps } from \"./types\";\n\ntype FiltersProps = Pick<\n CollectionViewProps,\n \"title\" | \"query\" | \"onQueryChange\" | \"filter\" | \"mine\" | \"view\" | \"actions\"\n>;\n\n/** Search and view controls for a collection without an active selection. */\nexport function CollectionFilters({\n title,\n query,\n onQueryChange,\n filter,\n mine,\n view,\n actions,\n}: FiltersProps) {\n return (\n <>\n <SearchField\n size=\"sm\"\n maxLength={200}\n placeholder={`Search ${title.toLowerCase()}`}\n aria-label={`Search ${title.toLowerCase()}`}\n value={query}\n onChange={(event) => onQueryChange(event.target.value)}\n onClear={() => onQueryChange(\"\")}\n />\n {filter && (\n <div className=\"ds-collection-view__filter\">\n <Select\n size=\"sm\"\n aria-label={filter.label}\n value={filter.value}\n options={filter.options}\n onValueChange={filter.onChange}\n />\n </div>\n )}\n {mine && (\n <Button\n size=\"sm\"\n iconStart=\"user\"\n variant={mine.isPressed ? \"active\" : \"neutral\"}\n aria-pressed={mine.isPressed}\n onClick={() => mine.onChange(!mine.isPressed)}\n >\n {mine.label}\n </Button>\n )}\n {view && (\n <ButtonGroup\n isAttached={false}\n aria-label={`${title} view`}\n >\n <Button\n size=\"sm\"\n isIconOnly\n iconStart=\"layout-grid\"\n aria-label=\"Grid view\"\n aria-pressed={view.value === \"grid\"}\n variant={view.value === \"grid\" ? \"active\" : \"neutral\"}\n onClick={() => view.onChange(\"grid\")}\n />\n <Button\n size=\"sm\"\n isIconOnly\n iconStart=\"list\"\n aria-label=\"Table view\"\n aria-pressed={view.value === \"table\"}\n variant={view.value === \"table\" ? \"active\" : \"neutral\"}\n onClick={() => view.onChange(\"table\")}\n />\n </ButtonGroup>\n )}\n {actions}\n </>\n );\n}\n","import { useEffect, useRef } from \"react\";\nimport { Badge } from \"../Badge\";\nimport { Button } from \"../Button\";\nimport { TableToolbar } from \"../Table\";\nimport { cannotHoldFocus } from \"../../internal/dialogFocus\";\nimport type { CollectionViewProps } from \"./types\";\nimport { CollectionFilters } from \"./filters\";\ntype ToolbarProps = Pick<\n CollectionViewProps,\n | \"title\"\n | \"count\"\n | \"query\"\n | \"onQueryChange\"\n | \"filter\"\n | \"mine\"\n | \"view\"\n | \"selection\"\n | \"actions\"\n>;\nexport function CollectionToolbar({\n title,\n count,\n query,\n onQueryChange,\n filter,\n mine,\n view,\n selection,\n actions,\n}: ToolbarProps) {\n const selected = Boolean(selection?.count);\n const titleRef = useRef<HTMLSpanElement>(null);\n // The toolbar control holding focus. A blur toward the page or a removal\n // keeps it, so the selection ending can tell that it took focus away.\n const focused = useRef<Element | null>(null);\n useEffect(() => {\n const previous = focused.current;\n // Clear, or a selection action, unmounted with focus: return it to the\n // collection's title rather than leave it on the page.\n if (!selected && previous && !previous.isConnected && cannotHoldFocus(document.activeElement)) {\n focused.current = null;\n titleRef.current?.focus({ preventScroll: true });\n }\n }, [selected]);\n return (\n <TableToolbar\n className=\"ds-collection-view__toolbar\"\n data-selected={selected || undefined}\n onFocus={(event) => {\n focused.current = event.target;\n }}\n onBlur={(event) => {\n if (event.relatedTarget) {\n focused.current = null;\n }\n }}\n start={\n <>\n {/* Mounted throughout, so screen readers hear the first selection. */}\n <span\n className=\"ds-collection-view__selected\"\n role=\"status\"\n >\n {selected && `${selection!.count} selected`}\n </span>\n {!selected && (\n <>\n <span\n ref={titleRef}\n className=\"ds-table-toolbar__title\"\n tabIndex={-1}\n >\n {title}\n </span>\n <Badge\n shape=\"count\"\n appearance=\"soft\"\n isCountExact\n className=\"ds-collection-view__count\"\n >\n {count}\n </Badge>\n </>\n )}\n </>\n }\n end={\n selected ? (\n <>\n {selection!.reason && (\n <span className=\"ds-collection-view__reason\">{selection!.reason}</span>\n )}\n {selection!.actions}\n <Button\n size=\"sm\"\n variant=\"simple\"\n isDisabled={selection!.isPending}\n onClick={selection!.onClear}\n >\n Clear\n </Button>\n </>\n ) : (\n <CollectionFilters\n title={title}\n query={query}\n onQueryChange={onQueryChange}\n filter={filter}\n mine={mine}\n view={view}\n actions={actions}\n />\n )\n }\n />\n );\n}\n","import { TableEmpty, type TableEmptyProps } from \"../Table\";\nimport type { CollectionEmptyKind } from \"./types\";\n\nexport interface CollectionEmptyProps extends Pick<\n TableEmptyProps,\n \"icon\" | \"description\" | \"action\"\n> {\n kind: CollectionEmptyKind;\n /** Plural noun for the no-match title, e.g. \"entries\". */\n noun: string;\n /** Shown when the collection itself has no items. */\n title: string;\n}\n\n/**\n * What a searchable collection's frame shows instead of its table: how to\n * start an empty collection, or a pointer back to the search field.\n */\nexport function CollectionEmpty({\n kind,\n noun,\n icon,\n title,\n description,\n action,\n}: CollectionEmptyProps) {\n if (kind === \"no-match\") {\n return (\n <TableEmpty\n icon=\"search\"\n title={`No matching ${noun}`}\n description=\"Try a different search or clear a filter.\"\n />\n );\n }\n return (\n <TableEmpty\n icon={icon}\n title={title}\n description={description}\n action={action}\n />\n );\n}\n","import { Pagination } from \"../Pagination\";\nimport { TableFrame } from \"../Table\";\nimport { CollectionToolbar } from \"./toolbar\";\nimport { LoadState } from \"../LoadState\";\nimport type { CollectionViewProps } from \"./types\";\nimport \"./style.css\";\nexport type { CollectionViewProps, CollectionEmptyKind } from \"./types\";\nexport { CollectionEmpty } from \"./empty\";\nexport type { CollectionEmptyProps } from \"./empty\";\n\nexport function CollectionView({\n title,\n count,\n query,\n onQueryChange,\n status,\n error,\n onRetry,\n pagination,\n filter,\n mine,\n view,\n selection,\n actions,\n children,\n}: CollectionViewProps) {\n return (\n <TableFrame\n className=\"ds-collection-view\"\n aria-busy={status === \"loading\" || selection?.isPending || undefined}\n >\n <CollectionToolbar\n title={title}\n count={count}\n query={query}\n onQueryChange={onQueryChange}\n filter={filter}\n mine={mine}\n view={view}\n selection={selection}\n actions={actions}\n />\n <div\n className=\"ds-collection-view__body\"\n data-feedback={status !== \"ready\" || undefined}\n >\n <LoadState\n status={status}\n error={error}\n onRetry={onRetry}\n >\n {children}\n </LoadState>\n </div>\n <div className=\"ds-collection-view__footer\">\n {/* Paging stays live while a page loads: disabling the pressed Next or\n Previous button would drop its focus on every page change. */}\n <Pagination\n size=\"md\"\n menuPlacement=\"top\"\n {...pagination}\n isDisabled={pagination.isDisabled || selection?.isPending}\n />\n </div>\n </TableFrame>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgBK,EAAkB,EAChC,UACA,UACA,kBACA,WACA,SACA,SACA,cACe;CACf,OACE,kBAAAL,GAAA,EAAA,UAAA;EACE,kBAACM,GAAD;GACE,MAAK;GACL,WAAW;GACX,aAAa,UAAUC,EAAM,YAAY;GACzC,cAAY,UAAUA,EAAM,YAAY;GACxC,OAAOC;GACP,WAAW,MAAUC,EAAcC,EAAM,OAAO,KAAK;GACrD,eAAeD,EAAc,EAAE;EAChC,CAAA;EACAE,KACC,kBAAC,OAAD;GAAK,WAAU;GACb,UAAA,kBAACC,GAAD;IACE,MAAK;IACL,cAAYD,EAAO;IACnB,OAAOA,EAAO;IACd,SAASA,EAAO;IAChB,eAAeA,EAAO;GACvB,CAAA;EACE,CAAA;EAENE,KACC,kBAACC,GAAD;GACE,MAAK;GACL,WAAU;GACV,SAASD,EAAK,YAAY,WAAW;GACrC,gBAAcA,EAAK;GACnB,eAAeA,EAAK,SAAS,CAACA,EAAK,SAAS;GAE3C,UAAAA,EAAK;EACA,CAAA;EAETE,KACC,kBAACC,GAAD;GACE,YAAY;GACZ,cAAY,GAAGT,EAAM;GAFvB,UAAA,CAIE,kBAACO,GAAD;IACE,MAAK;IACL,YAAA;IACA,WAAU;IACV,cAAW;IACX,gBAAcC,EAAK,UAAU;IAC7B,SAASA,EAAK,UAAU,SAAS,WAAW;IAC5C,eAAeA,EAAK,SAAS,MAAM;GACpC,CAAA,GACD,kBAACD,GAAD;IACE,MAAK;IACL,YAAA;IACA,WAAU;IACV,cAAW;IACX,gBAAcC,EAAK,UAAU;IAC7B,SAASA,EAAK,UAAU,UAAU,WAAW;IAC7C,eAAeA,EAAK,SAAS,OAAO;GACrC,CAAA,CACU;;EAEdE;CACD,EAAA,CAAA;AAEN;;;AC/DA,SAAgBC,EAAkB,EAChC,UACA,UACA,UACA,kBACA,WACA,SACA,SACA,cACA,cACe;CACf,IAAMC,IAAW,EAAQC,GAAW,OAC9BC,IAAWC,EAAwB,IAAI,GAGvCC,IAAUD,EAAuB,IAAI;CAU3C,OATAE,QAAgB;EACd,IAAMC,IAAWF,EAAQ;EAGzB,AAAI,CAACJ,KAAYM,KAAY,CAACA,EAAS,eAAevB,EAAgB,SAAS,aAAa,MAC1F,EAAQ,UAAU,MAClBmB,EAAS,SAAS,MAAM,EAAE,eAAe,GAAK,CAAC;CAEnD,GAAG,CAACF,CAAQ,CAAC,GAEX,kBAACO,GAAD;EACE,WAAU;EACV,iBAAeP,KAAY,KAAA;EAC3B,UAAU,MAAU;GAClB,EAAQ,UAAUT,EAAM;EAC1B;EACA,SAAS,MAAU;GACjB,AAAIA,EAAM,kBACR,EAAQ,UAAU;EAEtB;EACA,OACE,kBAAAT,GAAA,EAAA,UAAA,CAEE,kBAAC,QAAD;GACE,WAAU;GACV,MAAK;GAEJ,UAAAkB,KAAY,GAAGC,EAAW,MAAM;EAC7B,CAAA,GACL,CAACD,KACA,kBAAAlB,GAAA,EAAA,UAAA,CACE,kBAAC,QAAD;GACE,KAAKoB;GACL,WAAU;GACV,UAAU;GAET,UAAAd;EACG,CAAA,GACN,kBAACoB,GAAD;GACE,OAAM;GACN,YAAW;GACX,cAAA;GACA,WAAU;GAET,UAAAC;EACI,CAAA,CACP,EAAA,CAAA,CAEJ,EAAA,CAAA;EAEJ,KACET,IACE,kBAAAlB,GAAA,EAAA,UAAA;GACGmB,EAAW,UACV,kBAAC,QAAD;IAAM,WAAU;IAA8B,UAAAA,EAAW;GAAa,CAAA;GAEvEA,EAAW;GACZ,kBAACN,GAAD;IACE,MAAK;IACL,SAAQ;IACR,YAAYM,EAAW;IACvB,SAASA,EAAW;IACrB,UAAA;GAEO,CAAA;EACR,EAAA,CAAA,IAEF,kBAACf,GAAD;GACS;GACA;GACQ;GACP;GACF;GACA;GACG;EACV,CAAA;CAGN,CAAA;AAEL;;;AClGA,SAAgBwB,EAAgB,EAC9B,SACA,SACA,SACA,UACA,gBACA,aACuB;CAUvB,OATIC,MAAS,aAET,kBAACC,GAAD;EACE,MAAK;EACL,OAAO,eAAeC;EACtB,aAAY;CACb,CAAA,IAIH,kBAACD,GAAD;EACQ;EACC;EACM;EACL;CACT,CAAA;AAEL;;;ACjCA,SAAgBE,EAAe,EAC7B,UACA,UACA,UACA,kBACA,WACA,UACA,YACA,eACA,WACA,SACA,SACA,cACA,YACA,eACsB;CACtB,OACE,kBAACC,GAAD;EACE,WAAU;EACV,aAAWC,MAAW,aAAaf,GAAW,aAAa,KAAA;EAF7D,UAAA;GAIE,kBAACF,GAAD;IACS;IACA;IACA;IACQ;IACP;IACF;IACA;IACK;IACF;GACV,CAAA;GACD,kBAAC,OAAD;IACE,WAAU;IACV,iBAAeiB,MAAW,WAAW,KAAA;IAErC,UAAA,kBAAChC,GAAD;KACU;KACD;KACE;KAER;IACQ,CAAA;GACR,CAAA;GACL,kBAAC,OAAD;IAAK,WAAU;IAGb,UAAA,kBAACiC,GAAD;KACE,MAAK;KACL,eAAc;KACd,GAAIC;KACJ,YAAYA,EAAW,cAAcjB,GAAW;IACjD,CAAA;GACE,CAAA;EACK;;AAEhB"}
@@ -6,7 +6,7 @@ import { TextField as i } from "../components/TextField/index.js";
6
6
  import { FieldAffix as a } from "../components/FieldAffix/index.js";
7
7
  import { Popover as o } from "../components/Popover/index.js";
8
8
  import { i as s, n as c, r as l, t as u } from "./colour-CYEF4Q_n.js";
9
- import { n as d } from "./Slider-vdMFLX-H.js";
9
+ import { n as d } from "./Slider-Cab6NqhK.js";
10
10
  import { forwardRef as f, useEffect as p, useId as m, useMemo as h, useRef as g, useState as _, useSyncExternalStore as v } from "react";
11
11
  import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
12
12
  //#region src/components/ColourField/focus.ts
@@ -469,4 +469,4 @@ var M = f(function({ value: e, defaultValue: t, onValueChange: n, ...r }, i) {
469
469
  //#endregion
470
470
  export { M as n, P as t };
471
471
 
472
- //# sourceMappingURL=ColourField-DC6cLb9h.js.map
472
+ //# sourceMappingURL=ColourField-B-tjjBfA.js.map