@strapi/upload 5.0.0-beta.6 → 5.0.0-beta.7

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 (33) hide show
  1. package/dist/_chunks/{index-BI7qD8h6.mjs → index-2C3ZYD4e.mjs} +18 -27
  2. package/dist/_chunks/index-2C3ZYD4e.mjs.map +1 -0
  3. package/dist/_chunks/{index-ZXpABToX.mjs → index-ASLx4V_D.mjs} +176 -162
  4. package/dist/_chunks/index-ASLx4V_D.mjs.map +1 -0
  5. package/dist/_chunks/{index-BNV9vUuq.js → index-BbFs7_Gx.js} +19 -29
  6. package/dist/_chunks/index-BbFs7_Gx.js.map +1 -0
  7. package/dist/_chunks/{index-DU4hcIHO.js → index-BxUjcUMp.js} +89 -68
  8. package/dist/_chunks/index-BxUjcUMp.js.map +1 -0
  9. package/dist/_chunks/index-CRhNpXFr.js.map +1 -1
  10. package/dist/_chunks/{index-jJSqYu6S.js → index-DJC1L27M.js} +59 -34
  11. package/dist/_chunks/index-DJC1L27M.js.map +1 -0
  12. package/dist/_chunks/{index-CtyJq8P-.js → index-PKgX3DYk.js} +222 -210
  13. package/dist/_chunks/index-PKgX3DYk.js.map +1 -0
  14. package/dist/_chunks/index-VKvfSVC7.mjs.map +1 -1
  15. package/dist/_chunks/{index-BL34bU2o.mjs → index-fmt8afwE.mjs} +91 -70
  16. package/dist/_chunks/index-fmt8afwE.mjs.map +1 -0
  17. package/dist/_chunks/{index-CWDl5PEs.mjs → index-q-dRjRbA.mjs} +61 -36
  18. package/dist/_chunks/index-q-dRjRbA.mjs.map +1 -0
  19. package/dist/admin/index.js +2 -1
  20. package/dist/admin/index.js.map +1 -1
  21. package/dist/admin/index.mjs +2 -1
  22. package/dist/admin/index.mjs.map +1 -1
  23. package/dist/server/src/services/extensions/content-manager/entity-manager.d.ts.map +1 -1
  24. package/dist/server/src/services/extensions/utils.d.ts.map +1 -1
  25. package/package.json +10 -11
  26. package/dist/_chunks/index-BI7qD8h6.mjs.map +0 -1
  27. package/dist/_chunks/index-BL34bU2o.mjs.map +0 -1
  28. package/dist/_chunks/index-BNV9vUuq.js.map +0 -1
  29. package/dist/_chunks/index-CWDl5PEs.mjs.map +0 -1
  30. package/dist/_chunks/index-CtyJq8P-.js.map +0 -1
  31. package/dist/_chunks/index-DU4hcIHO.js.map +0 -1
  32. package/dist/_chunks/index-ZXpABToX.mjs.map +0 -1
  33. package/dist/_chunks/index-jJSqYu6S.js.map +0 -1
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
+ const icons = require("@strapi/icons");
2
3
  const jsxRuntime = require("react/jsx-runtime");
3
4
  const React = require("react");
4
5
  const PropTypes = require("prop-types");
5
6
  const strapiAdmin = require("@strapi/admin/strapi-admin");
6
7
  const designSystem = require("@strapi/design-system");
7
8
  const reactIntl = require("react-intl");
8
- const styled = require("styled-components");
9
+ const styledComponents = require("styled-components");
9
10
  const byteSize = require("byte-size");
10
11
  const dateFns = require("date-fns");
11
12
  const qs = require("qs");
@@ -13,8 +14,6 @@ const reactQuery = require("react-query");
13
14
  const formik = require("formik");
14
15
  const isEqual = require("lodash/isEqual");
15
16
  const yup = require("yup");
16
- const axios = require("axios");
17
- const icons = require("@strapi/icons");
18
17
  const ReactSelect = require("react-select");
19
18
  const Cropper = require("cropperjs");
20
19
  require("cropperjs/dist/cropper.css");
@@ -44,11 +43,9 @@ function _interopNamespace(e) {
44
43
  }
45
44
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
46
45
  const PropTypes__default = /* @__PURE__ */ _interopDefault(PropTypes);
47
- const styled__default = /* @__PURE__ */ _interopDefault(styled);
48
46
  const byteSize__default = /* @__PURE__ */ _interopDefault(byteSize);
49
47
  const isEqual__default = /* @__PURE__ */ _interopDefault(isEqual);
50
48
  const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
51
- const axios__default = /* @__PURE__ */ _interopDefault(axios);
52
49
  const ReactSelect__default = /* @__PURE__ */ _interopDefault(ReactSelect);
53
50
  const Cropper__default = /* @__PURE__ */ _interopDefault(Cropper);
54
51
  const isEmpty__default = /* @__PURE__ */ _interopDefault(isEmpty);
@@ -63,7 +60,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
63
60
  });
64
61
  };
65
62
  const name$1 = "@strapi/upload";
66
- const version = "5.0.0-beta.5";
63
+ const version = "5.0.0-beta.6";
67
64
  const description = "Makes it easy to upload images and files to your Strapi Application.";
68
65
  const license = "SEE LICENSE IN LICENSE";
