@strapi/design-system 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.cjs +8 -8
- package/dist/Accordion/Accordion.js +73 -67
- package/dist/Accordion/AccordionContent.cjs +1 -1
- package/dist/Accordion/AccordionContent.js +20 -17
- package/dist/Accordion/AccordionContext.cjs +1 -1
- package/dist/Accordion/AccordionContext.js +10 -4
- package/dist/Accordion/AccordionGroup.cjs +20 -20
- package/dist/Accordion/AccordionGroup.js +98 -59
- package/dist/Accordion/AccordionToggle.cjs +3 -3
- package/dist/Accordion/AccordionToggle.js +108 -89
- package/dist/Accordion/utils.cjs +1 -1
- package/dist/Accordion/utils.js +4 -4
- package/dist/Alert/Alert.cjs +7 -7
- package/dist/Alert/Alert.js +92 -85
- package/dist/Avatar/Avatar.cjs +6 -6
- package/dist/Avatar/Avatar.js +68 -67
- package/dist/Avatar/constants.cjs +1 -1
- package/dist/Avatar/constants.js +1 -1
- package/dist/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.js +37 -37
- package/dist/BaseButton/BaseButton.cjs +3 -3
- package/dist/BaseButton/BaseButton.js +39 -27
- package/dist/BaseCheckbox/BaseCheckbox.cjs +6 -6
- package/dist/BaseCheckbox/BaseCheckbox.js +77 -59
- package/dist/BaseLink/BaseLink.cjs +2 -2
- package/dist/BaseLink/BaseLink.js +20 -27
- package/dist/BaseRadio/BaseRadio.cjs +7 -7
- package/dist/BaseRadio/BaseRadio.js +55 -35
- package/dist/BaseRadio/RadioGroup.cjs +1 -1
- package/dist/BaseRadio/RadioGroup.js +31 -28
- package/dist/BaseRadio/context.cjs +1 -1
- package/dist/BaseRadio/context.js +8 -4
- package/dist/BaseRadio/utils.cjs +1 -1
- package/dist/BaseRadio/utils.js +1 -1
- package/dist/Box/Box.cjs +31 -32
- package/dist/Box/Box.js +182 -59
- package/dist/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +50 -39
- package/dist/Button/Button.cjs +20 -20
- package/dist/Button/Button.js +83 -74
- package/dist/Button/utils.cjs +23 -23
- package/dist/Button/utils.js +15 -15
- package/dist/Card/Card.cjs +1 -1
- package/dist/Card/Card.js +28 -29
- package/dist/Card/CardAction.cjs +4 -4
- package/dist/Card/CardAction.js +12 -6
- package/dist/Card/CardAsset.cjs +4 -4
- package/dist/Card/CardAsset.js +32 -26
- package/dist/Card/CardBadge.cjs +3 -3
- package/dist/Card/CardBadge.js +14 -10
- package/dist/Card/CardBody.cjs +1 -1
- package/dist/Card/CardBody.js +11 -10
- package/dist/Card/CardCheckbox.cjs +1 -1
- package/dist/Card/CardCheckbox.js +16 -13
- package/dist/Card/CardContent.cjs +2 -2
- package/dist/Card/CardContent.js +11 -11
- package/dist/Card/CardContext.cjs +1 -1
- package/dist/Card/CardContext.js +3 -1
- package/dist/Card/CardHeader.cjs +2 -2
- package/dist/Card/CardHeader.js +9 -7
- package/dist/Card/CardTimer.cjs +2 -2
- package/dist/Card/CardTimer.js +21 -16
- package/dist/Card/CardTitle.cjs +1 -1
- package/dist/Card/CardTitle.js +11 -9
- package/dist/CarouselInput/Carousel.cjs +4 -4
- package/dist/CarouselInput/Carousel.js +8 -9
- package/dist/Combobox/Combobox.cjs +1 -1
- package/dist/Combobox/Combobox.js +32 -33
- package/dist/DatePicker/DatePicker.cjs +1 -1
- package/dist/DatePicker/DatePicker.js +26 -29
- package/dist/Flex/Flex.cjs +5 -5
- package/dist/Flex/Flex.js +29 -17
- package/dist/Icon/Icon.cjs +3 -3
- package/dist/Icon/Icon.js +23 -19
- package/dist/JSONInput/JSONInput.cjs +1 -0
- package/dist/JSONInput/JSONInput.js +97 -0
- package/dist/JSONInput/JSONInputContainer.cjs +30 -0
- package/dist/JSONInput/JSONInputContainer.js +36 -0
- package/dist/JSONInput/index.cjs +1 -0
- package/dist/JSONInput/index.js +4 -0
- package/dist/JSONInput/utils/decorationExtension.cjs +1 -0
- package/dist/JSONInput/utils/decorationExtension.js +24 -0
- package/dist/KeyboardNavigable/KeyboardNavigable.cjs +1 -1
- package/dist/KeyboardNavigable/KeyboardNavigable.js +44 -49
- package/dist/Link/Link.cjs +5 -5
- package/dist/Link/Link.js +1 -1
- package/dist/LiveRegions/LiveRegions.cjs +1 -1
- package/dist/LiveRegions/LiveRegions.js +22 -20
- package/dist/LiveRegions/index.cjs +1 -1
- package/dist/LiveRegions/index.js +4 -2
- package/dist/MainNav/NavCondense.cjs +3 -3
- package/dist/MainNav/NavCondense.js +1 -2
- package/dist/MainNav/NavSections.cjs +3 -3
- package/dist/MainNav/NavSections.js +5 -5
- package/dist/ModalLayout/ModalHeader.cjs +2 -2
- package/dist/ModalLayout/ModalHeader.js +1 -1
- package/dist/NumberInput/NumberInput.cjs +2 -2
- package/dist/NumberInput/NumberInput.js +1 -1
- package/dist/Pagination/components.cjs +6 -6
- package/dist/Pagination/components.js +16 -17
- package/dist/Searchbar/Searchbar.cjs +7 -7
- package/dist/Searchbar/Searchbar.js +7 -8
- package/dist/Select/Select.cjs +2 -2
- package/dist/Select/Select.js +4 -5
- package/dist/Select/SelectTags.cjs +3 -3
- package/dist/Select/SelectTags.js +1 -1
- package/dist/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/SimpleMenu/SimpleMenu.js +1 -1
- package/dist/Stack/Stack.cjs +5 -5
- package/dist/Stack/Stack.js +33 -33
- package/dist/SubNav/SubNavHeader.cjs +2 -2
- package/dist/SubNav/SubNavHeader.js +1 -1
- package/dist/SubNav/SubNavLink.cjs +4 -4
- package/dist/SubNav/SubNavLink.js +4 -4
- package/dist/SubNav/SubNavLinkSection.cjs +2 -2
- package/dist/SubNav/SubNavLinkSection.js +1 -1
- package/dist/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/SubNav/SubNavSectionLabel.js +1 -1
- package/dist/TextButton/TextButton.cjs +6 -6
- package/dist/TextButton/TextButton.js +51 -50
- package/dist/ThemeProvider/ThemeProvider.cjs +2 -2
- package/dist/ThemeProvider/ThemeProvider.js +12 -11
- package/dist/TimePicker/TimePicker.cjs +2 -2
- package/dist/TimePicker/TimePicker.js +1 -1
- package/dist/Typography/Typography.cjs +7 -7
- package/dist/Typography/Typography.js +28 -17
- package/dist/Typography/utils.cjs +2 -2
- package/dist/Typography/utils.js +6 -6
- package/dist/helpers/arrays.cjs +1 -0
- package/dist/helpers/arrays.js +6 -0
- package/dist/helpers/handleResponsiveValues.cjs +1 -5
- package/dist/helpers/handleResponsiveValues.js +21 -15
- package/dist/helpers/objects.cjs +1 -0
- package/dist/helpers/objects.js +26 -0
- package/dist/helpers/setOpacity.cjs +1 -1
- package/dist/helpers/setOpacity.js +1 -1
- package/dist/helpers/theme.cjs +1 -0
- package/dist/helpers/theme.js +7 -0
- package/dist/helpers/useIntersection.cjs +1 -1
- package/dist/helpers/useIntersection.js +8 -8
- package/dist/hooks/useControllableState.cjs +1 -1
- package/dist/hooks/useControllableState.js +13 -16
- package/dist/index.cjs +1 -1
- package/dist/index.js +205 -201
- package/dist/themes/extendTheme.cjs +4 -4
- package/dist/themes/extendTheme.js +13 -21
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.cjs +2 -2
- package/dist/v2/Breadcrumbs/CrumbSimpleMenu.js +1 -1
- package/dist/v2/Link/Link.cjs +4 -4
- package/dist/v2/Link/Link.js +1 -1
- package/dist/v2/MainNav/NavCondense.cjs +3 -3
- package/dist/v2/MainNav/NavCondense.js +1 -2
- package/dist/v2/MainNav/NavSections.cjs +3 -3
- package/dist/v2/MainNav/NavSections.js +5 -5
- package/dist/v2/Pagination/components.cjs +7 -7
- package/dist/v2/Pagination/components.js +18 -19
- package/dist/v2/SimpleMenu/SimpleMenu.cjs +9 -9
- package/dist/v2/SimpleMenu/SimpleMenu.js +96 -89
- package/dist/v2/SubNav/SubNavHeader.cjs +2 -2
- package/dist/v2/SubNav/SubNavHeader.js +1 -1
- package/dist/v2/SubNav/SubNavLink.cjs +4 -4
- package/dist/v2/SubNav/SubNavLink.js +1 -1
- package/dist/v2/SubNav/SubNavLinkSection.cjs +4 -4
- package/dist/v2/SubNav/SubNavLinkSection.js +1 -1
- package/dist/v2/SubNav/SubNavSectionLabel.cjs +3 -3
- package/dist/v2/SubNav/SubNavSectionLabel.js +1 -1
- package/package.json +18 -15
- package/dist/Box/BoxProps.cjs +0 -1
- package/dist/Box/BoxProps.js +0 -51
- package/dist/Flex/FlexProps.cjs +0 -1
- package/dist/Flex/FlexProps.js +0 -41
- package/dist/FocusTrap/ExampleComponent.cjs +0 -1
- package/dist/FocusTrap/ExampleComponent.js +0 -71
- package/dist/LiveRegions/StoryComponent.cjs +0 -1
- package/dist/LiveRegions/StoryComponent.js +0 -18
- package/dist/Typography/TypographyProps.cjs +0 -1
- package/dist/Typography/TypographyProps.js +0 -31
- package/dist/themes/ColorButton.cjs +0 -3
- package/dist/themes/ColorButton.js +0 -25
- package/dist/themes/colors.cjs +0 -1
- package/dist/themes/colors.js +0 -49
package/dist/Card/CardAction.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Stack as
|
|
3
|
-
const
|
|
1
|
+
import e from "styled-components";
|
|
2
|
+
import { Stack as n } from "../Stack/Stack.js";
|
|
3
|
+
const i = e(n).attrs({
|
|
4
4
|
horizontal: !0,
|
|
5
5
|
spacing: 2
|
|
6
6
|
})`
|
|
7
7
|
position: absolute;
|
|
8
8
|
top: ${({ theme: t }) => t.spaces[3]};
|
|
9
|
-
right: ${({ position: t, theme:
|
|
10
|
-
|
|
9
|
+
right: ${({ position: t, theme: r }) => {
|
|
10
|
+
if (t === "end")
|
|
11
|
+
return r.spaces[3];
|
|
12
|
+
}};
|
|
13
|
+
left: ${({ position: t, theme: r }) => {
|
|
14
|
+
if (t === "start")
|
|
15
|
+
return r.spaces[3];
|
|
16
|
+
}};
|
|
11
17
|
`;
|
|
12
18
|
export {
|
|
13
|
-
|
|
19
|
+
i as CardAction
|
|
14
20
|
};
|
package/dist/Card/CardAsset.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 t=require("react/jsx-runtime"),a=require("styled-components"),o=require("../Flex/Flex.cjs"),n=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},i=n(a),d=i.default.img`
|
|
2
2
|
// inline flows is based on typography and displays an extra white space below the image
|
|
3
3
|
// switch to block is required in order to make the img stick the bottom of the container
|
|
4
4
|
// addition infos: https://stackoverflow.com/questions/5804256/image-inside-div-has-extra-space-below-the-image
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
max-height: 100%;
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
object-fit: contain;
|
|
10
|
-
`,
|
|
10
|
+
`,c={S:88,M:164},l=i.default.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
justify-content: center;
|
|
13
|
-
height: ${({size:e})=>
|
|
13
|
+
height: ${({size:e})=>c[e]/16}rem;
|
|
14
14
|
width: 100%;
|
|
15
15
|
background: repeating-conic-gradient(${({theme:e})=>e.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
|
|
16
16
|
20px;
|
|
17
17
|
border-top-left-radius: ${({theme:e})=>e.borderRadius};
|
|
18
18
|
border-top-right-radius: ${({theme:e})=>e.borderRadius};
|
|
19
|
-
`,
|
|
19
|
+
`,u=({size:e="M",children:s,...r})=>t.jsx(l,{size:e,children:s?t.jsx(o.Flex,{children:s}):t.jsx(d,{...r,"aria-hidden":!0})});exports.CardAsset=u;
|
package/dist/Card/CardAsset.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const d = o.img`
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import r from "styled-components";
|
|
3
|
+
import { Flex as s } from "../Flex/Flex.js";
|
|
4
|
+
const a = r.img`
|
|
6
5
|
// inline flows is based on typography and displays an extra white space below the image
|
|
7
6
|
// switch to block is required in order to make the img stick the bottom of the container
|
|
8
7
|
// addition infos: https://stackoverflow.com/questions/5804256/image-inside-div-has-extra-space-below-the-image
|
|
@@ -11,32 +10,39 @@ const d = o.img`
|
|
|
11
10
|
max-height: 100%;
|
|
12
11
|
max-width: 100%;
|
|
13
12
|
object-fit: contain;
|
|
14
|
-
`,
|
|
13
|
+
`, d = {
|
|
15
14
|
S: 88,
|
|
16
15
|
M: 164
|
|
17
|
-
},
|
|
16
|
+
}, n = r.div`
|
|
18
17
|
display: flex;
|
|
19
18
|
justify-content: center;
|
|
20
|
-
height: ${({
|
|
19
|
+
height: ${({
|
|
20
|
+
size: e
|
|
21
|
+
}) => d[e] / 16}rem;
|
|
21
22
|
width: 100%;
|
|
22
|
-
background: repeating-conic-gradient(${({
|
|
23
|
+
background: repeating-conic-gradient(${({
|
|
24
|
+
theme: e
|
|
25
|
+
}) => e.colors.neutral100} 0% 25%, transparent 0% 50%) 50% / 20px
|
|
23
26
|
20px;
|
|
24
|
-
border-top-left-radius: ${({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
27
|
+
border-top-left-radius: ${({
|
|
28
|
+
theme: e
|
|
29
|
+
}) => e.borderRadius};
|
|
30
|
+
border-top-right-radius: ${({
|
|
31
|
+
theme: e
|
|
32
|
+
}) => e.borderRadius};
|
|
33
|
+
`, m = ({
|
|
34
|
+
size: e = "M",
|
|
35
|
+
children: i,
|
|
36
|
+
...o
|
|
37
|
+
}) => t(n, {
|
|
38
|
+
size: e,
|
|
39
|
+
children: i ? t(s, {
|
|
40
|
+
children: i
|
|
41
|
+
}) : t(a, {
|
|
42
|
+
...o,
|
|
43
|
+
"aria-hidden": !0
|
|
44
|
+
})
|
|
45
|
+
});
|
|
40
46
|
export {
|
|
41
|
-
|
|
47
|
+
m as CardAsset
|
|
42
48
|
};
|
package/dist/Card/CardBadge.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 t=require("react/jsx-runtime"),s=require("styled-components"),d=require("../Badge/Badge.cjs"),r=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},a=r(s),n=a.default.div`
|
|
2
2
|
margin-left: auto;
|
|
3
3
|
flex-shrink: 0;
|
|
4
|
-
`,
|
|
4
|
+
`,o=a.default(d.Badge)`
|
|
5
5
|
margin-left: ${({theme:e})=>e.spaces[1]};
|
|
6
|
-
`,
|
|
6
|
+
`,i=e=>t.jsx(n,{children:t.jsx(o,{...e})});exports.CardBadge=i;
|
package/dist/Card/CardBadge.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Badge as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import e from "styled-components";
|
|
3
|
+
import { Badge as t } from "../Badge/Badge.js";
|
|
4
|
+
const a = e.div`
|
|
5
5
|
margin-left: auto;
|
|
6
6
|
flex-shrink: 0;
|
|
7
|
-
`,
|
|
8
|
-
margin-left: ${({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
`, i = e(t)`
|
|
8
|
+
margin-left: ${({
|
|
9
|
+
theme: r
|
|
10
|
+
}) => r.spaces[1]};
|
|
11
|
+
`, n = (r) => o(a, {
|
|
12
|
+
children: o(i, {
|
|
13
|
+
...r
|
|
14
|
+
})
|
|
15
|
+
});
|
|
12
16
|
export {
|
|
13
|
-
|
|
17
|
+
n as CardBadge
|
|
14
18
|
};
|
package/dist/Card/CardBody.cjs
CHANGED
|
@@ -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 e=require("react/jsx-runtime"),r=require("../Flex/Flex.cjs"),o=require("../Box/Box.cjs"),d=t=>e.jsx(o.Box,{paddingLeft:3,paddingRight:3,paddingTop:2,paddingBottom:2,children:e.jsx(r.Flex,{...t,alignItems:"flex-start"})});exports.CardBody=d;
|
package/dist/Card/CardBody.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Flex as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as r } from "../Flex/Flex.js";
|
|
3
|
+
import { Box as d } from "../Box/Box.js";
|
|
4
|
+
const n = (t) => o(d, {
|
|
5
5
|
paddingLeft: 3,
|
|
6
6
|
paddingRight: 3,
|
|
7
7
|
paddingTop: 2,
|
|
8
|
-
paddingBottom: 2
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
8
|
+
paddingBottom: 2,
|
|
9
|
+
children: o(r, {
|
|
10
|
+
...t,
|
|
11
|
+
alignItems: "flex-start"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
n as CardBody
|
|
15
16
|
};
|
|
@@ -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 e=require("react/jsx-runtime"),o=require("../BaseCheckbox/BaseCheckbox.cjs"),s=require("./CardAction.cjs"),c=require("./CardContext.cjs"),a=t=>{const{id:r}=c.useCard();return e.jsx(s.CardAction,{position:"start",children:e.jsx(o.BaseCheckbox,{"aria-labelledby":`${r}-title`,...t})})};exports.CardCheckbox=a;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useCard as
|
|
5
|
-
const
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { BaseCheckbox as i } from "../BaseCheckbox/BaseCheckbox.js";
|
|
3
|
+
import { CardAction as e } from "./CardAction.js";
|
|
4
|
+
import { useCard as a } from "./CardContext.js";
|
|
5
|
+
const n = (o) => {
|
|
6
|
+
const {
|
|
7
|
+
id: t
|
|
8
|
+
} = a();
|
|
9
|
+
return r(e, {
|
|
10
|
+
position: "start",
|
|
11
|
+
children: r(i, {
|
|
12
|
+
"aria-labelledby": `${t}-title`,
|
|
13
|
+
...o
|
|
14
|
+
})
|
|
15
|
+
});
|
|
13
16
|
};
|
|
14
17
|
export {
|
|
15
|
-
|
|
18
|
+
n as CardCheckbox
|
|
16
19
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
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"),r=require("styled-components"),n=require("../Box/Box.cjs"),s=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},u=s(r),a=u.default(n.Box)`
|
|
2
2
|
word-break: break-all;
|
|
3
|
-
`,
|
|
3
|
+
`,l=({children:e,...t})=>o.jsx(a,{...t,children:e});exports.CardContent=l;
|
package/dist/Card/CardContent.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import p from "styled-components";
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import e from "styled-components";
|
|
4
3
|
import { Box as m } from "../Box/Box.js";
|
|
5
|
-
const
|
|
4
|
+
const n = e(m)`
|
|
6
5
|
word-break: break-all;
|
|
7
|
-
`,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
n
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
`, l = ({
|
|
7
|
+
children: r,
|
|
8
|
+
...o
|
|
9
|
+
}) => t(n, {
|
|
10
|
+
...o,
|
|
11
|
+
children: r
|
|
12
|
+
});
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
l as CardContent
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),t=e.createContext(),r=()=>e.useContext(t);exports.CardContext=t;exports.useCard=r;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react"),t=e.createContext({id:""}),r=()=>e.useContext(t);exports.CardContext=t;exports.useCard=r;
|
package/dist/Card/CardContext.js
CHANGED
package/dist/Card/CardHeader.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 t=require("react/jsx-runtime"),r=require("styled-components"),o=require("../Flex/Flex.cjs"),s=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},l=s(r),n=l.default(o.Flex)`
|
|
2
2
|
position: relative;
|
|
3
3
|
border-bottom: 1px solid ${({theme:e})=>e.colors.neutral150};
|
|
4
|
-
`,
|
|
4
|
+
`,a=e=>t.jsx(n,{justifyContent:"center",...e});exports.CardHeader=a;
|
package/dist/Card/CardHeader.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import t from "styled-components";
|
|
3
|
-
import { Flex as
|
|
4
|
-
const
|
|
3
|
+
import { Flex as e } from "../Flex/Flex.js";
|
|
4
|
+
const i = t(e)`
|
|
5
5
|
position: relative;
|
|
6
|
-
border-bottom: 1px solid ${({
|
|
7
|
-
|
|
6
|
+
border-bottom: 1px solid ${({
|
|
7
|
+
theme: r
|
|
8
|
+
}) => r.colors.neutral150};
|
|
9
|
+
`, a = (r) => o(i, {
|
|
8
10
|
justifyContent: "center",
|
|
9
|
-
...
|
|
11
|
+
...r
|
|
10
12
|
});
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
a as CardHeader
|
|
13
15
|
};
|
package/dist/Card/CardTimer.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 t=require("react/jsx-runtime"),o=require("styled-components"),a=require("../Box/Box.cjs"),s=require("../Typography/Typography.cjs"),i=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},n=i(o),u=n.default(a.Box)`
|
|
2
2
|
position: absolute;
|
|
3
3
|
bottom: ${({theme:e})=>e.spaces[1]};
|
|
4
4
|
right: ${({theme:e})=>e.spaces[1]};
|
|
5
|
-
`,
|
|
5
|
+
`,c=({children:e,...r})=>t.jsx(u,{padding:1,background:"neutral800",color:"neutral0",as:"time",hasRadius:!0,...r,children:t.jsx(s.Typography,{variant:"pi",textColor:"neutral0",children:e})});exports.CardTimer=c;
|
package/dist/Card/CardTimer.js
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "prop-types";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
2
|
import a from "styled-components";
|
|
4
|
-
import { Box as
|
|
3
|
+
import { Box as e } from "../Box/Box.js";
|
|
5
4
|
import { Typography as i } from "../Typography/Typography.js";
|
|
6
|
-
const
|
|
5
|
+
const p = a(e)`
|
|
7
6
|
position: absolute;
|
|
8
|
-
bottom: ${({
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
bottom: ${({
|
|
8
|
+
theme: r
|
|
9
|
+
}) => r.spaces[1]};
|
|
10
|
+
right: ${({
|
|
11
|
+
theme: r
|
|
12
|
+
}) => r.spaces[1]};
|
|
13
|
+
`, l = ({
|
|
14
|
+
children: r,
|
|
15
|
+
...t
|
|
16
|
+
}) => o(p, {
|
|
11
17
|
padding: 1,
|
|
12
18
|
background: "neutral800",
|
|
13
19
|
color: "neutral0",
|
|
14
20
|
as: "time",
|
|
15
21
|
hasRadius: !0,
|
|
16
|
-
...
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
22
|
+
...t,
|
|
23
|
+
children: o(i, {
|
|
24
|
+
variant: "pi",
|
|
25
|
+
textColor: "neutral0",
|
|
26
|
+
children: r
|
|
27
|
+
})
|
|
28
|
+
});
|
|
24
29
|
export {
|
|
25
|
-
|
|
30
|
+
l as CardTimer
|
|
26
31
|
};
|
package/dist/Card/CardTitle.cjs
CHANGED
|
@@ -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 e=require("react/jsx-runtime"),r=require("../Typography/Typography.cjs"),o=require("./CardContext.cjs"),i=t=>{const{id:a}=o.useCard();return e.jsx(r.Typography,{variant:"pi",id:`${a}-title`,textColor:"neutral800",fontWeight:"bold",as:"div",...t})},n=t=>e.jsx(r.Typography,{variant:"pi",...t,textColor:"neutral600",as:"div"});exports.CardSubtitle=n;exports.CardTitle=i;
|
package/dist/Card/CardTitle.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as o } from "../Typography/Typography.js";
|
|
3
3
|
import { useCard as a } from "./CardContext.js";
|
|
4
|
-
const
|
|
5
|
-
const {
|
|
6
|
-
|
|
4
|
+
const l = (t) => {
|
|
5
|
+
const {
|
|
6
|
+
id: i
|
|
7
|
+
} = a();
|
|
8
|
+
return r(o, {
|
|
7
9
|
variant: "pi",
|
|
8
|
-
id: `${
|
|
10
|
+
id: `${i}-title`,
|
|
9
11
|
textColor: "neutral800",
|
|
10
12
|
fontWeight: "bold",
|
|
11
13
|
as: "div",
|
|
12
14
|
...t
|
|
13
15
|
});
|
|
14
|
-
},
|
|
16
|
+
}, p = (t) => r(o, {
|
|
15
17
|
variant: "pi",
|
|
16
18
|
...t,
|
|
17
19
|
textColor: "neutral600",
|
|
18
20
|
as: "div"
|
|
19
21
|
});
|
|
20
22
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
p as CardSubtitle,
|
|
24
|
+
l as CardTitle
|
|
23
25
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),_=require("prop-types"),k=require("styled-components"),g=require("@strapi/icons"),b=require("../Icon/Icon.cjs"),l=require("../Box/Box.cjs"),B=require("../Typography/Typography.cjs"),K=require("../Flex/Flex.cjs"),w=require("../Tooltip/Tooltip.cjs"),m=require("../helpers/keyboardKeys.cjs"),i=r=>r&&typeof r=="object"&&"default"in r?r:{default:r},t=i(o),e=i(_),d=i(k),L=d.default(l.Box)`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: auto 1fr auto;
|
|
4
4
|
grid-template-areas: 'startAction slides endAction';
|
|
5
|
-
`,
|
|
5
|
+
`,I=d.default(l.Box)`
|
|
6
6
|
grid-area: slides;
|
|
7
|
-
`,
|
|
7
|
+
`,q=d.default.button`
|
|
8
8
|
grid-area: ${({area:r})=>r};
|
|
9
9
|
|
|
10
10
|
&:focus svg path,
|
|
11
11
|
&:hover svg path {
|
|
12
12
|
fill: ${({theme:r})=>r.colors.neutral900};
|
|
13
13
|
}
|
|
14
|
-
`,s=({actions:r,children:
|
|
14
|
+
`,s=({actions:r,children:v,label:x,nextLabel:R,onNext:u,onPrevious:c,previousLabel:T,secondaryLabel:n,selectedSlide:C,...E})=>{const f=o.useRef(null),p=o.useRef(null),y=o.Children.toArray(v).map((a,A)=>o.cloneElement(a,{selected:A===C})),j=a=>{switch(a.key){case m.KeyboardKeys.RIGHT:{a.preventDefault(),p.current.focus(),u();break}case m.KeyboardKeys.LEFT:{a.preventDefault(),f.current.focus(),c();break}}},h=y.length>1;return t.default.createElement(l.Box,{...E,onKeyDown:j},t.default.createElement(l.Box,{padding:2,borderColor:"neutral200",hasRadius:!0,background:"neutral100"},t.default.createElement(L,{as:"section","aria-roledescription":"carousel","aria-label":x,position:"relative"},h&&t.default.createElement(q,{onClick:c,area:"startAction",ref:f,"aria-label":T,type:"button"},t.default.createElement(b.Icon,{as:g.ChevronLeft,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})),h&&t.default.createElement(q,{onClick:u,area:"endAction",ref:p,"aria-label":R,type:"button"},t.default.createElement(b.Icon,{as:g.ChevronRight,"aria-hidden":!0,width:"6px",height:"10px",color:"neutral600"})),t.default.createElement(I,{"aria-live":"polite",paddingLeft:2,paddingRight:2,width:"100%",overflow:"hidden"},y),r),n&&t.default.createElement(l.Box,{paddingTop:2,paddingLeft:4,paddingRight:4},t.default.createElement(w.Tooltip,{label:n},t.default.createElement(K.Flex,{justifyContent:"center"},t.default.createElement(B.Typography,{variant:"pi",textColor:"neutral600",ellipsis:!0},n))))))};s.defaultProps={actions:void 0,error:void 0,hint:void 0,required:!1,secondaryLabel:void 0};s.propTypes={actions:e.default.node,children:e.default.node.isRequired,error:e.default.string,hint:e.default.oneOfType([e.default.string,e.default.node,e.default.arrayOf(e.default.node)]),label:e.default.string.isRequired,nextLabel:e.default.string.isRequired,onNext:e.default.func.isRequired,onPrevious:e.default.func.isRequired,previousLabel:e.default.string.isRequired,required:e.default.bool,secondaryLabel:e.default.string,selectedSlide:e.default.number.isRequired};exports.Carousel=s;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import r, { useRef as m, Children as T, cloneElement as w } from "react";
|
|
2
2
|
import e from "prop-types";
|
|
3
3
|
import a from "styled-components";
|
|
4
|
-
import k from "@strapi/icons
|
|
5
|
-
import L from "@strapi/icons/ChevronLeft";
|
|
4
|
+
import { ChevronLeft as k, ChevronRight as L } from "@strapi/icons";
|
|
6
5
|
import { Icon as f } from "../Icon/Icon.js";
|
|
7
6
|
import { Box as i } from "../Box/Box.js";
|
|
8
7
|
import { Typography as D } from "../Typography/Typography.js";
|
|
@@ -34,7 +33,7 @@ const G = a(i)`
|
|
|
34
33
|
selectedSlide: C,
|
|
35
34
|
...x
|
|
36
35
|
}) => {
|
|
37
|
-
const d = m(null), c = m(null),
|
|
36
|
+
const d = m(null), c = m(null), u = T.toArray(b).map(
|
|
38
37
|
(o, A) => w(o, { selected: A === C })
|
|
39
38
|
), q = (o) => {
|
|
40
39
|
switch (o.key) {
|
|
@@ -47,7 +46,7 @@ const G = a(i)`
|
|
|
47
46
|
break;
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
|
-
},
|
|
49
|
+
}, p = u.length > 1;
|
|
51
50
|
return /* @__PURE__ */ r.createElement(i, {
|
|
52
51
|
...x,
|
|
53
52
|
onKeyDown: q
|
|
@@ -61,26 +60,26 @@ const G = a(i)`
|
|
|
61
60
|
"aria-roledescription": "carousel",
|
|
62
61
|
"aria-label": v,
|
|
63
62
|
position: "relative"
|
|
64
|
-
},
|
|
63
|
+
}, p && /* @__PURE__ */ r.createElement(g, {
|
|
65
64
|
onClick: s,
|
|
66
65
|
area: "startAction",
|
|
67
66
|
ref: d,
|
|
68
67
|
"aria-label": E,
|
|
69
68
|
type: "button"
|
|
70
69
|
}, /* @__PURE__ */ r.createElement(f, {
|
|
71
|
-
as:
|
|
70
|
+
as: k,
|
|
72
71
|
"aria-hidden": !0,
|
|
73
72
|
width: "6px",
|
|
74
73
|
height: "10px",
|
|
75
74
|
color: "neutral600"
|
|
76
|
-
})),
|
|
75
|
+
})), p && /* @__PURE__ */ r.createElement(g, {
|
|
77
76
|
onClick: l,
|
|
78
77
|
area: "endAction",
|
|
79
78
|
ref: c,
|
|
80
79
|
"aria-label": R,
|
|
81
80
|
type: "button"
|
|
82
81
|
}, /* @__PURE__ */ r.createElement(f, {
|
|
83
|
-
as:
|
|
82
|
+
as: L,
|
|
84
83
|
"aria-hidden": !0,
|
|
85
84
|
width: "6px",
|
|
86
85
|
height: "10px",
|
|
@@ -91,7 +90,7 @@ const G = a(i)`
|
|
|
91
90
|
paddingRight: 2,
|
|
92
91
|
width: "100%",
|
|
93
92
|
overflow: "hidden"
|
|
94
|
-
},
|
|
93
|
+
}, u), t), n && /* @__PURE__ */ r.createElement(i, {
|
|
95
94
|
paddingTop: 2,
|
|
96
95
|
paddingLeft: 4,
|
|
97
96
|
paddingRight: 4
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),xe=require("prop-types"),H=require("@strapi/icons"),ye=require("../helpers/useId.cjs"),l=require("./utils.cjs"),_=require("../Flex/Flex.cjs"),N=require("../Select/components.cjs"),he=require("../Popover/Popover.cjs"),ve=require("../Box/Box.cjs"),U=require("../Typography/Typography.cjs"),Ee=require("../Loader/Loader.cjs"),k=require("./components.cjs"),Fe=require("./ComboboxOption.cjs"),Ie=require("./ComboboxList.cjs"),ke=require("../Field/Field.cjs"),qe=require("../Field/FieldLabel.cjs");require("../Field/FieldInput.cjs");const je=require("../Field/FieldHint.cjs"),Me=require("../Field/FieldError.cjs");require("../Field/FieldContext.cjs");require("../Field/FieldAction.cjs");const Oe=require("../Stack/Stack.cjs"),Le=require("../helpers/keyboardKeys.cjs"),Se=require("../VisuallyHidden/VisuallyHidden.cjs"),z=r=>r&&typeof r=="object"&&"default"in r?r:{default:r},o=z(a),e=z(xe),h=({children:r,clearLabel:W,creatable:v,createMessage:G,disabled:d,error:q,hasMoreItems:J,hint:L,label:C,labelAction:Q,loading:j,loadingMessage:X,noOptionsMessage:Y,onChange:S,onClear:R,onCreateOption:Z,onInputChange:A,onLoadMore:ee,placeholder:te,required:T,value:p,...oe})=>{const ne=()=>r.find(t=>t.props?.value.toLowerCase()===p.toLowerCase()).props?.children,[i,w]=a.useState(0),[ae,re]=a.useState(null),[u,$]=a.useState(r),[m,le]=a.useState(!1),[s,F]=a.useState(""),x=a.useRef(),I=a.useRef(!1),E=a.useRef(),B=a.useRef(),se=a.useRef(),P=a.useRef(!0),c=ye.useId("combobox"),D=`${c}-label`;if(!C&&!oe["aria-label"])throw new Error('The Combobox component needs a "label" or an "aria-label" props');a.useEffect(()=>{$(l.filterOptions(r,s))},[s,r]),a.useEffect(()=>{m&&x.current&&l.maintainScrollVisibility(x.current)},[i,m]),a.useLayoutEffect(()=>{P.current&&(P.current=!1)},[p]);const ie=m?`${c}-${i}`:"",V=()=>{S(null),F("")},ce=t=>{A&&A(t);const n=E.current.value;$(l.filterOptions(r,n)),w(0),re(null),s!==n&&F(n),m||b(!0,!1)},ue=t=>{const{key:n}=t,f=v&&s?u.length:u.length-1,y=l.getActionFromKey(n,m);switch(p&&!s&&n===Le.KeyboardKeys.BACKSPACE&&V(),y){case l.MenuActions.Next:{if(i===f){g(0);break}g(l.getUpdatedIndex(i,f,y));break}case l.MenuActions.Previous:{if(i===0){g(f);break}g(l.getUpdatedIndex(i,f,y));break}case l.MenuActions.Last:case l.MenuActions.First:{if(i===f){g(0);break}g(l.getUpdatedIndex(i,f,y));break}case l.MenuActions.CloseSelect:t.preventDefault(),M(i);break;case l.MenuActions.Close:t.preventDefault(),b(!1);break;case l.MenuActions.Open:b(!0);break}},de=t=>{if(t.preventDefault(),p&&!I.current&&F(""),I.current){I.current=!1;return}b(!1,!1)},g=t=>{w(t)},fe=t=>{g(t),M(t)},K=()=>{I.current=!0},M=t=>{const n=u[t];if(F(""),n){S(n.props.value),b(!1);return}v&&(Z(s),b(!1))},b=(t,n=!0)=>{le(t),n&&E.current.focus()},pe=a.Children.toArray(u).map((t,n)=>{const f=i===n;return a.cloneElement(t,{id:`${c}-${n}`,"aria-selected":ae===n,"aria-posinset":n+1,"aria-setsize":a.Children.toArray(u).length,ref(y){f&&(x.current=y)},onClick:()=>fe(n),onMouseDown:K,isSelected:f})}),be=()=>{E.current.focus(),R&&R(),V()},me=()=>{E.current.focus(),b(!0)},ge=()=>{const t=u.findIndex(n=>n.props?.children===s);return s&&t===-1},Ce=t=>{t.preventDefault(),b(t,!0)};return o.default.createElement(ke.Field,{hint:L,error:q,id:c,required:T},o.default.createElement(Se.VisuallyHidden,{"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},p),o.default.createElement(Oe.Stack,{spacing:C||L||q?1:0},C&&o.default.createElement(qe.FieldLabel,{action:Q},C),o.default.createElement(k.MainRow,{ref:B,$disabled:d,hasError:q},o.default.createElement(k.InputContainer,{wrap:"wrap"},!s&&p&&o.default.createElement(k.ValueContainer,{id:`${c}-selected-value`},o.default.createElement(U.Typography,null,ne())),o.default.createElement(k.Input,{"aria-activedescendant":ie,"aria-autocomplete":"list","aria-controls":`${c}-listbox`,"aria-disabled":d,"aria-expanded":m,"aria-haspopup":"listbox","aria-labelledby":C?D:void 0,autoComplete:"off",autoCorrect:"off",id:c,onBlur:d?void 0:de,onClick:d?void 0:Ce,onInput:d?void 0:ce,onKeyDown:d?void 0:ue,placeholder:p?"":te,readOnly:d,ref:E,required:T,role:"combobox",spellCheck:"off",type:"text",value:s})),o.default.createElement(_.Flex,null,(p||s)&&o.default.createElement(N.IconBox,{id:`${c}-clear`,"aria-label":W,disabled:d,paddingLeft:3,as:"button",onClick:be,type:"button"},o.default.createElement(H.Cross,null)),o.default.createElement(N.CaretBox,{disabled:d,paddingLeft:3,"aria-hidden":!0,as:"button",onClick:me,tabIndex:-1,type:"button"},o.default.createElement(H.CarretDown,null)))),o.default.createElement(je.FieldHint,null),o.default.createElement(Me.FieldError,null)),m&&o.default.createElement(he.Popover,{id:`${c}-popover`,source:B,spacing:4,fullWidth:!0,intersectionId:`${c}-listbox-popover-intersection`,onReachEnd:J&&!j?ee:void 0},o.default.createElement("div",{role:"listbox",ref:se,id:`${c}-listbox`,"aria-labelledby":C?D:void 0},(Boolean(u.length)||v)&&o.default.createElement(o.default.Fragment,null,o.default.createElement(Ie.ComboboxList,{activeOptionRef:x,options:pe}),ge()&&v&&o.default.createElement(Fe.ComboboxOption,{isSelected:i===u.length,ref:t=>{i===u.length&&(x.current=t)},onMouseDown:K,onClick:()=>M(),taindex:0},G(s))),!u.length&&!v&&!j&&o.default.createElement(ve.Box,{paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,ref:x},o.default.createElement(U.Typography,{textColor:"neutral800"},Y(s))),j&&o.default.createElement(_.Flex,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2},o.default.createElement(Ee.Loader,{small:!0},X)))))},O=r=>o.default.createElement(h,{...r,creatable:!0});h.defaultProps={"aria-label":void 0,clearLabel:"clear",creatable:!1,createMessage:r=>`Create "${r}"`,disabled:!1,error:void 0,hasMoreItems:!1,hint:void 0,label:void 0,loading:!1,loadingMessage:"Loading content...",noOptionsMessage:()=>"No results found",onClear:void 0,onCreateOption:void 0,onInputChange:void 0,onLoadMore:void 0,placeholder:"Select or enter a value",value:void 0};O.defaultProps=h.defaultProps;h.propTypes={"aria-label":e.default.string,children:e.default.oneOfType([e.default.arrayOf(e.default.node),e.default.node]),clearLabel:e.default.string,creatable:e.default.bool,createMessage:e.default.func,disabled:e.default.bool,error:e.default.string,hasMoreItems:e.default.bool,hint:e.default.oneOfType([e.default.string,e.default.node,e.default.arrayOf(e.default.node)]),label:e.default.string,labelAction:e.default.element,loading:e.default.bool,loadingMessage:e.default.string,noOptionsMessage:e.default.func,onChange:e.default.func.isRequired,onClear:e.default.func,onCreateOption:e.default.func,onInputChange:e.default.func,onLoadMore:e.default.func,placeholder:e.default.string,value:e.default.string};O.propTypes={...h.propTypes,onCreateOption:e.default.func.isRequired};exports.Combobox=h;exports.CreatableCombobox=O;
|