datocms-react-ui 3.1.0-next.0 → 3.1.0-next.1

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 (201) hide show
  1. package/dist/Actions.d.ts +1 -0
  2. package/dist/Actions.js +4 -0
  3. package/dist/IconAvatar.d.ts +2 -0
  4. package/dist/IconAvatar.js +2 -0
  5. package/dist/ListDetail.js +2 -2
  6. package/dist/Pane.js +2 -1
  7. package/dist/SplitPane.js +2 -2
  8. package/dist/react-ui/src/Canvas.d.ts +2 -1
  9. package/dist/react-ui/src/Canvas.js +8 -6
  10. package/dist/react-ui/src/ContextInspector.js +2 -2
  11. package/dist/react-ui/src/messageText.js +1 -1
  12. package/dist/styles.css +330 -195
  13. package/dist/ui/icons/brands/gitlab.js +15 -0
  14. package/dist/ui/icons/custom/netlify.js +7 -29
  15. package/dist/ui/icons/custom/vercel.js +1 -4
  16. package/dist/ui/icons/index.js +206 -195
  17. package/dist/ui/icons/regular/command.js +16 -0
  18. package/dist/ui/icons/regular/keyboard.js +16 -0
  19. package/dist/ui/icons/regular/list-tree.js +2 -1
  20. package/dist/ui/icons/regular/list.js +2 -1
  21. package/dist/ui/icons/regular/memo.js +2 -1
  22. package/dist/ui/locales/en.js +10 -3
  23. package/dist/ui/src/BundledTexts.js +2 -2
  24. package/dist/ui/src/UiTextKey.d.ts +1 -1
  25. package/dist/ui/src/actions/Actions/ActionTooltip.js +24 -0
  26. package/dist/ui/src/actions/Actions/Shortcut.d.ts +23 -0
  27. package/dist/ui/src/actions/Actions/Shortcut.js +45 -0
  28. package/dist/ui/src/actions/Actions/index.d.ts +3 -0
  29. package/dist/ui/src/actions/Actions/index.js +3 -0
  30. package/dist/ui/src/actions/Actions/registry.d.ts +211 -0
  31. package/dist/ui/src/actions/Actions/registry.js +580 -0
  32. package/dist/ui/src/actions/Actions/shortcuts.d.ts +85 -0
  33. package/dist/ui/src/actions/Actions/shortcuts.js +284 -0
  34. package/dist/ui/src/actions/Button.d.ts +13 -12
  35. package/dist/ui/src/actions/Button.js +8 -7
  36. package/dist/ui/src/actions/Dropdown/DropdownContext.js +2 -1
  37. package/dist/ui/src/actions/Dropdown/Footer.js +1 -1
  38. package/dist/ui/src/actions/Dropdown/Menu.d.ts +2 -1
  39. package/dist/ui/src/actions/Dropdown/Menu.js +43 -37
  40. package/dist/ui/src/actions/Dropdown/MenuContent.js +22 -12
  41. package/dist/ui/src/actions/Dropdown/MenuParts.js +3 -3
  42. package/dist/ui/src/actions/Dropdown/Option.d.ts +20 -3
  43. package/dist/ui/src/actions/Dropdown/Option.js +48 -9
  44. package/dist/ui/src/actions/Dropdown/OptionAction.js +1 -1
  45. package/dist/ui/src/actions/Dropdown/Submenu.js +2 -2
  46. package/dist/ui/src/actions/Dropdown/index.d.ts +4 -1
  47. package/dist/ui/src/actions/Dropdown/index.js +6 -4
  48. package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.d.ts +4 -4
  49. package/dist/ui/src/actions/Dropdown/triggers/ButtonTrigger.js +7 -6
  50. package/dist/ui/src/actions/Dropdown/triggers/PillTrigger.js +1 -1
  51. package/dist/ui/src/actions/Dropdown/triggers/TextualTrigger.js +1 -1
  52. package/dist/ui/src/actions/EditorToolbar/Button.js +2 -2
  53. package/dist/ui/src/actions/EditorToolbar/Buttons.js +2 -2
  54. package/dist/ui/src/actions/EditorToolbar/index.js +1 -1
  55. package/dist/ui/src/actions/MultipleSelectionActionBar.d.ts +20 -3
  56. package/dist/ui/src/actions/MultipleSelectionActionBar.js +25 -7
  57. package/dist/ui/src/actions/SplitButton/Caret.js +1 -1
  58. package/dist/ui/src/actions/SplitButton/index.js +1 -1
  59. package/dist/ui/src/actions/disabledReason.js +1 -1
  60. package/dist/ui/src/content/Avatar.d.ts +5 -3
  61. package/dist/ui/src/content/Avatar.js +4 -3
  62. package/dist/ui/src/content/CodeSnippet.js +1 -1
  63. package/dist/ui/src/content/CopyButton.js +1 -1
  64. package/dist/ui/src/content/CopyableId.d.ts +6 -1
  65. package/dist/ui/src/content/CopyableId.js +5 -2
  66. package/dist/ui/src/content/CopyableValue.js +2 -2
  67. package/dist/ui/src/content/FeedbackDot.js +1 -1
  68. package/dist/ui/src/content/IconAvatar.d.ts +42 -0
  69. package/dist/ui/src/content/IconAvatar.js +36 -0
  70. package/dist/ui/src/content/InitialsAvatar.js +1 -2
  71. package/dist/ui/src/content/Pill.js +3 -3
  72. package/dist/ui/src/content/SmartDate.js +1 -1
  73. package/dist/ui/src/content/UploadThreatTriangle.js +1 -1
  74. package/dist/ui/src/content/UsageMeter.d.ts +2 -1
  75. package/dist/ui/src/content/UsageMeter.js +3 -2
  76. package/dist/ui/src/content/ValidityTriangles.js +3 -3
  77. package/dist/ui/src/feedback/BlankSlate.js +2 -2
  78. package/dist/ui/src/feedback/Callout.js +2 -2
  79. package/dist/ui/src/feedback/ProgressBar.js +1 -1
  80. package/dist/ui/src/form/AutosizeInput.js +1 -1
  81. package/dist/ui/src/form/FieldHint.js +1 -1
  82. package/dist/ui/src/form/FieldWrapper.js +1 -1
  83. package/dist/ui/src/form/InputGroup.js +1 -1
  84. package/dist/ui/src/form/Label.js +2 -2
  85. package/dist/ui/src/form/PasswordInput.js +1 -1
  86. package/dist/ui/src/form/RadioGroupInput.js +1 -1
  87. package/dist/ui/src/form/SelectInput/SelectMenu.js +3 -3
  88. package/dist/ui/src/form/SelectInput/SelectMultiValueRemove.js +7 -0
  89. package/dist/ui/src/form/SelectInput/SelectOption.js +1 -1
  90. package/dist/ui/src/form/SelectInput/SortableMultiValue.js +1 -1
  91. package/dist/ui/src/form/StringInput.js +1 -1
  92. package/dist/ui/src/form/SwitchInput.d.ts +2 -0
  93. package/dist/ui/src/form/SwitchInput.js +4 -3
  94. package/dist/ui/src/form/SwitchList.js +1 -1
  95. package/dist/ui/src/form/TableList.js +2 -2
  96. package/dist/ui/src/form/TextareaInput.js +1 -1
  97. package/dist/ui/src/i18n.js +6 -6
  98. package/dist/ui/src/layout/ListOrOverview.js +3 -3
  99. package/dist/ui/src/layout/Page/Page.js +1 -1
  100. package/dist/ui/src/layout/Page/PageContent.js +1 -1
  101. package/dist/ui/src/layout/Page/PageGroup.js +2 -2
  102. package/dist/ui/src/layout/Page/PageSection.js +1 -1
  103. package/dist/ui/src/layout/Pane/ListFilter.js +6 -12
  104. package/dist/ui/src/layout/Pane/PaneHeader.js +3 -3
  105. package/dist/ui/src/layout/Pane/PaneRegion.d.ts +14 -0
  106. package/dist/ui/src/layout/Pane/PaneRegion.js +23 -0
  107. package/dist/ui/src/layout/Pane/index.d.ts +1 -0
  108. package/dist/ui/src/layout/Pane/index.js +36 -32
  109. package/dist/ui/src/layout/SidebarPanel.js +1 -1
  110. package/dist/ui/src/layout/SplitPane.d.ts +2 -0
  111. package/dist/ui/src/layout/SplitPane.js +79 -37
  112. package/dist/ui/src/layout/SplitView/SashActionButton.js +17 -9
  113. package/dist/ui/src/layout/SplitView/SplitView.js +1 -1
  114. package/dist/ui/src/layout/SplitView/SplitViewSash.js +2 -1
  115. package/dist/ui/src/layout/Toolbar/AddNewButton.d.ts +10 -6
  116. package/dist/ui/src/layout/Toolbar/AddNewButton.js +10 -23
  117. package/dist/ui/src/layout/Toolbar/Divider.d.ts +8 -0
  118. package/dist/ui/src/layout/Toolbar/Divider.js +16 -0
  119. package/dist/ui/src/layout/Toolbar/DotsDropdown.d.ts +8 -1
  120. package/dist/ui/src/layout/Toolbar/DotsDropdown.js +3 -2
  121. package/dist/ui/src/layout/Toolbar/Fill.js +1 -1
  122. package/dist/ui/src/layout/Toolbar/FilterInput.d.ts +7 -3
  123. package/dist/ui/src/layout/Toolbar/FilterInput.js +62 -49
  124. package/dist/ui/src/layout/Toolbar/FilterToggle.d.ts +6 -4
  125. package/dist/ui/src/layout/Toolbar/FilterToggle.js +42 -7
  126. package/dist/ui/src/layout/Toolbar/GoBack.d.ts +6 -1
  127. package/dist/ui/src/layout/Toolbar/GoBack.js +12 -5
  128. package/dist/ui/src/layout/Toolbar/Group.js +1 -1
  129. package/dist/ui/src/layout/Toolbar/Help.js +3 -3
  130. package/dist/ui/src/layout/Toolbar/Pagination.js +2 -2
  131. package/dist/ui/src/layout/Toolbar/PresetsTitle.js +3 -3
  132. package/dist/ui/src/layout/Toolbar/PrimaryButton.d.ts +3 -3
  133. package/dist/ui/src/layout/Toolbar/PrimaryButton.js +2 -2
  134. package/dist/ui/src/layout/Toolbar/Root.d.ts +6 -1
  135. package/dist/ui/src/layout/Toolbar/Root.js +13 -2
  136. package/dist/ui/src/layout/Toolbar/Search.d.ts +2 -1
  137. package/dist/ui/src/layout/Toolbar/Search.js +8 -3
  138. package/dist/ui/src/layout/Toolbar/context.js +2 -1
  139. package/dist/ui/src/layout/Toolbar/index.d.ts +5 -3
  140. package/dist/ui/src/layout/Toolbar/index.js +2 -0
  141. package/dist/ui/src/lists/CardList.d.ts +7 -2
  142. package/dist/ui/src/lists/CardList.js +7 -6
  143. package/dist/ui/src/lists/EmptySlot.js +2 -2
  144. package/dist/ui/src/lists/EntityRow.js +1 -1
  145. package/dist/ui/src/lists/InfoList.js +8 -3
  146. package/dist/ui/src/lists/InsertGap.js +4 -4
  147. package/dist/ui/src/lists/MediaCard.d.ts +10 -0
  148. package/dist/ui/src/lists/MediaCard.js +9 -4
  149. package/dist/ui/src/lists/RowList.js +2 -2
  150. package/dist/ui/src/lists/SettingsList.js +1 -1
  151. package/dist/ui/src/lists/Table/Body.js +1 -1
  152. package/dist/ui/src/lists/Table/Cell.js +1 -1
  153. package/dist/ui/src/lists/Table/ColumnsMenu.js +1 -1
  154. package/dist/ui/src/lists/Table/Header.js +8 -10
  155. package/dist/ui/src/lists/Table/HeaderCell.js +2 -2
  156. package/dist/ui/src/lists/Table/Row.d.ts +7 -1
  157. package/dist/ui/src/lists/Table/Row.js +6 -2
  158. package/dist/ui/src/lists/Table/Table.js +1 -1
  159. package/dist/ui/src/lists/Table/TreeToggle.js +1 -1
  160. package/dist/ui/src/lists/Table/index.d.ts +1 -1
  161. package/dist/ui/src/lists/Table/layout.d.ts +3 -2
  162. package/dist/ui/src/lists/Table/layout.js +26 -13
  163. package/dist/ui/src/lists/dnd/DragHandle.js +1 -1
  164. package/dist/ui/src/lists/dnd/DropIndicator.js +1 -1
  165. package/dist/ui/src/lists/dnd/SortableList.js +2 -2
  166. package/dist/ui/src/lists/dnd/tree/SortableTree.js +1 -1
  167. package/dist/ui/src/navigation/Chevron.js +2 -2
  168. package/dist/ui/src/navigation/SegmentedControl.d.ts +23 -4
  169. package/dist/ui/src/navigation/SegmentedControl.js +23 -5
  170. package/dist/ui/src/navigation/SettingsMenu.js +3 -3
  171. package/dist/ui/src/navigation/SidebarTree/SidebarTreeNode.js +3 -3
  172. package/dist/ui/src/navigation/SidebarTree/SidebarTreeNodeActions.js +1 -1
  173. package/dist/ui/src/navigation/Tabs.js +1 -1
  174. package/dist/ui/src/overlays/FullscreenModal.js +48 -53
  175. package/dist/ui/src/overlays/HoverCard.js +4 -4
  176. package/dist/ui/src/overlays/Modal.d.ts +7 -0
  177. package/dist/ui/src/overlays/Modal.js +53 -55
  178. package/dist/ui/src/overlays/Popover.d.ts +6 -3
  179. package/dist/ui/src/overlays/Popover.js +13 -8
  180. package/dist/ui/src/overlays/Portal.js +1 -1
  181. package/dist/ui/src/overlays/Tooltip.d.ts +6 -3
  182. package/dist/ui/src/overlays/Tooltip.js +29 -13
  183. package/dist/ui/src/overlays/useModalClose.js +17 -12
  184. package/dist/ui/src/patterns/ListDetail/Page.d.ts +9 -0
  185. package/dist/ui/src/patterns/ListDetail/Page.js +33 -26
  186. package/dist/ui/src/patterns/ListDetail/Panel.js +4 -2
  187. package/dist/ui/src/patterns/ListDetail/Split.d.ts +5 -0
  188. package/dist/ui/src/patterns/ListDetail/Split.js +75 -56
  189. package/dist/ui/src/patterns/ListDetail/index.d.ts +2 -2
  190. package/dist/ui/src/patterns/ListDetail/index.js +2 -2
  191. package/dist/ui/src/patterns/ListFormPage.js +2 -2
  192. package/dist/ui/src/semantic/Main.d.ts +4 -1
  193. package/dist/ui/src/semantic/Main.js +53 -3
  194. package/dist/ui/src/semantic/NavigationFocusProvider.js +9 -0
  195. package/package.json +1 -1
  196. package/dist/HotKey.d.ts +0 -1
  197. package/dist/HotKey.js +0 -2
  198. package/dist/ui/src/actions/HotKey.d.ts +0 -98
  199. package/dist/ui/src/actions/HotKey.js +0 -270
  200. package/dist/ui/src/actions/hotKeyContext.d.ts +0 -32
  201. package/dist/ui/src/actions/hotKeyContext.js +0 -15
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ import { type TextMessage } from '../Message.js';
3
+ import { type SvgIcon } from '../utils/types.js';
4
+ /** The surface of the square */
5
+ export type IconAvatarSurface =
6
+ /**
7
+ * The soft brand surface, for the thing that is active or that matters
8
+ * (the environment in use)
9
+ */
10
+ 'primary'
11
+ /** The neutral surface */
12
+ | 'muted'
13
+ /**
14
+ * A surface and an ink from the data or from a context of tokens, for
15
+ * example `{ color: 'var(--color--field-group-media--surface)', ink:
16
+ * 'var(--color--field-group-media--ink)' }`
17
+ */
18
+ | {
19
+ color: string;
20
+ ink: string;
21
+ };
22
+ export type IconAvatarProps = {
23
+ /** The icon, for example the icon of a kind of entity */
24
+ icon: SvgIcon;
25
+ /** The side of the square in pixels, for example 32 in the image of an EntityRow */
26
+ size: number;
27
+ /** @default "primary" */
28
+ surface?: IconAvatarSurface;
29
+ /**
30
+ * The name for the screen readers. Use it only when no text near the
31
+ * avatar tells what the icon shows. Without it, the screen readers do not
32
+ * read the avatar.
33
+ */
34
+ ariaLabel?: TextMessage;
35
+ };
36
+ /**
37
+ * An icon on a soft rounded square, with the shape of an avatar. Use it for
38
+ * a thing that has an icon and no image: an environment, a kind of field.
39
+ * For a person, use Avatar; for a name, use InitialsAvatar.
40
+ */
41
+ declare const IconAvatar: React.NamedExoticComponent<IconAvatarProps>;
42
+ export default IconAvatar;
@@ -0,0 +1,36 @@
1
+ import { useTranslation } from "../i18n.js";
2
+ import React, { useMemo } from "react";
3
+ import classNames from "classnames";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region ../ui/src/content/IconAvatar.tsx
6
+ /**
7
+ * An icon on a soft rounded square, with the shape of an avatar. Use it for
8
+ * a thing that has an icon and no image: an environment, a kind of field.
9
+ * For a person, use Avatar; for a name, use InitialsAvatar.
10
+ */
11
+ var IconAvatar = React.memo(function IconAvatar({ icon: Icon, size, surface = "primary", ariaLabel }) {
12
+ const { tm } = useTranslation();
13
+ const colors = typeof surface === "object" ? surface : void 0;
14
+ const style = useMemo(() => ({
15
+ "--Avatar-icon-size": `${size}px`,
16
+ ...colors && {
17
+ "--Avatar-surface": colors.color,
18
+ "--Avatar-ink": colors.ink
19
+ }
20
+ }), [
21
+ size,
22
+ colors?.color,
23
+ colors?.ink
24
+ ]);
25
+ return /* @__PURE__ */ jsx("span", {
26
+ className: classNames("Avatar__icon", { [`Avatar__icon--${surface}`]: !colors }),
27
+ style,
28
+ ...ariaLabel ? {
29
+ role: "img",
30
+ "aria-label": tm(ariaLabel)
31
+ } : { "aria-hidden": true },
32
+ children: /* @__PURE__ */ jsx(Icon, {})
33
+ });
34
+ });
35
+ //#endregion
36
+ export { IconAvatar as default };
@@ -2,8 +2,8 @@ import generateColorMapper from "../color/generateColorMapper.js";
2
2
  import { parseHexColor } from "../color/utils.js";