69
66
  const author = {
@@ -111,11 +108,10 @@ const scripts = {
111
108
  watch: "pack-up watch"
112
109
  };
113
110
  const dependencies = {
114
- "@strapi/design-system": "2.0.0-beta.2",
115
- "@strapi/icons": "2.0.0-beta.2",
116
- "@strapi/provider-upload-local": "5.0.0-beta.5",
117
- "@strapi/utils": "5.0.0-beta.5",
118
- axios: "1.6.8",
111
+ "@strapi/design-system": "2.0.0-beta.3",
112
+ "@strapi/icons": "2.0.0-beta.3",
113
+ "@strapi/provider-upload-local": "5.0.0-beta.6",
114
+ "@strapi/utils": "5.0.0-beta.6",
119
115
  "byte-size": "8.1.1",
120
116
  cropperjs: "1.6.1",
121
117
  "date-fns": "2.30.0",
@@ -137,9 +133,9 @@ const dependencies = {
137
133
  yup: "0.32.9"
138
134
  };
139
135
  const devDependencies = {
140
- "@strapi/admin": "5.0.0-beta.5",
136
+ "@strapi/admin": "5.0.0-beta.6",
141
137
  "@strapi/pack-up": "5.0.0",
142
- "@strapi/types": "5.0.0-beta.5",
138
+ "@strapi/types": "5.0.0-beta.6",
143
139
  "@testing-library/dom": "9.2.0",
144
140
  "@testing-library/react": "14.0.0",
145
141
  "@testing-library/user-event": "14.4.3",
@@ -154,14 +150,14 @@ const devDependencies = {
154
150
  react: "^18.2.0",
155
151
  "react-dom": "^18.2.0",
156
152
  "react-router-dom": "6.22.3",
157
- "styled-components": "5.3.11"
153
+ "styled-components": "6.1.8"
158
154
  };
159
155
  const peerDependencies = {
160
156
  "@strapi/admin": "^5.0.0 || ^5.0.0-beta || ^5.0.0-alpha || ^5.0.0-rc",
161
157
  react: "^17.0.0 || ^18.0.0",
162
158
  "react-dom": "^17.0.0 || ^18.0.0",
163
159
  "react-router-dom": "^6.0.0",
164
- "styled-components": "^5.2.1"
160
+ "styled-components": "^6.0.0"
165
161
  };
166
162
  const engines = {
167
163
  node: ">=18.0.0 <=20.x.x",
@@ -905,7 +901,7 @@ const moveElement = (array, index2, offset) => {
905
901
  const newIndex = index2 + offset;
906
902
  return move(array, index2, newIndex);
907
903
  };
908
- const editAssetRequest = (asset, file, cancelToken, onProgress, post) => {
904
+ const editAssetRequest = (asset, file, signal, onProgress, post) => {
909
905
  const endpoint2 = `/${pluginId}?id=${asset.id}`;
910
906
  const formData = new FormData();
911
907
  if (file) {
@@ -921,13 +917,7 @@ const editAssetRequest = (asset, file, cancelToken, onProgress, post) => {
921
917
  })
922
918
  );
923
919
  return post(endpoint2, formData, {
924
- cancelToken: cancelToken.token,
925
- onUploadProgress({ total, loaded }) {
926
- onProgress(loaded / total * 100);
927
- },
928
- headers: {
929
- "Content-Type": "multipart/form-data"
930
- }
920
+ signal
931
921
  }).then((res) => res.data);
932
922
  };
933
923
  const useEditAsset = () => {
@@ -935,10 +925,11 @@ const useEditAsset = () => {
935
925
  const { formatMessage } = reactIntl.useIntl();
936
926
  const { toggleNotification } = strapiAdmin.useNotification();
937
927
  const queryClient = reactQuery.useQueryClient();
938
- const tokenRef = React.useRef(axios__default.default.CancelToken.source());
928
+ const abortController = new AbortController();
929
+ const signal = abortController.signal;
939
930
  const { post } = strapiAdmin.useFetchClient();
940
931
  const mutation = reactQuery.useMutation(
941
- ({ asset, file }) => editAssetRequest(asset, file, tokenRef.current, setProgress, post),
932
+ ({ asset, file }) => editAssetRequest(asset, file, signal, setProgress, post),
942
933
  {
943
934
  onSuccess() {
944
935
  queryClient.refetchQueries([pluginId, "assets"], { active: true });
@@ -958,9 +949,7 @@ const useEditAsset = () => {
958
949
  }
959
950
  );
960
951
  const editAsset = (asset, file) => mutation.mutateAsync({ asset, file });
961
- const cancel = () => tokenRef.current.cancel(
962
- formatMessage({ id: getTrad("modal.upload.cancelled"), defaultMessage: "" })
963
- );
952
+ const cancel = () => abortController.abort();
964
953
  return { ...mutation, cancel, editAsset, progress, status: mutation.status };
965
954
  };
966
955
  const recursiveRenameKeys = (obj, fn) => Object.fromEntries(
@@ -1028,7 +1017,7 @@ ContextInfo.propTypes = {
1028
1017
  })
1029
1018
  ).isRequired
1030
1019
  };
1031
- const ToggleButton = styled__default.default(designSystem.Flex)`
1020
+ const ToggleButton = styledComponents.styled(designSystem.Flex)`
1032
1021
  align-self: flex-end;
1033
1022
  height: 2.2rem;
1034
1023
  width: 2.8rem;
@@ -1053,7 +1042,7 @@ const Option = ({ children, data, selectProps, ...props }) => {
1053
1042
  id: "app.utils.toggle",
1054
1043
  defaultMessage: "Toggle"
1055
1044
  }),
1056
- as: "button",
1045
+ tag: "button",
1057
1046
  alignItems: "center",
1058
1047
  hasRadius: true,
1059
1048
  justifyContent: "center",
@@ -1147,7 +1136,7 @@ const SelectTree = ({ options: defaultOptions, maxDisplayDepth, defaultValue, ..
1147
1136
  );
1148
1137
  };
1149
1138
  const Select = ({ components: components2, styles, error, ariaErrorMessage, ...props }) => {
1150
- const theme = styled.useTheme();
1139
+ const theme = styledComponents.useTheme();
1151
1140
  const customStyles = getSelectStyles(theme, error);
1152
1141
  return /* @__PURE__ */ jsxRuntime.jsx(
1153
1142
  ReactSelect__default.default,
@@ -1179,7 +1168,7 @@ Select.propTypes = {
1179
1168
  error: PropTypes__default.default.string,
1180
1169
  ariaErrorMessage: PropTypes__default.default.string
1181
1170
  };
1182
- const IconBox = styled__default.default(designSystem.Box)`
1171
+ const IconBox = styledComponents.styled(designSystem.Box)`
1183
1172
  background: transparent;
1184
1173
  border: none;
1185
1174
  position: relative;
@@ -1196,9 +1185,9 @@ const IconBox = styled__default.default(designSystem.Box)`
1196
1185
  `;
1197
1186
  const ClearIndicator = (props) => {
1198
1187
  const Component = ReactSelect.components.ClearIndicator;
1199
- return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconBox, { as: "button", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Cross, {}) }) });
1188
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconBox, { tag: "button", type: "button", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Cross, {}) }) });
1200
1189
  };
1201
- const CarretBox = styled__default.default(IconBox)`
1190
+ const CarretBox = styledComponents.styled(IconBox)`
1202
1191
  display: flex;
1203
1192
  background: none;
1204
1193
  border: none;
@@ -1345,7 +1334,7 @@ SelectTree.propTypes = {
1345
1334
  };
1346
1335
  const DialogHeader = () => {
1347
1336
  const { formatMessage } = reactIntl.useIntl();
1348
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title", children: formatMessage({ id: "global.details", defaultMessage: "Details" }) }) });
1337
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id: "title", children: formatMessage({ id: "global.details", defaultMessage: "Details" }) }) });
1349
1338
  };
1350
1339
  const QUALITY = 1;
1351
1340
  const useCropImg = () => {
@@ -1418,7 +1407,7 @@ const useCropImg = () => {
1418
1407
  };
1419
1408
  };
1420
1409
  const endpoint = `/${pluginId}`;
1421
- const uploadAsset = (asset, folderId, cancelToken, onProgress, post) => {
1410
+ const uploadAsset = (asset, folderId, signal, onProgress, post) => {
1422
1411
  const { rawFile, caption, name: name2, alternativeText } = asset;
1423
1412
  const formData = new FormData();
1424
1413
  formData.append("files", rawFile);
@@ -1432,24 +1421,18 @@ const uploadAsset = (asset, folderId, cancelToken, onProgress, post) => {
1432
1421
  })
1433
1422
  );
1434
1423
  return post(endpoint, formData, {
1435
- headers: {
1436
- "Content-Type": "multipart/form-data"
1437
- },
1438
- cancelToken: cancelToken.token,
1439
- onUploadProgress({ total, loaded }) {
1440
- onProgress(loaded / total * 100);
1441
- }
1424
+ signal
1442
1425
  }).then((res) => res.data);
1443
1426
  };
