datocms-react-ui 3.1.0-next.6 → 4.0.0-next.8

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 +2 -1
  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 +1 -1
  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
@@ -0,0 +1,22 @@
1
+ import { forwardRef } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/lucide-static/icons/braces.svg?react
4
+ var SvgBraces = (props, ref) => /* @__PURE__ */ jsxs("svg", {
5
+ className: "lucide lucide-braces",
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: 2,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": "true",
16
+ ref,
17
+ ...props,
18
+ children: [/* @__PURE__ */ jsx("path", { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }), /* @__PURE__ */ jsx("path", { d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" })]
19
+ });
20
+ var ForwardRef = forwardRef(SvgBraces);
21
+ //#endregion
22
+ export { ForwardRef as default };
@@ -0,0 +1,47 @@
1
+ import { forwardRef } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/lucide-static/icons/hash.svg?react
4
+ var SvgHash = (props, ref) => /* @__PURE__ */ jsxs("svg", {
5
+ className: "lucide lucide-hash",
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: 2,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": "true",
16
+ ref,
17
+ ...props,
18
+ children: [
19
+ /* @__PURE__ */ jsx("line", {
20
+ x1: 4,
21
+ x2: 20,
22
+ y1: 9,
23
+ y2: 9
24
+ }),
25
+ /* @__PURE__ */ jsx("line", {
26
+ x1: 4,
27
+ x2: 20,
28
+ y1: 15,
29
+ y2: 15
30
+ }),
31
+ /* @__PURE__ */ jsx("line", {
32
+ x1: 10,
33
+ x2: 8,
34
+ y1: 3,
35
+ y2: 21
36
+ }),
37
+ /* @__PURE__ */ jsx("line", {
38
+ x1: 16,
39
+ x2: 14,
40
+ y1: 3,
41
+ y2: 21
42
+ })
43
+ ]
44
+ });
45
+ var ForwardRef = forwardRef(SvgHash);
46
+ //#endregion
47
+ export { ForwardRef as default };
@@ -0,0 +1,28 @@
1
+ import { forwardRef } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/lucide-static/icons/letter-text.svg?react
4
+ var SvgLetterText = (props, ref) => /* @__PURE__ */ jsxs("svg", {
5
+ className: "lucide lucide-letter-text",
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: 2,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": "true",
16
+ ref,
17
+ ...props,
18
+ children: [
19
+ /* @__PURE__ */ jsx("path", { d: "M15 5h6" }),
20
+ /* @__PURE__ */ jsx("path", { d: "M15 12h6" }),
21
+ /* @__PURE__ */ jsx("path", { d: "M3 19h18" }),
22
+ /* @__PURE__ */ jsx("path", { d: "m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12" }),
23
+ /* @__PURE__ */ jsx("path", { d: "M3.92 10h6.16" })
24
+ ]
25
+ });
26
+ var ForwardRef = forwardRef(SvgLetterText);
27
+ //#endregion
28
+ export { ForwardRef as default };
@@ -0,0 +1,32 @@
1
+ import { forwardRef } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/lucide-static/icons/rows-3.svg?react
4
+ var SvgRows3 = (props, ref) => /* @__PURE__ */ jsxs("svg", {
5
+ className: "lucide lucide-rows-3",
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: 2,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": "true",
16
+ ref,
17
+ ...props,
18
+ children: [
19
+ /* @__PURE__ */ jsx("rect", {
20
+ width: 18,
21
+ height: 18,
22
+ x: 3,
23
+ y: 3,
24
+ rx: 2
25
+ }),
26
+ /* @__PURE__ */ jsx("path", { d: "M21 9H3" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M21 15H3" })
28
+ ]
29
+ });
30
+ var ForwardRef = forwardRef(SvgRows3);
31
+ //#endregion
32
+ export { ForwardRef as default };
@@ -0,0 +1,32 @@
1
+ import { forwardRef } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region ../../node_modules/lucide-static/icons/toggle-right.svg?react
4
+ var SvgToggleRight = (props, ref) => /* @__PURE__ */ jsxs("svg", {
5
+ className: "lucide lucide-toggle-right",
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ viewBox: "0 0 24 24",
10
+ fill: "none",
11
+ stroke: "currentColor",
12
+ strokeWidth: 2,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ "aria-hidden": "true",
16
+ ref,
17
+ ...props,
18
+ children: [/* @__PURE__ */ jsx("circle", {
19
+ cx: 15,
20
+ cy: 12,
21
+ r: 3
22
+ }), /* @__PURE__ */ jsx("rect", {
23
+ width: 20,
24
+ height: 14,
25
+ x: 2,
26
+ y: 5,
27
+ rx: 7
28
+ })]
29
+ });
30
+ var ForwardRef = forwardRef(SvgToggleRight);
31
+ //#endregion
32
+ export { ForwardRef as default };
@@ -6,7 +6,7 @@ var en_default = {
6
6
  "a11y.pagination.goToPage": "Go to page {page}",
7
7
  "a11y.pagination.label": "{name} pagination",
8
8
  "a11y.pagination.next": "Next page",
9
- "a11y.pagination.perPage": "Items per page",
9
+ "a11y.pagination.perPage": "Results per page",
10
10
  "a11y.pagination.previous": "Previous page",
11
11
  "a11y.selectInput.remove": "Remove",
12
12
  "a11y.table.selectAll": "Select all rows",
@@ -21,14 +21,31 @@ var en_default = {
21
21
  "admin.listDetail.panel.failed.title": "The event could not be loaded",
22
22
  "admin.listDetail.panel.loading": "Loading the event…",
23
23
  "admin.listPresets.all": "All",
24
+ "audioPlayer.pause": "Pause",
25
+ "audioPlayer.play": "Play",
24
26
  "blankSlate.documentation": "Documentation",
25
- "clipboard.copied": "Copied!",
27
+ "clipboard.copied": "Copied",
26
28
  "clipboard.copy": "Copy",
27
29
  "clipboard.copyId": "Copy ID",
28
30
  "clipboard.open": "Open in a new tab",
29
31
  "date.today": "Today",
30
- "dropdown.search": "Search...",
31
- "dropdown.selectOption": "Please, select an option below:",
32
+ "dateTimeInput.calendar": "Calendar",
33
+ "dateTimeInput.currentMonth": "Current month",
34
+ "dateTimeInput.nextMonth": "Next month",
35
+ "dateTimeInput.openCalendar": "Open the calendar",
36
+ "dateTimeInput.previousMonth": "Previous month",
37
+ "dateTimeInput.time": "Time",
38
+ "dateTimeInput.timezone": "Time zone",
39
+ "dateTimeRangeInput.apply": "Apply",
40
+ "dateTimeRangeInput.custom": "Custom range",
41
+ "dateTimeRangeInput.end": "End date",
42
+ "dateTimeRangeInput.endTime": "End time",
43
+ "dateTimeRangeInput.from": "From {date}",
44
+ "dateTimeRangeInput.start": "Start date",
45
+ "dateTimeRangeInput.startTime": "Start time",
46
+ "dateTimeRangeInput.until": "Until {date}",
47
+ "dropdown.search": "Search…",
48
+ "dropdown.selectOption": "Select an option below:",
32
49
  "editorToolbar.addImage": "Add image",
33
50
  "editorToolbar.addTable": "Add table",
34
51
  "editorToolbar.alignCenter": "Align center",
@@ -46,6 +63,47 @@ var en_default = {
46
63
  "environment.primary": "Primary",
47
64
  "environment.sandbox": "Sandbox",
48
65
  "field.clearValue": "Clear",
66
+ "fieldGroup.boolean.title": "Boolean",
67
+ "fieldGroup.color.title": "Color",
68
+ "fieldGroup.datetime.title": "Date and time",
69
+ "fieldGroup.json.title": "JSON",
70
+ "fieldGroup.location.title": "Location",
71
+ "fieldGroup.media.title": "Media",
72
+ "fieldGroup.number.title": "Number",
73
+ "fieldGroup.reference.title": "Links",
74
+ "fieldGroup.rich_text.title": "Modular Content",
75
+ "fieldGroup.seo.title": "SEO",
76
+ "fieldGroup.text.title": "Text",
77
+ "fieldType.boolean": "Boolean",
78
+ "fieldType.color": "Color",
79
+ "fieldType.date": "Date",
80
+ "fieldType.date_time": "DateTime",
81
+ "fieldType.file": "Single asset",
82
+ "fieldType.float": "Floating-point number",
83
+ "fieldType.gallery": "Asset gallery",
84
+ "fieldType.integer": "Integer number",
85
+ "fieldType.json": "JSON",
86
+ "fieldType.lat_lon": "Geolocation",
87
+ "fieldType.link": "Single link",
88
+ "fieldType.links": "Multiple links",
89
+ "fieldType.rich_text": "Modular Content (multiple blocks)",
90
+ "fieldType.seo": "SEO and Social",
91
+ "fieldType.single_block": "Modular Content (single block)",
92
+ "fieldType.slug": "Slug",
93
+ "fieldType.string": "Single-line string",
94
+ "fieldType.structured_text": "Structured Text",
95
+ "fieldType.text": "Multiple-paragraph text",
96
+ "fieldType.video": "External video",
97
+ "filterBuilder.add": "Add filter",
98
+ "filterBuilder.addMenu": "Choose what to filter by",
99
+ "filterBuilder.argument": "{argument} of {field}",
100
+ "filterBuilder.clear": "Clear filters",
101
+ "filterBuilder.condition": "{field} {operator}",
102
+ "filterBuilder.empty": "No filters set",
103
+ "filterBuilder.field": "Field",
104
+ "filterBuilder.operator": "Operator of {field}",
105
+ "filterBuilder.remove": "Remove the {field} filter",
106
+ "filterBuilder.value": "Value of {field}",
49
107
  "form.localizedField": "The values for this field vary depending on the locale",
50
108
  "form.optional": "(optional)",
51
109
  "form.password.hide": "Hide password",
@@ -57,7 +115,7 @@ var en_default = {
57
115
  "hotkeys.closePopover": "Close popover",
58
116
  "hotkeys.filterList": "Filter the list",
59
117
  "idText.label": "ID",
60
- "imageMetadata.analyzingUpload": "Upload complete, analysing…",
118
+ "imageMetadata.analyzingUpload": "Upload complete, analyzing…",
61
119
  "imageMetadata.cancelUpload": "Cancel",
62
120
  "imageMetadata.noMetadata": "No metadata set",
63
121
  "imageMetadata.uploadInProgress": "{percent, plural, =0 {In queue…} one {Uploading ({percent}%)…} other {Uploading ({percent}%)…}}",
@@ -76,6 +134,8 @@ var en_default = {
76
134
  "pagination.next": "Next",
77
135
  "pagination.previous": "Previous",
78
136
  "pagination.show": "Show: {perPage}",
137
+ "recordRow.fallbackTitle": "Record #{id}",
138
+ "recordRow.loading": "Loading the record…",
79
139
  "selectInput.create": "Create “{value}”",
80
140
  "selectInput.loading": "Loading…",
81
141
  "selectInput.noOptions": "No options",
@@ -109,7 +169,16 @@ var en_default = {
109
169
  "toolbar.help": "About this page",
110
170
  "toolbar.learnMore": "Learn more",
111
171
  "upload.threatDetected": "Threat detected",
172
+ "uploadCard.fallbackTitle": "Asset #{id}",
173
+ "uploadCard.loading": "Loading the asset…",
174
+ "uploadPreview.encodingVideo": "Encoding video…",
112
175
  "usage.meterLabel": "{percent}% of the limit",
176
+ "userType.account": "Project owner",
177
+ "userType.apiToken": "API token",
178
+ "userType.organization": "Project owner",
179
+ "userType.siteInvitation": "Invitation",
180
+ "userType.ssoUser": "SSO user",
181
+ "userType.user": "Collaborator",
113
182
  "validityTriangle.current": "Current version not valid",
114
183
  "validityTriangle.invalidVersion": "This version is not valid",
115
184
  "validityTriangle.published": "Published version not valid"
@@ -1,9 +1,8 @@
1
1
  import type { ReactElement } from 'react';
2
2
  /**
3
3
  * A translation key with its values, for example `{ id: 'button.save' }`.
4
- * The texts adapter of the host gives the text of the key: the resources of
5
- * i18next in the apps, the texts of ui-public and the `texts` map in
6
- * `BundledTexts`. See the "Texts provider" docs page.
4
+ * The texts adapter of the host gives the text of the key. See "Texts" on
5
+ * the `Canvas` docs page.
7
6
  */
8
7
  export type IntlMessage = {
9
8
  id: string;
@@ -21,7 +20,7 @@ export type HtmlMessage = {
21
20
  */
22
21
  export type Message = string | ReactElement | IntlMessage | HtmlMessage;
23
22
  /**
24
- * A text that goes in an attribute (for example `aria-label`), thus it cannot
23
+ * A text that goes in an attribute (for example `aria-label`), so it cannot
25
24
  * be a React element or HTML.
26
25
  */
27
26
  export type TextMessage = string | IntlMessage;
@@ -1,2 +1,2 @@
1
1
  /** A key of a text of ui-public, as in `locales/en.json` */
2
- export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.empty.description' | 'admin.listDetail.panel.empty.title' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'usage.meterLabel' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
2
+ export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.empty.description' | 'admin.listDetail.panel.empty.title' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'audioPlayer.pause' | 'audioPlayer.play' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dateTimeInput.calendar' | 'dateTimeInput.currentMonth' | 'dateTimeInput.nextMonth' | 'dateTimeInput.openCalendar' | 'dateTimeInput.previousMonth' | 'dateTimeInput.time' | 'dateTimeInput.timezone' | 'dateTimeRangeInput.apply' | 'dateTimeRangeInput.custom' | 'dateTimeRangeInput.end' | 'dateTimeRangeInput.endTime' | 'dateTimeRangeInput.from' | 'dateTimeRangeInput.start' | 'dateTimeRangeInput.startTime' | 'dateTimeRangeInput.until' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'fieldGroup.boolean.title' | 'fieldGroup.color.title' | 'fieldGroup.datetime.title' | 'fieldGroup.json.title' | 'fieldGroup.location.title' | 'fieldGroup.media.title' | 'fieldGroup.number.title' | 'fieldGroup.reference.title' | 'fieldGroup.rich_text.title' | 'fieldGroup.seo.title' | 'fieldGroup.text.title' | 'fieldType.boolean' | 'fieldType.color' | 'fieldType.date' | 'fieldType.date_time' | 'fieldType.file' | 'fieldType.float' | 'fieldType.gallery' | 'fieldType.integer' | 'fieldType.json' | 'fieldType.lat_lon' | 'fieldType.link' | 'fieldType.links' | 'fieldType.rich_text' | 'fieldType.seo' | 'fieldType.single_block' | 'fieldType.slug' | 'fieldType.string' | 'fieldType.structured_text' | 'fieldType.text' | 'fieldType.video' | 'filterBuilder.add' | 'filterBuilder.addMenu' | 'filterBuilder.argument' | 'filterBuilder.clear' | 'filterBuilder.condition' | 'filterBuilder.empty' | 'filterBuilder.field' | 'filterBuilder.operator' | 'filterBuilder.remove' | 'filterBuilder.value' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'recordRow.fallbackTitle' | 'recordRow.loading' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'uploadCard.fallbackTitle' | 'uploadCard.loading' | 'uploadPreview.encodingVideo' | 'usage.meterLabel' | 'userType.account' | 'userType.apiToken' | 'userType.organization' | 'userType.siteInvitation' | 'userType.ssoUser' | 'userType.user' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  //#region ../ui-public/src/actions/Actions/ActionTooltip.tsx
6
6
  /**
7
7
  * A tooltip with the name and the keys of an action of the registry.
8
- * `label` takes the place of the name (the label of an icon-only button).
8
+ * `label` replaces the name (the label of an icon-only button).
9
9
  * Without `label`, an action with no keys has no tooltip: the button already
10
10
  * shows its name.
11
11
  */
@@ -65,7 +65,7 @@ export type Action = {
65
65
  */
66
66
  layerSafe?: boolean;
67
67
  /**
68
- * The area of the app that holds the page or the action, for example
68
+ * The area of DatoCMS that holds the page or the action, for example
69
69
  * "Usage" for "By project". The command palette and the list of the
70
70
  * shortcuts show it before the name, because a short name is not clear
71
71
  * without its menu group.
@@ -128,7 +128,7 @@ export declare function ActionsProvider({ children }: {
128
128
  * A layer of actions, for example a dialog. While it is open, the actions
129
129
  * under it are off: all of them under a dialog, the page and the regions
130
130
  * under a popover. An action with `layerSafe` stays on. A dialog that opens
131
- * later is on top, also when it is not inside the other dialogs in the tree.
131
+ * later is on top, even when it is not inside the other dialogs in the tree.
132
132
  */
133
133
  export declare function ActionLayer({ kind, actions, active, children, }: {
134
134
  /**
@@ -213,7 +213,7 @@ var ActionsRegistry = class {
213
213
  }
214
214
  /**
215
215
  * The action with this id: the active one, else the one that would win.
216
- * A menu runs an action of a region also when the pointer is in the menu.
216
+ * A menu runs an action of a region even when the pointer is in the menu.
217
217
  * With an `origin` (the dropdown of the menu), only the regions that hold
218
218
  * the origin count: each row of a list registers the same ids, and the
219
219
  * menu of a row must not run the action of another row, nor a menu out of
@@ -345,7 +345,7 @@ function RootActionsProvider({ children }) {
345
345
  * A layer of actions, for example a dialog. While it is open, the actions
346
346
  * under it are off: all of them under a dialog, the page and the regions
347
347
  * under a popover. An action with `layerSafe` stays on. A dialog that opens
348
- * later is on top, also when it is not inside the other dialogs in the tree.
348
+ * later is on top, even when it is not inside the other dialogs in the tree.
349
349
  */
350
350
  function ActionLayer({ kind, actions, active = true, children }) {
351
351
  const registry = useContext(RegistryContext);
@@ -15,7 +15,7 @@ export type ButtonTone = 'soft' | 'ghost' | 'primary' | 'alert' | 'ghost-alert'
15
15
  */
16
16
  export type ButtonSize = 'micro' | 'milli' | 'small' | 'field' | 'regular' | 'large';
17
17
  /**
18
- * The size of the buttons of the place, when a button does not give one:
18
+ * The size of the buttons in their container, when a button does not give one:
19
19
  * "small" by default, "milli" in a toolbar (the toolbar is short: two
20
20
  * insets plus one line of the title, and a "small" button almost touches
21
21
  * its top and bottom edges), "field" in a toolbar of fields (a filter bar:
@@ -35,8 +35,8 @@ type WithLabel = {
35
35
  tooltip?: ActionTooltipOptions;
36
36
  };
37
37
  /**
38
- * The name and the keys of an action of the registry (`ui-public/Actions`), in
39
- * the tooltip. An icon-only button shows its label in place of the name.
38
+ * The name and the keys of an action of the registry (`Actions`), in
39
+ * the tooltip. An icon-only button shows its label instead of the name.
40
40
  * When the action has no keys or does not exist, the tooltip has no keys:
41
41
  * an icon-only button shows its label, and a button with a label shows no
42
42
  * tooltip.
@@ -91,7 +91,7 @@ type ClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => unknown;
91
91
  /** The state of a button element. A link cannot show it. */
92
92
  type ButtonElementState = {
93
93
  /**
94
- * The action runs: the button shows a spinner in the place of the icon
94
+ * The action runs: the button shows a spinner instead of the icon
95
95
  * (before the label when there is no icon), and it is disabled. An
96
96
  * "onClick" that returns a promise sets it automatically.
97
97
  */
@@ -115,9 +115,9 @@ type ClickAction = ButtonElementState & {
115
115
  submit?: never;
116
116
  newTab?: never;
117
117
  };
118
- /** A link to a page of the app */
118
+ /** A link to a page of DatoCMS */
119
119
  type LinkAction = LinkElementState & {
120
- /** The page of the app: the path with its query, for example "/editor?tab=x" */
120
+ /** The page of DatoCMS: the path with its query, for example "/editor?tab=x" */
121
121
  to: string;
122
122
  /** Opens the page in a new tab (for example from a modal, to keep it open) */
123
123
  newTab?: boolean;
@@ -125,7 +125,7 @@ type LinkAction = LinkElementState & {
125
125
  href?: never;
126
126
  submit?: never;
127
127
  };
128
- /** A link to a page out of the app */
128
+ /** A link to another site */
129
129
  type ExternalLinkAction = LinkElementState & {
130
130
  href: string;
131
131
  /** Opens the page in a new tab (for example the docs) */
@@ -166,15 +166,15 @@ export type ButtonProps = {
166
166
  */
167
167
  tone?: ButtonTone;
168
168
  /**
169
- * The size of the place by default: "milli" in a toolbar, "small" out of
170
- * a toolbar (see useButtonSize)
169
+ * The default size: "milli" in a toolbar, "small" out of a toolbar (see
170
+ * useButtonSize)
171
171
  */
172
172
  size?: ButtonSize;
173
173
  /** The button fills the width of its container */
174
174
  expand?: boolean;
175
175
  /** Give a reason when the user must know why the button is disabled */
176
176
  disabled?: Disabled;
177
- /** Only for the place of the button (margin, alignment), not for its look */
177
+ /** Only for the position of the button (margin, alignment), not for its look */
178
178
  className?: string;
179
179
  } & HtmlProps & ButtonContent & ButtonAction;
180
180
  /** The classes of the look of a button. Button and ButtonTrigger use them. */
@@ -12,7 +12,7 @@ import classNames from "classnames";
12
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region ../ui-public/src/actions/Button.tsx
14
14
  /**
15
- * The size of the buttons of the place, when a button does not give one:
15
+ * The size of the buttons in their container, when a button does not give one:
16
16
  * "small" by default, "milli" in a toolbar (the toolbar is short: two
17
17
  * insets plus one line of the title, and a "small" button almost touches
18
18
  * its top and bottom edges), "field" in a toolbar of fields (a filter bar:
@@ -8,7 +8,7 @@ export type MenuProps = {
8
8
  /**
9
9
  * The side of the trigger where the menu opens. When there is no space
10
10
  * there, the menu goes to the other side. Use "bottom-end" for a trigger
11
- * at the right of its place (the "⋮" of a row).
11
+ * on the right of its container (the "⋮" of a row).
12
12
  * @default "bottom-start"
13
13
  */
14
14
  placement?: Placement;
@@ -20,7 +20,7 @@ export type MenuProps = {
20
20
  /**
21
21
  * A search field at the top of the menu. With "auto", it shows when the
22
22
  * menu has more than 5 options. With "{ placeholder }", it always shows,
23
- * with that text in place of "Search...".
23
+ * with that text instead of "Search...".
24
24
  * @default "auto"
25
25
  */
26
26
  contextualSearch?: ContextualSearch;
@@ -19,7 +19,7 @@ type PickAction = {
19
19
  action?: never;
20
20
  };
21
21
  /**
22
- * Runs an action of the registry (`ui-public/Actions`). The keys of the action
22
+ * Runs an action of the registry (`Actions`). The keys of the action
23
23
  * show at the end of the option. The option is disabled while the action
24
24
  * gives a reason, or when the action does not exist now.
25
25
  */
@@ -32,11 +32,11 @@ type RegistryAction = {
32
32
  newTab?: never;
33
33
  };
34
34
  /**
35
- * A link to a page of the app. When the page is open, the option gets
35
+ * A link to a page of DatoCMS. When the page is open, the option gets
36
36
  * aria-current="page".
37
37
  */
38
38
  type LinkAction = {
39
- /** The page of the app that the option opens */
39
+ /** The page of DatoCMS that the option opens */
40
40
  to: string;
41
41
  /** Opens the page in a new tab */
42
42
  newTab?: boolean;
@@ -44,7 +44,7 @@ type LinkAction = {
44
44
  href?: never;
45
45
  action?: never;
46
46
  };
47
- /** A link to a page out of the app */
47
+ /** A link to another site */
48
48
  type ExternalLinkAction = {
49
49
  /** The URL that the option opens */
50
50
  href: string;
@@ -67,7 +67,7 @@ type NoAction = {
67
67
  };
68
68
  /**
69
69
  * The action of an option: a pick handler, an action of the registry, a
70
- * page of the app, or a page out of the app. One option has one action.
70
+ * page of DatoCMS, or another site. One option has one action.
71
71
  */
72
72
  export type OptionAction = PickAction | RegistryAction | LinkAction | ExternalLinkAction | NoAction;
73
73
  /** The place of an option in a sortable Dropdown.Group */
@@ -116,7 +116,7 @@ export type OptionProps = OptionAction & {
116
116
  */
117
117
  sortable?: OptionSortable;
118
118
  /**
119
- * With a reason, the option is disabled and its tooltip tells why. With
119
+ * With a reason, the option is disabled and its tooltip says why. With
120
120
  * "interactive", the reason has links: it shows in a HoverCard.
121
121
  */
122
122
  disabled?: Disabled;
@@ -143,7 +143,7 @@ export type OptionProps = OptionAction & {
143
143
  */
144
144
  keywords?: string[];
145
145
  /**
146
- * Shows a chevron after the label, and a screen reader tells if the
146
+ * Shows a chevron after the label, and a screen reader says if the
147
147
  * submenu is open. Dropdown.Submenu gives it.
148
148
  */
149
149
  submenu?: OptionSubmenu;
@@ -25,7 +25,7 @@ type PropTypes<P extends AbstractTriggerComponentProps> = {
25
25
  * it runs only when the menu opens.
26
26
  */
27
27
  children: ReactElement | (() => ReactElement);
28
- /** Only for the place of the dropdown, not for its look */
28
+ /** Only for the position of the dropdown, not for its look */
29
29
  className?: string;
30
30
  /** Lets the parent open the menu from code (see DropdownHandle) */
31
31
  controlRef?: React.Ref<DropdownHandle>;
@@ -32,15 +32,15 @@ export type ButtonTriggerProps = DropdownTriggerBaseProps & {
32
32
  */
33
33
  tone?: Extract<ButtonTone, 'soft' | 'ghost' | 'primary'>;
34
34
  /**
35
- * The size of the place by default: "milli" in a toolbar, "small" out of
36
- * a toolbar (see useButtonSize)
35
+ * The default size: "milli" in a toolbar, "small" out of a toolbar (see
36
+ * useButtonSize)
37
37
  */
38
38
  size?: ButtonSize;
39
39
  /** The button fills the width of its container */
40
40
  expand?: boolean;
41
41
  /**
42
- * The menu cannot open. Give a reason when the user must know why: it
43
- * takes the place of the tooltip.
42
+ * The menu cannot open. Give a reason when the user must know why. It
43
+ * replaces the tooltip.
44
44
  */
45
45
  disabled?: Disabled;
46
46
  /**
@@ -49,7 +49,7 @@ export type ButtonTriggerProps = DropdownTriggerBaseProps & {
49
49
  * menu is open: the menu is in its place.
50
50
  */
51
51
  tooltip?: Message | false | null | ActionTooltipOptions;
52
- /** Only for the place of the button, not for its look */
52
+ /** Only for the position of the button, not for its look */
53
53
  className?: string;
54
54
  } & ButtonTriggerContent;
55
55
  /** The trigger of a Dropdown with the look of a Button */
@@ -4,14 +4,14 @@ import { DropdownTriggerBaseProps } from './types.js';
4
4
  export type DropdownTriggerButtonProps = DropdownTriggerBaseProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'id' | 'onMouseDown' | 'onClick' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'aria-controls' | 'disabled'> & {
5
5
  /**
6
6
  * The menu cannot open. With a reason, the button keeps the focus and
7
- * its tooltip tells why.
7
+ * its tooltip says why.
8
8
  */
9
9
  disabled?: Disabled;
10
10
  };
11
11
  declare const _default: React.NamedExoticComponent<DropdownTriggerBaseProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id" | "type" | "aria-controls" | "aria-expanded" | "aria-haspopup" | "onKeyDown" | "onClick" | "onMouseDown" | "disabled"> & {
12
12
  /**
13
13
  * The menu cannot open. With a reason, the button keeps the focus and
14
- * its tooltip tells why.
14
+ * its tooltip says why.
15
15
  */
16
16
  disabled?: Disabled;
17
17
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -10,25 +10,25 @@ export type IconTriggerProps = DropdownTriggerBaseProps & {
10
10
  /**
11
11
  * The accessible name of the button and the text of its tooltip. If you
12
12
  * do not give a label, the button gets the generic name "Actions" and no
13
- * tooltip: "Actions" tells nothing that the "⋮" does not tell.
13
+ * tooltip, because "Actions" says nothing that the "⋮" does not say.
14
14
  */
15
15
  label?: TextMessage;
16
- /** The size of the place in a toolbar, "micro" in other places */
16
+ /** The default size in a toolbar, "micro" outside a toolbar */
17
17
  size?: ButtonSize;
18
18
  /**
19
- * The menu cannot open. Give a reason when the user must know why: it
20
- * takes the place of the tooltip.
19
+ * The menu cannot open. Give a reason when the user must know why. It
20
+ * replaces the tooltip.
21
21
  */
22
22
  disabled?: Disabled;
23
23
  /**
24
- * Only for the place or the surface of the button (for example on a
24
+ * Only for the position or the surface of the button (for example on a
25
25
  * media card)
26
26
  */
27
27
  className?: string;
28
28
  };
29
29
  /**
30
30
  * A ghost icon-only ButtonTrigger (the "⋮" of a row, a card or a toolbar).
31
- * It has the size of the place in a toolbar, and "micro" in other places
31
+ * It has the default size in a toolbar, and "micro" outside a toolbar
32
32
  * (the actions of a row or a card).
33
33
  */
34
34
  declare const IconTrigger: ({ icon, label, size, disabled, className, open, onTrigger, }: IconTriggerProps) => React.JSX.Element;
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  //#region ../ui-public/src/actions/Dropdown/triggers/IconTrigger.tsx
6
6
  /**
7
7
  * A ghost icon-only ButtonTrigger (the "⋮" of a row, a card or a toolbar).
8
- * It has the size of the place in a toolbar, and "micro" in other places
8
+ * It has the default size in a toolbar, and "micro" outside a toolbar
9
9
  * (the actions of a row or a card).
10
10
  */
11
11
  var IconTrigger = ({ icon, label, size, disabled, className, open, onTrigger }) => {