datocms-react-ui 3.1.0-next.6 → 3.1.0-next.9

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 (252) hide show
  1. package/README.md +3 -2
  2. package/dist/DateInput.d.ts +2 -0
  3. package/dist/DateInput.js +2 -0
  4. package/dist/DateTimeInput.d.ts +2 -0
  5. package/dist/DateTimeInput.js +2 -0
  6. package/dist/DateTimeRangeInput.d.ts +2 -0
  7. package/dist/DateTimeRangeInput.js +2 -0
  8. package/dist/FieldTypeAvatar.d.ts +2 -0
  9. package/dist/FieldTypeAvatar.js +2 -0
  10. package/dist/FieldTypeName.d.ts +2 -0
  11. package/dist/FieldTypeName.js +2 -0
  12. package/dist/FilterBuilder.d.ts +2 -0
  13. package/dist/FilterBuilder.js +2 -0
  14. package/dist/RecordRow.d.ts +2 -0
  15. package/dist/RecordRow.js +2 -0
  16. package/dist/UploadCard.js +2 -2
  17. package/dist/UploadPreview.d.ts +2 -2
  18. package/dist/UploadPreview.js +1 -1
  19. package/dist/UserRow.d.ts +2 -0
  20. package/dist/UserRow.js +2 -0
  21. package/dist/react-ui/src/Canvas.d.ts +7 -1
  22. package/dist/react-ui/src/Canvas.js +26 -4
  23. package/dist/react-ui/src/ctxAnswer.js +21 -0
  24. package/dist/react-ui/src/ctxDateSettings.js +7 -5
  25. package/dist/react-ui/src/ctxRecordPresentation.js +34 -0
  26. package/dist/react-ui/src/ctxUploads.js +23 -0
  27. package/dist/styles.css +634 -45
  28. package/dist/ui-public/icons/index.js +285 -280
  29. package/dist/ui-public/icons/lucide/braces.js +22 -0
  30. package/dist/ui-public/icons/lucide/hash.js +47 -0
  31. package/dist/ui-public/icons/lucide/letter-text.js +28 -0
  32. package/dist/ui-public/icons/lucide/rows-3.js +32 -0
  33. package/dist/ui-public/icons/lucide/toggle-right.js +32 -0
  34. package/dist/ui-public/locales/en.js +74 -5
  35. package/dist/ui-public/src/Message.d.ts +3 -4
  36. package/dist/ui-public/src/UiTextKey.d.ts +1 -1
  37. package/dist/ui-public/src/actions/Actions/ActionTooltip.js +1 -1
  38. package/dist/ui-public/src/actions/Actions/registry.d.ts +2 -2
  39. package/dist/ui-public/src/actions/Actions/registry.js +2 -2
  40. package/dist/ui-public/src/actions/Button.d.ts +10 -10
  41. package/dist/ui-public/src/actions/Button.js +1 -1
  42. package/dist/ui-public/src/actions/Dropdown/Menu.d.ts +2 -2
  43. package/dist/ui-public/src/actions/Dropdown/Option.d.ts +7 -7
  44. package/dist/ui-public/src/actions/Dropdown/index.d.ts +1 -1
  45. package/dist/ui-public/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +5 -5
  46. package/dist/ui-public/src/actions/Dropdown/triggers/DropdownTriggerButton.d.ts +2 -2
  47. package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.d.ts +6 -6
  48. package/dist/ui-public/src/actions/Dropdown/triggers/IconTrigger.js +1 -1
  49. package/dist/ui-public/src/actions/EditorToolbar/Button.d.ts +1 -1
  50. package/dist/ui-public/src/actions/MultipleSelectionActionBar.d.ts +1 -1
  51. package/dist/ui-public/src/actions/SplitButton/Caret.js +2 -2
  52. package/dist/ui-public/src/actions/SplitButton/Halves.js +1 -1
  53. package/dist/ui-public/src/actions/SplitButton/index.d.ts +3 -3
  54. package/dist/ui-public/src/actions/disabledReason.d.ts +4 -4
  55. package/dist/ui-public/src/content/Avatar.d.ts +3 -3
  56. package/dist/ui-public/src/content/Avatar.js +2 -2
  57. package/dist/ui-public/src/content/CodeSnippet.d.ts +1 -1
  58. package/dist/ui-public/src/content/CopyableValue.d.ts +1 -1
  59. package/dist/ui-public/src/content/EnvironmentPill.d.ts +1 -1
  60. package/dist/ui-public/src/content/EnvironmentPill.js +1 -1
  61. package/dist/ui-public/src/content/FieldTypeAvatar.d.ts +22 -0
  62. package/dist/ui-public/src/content/FieldTypeAvatar.js +35 -0
  63. package/dist/ui-public/src/content/FieldTypeName.d.ts +19 -0
  64. package/dist/ui-public/src/content/FieldTypeName.js +25 -0
  65. package/dist/ui-public/src/content/IconAvatar.d.ts +3 -2
  66. package/dist/ui-public/src/content/ItemStatus.d.ts +1 -1
  67. package/dist/ui-public/src/content/Pill.d.ts +1 -1
  68. package/dist/ui-public/src/content/SmartDate.d.ts +1 -1
  69. package/dist/ui-public/src/content/UploadPreview/asset.js +200 -0
  70. package/dist/ui-public/src/content/UploadPreview/audio.js +120 -0
  71. package/dist/ui-public/src/content/{UploadPreview.d.ts → UploadPreview/box.d.ts} +10 -10
  72. package/dist/ui-public/src/content/{UploadPreview.js → UploadPreview/box.js} +7 -7
  73. package/dist/ui-public/src/content/{uploadPreviewFit.d.ts → UploadPreview/fit.d.ts} +2 -2
  74. package/dist/ui-public/src/content/{uploadPreviewFit.js → UploadPreview/fit.js} +3 -3
  75. package/dist/ui-public/src/content/UploadPreview/index.d.ts +61 -0
  76. package/dist/ui-public/src/content/UploadPreview/index.js +36 -0
  77. package/dist/ui-public/src/content/UploadPreview/presentation.js +63 -0
  78. package/dist/ui-public/src/content/UploadPreview/thumbhash.js +91 -0
  79. package/dist/ui-public/src/content/UploadPreview/upload.d.ts +104 -0
  80. package/dist/ui-public/src/content/UploadPreview/upload.js +112 -0
  81. package/dist/ui-public/src/content/UsageMeter.d.ts +1 -1
  82. package/dist/ui-public/src/content/ValidityTriangles.d.ts +1 -1
  83. package/dist/ui-public/src/feedback/BlankSlate.d.ts +5 -5
  84. package/dist/ui-public/src/feedback/Callout.d.ts +5 -5
  85. package/dist/ui-public/src/feedback/Callout.js +1 -1
  86. package/dist/ui-public/src/feedback/ProgressBar.d.ts +4 -4
  87. package/dist/ui-public/src/feedback/Spinner.d.ts +6 -6
  88. package/dist/ui-public/src/feedback/Spinner.js +1 -1
  89. package/dist/ui-public/src/form/DateInput.d.ts +13 -0
  90. package/dist/ui-public/src/form/DateInput.js +16 -0
  91. package/dist/ui-public/src/form/DateTimeInput/Base.d.ts +89 -0
  92. package/dist/ui-public/src/form/DateTimeInput/Base.js +330 -0
  93. package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.d.ts +29 -0
  94. package/dist/ui-public/src/form/DateTimeInput/CalendarGrid.js +195 -0
  95. package/dist/ui-public/src/form/DateTimeInput/dateText.js +38 -0
  96. package/dist/ui-public/src/form/DateTimeInput/index.d.ts +10 -0
  97. package/dist/ui-public/src/form/DateTimeInput/index.js +18 -0
  98. package/dist/ui-public/src/form/DateTimeInput/value.js +31 -0
  99. package/dist/ui-public/src/form/DateTimeRangeInput/Panel.js +167 -0
  100. package/dist/ui-public/src/form/DateTimeRangeInput/index.d.ts +123 -0
  101. package/dist/ui-public/src/form/DateTimeRangeInput/index.js +186 -0
  102. package/dist/ui-public/src/form/DateTimeRangeInput/rangeLabel.js +46 -0
  103. package/dist/ui-public/src/form/FieldHint.d.ts +2 -2
  104. package/dist/ui-public/src/form/FieldWrapper.d.ts +9 -9
  105. package/dist/ui-public/src/form/FieldWrapper.js +3 -3
  106. package/dist/ui-public/src/form/FilterBuilder/Editor.js +123 -0
  107. package/dist/ui-public/src/form/FilterBuilder/index.d.ts +9 -0
  108. package/dist/ui-public/src/form/FilterBuilder/index.js +294 -0
  109. package/dist/ui-public/src/form/FilterBuilder/types.d.ts +188 -0
  110. package/dist/ui-public/src/form/FilterBuilder/values.js +86 -0
  111. package/dist/ui-public/src/form/InputGroup.d.ts +2 -2
  112. package/dist/ui-public/src/form/InputGroup.js +1 -1
  113. package/dist/ui-public/src/form/KeyValueList.d.ts +1 -1
  114. package/dist/ui-public/src/form/Label.d.ts +2 -2
  115. package/dist/ui-public/src/form/RadioGroupInput.d.ts +2 -2
  116. package/dist/ui-public/src/form/RadioGroupInput.js +1 -1
  117. package/dist/ui-public/src/form/SelectInput/SelectMenu.d.ts +2 -2
  118. package/dist/ui-public/src/form/SelectInput/index.d.ts +3 -3
  119. package/dist/ui-public/src/form/SwitchInput.d.ts +2 -2
  120. package/dist/ui-public/src/form/SwitchList.d.ts +1 -1
  121. package/dist/ui-public/src/form/SwitchList.js +1 -1
  122. package/dist/ui-public/src/form/TableList.d.ts +2 -2
  123. package/dist/ui-public/src/form/TextareaInput.js +1 -1
  124. package/dist/ui-public/src/form/inputProps.d.ts +6 -6
  125. package/dist/ui-public/src/hooks/useAsyncSelectOptions.d.ts +1 -1
  126. package/dist/ui-public/src/hooks/useSmartRowClick.d.ts +1 -1
  127. package/dist/ui-public/src/hooks/useSmartRowClick.js +1 -1
  128. package/dist/ui-public/src/layout/Page/PageGroup.d.ts +2 -2
  129. package/dist/ui-public/src/layout/Page/PageGroup.js +1 -1
  130. package/dist/ui-public/src/layout/Pane/FormHeader.d.ts +1 -1
  131. package/dist/ui-public/src/layout/Pane/FormHeader.js +1 -1
  132. package/dist/ui-public/src/layout/Pane/ListFilter.d.ts +1 -1
  133. package/dist/ui-public/src/layout/Pane/ListPresets.d.ts +1 -1
  134. package/dist/ui-public/src/layout/Pane/PaneHeader.d.ts +1 -1
  135. package/dist/ui-public/src/layout/Pane/index.d.ts +8 -8
  136. package/dist/ui-public/src/layout/Pane/index.js +17 -8
  137. package/dist/ui-public/src/layout/SidebarPanel.d.ts +1 -1
  138. package/dist/ui-public/src/layout/SplitPane/Rail.js +1 -1
  139. package/dist/ui-public/src/layout/SplitPane/index.d.ts +6 -6
  140. package/dist/ui-public/src/layout/SplitPane/index.js +16 -2
  141. package/dist/ui-public/src/layout/Toolbar/AddNewButton.d.ts +2 -2
  142. package/dist/ui-public/src/layout/Toolbar/Help.d.ts +3 -3
  143. package/dist/ui-public/src/layout/Toolbar/Help.js +2 -2
  144. package/dist/ui-public/src/layout/Toolbar/Note.d.ts +1 -1
  145. package/dist/ui-public/src/layout/Toolbar/Note.js +1 -1
  146. package/dist/ui-public/src/layout/Toolbar/Pagination.d.ts +1 -1
  147. package/dist/ui-public/src/layout/Toolbar/Pagination.js +1 -1
  148. package/dist/ui-public/src/layout/Toolbar/PresetsTitle.d.ts +3 -3
  149. package/dist/ui-public/src/layout/Toolbar/PresetsTitle.js +2 -2
  150. package/dist/ui-public/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
  151. package/dist/ui-public/src/layout/Toolbar/Root.d.ts +1 -1
  152. package/dist/ui-public/src/layout/Toolbar/Root.js +4 -1
  153. package/dist/ui-public/src/layout/Toolbar/ToolbarTitleTrigger.js +1 -1
  154. package/dist/ui-public/src/lists/CardList.d.ts +3 -3
  155. package/dist/ui-public/src/lists/EmptySlot.d.ts +1 -1
  156. package/dist/ui-public/src/lists/InfoList/User.d.ts +1 -1
  157. package/dist/ui-public/src/lists/InfoList/Value.d.ts +1 -1
  158. package/dist/ui-public/src/lists/InfoList/Value.js +1 -1
  159. package/dist/ui-public/src/lists/InfoList/index.d.ts +3 -3
  160. package/dist/ui-public/src/lists/InfoList/index.js +1 -1
  161. package/dist/ui-public/src/lists/MediaCard.d.ts +7 -7
  162. package/dist/ui-public/src/lists/RecordRow/Image.d.ts +24 -0
  163. package/dist/ui-public/src/lists/RecordRow/Image.js +22 -0
  164. package/dist/ui-public/src/lists/RecordRow/List.d.ts +26 -0
  165. package/dist/ui-public/src/lists/RecordRow/List.js +30 -0
  166. package/dist/ui-public/src/lists/RecordRow/context.js +31 -0
  167. package/dist/ui-public/src/lists/RecordRow/index.d.ts +94 -0
  168. package/dist/ui-public/src/lists/RecordRow/index.js +122 -0
  169. package/dist/ui-public/src/lists/RecordRow/presentation.js +73 -0
  170. package/dist/ui-public/src/lists/RecordRow/types.d.ts +58 -0
  171. package/dist/ui-public/src/lists/RowList.d.ts +5 -5
  172. package/dist/ui-public/src/lists/SettingsList.d.ts +3 -3
  173. package/dist/ui-public/src/lists/SettingsList.js +2 -2
  174. package/dist/ui-public/src/lists/Table/Row.d.ts +5 -5
  175. package/dist/ui-public/src/lists/Table/Table.d.ts +3 -3
  176. package/dist/ui-public/src/lists/Table/TreeToggle.d.ts +2 -2
  177. package/dist/ui-public/src/lists/Table/TreeToggle.js +5 -4
  178. package/dist/ui-public/src/lists/Table/cells/LinkCell.d.ts +1 -1
  179. package/dist/ui-public/src/lists/TreeRow/Action.d.ts +1 -1
  180. package/dist/ui-public/src/lists/TreeRow/Action.js +1 -1
  181. package/dist/ui-public/src/lists/TreeRow/Link.d.ts +1 -1
  182. package/dist/ui-public/src/lists/TreeRow/Link.js +1 -1
  183. package/dist/ui-public/src/lists/UploadCard.d.ts +66 -3
  184. package/dist/ui-public/src/lists/UploadCard.js +116 -7
  185. package/dist/ui-public/src/lists/UserRow.d.ts +122 -0
  186. package/dist/ui-public/src/lists/UserRow.js +104 -0
  187. package/dist/ui-public/src/lists/dnd/DragHandle.d.ts +2 -2
  188. package/dist/ui-public/src/lists/dnd/SortableList.d.ts +1 -1
  189. package/dist/ui-public/src/lists/dnd/dropTargetClassName.d.ts +1 -1
  190. package/dist/ui-public/src/lists/dnd/tree/SortableTree.d.ts +2 -2
  191. package/dist/ui-public/src/navigation/Chevron.d.ts +4 -4
  192. package/dist/ui-public/src/navigation/Chevron.js +1 -1
  193. package/dist/ui-public/src/navigation/Link.d.ts +5 -5
  194. package/dist/ui-public/src/navigation/Link.js +1 -1
  195. package/dist/ui-public/src/navigation/NavList.d.ts +1 -1
  196. package/dist/ui-public/src/navigation/NavList.js +1 -1
  197. package/dist/ui-public/src/navigation/NavigationProvider.d.ts +1 -1
  198. package/dist/ui-public/src/navigation/SegmentedControl.d.ts +2 -2
  199. package/dist/ui-public/src/navigation/SettingsMenu.d.ts +8 -8
  200. package/dist/ui-public/src/navigation/SettingsMenu.js +1 -1
  201. package/dist/ui-public/src/navigation/SidebarTree/SidebarTreeNode.d.ts +4 -4
  202. package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.d.ts +1 -1
  203. package/dist/ui-public/src/overlays/FullscreenModal/TitleContext.js +1 -1
  204. package/dist/ui-public/src/overlays/NewZIndex.d.ts +1 -1
  205. package/dist/ui-public/src/overlays/NewZIndex.js +1 -1
  206. package/dist/ui-public/src/overlays/Popover.d.ts +1 -1
  207. package/dist/ui-public/src/overlays/PortalWrapper.js +1 -1
  208. package/dist/ui-public/src/overlays/useModalClose.js +3 -3
  209. package/dist/ui-public/src/patterns/ListDetail/FloatingDetail.js +2 -2
  210. package/dist/ui-public/src/patterns/ListDetail/Page.d.ts +8 -9
  211. package/dist/ui-public/src/patterns/ListDetail/Page.js +4 -5
  212. package/dist/ui-public/src/patterns/ListDetail/Panel.d.ts +2 -2
  213. package/dist/ui-public/src/patterns/ListDetail/Panel.js +1 -1
  214. package/dist/ui-public/src/patterns/ListDetail/Split.d.ts +9 -10
  215. package/dist/ui-public/src/patterns/ListDetail/Split.js +5 -5
  216. package/dist/ui-public/src/patterns/ListFormPage.d.ts +3 -3
  217. package/dist/ui-public/src/patterns/ListFormPage.js +1 -1
  218. package/dist/ui-public/src/semantic/Heading.d.ts +1 -1
  219. package/dist/ui-public/src/semantic/Heading.js +1 -1
  220. package/dist/ui-public/src/semantic/Image.js +1 -1
  221. package/dist/ui-public/src/semantic/Nav.d.ts +3 -3
  222. package/dist/ui-public/src/semantic/Nav.js +3 -3
  223. package/dist/ui-public/src/semantic/RawButton.d.ts +3 -3
  224. package/dist/ui-public/src/semantic/RawButton.js +1 -1
  225. package/dist/ui-public/src/semantic/Search.d.ts +1 -1
  226. package/dist/ui-public/src/semantic/Search.js +1 -1
  227. package/dist/ui-public/src/utils/fieldTypes.d.ts +29 -0
  228. package/dist/ui-public/src/utils/fieldTypes.js +94 -0
  229. package/dist/ui-public/src/utils/format.d.ts +21 -0
  230. package/dist/ui-public/src/utils/format.js +20 -0
  231. package/dist/ui-public/src/utils/formatDate.d.ts +10 -2
  232. package/dist/ui-public/src/utils/formatDate.js +4 -4
  233. package/dist/ui-public/src/utils/tickBatcher.js +44 -0
  234. package/dist/ui-public/src/utils/timezones.js +277 -0
  235. package/dist/ui-public/src/utils/weekStartForLocale.js +25 -0
  236. package/dist/utils/fieldTypes.d.ts +1 -0
  237. package/dist/utils/fieldTypes.js +2 -0
  238. package/dist/utils/format.d.ts +1 -0
  239. package/dist/utils/format.js +2 -0
  240. package/package.json +2 -2
  241. package/dist/ui-public/icons/custom/fieldgroup-boolean.js +0 -18
  242. package/dist/ui-public/icons/custom/fieldgroup-color.js +0 -18
  243. package/dist/ui-public/icons/custom/fieldgroup-datetime.js +0 -49
  244. package/dist/ui-public/icons/custom/fieldgroup-json.js +0 -18
  245. package/dist/ui-public/icons/custom/fieldgroup-location.js +0 -19
  246. package/dist/ui-public/icons/custom/fieldgroup-media.js +0 -18
  247. package/dist/ui-public/icons/custom/fieldgroup-number.js +0 -18
  248. package/dist/ui-public/icons/custom/fieldgroup-reference.js +0 -18
  249. package/dist/ui-public/icons/custom/fieldgroup-rich_text.js +0 -18
  250. package/dist/ui-public/icons/custom/fieldgroup-seo.js +0 -22
  251. package/dist/ui-public/icons/custom/fieldgroup-structured_text.js +0 -61
  252. package/dist/ui-public/icons/lucide/receipt.js +0 -26