1444
1427
  const useUpload = () => {
1445
1428
  const [progress, setProgress] = React.useState(0);
1446
- const { formatMessage } = reactIntl.useIntl();
1447
1429
  const queryClient = reactQuery.useQueryClient();
1448
- const tokenRef = React.useRef(axios__default.default.CancelToken.source());
1430
+ const abortController = new AbortController();
1431
+ const signal = abortController.signal;
1449
1432
  const { post } = strapiAdmin.useFetchClient();
1450
1433
  const mutation = reactQuery.useMutation(
1451
1434
  ({ asset, folderId }) => {
1452
- return uploadAsset(asset, folderId, tokenRef.current, setProgress, post);
1435
+ return uploadAsset(asset, folderId, signal, setProgress, post);
1453
1436
  },
1454
1437
  {
1455
1438
  onSuccess() {
@@ -1459,9 +1442,7 @@ const useUpload = () => {
1459
1442
  }
1460
1443
  );
1461
1444
  const upload = (asset, folderId) => mutation.mutateAsync({ asset, folderId });
1462
- const cancel = () => tokenRef.current.cancel(
1463
- formatMessage({ id: getTrad("modal.upload.cancelled"), defaultMessage: "" })
1464
- );
1445
+ const cancel = () => abortController.abort();
1465
1446
  return {
1466
1447
  upload,
1467
1448
  cancel,
@@ -1531,7 +1512,7 @@ const CopyLinkButton = ({ url }) => {
1531
1512
  CopyLinkButton.propTypes = {
1532
1513
  url: PropTypes__default.default.string.isRequired
1533
1514
  };
1534
- const BoxWrapper = styled__default.default(designSystem.Flex)`
1515
+ const BoxWrapper = styledComponents.styled(designSystem.Flex)`
1535
1516
  border-radius: ${({ theme }) => `${theme.borderRadius} ${theme.borderRadius} 0 0`};
1536
1517
  width: 100%;
1537
1518
  height: 100%;
@@ -1542,7 +1523,7 @@ const BoxWrapper = styled__default.default(designSystem.Flex)`
1542
1523
  }
1543
1524
  }
1544
1525
  `;
1545
- const CancelButton = styled__default.default.button`
1526
+ const CancelButton = styledComponents.styled.button`
1546
1527
  border: none;
1547
1528
  background: none;
1548
1529
  width: min-content;
@@ -1567,7 +1548,7 @@ const UploadProgress = ({ onCancel, progress, error }) => {
1567
1548
  return /* @__PURE__ */ jsxRuntime.jsx(BoxWrapper, { alignItems: "center", background: error ? "danger100" : "neutral150", error, children: error ? /* @__PURE__ */ jsxRuntime.jsx(icons.Cross, { "aria-label": error?.message }) : /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 2, width: "100%", children: [
1568
1549
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.ProgressBar, { value: progress, children: `${progress}/100%` }),
1569
1550
  /* @__PURE__ */ jsxRuntime.jsx(CancelButton, { type: "button", onClick: onCancel, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, children: [
1570
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", as: "span", textColor: "inherit", children: formatMessage({
1551
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", tag: "span", textColor: "inherit", children: formatMessage({
1571
1552
  id: "app.components.Button.cancel",
1572
1553
  defaultMessage: "Cancel"
1573
1554
  }) }),
@@ -1648,7 +1629,7 @@ const usePersistentState = (key, defaultValue) => {
1648
1629
  }, [key, value]);
1649
1630
  return [value, setValue];
1650
1631
  };
1651
- const CardAsset$1 = styled__default.default(designSystem.Flex)`
1632
+ const CardAsset$1 = styledComponents.styled(designSystem.Flex)`
1652
1633
  border-radius: ${({ theme }) => theme.borderRadius} ${({ theme }) => theme.borderRadius} 0 0;
1653
1634
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
1654
1635
  `;
@@ -1674,10 +1655,10 @@ AssetPreview.propTypes = {
1674
1655
  name: PropTypes__default.default.string.isRequired,
1675
1656
  url: PropTypes__default.default.string.isRequired
1676
1657
  };
1677
- const RelativeBox = styled__default.default(designSystem.Box)`
1658
+ const RelativeBox = styledComponents.styled(designSystem.Box)`
1678
1659
  position: relative;
1679
1660
  `;
1680
- const Wrapper$1 = styled__default.default.div`
1661
+ const Wrapper$1 = styledComponents.styled.div`
1681
1662
  position: relative;
1682
1663
  text-align: center;
1683
1664
  background: repeating-conic-gradient(
@@ -1699,24 +1680,24 @@ const Wrapper$1 = styled__default.default.div`
1699
1680
  max-width: 100%;
1700
1681
  }
1701
1682
  `;
1702
- const ActionRow = styled__default.default(designSystem.Flex)`
1683
+ const ActionRow = styledComponents.styled(designSystem.Flex)`
1703
1684
  height: 5.2rem;
1704
- background-color: ${({ blurry }) => blurry ? `rgba(33, 33, 52, 0.4)` : void 0};
1685
+ background-color: ${({ $blurry }) => $blurry ? `rgba(33, 33, 52, 0.4)` : void 0};
1705
1686
  `;
1706
- const CroppingActionRow = styled__default.default(designSystem.Flex)`
1687
+ const CroppingActionRow = styledComponents.styled(designSystem.Flex)`
1707
1688
  z-index: 1;
1708
1689
  height: 5.2rem;
1709
1690
  position: absolute;
1710
1691
  background-color: rgba(33, 33, 52, 0.4);
1711
1692
  width: 100%;
1712
1693
  `;
1713
- const BadgeOverride = styled__default.default(designSystem.Badge)`
1694
+ const BadgeOverride = styledComponents.styled(designSystem.Badge)`
1714
1695
  span {
1715
1696
  color: inherit;
1716
1697
  font-weight: ${({ theme }) => theme.fontWeights.regular};
1717
1698
  }
1718
1699
  `;
1719
- const UploadProgressWrapper$1 = styled__default.default.div`
1700
+ const UploadProgressWrapper$1 = styledComponents.styled.div`
1720
1701
  position: absolute;
1721
1702
  z-index: 2;
1722
1703
  height: 100%;
@@ -1738,7 +1719,7 @@ const CroppingActions = ({ onCancel, onValidate, onDuplicate }) => {
1738
1719
  ),
1739
1720
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Menu.Root, { children: [
1740
1721
  /* @__PURE__ */ jsxRuntime.jsxs(Trigger, { variant: "tertiary", paddingLeft: 2, paddingRight: 2, endIcon: null, children: [
1741
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "span", children: formatMessage({
1722
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "span", children: formatMessage({
1742
1723
  id: getTrad("control-card.crop"),
1743
1724
  defaultMessage: "Crop"
1744
1725
  }) }),
@@ -1765,7 +1746,7 @@ const CroppingActions = ({ onCancel, onValidate, onDuplicate }) => {
1765
1746
  ] })
1766
1747
  ] }) }) });
1767
1748
  };
1768
- const Trigger = styled__default.default(designSystem.Menu.Trigger)`
1749
+ const Trigger = styledComponents.styled(designSystem.Menu.Trigger)`
1769
1750
  svg {
1770
1751
  > g,
1771
1752
  path {
@@ -1960,7 +1941,7 @@ const PreviewBox = ({
1960
1941
  paddingLeft: 2,
1961
1942
  paddingRight: 2,
1962
1943
  justifyContent: "flex-end",
1963
- blurry: isInCroppingMode,
1944
+ $blurry: isInCroppingMode,
1964
1945
  children: isInCroppingMode && width && height && /* @__PURE__ */ jsxRuntime.jsx(BadgeOverride, { background: "neutral900", color: "neutral0", children: width && height ? `${height}✕${width}` : "N/A" })
1965
1946
  }
1966
1947
  )
@@ -2035,7 +2016,7 @@ ReplaceMediaButton.propTypes = {
2035
2016
  onSelectMedia: PropTypes__default.default.func.isRequired,
2036
2017
  trackedLocation: PropTypes__default.default.string
2037
2018
  };
2038
- const LoadingBody$1 = styled__default.default(designSystem.Flex)`
2019
+ const LoadingBody$1 = styledComponents.styled(designSystem.Flex)`
2039
2020
  /* 80px are coming from the Tabs component that is not included in the ModalBody */
2040
2021
  min-height: ${() => `calc(60vh + 8rem)`};
2041
2022
  `;
@@ -2201,54 +2182,64 @@ const EditAssetDialog = ({
2201
2182
  ]
2202
2183
  }
2203
2184
  ),
2204
- /* @__PURE__ */ jsxRuntime.jsx(
2205
- designSystem.TextInput,
2206
- {
2207
- label: formatMessage({
2208
- id: getTrad("form.input.label.file-name"),
2209
- defaultMessage: "File name"
2210
- }),
2211
- name: "name",
2212
- value: values.name,
2213
- error: errors.name,
2214
- onChange: handleChange,
2215
- disabled: formDisabled
2216
- }
2217
- ),
2218
- /* @__PURE__ */ jsxRuntime.jsx(
2219
- designSystem.TextInput,
2185
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "name", error: errors.name, children: [
2186
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2187
+ id: getTrad("form.input.label.file-name"),
2188
+ defaultMessage: "File name"
2189
+ }) }),
2190
+ /* @__PURE__ */ jsxRuntime.jsx(
2191
+ designSystem.TextInput,
2192
+ {
2193
+ value: values.name,
2194
+ onChange: handleChange,
2195
+ disabled: formDisabled
2196
+ }
2197
+ ),
2198
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2199
+ ] }),
2200
+ /* @__PURE__ */ jsxRuntime.jsxs(
2201
+ designSystem.Field.Root,
2220
2202
  {
2221
- label: formatMessage({
2222
- id: getTrad("form.input.label.file-alt"),
2223
- defaultMessage: "Alternative text"
2224
- }),
2225
2203
  name: "alternativeText",
2226
2204
  hint: formatMessage({
2227
2205
  id: getTrad("form.input.decription.file-alt"),
2228
2206
  defaultMessage: "This text will be displayed if the asset can’t be shown."
2229
2207
  }),
2230
- value: values.alternativeText,
2231
2208
  error: errors.alternativeText,
2232
- onChange: handleChange,
2233
- disabled: formDisabled
2234
- }
2235
- ),
2236
- /* @__PURE__ */ jsxRuntime.jsx(
2237
- designSystem.TextInput,
2238
- {
2239
- label: formatMessage({
2240
- id: getTrad("form.input.label.file-caption"),
2241
- defaultMessage: "Caption"
2242
- }),
2243
- name: "caption",
2244
- value: values.caption,
2245
- error: errors.caption,
2246
- onChange: handleChange,
2247
- disabled: formDisabled
2209
+ children: [
2210
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2211
+ id: getTrad("form.input.label.file-alt"),
2212
+ defaultMessage: "Alternative text"
2213
+ }) }),
2214
+ /* @__PURE__ */ jsxRuntime.jsx(
2215
+ designSystem.TextInput,
2216
+ {
2217
+ value: values.alternativeText,
2218
+ onChange: handleChange,
2219
+ disabled: formDisabled
2220
+ }
2221
+ ),
2222
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {}),
2223
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2224
+ ]
2248
2225
  }
