@strapi/content-type-builder 5.0.0-beta.6 → 5.0.0-beta.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 (30) hide show
  1. package/dist/_chunks/{ListView-C-9-V_FI.mjs → ListView-CyNHQ-YV.mjs} +20 -23
  2. package/dist/_chunks/ListView-CyNHQ-YV.mjs.map +1 -0
  3. package/dist/_chunks/{ListView-BG19KtnI.js → ListView-j9TFQZBa.js} +32 -36
  4. package/dist/_chunks/ListView-j9TFQZBa.js.map +1 -0
  5. package/dist/_chunks/{index-CBlX4byY.mjs → index-1y0vXVON.mjs} +17 -18
  6. package/dist/_chunks/index-1y0vXVON.mjs.map +1 -0
  7. package/dist/_chunks/{index-ClkMXXk0.js → index-BHhTJaW2.js} +420 -562
  8. package/dist/_chunks/index-BHhTJaW2.js.map +1 -0
  9. package/dist/_chunks/{index-BfUcwV-B.js → index-BwQpCent.js} +17 -18
  10. package/dist/_chunks/index-BwQpCent.js.map +1 -0
  11. package/dist/_chunks/{index-BtxPpV-M.mjs → index-DnkyThcz.mjs} +408 -549
  12. package/dist/_chunks/index-DnkyThcz.mjs.map +1 -0
  13. package/dist/admin/index.js +2 -1
  14. package/dist/admin/index.js.map +1 -1
  15. package/dist/admin/index.mjs +2 -1
  16. package/dist/admin/index.mjs.map +1 -1
  17. package/dist/admin/src/components/AttributeOptions/OptionBoxWrapper.d.ts +4 -1
  18. package/dist/admin/src/components/BoxWrapper.d.ts +4 -1
  19. package/dist/admin/src/components/CustomRadioGroup/Styles.d.ts +4 -1
  20. package/dist/admin/src/components/ListRow.d.ts +3 -1
  21. package/dist/admin/src/components/Relation/RelationNaturePicker/Components.d.ts +12 -46
  22. package/dist/admin/src/components/Tr.d.ts +5 -6
  23. package/package.json +14 -14
  24. package/dist/_chunks/ListView-BG19KtnI.js.map +0 -1
  25. package/dist/_chunks/ListView-C-9-V_FI.mjs.map +0 -1
  26. package/dist/_chunks/index-BfUcwV-B.js.map +0 -1
  27. package/dist/_chunks/index-BtxPpV-M.mjs.map +0 -1
  28. package/dist/_chunks/index-CBlX4byY.mjs.map +0 -1
  29. package/dist/_chunks/index-ClkMXXk0.js.map +0 -1
  30. package/dist/admin/src/components/PluginIcon.d.ts +0 -1
@@ -2,14 +2,14 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const strapiAdmin = require("@strapi/admin/strapi-admin");
5
- const designSystem = require("@strapi/design-system");
6
5
  const reactIntl = require("react-intl");
7
6
  const reactRouterDom = require("react-router-dom");
7
+ const designSystem = require("@strapi/design-system");
8
8
  const Icons = require("@strapi/icons");
9
9
  const reactDom = require("react-dom");
10
- const styled = require("styled-components");
10
+ const styledComponents = require("styled-components");
11
11
  const upperFirst = require("lodash/upperFirst");
12
- const index$1 = require("./index-BfUcwV-B.js");
12
+ const index$1 = require("./index-BwQpCent.js");
13
13
  const isEqual = require("lodash/isEqual");
14
14
  const get = require("lodash/get");
15
15
  const groupBy = require("lodash/groupBy");
@@ -53,7 +53,6 @@ function _interopNamespace(e) {
53
53
  }
54
54
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
55
55
  const Icons__namespace = /* @__PURE__ */ _interopNamespace(Icons);
56
- const styled__default = /* @__PURE__ */ _interopDefault(styled);
57
56
  const upperFirst__default = /* @__PURE__ */ _interopDefault(upperFirst);
58
57
  const isEqual__default = /* @__PURE__ */ _interopDefault(isEqual);
59
58
  const get__default = /* @__PURE__ */ _interopDefault(get);
@@ -145,8 +144,8 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
145
144
  return isOpen && globalThis?.document?.body ? reactDom.createPortal(
146
145
  /* @__PURE__ */ jsxRuntime.jsxs(Overlay, { id: "autoReloadOverlayBlocker", direction: "column", alignItems: "center", gap: 6, children: [
147
146
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 2, children: [
148
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h1", variant: "alpha", children: formatMessage(title) }),
149
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h2", textColor: "neutral600", fontSize: 4, fontWeight: "regular", children: formatMessage(description) })
147
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h1", variant: "alpha", children: formatMessage(title) }),
148
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", textColor: "neutral600", fontSize: 4, fontWeight: "regular", children: formatMessage(description) })
150
149
  ] }),
151
150
  displayedIcon === "reload" && /* @__PURE__ */ jsxRuntime.jsx(IconBox$1, { padding: 6, background: "primary100", borderColor: "primary200", children: /* @__PURE__ */ jsxRuntime.jsx(LoaderReload, { width: "3.6rem", height: "3.6rem" }) }),
152
151
  displayedIcon === "time" && /* @__PURE__ */ jsxRuntime.jsx(IconBox$1, { padding: 6, background: "primary100", borderColor: "primary200", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Clock, { width: "4rem", height: "4rem" }) }),
@@ -159,7 +158,7 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
159
158
  globalThis.document.body
160
159
  ) : null;
161
160
  };
162
- const rotation = styled.keyframes`
161
+ const rotation = styledComponents.keyframes`
163
162
  from {
164
163
  transform: rotate(0deg);
165
164
  }
@@ -167,10 +166,10 @@ const rotation = styled.keyframes`
167
166
  transform: rotate(359deg);
168
167
  }
169
168
  `;
170
- const LoaderReload = styled__default.default(Icons.ArrowClockwise)`
169
+ const LoaderReload = styledComponents.styled(Icons.ArrowClockwise)`
171
170
  animation: ${rotation} 1s infinite linear;
172
171
  `;
173
- const Overlay = styled__default.default(designSystem.Flex)`
172
+ const Overlay = styledComponents.styled(designSystem.Flex)`
174
173
  position: fixed;
175
174
  top: 0;
176
175
  right: 0;
@@ -196,7 +195,7 @@ const Overlay = styled__default.default(designSystem.Flex)`
196
195
  opacity: 0.9;
197
196
  }