@@ -33,7 +33,7 @@ export type SelectSearch = {
33
33
  /**
34
34
  * Called with the text in the input each time it changes. The select
35
35
  * empties the input when the user picks an option, leaves the select or
36
- * closes the menu: the query is then an empty string, thus the next open
36
+ * closes the menu: the query is then an empty string, so the next open
37
37
  * starts from the full list.
38
38
  */
39
39
  onQueryChange: (query: string) => void;
@@ -46,7 +46,7 @@ export default function SelectInput<O extends BaseSelectOption, G extends GroupB
46
46
  type CommonProps<O extends BaseSelectOption> = {
47
47
  /**
48
48
  * The options load: the control shows a spinner, and the open menu shows
49
- * the loading text in place of the options
49
+ * the loading text instead of the options
50
50
  */
51
51
  loading?: boolean;
52
52
  /**
@@ -84,7 +84,7 @@ type CommonProps<O extends BaseSelectOption> = {
84
84
  /**
85
85
  * Actions below the options of the menu, for example "Create new". Build
86
86
  * them with `SelectMenuAction`: an action with `list` opens a second list
87
- * in the place of the options. Close the menu with `closeSelectMenu`.
87
+ * instead of the options. Close the menu with `closeSelectMenu`.
88
88
  */
89
89
  menuFooter?: ReactNode;
90
90
  };
@@ -6,7 +6,7 @@ export type SwitchInputProps = BaseInputComponentPropsFieldWithReadOnly<boolean
6
6
  /**
7
7
  * The text next to the switch. It is the name of the switch, and a click
8
8
  * on it flips the switch. An element shows as it is: it must be a `Label`
9
- * that points to the `id` of the switch (`Field` of the apps gives one).
9
+ * that points to the `id` of the switch.
10
10
  * Do not give a `label` to a `FieldWrapper` around the switch.
11
11
  */
12
12
  label: Message;
@@ -20,7 +20,7 @@ export type SwitchInputProps = BaseInputComponentPropsFieldWithReadOnly<boolean
20
20
  /** Why the value is on, for example "The role Editor gives it" */
21
21
  reason: Message;
22
22
  };
