@strapi/design-system 1.6.3 → 1.6.5
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 +6 -6
- package/dist/Accordion/AccordionToggle.js +50 -53
- 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 +3 -3
- package/dist/Box/Box.js +27 -27
- 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.cjs +1 -1
- package/dist/CarouselInput/CarouselActions.js +16 -12
- package/dist/CarouselInput/CarouselImage.js +1 -10
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +23 -28
- package/dist/CarouselInput/CarouselSlide.js +13 -9
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +15 -34
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +144 -159
- 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 +30 -62
- package/dist/DatePicker/DatePickerTd.cjs +3 -3
- package/dist/DatePicker/DatePickerTd.js +8 -20
- package/dist/DatePicker/DatePickerTh.cjs +3 -3
- package/dist/DatePicker/DatePickerTh.js +10 -20
- 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 +70 -67
- package/dist/DateTimePicker/DateTimePickerProps.js +1 -3
- package/dist/Dialog/Dialog.cjs +5 -5
- 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 +3 -3
- package/dist/Dialog/DialogFooter.js +3 -8
- 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 +31 -28
- package/dist/Field/FieldAction.cjs +2 -8
- package/dist/Field/FieldAction.js +26 -19
- package/dist/Field/FieldContext.cjs +1 -1
- package/dist/Field/FieldContext.js +2 -2
- package/dist/Field/FieldError.cjs +1 -1
- package/dist/Field/FieldError.js +11 -7
- package/dist/Field/FieldHint.cjs +1 -1
- package/dist/Field/FieldHint.js +15 -10
- package/dist/Field/FieldInput.cjs +14 -16
- package/dist/Field/FieldInput.js +105 -81
- package/dist/Field/FieldLabel.cjs +3 -3
- package/dist/Field/FieldLabel.js +43 -38
- package/dist/FocusTrap/FocusTrap.cjs +1 -1
- package/dist/FocusTrap/FocusTrap.js +33 -41
- 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 +88 -79
- 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 +2 -2
- package/dist/Layout/HeaderLayout.js +37 -66
- 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 +31 -44
- package/dist/MainNav/NavSections.cjs +2 -2
- package/dist/MainNav/NavSections.js +20 -21
- 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 +75 -80
- 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 +1 -1
- 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 +57 -72
- package/dist/RawTable/RawTable.cjs +1 -1
- package/dist/RawTable/RawTable.js +45 -42
- package/dist/RawTable/RawTbody.cjs +1 -1
- package/dist/RawTable/RawTbody.js +14 -13
- package/dist/RawTable/RawThead.cjs +1 -1
- package/dist/RawTable/RawThead.js +13 -10
- package/dist/RawTable/RawTr.cjs +1 -1
- package/dist/RawTable/RawTr.js +19 -15
- package/dist/Searchbar/SearchForm.js +1 -4
- package/dist/Searchbar/Searchbar.cjs +3 -3
- package/dist/Searchbar/Searchbar.js +25 -28
- 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 +98 -119
- 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 +24 -18
- package/dist/Select/SelectTags.cjs +3 -3
- package/dist/Select/SelectTags.js +17 -15
- 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 +3 -3
- package/dist/SubNav/SubNavLinkSection.js +5 -30
- package/dist/SubNav/SubNavSection.cjs +2 -2
- package/dist/SubNav/SubNavSection.js +27 -34
- 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 +17 -16
- 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 +8 -8
- package/dist/Tag/Tag.js +52 -52
- 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 +13 -31
- package/dist/Textarea/Textarea.cjs +2 -2
- package/dist/Textarea/Textarea.js +12 -28
- package/dist/Textarea/TextareaInput.cjs +4 -4
- package/dist/Textarea/TextareaInput.js +22 -21
- 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 +86 -60
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +28 -47
- 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/deprecations.cjs +1 -1
- package/dist/helpers/deprecations.js +7 -7
- package/dist/helpers/objects.cjs +1 -1
- package/dist/helpers/objects.js +1 -1
- package/dist/helpers/useElementOnScreen.cjs +1 -1
- package/dist/helpers/useElementOnScreen.js +4 -13
- package/dist/helpers/useId.cjs +1 -1
- package/dist/helpers/useId.js +4 -11
- package/dist/helpers/useIntersection.cjs +1 -1
- package/dist/helpers/useIntersection.js +4 -21
- package/dist/helpers/useLockScroll.cjs +1 -1
- package/dist/helpers/useLockScroll.js +4 -7
- package/dist/helpers/usePrevious.cjs +1 -1
- package/dist/helpers/usePrevious.js +4 -8
- package/dist/helpers/useResizeObserver.cjs +1 -1
- package/dist/helpers/useResizeObserver.js +4 -14
- package/dist/hooks/useElementOnScreen.cjs +1 -0
- package/dist/hooks/useElementOnScreen.js +15 -0
- package/dist/hooks/useId.cjs +1 -0
- package/dist/hooks/useId.js +13 -0
- package/dist/hooks/useIntersection.cjs +1 -1
- package/dist/hooks/useIntersection.js +3 -3
- package/dist/hooks/useLockScroll.cjs +1 -0
- package/dist/hooks/useLockScroll.js +9 -0
- package/dist/hooks/usePrevious.cjs +1 -0
- package/dist/hooks/usePrevious.js +10 -0
- package/dist/hooks/useResizeObserver.cjs +1 -0
- package/dist/hooks/useResizeObserver.js +16 -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 +31 -44
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +20 -21
- 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 +3 -3
- package/dist/v2/SubNav/SubNavLinkSection.js +5 -30
- package/dist/v2/SubNav/SubNavSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavSection.js +29 -36
- 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 +17 -16
- package/package.json +8 -4
- package/dist/Select/SingleSelect.cjs +0 -82
- package/dist/Select/SingleSelect.js +0 -285
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as h from "react";
|
|
3
3
|
import o from "styled-components";
|
|
4
|
-
import { Typography as u } from "../Typography/Typography.js";
|
|
5
|
-
import { Flex as m } from "../Flex/Flex.js";
|
|
6
|
-
import { Box as d } from "../Box/Box.js";
|
|
7
4
|
import { previewSize as s, avatarSize as t } from "./constants.js";
|
|
5
|
+
import { Box as d } from "../Box/Box.js";
|
|
6
|
+
import { Flex as u } from "../Flex/Flex.js";
|
|
7
|
+
import { Typography as m } from "../Typography/Typography.js";
|
|
8
8
|
const x = o.img`
|
|
9
9
|
border-radius: 50%;
|
|
10
10
|
object-fit: cover;
|
|
@@ -20,12 +20,12 @@ const x = o.img`
|
|
|
20
20
|
}) => e.spaces[1]};
|
|
21
21
|
`, g = o(d)`
|
|
22
22
|
opacity: 0.4;
|
|
23
|
-
`,
|
|
23
|
+
`, I = ({
|
|
24
24
|
src: e,
|
|
25
25
|
alt: n,
|
|
26
26
|
preview: r
|
|
27
27
|
}) => {
|
|
28
|
-
const [c, p] = h(!1), a = Boolean(r && c);
|
|
28
|
+
const [c, p] = h.useState(!1), a = Boolean(r && c);
|
|
29
29
|
return l("span", {
|
|
30
30
|
children: [a ? i(f, {
|
|
31
31
|
"aria-hidden": !0,
|
|
@@ -55,11 +55,11 @@ const x = o.img`
|
|
|
55
55
|
})]
|
|
56
56
|
})]
|
|
57
57
|
});
|
|
58
|
-
}, b = o(
|
|
58
|
+
}, b = o(u)`
|
|
59
59
|
span {
|
|
60
60
|
line-height: 0;
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`, S = ({
|
|
63
63
|
children: e,
|
|
64
64
|
background: n = "primary600",
|
|
65
65
|
textColor: r = "buttonNeutral0"
|
|
@@ -69,7 +69,7 @@ const x = o.img`
|
|
|
69
69
|
width: `${t}px`,
|
|
70
70
|
height: `${t}px`,
|
|
71
71
|
justifyContent: "center",
|
|
72
|
-
children: i(
|
|
72
|
+
children: i(m, {
|
|
73
73
|
fontSize: 0,
|
|
74
74
|
fontWeight: "bold",
|
|
75
75
|
textColor: r,
|
|
@@ -78,6 +78,6 @@ const x = o.img`
|
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
80
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
I as Avatar,
|
|
82
|
+
S as Initials
|
|
83
83
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("styled-components"),o=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("styled-components"),o=require("./constants.cjs"),s=require("../Flex/Flex.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=a(t),r=l.default(s.Flex)`
|
|
2
2
|
& > * + * {
|
|
3
|
-
margin-left: -${
|
|
3
|
+
margin-left: -${o.avatarSize/2}px;
|
|
4
4
|
}
|
|
5
5
|
`;exports.AvatarGroup=r;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import r from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const e = r(
|
|
2
|
+
import { avatarSize as o } from "./constants.js";
|
|
3
|
+
import { Flex as t } from "../Flex/Flex.js";
|
|
4
|
+
const e = r(t)`
|
|
5
5
|
& > * + * {
|
|
6
|
-
margin-left: -${
|
|
6
|
+
margin-left: -${o / 2}px;
|
|
7
7
|
}
|
|
8
8
|
`;
|
|
9
9
|
export {
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),l=require("react"),
|
|
2
|
-
display: flex;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
padding: ${({theme:e})=>e.spaces[2]};
|
|
5
|
-
border-radius: ${({theme:e})=>e.borderRadius};
|
|
6
|
-
background: ${({theme:e})=>e.colors.neutral0};
|
|
7
|
-
border: 1px solid ${({theme:e})=>e.colors.neutral200};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),l=require("react"),c=require("styled-components"),i=require("../Flex/Flex.cjs"),d=require("../themes/utils.cjs"),t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},p=t(l),f=t(c),s=f.default(i.Flex)`
|
|
8
2
|
svg {
|
|
9
3
|
height: ${({theme:e})=>e.spaces[3]};
|
|
10
4
|
width: ${({theme:e})=>e.spaces[3]};
|
|
11
|
-
|
|
12
|
-
svg {
|
|
5
|
+
|
|
13
6
|
> g,
|
|
14
7
|
path {
|
|
15
8
|
fill: ${({theme:e})=>e.colors.neutral0};
|
|
16
9
|
}
|
|
17
10
|
}
|
|
11
|
+
|
|
18
12
|
&[aria-disabled='true'] {
|
|
19
13
|
pointer-events: none;
|
|
20
14
|
}
|
|
21
15
|
|
|
22
|
-
${
|
|
23
|
-
`,r=
|
|
16
|
+
${d.buttonFocusStyle}
|
|
17
|
+
`,r=p.default.forwardRef(({disabled:e,children:a,...o},u)=>n.jsx(s,{ref:u,"aria-disabled":e,as:"button",type:"button",disabled:e,padding:2,hasRadius:!0,background:"neutral0",borderColor:"neutral200",cursor:"pointer",...o,children:a}));r.displayName="BaseButton";exports.BaseButton=r;exports.BaseButtonWrapper=s;
|
|
@@ -1,57 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
padding: ${({
|
|
9
|
-
theme: r
|
|
10
|
-
}) => r.spaces[2]};
|
|
11
|
-
border-radius: ${({
|
|
12
|
-
theme: r
|
|
13
|
-
}) => r.borderRadius};
|
|
14
|
-
background: ${({
|
|
15
|
-
theme: r
|
|
16
|
-
}) => r.colors.neutral0};
|
|
17
|
-
border: 1px solid ${({
|
|
18
|
-
theme: r
|
|
19
|
-
}) => r.colors.neutral200};
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import s from "react";
|
|
3
|
+
import n from "styled-components";
|
|
4
|
+
import { Flex as i } from "../Flex/Flex.js";
|
|
5
|
+
import { buttonFocusStyle as u } from "../themes/utils.js";
|
|
6
|
+
const p = n(i)`
|
|
20
7
|
svg {
|
|
21
8
|
height: ${({
|
|
22
|
-
theme:
|
|
23
|
-
}) =>
|
|
9
|
+
theme: t
|
|
10
|
+
}) => t.spaces[3]};
|
|
24
11
|
width: ${({
|
|
25
|
-
theme:
|
|
26
|
-
}) =>
|
|
27
|
-
|
|
28
|
-
svg {
|
|
12
|
+
theme: t
|
|
13
|
+
}) => t.spaces[3]};
|
|
14
|
+
|
|
29
15
|
> g,
|
|
30
16
|
path {
|
|
31
17
|
fill: ${({
|
|
32
|
-
theme:
|
|
33
|
-
}) =>
|
|
18
|
+
theme: t
|
|
19
|
+
}) => t.colors.neutral0};
|
|
34
20
|
}
|
|
35
21
|
}
|
|
22
|
+
|
|
36
23
|
&[aria-disabled='true'] {
|
|
37
24
|
pointer-events: none;
|
|
38
25
|
}
|
|
39
26
|
|
|
40
|
-
${
|
|
41
|
-
`,
|
|
42
|
-
disabled:
|
|
43
|
-
children:
|
|
27
|
+
${u}
|
|
28
|
+
`, d = s.forwardRef(({
|
|
29
|
+
disabled: t,
|
|
30
|
+
children: r,
|
|
44
31
|
...e
|
|
45
|
-
}, o) =>
|
|
32
|
+
}, o) => a(p, {
|
|
46
33
|
ref: o,
|
|
47
|
-
"aria-disabled":
|
|
34
|
+
"aria-disabled": t,
|
|
35
|
+
as: "button",
|
|
48
36
|
type: "button",
|
|
49
|
-
disabled:
|
|
37
|
+
disabled: t,
|
|
38
|
+
padding: 2,
|
|
39
|
+
hasRadius: !0,
|
|
40
|
+
background: "neutral0",
|
|
41
|
+
borderColor: "neutral200",
|
|
42
|
+
cursor: "pointer",
|
|
50
43
|
...e,
|
|
51
|
-
children:
|
|
44
|
+
children: r
|
|
52
45
|
}));
|
|
53
|
-
|
|
46
|
+
d.displayName = "BaseButton";
|
|
54
47
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
d as BaseButton,
|
|
49
|
+
p as BaseButtonWrapper
|
|
57
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),b=require("react"),p=require("styled-components"),f=require("./assets/checkmark-black.cjs"),k=require("./assets/checkmark.cjs"),s=require("./utils.cjs"),h=require("../Box/Box.cjs"),x=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function g(e){if(e&&e.__esModule)return e;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const l=g(b),m=x(p),y=m.default.input`
|
|
2
2
|
height: ${s.getCheckboxSize};
|
|
3
3
|
min-width: ${s.getCheckboxSize};
|
|
4
4
|
margin: 0;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&:disabled:after {
|
|
28
|
-
background: url(${
|
|
28
|
+
background: url(${f}) no-repeat no-repeat center center;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
`,
|
|
62
|
+
`,i=({indeterminate:e=!1,size:o="M",name:r,value:t=!1,onValueChange:a,...u})=>{const c=l.useRef(null);l.useEffect(()=>{c.current&&e?c.current.indeterminate=e:c.current.indeterminate=!1},[e]);const d=()=>{a&&a(!t)};return n.jsx(h.Box,{children:n.jsx(y,{size:o,checked:t,onChange:d,type:"checkbox",ref:c,name:r,...u})})};i.displayName="BaseCheckbox";exports.BaseCheckbox=i;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
height: ${
|
|
10
|
-
min-width: ${
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import d from "styled-components";
|
|
4
|
+
import p from "./assets/checkmark-black.js";
|
|
5
|
+
import u from "./assets/checkmark.js";
|
|
6
|
+
import { getCheckboxSize as n } from "./utils.js";
|
|
7
|
+
import { Box as b } from "../Box/Box.js";
|
|
8
|
+
const m = d.input`
|
|
9
|
+
height: ${n};
|
|
10
|
+
min-width: ${n};
|
|
11
11
|
margin: 0;
|
|
12
12
|
border-radius: ${({
|
|
13
13
|
theme: r
|
|
@@ -33,7 +33,7 @@ const f = p.input`
|
|
|
33
33
|
content: '';
|
|
34
34
|
display: block;
|
|
35
35
|
position: relative;
|
|
36
|
-
background: url(${
|
|
36
|
+
background: url(${u}) no-repeat no-repeat center center;
|
|
37
37
|
width: 10px;
|
|
38
38
|
height: 10px;
|
|
39
39
|
left: 50%;
|
|
@@ -42,7 +42,7 @@ const f = p.input`
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&:disabled:after {
|
|
45
|
-
background: url(${
|
|
45
|
+
background: url(${p}) no-repeat no-repeat center center;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -92,32 +92,32 @@ const f = p.input`
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`, f = ({
|
|
96
96
|
indeterminate: r = !1,
|
|
97
|
-
size:
|
|
98
|
-
name:
|
|
97
|
+
size: l = "M",
|
|
98
|
+
name: s,
|
|
99
99
|
value: e = !1,
|
|
100
100
|
onValueChange: t,
|
|
101
101
|
...i
|
|
102
102
|
}) => {
|
|
103
|
-
const o =
|
|
104
|
-
return
|
|
103
|
+
const o = c.useRef(null);
|
|
104
|
+
return c.useEffect(() => {
|
|
105
105
|
o.current && r ? o.current.indeterminate = r : o.current.indeterminate = !1;
|
|
106
|
-
}, [r]), a(
|
|
107
|
-
children: a(
|
|
108
|
-
size:
|
|
106
|
+
}, [r]), a(b, {
|
|
107
|
+
children: a(m, {
|
|
108
|
+
size: l,
|
|
109
109
|
checked: e,
|
|
110
110
|
onChange: () => {
|
|
111
111
|
t && t(!e);
|
|
112
112
|
},
|
|
113
113
|
type: "checkbox",
|
|
114
114
|
ref: o,
|
|
115
|
-
name:
|
|
115
|
+
name: s,
|
|
116
116
|
...i
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
|
|
120
|
+
f.displayName = "BaseCheckbox";
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
f as BaseCheckbox
|
|
123
123
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("react/jsx-runtime"),r=require("react"),g=require("styled-components"),y=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("react/jsx-runtime"),r=require("react"),g=require("styled-components"),y=require("./context.cjs"),t=require("./utils.cjs"),R=require("../hooks/useId.cjs"),d=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},m=d(r),h=d(g),x=h.default.input`
|
|
2
2
|
margin: 0;
|
|
3
3
|
padding: 0;
|
|
4
4
|
background-color: ${({theme:e})=>e.colors.neutral0};
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
border: 1px solid ${({theme:e})=>e.colors.neutral300};
|
|
29
29
|
background: ${({theme:e})=>e.colors.neutral200};
|
|
30
30
|
}
|
|
31
|
-
`,a=m.default.forwardRef(({value:e,disabled:n=!1,...i},c)=>{const s=
|
|
31
|
+
`,a=m.default.forwardRef(({value:e,disabled:n=!1,...i},c)=>{const s=R.useId(),{onChange:l,selected:u,name:p,size:f}=r.useContext(y.RadioContext),o=u===e;return b.jsx(x,{ref:c,type:"radio",name:p,value:e,tabIndex:o?0:-1,"aria-checked":o,checked:o,disabled:n,id:s,size:f,onChange:l,...i})});a.displayName="Radio";exports.BaseRadio=a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import u, { useContext as b } from "react";
|
|
3
3
|
import g from "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import { RadioContext as $ } from "./context.js";
|
|
4
|
+
import { RadioContext as h } from "./context.js";
|
|
6
5
|
import { getRadioSize as r, getSelectedRadioSize as t, getSelectedRadioPosition as d } from "./utils.js";
|
|
6
|
+
import { useId as $ } from "../hooks/useId.js";
|
|
7
7
|
const y = g.input`
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
@@ -57,12 +57,12 @@ const y = g.input`
|
|
|
57
57
|
disabled: a = !1,
|
|
58
58
|
...n
|
|
59
59
|
}, i) => {
|
|
60
|
-
const c =
|
|
60
|
+
const c = $(), {
|
|
61
61
|
onChange: l,
|
|
62
62
|
selected: p,
|
|
63
63
|
name: m,
|
|
64
64
|
size: s
|
|
65
|
-
} = b(
|
|
65
|
+
} = b(h), o = p === e;
|
|
66
66
|
return f(y, {
|
|
67
67
|
ref: i,
|
|
68
68
|
type: "radio",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),r=require("react"),l=require("./context.cjs"),x=require("../helpers/setTabIndexOnFirstItem.cjs"),b=({children:n,labelledBy:u,onChange:o,value:e="",size:s="M",name:t,...d})=>{const i=r.useRef(null);r.useLayoutEffect(()=>{e||x.setTabIndexOnFirstItem(i.current,`[name="${t}"]`)},[e,t]);const a=r.useMemo(()=>({onChange:o,selected:e,name:t,size:s}),[t,o,s,e]);return c.jsx(l.RadioContext.Provider,{value:a,children:c.jsx("div",{ref:i,role:"radiogroup","aria-labelledby":u,...d,children:n})})};exports.RadioGroup=b;
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { RadioContext as
|
|
4
|
-
import { setTabIndexOnFirstItem as
|
|
5
|
-
const
|
|
6
|
-
children:
|
|
7
|
-
labelledBy:
|
|
8
|
-
onChange:
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as n, useLayoutEffect as p, useMemo as u } from "react";
|
|
3
|
+
import { RadioContext as l } from "./context.js";
|
|
4
|
+
import { setTabIndexOnFirstItem as x } from "../helpers/setTabIndexOnFirstItem.js";
|
|
5
|
+
const G = ({
|
|
6
|
+
children: f,
|
|
7
|
+
labelledBy: c,
|
|
8
|
+
onChange: t,
|
|
9
9
|
value: r = "",
|
|
10
|
-
size:
|
|
10
|
+
size: e = "M",
|
|
11
11
|
name: o,
|
|
12
|
-
...
|
|
12
|
+
...s
|
|
13
13
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
r ||
|
|
17
|
-
}, [r, o])
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
const i = n(null);
|
|
15
|
+
p(() => {
|
|
16
|
+
r || x(i.current, `[name="${o}"]`);
|
|
17
|
+
}, [r, o]);
|
|
18
|
+
const m = u(() => ({
|
|
19
|
+
onChange: t,
|
|
20
|
+
selected: r,
|
|
21
|
+
name: o,
|
|
22
|
+
size: e
|
|
23
|
+
}), [o, t, e, r]);
|
|
24
|
+
return d(l.Provider, {
|
|
25
|
+
value: m,
|
|
26
|
+
children: d("div", {
|
|
27
|
+
ref: i,
|
|
26
28
|
role: "radiogroup",
|
|
27
|
-
"aria-labelledby":
|
|
28
|
-
...
|
|
29
|
-
children:
|
|
29
|
+
"aria-labelledby": c,
|
|
30
|
+
...s,
|
|
31
|
+
children: f
|
|
30
32
|
})
|
|
31
33
|
});
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
G as RadioGroup
|
|
35
37
|
};
|
package/dist/Box/Box.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("styled-components"),o=require("../helpers/handleResponsiveValues.cjs"),r=require("../helpers/theme.cjs"),a=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},d=a(n),l={color:!0,cursor:!0,height:!0,width:!0},m=d.default.div.withConfig({shouldForwardProp:(e,t)=>!l[e]&&t(e)})`
|
|
2
2
|
// Font
|
|
3
3
|
font-size: ${({fontSize:e,theme:t})=>r.extractStyleFromTheme(t.fontSizes,e,e)};
|
|
4
4
|
|
|
5
5
|
// Colors
|
|
6
|
-
background: ${({theme:e,background:t})=>r.extractStyleFromTheme(e.colors,t,
|
|
6
|
+
background: ${({theme:e,background:t})=>r.extractStyleFromTheme(e.colors,t,t)};
|
|
7
7
|
color: ${({theme:e,color:t})=>r.extractStyleFromTheme(e.colors,t,void 0)};
|
|
8
8
|
|
|
9
9
|
// Spaces
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
border-style: ${({borderStyle:e})=>e};
|
|
28
28
|
border-width: ${({borderWidth:e})=>e};
|
|
29
29
|
border-color: ${({borderColor:e,theme:t})=>r.extractStyleFromTheme(t.colors,e,void 0)};
|
|
30
|
-
border: ${({theme:e,borderColor:t,borderStyle:s,borderWidth:
|
|
30
|
+
border: ${({theme:e,borderColor:t,borderStyle:s,borderWidth:i})=>{if(t&&!s&&typeof i>"u")return`1px solid ${e.colors[t]}`}};
|
|
31
31
|
|
|
32
32
|
// Shadows
|
|
33
33
|
box-shadow: ${({theme:e,shadow:t})=>r.extractStyleFromTheme(e.shadows,t,void 0)};
|
package/dist/Box/Box.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import d from "styled-components";
|
|
2
|
-
import
|
|
3
|
-
import { extractStyleFromTheme as
|
|
2
|
+
import r from "../helpers/handleResponsiveValues.js";
|
|
3
|
+
import { extractStyleFromTheme as s } from "../helpers/theme.js";
|
|
4
4
|
const t = {
|
|
5
5
|
color: !0,
|
|
6
6
|
cursor: !0,
|
|
@@ -13,55 +13,55 @@ const t = {
|
|
|
13
13
|
font-size: ${({
|
|
14
14
|
fontSize: e,
|
|
15
15
|
theme: o
|
|
16
|
-
}) =>
|
|
16
|
+
}) => s(o.fontSizes, e, e)};
|
|
17
17
|
|
|
18
18
|
// Colors
|
|
19
19
|
background: ${({
|
|
20
20
|
theme: e,
|
|
21
21
|
background: o
|
|
22
|
-
}) =>
|
|
22
|
+
}) => s(e.colors, o, o)};
|
|
23
23
|
color: ${({
|
|
24
24
|
theme: e,
|
|
25
25
|
color: o
|
|
26
|
-
}) =>
|
|
26
|
+
}) => s(e.colors, o, void 0)};
|
|
27
27
|
|
|
28
28
|
// Spaces
|
|
29
29
|
${({
|
|
30
30
|
theme: e,
|
|
31
31
|
padding: o
|
|
32
|
-
}) =>
|
|
32
|
+
}) => r("padding", o, e)}
|
|
33
33
|
${({
|
|
34
34
|
theme: e,
|
|
35
35
|
paddingTop: o
|
|
36
|
-
}) =>
|
|
36
|
+
}) => r("padding-top", o, e)}
|
|
37
37
|
${({
|
|
38
38
|
theme: e,
|
|
39
39
|
paddingRight: o
|
|
40
|
-
}) =>
|
|
40
|
+
}) => r("padding-right", o, e)}
|
|
41
41
|
${({
|
|
42
42
|
theme: e,
|
|
43
43
|
paddingBottom: o
|
|
44
|
-
}) =>
|
|
44
|
+
}) => r("padding-bottom", o, e)}
|
|
45
45
|
${({
|
|
46
46
|
theme: e,
|
|
47
47
|
paddingLeft: o
|
|
48
|
-
}) =>
|
|
48
|
+
}) => r("padding-left", o, e)}
|
|
49
49
|
${({
|
|
50
50
|
theme: e,
|
|
51
51
|
marginLeft: o
|
|
52
|
-
}) =>
|
|
52
|
+
}) => r("margin-left", o, e)}
|
|
53
53
|
${({
|
|
54
54
|
theme: e,
|
|
55
55
|
marginRight: o
|
|
56
|
-
}) =>
|
|
56
|
+
}) => r("margin-right", o, e)}
|
|
57
57
|
${({
|
|
58
58
|
theme: e,
|
|
59
59
|
marginTop: o
|
|
60
|
-
}) =>
|
|
60
|
+
}) => r("margin-top", o, e)}
|
|
61
61
|
${({
|
|
62
62
|
theme: e,
|
|
63
63
|
marginBottom: o
|
|
64
|
-
}) =>
|
|
64
|
+
}) => r("margin-bottom", o, e)}
|
|
65
65
|
|
|
66
66
|
// Responsive hiding
|
|
67
67
|
${({
|
|
@@ -89,14 +89,14 @@ const t = {
|
|
|
89
89
|
border-color: ${({
|
|
90
90
|
borderColor: e,
|
|
91
91
|
theme: o
|
|
92
|
-
}) =>
|
|
92
|
+
}) => s(o.colors, e, void 0)};
|
|
93
93
|
border: ${({
|
|
94
94
|
theme: e,
|
|
95
95
|
borderColor: o,
|
|
96
96
|
borderStyle: i,
|
|
97
97
|
borderWidth: n
|
|
98
98
|
}) => {
|
|
99
|
-
if (o && !i &&
|
|
99
|
+
if (o && !i && typeof n > "u")
|
|
100
100
|
return `1px solid ${e.colors[o]}`;
|
|
101
101
|
}};
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ const t = {
|
|
|
104
104
|
box-shadow: ${({
|
|
105
105
|
theme: e,
|
|
106
106
|
shadow: o
|
|
107
|
-
}) =>
|
|
107
|
+
}) => s(e.shadows, o, void 0)};
|
|
108
108
|
|
|
109
109
|
// Handlers
|
|
110
110
|
pointer-events: ${({
|
|
@@ -129,19 +129,19 @@ const t = {
|
|
|
129
129
|
left: ${({
|
|
130
130
|
left: e,
|
|
131
131
|
theme: o
|
|
132
|
-
}) =>
|
|
132
|
+
}) => s(o.spaces, e, e)};
|
|
133
133
|
right: ${({
|
|
134
134
|
right: e,
|
|
135
135
|
theme: o
|
|
136
|
-
}) =>
|
|
136
|
+
}) => s(o.spaces, e, e)};
|
|
137
137
|
top: ${({
|
|
138
138
|
top: e,
|
|
139
139
|
theme: o
|
|
140
|
-
}) =>
|
|
140
|
+
}) => s(o.spaces, e, e)};
|
|
141
141
|
bottom: ${({
|
|
142
142
|
bottom: e,
|
|
143
143
|
theme: o
|
|
144
|
-
}) =>
|
|
144
|
+
}) => s(o.spaces, e, e)};
|
|
145
145
|
z-index: ${({
|
|
146
146
|
zIndex: e
|
|
147
147
|
}) => e};
|
|
@@ -153,27 +153,27 @@ const t = {
|
|
|
153
153
|
width: ${({
|
|
154
154
|
width: e,
|
|
155
155
|
theme: o
|
|
156
|
-
}) =>
|
|
156
|
+
}) => s(o.spaces, e, e)};
|
|
157
157
|
max-width: ${({
|
|
158
158
|
maxWidth: e,
|
|
159
159
|
theme: o
|
|
160
|
-
}) =>
|
|
160
|
+
}) => s(o.spaces, e, e)};
|
|
161
161
|
min-width: ${({
|
|
162
162
|
minWidth: e,
|
|
163
163
|
theme: o
|
|
164
|
-
}) =>
|
|
164
|
+
}) => s(o.spaces, e, e)};
|
|
165
165
|
height: ${({
|
|
166
166
|
height: e,
|
|
167
167
|
theme: o
|
|
168
|
-
}) =>
|
|
168
|
+
}) => s(o.spaces, e, e)};
|
|
169
169
|
max-height: ${({
|
|
170
170
|
maxHeight: e,
|
|
171
171
|
theme: o
|
|
172
|
-
}) =>
|
|
172
|
+
}) => s(o.spaces, e, e)};
|
|
173
173
|
min-height: ${({
|
|
174
174
|
minHeight: e,
|
|
175
175
|
theme: o
|
|
176
|
-
}) =>
|
|
176
|
+
}) => s(o.spaces, e, e)};
|
|
177
177
|
|
|
178
178
|
// Animation
|
|
179
179
|
transition: ${({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),d=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),d=require("@strapi/icons"),u=require("styled-components"),t=require("../Box/Box.cjs"),s=require("../Flex/Flex.cjs"),i=require("../Typography/Typography.cjs"),c=require("../VisuallyHidden/VisuallyHidden.cjs"),p=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},y=p(u),h=y.default(s.Flex)`
|
|
2
2
|
svg {
|
|
3
3
|
height: ${10/16}rem;
|
|
4
4
|
width: ${10/16}rem;
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
fill: ${({theme:e})=>e.colors.neutral500};
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
:last-of-type ${
|
|
9
|
+
:last-of-type ${t.Box} {
|
|
10
10
|
display: none;
|
|
11
11
|
}
|
|
12
|
-
:last-of-type ${
|
|
12
|
+
:last-of-type ${i.Typography} {
|
|
13
13
|
color: ${({theme:e})=>e.colors.neutral800};
|
|
14
14
|
font-weight: ${({theme:e})=>e.fontWeights.bold};
|
|
15
15
|
}
|
|
16
|
-
`,l=({children:e})=>r.jsxs(h,{inline:!0,as:"li",children:[r.jsx(
|
|
16
|
+
`,l=({children:e})=>r.jsxs(h,{inline:!0,as:"li",children:[r.jsx(i.Typography,{variant:"pi",textColor:"neutral600",children:e}),r.jsx(t.Box,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:r.jsx(d.ChevronRight,{})})]});l.displayName="Crumb";const o=({children:e,label:n,...a})=>r.jsxs(s.Flex,{...a,children:[r.jsx(c.VisuallyHidden,{children:n}),r.jsx("ol",{"aria-hidden":!0,children:e})]});o.displayName="Breadcrumbs";exports.Breadcrumbs=o;exports.Crumb=l;
|