198
197
  `;
199
- const IconBox$1 = styled__default.default(designSystem.Box)`
198
+ const IconBox$1 = styledComponents.styled(designSystem.Box)`
200
199
  border-radius: 50%;
201
200
  svg {
202
201
  > path {
@@ -379,7 +378,7 @@ const ContentTypeBuilderNav = () => {
379
378
  return /* @__PURE__ */ jsxRuntime.jsxs(
380
379
  designSystem.SubNav,
381
380
  {
382
- ariaLabel: formatMessage({
381
+ "aria-label": formatMessage({
383
382
  id: `${getTrad("plugin.name")}`,
384
383
  defaultMessage: "Content-Types Builder"
385
384
  }),
@@ -416,7 +415,7 @@ const ContentTypeBuilderNav = () => {
416
415
  return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SubNavLinkSection, { label: upperFirst__default.default(link.title), children: link.links.map((subLink) => /* @__PURE__ */ jsxRuntime.jsx(
417
416
  designSystem.SubNavLink,
418
417
  {
419
- as: reactRouterDom.NavLink,
418
+ tag: reactRouterDom.NavLink,
420
419
  to: subLink.to,
421
420
  active: subLink.active,
422
421
  isSubSectionChild: true,
@@ -427,10 +426,7 @@ const ContentTypeBuilderNav = () => {
427
426
  subLink.name
428
427
  )) }, link.name);
429
428
  }
430
- return (
431
- // @ts-expect-error verify if "to" is needed
432
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.SubNavLink, { as: reactRouterDom.NavLink, to: link.to, active: link.active, children: upperFirst__default.default(formatMessage({ id: link.name, defaultMessage: link.title })) }, link.name)
433
- );
429
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SubNavLink, { tag: reactRouterDom.NavLink, to: link.to, active: link.active, children: upperFirst__default.default(formatMessage({ id: link.name, defaultMessage: link.title })) }, link.name);
434
430
  })
435
431
  }
436
432
  ),
@@ -495,23 +491,24 @@ const AllowedTypesSelect = ({
495
491
  const { formatMessage } = reactIntl.useIntl();
496
492
  const displayedValue = value === null || value?.length === 0 ? formatMessage({ id: "global.none", defaultMessage: "None" }) : [...value].sort().map((v) => upperFirst__default.default(v)).join(", ");
497
493
  const label = intlLabel.id ? formatMessage({ id: intlLabel.id, defaultMessage: intlLabel.defaultMessage }) : name;
498
- return /* @__PURE__ */ jsxRuntime.jsx(
499
- designSystem.MultiSelectNested,
500
- {
501
- id: "select1",
502
- label,
503
- customizeContent: () => displayedValue,
504
- onChange: (values) => {
505
- if (values.length > 0) {
506
- onChange({ target: { name, value: values, type: "allowed-types-select" } });
507
- } else {
508
- onChange({ target: { name, value: null, type: "allowed-types-select" } });
509
- }
510
- },
511
- options,
512
- value: value || []
513
- }
514
- );
494
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name, children: [
495
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
496
+ /* @__PURE__ */ jsxRuntime.jsx(
497
+ designSystem.MultiSelectNested,
498
+ {
499
+ customizeContent: () => displayedValue,
500
+ onChange: (values) => {
501
+ if (values.length > 0) {
502
+ onChange({ target: { name, value: values, type: "allowed-types-select" } });
503
+ } else {
504
+ onChange({ target: { name, value: null, type: "allowed-types-select" } });
505
+ }
506
+ },
507
+ options,
508
+ value: value || []
509
+ }
510
+ )
511
+ ] });
515
512
  };
516
513
  const iconByTypes = {
517
514
  biginteger: Symbols.NumberField,
@@ -545,7 +542,7 @@ const iconByTypes = {
545
542
  timestamp: Symbols.DateField,
546
543
  uid: Symbols.UidField
547
544
  };
548
- const IconBox = styled__default.default(designSystem.Box)`
545
+ const IconBox = styledComponents.styled(designSystem.Box)`
549
546
  svg {
550
547
  height: 100%;
551
548
  width: 100%;
@@ -564,9 +561,9 @@ const AttributeIcon = ({ type, customField = null, ...rest }) => {
564
561
  if (!iconByTypes[type]) {
565
562
  return null;
566
563
  }
567
- return /* @__PURE__ */ jsxRuntime.jsx(IconBox, { width: "3.2rem", shrink: 0, ...rest, "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { as: Compo }) });
564
+ return /* @__PURE__ */ jsxRuntime.jsx(IconBox, { width: "3.2rem", shrink: 0, ...rest, "aria-hidden": true, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { tag: Compo }) });
568
565
  };
569
- const OptionBoxWrapper = styled__default.default(designSystem.Box)`
566
+ const OptionBoxWrapper = styledComponents.styled(designSystem.Box)`
570
567
  width: 100%;
571
568
  height: 100%;
572
569
  border: 1px solid ${({ theme }) => theme.colors.neutral200};
@@ -591,7 +588,7 @@ const AttributeOption = ({ type = "text" }) => {
591
588
  step
592
589
  });
593
590
  };
594
- return /* @__PURE__ */ jsxRuntime.jsx(OptionBoxWrapper, { padding: 4, as: "button", hasRadius: true, type: "button", onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
591
+ return /* @__PURE__ */ jsxRuntime.jsx(OptionBoxWrapper, { padding: 4, tag: "button", hasRadius: true, type: "button", onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
595
592
  /* @__PURE__ */ jsxRuntime.jsx(AttributeIcon, { type }),
596
593
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { paddingLeft: 4, width: "100%", children: [
597
594
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
@@ -621,7 +618,7 @@ const CustomFieldOption = ({ customFieldUid, customField }) => {
621
618
  customFieldUid
622
619
  });
623
620
  };
624
- return /* @__PURE__ */ jsxRuntime.jsx(OptionBoxWrapper, { padding: 4, as: "button", hasRadius: true, type: "button", onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
621
+ return /* @__PURE__ */ jsxRuntime.jsx(OptionBoxWrapper, { padding: 4, tag: "button", hasRadius: true, type: "button", onClick: handleClick, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
625
622
  /* @__PURE__ */ jsxRuntime.jsx(AttributeIcon, { type, customField: customFieldUid }),
626
623
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { paddingLeft: 4, children: [
627
624
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", children: formatMessage(intlLabel) }) }),
@@ -629,7 +626,7 @@ const CustomFieldOption = ({ customFieldUid, customField }) => {
629
626
  ] })
630
627
  ] }) });
631
628
  };
632
- const EmptyCard = styled__default.default(designSystem.Box)`
629
+ const EmptyCard = styledComponents.styled(designSystem.Box)`
633
630
  background: ${({ theme }) => `linear-gradient(180deg, rgba(234, 234, 239, 0) 0%, ${theme.colors.neutral150} 100%)`};
634
631
  opacity: 0.33;
635
632
  `;
@@ -653,11 +650,11 @@ const EmptyAttributes = () => {
653
650
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { position: "absolute", top: 6, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { alignItems: "center", justifyContent: "center", direction: "column", children: [
654
651
  /* @__PURE__ */ jsxRuntime.jsx(Symbols.EmptyDocuments, { width: "160px", height: "88px" }),
655
652
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 6, paddingBottom: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { textAlign: "center", children: [
656
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", as: "p", textColor: "neutral600", children: formatMessage({
653
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", tag: "p", textColor: "neutral600", children: formatMessage({
657
654
  id: getTrad("modalForm.empty.heading"),
658
655
  defaultMessage: "Nothing in here yet."
659
656
  }) }),
660
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", as: "p", textColor: "neutral600", children: formatMessage({
657
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", tag: "p", textColor: "neutral600", children: formatMessage({
661
658
  id: getTrad("modalForm.empty.sub-heading"),
662
659
  defaultMessage: "Find what you are looking for through a wide range of extensions."
663
660
  }) }) })
