@jordan-mace/chaser-design-system 1.2.9 → 2.0.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 +12797 -0
- package/dist/chunk-23CHBI4O.mjs +92 -0
- package/dist/chunk-265HFPSB.mjs +75 -0
- package/dist/chunk-2B6QHVPB.mjs +0 -0
- package/dist/chunk-2D54Z56T.mjs +119 -0
- package/dist/chunk-2GXDW577.mjs +8 -0
- package/dist/chunk-3LJMSR5N.mjs +0 -0
- package/dist/chunk-44TZLEZ7.mjs +44 -0
- package/dist/chunk-4FZIKPNK.mjs +0 -0
- package/dist/chunk-4H42TV7W.mjs +137 -0
- package/dist/chunk-54H4HXDY.mjs +0 -0
- package/dist/chunk-5GW3EWPT.mjs +8 -0
- package/dist/chunk-5IIKGFRC.mjs +69 -0
- package/dist/chunk-5LIOEN4L.mjs +214 -0
- package/dist/chunk-5MWWVBIZ.mjs +20 -0
- package/dist/chunk-7AY5WUX4.mjs +0 -0
- package/dist/chunk-7NAAMXLS.mjs +18 -0
- package/dist/chunk-7UZS7ZPM.mjs +31 -0
- package/dist/chunk-AIBPYS7I.mjs +55 -0
- package/dist/chunk-AIY7XRLG.mjs +0 -0
- package/dist/chunk-ARTXRQO6.mjs +0 -0
- package/dist/chunk-BTENJUDF.mjs +0 -0
- package/dist/chunk-BUO6V4ZK.mjs +0 -0
- package/dist/chunk-CBKQEKIK.mjs +0 -0
- package/dist/chunk-CHNB6YGZ.mjs +35 -0
- package/dist/chunk-CICFJYOG.mjs +20 -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-DGWDQRZU.mjs +42 -0
- package/dist/chunk-E74W45DC.mjs +0 -0
- package/dist/chunk-E7OMF6QW.mjs +0 -0
- package/dist/chunk-E7VYLVBQ.mjs +84 -0
- package/dist/chunk-EOGH5LUH.mjs +8 -0
- package/dist/chunk-EOH5NK67.mjs +0 -0
- package/dist/chunk-EOXTRIQ7.mjs +0 -0
- package/dist/chunk-EPFXGPPF.mjs +62 -0
- package/dist/chunk-ERWDS6PF.mjs +32 -0
- package/dist/chunk-FCW25RIV.mjs +117 -0
- package/dist/chunk-FSIRD5AM.mjs +57 -0
- package/dist/chunk-FUN4ITNZ.mjs +0 -0
- package/dist/chunk-G2SNFO2A.mjs +41 -0
- package/dist/chunk-GP2LGGIN.mjs +207 -0
- package/dist/chunk-GP5UECUC.mjs +0 -0
- package/dist/chunk-HGOZPEWG.mjs +39 -0
- package/dist/chunk-HJCAHUC5.mjs +45 -0
- package/dist/chunk-HPP5HXXH.mjs +51 -0
- package/dist/chunk-HUED26BN.mjs +0 -0
- package/dist/chunk-HY4GCFFE.mjs +41 -0
- package/dist/chunk-IGKJYJTY.mjs +0 -0
- package/dist/chunk-IMHQ73HA.mjs +0 -0
- package/dist/chunk-J7OJPUGH.mjs +26 -0
- package/dist/chunk-JFYMSGSU.mjs +0 -0
- package/dist/chunk-JG27KRP3.mjs +41 -0
- package/dist/chunk-JIKAPQBJ.mjs +0 -0
- package/dist/chunk-JJMLW4EM.mjs +32 -0
- package/dist/chunk-KEHMUWQ5.mjs +19 -0
- package/dist/chunk-KT7CGXAH.mjs +0 -0
- package/dist/chunk-LV54XRPR.mjs +0 -0
- package/dist/chunk-LVVXUOBP.mjs +49 -0
- package/dist/chunk-LZLK7IOL.mjs +0 -0
- package/dist/chunk-MI63MVYQ.mjs +53 -0
- package/dist/chunk-MWP3WUVH.mjs +0 -0
- package/dist/chunk-N725HZEB.mjs +0 -0
- package/dist/chunk-NIZNDR6T.mjs +0 -0
- package/dist/chunk-NXJKX4QQ.mjs +126 -0
- package/dist/chunk-O3AMXQTY.mjs +0 -0
- package/dist/chunk-OGXD2YVI.mjs +96 -0
- package/dist/chunk-OTC2PREM.mjs +64 -0
- package/dist/chunk-P7WZRYQP.mjs +34 -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-QNJKEBIF.mjs +0 -0
- package/dist/chunk-R2GRRFQS.mjs +0 -0
- package/dist/chunk-RESHDXF5.mjs +0 -0
- package/dist/chunk-RG5W2FNQ.mjs +42 -0
- package/dist/chunk-RWSFDIB7.mjs +0 -0
- package/dist/chunk-S4M6HQWR.mjs +76 -0
- package/dist/chunk-SGEVTBAH.mjs +80 -0
- package/dist/chunk-SIGP4IGV.mjs +0 -0
- package/dist/chunk-SZ25BX44.mjs +0 -0
- package/dist/chunk-T4CX5DQW.mjs +0 -0
- package/dist/chunk-TNDJWHSF.mjs +0 -0
- package/dist/chunk-UAOAQXIP.mjs +18 -0
- package/dist/chunk-UVITSUYL.mjs +21 -0
- package/dist/chunk-V35FRMOQ.mjs +0 -0
- package/dist/chunk-VGHEJ76E.mjs +0 -0
- package/dist/chunk-VMZLIR3R.mjs +122 -0
- package/dist/chunk-VVJYGPZF.mjs +85 -0
- package/dist/chunk-W2PKPRKR.mjs +51 -0
- package/dist/chunk-WO4QVNEQ.mjs +15 -0
- package/dist/chunk-WPMNFQUN.mjs +0 -0
- package/dist/chunk-WQO4PWCK.mjs +0 -0
- package/dist/chunk-WUO4DJIA.mjs +30 -0
- package/dist/chunk-WX76GCR5.mjs +0 -0
- package/dist/chunk-WXCMK5GH.mjs +141 -0
- package/dist/chunk-X4TLQAME.mjs +118 -0
- package/dist/chunk-X5ENABHC.mjs +6 -0
- package/dist/chunk-XN3QS4PQ.mjs +262 -0
- package/dist/chunk-YHWKSBUV.mjs +93 -0
- package/dist/chunk-YPTRIIDI.mjs +101 -0
- package/dist/chunk-Z3N6BHKG.mjs +43 -0
- package/dist/chunk-ZSRWE6QR.mjs +0 -0
- package/dist/components/Accordion/Accordion.css +2065 -0
- package/dist/components/Accordion/Accordion.mjs +10 -0
- package/dist/components/Accordion/index.css +2065 -0
- package/dist/components/Accordion/index.mjs +11 -0
- package/dist/components/Alert/Alert.css +2054 -0
- package/dist/components/Alert/Alert.mjs +10 -0
- package/dist/components/Alert/index.css +2054 -0
- package/dist/components/Alert/index.mjs +11 -0
- package/dist/components/AspectRatio/AspectRatio.css +1950 -0
- package/dist/components/AspectRatio/AspectRatio.mjs +9 -0
- package/dist/components/AspectRatio/index.css +1950 -0
- package/dist/components/AspectRatio/index.mjs +10 -0
- package/dist/components/Avatar/Avatar.css +2149 -0
- package/dist/components/Avatar/Avatar.mjs +10 -0
- package/dist/components/Avatar/index.css +2149 -0
- package/dist/components/Avatar/index.mjs +11 -0
- package/dist/components/Badge/Badge.css +2076 -0
- package/dist/components/Badge/Badge.mjs +10 -0
- package/dist/components/Badge/index.css +2076 -0
- package/dist/components/Badge/index.mjs +11 -0
- package/dist/components/Box/Box.css +1950 -0
- package/dist/components/Box/Box.mjs +7 -0
- package/dist/components/Box/index.css +1950 -0
- package/dist/components/Box/index.mjs +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +2052 -0
- package/dist/components/Breadcrumb/Breadcrumb.mjs +10 -0
- package/dist/components/Breadcrumb/index.css +2052 -0
- package/dist/components/Breadcrumb/index.mjs +11 -0
- package/dist/components/Button/Button.css +2030 -0
- package/dist/components/Button/Button.mjs +10 -0
- package/dist/components/Button/index.css +2030 -0
- package/dist/components/Button/index.mjs +11 -0
- package/dist/components/Card/Card.css +2025 -0
- package/dist/components/Card/Card.mjs +10 -0
- package/dist/components/Card/index.css +2025 -0
- package/dist/components/Card/index.mjs +11 -0
- package/dist/components/Checkbox/Checkbox.css +2033 -0
- package/dist/components/Checkbox/Checkbox.mjs +10 -0
- package/dist/components/Checkbox/index.css +2033 -0
- package/dist/components/Checkbox/index.mjs +11 -0
- package/dist/components/Collapse/Collapse.css +1987 -0
- package/dist/components/Collapse/Collapse.mjs +9 -0
- package/dist/components/Collapse/index.css +1987 -0
- package/dist/components/Collapse/index.mjs +10 -0
- package/dist/components/Combobox/Combobox.css +2139 -0
- package/dist/components/Combobox/Combobox.mjs +10 -0
- package/dist/components/Combobox/index.css +2139 -0
- package/dist/components/Combobox/index.mjs +11 -0
- package/dist/components/Container/Container.css +1950 -0
- package/dist/components/Container/Container.mjs +9 -0
- package/dist/components/Container/index.css +1950 -0
- package/dist/components/Container/index.mjs +10 -0
- package/dist/components/Divider/Divider.css +2037 -0
- package/dist/components/Divider/Divider.mjs +10 -0
- package/dist/components/Divider/index.css +2037 -0
- package/dist/components/Divider/index.mjs +11 -0
- package/dist/components/Drawer/Drawer.css +2143 -0
- package/dist/components/Drawer/Drawer.mjs +10 -0
- package/dist/components/Drawer/index.css +2143 -0
- package/dist/components/Drawer/index.mjs +11 -0
- package/dist/components/DropdownMenu/DropdownMenu.css +2090 -0
- package/dist/components/DropdownMenu/DropdownMenu.mjs +10 -0
- package/dist/components/DropdownMenu/index.css +2090 -0
- package/dist/components/DropdownMenu/index.mjs +11 -0
- package/dist/components/EmptyState/EmptyState.css +2033 -0
- package/dist/components/EmptyState/EmptyState.mjs +10 -0
- package/dist/components/EmptyState/index.css +2033 -0
- package/dist/components/EmptyState/index.mjs +11 -0
- package/dist/components/FileUpload/FileUpload.css +2142 -0
- package/dist/components/FileUpload/FileUpload.mjs +10 -0
- package/dist/components/FileUpload/index.css +2142 -0
- package/dist/components/FileUpload/index.mjs +11 -0
- package/dist/components/Form/Form.css +1965 -0
- package/dist/components/Form/Form.mjs +9 -0
- package/dist/components/Form/FormInput.css +4893 -0
- package/dist/components/Form/FormInput.mjs +108 -0
- package/dist/components/Form/index.css +4893 -0
- package/dist/components/Form/index.mjs +111 -0
- package/dist/components/Grid/Grid.css +1950 -0
- package/dist/components/Grid/Grid.mjs +9 -0
- package/dist/components/Grid/index.css +1950 -0
- package/dist/components/Grid/index.mjs +10 -0
- package/dist/components/Icon/Icon.css +1963 -0
- package/dist/components/Icon/Icon.mjs +9 -0
- package/dist/components/Icon/index.css +1963 -0
- package/dist/components/Icon/index.mjs +10 -0
- package/dist/components/Input/Input.css +2025 -0
- package/dist/components/Input/Input.mjs +11 -0
- package/dist/components/Input/index.css +2025 -0
- package/dist/components/Input/index.mjs +12 -0
- package/dist/components/Kbd/Kbd.css +2005 -0
- package/dist/components/Kbd/Kbd.mjs +8 -0
- package/dist/components/Kbd/index.css +2005 -0
- package/dist/components/Kbd/index.mjs +9 -0
- package/dist/components/List/List.css +2011 -0
- package/dist/components/List/List.mjs +11 -0
- package/dist/components/List/ListItem.css +2011 -0
- package/dist/components/List/ListItem.mjs +11 -0
- package/dist/components/List/index.css +2011 -0
- package/dist/components/List/index.mjs +16 -0
- package/dist/components/Modal/Modal.css +2088 -0
- package/dist/components/Modal/Modal.mjs +10 -0
- package/dist/components/Modal/index.css +2088 -0
- package/dist/components/Modal/index.mjs +11 -0
- package/dist/components/Navbar/Navbar.css +1955 -0
- package/dist/components/Navbar/Navbar.mjs +10 -0
- package/dist/components/Navbar/NavbarItem.css +1955 -0
- package/dist/components/Navbar/NavbarItem.mjs +10 -0
- package/dist/components/Navbar/index.css +1955 -0
- package/dist/components/Navbar/index.mjs +15 -0
- package/dist/components/NumberInput/NumberInput.css +2112 -0
- package/dist/components/NumberInput/NumberInput.mjs +10 -0
- package/dist/components/NumberInput/index.css +2112 -0
- package/dist/components/NumberInput/index.mjs +11 -0
- package/dist/components/Pagination/Pagination.css +2044 -0
- package/dist/components/Pagination/Pagination.mjs +10 -0
- package/dist/components/Pagination/index.css +2044 -0
- package/dist/components/Pagination/index.mjs +11 -0
- package/dist/components/Popover/Popover.css +2189 -0
- package/dist/components/Popover/Popover.mjs +10 -0
- package/dist/components/Popover/index.css +2189 -0
- package/dist/components/Popover/index.mjs +11 -0
- package/dist/components/Progress/Progress.css +2069 -0
- package/dist/components/Progress/Progress.mjs +10 -0
- package/dist/components/Progress/index.css +2069 -0
- package/dist/components/Progress/index.mjs +11 -0
- package/dist/components/Radio/Radio.css +2044 -0
- package/dist/components/Radio/Radio.mjs +10 -0
- package/dist/components/Radio/index.css +2044 -0
- package/dist/components/Radio/index.mjs +11 -0
- package/dist/components/ScrollArea/ScrollArea.css +2025 -0
- package/dist/components/ScrollArea/ScrollArea.mjs +10 -0
- package/dist/components/ScrollArea/index.css +2025 -0
- package/dist/components/ScrollArea/index.mjs +11 -0
- package/dist/components/Select/Select.css +2082 -0
- package/dist/components/Select/Select.mjs +10 -0
- package/dist/components/Select/index.css +2082 -0
- package/dist/components/Select/index.mjs +11 -0
- package/dist/components/Separator/Separator.css +2023 -0
- package/dist/components/Separator/Separator.mjs +10 -0
- package/dist/components/Separator/index.css +2023 -0
- package/dist/components/Separator/index.mjs +11 -0
- package/dist/components/Skeleton/Skeleton.css +2060 -0
- package/dist/components/Skeleton/Skeleton.mjs +10 -0
- package/dist/components/Skeleton/index.css +2060 -0
- package/dist/components/Skeleton/index.mjs +11 -0
- package/dist/components/Spinner/Spinner.css +2055 -0
- package/dist/components/Spinner/Spinner.mjs +10 -0
- package/dist/components/Spinner/index.css +2055 -0
- package/dist/components/Spinner/index.mjs +11 -0
- package/dist/components/Stack/Stack.css +1950 -0
- package/dist/components/Stack/Stack.mjs +9 -0
- package/dist/components/Stack/index.css +1950 -0
- package/dist/components/Stack/index.mjs +10 -0
- package/dist/components/Stepper/Stepper.css +2104 -0
- package/dist/components/Stepper/Stepper.mjs +10 -0
- package/dist/components/Stepper/index.css +2104 -0
- package/dist/components/Stepper/index.mjs +11 -0
- package/dist/components/Table/Table.css +2049 -0
- package/dist/components/Table/Table.mjs +10 -0
- package/dist/components/Table/index.css +2049 -0
- package/dist/components/Table/index.mjs +11 -0
- package/dist/components/Tabs/Tabs.css +2100 -0
- package/dist/components/Tabs/Tabs.mjs +10 -0
- package/dist/components/Tabs/index.css +2100 -0
- package/dist/components/Tabs/index.mjs +11 -0
- package/dist/components/Tag/Tag.css +2093 -0
- package/dist/components/Tag/Tag.mjs +10 -0
- package/dist/components/Tag/index.css +2093 -0
- package/dist/components/Tag/index.mjs +11 -0
- package/dist/components/Text/Header.css +2013 -0
- package/dist/components/Text/Header.mjs +11 -0
- package/dist/components/Text/P.css +2013 -0
- package/dist/components/Text/P.mjs +11 -0
- package/dist/components/Text/index.css +2013 -0
- package/dist/components/Text/index.mjs +16 -0
- package/dist/components/TextArea/TextArea.css +2027 -0
- package/dist/components/TextArea/TextArea.mjs +11 -0
- package/dist/components/TextArea/index.css +2027 -0
- package/dist/components/TextArea/index.mjs +12 -0
- package/dist/components/Toast/Toast.css +2229 -0
- package/dist/components/Toast/Toast.mjs +16 -0
- package/dist/components/Toast/index.css +2229 -0
- package/dist/components/Toast/index.mjs +17 -0
- package/dist/components/Toggle/Toggle.css +2106 -0
- package/dist/components/Toggle/Toggle.mjs +10 -0
- package/dist/components/Toggle/index.css +2106 -0
- package/dist/components/Toggle/index.mjs +11 -0
- package/dist/components/Tooltip/Tooltip.css +2084 -0
- package/dist/components/Tooltip/Tooltip.mjs +10 -0
- package/dist/components/Tooltip/index.css +2084 -0
- package/dist/components/Tooltip/index.mjs +11 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.css +15 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.mjs +6 -0
- package/dist/components/VisuallyHidden/index.css +15 -0
- package/dist/components/VisuallyHidden/index.mjs +7 -0
- package/dist/components/index.css +4893 -0
- package/dist/components/index.mjs +262 -0
- package/dist/index.core.mjs +262 -0
- package/dist/index.css +4893 -0
- package/dist/index.mjs +2 -4729
- package/dist/styles/layers.css +0 -0
- package/dist/styles/reset.css +126 -0
- package/dist/styles/reset.css.js +0 -0
- package/dist/styles/sprinkles.css +1938 -0
- package/dist/styles/sprinkles.css.js +220 -0
- package/dist/styles/theme.css +1986 -0
- package/dist/styles/theme.css.js +5 -0
- package/dist/styles/utils.mjs +14 -0
- package/package.json +14 -25
- 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,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Divider/Divider.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Divider/styles.css.ts
|
|
9
|
+
var divider = "styles__q20avm5";
|
|
10
|
+
var dividerOrientations = { horizontal: "styles_dividerOrientations_horizontal__q20avm0", vertical: "styles_dividerOrientations_vertical__q20avm1" };
|
|
11
|
+
var dividerSizes = { small: "styles_dividerSizes_small__q20avm2", medium: "styles_dividerSizes_medium__q20avm3", large: "styles_dividerSizes_large__q20avm4" };
|
|
12
|
+
var dividerVerticalSizes = { small: "styles_dividerVerticalSizes_small__q20avm6", medium: "styles_dividerVerticalSizes_medium__q20avm7", large: "styles_dividerVerticalSizes_large__q20avm8" };
|
|
13
|
+
|
|
14
|
+
// src/components/Divider/Divider.tsx
|
|
15
|
+
import React from "react";
|
|
16
|
+
var Divider = ({
|
|
17
|
+
orientation = "horizontal",
|
|
18
|
+
size = "medium",
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ React.createElement(
|
|
22
|
+
Box_default,
|
|
23
|
+
{
|
|
24
|
+
as: "hr",
|
|
25
|
+
className: clsx(
|
|
26
|
+
divider,
|
|
27
|
+
dividerOrientations[orientation],
|
|
28
|
+
orientation === "vertical" ? dividerVerticalSizes[size] : dividerSizes[size],
|
|
29
|
+
props.className
|
|
30
|
+
),
|
|
31
|
+
role: "separator",
|
|
32
|
+
"aria-orientation": orientation,
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
var Divider_default = Divider;
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
Divider_default
|
|
41
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
// src/components/VisuallyHidden/styles.css.ts
|
|
5
|
+
var visuallyHidden = "styles__13txnwj0";
|
|
6
|
+
|
|
7
|
+
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
8
|
+
var VisuallyHidden = ({
|
|
9
|
+
children,
|
|
10
|
+
as: Component = "span",
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
return React.createElement(
|
|
14
|
+
Component,
|
|
15
|
+
{
|
|
16
|
+
className: visuallyHidden,
|
|
17
|
+
...props
|
|
18
|
+
},
|
|
19
|
+
children
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
var VisuallyHidden_default = VisuallyHidden;
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
VisuallyHidden_default
|
|
26
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Spinner/Spinner.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Spinner/styles.css.ts
|
|
9
|
+
var spinner = "styles_spinner__5i4gpia";
|
|
10
|
+
var spinnerColors = { primary: "styles_spinnerColors_primary__5i4gpi1", secondary: "styles_spinnerColors_secondary__5i4gpi2", success: "styles_spinnerColors_success__5i4gpi3", warning: "styles_spinnerColors_warning__5i4gpi4", error: "styles_spinnerColors_error__5i4gpi5", info: "styles_spinnerColors_info__5i4gpi6" };
|
|
11
|
+
var spinnerSizes = { small: "styles_spinnerSizes_small__5i4gpi7", medium: "styles_spinnerSizes_medium__5i4gpi8", large: "styles_spinnerSizes_large__5i4gpi9" };
|
|
12
|
+
|
|
13
|
+
// src/components/Spinner/Spinner.tsx
|
|
14
|
+
import React from "react";
|
|
15
|
+
var Spinner = ({
|
|
16
|
+
color = "primary",
|
|
17
|
+
size = "medium",
|
|
18
|
+
role = "status",
|
|
19
|
+
...props
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ React.createElement(
|
|
22
|
+
Box_default,
|
|
23
|
+
{
|
|
24
|
+
as: "div",
|
|
25
|
+
className: clsx(
|
|
26
|
+
spinner,
|
|
27
|
+
spinnerColors[color],
|
|
28
|
+
spinnerSizes[size],
|
|
29
|
+
props.className
|
|
30
|
+
),
|
|
31
|
+
role,
|
|
32
|
+
"aria-label": "Loading",
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
var Spinner_default = Spinner;
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
Spinner_default
|
|
41
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
navbarStyle
|
|
3
|
+
} from "./chunk-2GXDW577.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Box_default
|
|
6
|
+
} from "./chunk-23CHBI4O.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,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
heading,
|
|
3
|
+
text
|
|
4
|
+
} from "./chunk-EOGH5LUH.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Box_default
|
|
7
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
8
|
+
|
|
9
|
+
// src/components/Text/Header.tsx
|
|
10
|
+
import clsx from "clsx";
|
|
11
|
+
import React from "react";
|
|
12
|
+
var Header = ({ variant, children, className }) => {
|
|
13
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: variant, className: clsx(className, text, heading) }, children);
|
|
14
|
+
};
|
|
15
|
+
var Header_default = Header;
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
Header_default
|
|
19
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Alert/Alert.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Alert/styles.css.ts
|
|
9
|
+
var alert = "styles__16ufkop4";
|
|
10
|
+
var alertContent = "styles__16ufkop5";
|
|
11
|
+
var alertDismissButton = "styles__16ufkop6";
|
|
12
|
+
var alertVariants = { success: "styles_alertVariants_success__16ufkop0", warning: "styles_alertVariants_warning__16ufkop1", error: "styles_alertVariants_error__16ufkop2", info: "styles_alertVariants_info__16ufkop3" };
|
|
13
|
+
|
|
14
|
+
// src/components/Alert/Alert.tsx
|
|
15
|
+
import React from "react";
|
|
16
|
+
var Alert = ({
|
|
17
|
+
severity = "info",
|
|
18
|
+
dismissible = false,
|
|
19
|
+
onDismiss,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}) => {
|
|
23
|
+
return /* @__PURE__ */ React.createElement(
|
|
24
|
+
Box_default,
|
|
25
|
+
{
|
|
26
|
+
as: "div",
|
|
27
|
+
role: "alert",
|
|
28
|
+
className: clsx(alert, alertVariants[severity], props.className),
|
|
29
|
+
...props
|
|
30
|
+
},
|
|
31
|
+
/* @__PURE__ */ React.createElement(Box_default, { as: "div", className: alertContent }, children),
|
|
32
|
+
dismissible && onDismiss && /* @__PURE__ */ React.createElement(
|
|
33
|
+
Box_default,
|
|
34
|
+
{
|
|
35
|
+
as: "button",
|
|
36
|
+
className: alertDismissButton,
|
|
37
|
+
onClick: onDismiss,
|
|
38
|
+
"aria-label": "Dismiss alert",
|
|
39
|
+
type: "button"
|
|
40
|
+
},
|
|
41
|
+
"\xD7"
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
};
|
|
45
|
+
var Alert_default = Alert;
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
Alert_default
|
|
49
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Skeleton/styles.css.ts
|
|
10
|
+
var skeleton = "styles__1tdpoprb";
|
|
11
|
+
var skeletonAnimation = { shimmer: "styles_skeletonAnimation_shimmer__1tdpopr8", pulse: "styles_skeletonAnimation_pulse__1tdpopr9", none: "styles_skeletonAnimation_none__1tdpopra" };
|
|
12
|
+
var skeletonSizes = { small: "styles_skeletonSizes_small__1tdpopr5", medium: "styles_skeletonSizes_medium__1tdpopr6", large: "styles_skeletonSizes_large__1tdpopr7" };
|
|
13
|
+
var skeletonVariants = { text: "styles_skeletonVariants_text__1tdpopr2", circle: "styles_skeletonVariants_circle__1tdpopr3", rectangle: "styles_skeletonVariants_rectangle__1tdpopr4" };
|
|
14
|
+
|
|
15
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
16
|
+
var Skeleton = ({
|
|
17
|
+
variant = "text",
|
|
18
|
+
size = "medium",
|
|
19
|
+
animation = "shimmer",
|
|
20
|
+
width,
|
|
21
|
+
height,
|
|
22
|
+
count = 1,
|
|
23
|
+
className,
|
|
24
|
+
...props
|
|
25
|
+
}) => {
|
|
26
|
+
const style = {
|
|
27
|
+
width,
|
|
28
|
+
height
|
|
29
|
+
};
|
|
30
|
+
const skeletons = Array.from({ length: count }, (_, index) => /* @__PURE__ */ React.createElement(
|
|
31
|
+
Box_default,
|
|
32
|
+
{
|
|
33
|
+
key: index,
|
|
34
|
+
as: "span",
|
|
35
|
+
className: clsx(
|
|
36
|
+
skeleton,
|
|
37
|
+
skeletonVariants[variant],
|
|
38
|
+
skeletonSizes[size],
|
|
39
|
+
skeletonAnimation[animation],
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
style,
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
));
|
|
47
|
+
return /* @__PURE__ */ React.createElement(Box_default, { display: "flex", flexDirection: "column", gap: "small" }, skeletons);
|
|
48
|
+
};
|
|
49
|
+
var Skeleton_default = Skeleton;
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
Skeleton_default
|
|
53
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/NumberInput/NumberInput.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React, { useCallback } from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/NumberInput/styles.css.ts
|
|
10
|
+
var numberInput = "styles__112an4g1";
|
|
11
|
+
var numberInputButton = "styles__112an4g7";
|
|
12
|
+
var numberInputContainer = "styles__112an4g0";
|
|
13
|
+
var numberInputErrorMessage = "styles__112an4ga";
|
|
14
|
+
var numberInputHint = "styles__112an4g9";
|
|
15
|
+
var numberInputLabel = "styles__112an4g4";
|
|
16
|
+
var numberInputStepper = "styles__112an4g5";
|
|
17
|
+
var numberInputStepperLeft = "styles__112an4g6";
|
|
18
|
+
var numberInputVariants = { "default": "styles_numberInputVariants_default__112an4g2", error: "styles_numberInputVariants_error__112an4g3" };
|
|
19
|
+
var numberInputWrapper = "styles__112an4g8";
|
|
20
|
+
|
|
21
|
+
// src/components/NumberInput/NumberInput.tsx
|
|
22
|
+
var NumberInput = ({
|
|
23
|
+
label,
|
|
24
|
+
value,
|
|
25
|
+
onChange,
|
|
26
|
+
min = -Infinity,
|
|
27
|
+
max = Infinity,
|
|
28
|
+
step = 1,
|
|
29
|
+
stepperPosition = "right",
|
|
30
|
+
placeholder = "0",
|
|
31
|
+
hint,
|
|
32
|
+
error = false,
|
|
33
|
+
errorMessage,
|
|
34
|
+
fullWidth = true,
|
|
35
|
+
disabled = false,
|
|
36
|
+
allowEmpty = true,
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}) => {
|
|
40
|
+
const handleChange = (e) => {
|
|
41
|
+
const inputValue = e.target.value;
|
|
42
|
+
if (inputValue === "") {
|
|
43
|
+
if (allowEmpty) {
|
|
44
|
+
onChange?.("");
|
|
45
|
+
} else {
|
|
46
|
+
onChange?.(0);
|
|
47
|
+
}
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const numValue = parseFloat(inputValue);
|
|
51
|
+
if (!isNaN(numValue)) {
|
|
52
|
+
const clampedValue = Math.min(Math.max(numValue, min), max);
|
|
53
|
+
onChange?.(clampedValue);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const increment = useCallback(() => {
|
|
57
|
+
const currentValue = typeof value === "number" ? value : 0;
|
|
58
|
+
const newValue = Math.min(currentValue + step, max);
|
|
59
|
+
onChange?.(newValue);
|
|
60
|
+
}, [value, step, max, onChange]);
|
|
61
|
+
const decrement = useCallback(() => {
|
|
62
|
+
const currentValue = typeof value === "number" ? value : 0;
|
|
63
|
+
const newValue = Math.max(currentValue - step, min);
|
|
64
|
+
onChange?.(newValue);
|
|
65
|
+
}, [value, step, min, onChange]);
|
|
66
|
+
const isIncrementDisabled = disabled || typeof value === "number" && value >= max;
|
|
67
|
+
const isDecrementDisabled = disabled || typeof value === "number" && value <= min;
|
|
68
|
+
const displayValue = value === "" ? "" : value;
|
|
69
|
+
return /* @__PURE__ */ React.createElement(Box_default, { className: numberInputWrapper, width: fullWidth ? "100%" : void 0 }, label && /* @__PURE__ */ React.createElement(Box_default, { as: "label", className: numberInputLabel }, label), /* @__PURE__ */ React.createElement(Box_default, { className: numberInputContainer }, /* @__PURE__ */ React.createElement(
|
|
70
|
+
Box_default,
|
|
71
|
+
{
|
|
72
|
+
as: "input",
|
|
73
|
+
type: "number",
|
|
74
|
+
value: displayValue,
|
|
75
|
+
onChange: handleChange,
|
|
76
|
+
min,
|
|
77
|
+
max,
|
|
78
|
+
step,
|
|
79
|
+
placeholder,
|
|
80
|
+
disabled,
|
|
81
|
+
className: clsx(
|
|
82
|
+
numberInput,
|
|
83
|
+
numberInputVariants[error ? "error" : "default"],
|
|
84
|
+
className
|
|
85
|
+
),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
), /* @__PURE__ */ React.createElement(
|
|
89
|
+
Box_default,
|
|
90
|
+
{
|
|
91
|
+
className: clsx(
|
|
92
|
+
numberInputStepper,
|
|
93
|
+
stepperPosition === "left" && numberInputStepperLeft
|
|
94
|
+
)
|
|
95
|
+
},
|
|
96
|
+
/* @__PURE__ */ React.createElement(
|
|
97
|
+
Box_default,
|
|
98
|
+
{
|
|
99
|
+
as: "button",
|
|
100
|
+
className: numberInputButton,
|
|
101
|
+
onClick: increment,
|
|
102
|
+
disabled: isIncrementDisabled,
|
|
103
|
+
type: "button",
|
|
104
|
+
"aria-label": "Increase value"
|
|
105
|
+
},
|
|
106
|
+
"+"
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ React.createElement(
|
|
109
|
+
Box_default,
|
|
110
|
+
{
|
|
111
|
+
as: "button",
|
|
112
|
+
className: numberInputButton,
|
|
113
|
+
onClick: decrement,
|
|
114
|
+
disabled: isDecrementDisabled,
|
|
115
|
+
type: "button",
|
|
116
|
+
"aria-label": "Decrease value"
|
|
117
|
+
},
|
|
118
|
+
"\u2212"
|
|
119
|
+
)
|
|
120
|
+
)), error && errorMessage && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: numberInputErrorMessage, role: "alert" }, errorMessage), hint && !error && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: numberInputHint }, hint));
|
|
121
|
+
};
|
|
122
|
+
var NumberInput_default = NumberInput;
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
NumberInput_default
|
|
126
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Breadcrumb/styles.css.ts
|
|
10
|
+
var breadcrumb = "styles__1jer4gs0";
|
|
11
|
+
var breadcrumbCurrent = "styles_breadcrumbCurrent__1jer4gs5";
|
|
12
|
+
var breadcrumbItem = "styles_breadcrumbItem__1jer4gs2";
|
|
13
|
+
var breadcrumbLink = "styles_breadcrumbLink__1jer4gs3";
|
|
14
|
+
var breadcrumbList = "styles_breadcrumbList__1jer4gs1";
|
|
15
|
+
var breadcrumbSeparator = "styles_breadcrumbSeparator__1jer4gs4";
|
|
16
|
+
|
|
17
|
+
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
18
|
+
var Breadcrumb = ({ items, className, separator = "/" }) => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
|
+
Box_default,
|
|
21
|
+
{
|
|
22
|
+
as: "nav",
|
|
23
|
+
"aria-label": "Breadcrumb",
|
|
24
|
+
className: clsx(breadcrumb, className),
|
|
25
|
+
display: "flex",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
gap: "small",
|
|
28
|
+
fontSize: "14px"
|
|
29
|
+
},
|
|
30
|
+
/* @__PURE__ */ React.createElement(
|
|
31
|
+
Box_default,
|
|
32
|
+
{
|
|
33
|
+
as: "ol",
|
|
34
|
+
className: breadcrumbList,
|
|
35
|
+
display: "flex",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
style: { listStyle: "none" },
|
|
38
|
+
margin: "none",
|
|
39
|
+
padding: "none",
|
|
40
|
+
gap: "small"
|
|
41
|
+
},
|
|
42
|
+
items.map((item, index) => /* @__PURE__ */ React.createElement(
|
|
43
|
+
Box_default,
|
|
44
|
+
{
|
|
45
|
+
as: "li",
|
|
46
|
+
key: index,
|
|
47
|
+
className: breadcrumbItem,
|
|
48
|
+
display: "flex",
|
|
49
|
+
alignItems: "center"
|
|
50
|
+
},
|
|
51
|
+
item.href && !item.current ? /* @__PURE__ */ React.createElement(
|
|
52
|
+
Box_default,
|
|
53
|
+
{
|
|
54
|
+
as: "a",
|
|
55
|
+
href: item.href,
|
|
56
|
+
className: breadcrumbLink,
|
|
57
|
+
display: "inline",
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
color: "c5-600",
|
|
60
|
+
fontSize: "14px",
|
|
61
|
+
textDecoration: "none"
|
|
62
|
+
},
|
|
63
|
+
item.label
|
|
64
|
+
) : /* @__PURE__ */ React.createElement(
|
|
65
|
+
Box_default,
|
|
66
|
+
{
|
|
67
|
+
as: "span",
|
|
68
|
+
className: breadcrumbCurrent,
|
|
69
|
+
display: "inline",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
color: "c5-700",
|
|
72
|
+
fontSize: "14px",
|
|
73
|
+
fontWeight: "500"
|
|
74
|
+
},
|
|
75
|
+
item.label
|
|
76
|
+
),
|
|
77
|
+
index < items.length - 1 && /* @__PURE__ */ React.createElement(
|
|
78
|
+
Box_default,
|
|
79
|
+
{
|
|
80
|
+
as: "span",
|
|
81
|
+
className: breadcrumbSeparator,
|
|
82
|
+
color: "c5-500",
|
|
83
|
+
fontSize: "12px",
|
|
84
|
+
style: { userSelect: "none" }
|
|
85
|
+
},
|
|
86
|
+
separator
|
|
87
|
+
)
|
|
88
|
+
))
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
var Breadcrumb_default = Breadcrumb;
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
Breadcrumb_default
|
|
96
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Progress/Progress.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Progress/styles.css.ts
|
|
10
|
+
var progress = "styles__1nuv63d0";
|
|
11
|
+
var progressBar = { "default": "styles_progressBar_default__1nuv63d1", success: "styles_progressBar_success__1nuv63d2", warning: "styles_progressBar_warning__1nuv63d3", error: "styles_progressBar_error__1nuv63d4" };
|
|
12
|
+
var progressFill = { "default": "styles_progressFill_default__1nuv63d5", success: "styles_progressFill_success__1nuv63d6", warning: "styles_progressFill_warning__1nuv63d7", error: "styles_progressFill_error__1nuv63d8" };
|
|
13
|
+
var progressLabel = "styles__1nuv63d9";
|
|
14
|
+
|
|
15
|
+
// src/components/Progress/Progress.tsx
|
|
16
|
+
var Progress = ({
|
|
17
|
+
value,
|
|
18
|
+
max = 100,
|
|
19
|
+
label,
|
|
20
|
+
showPercentage = false,
|
|
21
|
+
variant = "default",
|
|
22
|
+
className
|
|
23
|
+
}) => {
|
|
24
|
+
const percentage = Math.min(Math.max(value / max * 100, 0), 100);
|
|
25
|
+
return /* @__PURE__ */ React.createElement(Box_default, { className: clsx(progress, className), width: "100%" }, (label || showPercentage) && /* @__PURE__ */ React.createElement(
|
|
26
|
+
Box_default,
|
|
27
|
+
{
|
|
28
|
+
className: progressLabel,
|
|
29
|
+
display: "flex",
|
|
30
|
+
justifyContent: "space-between",
|
|
31
|
+
fontSize: "12px",
|
|
32
|
+
fontWeight: "500",
|
|
33
|
+
color: "c5-600",
|
|
34
|
+
marginBottom: "small",
|
|
35
|
+
fontFamily: "body"
|
|
36
|
+
},
|
|
37
|
+
label && /* @__PURE__ */ React.createElement(Box_default, { as: "span" }, label),
|
|
38
|
+
showPercentage && /* @__PURE__ */ React.createElement(Box_default, { as: "span" }, percentage, "%")
|
|
39
|
+
), /* @__PURE__ */ React.createElement(
|
|
40
|
+
Box_default,
|
|
41
|
+
{
|
|
42
|
+
as: "div",
|
|
43
|
+
className: progressBar[variant],
|
|
44
|
+
role: "progressbar",
|
|
45
|
+
"aria-valuenow": value,
|
|
46
|
+
"aria-valuemin": 0,
|
|
47
|
+
"aria-valuemax": max
|
|
48
|
+
},
|
|
49
|
+
/* @__PURE__ */ React.createElement(
|
|
50
|
+
Box_default,
|
|
51
|
+
{
|
|
52
|
+
as: "div",
|
|
53
|
+
className: progressFill[variant],
|
|
54
|
+
style: { width: `${percentage}%` },
|
|
55
|
+
role: "presentation"
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
));
|
|
59
|
+
};
|
|
60
|
+
var Progress_default = Progress;
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
Progress_default
|
|
64
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.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
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-23CHBI4O.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Grid/Grid.tsx
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
var gapMap = {
|
|
8
|
+
none: "0",
|
|
9
|
+
small: "0.5rem",
|
|
10
|
+
medium: "1rem",
|
|
11
|
+
large: "2rem"
|
|
12
|
+
};
|
|
13
|
+
var Grid = forwardRef(
|
|
14
|
+
({ columns, gap = "medium", minChildWidth, children, ...props }, ref) => {
|
|
15
|
+
const gapValue = gap;
|
|
16
|
+
const gridStyle = {
|
|
17
|
+
display: "grid",
|
|
18
|
+
gap: gapMap[gapValue]
|
|
19
|
+
};
|
|
20
|
+
if (minChildWidth) {
|
|
21
|
+
gridStyle.gridTemplateColumns = `repeat(auto-fit, minmax(${minChildWidth},1fr))`;
|
|
22
|
+
} else if (columns) {
|
|
23
|
+
gridStyle.gridTemplateColumns = `repeat(${columns},1fr)`;
|
|
24
|
+
}
|
|
25
|
+
return /* @__PURE__ */ React.createElement(
|
|
26
|
+
Box_default,
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
className: props.className,
|
|
30
|
+
style: { ...gridStyle, ...props.style },
|
|
31
|
+
...props
|
|
32
|
+
},
|
|
33
|
+
children
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
Grid.displayName = "Grid";
|
|
38
|
+
var Grid_default = Grid;
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
Grid_default
|
|
42
|
+
};
|
|
File without changes
|