@strapi/design-system 1.4.1 → 1.5.0-alpha.0
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/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +17 -37
- package/dist/Accordion/AccordionToggle.cjs +6 -6
- package/dist/Accordion/AccordionToggle.js +75 -96
- package/dist/Alert/Alert.cjs +12 -12
- package/dist/Alert/Alert.js +83 -102
- package/dist/Alert/utils.cjs +1 -1
- package/dist/Alert/utils.js +3 -3
- package/dist/Avatar/Avatar.cjs +4 -4
- package/dist/Avatar/Avatar.js +41 -35
- package/dist/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.js +29 -49
- package/dist/BaseButton/BaseButton.cjs +3 -3
- package/dist/BaseButton/BaseButton.js +20 -42
- package/dist/BaseCheckbox/BaseCheckbox.cjs +6 -6
- package/dist/BaseCheckbox/BaseCheckbox.js +35 -55
- package/dist/BaseLink/BaseLink.cjs +2 -2
- package/dist/BaseLink/BaseLink.js +21 -43
- package/dist/BaseRadio/BaseRadio.cjs +8 -8
- package/dist/BaseRadio/BaseRadio.js +31 -51
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +24 -44
- package/dist/Box/BoxProps.cjs +1 -1
- package/dist/Box/BoxProps.js +10 -19
- package/dist/Breadcrumbs/Breadcrumbs.cjs +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.js +29 -50
- package/dist/Button/Button.cjs +14 -14
- package/dist/Button/Button.js +53 -73
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +17 -37
- package/dist/Card/CardAsset.cjs +4 -4
- package/dist/Card/CardAsset.js +19 -42
- package/dist/Card/CardBadge.cjs +3 -3
- package/dist/Card/CardBadge.js +9 -18
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +8 -19
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +12 -22
- package/dist/Card/CardContent.cjs +2 -2
- package/dist/Card/CardContent.js +11 -32
- package/dist/Card/CardHeader.cjs +2 -2
- package/dist/Card/CardHeader.js +9 -19
- package/dist/Card/CardTimer.cjs +2 -2
- package/dist/Card/CardTimer.js +20 -42
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +16 -27
- package/dist/CarouselInput/Carousel.cjs +6 -6
- package/dist/CarouselInput/Carousel.js +77 -107
- package/dist/CarouselInput/CarouselActions.cjs +1 -1
- package/dist/CarouselInput/CarouselActions.js +7 -17
- package/dist/CarouselInput/CarouselImage.cjs +3 -3
- package/dist/CarouselInput/CarouselImage.js +26 -38
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +49 -83
- package/dist/CarouselInput/CarouselSlide.cjs +2 -2
- package/dist/CarouselInput/CarouselSlide.js +20 -42
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +44 -63
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +196 -246
- package/dist/Combobox/ComboboxOption.cjs +1 -1
- package/dist/Combobox/ComboboxOption.js +25 -47
- package/dist/Combobox/utils.cjs +1 -1
- package/dist/Combobox/utils.js +21 -21
- package/dist/DatePicker/DatePicker.cjs +1 -1
- package/dist/DatePicker/DatePicker.js +87 -109
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
- package/dist/DatePicker/DatePickerCalendar.js +1 -1
- package/dist/DatePicker/DatePickerTd.cjs +4 -4
- package/dist/DatePicker/DatePickerTd.js +23 -42
- package/dist/DatePicker/DatePickerTh.cjs +3 -3
- package/dist/DatePicker/DatePickerTh.js +23 -44
- package/dist/DatePicker/utils/getYears.cjs +1 -1
- package/dist/DatePicker/utils/getYears.js +6 -7
- package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.js +92 -126
- package/dist/DateTimePicker/DateTimePickerProps.cjs +1 -1
- package/dist/DateTimePicker/DateTimePickerProps.js +10 -19
- package/dist/Dialog/Dialog.cjs +5 -5
- package/dist/Dialog/Dialog.js +39 -58
- package/dist/Divider/Divider.cjs +4 -2
- package/dist/Divider/Divider.js +17 -38
- package/dist/Field/Field.cjs +1 -1
- package/dist/Field/Field.js +20 -39
- package/dist/Field/FieldAction.cjs +2 -2
- package/dist/Field/FieldAction.js +13 -35
- package/dist/Field/FieldInput.cjs +6 -6
- package/dist/Field/FieldInput.js +47 -67
- package/dist/Field/FieldLabel.cjs +3 -3
- package/dist/Field/FieldLabel.js +26 -46
- package/dist/Flex/FlexProps.cjs +1 -1
- package/dist/Flex/FlexProps.js +10 -19
- package/dist/FocusTrap/FocusTrap.cjs +1 -1
- package/dist/FocusTrap/FocusTrap.js +32 -52
- package/dist/Grid/Grid.cjs +3 -3
- package/dist/Grid/Grid.js +20 -42
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +22 -41
- package/dist/Icon/Icon.cjs +2 -2
- package/dist/Icon/Icon.js +17 -27
- package/dist/IconButton/IconButton.cjs +4 -4
- package/dist/IconButton/IconButton.js +44 -64
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
- package/dist/KeyboardNavigable/KeyboardNavigable.js +38 -58
- package/dist/Layout/HeaderLayout.cjs +2 -2
- package/dist/Layout/HeaderLayout.js +78 -96
- package/dist/Link/Link.cjs +6 -6
- package/dist/Link/Link.js +34 -54
- package/dist/LinkButton/LinkButton.cjs +10 -10
- package/dist/LinkButton/LinkButton.js +47 -69
- package/dist/Loader/Loader.cjs +4 -4
- package/dist/Loader/Loader.js +25 -47
- package/dist/Main/Main.cjs +2 -2
- package/dist/Main/Main.js +15 -35
- package/dist/MainNav/MainNav.cjs +2 -2
- package/dist/MainNav/MainNav.js +19 -40
- package/dist/MainNav/NavCondense.cjs +3 -3
- package/dist/MainNav/NavCondense.js +20 -40
- package/dist/MainNav/NavFooter.cjs +3 -0
- package/dist/MainNav/NavFooter.js +14 -0
- package/dist/MainNav/NavLink.cjs +13 -13
- package/dist/MainNav/NavLink.js +57 -76
- package/dist/MainNav/NavSection.cjs +1 -1
- package/dist/MainNav/NavSection.js +46 -67
- package/dist/MainNav/NavSections.cjs +4 -1
- package/dist/MainNav/NavSections.js +23 -40
- package/dist/MainNav/NavUser.cjs +2 -6
- package/dist/MainNav/NavUser.js +31 -55
- package/dist/MainNav/index.cjs +1 -1
- package/dist/MainNav/index.js +14 -12
- package/dist/ModalLayout/ModalBody.cjs +2 -2
- package/dist/ModalLayout/ModalBody.js +9 -19
- package/dist/ModalLayout/ModalLayout.cjs +3 -3
- package/dist/ModalLayout/ModalLayout.js +30 -52
- package/dist/NumberInput/NumberInput.cjs +6 -6
- package/dist/NumberInput/NumberInput.js +123 -157
- package/dist/Pagination/components.cjs +7 -7
- package/dist/Pagination/components.js +65 -88
- package/dist/Popover/Popover.cjs +3 -3
- package/dist/Popover/Popover.js +65 -91
- package/dist/Portal/Portal.cjs +1 -1
- package/dist/Portal/Portal.js +11 -12
- package/dist/ProgressBar/ProgressBar.cjs +2 -2
- package/dist/ProgressBar/ProgressBar.js +27 -49
- package/dist/Radio/Radio.cjs +2 -2
- package/dist/Radio/Radio.js +19 -40
- package/dist/RawTable/RawCell.cjs +1 -1
- package/dist/RawTable/RawCell.js +69 -89
- package/dist/RawTable/RawTable.cjs +1 -1
- package/dist/RawTable/RawTable.js +46 -66
- package/dist/RawTable/RawTbody.cjs +1 -1
- package/dist/RawTable/RawTbody.js +11 -30
- package/dist/RawTable/RawThead.cjs +1 -1
- package/dist/RawTable/RawThead.js +10 -29
- package/dist/RawTable/RawTr.cjs +1 -1
- package/dist/RawTable/RawTr.js +14 -34
- package/dist/Searchbar/SearchForm.cjs +1 -1
- package/dist/Searchbar/SearchForm.js +5 -16
- package/dist/Searchbar/Searchbar.cjs +7 -7
- package/dist/Searchbar/Searchbar.js +45 -65
- package/dist/Select/MultiSelectNested.cjs +1 -1
- package/dist/Select/MultiSelectNested.js +23 -45
- package/dist/Select/OptGroup.cjs +1 -1
- package/dist/Select/OptGroup.js +15 -35
- package/dist/Select/Option.cjs +7 -7
- package/dist/Select/Option.js +37 -57
- package/dist/Select/Select.cjs +2 -2
- package/dist/Select/Select.js +145 -186
- package/dist/Select/SelectButton.cjs +2 -2
- package/dist/Select/SelectButton.js +33 -53
- package/dist/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/SimpleMenu/SimpleMenu.js +137 -163
- package/dist/Stack/Stack.cjs +3 -3
- package/dist/Stack/Stack.js +29 -50
- package/dist/Status/Status.cjs +4 -4
- package/dist/Status/Status.js +30 -50
- package/dist/SubNav/SubNav.cjs +3 -3
- package/dist/SubNav/SubNav.js +15 -37
- package/dist/SubNav/SubNavHeader.cjs +2 -2
- package/dist/SubNav/SubNavHeader.js +38 -39
- package/dist/SubNav/SubNavLink.cjs +6 -6
- package/dist/SubNav/SubNavLink.js +39 -61
- package/dist/SubNav/SubNavSections.cjs +1 -1
- package/dist/SubNav/SubNavSections.js +17 -39
- package/dist/Switch/Switch.cjs +5 -5
- package/dist/Switch/Switch.js +35 -57
- package/dist/Table/Cell.cjs +3 -3
- package/dist/Table/Cell.js +20 -40
- package/dist/Table/TFooter.cjs +3 -3
- package/dist/Table/TFooter.js +28 -50
- package/dist/Table/Table.cjs +5 -5
- package/dist/Table/Table.js +35 -55
- package/dist/Table/Tbody.cjs +2 -2
- package/dist/Table/Tbody.js +8 -17
- package/dist/Table/Thead.cjs +2 -2
- package/dist/Table/Thead.js +8 -17
- package/dist/Table/Tr.cjs +2 -2
- package/dist/Table/Tr.js +8 -17
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +26 -45
- package/dist/Tabs/TabPanels.cjs +1 -1
- package/dist/Tabs/TabPanels.js +24 -43
- package/dist/Tabs/Tabs.cjs +2 -2
- package/dist/Tabs/Tabs.js +94 -112
- package/dist/Tag/Tag.cjs +4 -4
- package/dist/Tag/Tag.js +27 -50
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +39 -59
- package/dist/TextInput/TextInput.cjs +1 -1
- package/dist/TextInput/TextInput.js +49 -69
- package/dist/Textarea/Textarea.cjs +3 -3
- package/dist/Textarea/Textarea.js +43 -63
- package/dist/Textarea/TextareaInput.cjs +4 -4
- package/dist/Textarea/TextareaInput.js +30 -50
- package/dist/TimePicker/TimePicker.cjs +3 -3
- package/dist/TimePicker/TimePicker.js +62 -95
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +8 -8
- package/dist/ToggleCheckbox/ToggleCheckbox.js +56 -78
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +65 -97
- package/dist/Tooltip/Tooltip.cjs +2 -2
- package/dist/Tooltip/Tooltip.js +38 -57
- package/dist/Typography/TypographyProps.cjs +1 -1
- package/dist/Typography/TypographyProps.js +13 -22
- package/dist/helpers/getDefaultLocale.cjs +1 -1
- package/dist/helpers/getDefaultLocale.js +1 -1
- package/dist/helpers/handleResponsiveValues.cjs +5 -5
- package/dist/helpers/handleResponsiveValues.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.js +150 -148
- package/dist/themes/darkTheme/index.cjs +1 -1
- package/dist/themes/darkTheme/index.js +8 -18
- package/dist/themes/extendTheme.cjs +4 -4
- package/dist/themes/extendTheme.js +18 -29
- package/dist/themes/lightTheme/index.cjs +1 -1
- package/dist/themes/lightTheme/index.js +8 -18
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +23 -43
- package/dist/v2/Breadcrumbs/Crumb.cjs +1 -1
- package/dist/v2/Breadcrumbs/Crumb.js +22 -44
- package/dist/v2/Breadcrumbs/CrumbLink.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbLink.js +14 -35
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +19 -41
- package/dist/v2/Link/Link.cjs +5 -5
- package/dist/v2/Link/Link.js +42 -64
- package/dist/v2/LinkButton/LinkButton.cjs +10 -10
- package/dist/v2/LinkButton/LinkButton.js +51 -75
- package/dist/v2/MainNav/MainNav.cjs +2 -2
- package/dist/v2/MainNav/MainNav.js +19 -40
- package/dist/v2/MainNav/NavBrand.cjs +3 -3
- package/dist/v2/MainNav/NavBrand.js +57 -78
- package/dist/v2/MainNav/NavCondense.cjs +3 -3
- package/dist/v2/MainNav/NavCondense.js +20 -40
- package/dist/v2/MainNav/NavFooter.cjs +3 -0
- package/dist/v2/MainNav/NavFooter.js +14 -0
- package/dist/v2/MainNav/NavLink.cjs +13 -13
- package/dist/v2/MainNav/NavLink.js +60 -81
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +46 -67
- package/dist/v2/MainNav/NavSections.cjs +4 -1
- package/dist/v2/MainNav/NavSections.js +23 -40
- package/dist/v2/MainNav/NavUser.cjs +2 -6
- package/dist/v2/MainNav/NavUser.js +31 -55
- package/dist/v2/MainNav/index.cjs +1 -1
- package/dist/v2/MainNav/index.js +14 -12
- package/dist/v2/Pagination/components.cjs +7 -7
- package/dist/v2/Pagination/components.js +65 -89
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/v2/SimpleMenu/SimpleMenu.js +131 -156
- package/dist/v2/SubNav/SubNav.cjs +3 -3
- package/dist/v2/SubNav/SubNav.js +15 -37
- package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
- package/dist/v2/SubNav/SubNavHeader.js +38 -39
- package/dist/v2/SubNav/SubNavLink.cjs +6 -6
- package/dist/v2/SubNav/SubNavLink.js +42 -64
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +17 -39
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.js +37 -35
- package/package.json +4 -4
|
@@ -1,48 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
for (var s of C(e))
|
|
18
|
-
r.indexOf(s) < 0 && V.call(e, s) && (t[s] = e[s]);
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
|
-
import i, { useRef as w, useEffect as P, useState as q, Children as Z, cloneElement as ee } from "react";
|
|
22
|
-
import n from "prop-types";
|
|
23
|
-
import h from "styled-components";
|
|
24
|
-
import { NavLink as ne } from "react-router-dom";
|
|
25
|
-
import { useCallbackRef as W } from "@radix-ui/react-use-callback-ref";
|
|
26
|
-
import te from "@strapi/icons/CarretDown";
|
|
27
|
-
import { Typography as S } from "../Typography/Typography.js";
|
|
28
|
-
import { Link as oe } from "../Link/Link.js";
|
|
29
|
-
import { Box as R } from "../Box/Box.js";
|
|
30
|
-
import { Flex as re } from "../Flex/Flex.js";
|
|
31
|
-
import { Button as _ } from "../Button/Button.js";
|
|
32
|
-
import { POPOVER_PLACEMENTS as ie, Popover as se } from "../Popover/Popover.js";
|
|
33
|
-
import { getOptionStyle as M } from "./utils.js";
|
|
34
|
-
import { useId as ae } from "../helpers/useId.js";
|
|
35
|
-
import { KeyboardKeys as c } from "../helpers/keyboardKeys.js";
|
|
36
|
-
const le = h.button`
|
|
1
|
+
import t, { useRef as T, useEffect as v, useState as B, Children as z, cloneElement as j } from "react";
|
|
2
|
+
import e from "prop-types";
|
|
3
|
+
import y from "styled-components";
|
|
4
|
+
import { NavLink as H } from "react-router-dom";
|
|
5
|
+
import { useCallbackRef as K } from "@radix-ui/react-use-callback-ref";
|
|
6
|
+
import U from "@strapi/icons/CarretDown";
|
|
7
|
+
import { Typography as O } from "../Typography/Typography.js";
|
|
8
|
+
import { Link as G } from "../Link/Link.js";
|
|
9
|
+
import { Box as k } from "../Box/Box.js";
|
|
10
|
+
import { Flex as J } from "../Flex/Flex.js";
|
|
11
|
+
import { Button as $ } from "../Button/Button.js";
|
|
12
|
+
import { POPOVER_PLACEMENTS as Q, Popover as X } from "../Popover/Popover.js";
|
|
13
|
+
import { getOptionStyle as b } from "./utils.js";
|
|
14
|
+
import { useId as Y } from "../helpers/useId.js";
|
|
15
|
+
import { KeyboardKeys as i } from "../helpers/keyboardKeys.js";
|
|
16
|
+
const Z = y.button`
|
|
37
17
|
border: none;
|
|
38
18
|
padding: 0;
|
|
39
19
|
background: transparent;
|
|
40
20
|
cursor: pointer;
|
|
41
|
-
${
|
|
42
|
-
`,
|
|
21
|
+
${b}
|
|
22
|
+
`, ee = y(H)`
|
|
43
23
|
text-decoration: none;
|
|
44
|
-
${
|
|
45
|
-
`,
|
|
24
|
+
${b}
|
|
25
|
+
`, ne = y(G)`
|
|
46
26
|
/* Removing Link hover effect */
|
|
47
27
|
&:hover {
|
|
48
28
|
color: currentColor;
|
|
@@ -50,54 +30,57 @@ const le = h.button`
|
|
|
50
30
|
|
|
51
31
|
&:focus-visible {
|
|
52
32
|
/* Removing Link focus-visible after properties and reset to global outline */
|
|
53
|
-
outline: 2px solid ${({ theme:
|
|
33
|
+
outline: 2px solid ${({ theme: o }) => o.colors.primary600};
|
|
54
34
|
outline-offset: 2px;
|
|
55
35
|
&:after {
|
|
56
36
|
content: none;
|
|
57
37
|
}
|
|
58
38
|
}
|
|
59
39
|
|
|
60
|
-
${
|
|
61
|
-
`,
|
|
40
|
+
${b}
|
|
41
|
+
`, te = y.span`
|
|
62
42
|
display: flex;
|
|
63
43
|
align-items: center;
|
|
64
44
|
svg {
|
|
65
45
|
height: 4px;
|
|
66
46
|
width: 6px;
|
|
67
47
|
}
|
|
68
|
-
`,
|
|
69
|
-
padding: ${({ theme:
|
|
70
|
-
`,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
(
|
|
48
|
+
`, oe = y($)`
|
|
49
|
+
padding: ${({ theme: o }) => `${o.spaces[1]} ${o.spaces[3]}`};
|
|
50
|
+
`, L = ({ children: o, onClick: E, to: s, isFocused: a, href: l, ...P }) => {
|
|
51
|
+
const c = T();
|
|
52
|
+
v(() => {
|
|
53
|
+
a && c.current && c.current.focus();
|
|
54
|
+
}, [a]);
|
|
55
|
+
const p = {
|
|
56
|
+
tabIndex: a ? 0 : -1,
|
|
57
|
+
ref: c,
|
|
58
|
+
role: "menuitem",
|
|
59
|
+
...P
|
|
60
|
+
}, u = (g) => {
|
|
61
|
+
(g.key === i.SPACE || g.key === i.ENTER) && E();
|
|
82
62
|
};
|
|
83
|
-
return
|
|
84
|
-
to:
|
|
85
|
-
|
|
63
|
+
return s && !l ? /* @__PURE__ */ t.createElement(ee, {
|
|
64
|
+
to: s,
|
|
65
|
+
...p
|
|
66
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
86
67
|
padding: 2
|
|
87
|
-
}, /* @__PURE__ */
|
|
68
|
+
}, /* @__PURE__ */ t.createElement(O, null, o))) : l && !s ? /* @__PURE__ */ t.createElement(ne, {
|
|
88
69
|
isExternal: !0,
|
|
89
|
-
href:
|
|
90
|
-
|
|
70
|
+
href: l,
|
|
71
|
+
...p
|
|
72
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
91
73
|
padding: 2
|
|
92
|
-
}, /* @__PURE__ */
|
|
93
|
-
onKeyDown:
|
|
94
|
-
onMouseDown:
|
|
95
|
-
type: "button"
|
|
96
|
-
|
|
74
|
+
}, /* @__PURE__ */ t.createElement(O, null, o))) : /* @__PURE__ */ t.createElement(Z, {
|
|
75
|
+
onKeyDown: u,
|
|
76
|
+
onMouseDown: E,
|
|
77
|
+
type: "button",
|
|
78
|
+
...p
|
|
79
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
97
80
|
padding: 2
|
|
98
|
-
}, /* @__PURE__ */
|
|
81
|
+
}, /* @__PURE__ */ t.createElement(O, null, o)));
|
|
99
82
|
};
|
|
100
|
-
|
|
83
|
+
L.defaultProps = {
|
|
101
84
|
as: void 0,
|
|
102
85
|
href: void 0,
|
|
103
86
|
isFocused: !1,
|
|
@@ -105,106 +88,97 @@ z.defaultProps = {
|
|
|
105
88
|
},
|
|
106
89
|
to: void 0
|
|
107
90
|
};
|
|
108
|
-
|
|
109
|
-
as:
|
|
110
|
-
children:
|
|
111
|
-
href:
|
|
112
|
-
isFocused:
|
|
113
|
-
onClick:
|
|
114
|
-
to:
|
|
91
|
+
L.propTypes = {
|
|
92
|
+
as: e.elementType,
|
|
93
|
+
children: e.node.isRequired,
|
|
94
|
+
href: e.string,
|
|
95
|
+
isFocused: e.bool,
|
|
96
|
+
onClick: e.func,
|
|
97
|
+
to: e.string
|
|
115
98
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"onClose",
|
|
136
|
-
"size",
|
|
137
|
-
"popoverPlacement",
|
|
138
|
-
"onReachEnd"
|
|
139
|
-
]);
|
|
140
|
-
const d = w(), I = ae("simplemenu", t), y = w(!1), [E, g] = q(!1), [O, T] = q(0), k = Z.toArray(r), j = s || (B === "S" ? me : _), $ = !!l && typeof l == "function";
|
|
141
|
-
P(() => {
|
|
142
|
-
if (["string", "number"].includes(typeof e)) {
|
|
143
|
-
const o = k.findIndex((a) => a.props.children === e);
|
|
144
|
-
o !== -1 && T(o);
|
|
99
|
+
const C = ({
|
|
100
|
+
label: o,
|
|
101
|
+
children: E,
|
|
102
|
+
id: s,
|
|
103
|
+
as: a,
|
|
104
|
+
onOpen: l = () => {
|
|
105
|
+
},
|
|
106
|
+
onClose: P = () => {
|
|
107
|
+
},
|
|
108
|
+
size: c,
|
|
109
|
+
popoverPlacement: p,
|
|
110
|
+
onReachEnd: u,
|
|
111
|
+
...g
|
|
112
|
+
}) => {
|
|
113
|
+
const m = T(), R = Y("simplemenu", s), x = T(!1), [d, f] = B(!1), [D, I] = B(0), h = z.toArray(E), A = a || (c === "S" ? oe : $), S = !!u && typeof u == "function";
|
|
114
|
+
v(() => {
|
|
115
|
+
if (["string", "number"].includes(typeof o)) {
|
|
116
|
+
const n = h.findIndex((r) => r.props.children === o);
|
|
117
|
+
n !== -1 && I(n);
|
|
145
118
|
}
|
|
146
|
-
}, [
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}, [
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
const
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
(
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
},
|
|
119
|
+
}, [o]);
|
|
120
|
+
const w = K(l), M = K(P);
|
|
121
|
+
v(() => {
|
|
122
|
+
x?.current ? d ? w() : M() : x.current = !0;
|
|
123
|
+
}, [x, M, w, d]), v(() => {
|
|
124
|
+
t.isValidElement(o) && D === -1 && m.current.focus();
|
|
125
|
+
}, [o, D]);
|
|
126
|
+
const N = (n) => {
|
|
127
|
+
d && (n.key === i.ESCAPE && (n.stopPropagation(), f(!1), m.current.focus()), n.key === i.DOWN && I((r) => r === h.length - 1 ? 0 : r + 1), n.key === i.UP && I((r) => r === 0 ? h.length - 1 : r - 1));
|
|
128
|
+
}, F = (n) => {
|
|
129
|
+
(n.key === i.ENTER || n.key === i.SPACE) && f((r) => !r);
|
|
130
|
+
}, V = (n) => {
|
|
131
|
+
n.preventDefault(), n.currentTarget.contains(n.relatedTarget) || f(!1);
|
|
132
|
+
}, q = (n) => {
|
|
133
|
+
n.preventDefault(), f((r) => !r);
|
|
134
|
+
}, W = () => {
|
|
135
|
+
S && u();
|
|
136
|
+
}, _ = h.map((n, r) => /* @__PURE__ */ t.createElement(J, {
|
|
164
137
|
as: "li",
|
|
165
|
-
key:
|
|
138
|
+
key: r,
|
|
166
139
|
justifyContent: "center",
|
|
167
140
|
role: "menuitem"
|
|
168
|
-
},
|
|
141
|
+
}, j(n, {
|
|
169
142
|
onClick() {
|
|
170
|
-
|
|
143
|
+
n.props.onClick(), f(!1), m.current.focus();
|
|
171
144
|
},
|
|
172
|
-
isFocused:
|
|
145
|
+
isFocused: D === r
|
|
173
146
|
})));
|
|
174
|
-
return /* @__PURE__ */
|
|
175
|
-
onKeyDown:
|
|
176
|
-
}, /* @__PURE__ */
|
|
177
|
-
label:
|
|
147
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
148
|
+
onKeyDown: N
|
|
149
|
+
}, /* @__PURE__ */ t.createElement(A, {
|
|
150
|
+
label: t.isValidElement(o) ? null : o,
|
|
178
151
|
"aria-haspopup": !0,
|
|
179
|
-
"aria-expanded":
|
|
180
|
-
"aria-controls":
|
|
181
|
-
onKeyDown:
|
|
182
|
-
onMouseDown:
|
|
183
|
-
ref:
|
|
152
|
+
"aria-expanded": d,
|
|
153
|
+
"aria-controls": R,
|
|
154
|
+
onKeyDown: F,
|
|
155
|
+
onMouseDown: q,
|
|
156
|
+
ref: m,
|
|
184
157
|
type: "button",
|
|
185
158
|
variant: "ghost",
|
|
186
|
-
endIcon: /* @__PURE__ */
|
|
159
|
+
endIcon: /* @__PURE__ */ t.createElement(te, null, /* @__PURE__ */ t.createElement(U, {
|
|
187
160
|
"aria-hidden": !0
|
|
188
|
-
}))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
161
|
+
})),
|
|
162
|
+
...g
|
|
163
|
+
}, o), d && /* @__PURE__ */ t.createElement(X, {
|
|
164
|
+
onBlur: V,
|
|
165
|
+
placement: p,
|
|
166
|
+
source: m,
|
|
167
|
+
onReachEnd: W,
|
|
168
|
+
intersectionId: S ? `popover-${R}` : void 0,
|
|
195
169
|
spacing: 4
|
|
196
|
-
}, /* @__PURE__ */
|
|
170
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
197
171
|
role: "menu",
|
|
198
172
|
as: "ul",
|
|
199
173
|
padding: 1,
|
|
200
|
-
id:
|
|
201
|
-
},
|
|
174
|
+
id: R
|
|
175
|
+
}, _)));
|
|
202
176
|
};
|
|
203
|
-
|
|
177
|
+
C.defaultProps = {
|
|
204
178
|
as: void 0
|
|
205
179
|
};
|
|
206
|
-
|
|
207
|
-
|
|
180
|
+
C.displayName = "SimpleMenu";
|
|
181
|
+
C.defaultProps = {
|
|
208
182
|
id: void 0,
|
|
209
183
|
onOpen: void 0,
|
|
210
184
|
onClose: void 0,
|
|
@@ -212,18 +186,18 @@ x.defaultProps = {
|
|
|
212
186
|
popoverPlacement: "bottom-start",
|
|
213
187
|
size: "M"
|
|
214
188
|
};
|
|
215
|
-
|
|
216
|
-
as:
|
|
217
|
-
children:
|
|
218
|
-
id:
|
|
219
|
-
label:
|
|
220
|
-
onClose:
|
|
221
|
-
onOpen:
|
|
222
|
-
onReachEnd:
|
|
223
|
-
popoverPlacement:
|
|
224
|
-
size:
|
|
189
|
+
C.propTypes = {
|
|
190
|
+
as: e.any,
|
|
191
|
+
children: e.oneOfType([e.arrayOf(e.node), e.node]).isRequired,
|
|
192
|
+
id: e.string,
|
|
193
|
+
label: e.oneOfType([e.string, e.number, e.element]).isRequired,
|
|
194
|
+
onClose: e.func,
|
|
195
|
+
onOpen: e.func,
|
|
196
|
+
onReachEnd: e.func,
|
|
197
|
+
popoverPlacement: e.oneOf(Q),
|
|
198
|
+
size: e.oneOf(["S", "M"])
|
|
225
199
|
};
|
|
226
200
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
201
|
+
L as MenuItem,
|
|
202
|
+
C as SimpleMenu
|
|
229
203
|
};
|
package/dist/Stack/Stack.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),f=require("prop-types"),g=require("styled-components"),d=require("../Flex/Flex.cjs"),r=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=r(c),n=r(f),u=r(g),p={size:!0},m=u.default(d.Flex).withConfig({shouldForwardProp:(e,t)=>!p[e]&&t(e)})`
|
|
2
2
|
& > * {
|
|
3
3
|
margin-top: 0;
|
|
4
4
|
margin-bottom: 0;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
& > * + * {
|
|
8
8
|
margin-top: ${({theme:e,spacing:t})=>e.spaces[t]};
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,y=u.default(d.Flex).withConfig({shouldForwardProp:(e,t)=>!p[e]&&t(e)})`
|
|
11
11
|
& > * {
|
|
12
12
|
margin-left: 0;
|
|
13
13
|
margin-right: 0;
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
& > * + * {
|
|
17
17
|
margin-left: ${({theme:e,spacing:t})=>e.spaces[t]};
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,a=c.forwardRef(({horizontal:e,spacing:t,size:o,...s},i)=>(o&&console.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),e?l.default.createElement(y,{ref:i,spacing:t||o,...s}):l.default.createElement(m,{direction:"column",alignItems:"stretch",ref:i,spacing:t||o,...s})));a.displayName="Stack";a.defaultProps={horizontal:!1,size:void 0,spacing:void 0};a.propTypes={horizontal:n.default.bool,size:n.default.number,spacing:n.default.number};exports.Stack=a;
|
package/dist/Stack/Stack.js
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
p.call(t, o) && l(e, o, t[o]);
|
|
7
|
-
if (a)
|
|
8
|
-
for (var o of a(t))
|
|
9
|
-
d.call(t, o) && l(e, o, t[o]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var g = (e, t) => {
|
|
13
|
-
var o = {};
|
|
14
|
-
for (var r in e)
|
|
15
|
-
p.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
|
|
16
|
-
if (e != null && a)
|
|
17
|
-
for (var r of a(e))
|
|
18
|
-
t.indexOf(r) < 0 && d.call(e, r) && (o[r] = e[r]);
|
|
19
|
-
return o;
|
|
20
|
-
};
|
|
21
|
-
import f, { forwardRef as b } from "react";
|
|
22
|
-
import n from "prop-types";
|
|
23
|
-
import u from "styled-components";
|
|
24
|
-
import { Flex as h } from "../Flex/Flex.js";
|
|
25
|
-
const w = {
|
|
1
|
+
import s, { forwardRef as p } from "react";
|
|
2
|
+
import r from "prop-types";
|
|
3
|
+
import c from "styled-components";
|
|
4
|
+
import { Flex as m } from "../Flex/Flex.js";
|
|
5
|
+
const l = {
|
|
26
6
|
size: !0
|
|
27
|
-
},
|
|
28
|
-
shouldForwardProp: (e, t) => !
|
|
7
|
+
}, d = c(m).withConfig({
|
|
8
|
+
shouldForwardProp: (e, t) => !l[e] && t(e)
|
|
29
9
|
})`
|
|
30
10
|
& > * {
|
|
31
11
|
margin-top: 0;
|
|
@@ -35,8 +15,8 @@ const w = {
|
|
|
35
15
|
& > * + * {
|
|
36
16
|
margin-top: ${({ theme: e, spacing: t }) => e.spaces[t]};
|
|
37
17
|
}
|
|
38
|
-
`,
|
|
39
|
-
shouldForwardProp: (e, t) => !
|
|
18
|
+
`, g = c(m).withConfig({
|
|
19
|
+
shouldForwardProp: (e, t) => !l[e] && t(e)
|
|
40
20
|
})`
|
|
41
21
|
& > * {
|
|
42
22
|
margin-left: 0;
|
|
@@ -46,31 +26,30 @@ const w = {
|
|
|
46
26
|
& > * + * {
|
|
47
27
|
margin-left: ${({ theme: e, spacing: t }) => e.spaces[t]};
|
|
48
28
|
}
|
|
49
|
-
`,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
s.defaultProps = {
|
|
29
|
+
`, a = p(({ horizontal: e, spacing: t, size: o, ...i }, n) => (o && console.warn(
|
|
30
|
+
'Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'
|
|
31
|
+
), e ? /* @__PURE__ */ s.createElement(g, {
|
|
32
|
+
ref: n,
|
|
33
|
+
spacing: t || o,
|
|
34
|
+
...i
|
|
35
|
+
}) : /* @__PURE__ */ s.createElement(d, {
|
|
36
|
+
direction: "column",
|
|
37
|
+
alignItems: "stretch",
|
|
38
|
+
ref: n,
|
|
39
|
+
spacing: t || o,
|
|
40
|
+
...i
|
|
41
|
+
})));
|
|
42
|
+
a.displayName = "Stack";
|
|
43
|
+
a.defaultProps = {
|
|
65
44
|
horizontal: !1,
|
|
66
45
|
size: void 0,
|
|
67
46
|
spacing: void 0
|
|
68
47
|
};
|
|
69
|
-
|
|
70
|
-
horizontal:
|
|
71
|
-
size:
|
|
72
|
-
spacing:
|
|
48
|
+
a.propTypes = {
|
|
49
|
+
horizontal: r.bool,
|
|
50
|
+
size: r.number,
|
|
51
|
+
spacing: r.number
|
|
73
52
|
};
|
|
74
53
|
export {
|
|
75
|
-
|
|
54
|
+
a as Stack
|
|
76
55
|
};
|
package/dist/Status/Status.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("react"),b=require("prop-types"),m=require("styled-components"),$=require("../Box/Box.cjs"),x=require("../Flex/Flex.cjs"),T=require("../Typography/Typography.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},r=a(h),o=a(b),c=a(m),_=c.default.div`
|
|
2
2
|
margin-right: ${({theme:e})=>e.spaces[3]};
|
|
3
3
|
width: ${6/16}rem;
|
|
4
4
|
height: ${6/16}rem;
|
|
5
5
|
border-radius: 50%;
|
|
6
6
|
background: ${({theme:e,backgroundColor:t})=>e.colors[t]};
|
|
7
|
-
`,
|
|
8
|
-
${
|
|
7
|
+
`,B=c.default($.Box)`
|
|
8
|
+
${T.Typography} {
|
|
9
9
|
color: ${({theme:e,textColor:t})=>e.colors[t]};
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,s=({variant:e,showBullet:t,size:l,children:n,...p})=>{const i=`${e}100`,g=`${e}200`,f=`${e}600`,y=`${e}600`,u=l==="S"?2:5,d=l==="S"?1:4;return r.default.createElement(B,{borderColor:g,textColor:y,background:i,hasRadius:!0,paddingTop:d,paddingBottom:d,paddingLeft:u,paddingRight:u,...p},t?r.default.createElement(x.Flex,null,r.default.createElement(_,{backgroundColor:f}),n):n)};s.defaultProps={showBullet:!0,size:"M",variant:"primary"};s.propTypes={children:o.default.node.isRequired,showBullet:o.default.bool,size:o.default.oneOf(["S","M"]),variant:o.default.oneOf(["alternative","danger","neutral","primary","secondary","success","warning"])};exports.Status=s;
|
package/dist/Status/Status.js
CHANGED
|
@@ -1,66 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var e of n(r))
|
|
9
|
-
m.call(r, e) && i(o, e, r[e]);
|
|
10
|
-
return o;
|
|
11
|
-
};
|
|
12
|
-
var g = (o, r) => {
|
|
13
|
-
var e = {};
|
|
14
|
-
for (var t in o)
|
|
15
|
-
c.call(o, t) && r.indexOf(t) < 0 && (e[t] = o[t]);
|
|
16
|
-
if (o != null && n)
|
|
17
|
-
for (var t of n(o))
|
|
18
|
-
r.indexOf(t) < 0 && m.call(o, t) && (e[t] = o[t]);
|
|
19
|
-
return e;
|
|
20
|
-
};
|
|
21
|
-
import s from "react";
|
|
22
|
-
import a from "prop-types";
|
|
23
|
-
import f from "styled-components";
|
|
24
|
-
import { Box as k } from "../Box/Box.js";
|
|
25
|
-
import { Flex as w } from "../Flex/Flex.js";
|
|
26
|
-
import { Typography as x } from "../Typography/Typography.js";
|
|
27
|
-
const R = f.div`
|
|
1
|
+
import t from "react";
|
|
2
|
+
import e from "prop-types";
|
|
3
|
+
import l from "styled-components";
|
|
4
|
+
import { Box as f } from "../Box/Box.js";
|
|
5
|
+
import { Flex as $ } from "../Flex/Flex.js";
|
|
6
|
+
import { Typography as h } from "../Typography/Typography.js";
|
|
7
|
+
const b = l.div`
|
|
28
8
|
margin-right: ${({ theme: o }) => o.spaces[3]};
|
|
29
9
|
width: ${6 / 16}rem;
|
|
30
10
|
height: ${6 / 16}rem;
|
|
31
11
|
border-radius: 50%;
|
|
32
12
|
background: ${({ theme: o, backgroundColor: r }) => o.colors[r]};
|
|
33
|
-
`,
|
|
34
|
-
${
|
|
13
|
+
`, y = l(f)`
|
|
14
|
+
${h} {
|
|
35
15
|
color: ${({ theme: o, textColor: r }) => o.colors[r]};
|
|
36
16
|
}
|
|
37
|
-
`,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
background: b,
|
|
17
|
+
`, p = ({ variant: o, showBullet: r, size: n, children: a, ...i }) => {
|
|
18
|
+
const c = `${o}100`, m = `${o}200`, u = `${o}600`, g = `${o}600`, s = n === "S" ? 2 : 5, d = n === "S" ? 1 : 4;
|
|
19
|
+
return /* @__PURE__ */ t.createElement(y, {
|
|
20
|
+
borderColor: m,
|
|
21
|
+
textColor: g,
|
|
22
|
+
background: c,
|
|
44
23
|
hasRadius: !0,
|
|
45
|
-
paddingTop:
|
|
46
|
-
paddingBottom:
|
|
47
|
-
paddingLeft:
|
|
48
|
-
paddingRight:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
paddingTop: d,
|
|
25
|
+
paddingBottom: d,
|
|
26
|
+
paddingLeft: s,
|
|
27
|
+
paddingRight: s,
|
|
28
|
+
...i
|
|
29
|
+
}, r ? /* @__PURE__ */ t.createElement($, null, /* @__PURE__ */ t.createElement(b, {
|
|
30
|
+
backgroundColor: u
|
|
31
|
+
}), a) : a);
|
|
52
32
|
};
|
|
53
|
-
|
|
33
|
+
p.defaultProps = {
|
|
54
34
|
showBullet: !0,
|
|
55
35
|
size: "M",
|
|
56
36
|
variant: "primary"
|
|
57
37
|
};
|
|
58
|
-
|
|
59
|
-
children:
|
|
60
|
-
showBullet:
|
|
61
|
-
size:
|
|
62
|
-
variant:
|
|
38
|
+
p.propTypes = {
|
|
39
|
+
children: e.node.isRequired,
|
|
40
|
+
showBullet: e.bool,
|
|
41
|
+
size: e.oneOf(["S", "M"]),
|
|
42
|
+
variant: e.oneOf(["alternative", "danger", "neutral", "primary", "secondary", "success", "warning"])
|
|
63
43
|
};
|
|
64
44
|
export {
|
|
65
|
-
|
|
45
|
+
p as Status
|
|
66
46
|
};
|
package/dist/SubNav/SubNav.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
width: ${
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react"),i=require("styled-components"),u=require("prop-types"),d=require("../Grid/Grid.cjs");require("../Grid/GridItem.cjs");const t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=t(s),c=t(i),n=t(u),r=`${232/16}rem`,p=c.default(d.Grid)`
|
|
2
|
+
width: ${r};
|
|
3
3
|
background: ${({theme:e})=>e.colors.neutral100};
|
|
4
4
|
position: sticky;
|
|
5
5
|
top: 0;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
overflow-y: auto;
|
|
8
8
|
border-right: 1px solid ${({theme:e})=>e.colors.neutral200};
|
|
9
9
|
z-index: 1;
|
|
10
|
-
`,
|
|
10
|
+
`,o=({ariaLabel:e,...a})=>l.default.createElement(p,{"aria-label":e,as:"nav",...a});o.propTypes={ariaLabel:n.default.string.isRequired};exports.SubNav=o;exports.subNavWidth=r;
|