@@ -665,7 +662,7 @@ const EmptyAttributes = () => {
665
662
  /* @__PURE__ */ jsxRuntime.jsx(
666
663
  designSystem.LinkButton,
667
664
  {
668
- forwardedAs: reactRouterDom.Link,
665
+ tag: reactRouterDom.Link,
669
666
  to: `/marketplace?${qs__namespace.stringify({ categories: ["Custom fields"] })}`,
670
667
  variant: "secondary",
671
668
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Plus, {}),
@@ -720,7 +717,7 @@ const AttributeOptions = ({ attributes, forTarget, kind }) => {
720
717
  variant: "simple",
721
718
  children: [
722
719
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
723
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", as: "h2", children: formatMessage({ id: titleId, defaultMessage: "Select a field" }) }),
720
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", tag: "h2", children: formatMessage({ id: titleId, defaultMessage: "Select a field" }) }),
724
721
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Tabs, { children: [
725
722
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tab, { children: formatMessage({ id: defaultTabId, defaultMessage: "Default" }) }),
726
723
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Tab, { children: formatMessage({ id: customTabId, defaultMessage: "Custom" }) })
@@ -757,21 +754,14 @@ const BooleanDefaultValueSelect = ({
757
754
  }
758
755
  onChange({ target: { name, value: nextValue, type: "select-default-boolean" } });
759
756
  };
760
- return /* @__PURE__ */ jsxRuntime.jsx(
761
- designSystem.SingleSelect,
762
- {
763
- label,
764
- id: name,
765
- name,
766
- onChange: handleChange,
767
- value: (value === null ? "" : value).toString(),
768
- children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
769
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: intlLabel2.defaultMessage }, key);
770
- })
771
- }
772
- );
757
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name, children: [
758
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
759
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelect, { onChange: handleChange, value: (value === null ? "" : value).toString(), children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
760
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: intlLabel2.defaultMessage }, key);
761
+ }) })
762
+ ] });
773
763
  };
774
- const Wrapper$1 = styled__default.default(designSystem.Flex)`
764
+ const Wrapper$1 = styledComponents.styled(designSystem.Flex)`
775
765
  position: relative;
776
766
  align-items: stretch;
777
767
 
