@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,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Button/Button.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Button/styles.css.ts
|
|
9
|
+
var button = "styles__tl9jzr2";
|
|
10
|
+
var buttonVariants = { primary: "styles_buttonVariants_primary__tl9jzr0", secondary: "styles_buttonVariants_secondary__tl9jzr1" };
|
|
11
|
+
|
|
12
|
+
// src/components/Button/Button.tsx
|
|
13
|
+
import React from "react";
|
|
14
|
+
var Button = ({ label, ...props }) => {
|
|
15
|
+
return /* @__PURE__ */ React.createElement(
|
|
16
|
+
Box_default,
|
|
17
|
+
{
|
|
18
|
+
as: "button",
|
|
19
|
+
borderRadius: "large",
|
|
20
|
+
width: props.fullWidth ? "100%" : void 0,
|
|
21
|
+
className: clsx(buttonVariants[props.variant], button, props.className),
|
|
22
|
+
...props
|
|
23
|
+
},
|
|
24
|
+
props.children || label
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
var Button_default = Button;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
Button_default
|
|
31
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.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
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Modal/Modal.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Modal/styles.css.ts
|
|
9
|
+
var modal = "styles__d41lqm4";
|
|
10
|
+
var modalBody = "styles__d41lqm8";
|
|
11
|
+
var modalCloseButton = "styles__d41lqm7";
|
|
12
|
+
var modalFooter = "styles__d41lqm9";
|
|
13
|
+
var modalHeader = "styles__d41lqm5";
|
|
14
|
+
var modalTitle = "styles__d41lqm6";
|
|
15
|
+
var modalVariants = { small: "styles_modalVariants_small__d41lqm0", medium: "styles_modalVariants_medium__d41lqm1", large: "styles_modalVariants_large__d41lqm2", full: "styles_modalVariants_full__d41lqm3" };
|
|
16
|
+
|
|
17
|
+
// src/components/Modal/Modal.tsx
|
|
18
|
+
import React, { useEffect, useRef } from "react";
|
|
19
|
+
var Modal = ({
|
|
20
|
+
isOpen,
|
|
21
|
+
onClose,
|
|
22
|
+
title,
|
|
23
|
+
size = "medium",
|
|
24
|
+
children,
|
|
25
|
+
footer,
|
|
26
|
+
showCloseButton = true,
|
|
27
|
+
...props
|
|
28
|
+
}) => {
|
|
29
|
+
const dialogRef = useRef(null);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const dialog = dialogRef.current;
|
|
32
|
+
if (!dialog) return;
|
|
33
|
+
if (isOpen) {
|
|
34
|
+
dialog.showModal();
|
|
35
|
+
dialog.classList.add("open");
|
|
36
|
+
} else {
|
|
37
|
+
dialog.close();
|
|
38
|
+
dialog.classList.remove("open");
|
|
39
|
+
}
|
|
40
|
+
const handleClose = () => {
|
|
41
|
+
onClose();
|
|
42
|
+
};
|
|
43
|
+
dialog.addEventListener("close", handleClose);
|
|
44
|
+
return () => {
|
|
45
|
+
dialog.removeEventListener("close", handleClose);
|
|
46
|
+
};
|
|
47
|
+
}, [isOpen, onClose]);
|
|
48
|
+
return /* @__PURE__ */ React.createElement(
|
|
49
|
+
Box_default,
|
|
50
|
+
{
|
|
51
|
+
as: "dialog",
|
|
52
|
+
ref: dialogRef,
|
|
53
|
+
className: clsx(modal, modalVariants[size]),
|
|
54
|
+
onClick: (e) => {
|
|
55
|
+
if (e.target === dialogRef.current) {
|
|
56
|
+
onClose();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
...props
|
|
60
|
+
},
|
|
61
|
+
title && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalHeader }, /* @__PURE__ */ React.createElement(Box_default, { as: "h2", className: modalTitle }, title), showCloseButton && /* @__PURE__ */ React.createElement(
|
|
62
|
+
Box_default,
|
|
63
|
+
{
|
|
64
|
+
as: "button",
|
|
65
|
+
className: modalCloseButton,
|
|
66
|
+
onClick: onClose,
|
|
67
|
+
"aria-label": "Close modal",
|
|
68
|
+
type: "button"
|
|
69
|
+
},
|
|
70
|
+
"\xD7"
|
|
71
|
+
)),
|
|
72
|
+
/* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalBody }, children),
|
|
73
|
+
footer && /* @__PURE__ */ React.createElement(Box_default, { as: "div", className: modalFooter }, footer)
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
var Modal_default = Modal;
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
Modal_default
|
|
80
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
|
|
8
|
+
// src/components/Tooltip/styles.css.ts
|
|
9
|
+
var tooltipArrow = "styles__fm9ov46";
|
|
10
|
+
var tooltipArrowBottom = "styles__fm9ov48";
|
|
11
|
+
var tooltipArrowLeft = "styles__fm9ov49";
|
|
12
|
+
var tooltipArrowRight = "styles__fm9ov4a";
|
|
13
|
+
var tooltipArrowTop = "styles__fm9ov47";
|
|
14
|
+
var tooltipContainer = "styles__fm9ov44";
|
|
15
|
+
var tooltipContent = "styles__fm9ov45";
|
|
16
|
+
var tooltipPositions = { top: "styles_tooltipPositions_top__fm9ov40", bottom: "styles_tooltipPositions_bottom__fm9ov41", left: "styles_tooltipPositions_left__fm9ov42", right: "styles_tooltipPositions_right__fm9ov43" };
|
|
17
|
+
|
|
18
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
19
|
+
import React, { useState } from "react";
|
|
20
|
+
var Tooltip = ({
|
|
21
|
+
content,
|
|
22
|
+
position = "top",
|
|
23
|
+
showArrow = true,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}) => {
|
|
27
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
28
|
+
const arrowStyle = {
|
|
29
|
+
top: position === "bottom" ? tooltipArrowBottom : void 0,
|
|
30
|
+
bottom: position === "top" ? tooltipArrowTop : void 0,
|
|
31
|
+
left: position === "right" ? tooltipArrowLeft : void 0,
|
|
32
|
+
right: position === "left" ? tooltipArrowRight : void 0
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ React.createElement(
|
|
35
|
+
Box_default,
|
|
36
|
+
{
|
|
37
|
+
as: "div",
|
|
38
|
+
className: clsx(tooltipContainer, props.className),
|
|
39
|
+
onMouseEnter: () => setIsVisible(true),
|
|
40
|
+
onMouseLeave: () => setIsVisible(false),
|
|
41
|
+
onFocus: () => setIsVisible(true),
|
|
42
|
+
onBlur: () => setIsVisible(false),
|
|
43
|
+
...props
|
|
44
|
+
},
|
|
45
|
+
children,
|
|
46
|
+
/* @__PURE__ */ React.createElement(
|
|
47
|
+
Box_default,
|
|
48
|
+
{
|
|
49
|
+
as: "div",
|
|
50
|
+
className: clsx(tooltipContent, tooltipPositions[position]),
|
|
51
|
+
"data-visible": isVisible,
|
|
52
|
+
role: "tooltip"
|
|
53
|
+
},
|
|
54
|
+
showArrow && /* @__PURE__ */ React.createElement(
|
|
55
|
+
Box_default,
|
|
56
|
+
{
|
|
57
|
+
as: "span",
|
|
58
|
+
className: clsx(
|
|
59
|
+
tooltipArrow,
|
|
60
|
+
arrowStyle.top,
|
|
61
|
+
arrowStyle.bottom,
|
|
62
|
+
arrowStyle.left,
|
|
63
|
+
arrowStyle.right
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
content
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
var Tooltip_default = Tooltip;
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
Tooltip_default
|
|
75
|
+
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Table/Table.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React, { createContext, useContext } from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Table/styles.css.ts
|
|
10
|
+
var table = "styles__1xzbqi40";
|
|
11
|
+
var tableContainer = "styles__1xzbqi48";
|
|
12
|
+
var tbody = "styles__1xzbqi42";
|
|
13
|
+
var td = "styles__1xzbqi47";
|
|
14
|
+
var tfoot = "styles__1xzbqi43";
|
|
15
|
+
var th = "styles__1xzbqi46";
|
|
16
|
+
var thead = "styles__1xzbqi41";
|
|
17
|
+
var tr = { "default": "styles_tr_default__1xzbqi44", striped: "styles_tr_striped__1xzbqi45" };
|
|
18
|
+
|
|
19
|
+
// src/components/Table/Table.tsx
|
|
20
|
+
var TableContext = createContext({});
|
|
21
|
+
var TableComponent = ({
|
|
22
|
+
children,
|
|
23
|
+
striped = false,
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}) => {
|
|
27
|
+
return /* @__PURE__ */ React.createElement(TableContext.Provider, { value: { striped } }, /* @__PURE__ */ React.createElement(Box_default, { className: clsx(tableContainer, className), width: "100%" }, /* @__PURE__ */ React.createElement(Box_default, { as: "table", className: clsx(table), ...props }, children)));
|
|
28
|
+
};
|
|
29
|
+
var Thead = ({ children, className }) => {
|
|
30
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: "thead", className: clsx(thead, className) }, children);
|
|
31
|
+
};
|
|
32
|
+
var Tbody = ({ children, className }) => {
|
|
33
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: "tbody", className: clsx(tbody, className) }, children);
|
|
34
|
+
};
|
|
35
|
+
var Tfoot = ({ children, className }) => {
|
|
36
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: "tfoot", className: clsx(tfoot, className) }, children);
|
|
37
|
+
};
|
|
38
|
+
var Tr = ({ children, className }) => {
|
|
39
|
+
const { striped } = useContext(TableContext);
|
|
40
|
+
return /* @__PURE__ */ React.createElement(
|
|
41
|
+
Box_default,
|
|
42
|
+
{
|
|
43
|
+
as: "tr",
|
|
44
|
+
className: clsx(tr[striped ? "striped" : "default"], className)
|
|
45
|
+
},
|
|
46
|
+
children
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
var Th = ({ children, className }) => {
|
|
50
|
+
return /* @__PURE__ */ React.createElement(Box_default, { as: "th", className: clsx(th, className) }, children);
|
|
51
|
+
};
|
|
52
|
+
var Td = ({ children, className, colSpan, rowSpan }) => {
|
|
53
|
+
return /* @__PURE__ */ React.createElement(
|
|
54
|
+
Box_default,
|
|
55
|
+
{
|
|
56
|
+
as: "td",
|
|
57
|
+
className: clsx(td, className),
|
|
58
|
+
colSpan,
|
|
59
|
+
rowSpan
|
|
60
|
+
},
|
|
61
|
+
children
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
var Table = Object.assign(TableComponent, {
|
|
65
|
+
Thead,
|
|
66
|
+
Tbody,
|
|
67
|
+
Tfoot,
|
|
68
|
+
Tr,
|
|
69
|
+
Th,
|
|
70
|
+
Td
|
|
71
|
+
});
|
|
72
|
+
var Table_default = Table;
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
Table_default
|
|
76
|
+
};
|
|
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,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/Pagination/Pagination.tsx
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import React from "react";
|
|
8
|
+
|
|
9
|
+
// src/components/Pagination/styles.css.ts
|
|
10
|
+
var ellipsis = "styles__10tz47n4";
|
|
11
|
+
var pageButton = "styles__10tz47n1";
|
|
12
|
+
var pageButtonVariants = { "default": "styles_pageButtonVariants_default__10tz47n2", active: "styles_pageButtonVariants_active__10tz47n3" };
|
|
13
|
+
var paginationContainer = "styles__10tz47n0";
|
|
14
|
+
|
|
15
|
+
// src/components/Pagination/Pagination.tsx
|
|
16
|
+
var Pagination = ({
|
|
17
|
+
currentPage,
|
|
18
|
+
totalPages,
|
|
19
|
+
onPageChange,
|
|
20
|
+
siblingCount = 1,
|
|
21
|
+
showFirstLast = true,
|
|
22
|
+
showPrevNext = true,
|
|
23
|
+
...props
|
|
24
|
+
}) => {
|
|
25
|
+
const generatePageNumbers = () => {
|
|
26
|
+
const pages2 = [];
|
|
27
|
+
const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);
|
|
28
|
+
const rightSiblingIndex = Math.min(currentPage + siblingCount, totalPages);
|
|
29
|
+
const shouldShowLeftEllipsis = leftSiblingIndex > 2;
|
|
30
|
+
const shouldShowRightEllipsis = rightSiblingIndex < totalPages - 1;
|
|
31
|
+
if (totalPages <= 7) {
|
|
32
|
+
for (let i = 1; i <= totalPages; i++) {
|
|
33
|
+
pages2.push(i);
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
pages2.push(1);
|
|
37
|
+
if (shouldShowLeftEllipsis) {
|
|
38
|
+
pages2.push("left-ellipsis");
|
|
39
|
+
} else if (currentPage > 3) {
|
|
40
|
+
for (let i = 2; i < leftSiblingIndex; i++) {
|
|
41
|
+
pages2.push(i);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
for (let i = leftSiblingIndex; i <= rightSiblingIndex; i++) {
|
|
45
|
+
if (i !== 1 && i !== totalPages) {
|
|
46
|
+
pages2.push(i);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (shouldShowRightEllipsis) {
|
|
50
|
+
pages2.push("right-ellipsis");
|
|
51
|
+
} else if (currentPage < totalPages - 2) {
|
|
52
|
+
for (let i = rightSiblingIndex + 1; i < totalPages; i++) {
|
|
53
|
+
pages2.push(i);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
pages2.push(totalPages);
|
|
57
|
+
}
|
|
58
|
+
return pages2;
|
|
59
|
+
};
|
|
60
|
+
const pages = generatePageNumbers();
|
|
61
|
+
const { className, ...restProps } = props;
|
|
62
|
+
return /* @__PURE__ */ React.createElement(Box_default, { className: clsx(paginationContainer, className), ...restProps }, showFirstLast && /* @__PURE__ */ React.createElement(
|
|
63
|
+
Box_default,
|
|
64
|
+
{
|
|
65
|
+
as: "button",
|
|
66
|
+
className: clsx(pageButton, pageButtonVariants.default),
|
|
67
|
+
onClick: () => onPageChange(1),
|
|
68
|
+
disabled: currentPage === 1
|
|
69
|
+
},
|
|
70
|
+
"<<"
|
|
71
|
+
), showPrevNext && /* @__PURE__ */ React.createElement(
|
|
72
|
+
Box_default,
|
|
73
|
+
{
|
|
74
|
+
as: "button",
|
|
75
|
+
className: clsx(pageButton, pageButtonVariants.default),
|
|
76
|
+
onClick: () => onPageChange(currentPage - 1),
|
|
77
|
+
disabled: currentPage === 1
|
|
78
|
+
},
|
|
79
|
+
"<"
|
|
80
|
+
), pages.map(
|
|
81
|
+
(page, index) => typeof page === "number" ? /* @__PURE__ */ React.createElement(
|
|
82
|
+
Box_default,
|
|
83
|
+
{
|
|
84
|
+
key: `page-${page}`,
|
|
85
|
+
as: "button",
|
|
86
|
+
className: clsx(
|
|
87
|
+
pageButton,
|
|
88
|
+
page === currentPage ? pageButtonVariants.active : pageButtonVariants.default
|
|
89
|
+
),
|
|
90
|
+
onClick: () => onPageChange(page)
|
|
91
|
+
},
|
|
92
|
+
page
|
|
93
|
+
) : /* @__PURE__ */ React.createElement(Box_default, { key: `${page}-${index}`, className: ellipsis }, "...")
|
|
94
|
+
), showPrevNext && /* @__PURE__ */ React.createElement(
|
|
95
|
+
Box_default,
|
|
96
|
+
{
|
|
97
|
+
as: "button",
|
|
98
|
+
className: clsx(pageButton, pageButtonVariants.default),
|
|
99
|
+
onClick: () => onPageChange(currentPage + 1),
|
|
100
|
+
disabled: currentPage === totalPages
|
|
101
|
+
},
|
|
102
|
+
">"
|
|
103
|
+
), showFirstLast && /* @__PURE__ */ React.createElement(
|
|
104
|
+
Box_default,
|
|
105
|
+
{
|
|
106
|
+
as: "button",
|
|
107
|
+
className: clsx(pageButton, pageButtonVariants.default),
|
|
108
|
+
onClick: () => onPageChange(totalPages),
|
|
109
|
+
disabled: currentPage === totalPages
|
|
110
|
+
},
|
|
111
|
+
">>"
|
|
112
|
+
));
|
|
113
|
+
};
|
|
114
|
+
var Pagination_default = Pagination;
|
|
115
|
+
|
|
116
|
+
export {
|
|
117
|
+
Pagination_default
|
|
118
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "./chunk-QUQTMW54.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
|
|
File without changes
|