2249
2226
  ),
2250
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2251
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.FieldLabel, { htmlFor: "asset-folder", children: formatMessage({
2227
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "caption", error: errors.caption, children: [
2228
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2229
+ id: getTrad("form.input.label.file-caption"),
2230
+ defaultMessage: "Caption"
2231
+ }) }),
2232
+ /* @__PURE__ */ jsxRuntime.jsx(
2233
+ designSystem.TextInput,
2234
+ {
2235
+ value: values.caption,
2236
+ onChange: handleChange,
2237
+ disabled: formDisabled
2238
+ }
2239
+ )
2240
+ ] }),
2241
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "parent", id: "asset-folder", children: [
2242
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2252
2243
  id: getTrad("form.input.label.file-location"),
2253
2244
  defaultMessage: "Location"
2254
2245
  }) }),
@@ -2268,7 +2259,7 @@ const EditAssetDialog = ({
2268
2259
  ariaErrorMessage: "folder-parent-error"
2269
2260
  }
2270
2261
  )
2271
- ] })
2262
+ ] }) })
2272
2263
  ] }),
2273
2264
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(
2274
2265
  "button",
@@ -2386,7 +2377,7 @@ const useEditFolder = () => {
2386
2377
  };
2387
2378
  const EditFolderModalHeader = ({ isEditing }) => {
2388
2379
  const { formatMessage } = reactIntl.useIntl();
2389
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title", children: formatMessage(
2380
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id: "title", children: formatMessage(
2390
2381
  isEditing ? {
2391
2382
  id: getTrad("modal.folder.edit.title"),
2392
2383
  defaultMessage: "Edit folder"
@@ -2535,22 +2526,23 @@ const EditFolderDialog = ({ onClose, folder, location, parentFolderId }) => {
2535
2526
  ]
2536
2527
  }
2537
2528
  ) }),