3
3
  import { linearRgbToLuminance, srgbToLinear } from "../color/oklch.js";
4
4
  import React, { useMemo } from "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/content/InitialsAvatar.tsx
8
8
  /**
9
9
  * A hue number, not a color: the CSS gives the surface and the ink of each
@@ -61,7 +61,6 @@ var InitialsAvatar = React.memo(function InitialsAvatar({ name, size, surface, l
61
61
  textAnchor: "middle",
62
62
  dominantBaseline: "central",
63
63
  fontSize: size * (size < 40 ? .4 : .3),
64
- fontWeight: "700",
65
64
  children: initials
66
65
  })]
67
66
  });
@@ -1,13 +1,13 @@
1
1
  import Link from "../navigation/Link.js";
2
- import Tooltip from "../overlays/Tooltip.js";
3
2
  import RawButton from "../semantic/RawButton.js";
3
+ import Tooltip from "../overlays/Tooltip.js";
4
4
  import { pillClassName } from "./pillClassName.js";
5
5
  import React from "react";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import classNames from "classnames";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../ui/src/content/Pill.tsx
9
9
  function Pill({ tone, icon, tooltip, children, to, onClick }) {
10
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [icon, /* @__PURE__ */ jsx("span", { children })] });
10
+ const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [icon, /* @__PURE__ */ jsx("span", { children })] });
11
11
  let element;
