@strapi/design-system 1.6.3 → 1.6.4
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.
- package/dist/Accordion/Accordion.cjs +5 -5
- package/dist/Accordion/Accordion.js +45 -44
- package/dist/Accordion/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +4 -4
- package/dist/Accordion/AccordionGroup.cjs +4 -4
- package/dist/Accordion/AccordionGroup.js +18 -18
- package/dist/Accordion/AccordionToggle.cjs +2 -2
- package/dist/Accordion/AccordionToggle.js +11 -11
- package/dist/Alert/Alert.cjs +1 -1
- package/dist/Alert/Alert.js +8 -8
- package/dist/Avatar/Avatar.cjs +5 -5
- package/dist/Avatar/Avatar.js +11 -11
- package/dist/Avatar/AvatarGroup.cjs +2 -2
- package/dist/Avatar/AvatarGroup.js +4 -4
- package/dist/BaseButton/BaseButton.cjs +5 -11
- package/dist/BaseButton/BaseButton.js +31 -38
- package/dist/BaseCheckbox/BaseCheckbox.cjs +3 -3
- package/dist/BaseCheckbox/BaseCheckbox.js +22 -22
- package/dist/BaseRadio/BaseRadio.cjs +2 -2
- package/dist/BaseRadio/BaseRadio.js +4 -4
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +28 -26
- package/dist/Box/Box.cjs +1 -1
- package/dist/Box/Box.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.js +12 -12
- package/dist/Button/Button.cjs +10 -27
- package/dist/Button/Button.js +65 -85
- package/dist/Button/utils.cjs +22 -22
- package/dist/Button/utils.js +2 -2
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +15 -14
- package/dist/Card/CardAsset.js +4 -4
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +4 -4
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +6 -6
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +1 -1
- package/dist/CarouselInput/Carousel.cjs +2 -2
- package/dist/CarouselInput/Carousel.js +19 -64
- package/dist/CarouselInput/CarouselActions.js +1 -9
- package/dist/CarouselInput/CarouselImage.js +1 -10
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +19 -24
- package/dist/CarouselInput/CarouselSlide.js +13 -9
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +7 -26
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +106 -120
- package/dist/Combobox/ComboboxOption.cjs +1 -1
- package/dist/Combobox/ComboboxOption.js +18 -17
- package/dist/DatePicker/DatePicker.cjs +1 -1
- package/dist/DatePicker/DatePicker.js +47 -46
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
- package/dist/DatePicker/DatePickerCalendar.js +28 -61
- package/dist/DatePicker/DatePickerTd.js +1 -12
- package/dist/DatePicker/DatePickerTh.cjs +3 -3
- package/dist/DatePicker/DatePickerTh.js +7 -16
- package/dist/DatePicker/components.cjs +3 -3
- package/dist/DatePicker/components.js +6 -6
- package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.js +64 -61
- package/dist/DateTimePicker/DateTimePickerProps.js +1 -3
- package/dist/Dialog/Dialog.cjs +4 -4
- package/dist/Dialog/Dialog.js +26 -37
- package/dist/Dialog/DialogBody.cjs +1 -1
- package/dist/Dialog/DialogBody.js +2 -11
- package/dist/Dialog/DialogFooter.cjs +1 -1
- package/dist/Dialog/DialogFooter.js +2 -7
- package/dist/DismissibleLayer/DismissibleLayer.js +1 -4
- package/dist/Divider/Divider.js +1 -5
- package/dist/EmptyStateLayout/EmptyStateLayout.cjs +1 -1
- package/dist/EmptyStateLayout/EmptyStateLayout.js +2 -16
- package/dist/EmptyStateLayout/story-assets/Illo.js +60 -45
- package/dist/Field/Field.cjs +1 -1
- package/dist/Field/Field.js +12 -13
- package/dist/Field/FieldAction.cjs +1 -1
- package/dist/Field/FieldAction.js +2 -6
- package/dist/Field/FieldError.js +1 -7
- package/dist/Field/FieldHint.js +1 -6
- package/dist/Field/FieldInput.cjs +4 -4
- package/dist/Field/FieldInput.js +26 -34
- package/dist/Field/FieldLabel.cjs +1 -1
- package/dist/Field/FieldLabel.js +3 -16
- package/dist/FocusTrap/FocusTrap.js +1 -5
- package/dist/Grid/Grid.cjs +3 -3
- package/dist/Grid/Grid.js +12 -15
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +5 -13
- package/dist/IconButton/IconButton.cjs +7 -12
- package/dist/IconButton/IconButton.js +88 -84
- package/dist/JSONInput/JSONInput.cjs +1 -1
- package/dist/JSONInput/JSONInput.js +85 -78
- package/dist/JSONInput/JSONInputContainer.cjs +10 -10
- package/dist/JSONInput/JSONInputContainer.js +22 -15
- package/dist/Layout/ActionLayout.js +1 -13
- package/dist/Layout/ContentLayout.js +1 -4
- package/dist/Layout/HeaderLayout.cjs +1 -1
- package/dist/Layout/HeaderLayout.js +35 -64
- package/dist/Layout/Layout.js +1 -5
- package/dist/Layout/TwoColsLayout.js +1 -17
- package/dist/Link/Link.cjs +5 -5
- package/dist/Link/Link.js +55 -57
- package/dist/LinkButton/LinkButton.cjs +7 -24
- package/dist/LinkButton/LinkButton.js +60 -87
- package/dist/LiveRegions/LiveRegions.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.js +1 -1
- package/dist/Loader/Loader.cjs +4 -4
- package/dist/Loader/Loader.js +26 -24
- package/dist/Main/Main.js +1 -6
- package/dist/Main/SkipToContent.cjs +2 -2
- package/dist/Main/SkipToContent.js +17 -13
- package/dist/MainNav/MainNav.cjs +2 -2
- package/dist/MainNav/MainNav.js +21 -20
- package/dist/MainNav/NavBrand.cjs +2 -2
- package/dist/MainNav/NavBrand.js +4 -38
- package/dist/MainNav/NavCondense.cjs +2 -2
- package/dist/MainNav/NavCondense.js +10 -18
- package/dist/MainNav/NavFooter.js +1 -3
- package/dist/MainNav/NavLink.cjs +4 -4
- package/dist/MainNav/NavLink.js +8 -34
- package/dist/MainNav/NavSection.cjs +1 -1
- package/dist/MainNav/NavSection.js +5 -38
- package/dist/MainNav/NavSections.cjs +2 -2
- package/dist/MainNav/NavSections.js +4 -15
- package/dist/MainNav/NavUser.cjs +2 -2
- package/dist/MainNav/NavUser.js +6 -27
- package/dist/ModalLayout/ModalBody.js +1 -4
- package/dist/ModalLayout/ModalFooter.cjs +1 -1
- package/dist/ModalLayout/ModalFooter.js +2 -10
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +8 -20
- package/dist/ModalLayout/ModalLayout.cjs +3 -3
- package/dist/ModalLayout/ModalLayout.js +23 -31
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +54 -59
- package/dist/Pagination/Pagination.cjs +2 -2
- package/dist/Pagination/Pagination.js +11 -16
- package/dist/Pagination/components.cjs +3 -3
- package/dist/Pagination/components.js +31 -38
- package/dist/Popover/Popover.cjs +3 -3
- package/dist/Popover/Popover.js +5 -5
- package/dist/Portal/Portal.cjs +1 -1
- package/dist/Portal/Portal.js +10 -12
- package/dist/ProgressBar/ProgressBar.js +17 -14
- package/dist/Radio/Radio.cjs +2 -2
- package/dist/Radio/Radio.js +4 -11
- package/dist/RawTable/RawCell.cjs +1 -1
- package/dist/RawTable/RawCell.js +5 -14
- package/dist/RawTable/RawTable.cjs +1 -1
- package/dist/RawTable/RawTable.js +36 -35
- package/dist/RawTable/RawTbody.js +1 -3
- package/dist/RawTable/RawThead.js +1 -3
- package/dist/RawTable/RawTr.js +1 -4
- package/dist/Searchbar/SearchForm.js +1 -4
- package/dist/Searchbar/Searchbar.cjs +3 -3
- package/dist/Searchbar/Searchbar.js +21 -25
- package/dist/Select/MultiSelectNested.js +2 -14
- package/dist/Select/OptGroup.cjs +1 -1
- package/dist/Select/OptGroup.js +14 -10
- package/dist/Select/Option.cjs +3 -3
- package/dist/Select/Option.js +31 -33
- package/dist/Select/Select.cjs +2 -2
- package/dist/Select/Select.js +86 -106
- package/dist/Select/SelectButton.cjs +1 -1
- package/dist/Select/SelectButton.js +14 -11
- package/dist/Select/SelectList.cjs +1 -1
- package/dist/Select/SelectList.js +20 -16
- package/dist/Select/SelectTags.cjs +3 -3
- package/dist/Select/SelectTags.js +17 -15
- package/dist/Select/SingleSelect.cjs +1 -1
- package/dist/Select/SingleSelect.js +1 -1
- package/dist/SimpleMenu/SimpleMenu.cjs +3 -3
- package/dist/SimpleMenu/SimpleMenu.js +43 -67
- package/dist/Status/Status.js +15 -13
- package/dist/SubNav/SubNav.cjs +2 -2
- package/dist/SubNav/SubNav.js +5 -9
- package/dist/SubNav/SubNavHeader.cjs +2 -2
- package/dist/SubNav/SubNavHeader.js +31 -53
- package/dist/SubNav/SubNavLink.cjs +3 -3
- package/dist/SubNav/SubNavLink.js +18 -22
- package/dist/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/SubNav/SubNavLinkSection.js +5 -30
- package/dist/SubNav/SubNavSection.cjs +2 -2
- package/dist/SubNav/SubNavSection.js +23 -30
- package/dist/SubNav/SubNavSectionLabel.cjs +2 -2
- package/dist/SubNav/SubNavSectionLabel.js +15 -24
- package/dist/SubNav/SubNavSections.cjs +1 -1
- package/dist/SubNav/SubNavSections.js +3 -12
- package/dist/Switch/Switch.cjs +2 -2
- package/dist/Switch/Switch.js +16 -17
- package/dist/Table/Cell.cjs +1 -1
- package/dist/Table/Cell.js +3 -8
- package/dist/Table/TFooter.cjs +2 -2
- package/dist/Table/TFooter.js +3 -17
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.js +2 -18
- package/dist/Table/Tbody.js +1 -3
- package/dist/Table/Thead.js +1 -3
- package/dist/Table/Tr.js +1 -3
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +30 -27
- package/dist/Tabs/TabPanels.js +2 -10
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.js +43 -51
- package/dist/Tag/Tag.cjs +1 -1
- package/dist/Tag/Tag.js +20 -23
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +15 -15
- package/dist/TextInput/TextInput.cjs +1 -1
- package/dist/TextInput/TextInput.js +6 -24
- package/dist/Textarea/Textarea.cjs +2 -2
- package/dist/Textarea/Textarea.js +10 -25
- package/dist/Textarea/TextareaInput.cjs +1 -1
- package/dist/Textarea/TextareaInput.js +15 -15
- package/dist/TimePicker/TimePicker.cjs +2 -2
- package/dist/TimePicker/TimePicker.js +26 -25
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +5 -5
- package/dist/ToggleCheckbox/ToggleCheckbox.js +85 -60
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +14 -32
- package/dist/Tooltip/Tooltip.cjs +2 -2
- package/dist/Tooltip/Tooltip.js +62 -53
- package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -1
- package/dist/Tooltip/hooks/useTooltipHandlers.js +7 -7
- package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -1
- package/dist/Tooltip/hooks/useTooltipLayout.js +8 -5
- package/dist/Typography/Typography.cjs +3 -2
- package/dist/Typography/Typography.js +17 -14
- package/dist/helpers/objects.cjs +1 -1
- package/dist/helpers/objects.js +1 -1
- package/dist/hooks/useId.cjs +1 -0
- package/dist/hooks/useId.js +13 -0
- package/dist/themes/extendTheme.cjs +1 -1
- package/dist/themes/extendTheme.js +4 -4
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +4 -13
- package/dist/v2/Breadcrumbs/Crumb.js +11 -12
- package/dist/v2/Breadcrumbs/CrumbLink.js +1 -3
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +5 -11
- package/dist/v2/Breadcrumbs/Divider.js +1 -8
- package/dist/v2/Link/Link.cjs +2 -2
- package/dist/v2/Link/Link.js +5 -24
- package/dist/v2/LinkButton/LinkButton.cjs +11 -24
- package/dist/v2/LinkButton/LinkButton.js +62 -84
- package/dist/v2/MainNav/MainNav.cjs +2 -2
- package/dist/v2/MainNav/MainNav.js +21 -20
- package/dist/v2/MainNav/NavBrand.cjs +2 -2
- package/dist/v2/MainNav/NavBrand.js +4 -38
- package/dist/v2/MainNav/NavCondense.cjs +2 -2
- package/dist/v2/MainNav/NavCondense.js +10 -18
- package/dist/v2/MainNav/NavFooter.js +1 -3
- package/dist/v2/MainNav/NavLink.cjs +4 -4
- package/dist/v2/MainNav/NavLink.js +10 -39
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +5 -38
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +4 -15
- package/dist/v2/MainNav/NavUser.cjs +2 -2
- package/dist/v2/MainNav/NavUser.js +6 -27
- package/dist/v2/Pagination/Pagination.cjs +2 -2
- package/dist/v2/Pagination/Pagination.js +11 -16
- package/dist/v2/Pagination/components.cjs +2 -2
- package/dist/v2/Pagination/components.js +11 -39
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +4 -4
- package/dist/v2/SimpleMenu/SimpleMenu.js +42 -65
- package/dist/v2/SubNav/SubNav.cjs +2 -2
- package/dist/v2/SubNav/SubNav.js +5 -9
- package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
- package/dist/v2/SubNav/SubNavHeader.js +31 -53
- package/dist/v2/SubNav/SubNavLink.cjs +2 -2
- package/dist/v2/SubNav/SubNavLink.js +18 -22
- package/dist/v2/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavLinkSection.js +5 -30
- package/dist/v2/SubNav/SubNavSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavSection.js +26 -33
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +2 -2
- package/dist/v2/SubNav/SubNavSectionLabel.js +15 -24
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +3 -12
- package/package.json +7 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import e, { useState as L, useRef as p, useEffect as w } from "react";
|
|
2
|
+
import { Search as x } from "@strapi/icons";
|
|
2
3
|
import r from "prop-types";
|
|
3
|
-
import
|
|
4
|
-
import { Search as D } from "@strapi/icons";
|
|
5
|
-
import { Flex as I } from "../../Flex/Flex.js";
|
|
6
|
-
import { Typography as K } from "../../Typography/Typography.js";
|
|
7
|
-
import { IconButton as P } from "../../IconButton/IconButton.js";
|
|
4
|
+
import D from "styled-components";
|
|
8
5
|
import { Box as n } from "../../Box/Box.js";
|
|
9
|
-
import { Divider as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { useId as
|
|
13
|
-
import { usePrevious as
|
|
14
|
-
import {
|
|
15
|
-
|
|
6
|
+
import { Divider as I } from "../../Divider/Divider.js";
|
|
7
|
+
import { Flex as K } from "../../Flex/Flex.js";
|
|
8
|
+
import { KeyboardKeys as P } from "../../helpers/keyboardKeys.js";
|
|
9
|
+
import { useId as k } from "../../helpers/useId.js";
|
|
10
|
+
import { usePrevious as O } from "../../helpers/usePrevious.js";
|
|
11
|
+
import { IconButton as F } from "../../IconButton/IconButton.js";
|
|
12
|
+
import { Searchbar as _ } from "../../Searchbar/Searchbar.js";
|
|
13
|
+
import { SearchForm as $ } from "../../Searchbar/SearchForm.js";
|
|
14
|
+
import { Typography as j } from "../../Typography/Typography.js";
|
|
15
|
+
const d = D(I)`
|
|
16
16
|
width: ${24 / 16}rem;
|
|
17
17
|
background-color: ${({ theme: l }) => l.colors.neutral200};
|
|
18
18
|
`, f = ({ as: l, label: u, searchLabel: s, searchable: g, onChange: h, value: b, onClear: E, onSubmit: S, id: y }) => {
|
|
19
|
-
const [o, i] = L(!1), m =
|
|
19
|
+
const [o, i] = L(!1), m = O(o), C = k(y), a = p(), c = p();
|
|
20
20
|
w(() => {
|
|
21
21
|
o && a.current && a.current.focus(), m && !o && c.current && c.current.focus();
|
|
22
22
|
}, [o, m]);
|
|
@@ -27,47 +27,25 @@ const d = x(k)`
|
|
|
27
27
|
}, T = (t) => {
|
|
28
28
|
t.relatedTarget?.id !== C && i(!1);
|
|
29
29
|
}, R = (t) => {
|
|
30
|
-
t.key ===
|
|
30
|
+
t.key === P.ESCAPE && i(!1);
|
|
31
31
|
};
|
|
32
|
-
return o ? /* @__PURE__ */ e.createElement(n, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, s)), /* @__PURE__ */ e.createElement(n, {
|
|
50
|
-
paddingLeft: 2,
|
|
51
|
-
paddingTop: 4
|
|
52
|
-
}, /* @__PURE__ */ e.createElement(d, null))) : /* @__PURE__ */ e.createElement(n, {
|
|
53
|
-
paddingLeft: 6,
|
|
54
|
-
paddingTop: 6,
|
|
55
|
-
paddingBottom: 2,
|
|
56
|
-
paddingRight: 4
|
|
57
|
-
}, /* @__PURE__ */ e.createElement(I, {
|
|
58
|
-
justifyContent: "space-between",
|
|
59
|
-
alignItems: "flex-start"
|
|
60
|
-
}, /* @__PURE__ */ e.createElement(K, {
|
|
61
|
-
variant: "beta",
|
|
62
|
-
as: l
|
|
63
|
-
}, u), g && /* @__PURE__ */ e.createElement(P, {
|
|
64
|
-
ref: c,
|
|
65
|
-
onClick: v,
|
|
66
|
-
label: s,
|
|
67
|
-
icon: /* @__PURE__ */ e.createElement(D, null)
|
|
68
|
-
})), /* @__PURE__ */ e.createElement(n, {
|
|
69
|
-
paddingTop: 4
|
|
70
|
-
}, /* @__PURE__ */ e.createElement(d, null)));
|
|
32
|
+
return o ? /* @__PURE__ */ e.createElement(n, { paddingLeft: 4, paddingTop: 5, paddingBottom: 2, paddingRight: 4 }, /* @__PURE__ */ e.createElement($, null, /* @__PURE__ */ e.createElement(
|
|
33
|
+
_,
|
|
34
|
+
{
|
|
35
|
+
name: "searchbar",
|
|
36
|
+
value: b,
|
|
37
|
+
onChange: h,
|
|
38
|
+
placeholder: "e.g: strapi-plugin-abcd",
|
|
39
|
+
onKeyDown: R,
|
|
40
|
+
ref: a,
|
|
41
|
+
onBlur: T,
|
|
42
|
+
onClear: B,
|
|
43
|
+
onSubmit: S,
|
|
44
|
+
clearLabel: "Clear",
|
|
45
|
+
size: "S"
|
|
46
|
+
},
|
|
47
|
+
s
|
|
48
|
+
)), /* @__PURE__ */ e.createElement(n, { paddingLeft: 2, paddingTop: 4 }, /* @__PURE__ */ e.createElement(d, null))) : /* @__PURE__ */ e.createElement(n, { paddingLeft: 6, paddingTop: 6, paddingBottom: 2, paddingRight: 4 }, /* @__PURE__ */ e.createElement(K, { justifyContent: "space-between", alignItems: "flex-start" }, /* @__PURE__ */ e.createElement(j, { variant: "beta", as: l }, u), g && /* @__PURE__ */ e.createElement(F, { ref: c, onClick: v, label: s, icon: /* @__PURE__ */ e.createElement(x, null) })), /* @__PURE__ */ e.createElement(n, { paddingTop: 4 }, /* @__PURE__ */ e.createElement(d, null)));
|
|
71
49
|
};
|
|
72
50
|
f.defaultProps = {
|
|
73
51
|
as: "h2",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react"),b=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react"),b=require("@strapi/icons"),h=require("prop-types"),x=require("styled-components"),B=require("../../BaseLink/BaseLink.cjs"),a=require("../../Box/Box.cjs"),i=require("../../Flex/Flex.cjs"),c=require("../../Typography/Typography.cjs"),n=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=n(m),o=n(h),s=n(x),$=s.default(a.Box)`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
&:focus-visible {
|
|
26
26
|
outline-offset: -2px;
|
|
27
27
|
}
|
|
28
|
-
`,u=s.default(
|
|
28
|
+
`,u=s.default(b.Dot)`
|
|
29
29
|
width: ${12/16}rem;
|
|
30
30
|
height: ${4/16}rem;
|
|
31
31
|
* {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
+
import { Dot as g } from "@strapi/icons";
|
|
2
3
|
import t from "prop-types";
|
|
3
4
|
import i from "styled-components";
|
|
4
|
-
import {
|
|
5
|
+
import { BaseLink as y } from "../../BaseLink/BaseLink.js";
|
|
5
6
|
import { Box as l } from "../../Box/Box.js";
|
|
6
|
-
import { Typography as p } from "../../Typography/Typography.js";
|
|
7
7
|
import { Flex as a } from "../../Flex/Flex.js";
|
|
8
|
-
import {
|
|
8
|
+
import { Typography as p } from "../../Typography/Typography.js";
|
|
9
9
|
const $ = i(l)`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
@@ -44,25 +44,21 @@ const $ = i(l)`
|
|
|
44
44
|
height: ${12 / 16}rem;
|
|
45
45
|
width: ${12 / 16}rem;
|
|
46
46
|
}
|
|
47
|
-
`, n = r.forwardRef(({ children: e, icon: o, withBullet: c, as: m, isSubSectionChild: d, ...u }, f) => /* @__PURE__ */ r.createElement(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
as: "span"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
paddingRight: 4
|
|
63
|
-
}, /* @__PURE__ */ r.createElement(s, {
|
|
64
|
-
$active: !0
|
|
65
|
-
}))));
|
|
47
|
+
`, n = r.forwardRef(({ children: e, icon: o, withBullet: c, as: m, isSubSectionChild: d, ...u }, f) => /* @__PURE__ */ r.createElement(
|
|
48
|
+
$,
|
|
49
|
+
{
|
|
50
|
+
as: m,
|
|
51
|
+
icon: o,
|
|
52
|
+
background: "neutral100",
|
|
53
|
+
paddingLeft: d ? 9 : 7,
|
|
54
|
+
paddingBottom: 2,
|
|
55
|
+
paddingTop: 2,
|
|
56
|
+
ref: f,
|
|
57
|
+
...u
|
|
58
|
+
},
|
|
59
|
+
/* @__PURE__ */ r.createElement(a, null, o ? /* @__PURE__ */ r.createElement(b, null, o) : /* @__PURE__ */ r.createElement(s, null), /* @__PURE__ */ r.createElement(l, { paddingLeft: 2 }, /* @__PURE__ */ r.createElement(p, { as: "span" }, e))),
|
|
60
|
+
c && /* @__PURE__ */ r.createElement(l, { as: a, paddingRight: 4 }, /* @__PURE__ */ r.createElement(s, { $active: !0 }))
|
|
61
|
+
));
|
|
66
62
|
n.displayName = "SubNavLink";
|
|
67
63
|
n.defaultProps = {
|
|
68
64
|
as: y,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),m=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),m=require("@strapi/icons"),h=require("prop-types"),x=require("styled-components"),l=require("../../Box/Box.cjs"),b=require("../../Flex/Flex.cjs"),S=require("../../helpers/useId.cjs"),q=require("../../Typography/Typography.cjs"),d=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=d(o),r=d(h),i=d(x),E=i.default(l.Box)`
|
|
2
2
|
svg {
|
|
3
3
|
height: ${4/16}rem;
|
|
4
4
|
path {
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
width: ${12/16}rem;
|
|
18
18
|
transform: rotateX(${({rotated:e})=>e?"0deg":"180deg"});
|
|
19
|
-
`,s=({label:e,children:c,id:p})=>{const[n,f]=o.useState(!0),u=
|
|
19
|
+
`,s=({label:e,children:c,id:p})=>{const[n,f]=o.useState(!0),u=S.useId(p),g=()=>{f(a=>!a)};return t.default.createElement(l.Box,null,t.default.createElement(E,{paddingLeft:7,paddingTop:2,paddingBottom:2,paddingRight:4},t.default.createElement(b.Flex,{justifyContent:"space-between"},t.default.createElement(k,{onClick:g,"aria-expanded":n,"aria-controls":u},t.default.createElement(v,{rotated:n},t.default.createElement(m.CarretDown,{"aria-hidden":!0})),t.default.createElement(l.Box,{paddingLeft:2},t.default.createElement(q.Typography,{as:"span",fontWeight:"semiBold",textColor:"neutral800"},e))))),n&&t.default.createElement("ul",{id:u},o.Children.map(c,(a,y)=>t.default.createElement("li",{key:y},a))))};s.defaultProps={id:void 0};s.propTypes={children:r.default.node.isRequired,id:r.default.string,label:r.default.string.isRequired};exports.SubNavLinkSection=s;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e, { useState as f, Children as g } from "react";
|
|
2
|
+
import { CarretDown as h } from "@strapi/icons";
|
|
2
3
|
import o from "prop-types";
|
|
3
4
|
import a from "styled-components";
|
|
4
|
-
import { CarretDown as h } from "@strapi/icons";
|
|
5
5
|
import { Box as i } from "../../Box/Box.js";
|
|
6
6
|
import { Flex as E } from "../../Flex/Flex.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { useId as y } from "../../helpers/useId.js";
|
|
8
|
+
import { Typography as b } from "../../Typography/Typography.js";
|
|
9
9
|
const k = a(i)`
|
|
10
10
|
svg {
|
|
11
11
|
height: ${4 / 16}rem;
|
|
@@ -25,35 +25,10 @@ const k = a(i)`
|
|
|
25
25
|
width: ${12 / 16}rem;
|
|
26
26
|
transform: rotateX(${({ rotated: t }) => t ? "0deg" : "180deg"});
|
|
27
27
|
`, l = ({ label: t, children: p, id: s }) => {
|
|
28
|
-
const [r, m] = f(!0), d =
|
|
28
|
+
const [r, m] = f(!0), d = y(s), c = () => {
|
|
29
29
|
m((n) => !n);
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(k, {
|
|
32
|
-
paddingLeft: 7,
|
|
33
|
-
paddingTop: 2,
|
|
34
|
-
paddingBottom: 2,
|
|
35
|
-
paddingRight: 4
|
|
36
|
-
}, /* @__PURE__ */ e.createElement(E, {
|
|
37
|
-
justifyContent: "space-between"
|
|
38
|
-
}, /* @__PURE__ */ e.createElement(x, {
|
|
39
|
-
onClick: c,
|
|
40
|
-
"aria-expanded": r,
|
|
41
|
-
"aria-controls": d
|
|
42
|
-
}, /* @__PURE__ */ e.createElement(S, {
|
|
43
|
-
rotated: r
|
|
44
|
-
}, /* @__PURE__ */ e.createElement(h, {
|
|
45
|
-
"aria-hidden": !0
|
|
46
|
-
})), /* @__PURE__ */ e.createElement(i, {
|
|
47
|
-
paddingLeft: 2
|
|
48
|
-
}, /* @__PURE__ */ e.createElement(y, {
|
|
49
|
-
as: "span",
|
|
50
|
-
fontWeight: "semiBold",
|
|
51
|
-
textColor: "neutral800"
|
|
52
|
-
}, t))))), r && /* @__PURE__ */ e.createElement("ul", {
|
|
53
|
-
id: d
|
|
54
|
-
}, g.map(p, (n, u) => /* @__PURE__ */ e.createElement("li", {
|
|
55
|
-
key: u
|
|
56
|
-
}, n))));
|
|
31
|
+
return /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(k, { paddingLeft: 7, paddingTop: 2, paddingBottom: 2, paddingRight: 4 }, /* @__PURE__ */ e.createElement(E, { justifyContent: "space-between" }, /* @__PURE__ */ e.createElement(x, { onClick: c, "aria-expanded": r, "aria-controls": d }, /* @__PURE__ */ e.createElement(S, { rotated: r }, /* @__PURE__ */ e.createElement(h, { "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(i, { paddingLeft: 2 }, /* @__PURE__ */ e.createElement(b, { as: "span", fontWeight: "semiBold", textColor: "neutral800" }, t))))), r && /* @__PURE__ */ e.createElement("ul", { id: d }, g.map(p, (n, u) => /* @__PURE__ */ e.createElement("li", { key: u }, n))));
|
|
57
32
|
};
|
|
58
33
|
l.defaultProps = {
|
|
59
34
|
id: void 0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),m=require("prop-types"),v=require("styled-components"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),m=require("prop-types"),v=require("styled-components"),y=require("./SubNavSectionLabel.cjs"),h=require("../../Badge/Badge.cjs"),u=require("../../Box/Box.cjs"),q=require("../../helpers/useId.cjs"),B=require("../../Stack/Stack.cjs"),r=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=r(n),a=r(m),k=r(v),_=k.default(u.Box)`
|
|
2
2
|
svg {
|
|
3
3
|
height: ${4/16}rem;
|
|
4
4
|
path {
|
|
5
5
|
fill: ${({theme:e})=>e.colors.neutral500};
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
`,s=({collapsable:e,label:c,badgeLabel:o,children:p,id:f})=>{const[i,g]=n.useState(!0),d=
|
|
8
|
+
`,s=({collapsable:e,label:c,badgeLabel:o,children:p,id:f})=>{const[i,g]=n.useState(!0),d=q.useId(f),S=()=>{g(l=>!l)};return t.default.createElement(B.Stack,{spacing:1},t.default.createElement(_,{paddingLeft:6,paddingTop:2,paddingBottom:2,paddingRight:4},t.default.createElement(u.Box,{position:"relative",paddingRight:o?6:0},t.default.createElement(y.SubNavSectionLabel,{onClick:S,ariaExpanded:i,ariaControls:d,collapsable:e,label:c}),o&&t.default.createElement(h.Badge,{backgroundColor:"neutral150",textColor:"neutral600",position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"},o))),(!e||i)&&t.default.createElement("ol",{id:d},n.Children.map(p,(l,b)=>t.default.createElement("li",{key:b},l))))};s.defaultProps={badgeLabel:null,collapsable:!1,id:void 0};s.propTypes={badgeLabel:a.default.string,children:a.default.node.isRequired,collapsable:a.default.bool,id:a.default.string,label:a.default.string.isRequired};exports.SubNavSection=s;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e, { useState as f, Children as b } from "react";
|
|
2
2
|
import t from "prop-types";
|
|
3
3
|
import h from "styled-components";
|
|
4
|
+
import { SubNavSectionLabel as E } from "./SubNavSectionLabel.js";
|
|
5
|
+
import { Badge as S } from "../../Badge/Badge.js";
|
|
4
6
|
import { Box as l } from "../../Box/Box.js";
|
|
5
|
-
import {
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { SubNavSectionLabel as k } from "./SubNavSectionLabel.js";
|
|
8
|
-
import { useId as v } from "../../helpers/useId.js";
|
|
7
|
+
import { useId as k } from "../../helpers/useId.js";
|
|
8
|
+
import { Stack as v } from "../../Stack/Stack.js";
|
|
9
9
|
const C = h(l)`
|
|
10
10
|
svg {
|
|
11
11
|
height: ${4 / 16}rem;
|
|
@@ -14,37 +14,30 @@ const C = h(l)`
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
`, p = ({ collapsable: r, label: s, badgeLabel: o, children: d, id: m }) => {
|
|
17
|
-
const [a, c] = f(!0), n =
|
|
17
|
+
const [a, c] = f(!0), n = k(m), u = () => {
|
|
18
18
|
c((i) => !i);
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
top: "50%",
|
|
42
|
-
transform: "translateY(-50%)"
|
|
43
|
-
}, o))), (!r || a) && /* @__PURE__ */ e.createElement("ol", {
|
|
44
|
-
id: n
|
|
45
|
-
}, b.map(d, (i, g) => /* @__PURE__ */ e.createElement("li", {
|
|
46
|
-
key: g
|
|
47
|
-
}, i))));
|
|
20
|
+
return /* @__PURE__ */ e.createElement(v, { spacing: 1 }, /* @__PURE__ */ e.createElement(C, { paddingLeft: 6, paddingTop: 2, paddingBottom: 2, paddingRight: 4 }, /* @__PURE__ */ e.createElement(l, { position: "relative", paddingRight: o ? 6 : 0 }, /* @__PURE__ */ e.createElement(
|
|
21
|
+
E,
|
|
22
|
+
{
|
|
23
|
+
onClick: u,
|
|
24
|
+
ariaExpanded: a,
|
|
25
|
+
ariaControls: n,
|
|
26
|
+
collapsable: r,
|
|
27
|
+
label: s
|
|
28
|
+
}
|
|
29
|
+
), o && /* @__PURE__ */ e.createElement(
|
|
30
|
+
S,
|
|
31
|
+
{
|
|
32
|
+
backgroundColor: "neutral150",
|
|
33
|
+
textColor: "neutral600",
|
|
34
|
+
position: "absolute",
|
|
35
|
+
right: 0,
|
|
36
|
+
top: "50%",
|
|
37
|
+
transform: "translateY(-50%)"
|
|
38
|
+
},
|
|
39
|
+
o
|
|
40
|
+
))), (!r || a) && /* @__PURE__ */ e.createElement("ol", { id: n }, b.map(d, (i, g) => /* @__PURE__ */ e.createElement("li", { key: g }, i))));
|
|
48
41
|
};
|
|
49
42
|
p.defaultProps = {
|
|
50
43
|
badgeLabel: null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react"),g=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("react"),g=require("@strapi/icons"),y=require("prop-types"),b=require("styled-components"),u=require("../../Box/Box.cjs"),x=require("../../Flex/Flex.cjs"),s=require("../../Typography/Typography.cjs"),r=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=r(f),a=r(y),i=r(b),d=i.default(x.Flex)`
|
|
2
2
|
border: none;
|
|
3
3
|
padding: 0;
|
|
4
4
|
background: transparent;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
transform: rotateX(${({rotated:e})=>e?"0deg":"180deg"});
|
|
9
|
-
`,o=({collapsable:e,label:l,onClick:c,ariaExpanded:n,ariaControls:p})=>e?t.default.createElement(d,{as:"button",onClick:c,"aria-expanded":n,"aria-controls":p,textAlign:"left"},t.default.createElement(
|
|
9
|
+
`,o=({collapsable:e,label:l,onClick:c,ariaExpanded:n,ariaControls:p})=>e?t.default.createElement(d,{as:"button",onClick:c,"aria-expanded":n,"aria-controls":p,textAlign:"left"},t.default.createElement(u.Box,{paddingRight:1},t.default.createElement(s.Typography,{variant:"sigma",textColor:"neutral600"},l)),e&&t.default.createElement(m,{rotated:n},t.default.createElement(g.CarretDown,{"aria-hidden":!0}))):t.default.createElement(d,null,t.default.createElement(u.Box,{paddingRight:1},t.default.createElement(s.Typography,{variant:"sigma",textColor:"neutral600"},l)));o.defaultProps={ariaControls:null,ariaExpanded:null,collapsable:!1,onClick(){}};o.propTypes={ariaControls:a.default.string,ariaExpanded:a.default.bool,collapsable:a.default.bool,label:a.default.string.isRequired,onClick:a.default.func};exports.SubNavSectionLabel=o;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
+
import { CarretDown as s } from "@strapi/icons";
|
|
2
3
|
import r from "prop-types";
|
|
3
4
|
import p from "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import { Typography as n } from "../../Typography/Typography.js";
|
|
6
|
-
import { Box as l } from "../../Box/Box.js";
|
|
5
|
+
import { Box as n } from "../../Box/Box.js";
|
|
7
6
|
import { Flex as u } from "../../Flex/Flex.js";
|
|
7
|
+
import { Typography as l } from "../../Typography/Typography.js";
|
|
8
8
|
const i = p(u)`
|
|
9
9
|
border: none;
|
|
10
10
|
padding: 0;
|
|
@@ -13,27 +13,18 @@ const i = p(u)`
|
|
|
13
13
|
display: flex;
|
|
14
14
|
align-items: center;
|
|
15
15
|
transform: rotateX(${({ rotated: t }) => t ? "0deg" : "180deg"});
|
|
16
|
-
`, m = ({ collapsable: t, label: a, onClick: d, ariaExpanded: o, ariaControls: c }) => t ? /* @__PURE__ */ e.createElement(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
variant: "sigma",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
rotated: o
|
|
29
|
-
}, /* @__PURE__ */ e.createElement(s, {
|
|
30
|
-
"aria-hidden": !0
|
|
31
|
-
}))) : /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(l, {
|
|
32
|
-
paddingRight: 1
|
|
33
|
-
}, /* @__PURE__ */ e.createElement(n, {
|
|
34
|
-
variant: "sigma",
|
|
35
|
-
textColor: "neutral600"
|
|
36
|
-
}, a)));
|
|
16
|
+
`, m = ({ collapsable: t, label: a, onClick: d, ariaExpanded: o, ariaControls: c }) => t ? /* @__PURE__ */ e.createElement(
|
|
17
|
+
i,
|
|
18
|
+
{
|
|
19
|
+
as: "button",
|
|
20
|
+
onClick: d,
|
|
21
|
+
"aria-expanded": o,
|
|
22
|
+
"aria-controls": c,
|
|
23
|
+
textAlign: "left"
|
|
24
|
+
},
|
|
25
|
+
/* @__PURE__ */ e.createElement(n, { paddingRight: 1 }, /* @__PURE__ */ e.createElement(l, { variant: "sigma", textColor: "neutral600" }, a)),
|
|
26
|
+
t && /* @__PURE__ */ e.createElement(f, { rotated: o }, /* @__PURE__ */ e.createElement(s, { "aria-hidden": !0 }))
|
|
27
|
+
) : /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(n, { paddingRight: 1 }, /* @__PURE__ */ e.createElement(l, { variant: "sigma", textColor: "neutral600" }, a)));
|
|
37
28
|
m.defaultProps = {
|
|
38
29
|
ariaControls: null,
|
|
39
30
|
ariaExpanded: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),s=require("prop-types"),l=require("../../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),s=require("prop-types"),l=require("../../Box/Box.cjs"),i=require("../../Stack/Stack.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},t=a(o),d=a(s),r=({children:e,...c})=>t.default.createElement(l.Box,{paddingTop:2,paddingBottom:4},t.default.createElement(i.Stack,{as:"ol",spacing:2,...c},o.Children.map(e,(n,u)=>t.default.createElement("li",{key:u},n))));r.propTypes={children:d.default.node.isRequired};exports.SubNavSections=r;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import e, { Children as i } from "react";
|
|
2
2
|
import m from "prop-types";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const c = ({ children: r, ...t }) => /* @__PURE__ */ e.createElement(a, {
|
|
6
|
-
paddingTop: 2,
|
|
7
|
-
paddingBottom: 4
|
|
8
|
-
}, /* @__PURE__ */ e.createElement(n, {
|
|
9
|
-
as: "ol",
|
|
10
|
-
spacing: 2,
|
|
11
|
-
...t
|
|
12
|
-
}, i.map(r, (o, p) => /* @__PURE__ */ e.createElement("li", {
|
|
13
|
-
key: p
|
|
14
|
-
}, o))));
|
|
3
|
+
import { Box as n } from "../../Box/Box.js";
|
|
4
|
+
import { Stack as a } from "../../Stack/Stack.js";
|
|
5
|
+
const c = ({ children: r, ...t }) => /* @__PURE__ */ e.createElement(n, { paddingTop: 2, paddingBottom: 4 }, /* @__PURE__ */ e.createElement(a, { as: "ol", spacing: 2, ...t }, i.map(r, (o, p) => /* @__PURE__ */ e.createElement("li", { key: p }, o))));
|
|
15
6
|
c.propTypes = {
|
|
16
7
|
children: m.node.isRequired
|
|
17
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"@floating-ui/react-dom": "^1.0.0",
|
|
23
23
|
"@internationalized/number": "^3.1.1",
|
|
24
24
|
"@radix-ui/react-use-callback-ref": "^1.0.0",
|
|
25
|
-
"@uiw/react-codemirror": "4.
|
|
25
|
+
"@uiw/react-codemirror": "^4.19.7",
|
|
26
26
|
"compute-scroll-into-view": "^1.0.17",
|
|
27
27
|
"prop-types": "^15.7.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@juggle/resize-observer": "^3.4.0",
|
|
31
31
|
"@playwright/test": "1.27.1",
|
|
32
|
-
"@strapi/icons": "^1.6.
|
|
32
|
+
"@strapi/icons": "^1.6.4",
|
|
33
33
|
"@swc/core": "^1.3.11",
|
|
34
34
|
"@swc/jest": "^0.2.23",
|
|
35
35
|
"@testing-library/jest-dom": "5.16.5",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@types/jest": "^29.2.6",
|
|
38
38
|
"@types/react": "17.0.2",
|
|
39
39
|
"@types/react-dom": "17.0.2",
|
|
40
|
+
"@types/react-router-dom": "^5.3.3",
|
|
40
41
|
"@types/styled-components": "^5.1.26",
|
|
41
42
|
"axe-playwright": "^1.1.11",
|
|
42
43
|
"cross-env": "^7.0.3",
|
|
@@ -61,6 +62,8 @@
|
|
|
61
62
|
"build": "yarn build:prod",
|
|
62
63
|
"build:prod": "vite build",
|
|
63
64
|
"generate:types": "tsc --noEmit false --emitDeclarationOnly --declarationDir dist",
|
|
65
|
+
"lint": "eslint . --ext .js,.jsx,.tsx,.ts",
|
|
66
|
+
"format": "yarn lint --fix",
|
|
64
67
|
"test": "jest -c jest.config.js",
|
|
65
68
|
"test:ts": "tsc --noEmit",
|
|
66
69
|
"test:watch": "jest -c jest.config.js --watchAll",
|
|
@@ -73,5 +76,5 @@
|
|
|
73
76
|
"@types/react": "17.0.2",
|
|
74
77
|
"@types/react-dom": "17.0.2"
|
|
75
78
|
},
|
|
76
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "6c4710e399055cb8831c50d3b4a02bfbcc57aa04"
|
|
77
80
|
}
|