@strapi/design-system 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.cjs +5 -5
- package/dist/Accordion/Accordion.js +45 -44
- package/dist/Accordion/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +4 -4
- package/dist/Accordion/AccordionGroup.cjs +4 -4
- package/dist/Accordion/AccordionGroup.js +18 -18
- package/dist/Accordion/AccordionToggle.cjs +2 -2
- package/dist/Accordion/AccordionToggle.js +11 -11
- package/dist/Alert/Alert.cjs +1 -1
- package/dist/Alert/Alert.js +8 -8
- package/dist/Avatar/Avatar.cjs +5 -5
- package/dist/Avatar/Avatar.js +11 -11
- package/dist/Avatar/AvatarGroup.cjs +2 -2
- package/dist/Avatar/AvatarGroup.js +4 -4
- package/dist/BaseButton/BaseButton.cjs +5 -11
- package/dist/BaseButton/BaseButton.js +31 -38
- package/dist/BaseCheckbox/BaseCheckbox.cjs +3 -3
- package/dist/BaseCheckbox/BaseCheckbox.js +22 -22
- package/dist/BaseRadio/BaseRadio.cjs +2 -2
- package/dist/BaseRadio/BaseRadio.js +4 -4
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +28 -26
- package/dist/Box/Box.cjs +1 -1
- package/dist/Box/Box.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.cjs +4 -4
- package/dist/Breadcrumbs/Breadcrumbs.js +12 -12
- package/dist/Button/Button.cjs +10 -27
- package/dist/Button/Button.js +65 -85
- package/dist/Button/utils.cjs +22 -22
- package/dist/Button/utils.js +2 -2
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +15 -14
- package/dist/Card/CardAsset.js +4 -4
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +4 -4
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +6 -6
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +1 -1
- package/dist/CarouselInput/Carousel.cjs +2 -2
- package/dist/CarouselInput/Carousel.js +19 -64
- package/dist/CarouselInput/CarouselActions.js +1 -9
- package/dist/CarouselInput/CarouselImage.js +1 -10
- package/dist/CarouselInput/CarouselInput.cjs +1 -1
- package/dist/CarouselInput/CarouselInput.js +19 -24
- package/dist/CarouselInput/CarouselSlide.js +13 -9
- package/dist/Checkbox/Checkbox.cjs +2 -2
- package/dist/Checkbox/Checkbox.js +7 -26
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +106 -120
- package/dist/Combobox/ComboboxOption.cjs +1 -1
- package/dist/Combobox/ComboboxOption.js +18 -17
- package/dist/DatePicker/DatePicker.cjs +1 -1
- package/dist/DatePicker/DatePicker.js +47 -46
- package/dist/DatePicker/DatePickerCalendar.cjs +1 -1
- package/dist/DatePicker/DatePickerCalendar.js +28 -61
- package/dist/DatePicker/DatePickerTd.js +1 -12
- package/dist/DatePicker/DatePickerTh.cjs +3 -3
- package/dist/DatePicker/DatePickerTh.js +7 -16
- package/dist/DatePicker/components.cjs +3 -3
- package/dist/DatePicker/components.js +6 -6
- package/dist/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/DateTimePicker/DateTimePicker.js +64 -61
- package/dist/DateTimePicker/DateTimePickerProps.js +1 -3
- package/dist/Dialog/Dialog.cjs +4 -4
- package/dist/Dialog/Dialog.js +26 -37
- package/dist/Dialog/DialogBody.cjs +1 -1
- package/dist/Dialog/DialogBody.js +2 -11
- package/dist/Dialog/DialogFooter.cjs +1 -1
- package/dist/Dialog/DialogFooter.js +2 -7
- package/dist/DismissibleLayer/DismissibleLayer.js +1 -4
- package/dist/Divider/Divider.js +1 -5
- package/dist/EmptyStateLayout/EmptyStateLayout.cjs +1 -1
- package/dist/EmptyStateLayout/EmptyStateLayout.js +2 -16
- package/dist/EmptyStateLayout/story-assets/Illo.js +60 -45
- package/dist/Field/Field.cjs +1 -1
- package/dist/Field/Field.js +12 -13
- package/dist/Field/FieldAction.cjs +1 -1
- package/dist/Field/FieldAction.js +2 -6
- package/dist/Field/FieldError.js +1 -7
- package/dist/Field/FieldHint.js +1 -6
- package/dist/Field/FieldInput.cjs +4 -4
- package/dist/Field/FieldInput.js +26 -34
- package/dist/Field/FieldLabel.cjs +1 -1
- package/dist/Field/FieldLabel.js +3 -16
- package/dist/FocusTrap/FocusTrap.js +1 -5
- package/dist/Grid/Grid.cjs +3 -3
- package/dist/Grid/Grid.js +12 -15
- package/dist/Grid/GridItem.cjs +2 -2
- package/dist/Grid/GridItem.js +5 -13
- package/dist/IconButton/IconButton.cjs +7 -12
- package/dist/IconButton/IconButton.js +88 -84
- package/dist/JSONInput/JSONInput.cjs +1 -1
- package/dist/JSONInput/JSONInput.js +85 -78
- package/dist/JSONInput/JSONInputContainer.cjs +10 -10
- package/dist/JSONInput/JSONInputContainer.js +22 -15
- package/dist/Layout/ActionLayout.js +1 -13
- package/dist/Layout/ContentLayout.js +1 -4
- package/dist/Layout/HeaderLayout.cjs +1 -1
- package/dist/Layout/HeaderLayout.js +35 -64
- package/dist/Layout/Layout.js +1 -5
- package/dist/Layout/TwoColsLayout.js +1 -17
- package/dist/Link/Link.cjs +5 -5
- package/dist/Link/Link.js +55 -57
- package/dist/LinkButton/LinkButton.cjs +7 -24
- package/dist/LinkButton/LinkButton.js +60 -87
- package/dist/LiveRegions/LiveRegions.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.js +1 -1
- package/dist/Loader/Loader.cjs +4 -4
- package/dist/Loader/Loader.js +26 -24
- package/dist/Main/Main.js +1 -6
- package/dist/Main/SkipToContent.cjs +2 -2
- package/dist/Main/SkipToContent.js +17 -13
- package/dist/MainNav/MainNav.cjs +2 -2
- package/dist/MainNav/MainNav.js +21 -20
- package/dist/MainNav/NavBrand.cjs +2 -2
- package/dist/MainNav/NavBrand.js +4 -38
- package/dist/MainNav/NavCondense.cjs +2 -2
- package/dist/MainNav/NavCondense.js +10 -18
- package/dist/MainNav/NavFooter.js +1 -3
- package/dist/MainNav/NavLink.cjs +4 -4
- package/dist/MainNav/NavLink.js +8 -34
- package/dist/MainNav/NavSection.cjs +1 -1
- package/dist/MainNav/NavSection.js +5 -38
- package/dist/MainNav/NavSections.cjs +2 -2
- package/dist/MainNav/NavSections.js +4 -15
- package/dist/MainNav/NavUser.cjs +2 -2
- package/dist/MainNav/NavUser.js +6 -27
- package/dist/ModalLayout/ModalBody.js +1 -4
- package/dist/ModalLayout/ModalFooter.cjs +1 -1
- package/dist/ModalLayout/ModalFooter.js +2 -10
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +8 -20
- package/dist/ModalLayout/ModalLayout.cjs +3 -3
- package/dist/ModalLayout/ModalLayout.js +23 -31
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +54 -59
- package/dist/Pagination/Pagination.cjs +2 -2
- package/dist/Pagination/Pagination.js +11 -16
- package/dist/Pagination/components.cjs +3 -3
- package/dist/Pagination/components.js +31 -38
- package/dist/Popover/Popover.cjs +3 -3
- package/dist/Popover/Popover.js +5 -5
- package/dist/Portal/Portal.cjs +1 -1
- package/dist/Portal/Portal.js +10 -12
- package/dist/ProgressBar/ProgressBar.js +17 -14
- package/dist/Radio/Radio.cjs +2 -2
- package/dist/Radio/Radio.js +4 -11
- package/dist/RawTable/RawCell.cjs +1 -1
- package/dist/RawTable/RawCell.js +5 -14
- package/dist/RawTable/RawTable.cjs +1 -1
- package/dist/RawTable/RawTable.js +36 -35
- package/dist/RawTable/RawTbody.js +1 -3
- package/dist/RawTable/RawThead.js +1 -3
- package/dist/RawTable/RawTr.js +1 -4
- package/dist/Searchbar/SearchForm.js +1 -4
- package/dist/Searchbar/Searchbar.cjs +3 -3
- package/dist/Searchbar/Searchbar.js +21 -25
- package/dist/Select/MultiSelectNested.js +2 -14
- package/dist/Select/OptGroup.cjs +1 -1
- package/dist/Select/OptGroup.js +14 -10
- package/dist/Select/Option.cjs +3 -3
- package/dist/Select/Option.js +31 -33
- package/dist/Select/Select.cjs +2 -2
- package/dist/Select/Select.js +86 -106
- package/dist/Select/SelectButton.cjs +1 -1
- package/dist/Select/SelectButton.js +14 -11
- package/dist/Select/SelectList.cjs +1 -1
- package/dist/Select/SelectList.js +20 -16
- package/dist/Select/SelectTags.cjs +3 -3
- package/dist/Select/SelectTags.js +17 -15
- package/dist/Select/SingleSelect.cjs +1 -1
- package/dist/Select/SingleSelect.js +1 -1
- package/dist/SimpleMenu/SimpleMenu.cjs +3 -3
- package/dist/SimpleMenu/SimpleMenu.js +43 -67
- package/dist/Status/Status.js +15 -13
- package/dist/SubNav/SubNav.cjs +2 -2
- package/dist/SubNav/SubNav.js +5 -9
- package/dist/SubNav/SubNavHeader.cjs +2 -2
- package/dist/SubNav/SubNavHeader.js +31 -53
- package/dist/SubNav/SubNavLink.cjs +3 -3
- package/dist/SubNav/SubNavLink.js +18 -22
- package/dist/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/SubNav/SubNavLinkSection.js +5 -30
- package/dist/SubNav/SubNavSection.cjs +2 -2
- package/dist/SubNav/SubNavSection.js +23 -30
- package/dist/SubNav/SubNavSectionLabel.cjs +2 -2
- package/dist/SubNav/SubNavSectionLabel.js +15 -24
- package/dist/SubNav/SubNavSections.cjs +1 -1
- package/dist/SubNav/SubNavSections.js +3 -12
- package/dist/Switch/Switch.cjs +2 -2
- package/dist/Switch/Switch.js +16 -17
- package/dist/Table/Cell.cjs +1 -1
- package/dist/Table/Cell.js +3 -8
- package/dist/Table/TFooter.cjs +2 -2
- package/dist/Table/TFooter.js +3 -17
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.js +2 -18
- package/dist/Table/Tbody.js +1 -3
- package/dist/Table/Thead.js +1 -3
- package/dist/Table/Tr.js +1 -3
- package/dist/Tabs/TabGroup.cjs +1 -1
- package/dist/Tabs/TabGroup.js +30 -27
- package/dist/Tabs/TabPanels.js +2 -10
- package/dist/Tabs/Tabs.cjs +1 -1
- package/dist/Tabs/Tabs.js +43 -51
- package/dist/Tag/Tag.cjs +1 -1
- package/dist/Tag/Tag.js +20 -23
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +15 -15
- package/dist/TextInput/TextInput.cjs +1 -1
- package/dist/TextInput/TextInput.js +6 -24
- package/dist/Textarea/Textarea.cjs +2 -2
- package/dist/Textarea/Textarea.js +10 -25
- package/dist/Textarea/TextareaInput.cjs +1 -1
- package/dist/Textarea/TextareaInput.js +15 -15
- package/dist/TimePicker/TimePicker.cjs +2 -2
- package/dist/TimePicker/TimePicker.js +26 -25
- package/dist/ToggleCheckbox/ToggleCheckbox.cjs +5 -5
- package/dist/ToggleCheckbox/ToggleCheckbox.js +85 -60
- package/dist/ToggleInput/ToggleInput.cjs +3 -3
- package/dist/ToggleInput/ToggleInput.js +14 -32
- package/dist/Tooltip/Tooltip.cjs +2 -2
- package/dist/Tooltip/Tooltip.js +62 -53
- package/dist/Tooltip/hooks/useTooltipHandlers.cjs +1 -1
- package/dist/Tooltip/hooks/useTooltipHandlers.js +7 -7
- package/dist/Tooltip/hooks/useTooltipLayout.cjs +1 -1
- package/dist/Tooltip/hooks/useTooltipLayout.js +8 -5
- package/dist/Typography/Typography.cjs +3 -2
- package/dist/Typography/Typography.js +17 -14
- package/dist/helpers/objects.cjs +1 -1
- package/dist/helpers/objects.js +1 -1
- package/dist/hooks/useId.cjs +1 -0
- package/dist/hooks/useId.js +13 -0
- package/dist/themes/extendTheme.cjs +1 -1
- package/dist/themes/extendTheme.js +4 -4
- package/dist/v2/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/dist/v2/Breadcrumbs/Breadcrumbs.js +4 -13
- package/dist/v2/Breadcrumbs/Crumb.js +11 -12
- package/dist/v2/Breadcrumbs/CrumbLink.js +1 -3
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +5 -11
- package/dist/v2/Breadcrumbs/Divider.js +1 -8
- package/dist/v2/Link/Link.cjs +2 -2
- package/dist/v2/Link/Link.js +5 -24
- package/dist/v2/LinkButton/LinkButton.cjs +11 -24
- package/dist/v2/LinkButton/LinkButton.js +62 -84
- package/dist/v2/MainNav/MainNav.cjs +2 -2
- package/dist/v2/MainNav/MainNav.js +21 -20
- package/dist/v2/MainNav/NavBrand.cjs +2 -2
- package/dist/v2/MainNav/NavBrand.js +4 -38
- package/dist/v2/MainNav/NavCondense.cjs +2 -2
- package/dist/v2/MainNav/NavCondense.js +10 -18
- package/dist/v2/MainNav/NavFooter.js +1 -3
- package/dist/v2/MainNav/NavLink.cjs +4 -4
- package/dist/v2/MainNav/NavLink.js +10 -39
- package/dist/v2/MainNav/NavSection.cjs +1 -1
- package/dist/v2/MainNav/NavSection.js +5 -38
- package/dist/v2/MainNav/NavSections.cjs +2 -2
- package/dist/v2/MainNav/NavSections.js +4 -15
- package/dist/v2/MainNav/NavUser.cjs +2 -2
- package/dist/v2/MainNav/NavUser.js +6 -27
- package/dist/v2/Pagination/Pagination.cjs +2 -2
- package/dist/v2/Pagination/Pagination.js +11 -16
- package/dist/v2/Pagination/components.cjs +2 -2
- package/dist/v2/Pagination/components.js +11 -39
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +4 -4
- package/dist/v2/SimpleMenu/SimpleMenu.js +42 -65
- package/dist/v2/SubNav/SubNav.cjs +2 -2
- package/dist/v2/SubNav/SubNav.js +5 -9
- package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
- package/dist/v2/SubNav/SubNavHeader.js +31 -53
- package/dist/v2/SubNav/SubNavLink.cjs +2 -2
- package/dist/v2/SubNav/SubNavLink.js +18 -22
- package/dist/v2/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavLinkSection.js +5 -30
- package/dist/v2/SubNav/SubNavSection.cjs +2 -2
- package/dist/v2/SubNav/SubNavSection.js +26 -33
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +2 -2
- package/dist/v2/SubNav/SubNavSectionLabel.js +15 -24
- package/dist/v2/SubNav/SubNavSections.cjs +1 -1
- package/dist/v2/SubNav/SubNavSections.js +3 -12
- package/package.json +7 -4
|
@@ -1,56 +1,99 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { VisuallyHidden as
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsxs as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import n from "styled-components";
|
|
4
|
+
import { BaseButton as b } from "../BaseButton/BaseButton.js";
|
|
5
|
+
import { Flex as m } from "../Flex/Flex.js";
|
|
6
|
+
import { Tooltip as g } from "../Tooltip/Tooltip.js";
|
|
7
|
+
import { VisuallyHidden as v } from "../VisuallyHidden/VisuallyHidden.js";
|
|
8
|
+
const I = a.forwardRef(({
|
|
9
|
+
label: r,
|
|
10
|
+
noBorder: i = !1,
|
|
11
|
+
children: d,
|
|
12
|
+
icon: c,
|
|
13
|
+
disabled: o = !1,
|
|
14
|
+
onClick: l,
|
|
15
|
+
"aria-label": u,
|
|
16
|
+
...f
|
|
17
|
+
}, p) => {
|
|
18
|
+
const t = $(s, {
|
|
19
|
+
"aria-disabled": o,
|
|
20
|
+
background: o ? "neutral150" : void 0,
|
|
21
|
+
borderWidth: i ? 0 : void 0,
|
|
22
|
+
justifyContent: "center",
|
|
23
|
+
height: `${2}rem`,
|
|
24
|
+
width: `${2}rem`,
|
|
25
|
+
...f,
|
|
26
|
+
ref: p,
|
|
27
|
+
onClick: (h) => {
|
|
28
|
+
!o && l && l(h);
|
|
29
|
+
},
|
|
30
|
+
children: [e(v, {
|
|
31
|
+
as: "span",
|
|
32
|
+
children: r ?? u
|
|
33
|
+
}), a.cloneElement(c || d, {
|
|
34
|
+
"aria-hidden": !0,
|
|
35
|
+
focusable: !1
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
|
+
return r ? e(g, {
|
|
39
|
+
label: r,
|
|
40
|
+
children: t
|
|
41
|
+
}) : t;
|
|
42
|
+
}), s = n(b)`
|
|
15
43
|
svg {
|
|
16
44
|
> g,
|
|
17
45
|
path {
|
|
18
|
-
fill: ${({
|
|
46
|
+
fill: ${({
|
|
47
|
+
theme: r
|
|
48
|
+
}) => r.colors.neutral500};
|
|
19
49
|
}
|
|
20
50
|
}
|
|
51
|
+
|
|
21
52
|
&:hover {
|
|
22
53
|
svg {
|
|
23
54
|
> g,
|
|
24
55
|
path {
|
|
25
|
-
fill: ${({
|
|
56
|
+
fill: ${({
|
|
57
|
+
theme: r
|
|
58
|
+
}) => r.colors.neutral600};
|
|
26
59
|
}
|
|
27
60
|
}
|
|
28
61
|
}
|
|
62
|
+
|
|
29
63
|
&:active {
|
|
30
64
|
svg {
|
|
31
65
|
> g,
|
|
32
66
|
path {
|
|
33
|
-
fill: ${({
|
|
67
|
+
fill: ${({
|
|
68
|
+
theme: r
|
|
69
|
+
}) => r.colors.neutral400};
|
|
34
70
|
}
|
|
35
71
|
}
|
|
36
72
|
}
|
|
73
|
+
|
|
37
74
|
&[aria-disabled='true'] {
|
|
38
|
-
background-color: ${({ theme: r }) => r.colors.neutral150};
|
|
39
75
|
svg {
|
|
40
76
|
path {
|
|
41
|
-
fill: ${({
|
|
77
|
+
fill: ${({
|
|
78
|
+
theme: r
|
|
79
|
+
}) => r.colors.neutral600};
|
|
42
80
|
}
|
|
43
81
|
}
|
|
44
82
|
}
|
|
45
|
-
|
|
46
|
-
`, T = h(k)`
|
|
83
|
+
`, w = n(m)`
|
|
47
84
|
& span:first-child button {
|
|
48
|
-
border-left: 1px solid ${({
|
|
49
|
-
|
|
85
|
+
border-left: 1px solid ${({
|
|
86
|
+
theme: r
|
|
87
|
+
}) => r.colors.neutral200};
|
|
88
|
+
border-radius: ${({
|
|
89
|
+
theme: r
|
|
90
|
+
}) => `${r.borderRadius} 0 0 ${r.borderRadius}`};
|
|
50
91
|
}
|
|
51
92
|
|
|
52
93
|
& span:last-child button {
|
|
53
|
-
border-radius: ${({
|
|
94
|
+
border-radius: ${({
|
|
95
|
+
theme: r
|
|
96
|
+
}) => `0 ${r.borderRadius} ${r.borderRadius} 0`};
|
|
54
97
|
}
|
|
55
98
|
|
|
56
99
|
& ${s} {
|
|
@@ -59,25 +102,35 @@ const s = h(y)`
|
|
|
59
102
|
|
|
60
103
|
svg {
|
|
61
104
|
path {
|
|
62
|
-
fill: ${({
|
|
105
|
+
fill: ${({
|
|
106
|
+
theme: r
|
|
107
|
+
}) => r.colors.neutral700};
|
|
63
108
|
}
|
|
64
109
|
}
|
|
65
110
|
|
|
66
111
|
&:hover {
|
|
67
|
-
background-color: ${({
|
|
112
|
+
background-color: ${({
|
|
113
|
+
theme: r
|
|
114
|
+
}) => r.colors.neutral100};
|
|
68
115
|
|
|
69
116
|
svg {
|
|
70
117
|
path {
|
|
71
|
-
fill: ${({
|
|
118
|
+
fill: ${({
|
|
119
|
+
theme: r
|
|
120
|
+
}) => r.colors.neutral800};
|
|
72
121
|
}
|
|
73
122
|
}
|
|
74
123
|
}
|
|
75
124
|
|
|
76
125
|
&:active {
|
|
77
|
-
background-color: ${({
|
|
126
|
+
background-color: ${({
|
|
127
|
+
theme: r
|
|
128
|
+
}) => r.colors.neutral150};
|
|
78
129
|
svg {
|
|
79
130
|
path {
|
|
80
|
-
fill: ${({
|
|
131
|
+
fill: ${({
|
|
132
|
+
theme: r
|
|
133
|
+
}) => r.colors.neutral900};
|
|
81
134
|
}
|
|
82
135
|
}
|
|
83
136
|
}
|
|
@@ -85,64 +138,15 @@ const s = h(y)`
|
|
|
85
138
|
&[aria-disabled='true'] {
|
|
86
139
|
svg {
|
|
87
140
|
path {
|
|
88
|
-
fill: ${({
|
|
141
|
+
fill: ${({
|
|
142
|
+
theme: r
|
|
143
|
+
}) => r.colors.neutral600};
|
|
89
144
|
}
|
|
90
145
|
}
|
|
91
146
|
}
|
|
92
147
|
}
|
|
93
|
-
|
|
94
|
-
({ label: r, noBorder: n, children: o, icon: e, disabled: a, onClick: c, "aria-label": m, ...u }, f) => {
|
|
95
|
-
const p = (g) => {
|
|
96
|
-
!a && c && c(g);
|
|
97
|
-
};
|
|
98
|
-
return r ? /* @__PURE__ */ l.createElement(v, {
|
|
99
|
-
label: r
|
|
100
|
-
}, /* @__PURE__ */ l.createElement(s, {
|
|
101
|
-
...u,
|
|
102
|
-
ref: f,
|
|
103
|
-
noBorder: n,
|
|
104
|
-
onClick: p,
|
|
105
|
-
"aria-disabled": a
|
|
106
|
-
}, /* @__PURE__ */ l.createElement($, {
|
|
107
|
-
as: "span"
|
|
108
|
-
}, r), b(e || o, {
|
|
109
|
-
"aria-hidden": !0,
|
|
110
|
-
focusable: !1
|
|
111
|
-
}))) : /* @__PURE__ */ l.createElement(s, {
|
|
112
|
-
...u,
|
|
113
|
-
ref: f,
|
|
114
|
-
noBorder: n,
|
|
115
|
-
onClick: p,
|
|
116
|
-
"aria-disabled": a
|
|
117
|
-
}, /* @__PURE__ */ l.createElement($, {
|
|
118
|
-
as: "span"
|
|
119
|
-
}, m), b(e || o, {
|
|
120
|
-
"aria-hidden": !0,
|
|
121
|
-
focusable: !1
|
|
122
|
-
}));
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
d.displayName = "IconButton";
|
|
126
|
-
d.defaultProps = {
|
|
127
|
-
"aria-label": void 0,
|
|
128
|
-
children: void 0,
|
|
129
|
-
disabled: !1,
|
|
130
|
-
icon: void 0,
|
|
131
|
-
label: void 0,
|
|
132
|
-
noBorder: !1,
|
|
133
|
-
onClick: void 0
|
|
134
|
-
};
|
|
135
|
-
const i = (r, n) => (o, e) => !o[e] && r.every((a) => !o[a]) ? new Error(`One of the following props is required: ${e}, ${r.join(", ")}`) : t.checkPropTypes({ [e]: t[n] }, o, "prop", "IconButton");
|
|
136
|
-
d.propTypes = {
|
|
137
|
-
"aria-label": i(["label"], "string"),
|
|
138
|
-
children: i(["icon"], "node"),
|
|
139
|
-
disabled: t.bool,
|
|
140
|
-
icon: i(["children"], "node"),
|
|
141
|
-
label: i(["aria-label"], "string"),
|
|
142
|
-
noBorder: t.bool,
|
|
143
|
-
onClick: t.func
|
|
144
|
-
};
|
|
148
|
+
`;
|
|
145
149
|
export {
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
I as IconButton,
|
|
151
|
+
w as IconButtonGroup
|
|
148
152
|
};
|
|
@@ -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 n=require("react/jsx-runtime"),l=require("react"),j=require("@codemirror/lang-json"),M=require("@uiw/react-codemirror"),N=require("./JSONInputContainer.cjs"),u=require("./utils/decorationExtension.cjs"),H=require("../Field/Field.cjs"),R=require("../Field/FieldLabel.cjs");require("../Field/FieldInput.cjs");const L=require("../Field/FieldHint.cjs"),A=require("../Field/FieldError.cjs");require("../Field/FieldContext.cjs");require("../Field/FieldAction.cjs");const y=require("../Stack/Stack.cjs"),z=({label:d,error:a,hint:S,labelAction:E,value:q="",required:x=!1,disabled:h=!1,onChange:m=()=>null,...p})=>{const i=l.useRef(),o=l.useRef(),c=l.useRef(),k=Boolean(a),C=e=>{const r=o.current?.doc;if(r){const{text:s,to:t}=r.line(e),F=t-s.trimStart().length;t>F&&c.current?.dispatch({effects:u.addMarks.of([u.lineHighlightMark.range(F,t)])})}},b=()=>{const e=o.current?.doc;if(e){const r=e.length||0;c.current?.dispatch({effects:u.filterMarks.of((s,t)=>t<=0||s>=r)})}},f=({state:e,view:r})=>{c.current=r,o.current=e,b();const t=j.jsonParseLinter()(r);t.length&&C(e.doc.lineAt(t[0].from).number)},O=(e,r)=>{f(r),m(e)},I=(e,r)=>{c.current=e,o.current=r,f({view:e,state:r})},{setContainer:g}=M.useCodeMirror({value:q,onCreateEditor:I,container:i.current,editable:!h,extensions:[j.json(),u.markField],onChange:O,theme:"dark",basicSetup:{lineNumbers:!0,bracketMatching:!0,closeBrackets:!0,indentOnInput:!0,syntaxHighlighting:!0,highlightSelectionMatches:!0,tabSize:2}}),J=()=>{h||i.current?.children[0].children[1].children[1]?.focus()};return l.useEffect(()=>{const e=i.current;e&&g(e)},[g]),n.jsx(H.Field,{error:a,hint:S,required:x,children:n.jsxs(y.Stack,{spacing:1,children:[d&&n.jsx(R.FieldLabel,{onClick:J,action:E,children:d}),n.jsx(N.JSONInputContainer,{ref:i,hasError:k,alignItems:"stretch",fontSize:2,hasRadius:!0,...p}),n.jsx(A.FieldError,{}),n.jsx(L.FieldHint,{})]})})};exports.JSONInput=z;
|
|
@@ -1,45 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { json as
|
|
1
|
+
import { jsx as e, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l, useEffect as J } from "react";
|
|
3
|
+
import { json as j, jsonParseLinter as H } from "@codemirror/lang-json";
|
|
4
4
|
import { useCodeMirror as L } from "@uiw/react-codemirror";
|
|
5
|
-
import {
|
|
5
|
+
import { JSONInputContainer as z } from "./JSONInputContainer.js";
|
|
6
|
+
import { markField as A, addMarks as B, lineHighlightMark as R, filterMarks as q } from "./utils/decorationExtension.js";
|
|
7
|
+
import { Field as y } from "../Field/Field.js";
|
|
6
8
|
import { FieldLabel as P } from "../Field/FieldLabel.js";
|
|
7
9
|
import "../Field/FieldInput.js";
|
|
8
|
-
import { FieldHint as
|
|
9
|
-
import { FieldError as
|
|
10
|
+
import { FieldHint as V } from "../Field/FieldHint.js";
|
|
11
|
+
import { FieldError as D } from "../Field/FieldError.js";
|
|
10
12
|
import "../Field/FieldContext.js";
|
|
11
13
|
import "../Field/FieldAction.js";
|
|
12
|
-
import { Stack as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
import { Stack as G } from "../Stack/Stack.js";
|
|
15
|
+
const nr = ({
|
|
16
|
+
label: a,
|
|
17
|
+
error: d,
|
|
18
|
+
hint: p,
|
|
19
|
+
labelAction: g,
|
|
20
|
+
value: E = "",
|
|
21
|
+
required: S = !1,
|
|
22
|
+
disabled: u = !1,
|
|
23
|
+
onChange: k = () => null,
|
|
24
|
+
...C
|
|
25
|
+
}) => {
|
|
26
|
+
const o = l(), i = l(), c = l(), b = Boolean(d), F = (r) => {
|
|
27
|
+
const t = i.current?.doc;
|
|
28
|
+
if (t) {
|
|
29
|
+
const {
|
|
30
|
+
text: s,
|
|
31
|
+
to: n
|
|
32
|
+
} = t.line(r), m = n - s.trimStart().length;
|
|
33
|
+
n > m && c.current?.dispatch({
|
|
34
|
+
effects: B.of([R.range(m, n)])
|
|
35
|
+
});
|
|
36
|
+
}
|
|
21
37
|
}, M = () => {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
const r = i.current?.doc;
|
|
39
|
+
if (r) {
|
|
40
|
+
const t = r.length || 0;
|
|
41
|
+
c.current?.dispatch({
|
|
42
|
+
effects: q.of((s, n) => n <= 0 || s >= t)
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, f = ({
|
|
46
|
+
state: r,
|
|
47
|
+
view: t
|
|
48
|
+
}) => {
|
|
49
|
+
c.current = t, i.current = r, M();
|
|
50
|
+
const n = H()(t);
|
|
51
|
+
n.length && F(r.doc.lineAt(n[0].from).number);
|
|
52
|
+
}, x = (r, t) => {
|
|
53
|
+
f(t), k(r);
|
|
54
|
+
}, N = (r, t) => {
|
|
55
|
+
c.current = r, i.current = t, f({
|
|
56
|
+
view: r,
|
|
57
|
+
state: t
|
|
25
58
|
});
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, { setContainer: p } = L({
|
|
36
|
-
value: b,
|
|
37
|
-
onCreateEditor: A,
|
|
59
|
+
}, {
|
|
60
|
+
setContainer: h
|
|
61
|
+
} = L({
|
|
62
|
+
value: E,
|
|
63
|
+
onCreateEditor: N,
|
|
64
|
+
container: o.current,
|
|
65
|
+
editable: !u,
|
|
66
|
+
extensions: [j(), A],
|
|
67
|
+
onChange: x,
|
|
38
68
|
theme: "dark",
|
|
39
|
-
onChange: N,
|
|
40
|
-
editable: !f,
|
|
41
|
-
container: i.current,
|
|
42
|
-
extensions: [x(), B],
|
|
43
69
|
basicSetup: {
|
|
44
70
|
lineNumbers: !0,
|
|
45
71
|
bracketMatching: !0,
|
|
@@ -47,54 +73,35 @@ const E = ({ label: u, value: b, error: d, hint: S, required: C, onChange: k, di
|
|
|
47
73
|
indentOnInput: !0,
|
|
48
74
|
syntaxHighlighting: !0,
|
|
49
75
|
highlightSelectionMatches: !0,
|
|
50
|
-
tabSize: 2
|
|
51
|
-
defaultCharacterWidth: 5
|
|
76
|
+
tabSize: 2
|
|
52
77
|
}
|
|
53
|
-
}),
|
|
54
|
-
|
|
78
|
+
}), O = () => {
|
|
79
|
+
u || o.current?.children[0].children[1].children[1]?.focus();
|
|
55
80
|
};
|
|
56
81
|
return J(() => {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
}, [
|
|
82
|
+
const r = o.current;
|
|
83
|
+
r && h(r);
|
|
84
|
+
}, [h]), e(y, {
|
|
60
85
|
error: d,
|
|
61
|
-
hint:
|
|
62
|
-
required:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
labelAction: void 0,
|
|
80
|
-
value: "",
|
|
81
|
-
error: void 0,
|
|
82
|
-
hint: void 0,
|
|
83
|
-
required: !1,
|
|
84
|
-
disabled: !1,
|
|
85
|
-
onChange() {
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
E.propTypes = {
|
|
89
|
-
label: t.string,
|
|
90
|
-
labelAction: t.element,
|
|
91
|
-
value: t.string,
|
|
92
|
-
error: t.oneOfType([t.string, t.bool]),
|
|
93
|
-
hint: t.oneOfType([t.string, t.node, t.arrayOf(t.node)]),
|
|
94
|
-
required: t.bool,
|
|
95
|
-
disabled: t.bool,
|
|
96
|
-
onChange: t.func
|
|
86
|
+
hint: p,
|
|
87
|
+
required: S,
|
|
88
|
+
children: I(G, {
|
|
89
|
+
spacing: 1,
|
|
90
|
+
children: [a && e(P, {
|
|
91
|
+
onClick: O,
|
|
92
|
+
action: g,
|
|
93
|
+
children: a
|
|
94
|
+
}), e(z, {
|
|
95
|
+
ref: o,
|
|
96
|
+
hasError: b,
|
|
97
|
+
alignItems: "stretch",
|
|
98
|
+
fontSize: 2,
|
|
99
|
+
hasRadius: !0,
|
|
100
|
+
...C
|
|
101
|
+
}), e(D, {}), e(V, {})]
|
|
102
|
+
})
|
|
103
|
+
});
|
|
97
104
|
};
|
|
98
105
|
export {
|
|
99
|
-
|
|
106
|
+
nr as JSONInput
|
|
100
107
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("styled-components"),r=require("../
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("styled-components"),r=require("../Flex/Flex.cjs"),s=require("../themes/utils.cjs"),l=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},c=l(o),n=c.default(r.Flex)`
|
|
2
2
|
line-height: ${({theme:e})=>e.lineHeights[2]};
|
|
3
3
|
|
|
4
4
|
.cm-editor {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Hard coded since the color is the same between themes,
|
|
7
|
+
* theme.colors.neutral800 changes between themes
|
|
8
|
+
*/
|
|
9
9
|
background-color: #32324d;
|
|
10
10
|
width: 100%;
|
|
11
11
|
outline: none;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.cm-scroller {
|
|
15
15
|
border: 1px solid ${({theme:e,hasError:t})=>t?e.colors.danger600:e.colors.neutral200};
|
|
16
16
|
/* inputFocusStyle will receive hasError prop */
|
|
17
|
-
${
|
|
17
|
+
${s.inputFocusStyle()}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.cm-editor,
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
|
|
25
25
|
.cm-gutters,
|
|
26
26
|
.cm-activeLineGutter {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Hard coded since the color is the same between themes,
|
|
29
|
+
* theme.colors.neutral700 changes between themes
|
|
30
|
+
*/
|
|
31
31
|
background-color: #4a4a6a;
|
|
32
32
|
}
|
|
33
33
|
`;exports.JSONInputContainer=n;
|
|
@@ -1,36 +1,43 @@
|
|
|
1
1
|
import o from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const l = o(
|
|
5
|
-
line-height: ${({
|
|
2
|
+
import { Flex as t } from "../Flex/Flex.js";
|
|
3
|
+
import { inputFocusStyle as c } from "../themes/utils.js";
|
|
4
|
+
const l = o(t)`
|
|
5
|
+
line-height: ${({
|
|
6
|
+
theme: e
|
|
7
|
+
}) => e.lineHeights[2]};
|
|
6
8
|
|
|
7
9
|
.cm-editor {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Hard coded since the color is the same between themes,
|
|
12
|
+
* theme.colors.neutral800 changes between themes
|
|
13
|
+
*/
|
|
12
14
|
background-color: #32324d;
|
|
13
15
|
width: 100%;
|
|
14
16
|
outline: none;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.cm-scroller {
|
|
18
|
-
border: 1px solid ${({
|
|
20
|
+
border: 1px solid ${({
|
|
21
|
+
theme: e,
|
|
22
|
+
hasError: r
|
|
23
|
+
}) => r ? e.colors.danger600 : e.colors.neutral200};
|
|
19
24
|
/* inputFocusStyle will receive hasError prop */
|
|
20
|
-
${
|
|
25
|
+
${c()}
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
.cm-editor,
|
|
24
29
|
.cm-scroller {
|
|
25
|
-
border-radius: ${({
|
|
30
|
+
border-radius: ${({
|
|
31
|
+
theme: e
|
|
32
|
+
}) => e.borderRadius};
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
.cm-gutters,
|
|
29
36
|
.cm-activeLineGutter {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Hard coded since the color is the same between themes,
|
|
39
|
+
* theme.colors.neutral700 changes between themes
|
|
40
|
+
*/
|
|
34
41
|
background-color: #4a4a6a;
|
|
35
42
|
}
|
|
36
43
|
`;
|
|
@@ -11,19 +11,7 @@ const l = a(i)`
|
|
|
11
11
|
margin-left: ${({ pullRight: t }) => t ? "auto" : void 0};
|
|
12
12
|
`, m = a(l)`
|
|
13
13
|
flex-shrink: 0;
|
|
14
|
-
`, p = ({ startActions: t, endActions: o }) => t || o ? /* @__PURE__ */ e.createElement(n, {
|
|
15
|
-
paddingLeft: 10,
|
|
16
|
-
paddingRight: 10
|
|
17
|
-
}, /* @__PURE__ */ e.createElement(n, {
|
|
18
|
-
paddingBottom: 4
|
|
19
|
-
}, /* @__PURE__ */ e.createElement(i, {
|
|
20
|
-
justifyContent: "space-between",
|
|
21
|
-
alignItems: "flex-start"
|
|
22
|
-
}, t && /* @__PURE__ */ e.createElement(l, {
|
|
23
|
-
wrap: "wrap"
|
|
24
|
-
}, t), o && /* @__PURE__ */ e.createElement(m, {
|
|
25
|
-
pullRight: !0
|
|
26
|
-
}, o)))) : null;
|
|
14
|
+
`, p = ({ startActions: t, endActions: o }) => t || o ? /* @__PURE__ */ e.createElement(n, { paddingLeft: 10, paddingRight: 10 }, /* @__PURE__ */ e.createElement(n, { paddingBottom: 4 }, /* @__PURE__ */ e.createElement(i, { justifyContent: "space-between", alignItems: "flex-start" }, t && /* @__PURE__ */ e.createElement(l, { wrap: "wrap" }, t), o && /* @__PURE__ */ e.createElement(m, { pullRight: !0 }, o)))) : null;
|
|
27
15
|
p.defaultProps = {
|
|
28
16
|
endActions: void 0,
|
|
29
17
|
startActions: void 0
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import o from "prop-types";
|
|
3
3
|
import { Box as r } from "../Box/Box.js";
|
|
4
|
-
const p = ({ children: e }) => /* @__PURE__ */ t.createElement(r, {
|
|
5
|
-
paddingLeft: 10,
|
|
6
|
-
paddingRight: 10
|
|
7
|
-
}, e);
|
|
4
|
+
const p = ({ children: e }) => /* @__PURE__ */ t.createElement(r, { paddingLeft: 10, paddingRight: 10 }, e);
|
|
8
5
|
p.propTypes = {
|
|
9
6
|
children: o.node.isRequired
|
|
10
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),E=require("
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react"),E=require("prop-types"),v=require("styled-components"),d=require("../Box/Box.cjs"),i=require("../Flex/Flex.cjs"),B=require("../helpers/useElementOnScreen.cjs"),b=require("../helpers/useResizeObserver.cjs"),s=require("../Typography/Typography.cjs"),p=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},e=p(c),a=p(E),R=p(v),T=()=>{const t=c.useRef(null),[l,r]=c.useState(null),[n,o]=B.useElementOnScreen({root:null,rootMargin:"0px",threshold:0});return b.useResizeObserver(n,()=>{n.current&&r(n.current.getBoundingClientRect())}),c.useEffect(()=>{t.current&&r(t.current.getBoundingClientRect())},[t]),{containerRef:n,isVisible:o,baseHeaderLayoutRef:t,headerSize:l}},f=t=>{const{containerRef:l,isVisible:r,baseHeaderLayoutRef:n,headerSize:o}=T();return e.default.createElement(e.default.Fragment,null,e.default.createElement("div",{style:{height:o?.height},ref:l},r&&e.default.createElement(u,{ref:n,...t})),!r&&e.default.createElement(u,{...t,sticky:!0,width:o?.width}))};f.displayName="HeaderLayout";const L=R.default(d.Box)`
|
|
2
2
|
width: ${t=>t.width}px;
|
|
3
3
|
`,u=e.default.forwardRef(({navigationAction:t,primaryAction:l,secondaryAction:r,subtitle:n,title:o,sticky:m,width:h,...y},x)=>{const g=typeof n=="string";return m?e.default.createElement(L,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,position:"fixed",top:0,right:0,background:"neutral0",shadow:"tableShadow",width:h,zIndex:4,"data-strapi-header-sticky":!0},e.default.createElement(i.Flex,{justifyContent:"space-between"},e.default.createElement(i.Flex,null,t&&e.default.createElement(d.Box,{paddingRight:3},t),e.default.createElement(d.Box,null,e.default.createElement(s.Typography,{variant:"beta",as:"h1",...y},o),g?e.default.createElement(s.Typography,{variant:"pi",textColor:"neutral600"},n):n),r?e.default.createElement(d.Box,{paddingLeft:4},r):null),e.default.createElement(i.Flex,null,l?e.default.createElement(d.Box,{paddingLeft:2},l):void 0))):e.default.createElement(d.Box,{ref:x,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:t?6:8,background:"neutral100","data-strapi-header":!0},t?e.default.createElement(d.Box,{paddingBottom:2},t):null,e.default.createElement(i.Flex,{justifyContent:"space-between"},e.default.createElement(i.Flex,null,e.default.createElement(s.Typography,{as:"h1",variant:"alpha",...y},o),r?e.default.createElement(d.Box,{paddingLeft:4},r):null),l),g?e.default.createElement(s.Typography,{variant:"epsilon",textColor:"neutral600",as:"p"},n):n)});u.displayName="BaseHeaderLayout";u.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0};u.propTypes={navigationAction:a.default.node,primaryAction:a.default.node,secondaryAction:a.default.node,sticky:a.default.bool,subtitle:a.default.oneOfType([a.default.string,a.default.node]),title:a.default.string.isRequired,width:a.default.number};f.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0};f.propTypes={navigationAction:a.default.node,primaryAction:a.default.node,secondaryAction:a.default.node,subtitle:a.default.oneOfType([a.default.string,a.default.node]),title:a.default.string.isRequired};exports.BaseHeaderLayout=u;exports.HeaderLayout=f;
|