2538
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
2539
- designSystem.TextInput,
2540
- {
2541
- label: formatMessage({
2542
- id: getTrad("form.input.label.folder-name"),
2543
- defaultMessage: "Name"
2544
- }),
2545
- name: "name",
2546
- value: values.name,
2547
- error: errors.name,
2548
- onChange: handleChange,
2549
- disabled: formDisabled
2550
- }
2551
- ) }),
2552
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [
2553
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.FieldLabel, { htmlFor: "folder-parent", children: formatMessage({
2529
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { name: "name", error: errors.name, children: [
2530
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2531
+ id: getTrad("form.input.label.folder-name"),
2532
+ defaultMessage: "Name"
2533
+ }) }),
2534
+ /* @__PURE__ */ jsxRuntime.jsx(
2535
+ designSystem.TextInput,
2536
+ {
2537
+ value: values.name,
2538
+ onChange: handleChange,
2539
+ disabled: formDisabled
2540
+ }
2541
+ ),
2542
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
2543
+ ] }) }),
2544
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.GridItem, { xs: 12, col: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Field.Root, { id: "folder-parent", children: [
2545
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({
2554
2546
  id: getTrad("form.input.label.folder-location"),
2555
2547
  defaultMessage: "Location"
2556
2548
  }) }),
@@ -2575,7 +2567,7 @@ const EditFolderDialog = ({ onClose, folder, location, parentFolderId }) => {
2575
2567
  designSystem.Typography,
2576
2568
  {
2577
2569
  variant: "pi",
2578
- as: "p",
2570
+ tag: "p",
2579
2571
  id: "folder-parent-error",
2580
2572
  textColor: "danger600",
2581
2573
  children: errors.parent
@@ -2674,17 +2666,17 @@ const useFolder = (id2, { enabled = true } = {}) => {
2674
2666
  );
2675
2667
  return { data, error, isLoading };
2676
2668
  };
2677
- const Extension$1 = styled__default.default.span`
2669
+ const Extension$1 = styledComponents.styled.span`
2678
2670
  text-transform: uppercase;
2679
2671
  `;
2680
- const CardActionsContainer = styled__default.default(designSystem.CardAction)`
2672
+ const CardActionsContainer = styledComponents.styled(designSystem.CardAction)`
2681
2673
  opacity: 0;
2682
2674
 
2683
2675
  &:focus-within {
2684
2676
  opacity: 1;
2685
2677
  }
2686
2678
  `;
2687
- const CardContainer = styled__default.default(designSystem.Card)`
2679
+ const CardContainer = styledComponents.styled(designSystem.Card)`
2688
2680
  cursor: pointer;
2689
2681
 
2690
2682
  &:hover {
@@ -2743,7 +2735,7 @@ const AssetCardBase = ({
2743
2735
  ] }),
2744
2736
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.CardBody, { children: [
2745
2737
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.CardContent, { children: [
2746
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 1, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardTitle, { as: "h2", children: name2 }) }),
2738
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 1, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardTitle, { tag: "h2", children: name2 }) }),
2747
2739
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.CardSubtitle, { children: [
2748
2740
  /* @__PURE__ */ jsxRuntime.jsx(Extension$1, { children: extension }),
2749
2741
  subtitle
@@ -2786,7 +2778,7 @@ AudioPreview.propTypes = {
2786
2778
  alt: PropTypes__default.default.string.isRequired,
2787
2779
  url: PropTypes__default.default.string.isRequired
2788
2780
  };
2789
- const AudioPreviewWrapper$1 = styled__default.default(designSystem.Box)`
2781
+ const AudioPreviewWrapper$1 = styledComponents.styled(designSystem.Box)`
2790
2782
  canvas,
2791
2783
  audio {
2792
2784
  display: block;
@@ -2814,12 +2806,12 @@ AudioAssetCard.propTypes = {
2814
2806
  selected: PropTypes__default.default.bool,
2815
2807
  size: PropTypes__default.default.oneOf(["S", "M"])
2816
2808
  };
2817
- const IconWrapper$1 = styled__default.default.span`
2809
+ const IconWrapper$1 = styledComponents.styled.span`
2818
2810
  svg {
2819
2811
  font-size: 4.8rem;
2820
2812
  }
2821
2813
  `;
2822
- const CardAsset = styled__default.default(designSystem.Flex)`
2814
+ const CardAsset = styledComponents.styled(designSystem.Flex)`
2823
2815
  border-radius: ${({ theme }) => theme.borderRadius} ${({ theme }) => theme.borderRadius} 0 0;
2824
2816
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
2825
2817
  `;
@@ -2893,7 +2885,7 @@ const VideoPreview = ({ url, mime, onLoadDuration, alt, ...props }) => {
2893
2885
  return;
2894
2886
  video.play();
2895
2887
  };
2896
- return /* @__PURE__ */ React.createElement(designSystem.Box, { as: "figure", ...props, key: url }, /* @__PURE__ */ jsxRuntime.jsx(
2888
+ return /* @__PURE__ */ React.createElement(designSystem.Box, { tag: "figure", ...props, key: url }, /* @__PURE__ */ jsxRuntime.jsx(
2897
2889
  "video",
2898
2890
  {
2899
2891
  muted: true,
@@ -2903,7 +2895,7 @@ const VideoPreview = ({ url, mime, onLoadDuration, alt, ...props }) => {
2903
2895
  onTimeUpdate: handleTimeUpdate,
2904
2896
  children: /* @__PURE__ */ jsxRuntime.jsx("source", { type: mime })
2905
2897
  }
2906
- ), /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { as: "figcaption", children: alt }));
2898
+ ), /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { tag: "figcaption", children: alt }));
2907
2899
  };
2908
2900
  VideoPreview.defaultProps = {
2909
2901
  onLoadDuration() {
@@ -2917,7 +2909,7 @@ VideoPreview.propTypes = {
2917
2909
  onLoadDuration: PropTypes__default.default.func,
2918
2910
  size: PropTypes__default.default.oneOf(["S", "M"])
2919
2911
  };
2920
- const VideoPreviewWrapper$2 = styled__default.default(designSystem.Box)`
2912
+ const VideoPreviewWrapper$2 = styledComponents.styled(designSystem.Box)`
2921
2913
  canvas,
2922
2914
  video {
2923
2915
  display: block;
@@ -3052,7 +3044,7 @@ const AssetGridList = ({
3052
3044
  title
3053
3045
  }) => {
3054
3046
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.KeyboardNavigable, { tagName: "article", children: [
3055
- title && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h2", variant: "delta", fontWeight: "semiBold", children: title }) }),
3047
+ title && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 2, paddingBottom: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "delta", fontWeight: "semiBold", children: title }) }),
3056
3048
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children: assets.map((asset, index2) => {
3057
3049
  const isSelected = !!selectedAssets.find((currentAsset) => currentAsset.id === asset.id);
3058
3050
  if (onReorderAsset) {
@@ -3130,7 +3122,7 @@ const CrumbSimpleMenuAsync = ({ parentsToOmit, currentFolderId, onChangeFolder }
3130
3122
  return /* @__PURE__ */ jsxRuntime.jsx(
3131
3123
  designSystem.MenuItem,
3132
3124
  {
3133
- as: "button",
3125
+ tag: "button",
3134
3126
  type: "button",
3135
3127
  onClick: () => onChangeFolder(ascendant.id, ascendant.path),
3136
3128
  children: ascendant.label
@@ -3142,7 +3134,7 @@ const CrumbSimpleMenuAsync = ({ parentsToOmit, currentFolderId, onChangeFolder }
3142
3134
  folder: ascendant?.id,
3143
3135
  folderPath: ascendant?.path
3144
3136
  });
3145
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.MenuItem, { isLink: true, as: reactRouterDom.NavLink, to: url, children: ascendant.label }, ascendant.id);
3137
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.MenuItem, { isLink: true, tag: reactRouterDom.NavLink, to: url, children: ascendant.label }, ascendant.id);
3146
3138
  })
3147
3139
  ]
3148
3140
  }
@@ -3177,7 +3169,7 @@ const Breadcrumbs = ({ breadcrumbs, onChangeFolder, currentFolderId, ...props })
3177
3169
  return /* @__PURE__ */ jsxRuntime.jsx(
3178
3170
  designSystem.CrumbLink,
3179
3171
  {
3180
- as: onChangeFolder ? "button" : reactRouterDom.NavLink,
3172
+ tag: onChangeFolder ? "button" : reactRouterDom.NavLink,
3181
3173
  type: onChangeFolder && "button",
3182
3174
  to: onChangeFolder ? void 0 : crumb.href,
3183
3175
  onClick: onChangeFolder && (() => onChangeFolder(crumb.id, crumb.path)),
@@ -3205,7 +3197,7 @@ Breadcrumbs.propTypes = {
3205
3197
  currentFolderId: PropTypes__default.default.number,
3206
3198
  onChangeFolder: PropTypes__default.default.func
3207
3199
  };
3208
- const EmptyAssetCard = styled__default.default(designSystem.Box)`
3200
+ const EmptyAssetCard = styledComponents.styled(designSystem.Box)`
3209
3201
  background: linear-gradient(
3210
3202
  180deg,
3211
3203
  rgba(234, 234, 239, 0) 0%,
@@ -3213,21 +3205,12 @@ const EmptyAssetCard = styled__default.default(designSystem.Box)`
3213
3205
  );
3214
3206
  opacity: 0.33;
3215
3207
  `;
3216
- const GridColSize = {
3217
- S: 180,
3218
- M: 250
3219
- };
3220
3208
  const PlaceholderSize = {
3221
3209
  S: 138,
3222
3210
  M: 234
3223
3211
  };
3224
- const GridLayout = styled__default.default(designSystem.Box)`
3225
- display: grid;
3226
- grid-template-columns: repeat(auto-fit, minmax(${({ size }) => `${GridColSize[size]}px`}, 1fr));
3227
- grid-gap: ${({ theme }) => theme.spaces[4]};
3228
- `;
3229
3212
  const EmptyAssetGrid = ({ count, size }) => {
3230
- return /* @__PURE__ */ jsxRuntime.jsx(GridLayout, { size, children: Array(count).fill(null).map((_, idx) => /* @__PURE__ */ jsxRuntime.jsx(
3213
+ return /* @__PURE__ */ jsxRuntime.jsx(strapiAdmin.Layouts.Grid, { size, children: Array(count).fill(null).map((_, idx) => /* @__PURE__ */ jsxRuntime.jsx(
3231
3214
  EmptyAssetCard,
3232
3215
  {
3233
3216
  height: `${PlaceholderSize[size]}px`,
@@ -3246,7 +3229,7 @@ const EmptyAssets = ({ icon: Icon = symbols.EmptyDocuments, content, action, siz
3246
3229
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { position: "absolute", top: 11, width: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 4, textAlign: "center", children: [
3247
3230
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 6, children: [
3248
3231
  /* @__PURE__ */ jsxRuntime.jsx(Icon, { width: "160px", height: "88px" }),
3249
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", as: "p", textColor: "neutral600", children: content })
3232
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", tag: "p", textColor: "neutral600", children: content })
3250
3233
  ] }),
3251
3234
  action
3252
3235
  ] }) })
@@ -3275,7 +3258,7 @@ const useId = (initialId) => {
3275
3258
  const idRef = React.useRef(`${initialId}-${genId()}`);
3276
3259
  return idRef.current;
3277
3260
  };
3278
- const FauxClickWrapper = styled__default.default.button`
3261
+ const FauxClickWrapper = styledComponents.styled.button`
3279
3262
  height: 100%;
3280
3263
  left: 0;
3281
3264
  position: absolute;
@@ -3288,15 +3271,15 @@ const FauxClickWrapper = styled__default.default.button`
3288
3271
  text-decoration: none;
3289
3272
  }
3290
3273
  `;
3291
- const StyledFolder = styled__default.default(icons.Folder)`
3274
+ const StyledFolder = styledComponents.styled(icons.Folder)`
3292
3275
  path {
3293
3276
  fill: currentColor;
3294
3277
  }
3295
3278
  `;
3296
- const CardActionDisplay = styled__default.default(designSystem.Box)`
3279
+ const CardActionDisplay = styledComponents.styled(designSystem.Box)`
3297
3280
  display: none;
3298
3281
  `;
3299
- const Card = styled__default.default(designSystem.Box)`
3282
+ const Card = styledComponents.styled(designSystem.Box)`
3300
3283
  &:hover,
3301
3284
  &:focus-within {
3302
3285
  ${CardActionDisplay} {
@@ -3313,7 +3296,7 @@ const FolderCard = React.forwardRef(
3313
3296
  FauxClickWrapper,
3314
3297
  {
3315
3298
  to: to || void 0,
3316
- as: to ? reactRouterDom.NavLink : "button",
3299
+ tag: to ? reactRouterDom.NavLink : "button",
3317
3300
  type: to ? void 0 : "button",
3318
3301
  onClick,
3319
3302
  tabIndex: -1,
@@ -3372,7 +3355,7 @@ FolderCard.propTypes = {
3372
3355
  cardActions: PropTypes__default.default.element,
3373
3356
  to: PropTypes__default.default.string
3374
3357
  };
3375
- const StyledBox = styled__default.default(designSystem.Flex)`
3358
+ const StyledBox = styledComponents.styled(designSystem.Flex)`
3376
3359
  user-select: none;
3377
3360
  `;
3378
3361
  const FolderCardBody = (props) => {
@@ -3390,13 +3373,13 @@ const FolderCardBody = (props) => {
3390
3373
  }
3391
3374
  );
3392
3375
  };
3393
- const BoxOutline = styled__default.default(designSystem.Box)`
3376
+ const BoxOutline = styledComponents.styled(designSystem.Box)`
3394
3377
  &:focus {
3395
3378
  outline: 2px solid ${({ theme }) => theme.colors.primary600};
3396
3379
  outline-offset: -2px;
3397
3380
  }
3398
3381
  `;
3399
- const BoxTextDecoration = styled__default.default(BoxOutline)`
3382
+ const BoxTextDecoration = styledComponents.styled(BoxOutline)`
3400
3383
  text-decoration: none;
3401
3384
  `;
3402
3385
  const FolderCardBodyAction = ({ to, ...props }) => {
@@ -3405,14 +3388,14 @@ const FolderCardBodyAction = ({ to, ...props }) => {
3405
3388
  BoxTextDecoration,
3406
3389
  {
3407
3390
  padding: 1,
3408
- as: reactRouterDom.NavLink,
3391
+ tag: reactRouterDom.NavLink,
3409
3392
  maxWidth: "100%",
3410
3393
  to,
3411
3394
  ...props
3412
3395
  }
3413
3396
  );
3414
3397
  }
3415
- return /* @__PURE__ */ jsxRuntime.jsx(BoxOutline, { padding: 1, as: "button", type: "button", maxWidth: "100%", ...props });
3398
+ return /* @__PURE__ */ jsxRuntime.jsx(BoxOutline, { padding: 1, tag: "button", type: "button", maxWidth: "100%", ...props });
3416
3399
  };
3417
3400
  FolderCardBodyAction.defaultProps = {
3418
3401
  to: void 0
@@ -3422,7 +3405,7 @@ FolderCardBodyAction.propTypes = {
3422
3405
  };
3423
3406
  const FolderGridList = ({ title, children }) => {
3424
3407
  return /* @__PURE__ */ jsxRuntime.jsxs(designSystem.KeyboardNavigable, { tagName: "article", children: [
3425
- title && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { as: "h2", variant: "delta", fontWeight: "semiBold", children: title }) }),
3408
+ title && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h2", variant: "delta", fontWeight: "semiBold", children: title }) }),
3426
3409
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid, { gap: 4, children })
3427
3410
  ] });
3428
3411
  };
@@ -3460,7 +3443,7 @@ SortPicker.propTypes = {
3460
3443
  onChangeSort: PropTypes__default.default.func.isRequired,
3461
3444
  value: PropTypes__default.default.string
3462
3445
  };
3463
- const VideoPreviewWrapper$1 = styled__default.default(designSystem.Box)`
3446
+ const VideoPreviewWrapper$1 = styledComponents.styled(designSystem.Box)`
3464
3447
  figure {
3465
3448
  width: ${({ theme }) => theme.spaces[7]};
3466
3449
  height: ${({ theme }) => theme.spaces[7]};
@@ -3626,7 +3609,7 @@ const TableRows = ({
3626
3609
  contentType === "folder" && /* @__PURE__ */ jsxRuntime.jsx(
3627
3610
  designSystem.IconButton,
3628
3611
  {
3629
- as: folderURL ? reactRouterDom.Link : void 0,
3612
+ tag: folderURL ? reactRouterDom.Link : void 0,
3630
3613
  label: formatMessage({
3631
3614
  id: getTrad("list.folders.link-label"),
3632
3615
  defaultMessage: "Access folder"
@@ -3727,7 +3710,7 @@ const TableList = ({
3727
3710
  designSystem.Typography,
3728
3711
  {
3729
3712
  onClick: () => handleClickSort(isSorted, name2),
3730
- as: isSorted ? "span" : "button",
3713
+ tag: isSorted ? "span" : "button",
3731
3714
  label: !isSorted ? sortLabel : "",
3732
3715
  textColor: "neutral600",
3733
3716
  variant: "sigma",
@@ -4293,7 +4276,7 @@ const PageSize = ({ onChangePageSize, pageSize }) => {
4293
4276
  ]
4294
4277
  }
4295
4278
  ),
4296
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "neutral600", as: "label", htmlFor: "page-size", children: formatMessage({
4279
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 2, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { textColor: "neutral600", tag: "label", htmlFor: "page-size", children: formatMessage({
4297
4280
  id: "components.PageFooter.select",
4298
4281
  defaultMessage: "Entries per page"
4299
4282
  }) }) })
@@ -4305,28 +4288,56 @@ PageSize.propTypes = {
4305
4288
  };
4306
4289
  const PaginationContext = React.createContext({ activePage: 1, pageCount: 1 });
4307
4290
  const usePagination = () => React.useContext(PaginationContext);
4308
- const PaginationText = styled__default.default(designSystem.Typography)`
4291
+ const PaginationText = styledComponents.styled(designSystem.Typography)`
4309
4292
  line-height: revert;
4310
4293
  `;
4311
- const LinkWrapper = styled__default.default.button`
4294
+ const LinkWrapper = styledComponents.styled.button`
4312
4295
  padding: ${({ theme }) => theme.spaces[3]};
4313
4296
  border-radius: ${({ theme }) => theme.borderRadius};
4314
- box-shadow: ${({ active, theme }) => active ? theme.shadows.filterShadow : void 0};
4297
+ box-shadow: ${({ $active, theme }) => $active ? theme.shadows.filterShadow : void 0};
4315
4298
  text-decoration: none;
4316
4299
  display: flex;
4300
+ position: relative;
4301
+ outline: none;
4302
+
4303
+ &:after {
4304
+ transition-property: all;
4305
+ transition-duration: 0.2s;
4306
+ border-radius: 8px;
4307
+ content: '';
4308
+ position: absolute;
4309
+ top: -4px;
4310
+ bottom: -4px;
4311
+ left: -4px;
4312
+ right: -4px;
4313
+ border: 2px solid transparent;
4314
+ }
4315
+
4316
+ &:focus-visible {
4317
+ outline: none;
4317
4318
 
4318
- ${designSystem.buttonFocusStyle}
4319
+ &:after {
4320
+ border-radius: 8px;
4321
+ content: '';
4322
+ position: absolute;
4323
+ top: -5px;
4324
+ bottom: -5px;
4325
+ left: -5px;
4326
+ right: -5px;
4327
+ border: 2px solid ${(props) => props.theme.colors.primary600};
4328
+ }
4329
+ }
4319
4330
  `;
4320
4331
  LinkWrapper.defaultProps = { type: "button" };
4321
- const PageLinkWrapper = styled__default.default(LinkWrapper)`
4322
- color: ${({ theme, active }) => active ? theme.colors.primary700 : theme.colors.neutral800};
4323
- background: ${({ theme, active }) => active ? theme.colors.neutral0 : void 0};
4332
+ const PageLinkWrapper = styledComponents.styled(LinkWrapper)`
4333
+ color: ${({ theme, $active }) => $active ? theme.colors.primary700 : theme.colors.neutral800};
4334
+ background: ${({ theme, $active }) => $active ? theme.colors.neutral0 : void 0};
4324
4335
 
4325
4336
  &:hover {
4326
4337
  box-shadow: ${({ theme }) => theme.shadows.filterShadow};
4327
4338
  }
4328
4339
  `;
4329
- const ActionLinkWrapper = styled__default.default(LinkWrapper)`
4340
+ const ActionLinkWrapper = styledComponents.styled(LinkWrapper)`
4330
4341
  font-size: 1.1rem;
4331
4342
  svg path {
4332
4343
  fill: ${(p) => p["aria-disabled"] ? p.theme.colors.neutral300 : p.theme.colors.neutral600};
@@ -4343,7 +4354,7 @@ const ActionLinkWrapper = styled__default.default(LinkWrapper)`
4343
4354
  pointer-events: none;
4344
4355
  ` : void 0}
4345
4356
  `;
4346
- const DotsWrapper = styled__default.default(LinkWrapper)`
4357
+ const DotsWrapper = styledComponents.styled(LinkWrapper)`
4347
4358
  color: ${({ theme }) => theme.colors.neutral800};
4348
4359
  `;
4349
4360
  const PreviousLink = ({ children, ...props }) => {
@@ -4365,12 +4376,12 @@ const NextLink = ({ children, ...props }) => {
4365
4376
  const PageLink = ({ number, children, ...props }) => {
4366
4377
  const { activePage } = usePagination();
4367
4378
  const isActive = activePage === number;
4368
- return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(PageLinkWrapper, { ...props, active: isActive, children: [
4379
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(PageLinkWrapper, { ...props, $active: isActive, children: [
4369
4380
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children }),
4370
4381
  /* @__PURE__ */ jsxRuntime.jsx(PaginationText, { "aria-hidden": true, variant: "pi", fontWeight: isActive ? "bold" : "", children: number })
4371
4382
  ] }) });
4372
4383
  };
4373
- const Dots = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(DotsWrapper, { ...props, as: "div", children: [
4384
+ const Dots = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(DotsWrapper, { ...props, tag: "div", children: [
4374
4385
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children }),
4375
4386
  /* @__PURE__ */ jsxRuntime.jsx(PaginationText, { "aria-hidden": true, small: true, children: "…" })
4376
4387
  ] }) });
@@ -4388,7 +4399,7 @@ Dots.propTypes = {
4388
4399
  };
4389
4400
  const Pagination = ({ children, label, activePage, pageCount }) => {
4390
4401
  const paginationValue = React.useMemo(() => ({ activePage, pageCount }), [activePage, pageCount]);
4391
- return /* @__PURE__ */ jsxRuntime.jsx(PaginationContext.Provider, { value: paginationValue, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { as: "nav", "aria-label": label, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { as: "ul", gap: 1, children }) }) });
4402
+ return /* @__PURE__ */ jsxRuntime.jsx(PaginationContext.Provider, { value: paginationValue, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { tag: "nav", "aria-label": label, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { tag: "ul", gap: 1, children }) }) });
4392
4403
  };
4393
4404
  Pagination.defaultProps = {
4394
4405
  label: "pagination"
@@ -4603,10 +4614,10 @@ const isSelectable = (allowedTypes, mime = "") => {
4603
4614
  const fileType = mime.split("/")[0];
4604
4615
  return allowedTypes.includes(fileType) || allowedTypes.includes("file") && !["video", "image", "audio"].includes(fileType);
4605
4616
  };
4606
- const TypographyMaxWidth = styled__default.default(designSystem.Typography)`
4617
+ const TypographyMaxWidth = styledComponents.styled(designSystem.Typography)`
4607
4618
  max-width: 100%;
4608
4619
  `;
4609
- const ActionContainer = styled__default.default(designSystem.Box)`
4620
+ const ActionContainer = styledComponents.styled(designSystem.Box)`
4610
4621
  svg {
4611
4622
  path {
4612
4623
  fill: ${({ theme }) => theme.colors.neutral500};
@@ -4724,7 +4735,7 @@ const BrowseStep = ({
4724
4735
  Breadcrumbs,
4725
4736
  {
4726
4737
  onChangeFolder,
4727
- as: "nav",
4738
+ tag: "nav",
4728
4739
  label: formatMessage({
4729
4740
  id: getTrad("header.breadcrumbs.nav.label"),
4730
4741
  defaultMessage: "Folders navigation"
@@ -4810,7 +4821,7 @@ const BrowseStep = ({
4810
4821
  FolderCardBodyAction,
4811
4822
  {
4812
4823
  onClick: () => handleClickFolderCard(folder.id, folder.path),
4813
- children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { as: "h2", direction: "column", alignItems: "start", maxWidth: "100%", children: [
4824
+ children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { tag: "h2", direction: "column", alignItems: "start", maxWidth: "100%", children: [
4814
4825
  /* @__PURE__ */ jsxRuntime.jsxs(TypographyMaxWidth, { fontWeight: "semiBold", ellipsis: true, children: [
4815
4826
  folder.name,
4816
4827
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.VisuallyHidden, { children: "-" })
@@ -4818,7 +4829,7 @@ const BrowseStep = ({
4818
4829
  /* @__PURE__ */ jsxRuntime.jsx(
4819
4830
  TypographyMaxWidth,
4820
4831
  {
4821
- as: "span",
4832
+ tag: "span",
4822
4833
  textColor: "neutral600",
4823
4834
  variant: "pi",
4824
4835
  ellipsis: true,
@@ -4963,7 +4974,7 @@ SelectedStep.propTypes = {
4963
4974
  selectedAssets: PropTypes__default.default.arrayOf(PropTypes__default.default.shape({})).isRequired,
4964
4975
  onReorderAsset: PropTypes__default.default.func
4965
4976
  };
4966
- const LoadingBody = styled__default.default(designSystem.Flex)`
4977
+ const LoadingBody = styledComponents.styled(designSystem.Flex)`
4967
4978
  /* 80px are coming from the Tabs component that is not included in the ModalBody */
4968
4979
  min-height: ${() => `calc(60vh + 8rem)`};
4969
4980
  `;
@@ -5242,20 +5253,20 @@ const rawFileToAsset = (rawFile, assetSource) => {
5242
5253
  isLocal: true
5243
5254
  };
5244
5255
  };
5245
- const Wrapper = styled__default.default(designSystem.Flex)`
5256
+ const Wrapper = styledComponents.styled(designSystem.Flex)`
5246
5257
  flex-direction: column;
5247
5258
  `;
5248
- const IconWrapper = styled__default.default.div`
5259
+ const IconWrapper = styledComponents.styled.div`
5249
5260
  font-size: 6rem;
5250
5261
 
5251
5262
  svg path {
5252
5263
  fill: ${({ theme }) => theme.colors.primary600};
5253
5264
  }
5254
5265
  `;
5255
- const MediaBox = styled__default.default(designSystem.Box)`
5266
+ const MediaBox = styledComponents.styled(designSystem.Box)`
5256
5267
  border-style: dashed;
5257
5268
  `;
5258
- const OpaqueBox = styled__default.default(designSystem.Box)`
5269
+ const OpaqueBox = styledComponents.styled(designSystem.Box)`
5259
5270
  opacity: 0;
5260
5271
  cursor: pointer;
5261
5272
  `;
@@ -5320,14 +5331,14 @@ const FromComputerForm = ({ onClose, onAddAssets, trackedLocation }) => {
5320
5331
  onDrop: handleDrop,
5321
5332
  children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { children: [
5322
5333
  /* @__PURE__ */ jsxRuntime.jsx(IconWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(icons.PlusCircle, { "aria-hidden": true, width: "3.2rem", height: "3.2rem" }) }),
5323
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 3, paddingBottom: 5, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", textColor: "neutral600", as: "span", children: formatMessage({
5334
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 3, paddingBottom: 5, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", textColor: "neutral600", tag: "span", children: formatMessage({
5324
5335
  id: getTrad("input.label"),
5325
5336
  defaultMessage: "Drag & Drop here or"
5326
5337
  }) }) }),
5327
5338
  /* @__PURE__ */ jsxRuntime.jsx(
5328
5339
  OpaqueBox,
5329
5340
  {
5330
- as: "input",
5341
+ tag: "input",
5331
5342
  position: "absolute",
5332
5343
  left: 0,
5333
5344
  right: 0,
@@ -5468,18 +5479,20 @@ const FromUrlForm = ({ onClose, onAddAsset, trackedLocation }) => {
5468
5479
  validationSchema: urlSchema,
5469
5480
  validateOnChange: false,
5470
5481
  children: ({ values, errors, handleChange }) => /* @__PURE__ */ jsxRuntime.jsxs(formik.Form, { noValidate: true, children: [
5471
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 8, paddingRight: 8, paddingBottom: 6, paddingTop: 6, children: /* @__PURE__ */ jsxRuntime.jsx(
5472
- designSystem.Textarea,
5482
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 8, paddingRight: 8, paddingBottom: 6, paddingTop: 6, children: /* @__PURE__ */ jsxRuntime.jsxs(
5483
+ designSystem.Field.Root,
5473
5484
  {
5474
- label: formatMessage({ id: getTrad("input.url.label"), defaultMessage: "URL" }),
5475
- id: "urls",
5476
5485
  hint: formatMessage({
5477
5486
  id: getTrad("input.url.description"),
5478
5487
  defaultMessage: "Separate your URL links by a carriage return."
5479
5488
  }),
5480
5489
  error: error?.message || (errors.urls ? formatMessage({ id: errors.urls, defaultMessage: "An error occured" }) : void 0),
5481
- onChange: handleChange,
5482
- value: values.urls
5490
+ children: [
5491
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Label, { children: formatMessage({ id: getTrad("input.url.label"), defaultMessage: "URL" }) }),
5492
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Textarea, { onChange: handleChange, value: values.urls }),
5493
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Hint, {}),
5494
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Field.Error, {})
5495
+ ]
5483
5496
  }
5484
5497
  ) }),
5485
5498
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5507,7 +5520,7 @@ FromUrlForm.propTypes = {
5507
5520
  const AddAssetStep = ({ onClose, onAddAsset, trackedLocation }) => {
5508
5521
  const { formatMessage } = reactIntl.useIntl();
5509
5522
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5510
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title", children: formatMessage({
5523
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id: "title", children: formatMessage({
5511
5524
  id: getTrad("header.actions.add-assets"),
5512
5525
  defaultMessage: "Add new assets"
5513
5526
  }) }) }),
@@ -5564,11 +5577,11 @@ AddAssetStep.propTypes = {
5564
5577
  onAddAsset: PropTypes__default.default.func.isRequired,
5565
5578
  trackedLocation: PropTypes__default.default.string
5566
5579
  };
5567
- const UploadProgressWrapper = styled__default.default.div`
5580
+ const UploadProgressWrapper = styledComponents.styled.div`
5568
5581
  height: 8.8rem;
5569
5582
  width: 100%;
5570
5583
  `;
5571
- const Extension = styled__default.default.span`
5584
+ const Extension = styledComponents.styled.span`
5572
5585
  text-transform: uppercase;
5573
5586
  `;
5574
5587
  const UploadingAssetCard = ({
@@ -5621,7 +5634,7 @@ const UploadingAssetCard = ({
5621
5634
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(UploadProgressWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(UploadProgress, { error, onCancel: handleCancel, progress }) }) }),
5622
5635
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.CardBody, { children: [
5623
5636
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.CardContent, { children: [
5624
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 1, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardTitle, { as: "h2", children: asset.name }) }),
5637
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingTop: 1, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardTitle, { tag: "h2", children: asset.name }) }),
5625
5638
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardSubtitle, { children: /* @__PURE__ */ jsxRuntime.jsx(Extension, { children: asset.ext }) })
5626
5639
  ] }),
5627
5640
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { paddingTop: 1, grow: 1, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.CardBadge, { children: badgeContent }) })
@@ -5709,7 +5722,7 @@ const PendingAssetStep = ({
5709
5722
  }
5710
5723
  };