@@ -828,9 +818,7 @@ const Wrapper$1 = styled__default.default(designSystem.Flex)`
828
818
 
829
819
  .container input:checked ~ div {
830
820
  background: ${({ theme }) => theme.colors.primary100};
831
- ${designSystem.Typography} {
832
- color: ${({ theme }) => theme.colors.primary600};
833
- }
821
+ color: ${({ theme }) => theme.colors.primary600};
834
822
  border: 1px solid ${({ theme }) => theme.colors.primary200};
835
823
  .checkmark {
836
824
  border: solid 1px ${({ theme }) => theme.colors.primary600};
@@ -850,7 +838,7 @@ const CustomRadioGroup = ({
850
838
  }) => {
851
839
  const { formatMessage } = reactIntl.useIntl();
852
840
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 2, children: [
853
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", textColor: "neutral800", htmlFor: name, as: "label", children: formatMessage(intlLabel) }),
841
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", textColor: "neutral800", htmlFor: name, tag: "label", children: formatMessage(intlLabel) }),
854
842
  /* @__PURE__ */ jsxRuntime.jsx(Wrapper$1, { gap: 4, alignItems: "stretch", children: radios.map((radio) => {
855
843
  return /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: radio.value.toString(), className: "container", children: [
856
844
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -922,32 +910,31 @@ const CheckboxWithNumberField = ({
922
910
  children: label
923
911
  }
924
912
  ),
925
- showInput && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 6, style: { maxWidth: "200px" }, children: type === "text" ? /* @__PURE__ */ jsxRuntime.jsx(
926
- designSystem.TextInput,
927
- {
928
- label: "",
929
- "aria-label": label,
930
- disabled,
931
- error: errorMessage,
932
- id: name,
933
- name,
934
- onChange,
935
- value: value === null ? "" : value
936
- }
937
- ) : /* @__PURE__ */ jsxRuntime.jsx(
938
- designSystem.NumberInput,
939
- {
940
- "aria-label": label,
941
- disabled,
942
- error: errorMessage,
943
- id: name,
944
- name,
945
- onValueChange: (value2) => {
946
- onChange({ target: { name, value: value2, type } });
947
- },
948
- value: value || 0
949
- }
950
- ) })
913
+ showInput && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 6, style: { maxWidth: "200px" }, children: type === "text" ? /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
914
+ /* @__PURE__ */ jsxRuntime.jsx(
915
+ designSystem.TextInput,
916
+ {
917
+ "aria-label": label,
918
+ disabled,
919
+ onChange,
920
+ value: value === null ? "" : value
921
+ }
922
+ ),
923
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
924
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
925
+ /* @__PURE__ */ jsxRuntime.jsx(
926
+ designSystem.NumberInput,
927
+ {
928
+ "aria-label": label,
929
+ disabled,
930
+ onValueChange: (value2) => {
931
+ onChange({ target: { name, value: value2, type } });
932
+ },
933
+ value: value || 0
934
+ }
935
+ ),
936
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
937
+ ] }) })
951
938
  ] });
952
939
  };
953
940
  const ContentTypeRadioGroup = ({ onChange, ...rest }) => {
@@ -997,7 +984,10 @@ const DraftAndPublishToggle = ({
997
984
  onChange({ target: { name, value: checked } });
998
985
  };
999
986
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1000
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Checkbox, { checked: value, disabled, hint, name, onChange: handleChange, children: label }),
987
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { hint, name, children: [
988
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Checkbox, { checked: value, disabled, onChange: handleChange, children: label }),
989
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
990
+ ] }),
1001
991
  /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.ConfirmDialog, { isOpen: showWarning, onClose: handleToggle, onConfirm: handleConfirm, children: formatMessage({
1002
992
  id: getTrad("popUpWarning.draft-publish.message"),
1003
993
  defaultMessage: "If you disable the draft & publish, your drafts will be deleted."
@@ -1418,7 +1408,7 @@ const FormModalHeader = ({
1418
1408
  }
1419
1409
  return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
1420
1410
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(AttributeIcon, { type: icon }) }),
1421
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 3, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title", children: formatMessage({ id: headerId }, { name: displayName }) }) })
1411
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 3, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id: "title", children: formatMessage({ id: headerId }, { name: displayName }) }) })
1422
1412
  ] }) });
1423
1413
  }
1424
1414
  headers = [
@@ -1513,7 +1503,7 @@ const FormModalSubHeader = ({
1513
1503
  const { formatMessage } = reactIntl.useIntl();
1514
1504
  const intlLabel = modalType === "customField" ? customField?.intlLabel : { id: getTrad(`attribute.${attributeType}`) };
1515
1505
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "flex-start", paddingBottom: 2, gap: 1, children: [
1516
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h2", variant: "beta", children: formatMessage(
1506
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "beta", children: formatMessage(
1517
1507
  {
1518
1508
  id: getModalTitleSubHeader({
1519
1509
  actionType,
@@ -1663,7 +1653,7 @@ const COMPONENT_ICONS = {
1663
1653
  wheelchair: Icons__namespace.Wheelchair,
1664
1654
  write: Icons__namespace.Feather
1665
1655
  };
1666
- const IconPickerWrapper = styled__default.default(designSystem.Flex)`
1656
+ const IconPickerWrapper = styledComponents.styled(designSystem.Flex)`
1667
1657
  label {
1668
1658
  ${designSystem.inputFocusStyle()}
1669
1659
  border-radius: ${({ theme }) => theme.borderRadius};
@@ -1672,23 +1662,18 @@ const IconPickerWrapper = styled__default.default(designSystem.Flex)`
1672
1662
  `;
1673
1663
  const IconPick = ({ iconKey, name, onChange, isSelected, ariaLabel }) => {
1674
1664
  const Icon = COMPONENT_ICONS[iconKey];
1675
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field, { name, required: false, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.FieldLabel, { htmlFor: iconKey, id: `${iconKey}-label`, children: [
1676
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.VisuallyHidden, { children: [
1677
- /* @__PURE__ */ jsxRuntime.jsx(
1678
- designSystem.FieldInput,
1679
- {
1680
- type: "radio",
1681
- id: iconKey,
1682
- name,
1683
- checked: isSelected,
1684
- onChange,
1685
- value: iconKey,
1686
- "aria-checked": isSelected,
1687
- "aria-labelledby": `${iconKey}-label`
1688
- }
1689
- ),
1690
- ariaLabel
1691
- ] }),
1665
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name, required: false, children: [
1666
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: ariaLabel }),
1667
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(
1668
+ designSystem.Field.Input,
1669
+ {
1670
+ type: "radio",
1671
+ checked: isSelected,
1672
+ onChange,
1673
+ value: iconKey,
1674
+ "aria-checked": isSelected
1675
+ }
1676
+ ) }),
1692
1677
  /* @__PURE__ */ jsxRuntime.jsx(
1693
1678
  designSystem.Flex,
1694
1679
  {
@@ -1699,7 +1684,7 @@ const IconPick = ({ iconKey, name, onChange, isSelected, ariaLabel }) => {
1699
1684
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { fill: isSelected ? "primary600" : "neutral300" })
1700
1685
  }
1701
1686
  )
1702
- ] }) });
1687
+ ] });
1703
1688
  };
1704
1689
  const IconPicker = ({ intlLabel, name, onChange, value = "" }) => {
1705
1690
  const { formatMessage } = reactIntl.useIntl();
@@ -1731,14 +1716,13 @@ const IconPicker = ({ intlLabel, name, onChange, value = "" }) => {
1731
1716
  }, [showSearch]);
1732
1717
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1733
1718
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", paddingBottom: 2, children: [
1734
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", textColor: "neutral800", as: "label", children: formatMessage(intlLabel) }),
1719
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", fontWeight: "bold", textColor: "neutral800", tag: "label", children: formatMessage(intlLabel) }),
1735
1720
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 1, children: [
1736
1721
  showSearch ? /* @__PURE__ */ jsxRuntime.jsx(
1737
1722
  designSystem.Searchbar,
1738
1723
  {
1739
1724
  ref: searchBarRef,
1740
1725
  name: "searchbar",
1741
- size: "S",
1742
1726
  placeholder: formatMessage({
1743
1727
  id: getTrad("ComponentIconPicker.search.placeholder"),
1744
1728
  defaultMessage: "Search for an icon"
@@ -1765,18 +1749,19 @@ const IconPicker = ({ intlLabel, name, onChange, value = "" }) => {
1765
1749
  {
1766
1750
  ref: searchIconRef,
1767
1751
  onClick: toggleSearch,
1768
- "aria-label": formatMessage({
1752
+ withTooltip: false,
1753
+ label: formatMessage({
1769
1754
  id: getTrad("IconPicker.search.button.label"),
1770
1755
  defaultMessage: "Search icon button"
1771
1756
  }),
1772
- icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Search, {}),
1773
- noBorder: true
1757
+ borderWidth: 0,
1758
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Search, {})
1774
1759
  }
1775
1760
  ),
1776
1761
  value && /* @__PURE__ */ jsxRuntime.jsx(
1777
1762
  designSystem.Tooltip,
1778
1763
  {
1779
- description: formatMessage({
1764
+ label: formatMessage({
1780
1765
  id: getTrad("IconPicker.remove.tooltip"),
1781
1766
  defaultMessage: "Remove the selected icon"
1782
1767
  }),
@@ -1784,12 +1769,13 @@ const IconPicker = ({ intlLabel, name, onChange, value = "" }) => {
1784
1769
  designSystem.IconButton,
1785
1770
  {
1786
1771
  onClick: removeIconSelected,
1787
- "aria-label": formatMessage({
1772
+ withTooltip: false,
1773
+ label: formatMessage({
1788
1774
  id: getTrad("IconPicker.remove.button"),
1789
- defaultMessage: "Remove the selected icon button"
1775
+ defaultMessage: "Remove the selected icon"
1790
1776
  }),
1791
- icon: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {}),
1792
- noBorder: true
1777
+ borderWidth: 0,
1778
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icons.Trash, {})
1793
1779
  }
1794
1780
  )
1795
1781
  }
@@ -1863,18 +1849,11 @@ const PluralName = ({
1863
1849
  { ...description.values }
1864
1850
  ) : "";
1865
1851
  const label = formatMessage(intlLabel);
1866
- return /* @__PURE__ */ jsxRuntime.jsx(
1867
- designSystem.TextInput,
1868
- {
1869
- error: errorMessage,
1870
- label,
1871
- id: name,
1872
- hint,
1873
- name,
1874
- onChange,
1875
- value: value || ""
1876
- }
1877
- );
1852
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, hint, name, children: [
1853
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
1854
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.TextInput, { onChange, value: value || "" }),
1855
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
1856
+ ] });
1878
1857
  };
1879
1858
  const GenericInput = ({
1880
1859
  autoComplete,
@@ -1976,324 +1955,232 @@ const GenericInput = ({
1976
1955
  { id: placeholder.id, defaultMessage: placeholder.defaultMessage },
1977
1956
  { ...placeholder.values }
1978
1957
  ) : "";
1979
- switch (type) {
1980
- case "json": {
1981
- return /* @__PURE__ */ jsxRuntime.jsx(
1982
- designSystem.JSONInput,
1983
- {
1984
- label,
1985
- labelAction,
1986
- value,
1987
- error: errorMessage,
1988
- disabled,
1989
- hint,
1990
- required,
1991
- onChange: (json) => {
1992
- const value2 = attribute && "required" in attribute && !attribute?.required && !json.length ? null : json;
1993
- onChange({ target: { name, value: value2 } }, false);
1994
- },
1995
- minHeight: "25.2rem",
1996
- maxHeight: "50.4rem"
1997
- }
1998
- );
1999
- }
2000
- case "bool": {
2001
- return /* @__PURE__ */ jsxRuntime.jsx(
2002
- designSystem.ToggleInput,
2003
- {
2004
- checked: defaultValue === null ? null : defaultValue || false,
2005
- disabled,
2006
- hint,
2007
- label,
2008
- error: errorMessage,
2009
- labelAction,
2010
- name,
2011
- offLabel: formatMessage({
2012
- id: "app.components.ToggleCheckbox.off-label",
2013
- defaultMessage: "False"
2014
- }),
2015
- onLabel: formatMessage({
2016
- id: "app.components.ToggleCheckbox.on-label",
2017
- defaultMessage: "True"
2018
- }),
2019
- onChange: (e) => {
2020
- onChange({ target: { name, value: e.target.checked } });
2021
- },
2022
- required,
2023
- onClear: () => {
2024
- onChange({ target: { name, value: null } });
2025
- },
2026
- clearLabel: isNullable ? formatMessage({
2027
- id: "app.components.ToggleCheckbox.clear-label",
2028
- defaultMessage: "Clear"
2029
- }) : void 0
2030
- }
2031
- );
2032
- }
2033
- case "checkbox": {
2034
- return /* @__PURE__ */ jsxRuntime.jsx(
2035
- designSystem.Checkbox,
2036
- {
2037
- disabled,
2038
- error: errorMessage,
2039
- hint,
2040
- id: name,
2041
- name,
2042
- onValueChange: (value2) => {
2043
- onChange({ target: { name, value: value2 } });
2044
- },
2045
- required,
2046
- value: Boolean(value),
2047
- children: label
2048
- }
2049
- );
2050
- }
2051
- case "datetime": {
2052
- return /* @__PURE__ */ jsxRuntime.jsx(
2053
- designSystem.DateTimePicker,
2054
- {
2055
- clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2056
- disabled,
2057
- error: errorMessage,
2058
- label,
2059
- labelAction,
2060
- id: name,
2061
- hint,
2062
- name,
2063
- onChange: (date) => {
2064
- const formattedDate = date ? date.toISOString() : null;
2065
- onChange({ target: { name, value: formattedDate, type } });
2066
- },
2067
- onClear: () => onChange({ target: { name, value: null, type } }),
2068
- placeholder: formattedPlaceholder,
2069
- required,
2070
- value
2071
- }
2072
- );
2073
- }
2074
- case "date": {
2075
- return /* @__PURE__ */ jsxRuntime.jsx(
2076
- designSystem.DatePicker,
2077
- {
2078
- clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2079
- disabled,
2080
- error: errorMessage,
2081
- label,
2082
- id: name,
2083
- hint,
2084
- name,
2085
- onChange: (date) => {
2086
- onChange({
2087
- target: {
2088
- name,
2089
- value: date ? formatISO__default.default(date, { representation: "date" }) : null,
2090
- type
2091
- }
2092
- });
2093
- },
2094
- onClear: () => onChange({ target: { name, value: null, type } }),
2095
- placeholder: formattedPlaceholder,
2096
- required,
2097
- selectedDate: value
2098
- }
2099
- );
2100
- }
2101
- case "number": {
2102
- return /* @__PURE__ */ jsxRuntime.jsx(
2103
- designSystem.NumberInput,
2104
- {
2105
- disabled,
2106
- error: errorMessage,
2107
- label,
2108
- labelAction,
2109
- id: name,
2110
- hint,
2111
- name,
2112
- onValueChange: (value2) => {
2113
- onChange({ target: { name, value: value2, type } });
2114
- },
2115
- placeholder: formattedPlaceholder,
2116
- required,
2117
- step,
2118
- value
2119
- }
2120
- );
2121
- }
2122
- case "email": {
2123
- return /* @__PURE__ */ jsxRuntime.jsx(
2124
- designSystem.TextInput,
2125
- {
2126
- autoComplete,
2127
- disabled,
2128
- error: errorMessage,
2129
- label,
2130
- labelAction,
2131
- id: name,
2132
- hint,
2133
- name,
2134
- onChange: (e) => {
2135
- onChange({ target: { name, value: e.target.value, type } });
2136
- },
2137
- placeholder: formattedPlaceholder,
2138
- required,
2139
- type: "email",
2140
- value: valueWithEmptyStringFallback
2141
- }
2142
- );
2143
- }
2144
- case "timestamp":
2145
- case "text":
2146
- case "string": {
2147
- return /* @__PURE__ */ jsxRuntime.jsx(
2148
- designSystem.TextInput,
2149
- {
2150
- autoComplete,
2151
- disabled,
2152
- error: errorMessage,
2153
- label,
2154
- labelAction,
2155
- id: name,
2156
- hint,
2157
- name,
2158
- onChange: (e) => {
2159
- onChange({ target: { name, value: e.target.value, type } });
2160
- },
2161
- placeholder: formattedPlaceholder,
2162
- required,
2163
- type: "text",
2164
- value: valueWithEmptyStringFallback
2165
- }
2166
- );
2167
- }
2168
- case "password": {
2169
- return /* @__PURE__ */ jsxRuntime.jsx(
2170
- designSystem.TextInput,
2171
- {
2172
- autoComplete,
2173
- disabled,
2174
- error: errorMessage,
2175
- endAction: /* @__PURE__ */ jsxRuntime.jsx(
2176
- "button",
2177
- {
2178
- "aria-label": formatMessage({
2179
- id: "Auth.form.password.show-password",
2180
- defaultMessage: "Show password"
2181
- }),
2182
- onClick: () => {
2183
- setShowPassword((prev) => !prev);
2184
- },
2185
- style: {
2186
- border: "none",
2187
- padding: 0,
2188
- background: "transparent"
2189
- },
2190
- type: "button",
2191
- children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(Icons.Eye, { fill: "neutral500" }) : /* @__PURE__ */ jsxRuntime.jsx(Icons.EyeStriked, { fill: "neutral500" })
1958
+ const getComponent = () => {
1959
+ switch (type) {
1960
+ case "json": {
1961
+ return /* @__PURE__ */ jsxRuntime.jsx(
1962
+ designSystem.JSONInput,
1963
+ {
1964
+ value,
1965
+ disabled,
1966
+ onChange: (json) => {
1967
+ const value2 = attribute && "required" in attribute && !attribute?.required && !json.length ? null : json;
1968
+ onChange({ target: { name, value: value2 } }, false);
1969
+ },
1970
+ minHeight: "25.2rem",
1971
+ maxHeight: "50.4rem"
1972
+ }
1973
+ );
1974
+ }
1975
+ case "bool": {
1976
+ return /* @__PURE__ */ jsxRuntime.jsx(
1977
+ designSystem.Toggle,
1978
+ {
1979
+ checked: defaultValue === null ? null : defaultValue || false,
1980
+ disabled,
1981
+ offLabel: formatMessage({
1982
+ id: "app.components.ToggleCheckbox.off-label",
1983
+ defaultMessage: "False"
1984
+ }),
1985
+ onLabel: formatMessage({
1986
+ id: "app.components.ToggleCheckbox.on-label",
1987
+ defaultMessage: "True"
1988
+ }),
1989
+ onChange: (e) => {
1990
+ onChange({ target: { name, value: e.target.checked } });
2192
1991
  }
2193
- ),
2194
- label,
2195
- labelAction,
2196
- id: name,
2197
- hint,
2198
- name,
2199
- onChange: (e) => {
2200
- onChange({ target: { name, value: e.target.value, type } });
2201
- },
2202
- placeholder: formattedPlaceholder,
2203
- required,
2204
- type: showPassword ? "text" : "password",
2205
- value: valueWithEmptyStringFallback
2206
- }
2207
- );
2208
- }
2209
- case "select": {
2210
- return /* @__PURE__ */ jsxRuntime.jsx(
2211
- designSystem.SingleSelect,
2212
- {
2213
- disabled,
2214
- error: errorMessage,
2215
- label,
2216
- labelAction,
2217
- id: name,
2218
- hint,
2219
- name,
2220
- onChange: (value2) => {
2221
- onChange({ target: { name, value: value2, type: "select" } });
2222
- },
2223
- placeholder: formattedPlaceholder,
2224
- required,
2225
- value,
2226
- children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled: disabled2, hidden }, key, value: value2 }) => {
2227
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled: disabled2, hidden, children: formatMessage(intlLabel2) }, key);
2228
- })
2229
- }
2230
- );
2231
- }
2232
- case "textarea": {
2233
- return /* @__PURE__ */ jsxRuntime.jsx(
2234
- designSystem.Textarea,
2235
- {
2236
- disabled,
2237
- error: errorMessage,
2238
- label,
2239
- labelAction,
2240
- id: name,
2241
- hint,
2242
- name,
2243
- onChange: (event) => onChange({ target: { name, value: event.target.value, type } }),
2244
- required,
2245
- placeholder: formattedPlaceholder,
2246
- value: valueWithEmptyStringFallback
2247
- }
2248
- );
2249
- }
2250
- case "time": {
2251
- let time = value;
2252
- if (typeof value === "string" && value.split(":").length > 2) {
2253
- const [hour, minute] = value.split(":");
2254
- time = `${hour}:${minute}`;
1992
+ }
1993
+ );
2255
1994
  }
2256
- return /* @__PURE__ */ jsxRuntime.jsx(
2257
- designSystem.TimePicker,
2258
- {
2259
- clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2260
- disabled,
2261
- error: errorMessage,
2262
- label,
2263
- labelAction,
2264
- id: name,
2265
- hint,
2266
- name,
2267
- onChange: (time2) => {
2268
- onChange({ target: { name, value: `${time2}`, type } });
2269
- },
2270
- onClear: () => {
2271
- onChange({ target: { name, value: null, type } });
2272
- },
2273
- required,
2274
- value: time
2275
- }
2276
- );
2277
- }
2278
- default: {
2279
- return /* @__PURE__ */ jsxRuntime.jsx(
2280
- designSystem.TextInput,
2281
- {
2282
- disabled: true,
2283
- error: errorMessage,
2284
- label,
2285
- labelAction,
2286
- id: name,
2287
- hint,
2288
- name,
2289
- placeholder: "Not supported",
2290
- required,
2291
- type: "text",
2292
- value: ""
1995
+ case "checkbox": {
1996
+ return /* @__PURE__ */ jsxRuntime.jsx(
1997
+ designSystem.Checkbox,
1998
+ {
1999
+ disabled,
2000
+ onValueChange: (value2) => {
2001
+ onChange({ target: { name, value: value2 } });
2002
+ },
2003
+ value: Boolean(value),
2004
+ children: label
2005
+ }
2006
+ );
2007
+ }
2008
+ case "datetime": {
2009
+ return /* @__PURE__ */ jsxRuntime.jsx(
2010
+ designSystem.DateTimePicker,
2011
+ {
2012
+ clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2013
+ disabled,
2014
+ onChange: (date) => {
2015
+ const formattedDate = date ? date.toISOString() : null;
2016
+ onChange({ target: { name, value: formattedDate, type } });
2017
+ },
2018
+ onClear: () => onChange({ target: { name, value: null, type } }),
2019
+ placeholder: formattedPlaceholder,
2020
+ value
2021
+ }
2022
+ );
2023
+ }
2024
+ case "date": {
2025
+ return /* @__PURE__ */ jsxRuntime.jsx(
2026
+ designSystem.DatePicker,
2027
+ {
2028
+ clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2029
+ disabled,
2030
+ onChange: (date) => {
2031
+ onChange({
2032
+ target: {
2033
+ name,
2034
+ value: date ? formatISO__default.default(date, { representation: "date" }) : null,
2035
+ type
2036
+ }
2037
+ });
2038
+ },
2039
+ onClear: () => onChange({ target: { name, value: null, type } }),
2040
+ placeholder: formattedPlaceholder,
2041
+ value
2042
+ }
2043
+ );
2044
+ }
2045
+ case "number": {
2046
+ return /* @__PURE__ */ jsxRuntime.jsx(
2047
+ designSystem.NumberInput,
2048
+ {
2049
+ disabled,
2050
+ onValueChange: (value2) => {
2051
+ onChange({ target: { name, value: value2, type } });
2052
+ },
2053
+ placeholder: formattedPlaceholder,
2054
+ step,
2055
+ value
2056
+ }
2057
+ );
2058
+ }
2059
+ case "email": {
2060
+ return /* @__PURE__ */ jsxRuntime.jsx(
2061
+ designSystem.TextInput,
2062
+ {
2063
+ autoComplete,
2064
+ disabled,
2065
+ onChange: (e) => {
2066
+ onChange({ target: { name, value: e.target.value, type } });
2067
+ },
2068
+ placeholder: formattedPlaceholder,
2069
+ type: "email",
2070
+ value: valueWithEmptyStringFallback
2071
+ }
2072
+ );
2073
+ }
2074
+ case "timestamp":
2075
+ case "text":
2076
+ case "string": {
2077
+ return /* @__PURE__ */ jsxRuntime.jsx(
2078
+ designSystem.TextInput,
2079
+ {
2080
+ autoComplete,
2081
+ disabled,
2082
+ onChange: (e) => {
2083
+ onChange({ target: { name, value: e.target.value, type } });
2084
+ },
2085
+ placeholder: formattedPlaceholder,
2086
+ type: "text",
2087
+ value: valueWithEmptyStringFallback
2088
+ }
2089
+ );
2090
+ }
2091
+ case "password": {
2092
+ return /* @__PURE__ */ jsxRuntime.jsx(
2093
+ designSystem.TextInput,
2094
+ {
2095
+ autoComplete,
2096
+ disabled,
2097
+ endAction: /* @__PURE__ */ jsxRuntime.jsx(
2098
+ "button",
2099
+ {
2100
+ "aria-label": formatMessage({
2101
+ id: "Auth.form.password.show-password",
2102
+ defaultMessage: "Show password"
2103
+ }),
2104
+ onClick: () => {
2105
+ setShowPassword((prev) => !prev);
2106
+ },
2107
+ style: {
2108
+ border: "none",
2109
+ padding: 0,
2110
+ background: "transparent"
2111
+ },
2112
+ type: "button",
2113
+ children: showPassword ? /* @__PURE__ */ jsxRuntime.jsx(Icons.Eye, { fill: "neutral500" }) : /* @__PURE__ */ jsxRuntime.jsx(Icons.EyeStriked, { fill: "neutral500" })
2114
+ }
2115
+ ),
2116
+ onChange: (e) => {
2117
+ onChange({ target: { name, value: e.target.value, type } });
2118
+ },
2119
+ placeholder: formattedPlaceholder,
2120
+ type: showPassword ? "text" : "password",
2121
+ value: valueWithEmptyStringFallback
2122
+ }
2123
+ );
2124
+ }
2125
+ case "select": {
2126
+ return /* @__PURE__ */ jsxRuntime.jsx(
2127
+ designSystem.SingleSelect,
2128
+ {
2129
+ disabled,
2130
+ onChange: (value2) => {
2131
+ onChange({ target: { name, value: value2, type: "select" } });
2132
+ },
2133
+ placeholder: formattedPlaceholder,
2134
+ value,
2135
+ children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled: disabled2, hidden }, key, value: value2 }) => {
2136
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled: disabled2, hidden, children: formatMessage(intlLabel2) }, key);
2137
+ })
2138
+ }
2139
+ );
2140
+ }
2141
+ case "textarea": {
2142
+ return /* @__PURE__ */ jsxRuntime.jsx(
2143
+ designSystem.Textarea,
2144
+ {
2145
+ disabled,
2146
+ onChange: (event) => onChange({ target: { name, value: event.target.value, type } }),
2147
+ placeholder: formattedPlaceholder,
2148
+ value: valueWithEmptyStringFallback
2149
+ }
2150
+ );
2151
+ }
2152
+ case "time": {
2153
+ let time = value;
2154
+ if (typeof value === "string" && value.split(":").length > 2) {
2155
+ const [hour, minute] = value.split(":");
2156
+ time = `${hour}:${minute}`;
2293
2157
  }
2294
- );
2158
+ return /* @__PURE__ */ jsxRuntime.jsx(
2159
+ designSystem.TimePicker,
2160
+ {
2161
+ clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
2162
+ disabled,
2163
+ onChange: (time2) => {
2164
+ onChange({ target: { name, value: `${time2}`, type } });
2165
+ },
2166
+ onClear: () => {
2167
+ onChange({ target: { name, value: null, type } });
2168
+ },
2169
+ value: time
2170
+ }
2171
+ );
2172
+ }
2173
+ default: {
2174
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.TextInput, { disabled: true, placeholder: "Not supported", type: "text", value: "" });
2175
+ }
2295
2176
  }
2296
- }
2177
+ };
2178
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, hint, required, children: [
2179
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
2180
+ getComponent(),
2181
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {}),
2182
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
2183
+ ] });
2297
2184
  };
2298
2185
  const useFieldHint = ({ description, fieldSchema, type }) => {
2299
2186
  const { formatMessage } = reactIntl.useIntl();
@@ -2418,7 +2305,7 @@ const RelationTargetPicker = ({
2418
2305
  ] }, uid)) })
2419
2306
  ] });
2420
2307
  };
2421
- const MenuTrigger = styled__default.default(designSystem.Menu.Trigger)`
2308
+ const MenuTrigger = styledComponents.styled(designSystem.Menu.Trigger)`
2422
2309
  svg {
2423
2310
  width: 0.6rem;
2424
2311
  height: 0.4rem;
@@ -2461,7 +2348,7 @@ const RelationFormBox = ({
2461
2348
  ) })
2462
2349
  ] });
2463
2350
  };
2464
- const Wrapper = styled__default.default(designSystem.Box)`
2351
+ const Wrapper = styledComponents.styled(designSystem.Box)`
2465
2352
  position: relative;
2466
2353
  width: 100%;
2467
2354
  &::before {
@@ -2474,24 +2361,24 @@ const Wrapper = styled__default.default(designSystem.Box)`
2474
2361
  z-index: 0;
