@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e, { useRef as h, useState as E, useEffect as v } from "react";
|
|
2
|
-
import R from "styled-components";
|
|
3
2
|
import t from "prop-types";
|
|
4
|
-
import
|
|
3
|
+
import R from "styled-components";
|
|
5
4
|
import { Box as i } from "../Box/Box.js";
|
|
6
5
|
import { Flex as l } from "../Flex/Flex.js";
|
|
7
|
-
import { useElementOnScreen as b } from "../
|
|
8
|
-
import { useResizeObserver as w } from "../
|
|
6
|
+
import { useElementOnScreen as b } from "../hooks/useElementOnScreen.js";
|
|
7
|
+
import { useResizeObserver as w } from "../hooks/useResizeObserver.js";
|
|
8
|
+
import { Typography as c } from "../Typography/Typography.js";
|
|
9
9
|
const L = () => {
|
|
10
10
|
const n = h(null), [o, a] = E(null), [r, d] = b({
|
|
11
11
|
root: null,
|
|
@@ -24,17 +24,7 @@ const L = () => {
|
|
|
24
24
|
};
|
|
25
25
|
}, p = (n) => {
|
|
26
26
|
const { containerRef: o, isVisible: a, baseHeaderLayoutRef: r, headerSize: d } = L();
|
|
27
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
28
|
-
style: { height: d?.height },
|
|
29
|
-
ref: o
|
|
30
|
-
}, a && /* @__PURE__ */ e.createElement(s, {
|
|
31
|
-
ref: r,
|
|
32
|
-
...n
|
|
33
|
-
})), !a && /* @__PURE__ */ e.createElement(s, {
|
|
34
|
-
...n,
|
|
35
|
-
sticky: !0,
|
|
36
|
-
width: d?.width
|
|
37
|
-
}));
|
|
27
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { style: { height: d?.height }, ref: o }, a && /* @__PURE__ */ e.createElement(s, { ref: r, ...n })), !a && /* @__PURE__ */ e.createElement(s, { ...n, sticky: !0, width: d?.width }));
|
|
38
28
|
};
|
|
39
29
|
p.displayName = "HeaderLayout";
|
|
40
30
|
const x = R(i)`
|
|
@@ -42,57 +32,38 @@ const x = R(i)`
|
|
|
42
32
|
`, s = e.forwardRef(
|
|
43
33
|
({ navigationAction: n, primaryAction: o, secondaryAction: a, subtitle: r, title: d, sticky: f, width: g, ...u }, y) => {
|
|
44
34
|
const m = typeof r == "string";
|
|
45
|
-
return f ? /* @__PURE__ */ e.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
paddingRight: 3
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
paddingBottom: 8,
|
|
78
|
-
paddingTop: n ? 6 : 8,
|
|
79
|
-
background: "neutral100",
|
|
80
|
-
"data-strapi-header": !0
|
|
81
|
-
}, n ? /* @__PURE__ */ e.createElement(i, {
|
|
82
|
-
paddingBottom: 2
|
|
83
|
-
}, n) : null, /* @__PURE__ */ e.createElement(l, {
|
|
84
|
-
justifyContent: "space-between"
|
|
85
|
-
}, /* @__PURE__ */ e.createElement(l, null, /* @__PURE__ */ e.createElement(c, {
|
|
86
|
-
as: "h1",
|
|
87
|
-
variant: "alpha",
|
|
88
|
-
...u
|
|
89
|
-
}, d), a ? /* @__PURE__ */ e.createElement(i, {
|
|
90
|
-
paddingLeft: 4
|
|
91
|
-
}, a) : null), o), m ? /* @__PURE__ */ e.createElement(c, {
|
|
92
|
-
variant: "epsilon",
|
|
93
|
-
textColor: "neutral600",
|
|
94
|
-
as: "p"
|
|
95
|
-
}, r) : r);
|
|
35
|
+
return f ? /* @__PURE__ */ e.createElement(
|
|
36
|
+
x,
|
|
37
|
+
{
|
|
38
|
+
paddingLeft: 6,
|
|
39
|
+
paddingRight: 6,
|
|
40
|
+
paddingTop: 3,
|
|
41
|
+
paddingBottom: 3,
|
|
42
|
+
position: "fixed",
|
|
43
|
+
top: 0,
|
|
44
|
+
right: 0,
|
|
45
|
+
background: "neutral0",
|
|
46
|
+
shadow: "tableShadow",
|
|
47
|
+
width: g,
|
|
48
|
+
zIndex: 4,
|
|
49
|
+
"data-strapi-header-sticky": !0
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ e.createElement(l, { justifyContent: "space-between" }, /* @__PURE__ */ e.createElement(l, null, n && /* @__PURE__ */ e.createElement(i, { paddingRight: 3 }, n), /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(c, { variant: "beta", as: "h1", ...u }, d), m ? /* @__PURE__ */ e.createElement(c, { variant: "pi", textColor: "neutral600" }, r) : r), a ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 4 }, a) : null), /* @__PURE__ */ e.createElement(l, null, o ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 2 }, o) : void 0))
|
|
52
|
+
) : /* @__PURE__ */ e.createElement(
|
|
53
|
+
i,
|
|
54
|
+
{
|
|
55
|
+
ref: y,
|
|
56
|
+
paddingLeft: 10,
|
|
57
|
+
paddingRight: 10,
|
|
58
|
+
paddingBottom: 8,
|
|
59
|
+
paddingTop: n ? 6 : 8,
|
|
60
|
+
background: "neutral100",
|
|
61
|
+
"data-strapi-header": !0
|
|
62
|
+
},
|
|
63
|
+
n ? /* @__PURE__ */ e.createElement(i, { paddingBottom: 2 }, n) : null,
|
|
64
|
+
/* @__PURE__ */ e.createElement(l, { justifyContent: "space-between" }, /* @__PURE__ */ e.createElement(l, { minWidth: 0 }, /* @__PURE__ */ e.createElement(c, { as: "h1", variant: "alpha", ...u }, d), a ? /* @__PURE__ */ e.createElement(i, { paddingLeft: 4 }, a) : null), o),
|
|
65
|
+
m ? /* @__PURE__ */ e.createElement(c, { variant: "epsilon", textColor: "neutral600", as: "p" }, r) : r
|
|
66
|
+
);
|
|
96
67
|
}
|
|
97
68
|
);
|
|
98
69
|
s.displayName = "BaseHeaderLayout";
|
package/dist/Layout/Layout.js
CHANGED
|
@@ -7,11 +7,7 @@ const a = t(d)`
|
|
|
7
7
|
grid-template-columns: ${({ hasSideNav: e }) => e ? "auto 1fr" : "1fr"};
|
|
8
8
|
`, m = t(d)`
|
|
9
9
|
overflow-x: hidden;
|
|
10
|
-
`, i = ({ sideNav: e, children: n }) => /* @__PURE__ */ o.createElement(a, {
|
|
11
|
-
hasSideNav: Boolean(e)
|
|
12
|
-
}, e, /* @__PURE__ */ o.createElement(m, {
|
|
13
|
-
paddingBottom: 10
|
|
14
|
-
}, n));
|
|
10
|
+
`, i = ({ sideNav: e, children: n }) => /* @__PURE__ */ o.createElement(a, { hasSideNav: Boolean(e) }, e, /* @__PURE__ */ o.createElement(m, { paddingBottom: 10 }, n));
|
|
15
11
|
i.defaultProps = {
|
|
16
12
|
sideNav: void 0
|
|
17
13
|
};
|
|
@@ -3,23 +3,7 @@ import r from "prop-types";
|
|
|
3
3
|
import { Box as o } from "../Box/Box.js";
|
|
4
4
|
import { Grid as m } from "../Grid/Grid.js";
|
|
5
5
|
import { GridItem as t } from "../Grid/GridItem.js";
|
|
6
|
-
const l = ({ startCol: a, endCol: d }) => /* @__PURE__ */ e.createElement(m, {
|
|
7
|
-
gap: 4
|
|
8
|
-
}, /* @__PURE__ */ e.createElement(t, {
|
|
9
|
-
col: 9,
|
|
10
|
-
s: 12
|
|
11
|
-
}, /* @__PURE__ */ e.createElement(o, {
|
|
12
|
-
hasRadius: !0,
|
|
13
|
-
background: "neutral0",
|
|
14
|
-
shadow: "tableShadow"
|
|
15
|
-
}, a)), /* @__PURE__ */ e.createElement(t, {
|
|
16
|
-
col: 3,
|
|
17
|
-
s: 12
|
|
18
|
-
}, /* @__PURE__ */ e.createElement(o, {
|
|
19
|
-
hasRadius: !0,
|
|
20
|
-
background: "neutral0",
|
|
21
|
-
shadow: "tableShadow"
|
|
22
|
-
}, d)));
|
|
6
|
+
const l = ({ startCol: a, endCol: d }) => /* @__PURE__ */ e.createElement(m, { gap: 4 }, /* @__PURE__ */ e.createElement(t, { col: 9, s: 12 }, /* @__PURE__ */ e.createElement(o, { hasRadius: !0, background: "neutral0", shadow: "tableShadow" }, a)), /* @__PURE__ */ e.createElement(t, { col: 3, s: 12 }, /* @__PURE__ */ e.createElement(o, { hasRadius: !0, background: "neutral0", shadow: "tableShadow" }, d)));
|
|
23
7
|
l.propTypes = {
|
|
24
8
|
endCol: r.node.isRequired,
|
|
25
9
|
startCol: r.node.isRequired
|
package/dist/Link/Link.cjs
CHANGED
|
@@ -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 o=require("react/jsx-runtime"),y=require("react"),g=require("@strapi/icons"),j=require("react-router-dom"),m=require("styled-components"),x=require("../Box/Box.cjs"),h=require("../themes/utils.cjs"),c=require("../Typography/Typography.cjs"),_=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function b(e){if(e&&e.__esModule)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=b(y),l=_(m),q=l.default.a`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
text-decoration: none;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
font-size: ${10/16}rem;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
${
|
|
17
|
+
${c.Typography} {
|
|
18
18
|
transition: color 150ms ease-out;
|
|
19
19
|
color: currentColor;
|
|
20
20
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
color: ${({theme:e})=>e.colors.primary700};
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
${
|
|
31
|
-
`,
|
|
30
|
+
${h.buttonFocusStyle};
|
|
31
|
+
`,s=l.default(x.Box)`
|
|
32
32
|
display: flex;
|
|
33
|
-
`,
|
|
33
|
+
`,L=v.forwardRef(({children:e,href:r,to:t,disabled:n=!1,startIcon:i,endIcon:a,...u},d)=>{const p=r?"_blank":void 0,f=r?"noreferrer noopener":void 0;return o.jsxs(q,{as:t&&!n?j.NavLink:"a",target:p,rel:f,to:n?void 0:t,href:n?"#":r,disabled:n,ref:d,...u,children:[i&&o.jsx(s,{as:"span","aria-hidden":!0,paddingRight:2,children:i}),o.jsx(c.Typography,{children:e}),a&&!r&&o.jsx(s,{as:"span","aria-hidden":!0,paddingLeft:2,children:a}),r&&o.jsx(s,{as:"span","aria-hidden":!0,paddingLeft:2,children:o.jsx(g.ExternalLink,{})})]})});exports.Link=L;
|
package/dist/Link/Link.js
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { ExternalLink as u } from "@strapi/icons";
|
|
4
|
+
import { NavLink as g } from "react-router-dom";
|
|
3
5
|
import s from "styled-components";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Typography as
|
|
7
|
-
|
|
8
|
-
import { buttonFocusStyle as L } from "../themes/utils.js";
|
|
9
|
-
const $ = s.a`
|
|
6
|
+
import { Box as y } from "../Box/Box.js";
|
|
7
|
+
import { buttonFocusStyle as h } from "../themes/utils.js";
|
|
8
|
+
import { Typography as p } from "../Typography/Typography.js";
|
|
9
|
+
const x = s.a`
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
text-decoration: none;
|
|
13
|
-
pointer-events: ${({
|
|
14
|
-
|
|
13
|
+
pointer-events: ${({
|
|
14
|
+
disabled: r
|
|
15
|
+
}) => r ? "none" : void 0};
|
|
16
|
+
color: ${({
|
|
17
|
+
disabled: r,
|
|
18
|
+
theme: o
|
|
19
|
+
}) => r ? o.colors.neutral600 : o.colors.primary600};
|
|
15
20
|
|
|
16
21
|
svg path {
|
|
17
22
|
transition: fill 150ms ease-out;
|
|
@@ -22,69 +27,62 @@ const $ = s.a`
|
|
|
22
27
|
font-size: ${10 / 16}rem;
|
|
23
28
|
}
|
|
24
29
|
|
|
25
|
-
${
|
|
30
|
+
${p} {
|
|
26
31
|
transition: color 150ms ease-out;
|
|
27
32
|
color: currentColor;
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
&:hover {
|
|
31
|
-
color: ${({
|
|
36
|
+
color: ${({
|
|
37
|
+
theme: r
|
|
38
|
+
}) => r.colors.primary500};
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
&:active {
|
|
35
|
-
color: ${({
|
|
42
|
+
color: ${({
|
|
43
|
+
theme: r
|
|
44
|
+
}) => r.colors.primary700};
|
|
36
45
|
}
|
|
37
46
|
|
|
38
|
-
${
|
|
39
|
-
`,
|
|
47
|
+
${h};
|
|
48
|
+
`, t = s(y)`
|
|
40
49
|
display: flex;
|
|
41
|
-
`,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
`, z = f.forwardRef(({
|
|
51
|
+
children: r,
|
|
52
|
+
href: o,
|
|
53
|
+
to: i,
|
|
54
|
+
disabled: n = !1,
|
|
55
|
+
startIcon: a,
|
|
56
|
+
endIcon: l,
|
|
57
|
+
...c
|
|
58
|
+
}, d) => m(x, {
|
|
59
|
+
as: i && !n ? g : "a",
|
|
60
|
+
target: o ? "_blank" : void 0,
|
|
61
|
+
rel: o ? "noreferrer noopener" : void 0,
|
|
62
|
+
to: n ? void 0 : i,
|
|
63
|
+
href: n ? "#" : o,
|
|
64
|
+
disabled: n,
|
|
65
|
+
ref: d,
|
|
66
|
+
...c,
|
|
67
|
+
children: [a && e(t, {
|
|
53
68
|
as: "span",
|
|
54
69
|
"aria-hidden": !0,
|
|
55
|
-
paddingRight: 2
|
|
56
|
-
|
|
70
|
+
paddingRight: 2,
|
|
71
|
+
children: a
|
|
72
|
+
}), e(p, {
|
|
73
|
+
children: r
|
|
74
|
+
}), l && !o && e(t, {
|
|
57
75
|
as: "span",
|
|
58
76
|
"aria-hidden": !0,
|
|
59
|
-
paddingLeft: 2
|
|
60
|
-
|
|
77
|
+
paddingLeft: 2,
|
|
78
|
+
children: l
|
|
79
|
+
}), o && e(t, {
|
|
61
80
|
as: "span",
|
|
62
81
|
"aria-hidden": !0,
|
|
63
|
-
paddingLeft: 2
|
|
64
|
-
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
a.defaultProps = {
|
|
68
|
-
endIcon: void 0,
|
|
69
|
-
href: void 0,
|
|
70
|
-
to: void 0,
|
|
71
|
-
disabled: !1,
|
|
72
|
-
startIcon: void 0
|
|
73
|
-
};
|
|
74
|
-
a.propTypes = {
|
|
75
|
-
children: n.node.isRequired,
|
|
76
|
-
disabled: n.bool,
|
|
77
|
-
endIcon: n.element,
|
|
78
|
-
href(e) {
|
|
79
|
-
if (!e.disabled && !e.to && !e.href)
|
|
80
|
-
return new Error("href must be defined");
|
|
81
|
-
},
|
|
82
|
-
startIcon: n.element,
|
|
83
|
-
to(e) {
|
|
84
|
-
if (!e.disabled && !e.href && !e.to)
|
|
85
|
-
return new Error("to must be defined");
|
|
86
|
-
}
|
|
87
|
-
};
|
|
82
|
+
paddingLeft: 2,
|
|
83
|
+
children: e(u, {})
|
|
84
|
+
})]
|
|
85
|
+
}));
|
|
88
86
|
export {
|
|
89
|
-
|
|
87
|
+
z as Link
|
|
90
88
|
};
|
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
padding: ${({theme:e,size:a})=>`${a==="S"?e.spaces[2]:"10px"} ${e.spaces[4]}`};
|
|
3
|
-
background: ${({theme:e})=>e.colors.buttonPrimary600};
|
|
4
|
-
border: 1px solid ${({theme:e})=>e.colors.buttonPrimary600};
|
|
5
|
-
border-radius: ${({theme:e})=>e.borderRadius};
|
|
6
|
-
${s.Box} {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
${l.Typography} {
|
|
11
|
-
color: ${({theme:e})=>e.colors.buttonNeutral0};
|
|
12
|
-
}
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),j=require("react"),h=require("react-router-dom"),m=require("styled-components"),x=require("../BaseButton/BaseButton.cjs"),o=require("../Button/utils.cjs"),l=require("../Flex/Flex.cjs"),v=require("../Typography/Typography.cjs"),B=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function S(e){if(e&&e.__esModule)return e;const n=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(n,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const _=S(j),q=B(m),k=q.default(x.BaseButtonWrapper)`
|
|
13
2
|
&[aria-disabled='true'] {
|
|
14
|
-
${
|
|
3
|
+
${o.getDisabledStyle}
|
|
15
4
|
&:active {
|
|
16
|
-
${
|
|
5
|
+
${o.getDisabledStyle}
|
|
17
6
|
}
|
|
18
7
|
}
|
|
19
8
|
&:hover {
|
|
20
|
-
${
|
|
9
|
+
${o.getHoverStyle}
|
|
21
10
|
}
|
|
22
11
|
&:active {
|
|
23
|
-
${
|
|
12
|
+
${o.getActiveStyle}
|
|
24
13
|
}
|
|
25
|
-
${
|
|
26
|
-
|
|
27
|
-
Link specific properties
|
|
28
|
-
*/
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
text-decoration: none;
|
|
31
|
-
pointer-events: ${({disabled:e})=>e?"none":void 0};
|
|
32
|
-
`,i=o.default.forwardRef(({variant:e,startIcon:a,endIcon:c,disabled:n,children:f,size:p,href:d,to:y,...v},b)=>{const B=d?"_blank":void 0,m=d?"noreferrer noopener":void 0;return o.default.createElement(k,{ref:b,"aria-disabled":n,size:p,variant:e,target:B,rel:m,to:n?void 0:y,href:n?"#":d,...v,as:y&&!n?$.NavLink:"a"},a&&o.default.createElement(s.Box,{"aria-hidden":!0,paddingRight:2},a),p==="S"?o.default.createElement(l.Typography,{variant:"pi",fontWeight:"bold"},f):o.default.createElement(l.Typography,{fontWeight:"bold"},f),c&&o.default.createElement(s.Box,{"aria-hidden":!0,paddingLeft:2},c))});i.displayName="LinkButton";i.defaultProps={disabled:!1,startIcon:void 0,endIcon:void 0,size:"S",variant:"default",onClick:void 0,href:void 0,to:void 0};i.propTypes={children:t.default.node.isRequired,disabled:t.default.bool,endIcon:t.default.element,href(e){if(!e.disabled&&!e.to&&!e.href)return new Error("href must be defined")},onClick:t.default.func,size:t.default.oneOf(g.BUTTON_SIZES),startIcon:t.default.element,to(e){if(!e.disabled&&!e.href&&!e.to)return new Error("to must be defined")},variant:t.default.oneOf(g.VARIANTS)};exports.LinkButton=i;
|
|
14
|
+
${o.getVariantStyle}
|
|
15
|
+
`,R=_.forwardRef(({variant:e="default",startIcon:n,endIcon:r,disabled:t=!1,children:p,size:i="S",href:u,to:s,...g},f)=>{const y=u?"_blank":void 0,b=u?"noreferrer noopener":void 0,c=i==="S"?2:"10px",d=4;return a.jsxs(k,{ref:f,"aria-disabled":t,size:i,variant:e,target:y,rel:b,to:t?void 0:s,href:t?"#":u,background:"buttonPrimary600",borderColor:"buttonPrimary600",hasRadius:!0,gap:2,inline:!0,paddingBottom:c,paddingLeft:d,paddingRight:d,paddingTop:c,pointerEvents:t?"none":void 0,...g,as:s&&!t?h.NavLink:"a",children:[n&&a.jsx(l.Flex,{"aria-hidden":!0,children:n}),a.jsx(v.Typography,{variant:i==="S"?"pi":void 0,fontWeight:"bold",textColor:"buttonNeutral0",children:p}),r&&a.jsx(l.Flex,{"aria-hidden":!0,children:r})]})});exports.LinkButton=R;
|
|
@@ -1,99 +1,72 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const L = y(B)`
|
|
11
|
-
padding: ${({ theme: e, size: o }) => `${o === "S" ? e.spaces[2] : "10px"} ${e.spaces[4]}`};
|
|
12
|
-
background: ${({ theme: e }) => e.colors.buttonPrimary600};
|
|
13
|
-
border: 1px solid ${({ theme: e }) => e.colors.buttonPrimary600};
|
|
14
|
-
border-radius: ${({ theme: e }) => e.borderRadius};
|
|
15
|
-
${d} {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
${a} {
|
|
20
|
-
color: ${({ theme: e }) => e.colors.buttonNeutral0};
|
|
21
|
-
}
|
|
1
|
+
import { jsxs as v, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as y from "react";
|
|
3
|
+
import { NavLink as S } from "react-router-dom";
|
|
4
|
+
import b from "styled-components";
|
|
5
|
+
import { BaseButtonWrapper as x } from "../BaseButton/BaseButton.js";
|
|
6
|
+
import { getDisabledStyle as f, getHoverStyle as k, getActiveStyle as $, getVariantStyle as B } from "../Button/utils.js";
|
|
7
|
+
import { Flex as u } from "../Flex/Flex.js";
|
|
8
|
+
import { Typography as L } from "../Typography/Typography.js";
|
|
9
|
+
const R = b(x)`
|
|
22
10
|
&[aria-disabled='true'] {
|
|
23
|
-
${
|
|
11
|
+
${f}
|
|
24
12
|
&:active {
|
|
25
|
-
${
|
|
13
|
+
${f}
|
|
26
14
|
}
|
|
27
15
|
}
|
|
28
16
|
&:hover {
|
|
29
|
-
${
|
|
17
|
+
${k}
|
|
30
18
|
}
|
|
31
19
|
&:active {
|
|
32
|
-
${
|
|
20
|
+
${$}
|
|
33
21
|
}
|
|
34
|
-
${
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
22
|
+
${B}
|
|
23
|
+
`, A = y.forwardRef(({
|
|
24
|
+
variant: l = "default",
|
|
25
|
+
startIcon: o,
|
|
26
|
+
endIcon: i,
|
|
27
|
+
disabled: r = !1,
|
|
28
|
+
children: m,
|
|
29
|
+
size: t = "S",
|
|
30
|
+
href: e,
|
|
31
|
+
to: a,
|
|
32
|
+
...g
|
|
33
|
+
}, s) => {
|
|
34
|
+
const c = e ? "_blank" : void 0, h = e ? "noreferrer noopener" : void 0, d = t === "S" ? 2 : "10px", p = 4;
|
|
35
|
+
return v(R, {
|
|
36
|
+
ref: s,
|
|
37
|
+
"aria-disabled": r,
|
|
38
|
+
size: t,
|
|
39
|
+
variant: l,
|
|
40
|
+
target: c,
|
|
41
|
+
rel: h,
|
|
42
|
+
to: r ? void 0 : a,
|
|
43
|
+
href: r ? "#" : e,
|
|
44
|
+
background: "buttonPrimary600",
|
|
45
|
+
borderColor: "buttonPrimary600",
|
|
46
|
+
hasRadius: !0,
|
|
47
|
+
gap: 2,
|
|
48
|
+
inline: !0,
|
|
49
|
+
paddingBottom: d,
|
|
50
|
+
paddingLeft: p,
|
|
51
|
+
paddingRight: p,
|
|
52
|
+
paddingTop: d,
|
|
53
|
+
pointerEvents: r ? "none" : void 0,
|
|
54
|
+
...g,
|
|
55
|
+
as: a && !r ? S : "a",
|
|
56
|
+
children: [o && n(u, {
|
|
56
57
|
"aria-hidden": !0,
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
variant: "pi",
|
|
60
|
-
fontWeight: "bold"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
58
|
+
children: o
|
|
59
|
+
}), n(L, {
|
|
60
|
+
variant: t === "S" ? "pi" : void 0,
|
|
61
|
+
fontWeight: "bold",
|
|
62
|
+
textColor: "buttonNeutral0",
|
|
63
|
+
children: m
|
|
64
|
+
}), i && n(u, {
|
|
64
65
|
"aria-hidden": !0,
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
l.displayName = "LinkButton";
|
|
70
|
-
l.defaultProps = {
|
|
71
|
-
disabled: !1,
|
|
72
|
-
startIcon: void 0,
|
|
73
|
-
endIcon: void 0,
|
|
74
|
-
size: "S",
|
|
75
|
-
variant: "default",
|
|
76
|
-
onClick: void 0,
|
|
77
|
-
href: void 0,
|
|
78
|
-
to: void 0
|
|
79
|
-
};
|
|
80
|
-
l.propTypes = {
|
|
81
|
-
children: r.node.isRequired,
|
|
82
|
-
disabled: r.bool,
|
|
83
|
-
endIcon: r.element,
|
|
84
|
-
href(e) {
|
|
85
|
-
if (!e.disabled && !e.to && !e.href)
|
|
86
|
-
return new Error("href must be defined");
|
|
87
|
-
},
|
|
88
|
-
onClick: r.func,
|
|
89
|
-
size: r.oneOf(E),
|
|
90
|
-
startIcon: r.element,
|
|
91
|
-
to(e) {
|
|
92
|
-
if (!e.disabled && !e.href && !e.to)
|
|
93
|
-
return new Error("to must be defined");
|
|
94
|
-
},
|
|
95
|
-
variant: r.oneOf(x)
|
|
96
|
-
};
|
|
66
|
+
children: i
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
69
|
+
});
|
|
97
70
|
export {
|
|
98
|
-
|
|
71
|
+
A as LinkButton
|
|
99
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=require("./constants.cjs"),s=require("../VisuallyHidden/VisuallyHidden.cjs"),l=()=>e.jsxs(s.VisuallyHidden,{children:[e.jsx("p",{role:"log","aria-live":"polite",id:i.LiveRegionIds.Log,"aria-relevant":"all"}),e.jsx("p",{role:"status","aria-live":"polite",id:i.LiveRegionIds.Status,"aria-relevant":"all"}),e.jsx("p",{role:"alert","aria-live":"assertive",id:i.LiveRegionIds.Alert,"aria-relevant":"all"})]});exports.LiveRegions=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { VisuallyHidden as a } from "../VisuallyHidden/VisuallyHidden.js";
|
|
3
2
|
import { LiveRegionIds as i } from "./constants.js";
|
|
3
|
+
import { VisuallyHidden as a } from "../VisuallyHidden/VisuallyHidden.js";
|
|
4
4
|
const s = () => r(a, {
|
|
5
5
|
children: [e("p", {
|
|
6
6
|
role: "log",
|
package/dist/Loader/Loader.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 s=require("react/jsx-runtime"),o=require("react"),n=require("styled-components"),i=require("./assets/loader.cjs"),l=require("../VisuallyHidden/VisuallyHidden.cjs"),c=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function d(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=d(o),f=c(n),m=n.keyframes`
|
|
2
2
|
from {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
5
5
|
to {
|
|
6
6
|
transform: rotate(359deg);
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
9
|
-
animation: ${
|
|
8
|
+
`,g=f.default.img`
|
|
9
|
+
animation: ${m} 1s infinite linear;
|
|
10
10
|
will-change: transform;
|
|
11
11
|
${({small:e,theme:t})=>e&&`width: ${t.spaces[6]}; height: ${t.spaces[6]};`}
|
|
12
|
-
`,
|
|
12
|
+
`,y=u.forwardRef(({children:e,small:t=!1,...r},a)=>s.jsxs("div",{role:"alert","aria-live":"assertive",ref:a,...r,children:[s.jsx(l.VisuallyHidden,{children:e}),s.jsx(g,{src:i,"aria-hidden":!0,small:t})]}));exports.Loader=y;
|
package/dist/Loader/Loader.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import m, { keyframes as n } from "styled-components";
|
|
4
|
-
import
|
|
5
|
-
import f from "
|
|
6
|
-
const
|
|
4
|
+
import d from "./assets/loader.js";
|
|
5
|
+
import { VisuallyHidden as f } from "../VisuallyHidden/VisuallyHidden.js";
|
|
6
|
+
const l = n`
|
|
7
7
|
from {
|
|
8
8
|
transform: rotate(0deg);
|
|
9
9
|
}
|
|
@@ -11,27 +11,29 @@ const p = n`
|
|
|
11
11
|
transform: rotate(359deg);
|
|
12
12
|
}
|
|
13
13
|
`, c = m.img`
|
|
14
|
-
animation: ${
|
|
14
|
+
animation: ${l} 1s infinite linear;
|
|
15
15
|
will-change: transform;
|
|
16
|
-
${({
|
|
17
|
-
|
|
16
|
+
${({
|
|
17
|
+
small: e,
|
|
18
|
+
theme: r
|
|
19
|
+
}) => e && `width: ${r.spaces[6]}; height: ${r.spaces[6]};`}
|
|
20
|
+
`, $ = s.forwardRef(({
|
|
21
|
+
children: e,
|
|
22
|
+
small: r = !1,
|
|
23
|
+
...a
|
|
24
|
+
}, t) => i("div", {
|
|
18
25
|
role: "alert",
|
|
19
26
|
"aria-live": "assertive",
|
|
20
|
-
ref:
|
|
21
|
-
...
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
o.propTypes = {
|
|
32
|
-
children: t.node.isRequired,
|
|
33
|
-
small: t.bool
|
|
34
|
-
};
|
|
27
|
+
ref: t,
|
|
28
|
+
...a,
|
|
29
|
+
children: [o(f, {
|
|
30
|
+
children: e
|
|
31
|
+
}), o(c, {
|
|
32
|
+
src: d,
|
|
33
|
+
"aria-hidden": !0,
|
|
34
|
+
small: r
|
|
35
|
+
})]
|
|
36
|
+
}));
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
$ as Loader
|
|
37
39
|
};
|