5711
5724
  return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
5712
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", as: "h2", id: "title", children: formatMessage({
5725
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.ModalHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { fontWeight: "bold", textColor: "neutral800", tag: "h2", id: "title", children: formatMessage({
5713
5726
  id: getTrad("header.actions.add-assets"),
5714
5727
  defaultMessage: "Add new assets"
5715
5728
  }) }) }),
@@ -5956,17 +5969,17 @@ MediaLibraryDialog.propTypes = {
5956
5969
  onClose: PropTypes__default.default.func.isRequired,
5957
5970
  onSelectAssets: PropTypes__default.default.func.isRequired
5958
5971
  };
5959
- const DocAsset = styled__default.default(designSystem.Flex)`
5972
+ const DocAsset = styledComponents.styled(designSystem.Flex)`
5960
5973
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f9 121.48%);
5961
5974
  `;
5962
- const VideoPreviewWrapper = styled__default.default(designSystem.Box)`
5975
+ const VideoPreviewWrapper = styledComponents.styled(designSystem.Box)`
5963
5976
  canvas,
5964
5977
  video {
5965
5978
  max-width: 100%;
5966
5979
  height: 124px;
5967
5980
  }
5968
5981
  `;
5969
- const AudioPreviewWrapper = styled__default.default(designSystem.Box)`
5982
+ const AudioPreviewWrapper = styledComponents.styled(designSystem.Box)`
5970
5983
  canvas,