2475
2362
  }
2476
2363
  `;
2477
- const IconWrapper = styled__default.default(designSystem.Box)`
2478
- background: ${({ theme, isSelected }) => theme.colors[isSelected ? "primary100" : "neutral0"]};
2364
+ const IconWrapper = styledComponents.styled(designSystem.Box)`
2365
+ background: ${({ theme, $isSelected }) => theme.colors[$isSelected ? "primary100" : "neutral0"]};
2479
2366
  border: 1px solid
2480
- ${({ theme, isSelected }) => theme.colors[isSelected ? "primary700" : "neutral200"]};
2367
+ ${({ theme, $isSelected }) => theme.colors[$isSelected ? "primary700" : "neutral200"]};
2481
2368
  border-radius: ${({ theme }) => theme.borderRadius};
2482
2369
  z-index: 1;
2483
2370
  svg {
2484
2371
  width: 2.4rem;
2485
2372
  height: 100%;
2486
2373
  path {
2487
- fill: ${({ theme, isSelected }) => theme.colors[isSelected ? "primary700" : "neutral500"]};
2374
+ fill: ${({ theme, $isSelected }) => theme.colors[$isSelected ? "primary700" : "neutral500"]};
2488
2375
  }
2489
2376
  }
2490
2377
  &:disabled {
2491
2378
  cursor: not-allowed;
2492
2379
  }
2493
2380
  `;