23
- /** The `id` of the text of the label. `Field` of the apps gives it. */
23
+ /** The `id` of the text of the label. */
24
24
  'aria-labelledby'?: string;
25
25
  /** Set when the value has an error. A `FieldWrapper` gives it. */
26
26
  'aria-invalid'?: boolean;
@@ -9,7 +9,7 @@ export type SwitchListProps = {
9
9
  };
10
10
  /**
11
11
  * A list of related switches, for example the permissions of a role. Each
12
- * switch is an inset row: the label at the left, the switch at the right,
12
+ * switch is an inset row: the label on the left, the switch on the right,
13
13
  * and a box that shows on hover. Put one list in a `Page.Group` for each topic.
14
14
  */
15
15
  export declare function SwitchList({ children, className }: SwitchListProps): React.JSX.Element;
@@ -9,7 +9,7 @@ function useInSwitchList() {
9
9
  }
10
10
  /**
11
11
  * A list of related switches, for example the permissions of a role. Each
12
- * switch is an inset row: the label at the left, the switch at the right,
12
+ * switch is an inset row: the label on the left, the switch on the right,
13
13
  * and a box that shows on hover. Put one list in a `Page.Group` for each topic.
14
14
  */
15
15
  function SwitchList({ children, className }) {
@@ -126,7 +126,7 @@ type TableListAddMenu<Item> = {
126
126
  export type TableListLocked<Item> = {
127
127
  /** Tells if a row is locked */
128
128
  isLocked: (item: Item) => boolean;
129
- /** The tooltip of the disabled trash of a locked row: it tells why */
129
+ /** The tooltip of the disabled trash of a locked row. It says why */
130
130
  reason: TextMessage;
131
131
  };
132
132
  /** How the user adds a row: at once, or with a menu */
@@ -155,7 +155,7 @@ export type ListInputValueProps<Item> = {
155
155
  value: Item[];
156
156
  /**
157
157
  * Called with the new rows when the user adds, removes, moves or changes a
158
- * row. The second argument tells what changed.
158
+ * row. The second argument says what changed.
159
159
  */
160
160
  onChange: (items: Item[], change: TableListChange) => void;
161
161
  /**
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
7
7
  //#region ../ui-public/src/form/TextareaInput.tsx
8
8
  /**
9
9
  * Sets the height of the textarea from its text. The height goes to `auto`
10
- * first: thus `scrollHeight` gives the height of the text, also when the
10
+ * first, so `scrollHeight` gives the height of the text, even when the
11
11
  * text becomes shorter. The `rows` of the element keep the smallest height.
12
12
  */
13
13
  function useAutosize(ref, text, maxRows) {
@@ -1,6 +1,6 @@
1
1
  /** The props of an input that is disabled: it needs no name and no handlers. */
2
2
  export type BaseInputComponentPropsFieldDisabled<Value = unknown> = {
3
- /** The `id` that `Field` gives, for the `label` to point to. */
3
+ /** The `id` that the field gives, for the `label` to point to. */
4
4
  id?: string;
5
5
  /** The value of the field in the form. */
6
6
  value: Value;
@@ -15,7 +15,7 @@ export type BaseInputComponentPropsFieldDisabled<Value = unknown> = {
15
15
  };
16
16
  /** The props of an input that the user can change. */
17
17
  export type BaseInputComponentPropsFieldEnabled<Value = unknown> = {
18
- /** The `id` that `Field` gives, for the `label` to point to. */
18
+ /** The `id` that the field gives, for the `label` to point to. */
19
19
  id?: string;
20
20
  /** The value of the field in the form. */
21
21
  value: Value;
@@ -46,7 +46,7 @@ export type FieldInputStatics = {
46
46
  fieldLabel?: 'inside';
47
47
  };
48
48
  /**
49
- * The `aria-labelledby` that `Field` gives: the `id` of the text of its label.
49
+ * The `aria-labelledby` that the field gives: the `id` of the text of its label.
50
50
  * A group input (a radio group) puts it on its group element, because the
51
51
  * `htmlFor` of the label cannot point to a group.
52
52
  */
@@ -66,7 +66,7 @@ export type BaseInputComponentPropsField<Value = unknown> = BaseInputComponentPr
66
66
  * or read-only. It needs no name and no handlers.
67
67
  */
68
68
  export type BaseInputComponentPropsFieldWithReadOnlyNonEditable<Value = unknown, ChangeDetail extends unknown[] = []> = {
69
- /** The `id` that `Field` gives, for the `label` to point to. */
69
+ /** The `id` that the field gives, for the `label` to point to. */
70
70
  id?: string;
71
71
  /** The value of the field in the form. */
72
72
  value: Value;
@@ -88,7 +88,7 @@ export type BaseInputComponentPropsFieldWithReadOnlyNonEditable<Value = unknown,
88
88
  });
89
89
  /** The props of an input with a read-only mode, when the user can change it. */
90
90
  export type BaseInputComponentPropsFieldWithReadOnlyEditable<Value = unknown, ChangeDetail extends unknown[] = []> = {
91
- /** The `id` that `Field` gives, for the `label` to point to. */
91
+ /** The `id` that the field gives, for the `label` to point to. */
92
92
  id?: string;
93
93
  /** The value of the field in the form. */
94
94
  value: Value;
@@ -114,6 +114,6 @@ export type BaseInputComponentPropsFieldWithReadOnlyEditable<Value = unknown, Ch
114
114
  * `BaseInputComponentPropsFieldWithReadOnlyEditable` and
115
115
  * `BaseInputComponentPropsFieldWithReadOnlyNonEditable`. `ChangeDetail` is
116
116
  * the list of the arguments that `onChange` gets after the value. It is empty
117
- * by default, thus a handler with one parameter always fits.
117
+ * by default, so a handler with one parameter always fits.
118
118
  */
119
119
  export type BaseInputComponentPropsFieldWithReadOnly<Value = unknown, ChangeDetail extends unknown[] = []> = BaseInputComponentPropsFieldWithReadOnlyEditable<Value, ChangeDetail> | BaseInputComponentPropsFieldWithReadOnlyNonEditable<Value, ChangeDetail>;
@@ -2,7 +2,7 @@ import type { BaseSelectOption, SelectSearch } from '../form/SelectInput/index.j
2
2
  export type UseAsyncSelectOptionsConfig<O extends BaseSelectOption> = {
3
3
  /**
4
4
  * Gives the options that match the query. The hook calls it with an empty
5
- * query at mount, thus the menu is full when the user opens it. The signal
5
+ * query at mount, so the menu is full when the user opens it. The signal
6
6
  * aborts when a newer query starts or when the component unmounts: give it
7
7
  * to `fetch`.
8
8
  */
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  * does its own action.
11
11
  * - A click that ends a text selection (for example, to copy a value).
12
12
  *
13
- * When `enabled` is false, the hook returns `undefined`, thus the row has no
13
+ * When `enabled` is false, the hook returns `undefined`, so the row has no
14
14
  * click handler. The handler is stable: it always calls the latest `handler`.
15
15
  */
16
16
  export declare function useSmartRowClick<T extends HTMLElement = HTMLElement>(handler: () => void, enabled?: boolean): React.MouseEventHandler<T> | undefined;
@@ -12,7 +12,7 @@ var INTERACTIVE_SELECTOR = "button, a, input, select, textarea, [role=\"button\"
12
12
  * does its own action.
13
13
  * - A click that ends a text selection (for example, to copy a value).
14
14
  *
15
- * When `enabled` is false, the hook returns `undefined`, thus the row has no
15
+ * When `enabled` is false, the hook returns `undefined`, so the row has no
16
16
  * click handler. The handler is stable: it always calls the latest `handler`.
17
17
  */
18
18
  function useSmartRowClick(handler, enabled = true) {
@@ -31,7 +31,7 @@ export type PageGroupProps = {
31
31
  */
32
32
  tone?: 'danger' | 'warning';
33
33
  /**
34
- * A short status at the right of the title. Put a Pill here, in the color
34
+ * A short status on the right of the title. Put a Pill here, in the color
35
35
  * of the tone (for example `<Pill tone="danger">Unpaid</Pill>`). Use it
36
36
  * for a problem that the user must fix, not for the "Danger zone". A group
37
37
  * without a tone can show its state (for example a `success` pill for a
@@ -62,7 +62,7 @@ export type PageGroupProps = {
62
62
  };
63
63
  /**
64
64
  * A group of related content in a card, with its own title. Use it in a
65
- * Page.Content in place of a Page.Section when the content of the group has
65
+ * Page.Content instead of a Page.Section when the content of the group has
66
66
  * more than one part (for example a summary and a chart), so the parts read
67
67
  * as one thing. The parts inside the card have no card of their own.
68
68
  */
@@ -8,7 +8,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../ui-public/src/layout/Page/PageGroup.tsx
9
9
  /**
10
10
  * A group of related content in a card, with its own title. Use it in a
11
- * Page.Content in place of a Page.Section when the content of the group has
11
+ * Page.Content instead of a Page.Section when the content of the group has
12
12
  * more than one part (for example a summary and a chart), so the parts read
13
13
  * as one thing. The parts inside the card have no card of their own.
14
14
  */
@@ -36,7 +36,7 @@ declare function Submit(_props: FormHeaderSubmitProps): null;
36
36
  * The title bar of an edit pane: a pane that is the form of one thing (a
37
37
  * settings form, the form of a role or of a webhook). A view pane (a list, a
38
38
  * sidebar, a page to read) uses Pane.Header. The rules of this bar are here,
39
- * thus all the forms have the same bar. The record editor has its own bar.
39
+ * so all the forms have the same bar. The record editor has its own bar.
40
40
  *
41
41
  * Rules:
42
42
  * - Pane.FormHeader renders the parts in a fixed order: title, details,
@@ -21,7 +21,7 @@ function findPart(children, type) {
21
21
  * The title bar of an edit pane: a pane that is the form of one thing (a
22
22
  * settings form, the form of a role or of a webhook). A view pane (a list, a
23
23
  * sidebar, a page to read) uses Pane.Header. The rules of this bar are here,
24
- * thus all the forms have the same bar. The record editor has its own bar.
24
+ * so all the forms have the same bar. The record editor has its own bar.
25
25
  *
26
26
  * Rules:
27
27
  * - Pane.FormHeader renders the parts in a fixed order: title, details,
@@ -11,7 +11,7 @@ type ListFilterState = {
11
11
  open: boolean;
12
12
  /**
13
13
  * Runs with the new state. `true` opens the row and moves the focus to the
14
- * input, also when the row is open. `false` closes the row and clears a
14
+ * input, even when the row is open. `false` closes the row and clears a
15
15
  * filter with a value.
16
16
  */
17
17
  onToggle: (open: boolean) => void;
@@ -6,7 +6,7 @@ import type { Message } from '../../Message.js';
6
6
  */
7
7
  export type ListPreset<T> = {
8
8
  id: string;
9
- /** The name in the menu: it tells exactly what the preset keeps */
9
+ /** The name in the menu: it says exactly what the preset keeps */
10
10
  label: Message;
11
11
  /**
12
12
  * The name after the title while the preset is active ("API tokens ·
@@ -19,7 +19,7 @@ export type PaneHeaderTitleProps = {
19
19
  * The level of the title as a heading. Give it only to a pane inside
20
20
  * <main> or inside a dialog that has content: the title of a detail pane
21
21
  * is level 2. Without it, the title is not a heading (for example the
22
- * title of a list at the left).
22
+ * title of a list on the left).
23
23
  */
24
24
  level?: HeadingLevel;
25
25
  /** The help of the page (a Toolbar.Help element) */
@@ -33,7 +33,7 @@ export type PaneProps = PropsWithChildren<{
33
33
  /**
34
34
  * Puts the pane in a mode (for example the reorder mode of a sidebar).
35
35
  * While the prop is set, the pane draws a primary frame around its
36
- * content, under the title bar. Thus the user sees that the pane is in
36
+ * content, under the title bar. So the user sees that the pane is in
37
37
  * that mode. The title in the header is the name of the mode.
38
38
  *
39
39
  * For a screen reader, the content is then a group with the title as its
@@ -43,9 +43,9 @@ export type PaneProps = PropsWithChildren<{
43
43
  */
44
44
  mode?: {
45
45
  /**
46
- * Stops the mode. It runs when the user pushes the pointer on the page
47
- * out of the pane. Menus and dialogs are not in the page: a click there
48
- * does not run it.
46
+ * Stops the mode. It runs when the user clicks on the page out of the
47
+ * pane. Menus and dialogs are not in the page: a click there does not
48
+ * run it.
49
49
  */
50
50
  onExit: () => void;
51
51
  };
@@ -99,7 +99,7 @@ declare const _default: React.NamedExoticComponent<{
99
99
  /**
100
100
  * Puts the pane in a mode (for example the reorder mode of a sidebar).
101
101
  * While the prop is set, the pane draws a primary frame around its
102
- * content, under the title bar. Thus the user sees that the pane is in
102
+ * content, under the title bar. So the user sees that the pane is in
103
103
  * that mode. The title in the header is the name of the mode.
104
104
  *
105
105
  * For a screen reader, the content is then a group with the title as its
@@ -109,9 +109,9 @@ declare const _default: React.NamedExoticComponent<{
109
109
  */
110
110
  mode?: {
111
111
  /**
112
- * Stops the mode. It runs when the user pushes the pointer on the page
113
- * out of the pane. Menus and dialogs are not in the page: a click there
114
- * does not run it.
112
+ * Stops the mode. It runs when the user clicks on the page out of the
113
+ * pane. Menus and dialogs are not in the page: a click there does not
114
+ * run it.
115
115
  */
116
116
  onExit: () => void;
117
117
  };
@@ -38,20 +38,23 @@ function Pane({ children, ariaLabel, className, busy, header, mode, slideUpToolb
38
38
  }, [inMode]);
39
39
  useEffect(() => {
40
40
  if (!onExit) return;
41
+ let pressedOnPage = false;
41
42
  const handlePointerDown = (event) => {
42
- const pane = ref.current;
43
- const target = event.target;
44
- if (!pane || !(target instanceof Node) || pane.contains(target)) return;
45
- let page = pane;
46
- while (page.parentElement && page.parentElement !== document.body) page = page.parentElement;
47
- if (page.contains(target)) {
43
+ pressedOnPage = isOnPageOutOfPane(ref.current, event.target);
44
+ };
45
+ const handleClick = (event) => {
46
+ const clickedOnPage = pressedOnPage && isOnPageOutOfPane(ref.current, event.target);
47
+ pressedOnPage = false;
48
+ if (clickedOnPage) {
48
49
  exitedByClickOutside.current = true;
49
50
  onExit();
50
51
  }
51
52
  };
52
- document.addEventListener("pointerdown", handlePointerDown);
53
+ document.addEventListener("pointerdown", handlePointerDown, true);
54
+ document.addEventListener("click", handleClick, true);
53
55
  return () => {
54
- document.removeEventListener("pointerdown", handlePointerDown);
56
+ document.removeEventListener("pointerdown", handlePointerDown, true);
57
+ document.removeEventListener("click", handleClick, true);
55
58
  };
56
59
  }, [onExit]);
57
60
  return /* @__PURE__ */ jsx(PaneAriaLabelProvider, {
@@ -95,6 +98,12 @@ function Pane({ children, ariaLabel, className, busy, header, mode, slideUpToolb
95
98
  })
96
99
  });
97
100
  }
101
+ function isOnPageOutOfPane(pane, target) {
102
+ if (!pane || !(target instanceof Node) || pane.contains(target)) return false;
103
+ let page = pane;
104
+ while (page.parentElement && page.parentElement !== document.body) page = page.parentElement;
105
+ return page.contains(target);
106
+ }
98
107
  var Pane_default = Object.assign(React.memo(Pane), {
99
108
  Header: PaneHeader_default,
100
109
  FormHeader: FormHeader_default,
@@ -47,7 +47,7 @@ export type SidebarPanelUncontrolled = {
47
47
  collapse?: never;
48
48
  };
49
49
  /**
50
- * The caller keeps the open state, for example with
50
+ * You keep the open state, for example with
51
51
  * `useLocalStorageSidebarPanelOpen`.
52
52
  */
53
53
  export type SidebarPanelControlled = {
@@ -15,7 +15,7 @@ var LABELS = {
15
15
  /**
16
16
  * The rail of a collapsed secondary pane: a narrow button that opens the
17
17
  * pane. `SplitPane` renders it. The product scenes render it alone, as the
18
- * picture at rest of a collapsed pane (`ui-public/SplitPane/Rail`).
18
+ * picture at rest of a collapsed pane (`SplitPane/Rail`).
19
19
  */
20
20
  var Rail = React.forwardRef(function Rail({ side, state = "collapsed", wrapIcon, onClick, onPointerDown, onHoverChange }, ref) {
21
21
  const { t } = useTranslation();
@@ -3,8 +3,8 @@ export { TOGGLE_LEFT_SIDEBAR_ACTION_ID, TOGGLE_RIGHT_SIDEBAR_ACTION_ID, } from '
3
3
  export type SplitPaneProps = {
4
4
  /**
5
5
  * "split" puts the two panes side by side. "overlay" shows the secondary
6
- * pane over the page, for example on a small viewport. The caller
7
- * computes it, because its own controls use the same breakpoint.
6
+ * pane over the page, for example on a small viewport. You
7
+ * compute it, because its own controls use the same breakpoint.
8
8
  * @default "split"
9
9
  */
10
10
  mode?: 'overlay' | 'split';
@@ -43,7 +43,7 @@ export type SplitPaneProps = {
43
43
  */
44
44
  export type SplitPaneSize = number | `${number}%`;
45
45
  export type SplitPaneCollapse = {
46
- /** Tells if the secondary pane is open. */
46
+ /** Says if the secondary pane is open. */
47
47
  open: boolean;
48
48
  /**
49
49
  * Runs with the new state: `true` when the pane opens, `false` when it
@@ -51,7 +51,7 @@ export type SplitPaneCollapse = {
51
51
  */
52
52
  onToggle: (open: boolean) => void;
53
53
  /**
54
- * Hides the rail of the collapsed pane. Use it when the app gives another
54
+ * Hides the rail of the collapsed pane. Use it when you give another
55
55
  * control that opens the pane, for example the menu button of the mobile
56
56
  * header.
57
57
  * @default false
@@ -59,8 +59,8 @@ export type SplitPaneCollapse = {
59
59
  hideRail?: boolean;
60
60
  /**
61
61
  * Puts the toggle (the button on the sash or the icon of the rail) in an
62
- * element of the app, for example a spotlight that tells the user about
63
- * the toggle.
62
+ * element of yours, for example a spotlight that explains the toggle to the
63
+ * user.
64
64
  */
65
65
  wrapToggle?: (toggle: React.ReactElement) => React.ReactNode;
66
66
  };
@@ -45,16 +45,29 @@ function SplitPane({ mode = "split", minSize: minSizeProp = 200, maxSize, size:
45
45
  const showsRail = Boolean(collapse) && !collapse?.hideRail;
46
46
  const [requestedMinSize, setRequestedMinSize] = useState();
47
47
  const [isSizeAnimated, setSizeAnimated] = useState(false);
48
+ const [keptSize, setKeptSize] = useState();
49
+ const renderedSecondarySize = useRef(void 0);
50
+ const latestSizeProp = useRef(sizeProp);
51
+ latestSizeProp.current = sizeProp;
48
52
  const requestMinSize = useCallback((minSize) => {
49
53
  setRequestedMinSize(minSize);
50
- setSizeAnimated(true);
54
+ if (minSize !== void 0) {
55
+ setSizeAnimated(true);
56
+ return;
57
+ }
58
+ const rendered = renderedSecondarySize.current;
59
+ if (typeof rendered === "number" && rendered !== latestSizeProp.current) setKeptSize({
60
+ from: latestSizeProp.current,
61
+ size: rendered
62
+ });
51
63
  }, []);
52
64
  useEffect(() => {
53
65
  if (!isSizeAnimated) return;
54
66
  const timer = setTimeout(() => setSizeAnimated(false), SIZE_ANIMATION_DURATION);
55
67
  return () => clearTimeout(timer);
56
68
  }, [isSizeAnimated]);
57
- const size = requestedMinSize !== void 0 && typeof sizeProp === "number" ? Math.max(sizeProp, requestedMinSize) : sizeProp;
69
+ const unrequestedSize = keptSize?.from === sizeProp ? keptSize.size : sizeProp;
70
+ const size = requestedMinSize !== void 0 && typeof unrequestedSize === "number" ? Math.max(unrequestedSize, requestedMinSize) : unrequestedSize;
58
71
  const minSize = requestedMinSize !== void 0 && typeof minSizeProp === "number" ? Math.max(minSizeProp, requestedMinSize) : minSizeProp;
59
72
  const isOverlayModeActive = useMemo(() => mode === "overlay", [mode]);
60
73
  const isSecondaryDocked = !isSecondaryCollapsed && !isOverlayModeActive;
@@ -73,6 +86,7 @@ function SplitPane({ mode = "split", minSize: minSizeProp = 200, maxSize, size:
73
86
  ]);
74
87
  const [dragSizes, setDragSizes] = useState();
75
88
  const sizes = dragSizes?.from === baseSizes ? dragSizes.sizes : baseSizes;
89
+ renderedSecondarySize.current = isSecondaryDocked ? sizes[primaryPane === "left" ? 1 : 0] : size;
76
90
  const currentSizes = useRef(sizes);
77
91
  const isCollapsedByDrag = useRef(false);
78
92
  const secondarySide = primaryPane === "left" ? "right" : "left";
@@ -4,7 +4,7 @@ import { SvgIcon } from '../../utils/types.js';
4
4
  type ExtraAction = {
5
5
  /** The text of the action */
6
6
  label: TextMessage;
7
- /** The full URL of the page (the app adds its prefixes) */
7
+ /** The full URL of the page (DatoCMS adds its prefixes) */
8
8
  to: string;
9
9
  /** The icon of the action */
10
10
  icon?: SvgIcon;
@@ -13,7 +13,7 @@ export type AddNewButtonProps = {
13
13
  /** The text of the button ("Add new webhook") */
14
14
  label: TextMessage;
15
15
  /**
16
- * The full URL of the page of the new item (the app adds its prefixes,
16
+ * The full URL of the page of the new item (DatoCMS adds its prefixes,
17
17
  * for example the environment)
18
18
  */
19
19
  to: string;
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  export type HelpProps = {
3
- /** The text that tells what the page is for: two short sentences, plain text */
3
+ /** The text that says what the page is for: two short sentences, plain text */
4
4
  children: ReactNode;
5
5
  /**
6
6
  * The page of the documentation about the subject. A "Learn more" link to
@@ -9,14 +9,14 @@ export type HelpProps = {
9
9
  docsUrl?: string;
10
10
  };
11
11
  /**
12
- * A "?" button that opens the text that tells what the page is for. Give
12
+ * A "?" button that opens the text that says what the page is for. Give
13
13
  * Help to the "help" prop of Toolbar.Title, not as a sibling of the title.
14
14
  */
15
15
  declare function Help({ children, docsUrl }: HelpProps): React.JSX.Element;
16
16
  /**
17
17
  * The text of a Help, without the "?" button. Help shows it in its popover.
18
18
  * A title that opens a menu (Toolbar.PresetsTitle) shows it at the bottom of
19
- * the menu ("footer"), with "secondary", in place of the "?" button.
19
+ * the menu ("footer"), with "secondary", instead of the "?" button.
20
20
  */
21
21
  export declare function HelpBody({ children, docsUrl, secondary, }: HelpProps & {
22
22
  /**
@@ -17,7 +17,7 @@ function Trigger({ open, onTrigger }) {
17
17
  });
18
18
  }
19
19
  /**
20
- * A "?" button that opens the text that tells what the page is for. Give
20
+ * A "?" button that opens the text that says what the page is for. Give
21
21
  * Help to the "help" prop of Toolbar.Title, not as a sibling of the title.
22
22
  */
23
23
  function Help({ children, docsUrl }) {
@@ -36,7 +36,7 @@ function Help({ children, docsUrl }) {
36
36
  /**
37
37
  * The text of a Help, without the "?" button. Help shows it in its popover.
38
38
  * A title that opens a menu (Toolbar.PresetsTitle) shows it at the bottom of
39
- * the menu ("footer"), with "secondary", in place of the "?" button.
39
+ * the menu ("footer"), with "secondary", instead of the "?" button.
40
40
  */
41
41
  function HelpBody({ children, docsUrl, secondary = false }) {
42
42
  const { t } = useTranslation();
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  /**
3
- * A short quiet text before a button at the end of the toolbar, that tells
3
+ * A short quiet text before a button at the end of the toolbar, that says
4
4
  * why the button is there (for example "New version available!" before
5
5
  * "Update"). It ends with an ellipsis when the toolbar is narrow.
6
6
  */
@@ -2,7 +2,7 @@ import "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  //#region ../ui-public/src/layout/Toolbar/Note.tsx
4
4
  /**
5
- * A short quiet text before a button at the end of the toolbar, that tells
5
+ * A short quiet text before a button at the end of the toolbar, that says
6
6
  * why the button is there (for example "New version available!" before
7
7
  * "Update"). It ends with an ellipsis when the toolbar is narrow.
8
8
  */
@@ -28,7 +28,7 @@ export type ToolbarPaginationProps = Omit<PaginationProps, 'maxPagesToBeShown' |
28
28
  /**
29
29
  * The pages of a list. The pages show when the list has more than one page.
30
30
  * The "Show" select shows when the list has more items than its smallest
31
- * option, thus the user can always go back to a smaller page.
31
+ * option, so the user can always go back to a smaller page.
32
32
  */
33
33
  declare function ToolbarPagination({ ariaLabel, totalEntries, compact, perPage, currentPage, onChange, disabled, perPageSelect, }: ToolbarPaginationProps): React.JSX.Element | null;
34
34
  export default ToolbarPagination;
@@ -14,7 +14,7 @@ var DEFAULT_PER_PAGE_OPTIONS = [
14
14
  /**
15
15
  * The pages of a list. The pages show when the list has more than one page.
16
16
  * The "Show" select shows when the list has more items than its smallest
17
- * option, thus the user can always go back to a smaller page.
17
+ * option, so the user can always go back to a smaller page.
18
18
  */
19
19
  function ToolbarPagination({ ariaLabel, totalEntries, compact, perPage, currentPage, onChange, disabled, perPageSelect }) {
20
20
  const paneAriaLabel = usePaneAriaLabel();
@@ -13,17 +13,17 @@ export type PresetsTitleProps = {
13
13
  children: ReactNode;
14
14
  /**
15
15
  * The content at the bottom of the menu, after a separator. The title
16
- * opens a menu, thus a "?" button next to it is one control too many: put
16
+ * opens a menu, so a "?" button next to it is one control too many: put
17
17
  * the help of the page here (a Toolbar.HelpBody with "secondary").
18
18
  */
19
19
  footer?: ReactNode;
20
20
  /** The level of the title as a heading (see Toolbar.Title) */
21
21
  level?: HeadingLevel;
22
- /** The id of the heading, thus other elements can use it as their label */
22
+ /** The id of the heading, so other elements can use it as their label */
23
23
  id?: string;
24
24
  };
25
25
  export type PresetsTitleOptionProps = {
26
- /** The name of the preset: it tells exactly what the preset keeps */
26
+ /** The name of the preset: it says exactly what the preset keeps */
27
27
  children: ReactNode;
28
28
  /** The number of the items that the preset keeps */
29
29
  count?: number;
@@ -9,8 +9,8 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  /**
10
10
  * A toolbar title that is the menu of the presets of a list (views of the
11
11
  * list: fixed filters with a name). It only draws the title and the menu:
12
- * the caller gives the options and keeps the active preset. In a Pane,
13
- * Pane.Header.Title does this (see useFilteredList in ui-public/Pane).
12
+ * you give the options and keep the active preset. In a Pane,
13
+ * Pane.Header.Title does this (see useFilteredList in Pane).
14
14
  */
15
15
  var PresetsTitle = React.memo(function PresetsTitle({ label, qualifier, children, footer, level, id }) {
16
16
  const { tc } = useTranslation();
@@ -2,9 +2,9 @@ import React from 'react';
2
2
  import { ButtonSize } from '../../actions/Button.js';
3
3
  import { type TextMessage } from '../../Message.js';
4
4
  import { SvgIcon } from '../../utils/types.js';
5
- /** An action that opens a page of the app */
5
+ /** An action that opens a page of DatoCMS */
6
6
  type LinkActionItem = {
7
- /** A page of the app that the action opens */
7
+ /** A page of DatoCMS that the action opens */
8
8
  to: string;
9
9
  onPick?: never;
10
10
  };
@@ -40,7 +40,7 @@ export type PrimaryButtonProps = {
40
40
  */
41
41
  iconOnly?: boolean;
42
42
  /**
43
- * The size of the button. The default is the size of the place: "milli"
43
+ * The size of the button. The default is the size of its container: "milli"
44
44
  * in a toolbar, "small" out of a toolbar.
45
45
  */
46
46
  size?: ButtonSize;
@@ -11,7 +11,7 @@ export type ToolbarProps = {
11
11
  borderBottom?: boolean;
12
12
  /**
13
13
  * The toolbar holds fields (a filter form): its buttons have the height
14
- * of the fields ("field" size), thus their edges align
14
+ * of the fields ("field" size), so their edges align
15
15
  */
16
16
  fields?: boolean;
17
17
  /**
@@ -21,7 +21,10 @@ function Root({ children, style, borderBottom, fields, onClose, className }) {
21
21
  };
22
22
  return /* @__PURE__ */ jsx("div", {
23
23
  onKeyDown: onClose ? handleKeyDown : void 0,
24
- className: classNames("Toolbar", style && `Toolbar--${style}`, { "Toolbar--border-bottom": borderBottom }, className),
24
+ className: classNames("Toolbar", style && `Toolbar--${style}`, {
25
+ "Toolbar--border-bottom": borderBottom,
26
+ "Toolbar--fields": fields
27
+ }, className),
25
28
  children: /* @__PURE__ */ jsx(InToolbarContext.Provider, {
26
29
  value: true,
27
30
  children: /* @__PURE__ */ jsx(ButtonSizeContext.Provider, {