12
12
  if (to !== void 0) element = /* @__PURE__ */ jsx(Link, {
13
13
  to,
@@ -1,5 +1,5 @@
1
- import { useDateSettings } from "./DateSettings.js";
2
1
  import { useTranslation } from "../i18n.js";
2
+ import { useDateSettings } from "./DateSettings.js";
3
3
  import { formatDate, formatDateTime, formatTime, toDateTimeAttribute } from "../utils/formatDate.js";
4
4
  import "react";
5
5
  import { jsx } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
+ import { Status } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Tooltip from "../overlays/Tooltip.js";
3
- import { Status } from "../../icons/index.js";
4
4
  import { HintLine } from "./ValidityTriangles.js";
5
5
  import React from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -27,7 +27,8 @@ export declare function UsageMeter({ usage, limit, ariaLabel, blocked, className
27
27
  /**
28
28
  * The usage against a limit as a ring, for a row with no space for a bar.
29
29
  * The ring starts at the top and goes clockwise, and a full ring is the
30
- * limit. Over the limit, the full ring is in color. Like an icon, it has the
30
+ * limit. Within the limit, the ring is gray. Over the limit, the full ring
31
+ * is in color. Like an icon, it has the
31
32
  * size of the text around it (1em).
32
33
  */
33
34
  export declare function UsageRing({ usage, limit, ariaLabel, blocked, className, }: UsageMeterProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { useTranslation } from "../i18n.js";
2
2
  import "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
3
  import classNames from "classnames";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../ui/src/content/UsageMeter.tsx
6
6
  /** The usage against a limit, with the part over the limit in color */
7
7
  function UsageMeter({ usage, limit, ariaLabel, blocked, className }) {
@@ -26,7 +26,8 @@ function UsageMeter({ usage, limit, ariaLabel, blocked, className }) {
26
26
  /**
27
27
  * The usage against a limit as a ring, for a row with no space for a bar.
28
28
  * The ring starts at the top and goes clockwise, and a full ring is the
29
- * limit. Over the limit, the full ring is in color. Like an icon, it has the
29
+ * limit. Within the limit, the ring is gray. Over the limit, the full ring
30
+ * is in color. Like an icon, it has the
30
31
  * size of the text around it (1em).
31
32
  */
32
33
  function UsageRing({ usage, limit, ariaLabel, blocked, className }) {
@@ -1,9 +1,9 @@
1
+ import { Status } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Tooltip from "../overlays/Tooltip.js";
3
- import { Status } from "../../icons/index.js";
4
4
  import React from "react";
5
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/content/ValidityTriangles.tsx
8
8
  /** The solid triangle of a published version that is not valid */
9
9
  function InvalidPublishedVersionIcon({ className }) {
@@ -33,7 +33,7 @@ var ItemValidityTriangles = React.memo(({ publishedValid, currentValid, draftMod
33
33
  });
34
34
  return /* @__PURE__ */ jsx(Tooltip, {
35
35
  long: true,
36
- label: /* @__PURE__ */ jsxs(Fragment, { children: [publishedValid === false && /* @__PURE__ */ jsxs(HintLine, { children: [/* @__PURE__ */ jsx(InvalidPublishedVersionIcon, {}), t("validityTriangle.published")] }), draftModeActive && currentValid === false && /* @__PURE__ */ jsxs(HintLine, { children: [/* @__PURE__ */ jsx(InvalidCurrentVersionIcon, {}), t("validityTriangle.current")] })] }),
36
+ label: /* @__PURE__ */ jsxs(Fragment$1, { children: [publishedValid === false && /* @__PURE__ */ jsxs(HintLine, { children: [/* @__PURE__ */ jsx(InvalidPublishedVersionIcon, {}), t("validityTriangle.published")] }), draftModeActive && currentValid === false && /* @__PURE__ */ jsxs(HintLine, { children: [/* @__PURE__ */ jsx(InvalidCurrentVersionIcon, {}), t("validityTriangle.current")] })] }),
37
37
  children: triangles
38
38
  });
39
39
  });
@@ -1,13 +1,13 @@
1
+ import { UI } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Spinner_default from "./Spinner.js";
3
4
  import Button from "../actions/Button.js";
4
- import { UI } from "../../icons/index.js";
5
5
  import Heading from "../semantic/Heading.js";
6
6
  import ButtonTrigger from "../actions/Dropdown/triggers/ButtonTrigger.js";
7
7
  import { Dropdown } from "../actions/Dropdown/index.js";
8
8
  import React from "react";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import classNames from "classnames";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../ui/src/feedback/BlankSlate.tsx
12
12
  var docsLabel = { id: "blankSlate.documentation" };
13
13
  function openInNewTab(href) {
@@ -1,8 +1,8 @@
1
- import { useTranslation } from "../i18n.js";
2
1
  import { Generic, Status, UI } from "../../icons/index.js";
2
+ import { useTranslation } from "../i18n.js";
3
3
  import React from "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import classNames from "classnames";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region ../ui/src/feedback/Callout.tsx
7
7
  /**
8
8
  * A message about the current data. For the text that tells what a page is
@@ -1,7 +1,7 @@
1
1
  import { useTranslation } from "../i18n.js";
2
2
  import React from "react";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import classNames from "classnames";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region ../ui/src/feedback/ProgressBar.tsx
6
6
  /**
7
7
  * A bar that shows how much of a task is done. For a task with no known end,
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import classNames from "classnames";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region ../ui/src/form/AutosizeInput.tsx
5
5
  function AutosizeInput({ text, placeholder, className, children }) {
6
6
  return /* @__PURE__ */ jsx("span", {
@@ -1,7 +1,7 @@
1
+ import { UI } from "../../icons/index.js";
1
2
  import { isHtmlMessage } from "../Message.js";
2
3
  import { useTranslation } from "../i18n.js";
3
4
  import { useNavigation } from "../navigation/NavigationProvider.js";
4
- import { UI } from "../../icons/index.js";
5
5
  import React, { useEffect, useRef } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/form/FieldHint.tsx
@@ -3,8 +3,8 @@ import { useAutoincrementIntegerId } from "../hooks/useAutoincrementIntegerId.js
3
3
  import FieldHint_default from "./FieldHint.js";
4
4
  import Label_default from "./Label.js";
5
5
  import { Children, createContext, forwardRef, isValidElement, useContext, useMemo } from "react";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import classNames from "classnames";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../ui/src/form/FieldWrapper.tsx
9
9
  var FieldContext = createContext(void 0);
10
10
  /**
@@ -2,8 +2,8 @@ import { useTranslation } from "../i18n.js";
2
2
  import FieldWrapper_default, { useFieldInput } from "./FieldWrapper.js";
3
3
  import StringInput_default from "./StringInput.js";
4
4
  import React, { createContext, useCallback, useContext, useRef, useState } from "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/form/InputGroup.tsx
8
8
  var nextAddonsId = 0;
9
9
  var InputGroupContext = createContext({ code: false });
@@ -1,10 +1,10 @@
1
+ import { Content } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Tooltip from "../overlays/Tooltip.js";
3
- import { Content } from "../../icons/index.js";
4
4
  import { useFormApp } from "./FormAppContext.js";
5
5
  import React from "react";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import classNames from "classnames";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useIntersectionObserver } from "usehooks-ts";
9
9
  //#region ../ui/src/form/Label.tsx
10
10
  var Label = ({ htmlFor, textId, label, hidden, required, optional, localized, renderDropdown, renderInfo, validators }) => {
@@ -1,6 +1,6 @@
1
+ import { Authentication } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Button from "../actions/Button.js";
3
- import { Authentication } from "../../icons/index.js";
4
4
  import { useFieldInput } from "./FieldWrapper.js";
5
5
  import { useTextInputHandlers } from "./useTextInputHandlers.js";
6
6
  import React, { useState } from "react";
@@ -4,8 +4,8 @@ import { useAutoincrementIntegerId } from "../hooks/useAutoincrementIntegerId.js
4
4
  import { useFieldInput } from "./FieldWrapper.js";
5
5
  import { getEditState } from "./getEditState.js";
6
6
  import { useCallback } from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import classNames from "classnames";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../ui/src/form/RadioGroupInput.tsx
10
10
  /**
11
11
  * A choice of one value from a list of options, all visible, each with a
@@ -1,11 +1,11 @@
1
+ import { Navigation } from "../../../icons/index.js";
1
2
  import { useTranslation } from "../../i18n.js";
2
3
  import RawButton from "../../semantic/RawButton.js";
3
- import { Navigation } from "../../../icons/index.js";
4
4
  import { stopPropagation } from "../../utils/events.js";
5
5
  import { Dropdown } from "../../actions/Dropdown/index.js";
6
6
  import React, { createContext, useContext, useMemo } from "react";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
7
  import classNames from "classnames";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { components } from "react-select";
10
10
  //#region ../ui/src/form/SelectInput/SelectMenu.tsx
11
11
  var MenuListContext = createContext({
@@ -38,7 +38,7 @@ function SelectMenu(props) {
38
38
  label: list.label,
39
39
  onClick: () => setList(null)
40
40
  }), list.content]
41
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [props.children, menuFooter && /* @__PURE__ */ jsx("div", {
41
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [props.children, menuFooter && /* @__PURE__ */ jsx("div", {
42
42
  className: footerClassName,
43
43
  onTouchEnd: stopPropagation,
44
44
  children: menuFooter
@@ -1,4 +1,5 @@
1
1
  import { Generic } from "../../../icons/index.js";
2
+ import { useTranslation } from "../../i18n.js";
2
3
  import Context_default from "./Context.js";
3
4
  import React, { useContext } from "react";
4
5
  import { jsx } from "react/jsx-runtime";
@@ -6,9 +7,15 @@ import { components } from "react-select";
6
7
  //#region ../ui/src/form/SelectInput/SelectMultiValueRemove.tsx
7
8
  function SelectMultiValueRemove(props) {
8
9
  const { disabled } = useContext(Context_default);
10
+ const { tm } = useTranslation();
9
11
  if (disabled) return null;
12
+ const innerProps = {
13
+ ...props.innerProps,
14
+ "aria-label": tm({ id: "a11y.selectInput.remove" })
15
+ };
10
16
  return /* @__PURE__ */ jsx(components.MultiValueRemove, {
11
17
  ...props,
18
+ innerProps,
12
19
  children: /* @__PURE__ */ jsx(Generic.CloseIcon, {
13
20
  className: "SelectInput__cross",
14
21
  "aria-hidden": "true"
@@ -1,7 +1,7 @@
1
1
  import { Dropdown } from "../../actions/Dropdown/index.js";
2
2
  import React from "react";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import classNames from "classnames";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region ../ui/src/form/SelectInput/SelectOption.tsx
6
6
  var CONTENT_PROPS = { tabIndex: -1 };
7
7
  function SelectOption({ children, innerRef, innerProps, isDisabled, isFocused, isSelected, isMulti }) {
@@ -3,8 +3,8 @@ import { SortableItem } from "../../lists/dnd/SortableList.js";
3
3
  import "../../lists/dnd/index.js";
4
4
  import Context_default from "./Context.js";
5
5
  import { memo, useContext } from "react";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import classNames from "classnames";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { components } from "react-select";
9
9
  //#region ../ui/src/form/SelectInput/SortableMultiValue.tsx
10
10
  function SortableMultiValue(props) {
@@ -2,8 +2,8 @@ import { useTranslation } from "../i18n.js";
2
2
  import { useFieldInput } from "./FieldWrapper.js";
3
3
  import { useTextInputHandlers } from "./useTextInputHandlers.js";
4
4
  import React from "react";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region ../ui/src/form/StringInput.tsx
8
8
  var StringInput = ({ value, onChange, onBlur, onFocus, placeholder, code, className, ...other }) => {
9
9
  const { tm } = useTranslation();
@@ -20,6 +20,8 @@ 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. */
24
+ 'aria-labelledby'?: string;
23
25
  /** Set when the value has an error. A `FieldWrapper` gives it. */
24
26
  'aria-invalid'?: boolean;
25
27
  /** The `id` of the error and of the hint. A `FieldWrapper` gives it. */
@@ -4,13 +4,13 @@ import { useFieldInput } from "./FieldWrapper.js";
4
4
  import { getEditState } from "./getEditState.js";
5
5
  import { useInSwitchList } from "./SwitchList.js";
6
6
  import React, { isValidElement, useCallback } from "react";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
7
  import classNames from "classnames";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../ui/src/form/SwitchInput.tsx
10
10
  var SwitchInput = React.memo(function SwitchInput(props) {
11
11
  const { tc } = useTranslation();
12
12
  const { label, value, name, forcedOn, onChange, onBlur } = props;
13
- const { id, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedBy, "aria-required": ariaRequired } = useFieldInput(props);
13
+ const { id, "aria-labelledby": ariaLabelledBy, "aria-invalid": ariaInvalid, "aria-describedby": ariaDescribedBy, "aria-required": ariaRequired } = useFieldInput(props);
14
14
  const uid = useAutoincrementIntegerId();
15
15
  const { disabled, showsReadOnly } = getEditState(props);
16
16
  const inList = useInSwitchList();
@@ -46,7 +46,7 @@ var SwitchInput = React.memo(function SwitchInput(props) {
46
46
  })
47
47
  })
48
48
  });
49
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
49
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
50
50
  className: classNames("SwitchInput", inList && "SwitchInput--row"),
51
51
  children: [
52
52
  inList && labelElement,
@@ -61,6 +61,7 @@ var SwitchInput = React.memo(function SwitchInput(props) {
61
61
  disabled,
62
62
  readOnly: showsReadOnly,
63
63
  "aria-readonly": showsReadOnly || void 0,
64
+ "aria-labelledby": ariaLabelledBy,
64
65
  "aria-invalid": ariaInvalid,
65
66
  "aria-describedby": describedBy,
66
67
  "aria-required": ariaRequired
@@ -1,6 +1,6 @@
1
1
  import { createContext, useContext } from "react";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import classNames from "classnames";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region ../ui/src/form/SwitchList.tsx
5
5
  var SwitchListContext = createContext(false);
6
6
  /** Tells if a `SwitchInput` is in a `SwitchList` */
@@ -1,6 +1,6 @@
1
+ import { Generic } from "../../icons/index.js";
1
2
  import { useTranslation } from "../i18n.js";
2
3
  import Button from "../actions/Button.js";
3
- import { Generic } from "../../icons/index.js";
4
4
  import { useAutoincrementIntegerId } from "../hooks/useAutoincrementIntegerId.js";
5
5
  import DragHandle from "../lists/dnd/DragHandle.js";
6
6
  import { SortableItem, SortableList } from "../lists/dnd/SortableList.js";
@@ -9,8 +9,8 @@ import FieldWrapper_default, { useFieldInput } from "./FieldWrapper.js";
9
9
  import EmptySlot from "../lists/EmptySlot.js";
10
10
  import InsertGap_default, { insertGapListProps } from "../lists/InsertGap.js";
11
11
  import React, { useCallback, useEffect, useRef } from "react";
12
- import { jsx, jsxs } from "react/jsx-runtime";
13
12
  import classNames from "classnames";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
14
  //#region ../ui/src/form/TableList.tsx
15
15
  function errorKey(error) {
16
16
  return typeof error === "string" ? error : error.id;
@@ -2,8 +2,8 @@ import { useTranslation } from "../i18n.js";
2
2
  import { useFieldInput } from "./FieldWrapper.js";
3
3
  import { useTextInputHandlers } from "./useTextInputHandlers.js";
4
4
  import React, { useCallback, useEffect, useLayoutEffect } from "react";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region ../ui/src/form/TextareaInput.tsx
8
8
  /**
9
9
  * Sets the height of the textarea from its text. The height goes to `auto`
@@ -1,8 +1,8 @@
1
- import { useTexts } from "./TextsProvider.js";
2
1
  import { isHtmlMessage, isIntlMessage } from "./Message.js";
2
+ import { useTexts } from "./TextsProvider.js";
3
3
  import { escapeHtml } from "./utils/escapeHtml.js";
4
4
  import React, { isValidElement, useCallback, useMemo } from "react";
5
- import { Fragment, jsx } from "react/jsx-runtime";
5
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
6
6
  import filterXSS from "xss";
7
7
  //#region ../ui/src/i18n.tsx
8
8
  /**
@@ -37,7 +37,7 @@ var textOptions = {
37
37
  };
38
38
  function FormattedMessage({ id, values, children, defaultValue }) {
39
39
  const { t } = useTranslation();
40
- if (children) return /* @__PURE__ */ jsx(Fragment, { children: children(t(id, {
40
+ if (children) return /* @__PURE__ */ jsx(Fragment$1, { children: children(t(id, {
41
41
  ...values,
42
42
  defaultValue
43
43
  })) });
@@ -55,9 +55,9 @@ function FormattedHTMLMessage({ id, values, children }) {
55
55
  const { t } = useTranslation();
56
56
  if (children) {
57
57
  const result = values ? t(id, Object.fromEntries(Object.entries(values).map(([key, value]) => [key, escapeHtml(String(value))]))) : t(id);
58
- return /* @__PURE__ */ jsx(Fragment, { children: children(result) });
58
+ return /* @__PURE__ */ jsx(Fragment$1, { children: children(result) });
59
59
  }
60
- return /* @__PURE__ */ jsx(Fragment, { children: interpolateReactElements(values, (processedValues) => t(id, processedValues), htmlOptions) });
60
+ return /* @__PURE__ */ jsx(Fragment$1, { children: interpolateReactElements(values, (processedValues) => t(id, processedValues), htmlOptions) });
61
61
  }
62
62
  function interpolateReactElements(values, translate, options) {
63
63
  const reactElements = {};
@@ -78,7 +78,7 @@ function interpolateReactElements(values, translate, options) {
78
78
  lastIndex = match.index + match[0].length;
79
79
  }
80
80
  if (lastIndex < result.length) parts.push(options.renderStringPart(result.slice(lastIndex), partIndex));
81
- return /* @__PURE__ */ jsx(Fragment, { children: parts });
81
+ return /* @__PURE__ */ jsx(Fragment$1, { children: parts });
82
82
  }
83
83
  //#endregion
84
84
  export { FormattedHTMLMessage, FormattedMessage, useTranslation };
@@ -1,6 +1,6 @@
1
1
  import Spinner_default from "../feedback/Spinner.js";
2
2
  import React from "react";
3
- import { Fragment, jsx } from "react/jsx-runtime";
3
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
4
4
  //#region ../ui/src/layout/ListOrOverview.tsx
5
5
  /**
6
6
  * The state from the first load and the number of the elements. Give
@@ -18,8 +18,8 @@ function getListOrOverviewState(loaded, empty) {
18
18
  */
19
19
  function ListOrOverview({ state, overview, children }) {
20
20
  if (state === "loading") return /* @__PURE__ */ jsx(Spinner_default, {});
21
- if (state === "empty") return /* @__PURE__ */ jsx(Fragment, { children: overview });
22
- return /* @__PURE__ */ jsx(Fragment, { children });
21
+ if (state === "empty") return /* @__PURE__ */ jsx(Fragment$1, { children: overview });
22
+ return /* @__PURE__ */ jsx(Fragment$1, { children });
23
23
  }
24
24
  var ListOrOverview_default = React.memo(ListOrOverview);
25
25
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import "react";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import classNames from "classnames";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region ../ui/src/layout/Page/Page.tsx
5
5
  /**
6
6
  * The column of a page of content: settings, a form, a dashboard. It gives
@@ -1,6 +1,6 @@
1
1
  import "react";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import classNames from "classnames";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region ../ui/src/layout/Page/PageContent.tsx
5
5
  /** The content of a Page: its sections and groups */
6
6
  function PageContent({ children, className }) {
@@ -3,8 +3,8 @@ import { ButtonSizeContext } from "../../actions/Button.js";
3
3
  import Heading from "../../semantic/Heading.js";
4
4
  import { PageCollapseToggle } from "./PageSection.js";
5
5
  import "react";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import classNames from "classnames";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../ui/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
@@ -38,7 +38,7 @@ function PageGroup({ title, titleLevel = 2, actions, footer, tone, status, flush
38
38
  })
39
39
  })
40
40
  ]
41
- }), open && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
41
+ }), open && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
42
42
  className: classNames("Page__group__body", { "Page__group__body--flush": flush }),
43
43
  children
44
44
  }), footer && /* @__PURE__ */ jsx("footer", {
@@ -2,8 +2,8 @@ import RawButton from "../../semantic/RawButton.js";
2
2
  import Heading from "../../semantic/Heading.js";
3
3
  import { DisclosureChevron } from "../../navigation/Chevron.js";
4
4
  import "react";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import classNames from "classnames";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/layout/Page/PageSection.tsx
8
8
  /** A part of a page with one piece of content, under a title with hairlines */
9
9
  function PageSection({ children, className, id }) {
@@ -1,6 +1,5 @@
1
- import { HotKeyListener } from "../../actions/HotKey.js";
2
1
  import { Generic } from "../../../icons/index.js";
3
- import FilterToggle_default, { FILTER_LIST_HOT_KEY, useFilterToolbar } from "../Toolbar/FilterToggle.js";
2
+ import FilterToggle_default, { useFilterToolbar } from "../Toolbar/FilterToggle.js";
4
3
  import Toolbar from "../Toolbar/index.js";
5
4
  import BlankSlate_default from "../../feedback/BlankSlate.js";
6
5
  import { useListPresets } from "./ListPresets.js";
@@ -40,17 +39,12 @@ function useListFilter(filter) {
40
39
  ]);
41
40
  }
42
41
  var ListFilterButton = React.memo(function ListFilterButton({ open, onToggle }) {
43
- const handleHotKey = useCallback(() => onToggle(true), [onToggle]);
44
42
  const handleClick = useCallback(() => onToggle(!open), [onToggle, open]);
45
- return /* @__PURE__ */ jsx(HotKeyListener, {
46
- hotKey: FILTER_LIST_HOT_KEY,
47
- description: { id: "hotkeys.filterList" },
48
- trigger: handleHotKey,
49
- children: /* @__PURE__ */ jsx(FilterToggle_default, {
50
- pressed: open,
51
- onClick: handleClick,
52
- hotKey: true
53
- })
43
+ const handleOpen = useCallback(() => onToggle(true), [onToggle]);
44
+ return /* @__PURE__ */ jsx(FilterToggle_default, {
45
+ pressed: open,
46
+ onClick: handleClick,
47
+ onOpen: handleOpen
54
48
  });
55
49
  });
56
50
  var ListFilterRow = React.memo(function ListFilterRow({ filter, onToggle, rowRef }) {
@@ -3,7 +3,7 @@ import Toolbar from "../Toolbar/index.js";
3
3
  import { ListFilterButton, ListFilterRow, useListFilter } from "./ListFilter.js";
4
4
  import { usePaneTitleId } from "./PaneTitleId.js";
5
5
  import React from "react";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../ui/src/layout/Pane/PaneHeader.tsx
8
8
  function Title(_props) {
9
9
  return null;
@@ -67,8 +67,8 @@ function PaneHeader({ filter, children }) {
67
67
  if (tabs && title?.props.presets) console.warn("PaneHeader: presets work only with Title");
68
68
  }
69
69
  const presets = title?.props.presets;
70
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Toolbar, { children: [
71
- tabs ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
70
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(Toolbar, { children: [
71
+ tabs ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
72
72
  className: "Toolbar__tabs",
73
73
  children: tabs.props.children
74
74
  }), tabs.props.help] }) : title ? presets ? /* @__PURE__ */ jsx(PresetsTitle, {