2494
- const InfosWrapper = styled__default.default(designSystem.Flex)`
2381
+ const InfosWrapper = styledComponents.styled(designSystem.Flex)`
2495
2382
  position: absolute;
2496
2383
  bottom: 0;
2497
2384
  left: 0;
@@ -2538,8 +2425,8 @@ const RelationNaturePicker = ({
2538
2425
  return /* @__PURE__ */ jsxRuntime.jsx(
2539
2426
  IconWrapper,
2540
2427
  {
2541
- as: "button",
2542
- isSelected: relationType === relation,
2428
+ tag: "button",
2429
+ $isSelected: relationType === relation,
2543
2430
  disabled: !isEnabled,
2544
2431
  onClick: () => {
2545
2432
  if (isEnabled) {
@@ -2635,19 +2522,11 @@ const SelectCategory = ({
2635
2522
  setCategories((prev) => [...prev, value2]);
2636
2523
  handleChange(value2);
2637
2524
  };
2638
- return /* @__PURE__ */ jsxRuntime.jsx(
2639
- designSystem.CreatableCombobox,
2640
- {
2641
- error: errorMessage,
2642
- id: name,
2643
- label,
2644
- name,
2645
- onChange: handleChange,
2646
- onCreateOption: handleCreateOption,
2647
- value,
2648
- children: categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.ComboboxOption, { value: category, children: category }, category))
2649
- }
2650
- );
2525
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
2526
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
2527
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Combobox, { onChange: handleChange, onCreateOption: handleCreateOption, value, creatable: true, children: categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(designSystem.ComboboxOption, { value: category, children: category }, category)) }),
2528
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2529
+ ] });
2651
2530
  };