5971
5984
  audio {
5972
5985
  max-width: 100%;
@@ -5990,7 +6003,7 @@ const CarouselAsset = ({ asset }) => {
5990
6003
  return /* @__PURE__ */ jsxRuntime.jsx(
5991
6004
  designSystem.Box,
5992
6005
  {
5993
- as: "img",
6006
+ tag: "img",
5994
6007
  maxHeight: "100%",
5995
6008
  maxWidth: "100%",
5996
6009
  src: createAssetUrl(asset, true),
@@ -6053,7 +6066,7 @@ CarouselAssetActions.propTypes = {
6053
6066
  onEditAsset: PropTypes__default.default.func,
6054
6067
  onDeleteAsset: PropTypes__default.default.func
6055
6068
  };
6056
- const TextAlignTypography = styled__default.default(designSystem.Typography)`
6069
+ const TextAlignTypography = styledComponents.styled(designSystem.Typography)`
6057
6070
  align-items: center;
6058
6071
  `;
6059
6072
  const EmptyStateAsset = ({ disabled, onClick, onDropAsset }) => {
@@ -6096,7 +6109,7 @@ const EmptyStateAsset = ({ disabled, onClick, onDropAsset }) => {
6096
6109
  alignItems: "center",
6097
6110
  height: "100%",
6098
6111
  width: "100%",
6099
- as: "button",
6112
+ tag: "button",
6100
6113
  type: "button",
6101
6114
  disabled,
6102
6115
  onClick,
@@ -6123,7 +6136,7 @@ const EmptyStateAsset = ({ disabled, onClick, onDropAsset }) => {
6123
6136
  fontWeight: "bold",
6124
6137
  textColor: "neutral600",
6125
6138
  style: { textAlign: "center" },
6126
- as: "span",
6139
+ tag: "span",
6127
6140
  children: formatMessage({
6128
6141
  id: getTrad("mediaLibraryInput.placeholder"),
6129
6142
  defaultMessage: "Click to add an asset or drag and drop one in this area"
@@ -6460,7 +6473,6 @@ MediaLibraryInput.propTypes = {
6460
6473
  name: PropTypes__default.default.string.isRequired,
6461
6474
  required: PropTypes__default.default.bool
6462
6475
  };
6463
- const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(icons.Images, {});
6464
6476
  const prefixPluginTranslations = (trad, pluginId2) => {
6465
6477
  if (!pluginId2) {
6466
6478
  throw new TypeError("pluginId can't be empty");
@@ -6475,13 +6487,13 @@ const index = {
6475
6487
  register(app) {
6476
6488
  app.addMenuLink({
6477
6489
  to: `plugins/${pluginId}`,
6478
- icon: PluginIcon,
6490
+ icon: icons.Images,
6479
6491
  intlLabel: {
6480
6492
  id: `${pluginId}.plugin.name`,
6481
6493
  defaultMessage: "Media Library"
6482
6494
  },
6483
6495
  permissions: PERMISSIONS.main,
6484
- Component: () => Promise.resolve().then(() => require("./index-BNV9vUuq.js"))
6496
+ Component: () => Promise.resolve().then(() => require("./index-BbFs7_Gx.js"))
6485
6497
  });
6486
6498
  app.addSettingsLink("global", {
6487
6499
  id: "media-library-settings",
@@ -6490,7 +6502,7 @@ const index = {
6490
6502
  defaultMessage: "Media Library"
6491
6503
  },
6492
6504
  to: "media-library",
6493
- Component: () => Promise.resolve().then(() => require("./index-DU4hcIHO.js")),
6505
+ Component: () => Promise.resolve().then(() => require("./index-BxUjcUMp.js")),
6494
6506
  permissions: PERMISSIONS.settings
6495
6507
  });
6496
6508
  app.addFields({ type: "media", Component: MediaLibraryInput });
@@ -6559,4 +6571,4 @@ exports.useMediaLibraryPermissions = useMediaLibraryPermissions;
6559
6571
  exports.usePersistentState = usePersistentState;
6560
6572
  exports.useSelectionState = useSelectionState;
6561
6573
  exports.viewOptions = viewOptions;
6562
- //# sourceMappingURL=index-CtyJq8P-.js.map
6574
+ //# sourceMappingURL=index-PKgX3DYk.js.map