@jordan-mace/chaser-design-system 1.2.9 → 2.1.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/build-manifest.json +13761 -0
- package/dist/chunk-2B6QHVPB.mjs +0 -0
- package/dist/chunk-2FRMX7RJ.mjs +62 -0
- package/dist/chunk-2L6GQCXR.mjs +0 -0
- package/dist/chunk-3AJZLQ2E.mjs +85 -0
- package/dist/chunk-3LJMSR5N.mjs +0 -0
- package/dist/chunk-54H4HXDY.mjs +0 -0
- package/dist/chunk-55JAPPFF.mjs +84 -0
- package/dist/chunk-5CRFIUCE.mjs +21 -0
- package/dist/chunk-6MO2NAKY.mjs +15 -0
- package/dist/chunk-7AY5WUX4.mjs +0 -0
- package/dist/chunk-7Y3QCS5S.mjs +8 -0
- package/dist/chunk-AEZ77MNG.mjs +51 -0
- package/dist/chunk-AIY7XRLG.mjs +0 -0
- package/dist/chunk-ARTXRQO6.mjs +0 -0
- package/dist/chunk-AYTUOXH4.mjs +214 -0
- package/dist/chunk-B2NGT75M.mjs +0 -0
- package/dist/chunk-BOWLXLKB.mjs +101 -0
- package/dist/chunk-BTENJUDF.mjs +0 -0
- package/dist/chunk-BU45HCII.mjs +31 -0
- package/dist/chunk-BUO6V4ZK.mjs +0 -0
- package/dist/chunk-C7NECQRC.mjs +96 -0
- package/dist/chunk-CBKQEKIK.mjs +0 -0
- package/dist/chunk-CBPLQAHS.mjs +80 -0
- package/dist/chunk-CMNJMZXX.mjs +0 -0
- package/dist/chunk-CW4EIBFG.mjs +0 -0
- package/dist/chunk-DAGHRIC3.mjs +0 -0
- package/dist/chunk-E5ODJY25.mjs +75 -0
- package/dist/chunk-E74W45DC.mjs +0 -0
- package/dist/chunk-E7OMF6QW.mjs +0 -0
- package/dist/chunk-EOH5NK67.mjs +0 -0
- package/dist/chunk-EOXTRIQ7.mjs +0 -0
- package/dist/chunk-FPTK6LYO.mjs +76 -0
- package/dist/chunk-FUN4ITNZ.mjs +0 -0
- package/dist/chunk-GD42AS4L.mjs +8 -0
- package/dist/chunk-GMAR37YG.mjs +8 -0
- package/dist/chunk-GNAJ44RY.mjs +26 -0
- package/dist/chunk-GP5UECUC.mjs +0 -0
- package/dist/chunk-H4FZYNCW.mjs +118 -0
- package/dist/chunk-HUED26BN.mjs +0 -0
- package/dist/chunk-HWAS44T7.mjs +49 -0
- package/dist/chunk-IGKJYJTY.mjs +0 -0
- package/dist/chunk-IMHQ73HA.mjs +0 -0
- package/dist/chunk-IOMB7PSL.mjs +93 -0
- package/dist/chunk-IUCJBPDL.mjs +20 -0
- package/dist/chunk-JFYMSGSU.mjs +0 -0
- package/dist/chunk-JIKAPQBJ.mjs +0 -0
- package/dist/chunk-JQ42U5FU.mjs +19 -0
- package/dist/chunk-KBUHPWEO.mjs +137 -0
- package/dist/chunk-KHBV2LXN.mjs +262 -0
- package/dist/chunk-KSIX4U53.mjs +32 -0
- package/dist/chunk-KT7CGXAH.mjs +0 -0
- package/dist/chunk-LAWMLBF3.mjs +41 -0
- package/dist/chunk-LV54XRPR.mjs +0 -0
- package/dist/chunk-LVPQCMA5.mjs +122 -0
- package/dist/chunk-LZLK7IOL.mjs +0 -0
- package/dist/chunk-MCWYRP6Y.mjs +53 -0
- package/dist/chunk-MQQ5Z3LW.mjs +57 -0
- package/dist/chunk-N725HZEB.mjs +0 -0
- package/dist/chunk-NIZNDR6T.mjs +0 -0
- package/dist/chunk-NWYD6SS7.mjs +69 -0
- package/dist/chunk-O3AMXQTY.mjs +0 -0
- package/dist/chunk-OB5ONW7Y.mjs +45 -0
- package/dist/chunk-PK7I6RMV.mjs +0 -0
- package/dist/chunk-PQZZHZIA.mjs +0 -0
- package/dist/chunk-PTU7HTXL.mjs +0 -0
- package/dist/chunk-PUOWXFSZ.mjs +41 -0
- package/dist/chunk-QFQAV7DQ.mjs +207 -0
- package/dist/chunk-QNJKEBIF.mjs +0 -0
- package/dist/chunk-QUQTMW54.mjs +92 -0
- package/dist/chunk-QWBHUGJH.mjs +42 -0
- package/dist/chunk-R2GRRFQS.mjs +0 -0
- package/dist/chunk-RDFNYCKT.mjs +64 -0
- package/dist/chunk-RDN3574U.mjs +18 -0
- package/dist/chunk-RESHDXF5.mjs +0 -0
- package/dist/chunk-RVFLFKJL.mjs +18 -0
- package/dist/chunk-RWSFDIB7.mjs +0 -0
- package/dist/chunk-SIGP4IGV.mjs +0 -0
- package/dist/chunk-SQ5VQZMA.mjs +43 -0
- package/dist/chunk-SZ25BX44.mjs +0 -0
- package/dist/chunk-T4CX5DQW.mjs +0 -0
- package/dist/chunk-T7MLSQTY.mjs +41 -0
- package/dist/chunk-TAXCX6TA.mjs +44 -0
- package/dist/chunk-TNDJWHSF.mjs +0 -0
- package/dist/chunk-TOAHZ3UX.mjs +0 -0
- package/dist/chunk-UCOFGJJH.mjs +39 -0
- package/dist/chunk-V35FRMOQ.mjs +0 -0
- package/dist/chunk-V7BVU5IU.mjs +30 -0
- package/dist/chunk-VGEM65JM.mjs +51 -0
- package/dist/chunk-VGHEJ76E.mjs +0 -0
- package/dist/chunk-VXYBXS77.mjs +6 -0
- package/dist/chunk-W5ZYIAZQ.mjs +55 -0
- package/dist/chunk-WDS7ER2E.mjs +117 -0
- package/dist/chunk-WPMNFQUN.mjs +0 -0
- package/dist/chunk-WQO4PWCK.mjs +0 -0
- package/dist/chunk-WTOTRXQH.mjs +20 -0
- package/dist/chunk-WV72HREB.mjs +42 -0
- package/dist/chunk-WX76GCR5.mjs +0 -0
- package/dist/chunk-XAZH3L6X.mjs +119 -0
- package/dist/chunk-XIPZW6LD.mjs +34 -0
- package/dist/chunk-XOINH6RL.mjs +35 -0
- package/dist/chunk-YDLIT2QT.mjs +32 -0
- package/dist/chunk-ZDY52AN7.mjs +141 -0
- package/dist/chunk-ZSRWE6QR.mjs +0 -0
- package/dist/chunk-ZTGLYAVP.mjs +126 -0
- package/dist/components/Accordion/Accordion.css +2070 -0
- package/dist/components/Accordion/Accordion.mjs +11 -0
- package/dist/components/Accordion/index.css +2070 -0
- package/dist/components/Accordion/index.mjs +12 -0
- package/dist/components/Alert/Alert.css +2059 -0
- package/dist/components/Alert/Alert.mjs +11 -0
- package/dist/components/Alert/index.css +2059 -0
- package/dist/components/Alert/index.mjs +12 -0
- package/dist/components/AspectRatio/AspectRatio.css +1955 -0
- package/dist/components/AspectRatio/AspectRatio.mjs +10 -0
- package/dist/components/AspectRatio/index.css +1955 -0
- package/dist/components/AspectRatio/index.mjs +11 -0
- package/dist/components/Avatar/Avatar.css +2154 -0
- package/dist/components/Avatar/Avatar.mjs +11 -0
- package/dist/components/Avatar/index.css +2154 -0
- package/dist/components/Avatar/index.mjs +12 -0
- package/dist/components/Badge/Badge.css +2081 -0
- package/dist/components/Badge/Badge.mjs +11 -0
- package/dist/components/Badge/index.css +2081 -0
- package/dist/components/Badge/index.mjs +12 -0
- package/dist/components/Box/Box.css +1955 -0
- package/dist/components/Box/Box.mjs +8 -0
- package/dist/components/Box/index.css +1955 -0
- package/dist/components/Box/index.mjs +9 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +2057 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs +11 -0
- package/dist/components/Breadcrumb/index.css +2057 -0
- package/dist/components/Breadcrumb/index.mjs +12 -0
- package/dist/components/Button/Button.css +2035 -0
- package/dist/components/Button/Button.mjs +11 -0
- package/dist/components/Button/index.css +2035 -0
- package/dist/components/Button/index.mjs +12 -0
- package/dist/components/Card/Card.css +2030 -0
- package/dist/components/Card/Card.mjs +11 -0
- package/dist/components/Card/index.css +2030 -0
- package/dist/components/Card/index.mjs +12 -0
- package/dist/components/Checkbox/Checkbox.css +2038 -0
- package/dist/components/Checkbox/Checkbox.mjs +11 -0
- package/dist/components/Checkbox/index.css +2038 -0
- package/dist/components/Checkbox/index.mjs +12 -0
- package/dist/components/Collapse/Collapse.css +1992 -0
- package/dist/components/Collapse/Collapse.mjs +10 -0
- package/dist/components/Collapse/index.css +1992 -0
- package/dist/components/Collapse/index.mjs +11 -0
- package/dist/components/Combobox/Combobox.css +2144 -0
- package/dist/components/Combobox/Combobox.mjs +11 -0
- package/dist/components/Combobox/index.css +2144 -0
- package/dist/components/Combobox/index.mjs +12 -0
- package/dist/components/Container/Container.css +1955 -0
- package/dist/components/Container/Container.mjs +10 -0
- package/dist/components/Container/index.css +1955 -0
- package/dist/components/Container/index.mjs +11 -0
- package/dist/components/Divider/Divider.css +2042 -0
- package/dist/components/Divider/Divider.mjs +11 -0
- package/dist/components/Divider/index.css +2042 -0
- package/dist/components/Divider/index.mjs +12 -0
- package/dist/components/Drawer/Drawer.css +2148 -0
- package/dist/components/Drawer/Drawer.mjs +11 -0
- package/dist/components/Drawer/index.css +2148 -0
- package/dist/components/Drawer/index.mjs +12 -0
- package/dist/components/DropdownMenu/DropdownMenu.css +2095 -0
- package/dist/components/DropdownMenu/DropdownMenu.mjs +11 -0
- package/dist/components/DropdownMenu/index.css +2095 -0
- package/dist/components/DropdownMenu/index.mjs +12 -0
- package/dist/components/EmptyState/EmptyState.css +2038 -0
- package/dist/components/EmptyState/EmptyState.mjs +11 -0
- package/dist/components/EmptyState/index.css +2038 -0
- package/dist/components/EmptyState/index.mjs +12 -0
- package/dist/components/FileUpload/FileUpload.css +2147 -0
- package/dist/components/FileUpload/FileUpload.mjs +11 -0
- package/dist/components/FileUpload/index.css +2147 -0
- package/dist/components/FileUpload/index.mjs +12 -0
- package/dist/components/Form/Form.css +1970 -0
- package/dist/components/Form/Form.mjs +10 -0
- package/dist/components/Form/FormInput.css +4898 -0
- package/dist/components/Form/FormInput.mjs +109 -0
- package/dist/components/Form/index.css +4898 -0
- package/dist/components/Form/index.mjs +112 -0
- package/dist/components/Grid/Grid.css +1955 -0
- package/dist/components/Grid/Grid.mjs +10 -0
- package/dist/components/Grid/index.css +1955 -0
- package/dist/components/Grid/index.mjs +11 -0
- package/dist/components/Icon/Icon.css +1968 -0
- package/dist/components/Icon/Icon.mjs +10 -0
- package/dist/components/Icon/index.css +1968 -0
- package/dist/components/Icon/index.mjs +11 -0
- package/dist/components/Input/Input.css +2030 -0
- package/dist/components/Input/Input.mjs +12 -0
- package/dist/components/Input/index.css +2030 -0
- package/dist/components/Input/index.mjs +13 -0
- package/dist/components/Kbd/Kbd.css +2010 -0
- package/dist/components/Kbd/Kbd.mjs +9 -0
- package/dist/components/Kbd/index.css +2010 -0
- package/dist/components/Kbd/index.mjs +10 -0
- package/dist/components/List/List.css +2016 -0
- package/dist/components/List/List.mjs +12 -0
- package/dist/components/List/ListItem.css +2016 -0
- package/dist/components/List/ListItem.mjs +12 -0
- package/dist/components/List/index.css +2016 -0
- package/dist/components/List/index.mjs +17 -0
- package/dist/components/Modal/Modal.css +2093 -0
- package/dist/components/Modal/Modal.mjs +11 -0
- package/dist/components/Modal/index.css +2093 -0
- package/dist/components/Modal/index.mjs +12 -0
- package/dist/components/Navbar/Navbar.css +1960 -0
- package/dist/components/Navbar/Navbar.mjs +11 -0
- package/dist/components/Navbar/NavbarItem.css +1960 -0
- package/dist/components/Navbar/NavbarItem.mjs +11 -0
- package/dist/components/Navbar/index.css +1960 -0
- package/dist/components/Navbar/index.mjs +16 -0
- package/dist/components/NumberInput/NumberInput.css +2117 -0
- package/dist/components/NumberInput/NumberInput.mjs +11 -0
- package/dist/components/NumberInput/index.css +2117 -0
- package/dist/components/NumberInput/index.mjs +12 -0
- package/dist/components/Pagination/Pagination.css +2049 -0
- package/dist/components/Pagination/Pagination.mjs +11 -0
- package/dist/components/Pagination/index.css +2049 -0
- package/dist/components/Pagination/index.mjs +12 -0
- package/dist/components/Popover/Popover.css +2194 -0
- package/dist/components/Popover/Popover.mjs +11 -0
- package/dist/components/Popover/index.css +2194 -0
- package/dist/components/Popover/index.mjs +12 -0
- package/dist/components/Progress/Progress.css +2074 -0
- package/dist/components/Progress/Progress.mjs +11 -0
- package/dist/components/Progress/index.css +2074 -0
- package/dist/components/Progress/index.mjs +12 -0
- package/dist/components/Radio/Radio.css +2049 -0
- package/dist/components/Radio/Radio.mjs +11 -0
- package/dist/components/Radio/index.css +2049 -0
- package/dist/components/Radio/index.mjs +12 -0
- package/dist/components/ScrollArea/ScrollArea.css +2030 -0
- package/dist/components/ScrollArea/ScrollArea.mjs +11 -0
- package/dist/components/ScrollArea/index.css +2030 -0
- package/dist/components/ScrollArea/index.mjs +12 -0
- package/dist/components/Select/Select.css +2087 -0
- package/dist/components/Select/Select.mjs +11 -0
- package/dist/components/Select/index.css +2087 -0
- package/dist/components/Select/index.mjs +12 -0
- package/dist/components/Separator/Separator.css +2028 -0
- package/dist/components/Separator/Separator.mjs +11 -0
- package/dist/components/Separator/index.css +2028 -0
- package/dist/components/Separator/index.mjs +12 -0
- package/dist/components/Skeleton/Skeleton.css +2065 -0
- package/dist/components/Skeleton/Skeleton.mjs +11 -0
- package/dist/components/Skeleton/index.css +2065 -0
- package/dist/components/Skeleton/index.mjs +12 -0
- package/dist/components/Spinner/Spinner.css +2060 -0
- package/dist/components/Spinner/Spinner.mjs +11 -0
- package/dist/components/Spinner/index.css +2060 -0
- package/dist/components/Spinner/index.mjs +12 -0
- package/dist/components/Stack/Stack.css +1955 -0
- package/dist/components/Stack/Stack.mjs +10 -0
- package/dist/components/Stack/index.css +1955 -0
- package/dist/components/Stack/index.mjs +11 -0
- package/dist/components/Stepper/Stepper.css +2109 -0
- package/dist/components/Stepper/Stepper.mjs +11 -0
- package/dist/components/Stepper/index.css +2109 -0
- package/dist/components/Stepper/index.mjs +12 -0
- package/dist/components/Table/Table.css +2054 -0
- package/dist/components/Table/Table.mjs +11 -0
- package/dist/components/Table/index.css +2054 -0
- package/dist/components/Table/index.mjs +12 -0
- package/dist/components/Tabs/Tabs.css +2105 -0
- package/dist/components/Tabs/Tabs.mjs +11 -0
- package/dist/components/Tabs/index.css +2105 -0
- package/dist/components/Tabs/index.mjs +12 -0
- package/dist/components/Tag/Tag.css +2098 -0
- package/dist/components/Tag/Tag.mjs +11 -0
- package/dist/components/Tag/index.css +2098 -0
- package/dist/components/Tag/index.mjs +12 -0
- package/dist/components/Text/Header.css +2018 -0
- package/dist/components/Text/Header.mjs +12 -0
- package/dist/components/Text/P.css +2018 -0
- package/dist/components/Text/P.mjs +12 -0
- package/dist/components/Text/index.css +2018 -0
- package/dist/components/Text/index.mjs +17 -0
- package/dist/components/TextArea/TextArea.css +2032 -0
- package/dist/components/TextArea/TextArea.mjs +12 -0
- package/dist/components/TextArea/index.css +2032 -0
- package/dist/components/TextArea/index.mjs +13 -0
- package/dist/components/Toast/Toast.css +2234 -0
- package/dist/components/Toast/Toast.mjs +17 -0
- package/dist/components/Toast/index.css +2234 -0
- package/dist/components/Toast/index.mjs +18 -0
- package/dist/components/Toggle/Toggle.css +2111 -0
- package/dist/components/Toggle/Toggle.mjs +11 -0
- package/dist/components/Toggle/index.css +2111 -0
- package/dist/components/Toggle/index.mjs +12 -0
- package/dist/components/Tooltip/Tooltip.css +2089 -0
- package/dist/components/Tooltip/Tooltip.mjs +11 -0
- package/dist/components/Tooltip/index.css +2089 -0
- package/dist/components/Tooltip/index.mjs +12 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css +20 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.mjs +7 -0
- package/dist/components/VisuallyHidden/index.css +20 -0
- package/dist/components/VisuallyHidden/index.mjs +8 -0
- package/dist/components/index.css +4898 -0
- package/dist/components/index.mjs +263 -0
- package/dist/index.core.mjs +263 -0
- package/dist/index.css +4898 -0
- package/dist/index.mjs +2 -4729
- package/dist/styles/layers.css +0 -0
- package/dist/styles/reset.css +131 -0
- package/dist/styles/reset.css.js +0 -0
- package/dist/styles/sprinkles.css +1943 -0
- package/dist/styles/sprinkles.css.js +220 -0
- package/dist/styles/theme.css +1991 -0
- package/dist/styles/theme.css.js +5 -0
- package/dist/styles/utils.css +4 -0
- package/dist/styles/utils.mjs +15 -0
- package/package.json +14 -25
- package/src/styles/layers.css.ts +5 -3
- package/dist/index.d.mts +0 -1834
- package/dist/styles/layers.css.d.mts +0 -6
- package/dist/styles/layers.css.mjs +0 -7
- package/dist/styles/reset.css.d.mts +0 -1
- package/dist/styles/reset.css.mjs +0 -24
- package/dist/styles/sprinkles.css.d.mts +0 -246
- package/dist/styles/sprinkles.css.mjs +0 -200
- package/dist/styles/theme.css.d.mts +0 -41
- package/dist/styles/theme.css.mjs +0 -50
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
text
|
|
3
|
+
} from "./chunk-GMAR37YG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Box_default
|
|
6
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/Input/Input.tsx
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import React from "react";
|
|
11
|
+
|
|
12
|
+
// src/components/Input/styles.css.ts
|
|
13
|
+
var inputStyle = "styles__qmljub0";
|
|
14
|
+
var label = "styles__qmljub1";
|
|
15
|
+
|
|
16
|
+
// src/components/Input/Input.tsx
|
|
17
|
+
var Input = (props) => {
|
|
18
|
+
return /* @__PURE__ */ React.createElement(
|
|
19
|
+
Box_default,
|
|
20
|
+
{
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: { mobile: "column", tablet: "row" },
|
|
23
|
+
gap: "small"
|
|
24
|
+
},
|
|
25
|
+
props.label && /* @__PURE__ */ React.createElement(
|
|
26
|
+
Box_default,
|
|
27
|
+
{
|
|
28
|
+
as: "label",
|
|
29
|
+
className: clsx(text, label),
|
|
30
|
+
marginX: { mobile: "auto", tablet: "none" },
|
|
31
|
+
marginY: { mobile: "none", tablet: "auto" },
|
|
32
|
+
htmlFor: props.id
|
|
33
|
+
},
|
|
34
|
+
props.label
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ React.createElement(
|
|
37
|
+
Box_default,
|
|
38
|
+
{
|
|
39
|
+
as: "input",
|
|
40
|
+
className: clsx(inputStyle, props.className),
|
|
41
|
+
width: props.fullWidth ? "100%" : void 0,
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
var Input_default = Input;
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
Input_default
|
|
51
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Select/Select.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React, { forwardRef } from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Select/styles.css.ts
|
|
10
|
+
var select = { "default": "styles_select_default__uy1tw81", error: "styles_select_error__uy1tw82" };
|
|
11
|
+
var selectLabel = "styles__uy1tw83";
|
|
12
|
+
var selectWrapper = "styles__uy1tw84";
|
|
13
|
+
|
|
14
|
+
// src/components/Select/Select.tsx
|
|
15
|
+
var Select = forwardRef(
|
|
16
|
+
({ label, options, error = false, fullWidth = true, className, ...props }, ref) => {
|
|
17
|
+
return /* @__PURE__ */ React.createElement(Box_default, { className: selectWrapper, width: "100%" }, label && /* @__PURE__ */ React.createElement(
|
|
18
|
+
Box_default,
|
|
19
|
+
{
|
|
20
|
+
as: "label",
|
|
21
|
+
className: selectLabel,
|
|
22
|
+
display: "block",
|
|
23
|
+
fontSize: "14px",
|
|
24
|
+
fontWeight: "500",
|
|
25
|
+
color: "c5-700",
|
|
26
|
+
marginBottom: "small"
|
|
27
|
+
},
|
|
28
|
+
label
|
|
29
|
+
), /* @__PURE__ */ React.createElement(
|
|
30
|
+
Box_default,
|
|
31
|
+
{
|
|
32
|
+
as: "select",
|
|
33
|
+
ref,
|
|
34
|
+
className: clsx(select[error ? "error" : "default"], className),
|
|
35
|
+
width: fullWidth ? "100%" : void 0,
|
|
36
|
+
...props
|
|
37
|
+
},
|
|
38
|
+
options.map((option) => /* @__PURE__ */ React.createElement(
|
|
39
|
+
"option",
|
|
40
|
+
{
|
|
41
|
+
key: option.value,
|
|
42
|
+
value: option.value,
|
|
43
|
+
disabled: option.disabled
|
|
44
|
+
},
|
|
45
|
+
option.label
|
|
46
|
+
))
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
Select.displayName = "Select";
|
|
51
|
+
var Select_default = Select;
|
|
52
|
+
|
|
53
|
+
export {
|
|
54
|
+
Select_default
|
|
55
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Stepper/Stepper.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Stepper/styles.css.ts
|
|
10
|
+
var step = "styles__vhoh9l3";
|
|
11
|
+
var stepConnector = "styles__vhoh9ld";
|
|
12
|
+
var stepConnectorCompleted = "styles__vhoh9le";
|
|
13
|
+
var stepConnectorVertical = "styles__vhoh9lf";
|
|
14
|
+
var stepContent = "styles__vhoh9l9";
|
|
15
|
+
var stepContentVertical = "styles__vhoh9la";
|
|
16
|
+
var stepDescription = "styles__vhoh9lc";
|
|
17
|
+
var stepIndicator = "styles__vhoh9l5";
|
|
18
|
+
var stepIndicatorVariants = { pending: "styles_stepIndicatorVariants_pending__vhoh9l6", current: "styles_stepIndicatorVariants_current__vhoh9l7", completed: "styles_stepIndicatorVariants_completed__vhoh9l8" };
|
|
19
|
+
var stepTitle = "styles__vhoh9lb";
|
|
20
|
+
var stepVertical = "styles__vhoh9l4";
|
|
21
|
+
var stepperContainer = "styles__vhoh9l0";
|
|
22
|
+
var stepperHorizontal = "styles__vhoh9l1";
|
|
23
|
+
var stepperVertical = "styles__vhoh9l2";
|
|
24
|
+
|
|
25
|
+
// src/components/Stepper/Stepper.tsx
|
|
26
|
+
var Stepper = ({
|
|
27
|
+
steps,
|
|
28
|
+
currentStep = 0,
|
|
29
|
+
orientation = "horizontal",
|
|
30
|
+
showConnectors = true,
|
|
31
|
+
onStepClick,
|
|
32
|
+
clickable = false,
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
}) => {
|
|
36
|
+
const getStepStatus = (index) => {
|
|
37
|
+
if (index < currentStep) return "completed";
|
|
38
|
+
if (index === currentStep) return "current";
|
|
39
|
+
return "pending";
|
|
40
|
+
};
|
|
41
|
+
const handleStepClick = (index) => {
|
|
42
|
+
if (clickable && onStepClick) {
|
|
43
|
+
onStepClick(index);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ React.createElement(
|
|
47
|
+
Box_default,
|
|
48
|
+
{
|
|
49
|
+
className: clsx(
|
|
50
|
+
stepperContainer,
|
|
51
|
+
orientation === "horizontal" ? stepperHorizontal : stepperVertical,
|
|
52
|
+
className
|
|
53
|
+
),
|
|
54
|
+
role: "list",
|
|
55
|
+
"aria-label": "Step progress",
|
|
56
|
+
...props
|
|
57
|
+
},
|
|
58
|
+
steps.map((stepItem, index) => {
|
|
59
|
+
const status = stepItem.status || getStepStatus(index);
|
|
60
|
+
const isLast = index === steps.length - 1;
|
|
61
|
+
const isCompleted = status === "completed";
|
|
62
|
+
return /* @__PURE__ */ React.createElement(
|
|
63
|
+
Box_default,
|
|
64
|
+
{
|
|
65
|
+
key: index,
|
|
66
|
+
className: clsx(step, orientation === "vertical" && stepVertical),
|
|
67
|
+
role: "listitem",
|
|
68
|
+
"aria-current": status === "current" ? "step" : void 0
|
|
69
|
+
},
|
|
70
|
+
showConnectors && !isLast && orientation === "horizontal" && /* @__PURE__ */ React.createElement(
|
|
71
|
+
Box_default,
|
|
72
|
+
{
|
|
73
|
+
className: clsx(
|
|
74
|
+
stepConnector,
|
|
75
|
+
isCompleted && stepConnectorCompleted
|
|
76
|
+
),
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
showConnectors && !isLast && orientation === "vertical" && /* @__PURE__ */ React.createElement(
|
|
81
|
+
Box_default,
|
|
82
|
+
{
|
|
83
|
+
className: stepConnectorVertical,
|
|
84
|
+
style: { backgroundColor: isCompleted ? void 0 : void 0 },
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ React.createElement(
|
|
89
|
+
Box_default,
|
|
90
|
+
{
|
|
91
|
+
className: clsx(stepIndicator, stepIndicatorVariants[status]),
|
|
92
|
+
onClick: () => handleStepClick(index),
|
|
93
|
+
style: { cursor: clickable ? "pointer" : "default" },
|
|
94
|
+
"aria-label": `Step ${index + 1}: ${stepItem.title}`
|
|
95
|
+
},
|
|
96
|
+
status === "completed" ? "\u2713" : index + 1
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ React.createElement(
|
|
99
|
+
Box_default,
|
|
100
|
+
{
|
|
101
|
+
className: clsx(
|
|
102
|
+
stepContent,
|
|
103
|
+
orientation === "vertical" && stepContentVertical
|
|
104
|
+
)
|
|
105
|
+
},
|
|
106
|
+
/* @__PURE__ */ React.createElement(Box_default, { as: "h4", className: stepTitle }, stepItem.title),
|
|
107
|
+
stepItem.description && /* @__PURE__ */ React.createElement(Box_default, { as: "p", className: stepDescription }, stepItem.description)
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
})
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
var Stepper_default = Stepper;
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
Stepper_default
|
|
117
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
listItem
|
|
3
|
+
} from "./chunk-GD42AS4L.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Box_default
|
|
6
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/List/ListItem.tsx
|
|
9
|
+
import React from "react";
|
|
10
|
+
var ListItem = ({
|
|
11
|
+
children,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: "li", className: listItem, ...props }, children);
|
|
15
|
+
};
|
|
16
|
+
var ListItem_default = ListItem;
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
ListItem_default
|
|
20
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Icon/Icon.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Icon/styles.css.ts
|
|
10
|
+
var icon = "styles__5assay0";
|
|
11
|
+
|
|
12
|
+
// src/components/Icon/Icon.tsx
|
|
13
|
+
var IconComponent = ({ name, children, className, color }) => {
|
|
14
|
+
const iconMap = {
|
|
15
|
+
check: "\u2713",
|
|
16
|
+
error: "\u2717",
|
|
17
|
+
warning: "\u26A0",
|
|
18
|
+
info: "i",
|
|
19
|
+
success: "\u2713",
|
|
20
|
+
close: "\xD7"
|
|
21
|
+
};
|
|
22
|
+
const displayContent = children || (name ? iconMap[name] : void 0);
|
|
23
|
+
if (!displayContent) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ React.createElement(
|
|
27
|
+
Box_default,
|
|
28
|
+
{
|
|
29
|
+
as: "span",
|
|
30
|
+
className: clsx(icon, className),
|
|
31
|
+
style: { color },
|
|
32
|
+
"aria-hidden": "true"
|
|
33
|
+
},
|
|
34
|
+
displayContent
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
IconComponent.displayName = "Icon";
|
|
38
|
+
var Icon_default = IconComponent;
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
Icon_default
|
|
42
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Drawer/Drawer.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React, { useEffect } from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Drawer/styles.css.ts
|
|
10
|
+
var drawer = "styles__1nagv3ba";
|
|
11
|
+
var drawerBody = "styles__1nagv3be";
|
|
12
|
+
var drawerCloseButton = "styles__1nagv3bd";
|
|
13
|
+
var drawerFooter = "styles__1nagv3bf";
|
|
14
|
+
var drawerHeader = "styles__1nagv3bb";
|
|
15
|
+
var drawerOverlay = "styles__1nagv3b9";
|
|
16
|
+
var drawerPositionVariants = { left: "styles_drawerPositionVariants_left__1nagv3b5", right: "styles_drawerPositionVariants_right__1nagv3b6", top: "styles_drawerPositionVariants_top__1nagv3b7", bottom: "styles_drawerPositionVariants_bottom__1nagv3b8" };
|
|
17
|
+
var drawerTitle = "styles__1nagv3bc";
|
|
18
|
+
|
|
19
|
+
// src/components/Drawer/Drawer.tsx
|
|
20
|
+
var sizeMap = {
|
|
21
|
+
left: {
|
|
22
|
+
small: "250px",
|
|
23
|
+
medium: "350px",
|
|
24
|
+
large: "450px",
|
|
25
|
+
full: "100vw"
|
|
26
|
+
},
|
|
27
|
+
right: {
|
|
28
|
+
small: "250px",
|
|
29
|
+
medium: "350px",
|
|
30
|
+
large: "450px",
|
|
31
|
+
full: "100vw"
|
|
32
|
+
},
|
|
33
|
+
top: {
|
|
34
|
+
small: "200px",
|
|
35
|
+
medium: "300px",
|
|
36
|
+
large: "400px",
|
|
37
|
+
full: "100vh"
|
|
38
|
+
},
|
|
39
|
+
bottom: {
|
|
40
|
+
small: "200px",
|
|
41
|
+
medium: "300px",
|
|
42
|
+
large: "400px",
|
|
43
|
+
full: "100vh"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var Drawer = ({
|
|
47
|
+
isOpen,
|
|
48
|
+
onClose,
|
|
49
|
+
title,
|
|
50
|
+
position = "right",
|
|
51
|
+
size = "medium",
|
|
52
|
+
children,
|
|
53
|
+
footer,
|
|
54
|
+
showCloseButton = true,
|
|
55
|
+
closeOnOverlayClick = true,
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}) => {
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (isOpen) {
|
|
61
|
+
document.body.style.overflow = "hidden";
|
|
62
|
+
} else {
|
|
63
|
+
document.body.style.overflow = "";
|
|
64
|
+
}
|
|
65
|
+
return () => {
|
|
66
|
+
document.body.style.overflow = "";
|
|
67
|
+
};
|
|
68
|
+
}, [isOpen]);
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
const handleEscape = (e) => {
|
|
71
|
+
if (e.key === "Escape" && isOpen) {
|
|
72
|
+
onClose();
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
document.addEventListener("keydown", handleEscape);
|
|
76
|
+
return () => document.removeEventListener("keydown", handleEscape);
|
|
77
|
+
}, [isOpen, onClose]);
|
|
78
|
+
if (!isOpen) return null;
|
|
79
|
+
const dimensionStyle = {
|
|
80
|
+
["--drawer-width"]: ["left", "right"].includes(position) ? sizeMap[position][size] : void 0,
|
|
81
|
+
["--drawer-height"]: ["top", "bottom"].includes(position) ? sizeMap[position][size] : void 0
|
|
82
|
+
};
|
|
83
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
84
|
+
Box_default,
|
|
85
|
+
{
|
|
86
|
+
className: drawerOverlay,
|
|
87
|
+
onClick: closeOnOverlayClick ? onClose : void 0,
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
}
|
|
90
|
+
), /* @__PURE__ */ React.createElement(
|
|
91
|
+
Box_default,
|
|
92
|
+
{
|
|
93
|
+
as: "div",
|
|
94
|
+
role: "dialog",
|
|
95
|
+
"aria-modal": "true",
|
|
96
|
+
className: clsx(drawer, drawerPositionVariants[position], className),
|
|
97
|
+
style: dimensionStyle,
|
|
98
|
+
...props
|
|
99
|
+
},
|
|
100
|
+
title && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: drawerHeader }, /* @__PURE__ */ React.createElement(Box_default, { as: "h2", className: drawerTitle }, title), showCloseButton && /* @__PURE__ */ React.createElement(
|
|
101
|
+
Box_default,
|
|
102
|
+
{
|
|
103
|
+
as: "button",
|
|
104
|
+
className: drawerCloseButton,
|
|
105
|
+
onClick: onClose,
|
|
106
|
+
"aria-label": "Close drawer",
|
|
107
|
+
type: "button"
|
|
108
|
+
},
|
|
109
|
+
"\xD7"
|
|
110
|
+
)),
|
|
111
|
+
/* @__PURE__ */ React.createElement(Box_default, { as: "div", className: drawerBody }, children),
|
|
112
|
+
footer && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: drawerFooter }, footer)
|
|
113
|
+
));
|
|
114
|
+
};
|
|
115
|
+
var Drawer_default = Drawer;
|
|
116
|
+
|
|
117
|
+
export {
|
|
118
|
+
Drawer_default
|
|
119
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Separator/Separator.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Separator/styles.css.ts
|
|
10
|
+
var separator = "styles__rgqv5z0";
|
|
11
|
+
var separatorOrientation = { horizontal: "styles_separatorOrientation_horizontal__rgqv5z1", vertical: "styles_separatorOrientation_vertical__rgqv5z2" };
|
|
12
|
+
|
|
13
|
+
// src/components/Separator/Separator.tsx
|
|
14
|
+
var Separator = ({
|
|
15
|
+
orientation = "horizontal",
|
|
16
|
+
decorative = false,
|
|
17
|
+
className,
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
return /* @__PURE__ */ React.createElement(
|
|
21
|
+
Box_default,
|
|
22
|
+
{
|
|
23
|
+
as: "hr",
|
|
24
|
+
className: clsx(separator, separatorOrientation[orientation], className),
|
|
25
|
+
"aria-hidden": decorative,
|
|
26
|
+
...props
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
var Separator_default = Separator;
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Separator_default
|
|
34
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Card/Card.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Card/styles.css.ts
|
|
9
|
+
var card = "styles__dqeva03";
|
|
10
|
+
var cardVariants = { elevated: "styles_cardVariants_elevated__dqeva00", outlined: "styles_cardVariants_outlined__dqeva01", filled: "styles_cardVariants_filled__dqeva02" };
|
|
11
|
+
|
|
12
|
+
// src/components/Card/Card.tsx
|
|
13
|
+
import React from "react";
|
|
14
|
+
var Card = ({
|
|
15
|
+
variant = "elevated",
|
|
16
|
+
padding = "medium",
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
|
+
Box_default,
|
|
21
|
+
{
|
|
22
|
+
as: "div",
|
|
23
|
+
borderRadius: "large",
|
|
24
|
+
padding: padding !== "none" ? padding : void 0,
|
|
25
|
+
className: clsx(cardVariants[variant], card, props.className),
|
|
26
|
+
...props
|
|
27
|
+
},
|
|
28
|
+
props.children
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
var Card_default = Card;
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
Card_default
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
navbarStyle
|
|
3
|
+
} from "./chunk-7Y3QCS5S.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Box_default
|
|
6
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/Navbar/Navbar.tsx
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
import React from "react";
|
|
11
|
+
var Navbar = (props) => {
|
|
12
|
+
return /* @__PURE__ */ React.createElement(
|
|
13
|
+
Box_default,
|
|
14
|
+
{
|
|
15
|
+
as: "nav",
|
|
16
|
+
width: "100%",
|
|
17
|
+
display: "flex",
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
gap: "medium",
|
|
20
|
+
className: clsx(
|
|
21
|
+
navbarStyle,
|
|
22
|
+
props.className
|
|
23
|
+
),
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
var Navbar_default = Navbar;
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
Navbar_default
|
|
32
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Accordion/Accordion.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React, { createContext, useContext, useState, useCallback } from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Accordion/styles.css.ts
|
|
10
|
+
var accordionContent = { collapsed: "styles_accordionContent_collapsed__8xsr6z3", expanded: "styles_accordionContent_expanded__8xsr6z4" };
|
|
11
|
+
var accordionGroup = "styles__8xsr6z7";
|
|
12
|
+
var accordionHeader = "styles_accordionHeader__8xsr6z2";
|
|
13
|
+
var accordionIcon = "styles_accordionIcon__8xsr6z5";
|
|
14
|
+
var accordionIconExpanded = "styles_accordionIconExpanded__8xsr6z6";
|
|
15
|
+
var accordionItem = "styles_accordionItem__8xsr6z1";
|
|
16
|
+
|
|
17
|
+
// src/components/Accordion/Accordion.tsx
|
|
18
|
+
var AccordionContext = createContext({
|
|
19
|
+
allowMultiple: false,
|
|
20
|
+
expandedItems: /* @__PURE__ */ new Set(),
|
|
21
|
+
toggleItem: () => {
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var Accordion = ({
|
|
25
|
+
children,
|
|
26
|
+
allowMultiple = false,
|
|
27
|
+
...props
|
|
28
|
+
}) => {
|
|
29
|
+
const [expandedItems, setExpandedItems] = useState(/* @__PURE__ */ new Set());
|
|
30
|
+
const toggleItem = (value) => {
|
|
31
|
+
setExpandedItems((prev) => {
|
|
32
|
+
const newSet = new Set(prev);
|
|
33
|
+
if (newSet.has(value)) {
|
|
34
|
+
newSet.delete(value);
|
|
35
|
+
} else {
|
|
36
|
+
if (allowMultiple) {
|
|
37
|
+
newSet.add(value);
|
|
38
|
+
} else {
|
|
39
|
+
return /* @__PURE__ */ new Set([value]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return newSet;
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ React.createElement(
|
|
46
|
+
AccordionContext.Provider,
|
|
47
|
+
{
|
|
48
|
+
value: { allowMultiple, expandedItems, toggleItem }
|
|
49
|
+
},
|
|
50
|
+
/* @__PURE__ */ React.createElement(
|
|
51
|
+
Box_default,
|
|
52
|
+
{
|
|
53
|
+
className: clsx(accordionGroup, props.className),
|
|
54
|
+
width: "100%",
|
|
55
|
+
...props
|
|
56
|
+
},
|
|
57
|
+
children
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
var AccordionItem = ({
|
|
62
|
+
value,
|
|
63
|
+
title,
|
|
64
|
+
children,
|
|
65
|
+
...props
|
|
66
|
+
}) => {
|
|
67
|
+
const { expandedItems, toggleItem } = useContext(AccordionContext);
|
|
68
|
+
const isExpanded = expandedItems.has(value);
|
|
69
|
+
const toggleExpanded = useCallback(() => {
|
|
70
|
+
toggleItem(value);
|
|
71
|
+
}, [value, toggleItem]);
|
|
72
|
+
return /* @__PURE__ */ React.createElement(
|
|
73
|
+
Box_default,
|
|
74
|
+
{
|
|
75
|
+
as: "div",
|
|
76
|
+
className: clsx(accordionItem, props.className),
|
|
77
|
+
width: "100%",
|
|
78
|
+
marginBottom: "small",
|
|
79
|
+
border: "small",
|
|
80
|
+
borderRadius: "large",
|
|
81
|
+
overflow: "hidden",
|
|
82
|
+
...props
|
|
83
|
+
},
|
|
84
|
+
/* @__PURE__ */ React.createElement(
|
|
85
|
+
Box_default,
|
|
86
|
+
{
|
|
87
|
+
as: "button",
|
|
88
|
+
onClick: toggleExpanded,
|
|
89
|
+
className: accordionHeader,
|
|
90
|
+
display: "flex",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "space-between",
|
|
93
|
+
padding: "small",
|
|
94
|
+
cursor: "pointer",
|
|
95
|
+
style: { userSelect: "none" },
|
|
96
|
+
fontSize: "14px",
|
|
97
|
+
fontWeight: "500",
|
|
98
|
+
color: "c5-700",
|
|
99
|
+
"aria-expanded": isExpanded,
|
|
100
|
+
"aria-controls": `accordion-content-${value}`
|
|
101
|
+
},
|
|
102
|
+
/* @__PURE__ */ React.createElement(Box_default, { as: "span" }, title),
|
|
103
|
+
/* @__PURE__ */ React.createElement(
|
|
104
|
+
Box_default,
|
|
105
|
+
{
|
|
106
|
+
as: "span",
|
|
107
|
+
className: clsx(accordionIcon, isExpanded && accordionIconExpanded),
|
|
108
|
+
fontSize: "12px",
|
|
109
|
+
display: "flex",
|
|
110
|
+
alignItems: "center",
|
|
111
|
+
justifyContent: "center",
|
|
112
|
+
"aria-hidden": "true"
|
|
113
|
+
},
|
|
114
|
+
"\u25BC"
|
|
115
|
+
)
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ React.createElement(
|
|
118
|
+
Box_default,
|
|
119
|
+
{
|
|
120
|
+
as: "div",
|
|
121
|
+
id: `accordion-content-${value}`,
|
|
122
|
+
className: clsx(
|
|
123
|
+
accordionContent[isExpanded ? "expanded" : "collapsed"]
|
|
124
|
+
),
|
|
125
|
+
padding: "small",
|
|
126
|
+
fontSize: "14px",
|
|
127
|
+
color: "c5-700",
|
|
128
|
+
role: "region"
|
|
129
|
+
},
|
|
130
|
+
children
|
|
131
|
+
)
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
var AccordionComponent = Object.assign(Accordion, {
|
|
135
|
+
Item: AccordionItem
|
|
136
|
+
});
|
|
137
|
+
var Accordion_default = AccordionComponent;
|
|
138
|
+
|
|
139
|
+
export {
|
|
140
|
+
Accordion_default
|
|
141
|
+
};
|
|
File without changes
|