2652
2531
  const SelectComponent = ({
2653
2532
  error = null,
@@ -2700,23 +2579,23 @@ const SelectComponent = ({
2700
2579
  }
2701
2580
  ];
2702
2581
  }
2703
- return /* @__PURE__ */ jsxRuntime.jsx(
2704
- designSystem.SingleSelect,
2705
- {
2706
- disabled: isCreatingComponentWhileAddingAField || !isCreating,
2707
- error: errorMessage,
2708
- label,
2709
- id: name,
2710
- name,
2711
- onChange: (value2) => {
2712
- onChange({ target: { name, value: value2, type: "select-category" } });
2713
- },
2714
- value: value || "",
2715
- children: options2.map((option) => {
2716
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: option.uid, children: `${option.categoryName} - ${option.label}` }, option.uid);
2717
- })
2718
- }
2719
- );
2582
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
2583
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
2584
+ /* @__PURE__ */ jsxRuntime.jsx(
2585
+ designSystem.SingleSelect,
2586
+ {
2587
+ disabled: isCreatingComponentWhileAddingAField || !isCreating,
2588
+ onChange: (value2) => {
2589
+ onChange({ target: { name, value: value2, type: "select-category" } });
2590
+ },
2591
+ value: value || "",
2592
+ children: options2.map((option) => {
2593
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: option.uid, children: `${option.categoryName} - ${option.label}` }, option.uid);
2594
+ })
2595
+ }
2596
+ ),
2597
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2598
+ ] });
2720
2599
  };
2721
2600
  const SelectComponents = ({
2722
2601
  dynamicZoneTarget,
@@ -2762,20 +2641,21 @@ const SelectComponents = ({
2762
2641
  },
2763
2642
  { number: value?.length ?? 0 }
2764
2643
  );
2765
- return /* @__PURE__ */ jsxRuntime.jsx(
2766
- designSystem.MultiSelectNested,
2767
- {
2768
- id: "select1",
2769
- label: formatMessage(intlLabel),
2770
- customizeContent: () => displayedValue,
2771
- name,
2772
- onChange: (values) => {
2773
- onChange({ target: { name, value: values, type: "select-components" } });
2774
- },
2775
- options: options2,
2776
- value: value || []
2777
- }
2778
- );
2644
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name, children: [
2645
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage(intlLabel) }),
2646
+ /* @__PURE__ */ jsxRuntime.jsx(
2647
+ designSystem.MultiSelectNested,
2648
+ {
2649
+ id: "select1",
2650
+ customizeContent: () => displayedValue,
2651
+ onChange: (values) => {
2652
+ onChange({ target: { name, value: values, type: "select-components" } });
2653
+ },
2654
+ options: options2,
2655
+ value: value || []
2656
+ }
2657
+ )
2658
+ ] });
2779
2659
  };
2780
2660
  const SelectDateType = ({
2781
2661
  intlLabel,
@@ -2798,23 +2678,16 @@ const SelectDateType = ({
2798
2678
  onChange({ target: { name: "default", value: null } });
2799
2679
  }
2800
2680
  };
2801
- return /* @__PURE__ */ jsxRuntime.jsx(
2802
- designSystem.SingleSelect,
2803
- {
2804
- error: errorMessage,
2805
- label,
2806
- id: name,
2807
- name,
2808
- onChange: handleChange,
2809
- value: value || "",
2810
- children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
2811
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: formatMessage(
2812
- { id: intlLabel2.id, defaultMessage: intlLabel2.defaultMessage },
2813
- intlLabel2.values
2814
- ) }, key);
2815
- })
2816
- }
2817
- );
2681
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
2682
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
2683
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelect, { onChange: handleChange, value: value || "", children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
2684
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: formatMessage(
2685
+ { id: intlLabel2.id, defaultMessage: intlLabel2.defaultMessage },
2686
+ intlLabel2.values
2687
+ ) }, key);
2688
+ }) }),
2689
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2690
+ ] });
2818
2691
  };
2819
2692
  const SelectNumber = ({
2820
2693
  intlLabel,
@@ -2856,20 +2729,13 @@ const SelectNumber = ({
2856
2729
  }
2857
2730
  }
2858
2731
  };
2859
- return /* @__PURE__ */ jsxRuntime.jsx(
2860
- designSystem.SingleSelect,
2861
- {
2862
- error: errorMessage,
2863
- label,
2864
- id: name,
2865
- name,
2866
- onChange: handleChange,
2867
- value: value || "",
2868
- children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
2869
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: formatMessage(intlLabel2) }, key);
2870
- })
2871
- }
2872
- );
2732
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, name, children: [
2733
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
2734
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelect, { onChange: handleChange, value: value || "", children: options2.map(({ metadatas: { intlLabel: intlLabel2, disabled, hidden }, key, value: value2 }) => {
2735
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.SingleSelectOption, { value: value2, disabled, hidden, children: formatMessage(intlLabel2) }, key);
2736
+ }) }),
2737
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2738
+ ] });
2873
2739
  };
2874
2740
  SelectNumber.defaultProps = {
2875
2741
  error: void 0,
@@ -2900,18 +2766,12 @@ const SingularName = ({
2900
2766
  { ...description.values }
2901
2767
  ) : "";
2902
2768
  const label = formatMessage(intlLabel);
2903
- return /* @__PURE__ */ jsxRuntime.jsx(
2904
- designSystem.TextInput,
2905
- {
2906
- error: errorMessage,
2907
- label,
2908
- id: name,
2909
- hint,
2910
- name,
2911
- onChange,
2912
- value: value || ""
2913
- }
2914
- );
2769
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, hint, name, children: [
2770
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: label }),
2771
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.TextInput, { onChange, value: value || "" }),
2772
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {}),
2773
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
2774
+ ] });
2915
2775
  };
2916
2776
  const TabForm = ({
2917
2777
  form,
@@ -2926,7 +2786,7 @@ const TabForm = ({
2926
2786
  return null;
2927
2787
  }
2928
2788
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
2929
- section.sectionTitle && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", as: "h3", children: formatMessage(section.sectionTitle) }) }),
2789
+ section.sectionTitle && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", tag: "h3", children: formatMessage(section.sectionTitle) }) }),
2930
2790
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children: section.items.map((input, i) => {
2931
2791
  const key = `${sectionIndex}.${i}`;
2932
2792
  const value = get__default.default(modifiedData, input.name, void 0);
@@ -2983,22 +2843,20 @@ const TextareaEnum = ({
2983
2843
  const arrayValue = e.target.value.split("\n");
2984
2844
  onChange({ target: { name, value: arrayValue } });
2985
2845
  };
2986
- return /* @__PURE__ */ jsxRuntime.jsx(
2987
- designSystem.Textarea,
2988
- {
2989
- disabled,
2990
- error: errorMessage,
2991
- label,
2992
- labelAction,
2993
- id: name,
2994
- hint,
2995
- name,
2996
- onChange: handleChange,
2997
- placeholder: formattedPlaceholder,
2998
- value: inputValue,
2999
- children: inputValue
3000
- }
3001
- );
2846
+ return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { error: errorMessage, hint, name, children: [
2847
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { action: labelAction, children: label }),
2848
+ /* @__PURE__ */ jsxRuntime.jsx(
2849
+ designSystem.Textarea,
2850
+ {
2851
+ disabled,
2852
+ onChange: handleChange,
2853
+ placeholder: formattedPlaceholder,
2854
+ value: inputValue
2855
+ }
2856
+ ),
2857
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {}),
2858
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {})
2859
+ ] });
3002
2860
  };
3003
2861
  const nameField$1 = {
3004
2862
  name: "name",
@@ -6842,11 +6700,11 @@ const FormModalNavigationProvider = ({ children }) => {
6842
6700
  }
6843
6701
  );
6844
6702
  };
6845
- const ListView$1 = React.lazy(() => Promise.resolve().then(() => require("./ListView-BG19KtnI.js")));
6703
+ const ListView$1 = React.lazy(() => Promise.resolve().then(() => require("./ListView-j9TFQZBa.js")));
6846
6704
  const RecursivePath = () => {
6847
6705
  return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Routes, { children: /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: `/:componentUid`, element: /* @__PURE__ */ jsxRuntime.jsx(ListView$1, {}) }) }) });
6848
6706
  };
6849
- const ListView = React.lazy(() => Promise.resolve().then(() => require("./ListView-BG19KtnI.js")));
6707
+ const ListView = React.lazy(() => Promise.resolve().then(() => require("./ListView-j9TFQZBa.js")));
6850
6708
  const App = () => {
6851
6709
  const { formatMessage } = reactIntl.useIntl();
6852
6710
  const title = formatMessage({
@@ -6862,7 +6720,7 @@ const App = () => {
6862
6720
  }, []);
6863
6721
  return /* @__PURE__ */ jsxRuntime.jsxs(strapiAdmin.Page.Protect, { permissions: index$1.PERMISSIONS.main, children: [
6864
6722
  /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Page.Title, { children: title }),
6865
- /* @__PURE__ */ jsxRuntime.jsx(AutoReloadOverlayBlockerProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(FormModalNavigationProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(DataManagerProvider$1, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Layout, { sideNav: /* @__PURE__ */ jsxRuntime.jsx(ContentTypeBuilderNav, {}), children: /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsxs(reactRouterDom.Routes, { children: [
6723
+ /* @__PURE__ */ jsxRuntime.jsx(AutoReloadOverlayBlockerProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(FormModalNavigationProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(DataManagerProvider$1, { children: /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Layouts.Root, { sideNav: /* @__PURE__ */ jsxRuntime.jsx(ContentTypeBuilderNav, {}), children: /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsxs(reactRouterDom.Routes, { children: [
6866
6724
  /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: "content-types/:uid", element: /* @__PURE__ */ jsxRuntime.jsx(ListView, {}) }),
6867
6725
  /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Route, { path: `component-categories/:categoryUid/*`, element: /* @__PURE__ */ jsxRuntime.jsx(RecursivePath, {}) })
6868
6726
  ] }) }) }) }) }) })
@@ -6878,4 +6736,4 @@ exports.getTrad = getTrad;
6878
6736
  exports.index = index;
6879
6737
  exports.useDataManager = useDataManager;
6880
6738
  exports.useFormModalNavigation = useFormModalNavigation;
6881
- //# sourceMappingURL=index-ClkMXXk0.js.map
6739
+ //# sourceMappingURL=index-BHhTJaW2.js.map