@moduix/react 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -86
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +7 -8
- package/dist/components/alert/Alert.js +6 -7
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +17 -59
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +7 -50
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +10 -3
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +6 -9
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +32 -45
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +20 -29
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +34 -43
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +14 -4
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +7 -8
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- package/dist/components/lightbox/Lightbox_module.css +0 -3
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +17 -36
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +7 -8
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +12 -29
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +16 -30
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +36 -86
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +17 -46
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +18 -32
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +21 -75
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const Card: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
2
|
-
size?:
|
|
3
|
-
variant?:
|
|
4
|
-
} & import("react").RefAttributes<
|
|
2
|
+
size?: 'sm' | 'md' | 'lg';
|
|
3
|
+
variant?: 'elevated' | 'outline' | 'subtle';
|
|
4
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
6
|
-
size?:
|
|
7
|
-
variant?:
|
|
8
|
-
} & import("react").RefAttributes<
|
|
9
|
-
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
10
|
-
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
11
|
-
Media: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
12
|
-
Background: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
13
|
-
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
14
|
-
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
15
|
-
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
16
|
-
Action: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
17
|
-
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
variant?: 'elevated' | 'outline' | 'subtle';
|
|
8
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Media: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Background: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
15
|
+
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
Action: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
18
18
|
};
|
|
19
19
|
export { Card };
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Card_module from "./Card.module.js";
|
|
7
6
|
const Card_CardRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', variant = 'outline', ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
@@ -12,7 +11,7 @@ const Card_CardRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md'
|
|
|
12
11
|
"data-slot": "card-root",
|
|
13
12
|
"data-size": size,
|
|
14
13
|
"data-variant": variant,
|
|
15
|
-
className: clsx(Card_module.root,
|
|
14
|
+
className: clsx(Card_module.root, className),
|
|
16
15
|
...props
|
|
17
16
|
});
|
|
18
17
|
});
|
|
@@ -22,7 +21,7 @@ const Card_CardHeader = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
22
21
|
"data-scope": "card",
|
|
23
22
|
"data-part": "header",
|
|
24
23
|
"data-slot": "card-header",
|
|
25
|
-
className: clsx(Card_module.header,
|
|
24
|
+
className: clsx(Card_module.header, className),
|
|
26
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
});
|
|
@@ -32,7 +31,7 @@ const Card_CardBody = /*#__PURE__*/ forwardRef(function({ className, ...props },
|
|
|
32
31
|
"data-scope": "card",
|
|
33
32
|
"data-part": "body",
|
|
34
33
|
"data-slot": "card-body",
|
|
35
|
-
className: clsx(Card_module.body,
|
|
34
|
+
className: clsx(Card_module.body, className),
|
|
36
35
|
...props
|
|
37
36
|
});
|
|
38
37
|
});
|
|
@@ -42,7 +41,7 @@ const Card_CardMedia = /*#__PURE__*/ forwardRef(function({ className, ...props }
|
|
|
42
41
|
"data-scope": "card",
|
|
43
42
|
"data-part": "media",
|
|
44
43
|
"data-slot": "card-media",
|
|
45
|
-
className: clsx(Card_module.media,
|
|
44
|
+
className: clsx(Card_module.media, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -52,7 +51,7 @@ const Card_CardBackground = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
52
51
|
"data-scope": "card",
|
|
53
52
|
"data-part": "background",
|
|
54
53
|
"data-slot": "card-background",
|
|
55
|
-
className: clsx(Card_module.background,
|
|
54
|
+
className: clsx(Card_module.background, className),
|
|
56
55
|
...props
|
|
57
56
|
});
|
|
58
57
|
});
|
|
@@ -62,7 +61,7 @@ const Card_CardFooter = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
62
61
|
"data-scope": "card",
|
|
63
62
|
"data-part": "footer",
|
|
64
63
|
"data-slot": "card-footer",
|
|
65
|
-
className: clsx(Card_module.footer,
|
|
64
|
+
className: clsx(Card_module.footer, className),
|
|
66
65
|
...props
|
|
67
66
|
});
|
|
68
67
|
});
|
|
@@ -72,7 +71,7 @@ const Card_CardTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }
|
|
|
72
71
|
"data-scope": "card",
|
|
73
72
|
"data-part": "title",
|
|
74
73
|
"data-slot": "card-title",
|
|
75
|
-
className: clsx(Card_module.title,
|
|
74
|
+
className: clsx(Card_module.title, className),
|
|
76
75
|
...props
|
|
77
76
|
});
|
|
78
77
|
});
|
|
@@ -82,7 +81,7 @@ const Card_CardDescription = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
82
81
|
"data-scope": "card",
|
|
83
82
|
"data-part": "description",
|
|
84
83
|
"data-slot": "card-description",
|
|
85
|
-
className: clsx(Card_module.description,
|
|
84
|
+
className: clsx(Card_module.description, className),
|
|
86
85
|
...props
|
|
87
86
|
});
|
|
88
87
|
});
|
|
@@ -92,7 +91,7 @@ const Card_CardAction = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
92
91
|
"data-scope": "card",
|
|
93
92
|
"data-part": "action",
|
|
94
93
|
"data-slot": "card-action",
|
|
95
|
-
className: clsx(Card_module.action,
|
|
94
|
+
className: clsx(Card_module.action, className),
|
|
96
95
|
...props
|
|
97
96
|
});
|
|
98
97
|
});
|
|
@@ -102,7 +101,7 @@ const Card_CardLink = /*#__PURE__*/ forwardRef(function({ className, ...props },
|
|
|
102
101
|
"data-scope": "card",
|
|
103
102
|
"data-part": "link",
|
|
104
103
|
"data-slot": "card-link",
|
|
105
|
-
className: clsx(Card_module.link,
|
|
104
|
+
className: clsx(Card_module.link, className),
|
|
106
105
|
...props
|
|
107
106
|
});
|
|
108
107
|
});
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
--_card-section-spacing-default: var(--moduix-card-spacing, var(--moduix-card-body-padding-top, var(--moduix-spacing-4)));
|
|
5
5
|
--_card-title-font-size-default: var(--moduix-card-title-font-size, var(--moduix-text-lg));
|
|
6
6
|
--_card-title-line-height-default: var(--moduix-card-title-line-height, var(--moduix-line-height-text-lg));
|
|
7
|
-
box-sizing: border-box;
|
|
8
7
|
border: var(--moduix-card-border-width, var(--_card-border-width-default, var(--moduix-border-width-sm)))
|
|
9
8
|
solid
|
|
10
9
|
var(--moduix-card-border-color, var(--_card-border-color-default, var(--moduix-color-border)));
|
|
@@ -81,7 +80,6 @@
|
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
.header-F5Ms8N, .body-eUwDjL, .footer-QbUloO {
|
|
84
|
-
box-sizing: border-box;
|
|
85
83
|
min-width: 0;
|
|
86
84
|
padding-inline: var(--_card-padding-default);
|
|
87
85
|
}
|
|
@@ -101,16 +99,12 @@
|
|
|
101
99
|
overflow: hidden;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
.media-ARRUMe > :where(img, picture, video, canvas, svg, iframe) {
|
|
102
|
+
.media-ARRUMe > :where(img, picture, video, canvas, svg, iframe), .media-ARRUMe > picture > img {
|
|
105
103
|
width: 100%;
|
|
106
104
|
max-width: 100%;
|
|
107
105
|
display: block;
|
|
108
106
|
}
|
|
109
107
|
|
|
110
|
-
.media-ARRUMe > picture > img {
|
|
111
|
-
display: block;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
108
|
.background-AxFCfZ {
|
|
115
109
|
z-index: 0;
|
|
116
110
|
border-radius: inherit;
|
|
@@ -144,14 +138,6 @@
|
|
|
144
138
|
padding-block-start: var(--_card-padding-default);
|
|
145
139
|
}
|
|
146
140
|
|
|
147
|
-
.body-eUwDjL > :first-child {
|
|
148
|
-
margin-block-start: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.body-eUwDjL > :last-child {
|
|
152
|
-
margin-bottom: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
141
|
.footer-QbUloO {
|
|
156
142
|
align-items: center;
|
|
157
143
|
gap: var(--moduix-card-footer-gap, var(--moduix-spacing-2));
|
|
@@ -168,7 +154,6 @@
|
|
|
168
154
|
line-height: var(--_card-title-line-height-default);
|
|
169
155
|
overflow-wrap: anywhere;
|
|
170
156
|
grid-column: 1;
|
|
171
|
-
margin: 0;
|
|
172
157
|
}
|
|
173
158
|
|
|
174
159
|
.description-sVGJRZ {
|
|
@@ -178,7 +163,6 @@
|
|
|
178
163
|
line-height: var(--moduix-card-description-line-height, var(--moduix-line-height-text-sm));
|
|
179
164
|
overflow-wrap: anywhere;
|
|
180
165
|
grid-column: 1;
|
|
181
|
-
margin: 0;
|
|
182
166
|
}
|
|
183
167
|
|
|
184
168
|
.action-LB386d {
|
|
@@ -4,13 +4,12 @@ import { Carousel, useCarousel, useCarouselContext } from "@ark-ui/react/carouse
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Carousel_module from "./Carousel.module.js";
|
|
9
8
|
const Carousel_CarouselRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Carousel.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "carousel-root",
|
|
13
|
-
className: clsx(Carousel_module.root,
|
|
12
|
+
className: clsx(Carousel_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -18,7 +17,7 @@ const Carousel_CarouselRootProvider = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
18
17
|
return /*#__PURE__*/ jsx(Carousel.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "carousel-root-provider",
|
|
21
|
-
className: clsx(Carousel_module.root,
|
|
20
|
+
className: clsx(Carousel_module.root, className),
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -26,7 +25,7 @@ const Carousel_CarouselControl = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
26
25
|
return /*#__PURE__*/ jsx(Carousel.Control, {
|
|
27
26
|
ref: ref,
|
|
28
27
|
"data-slot": "carousel-control",
|
|
29
|
-
className: clsx(Carousel_module.control,
|
|
28
|
+
className: clsx(Carousel_module.control, className),
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,7 +33,7 @@ const Carousel_CarouselItemGroup = /*#__PURE__*/ forwardRef(function({ className
|
|
|
34
33
|
return /*#__PURE__*/ jsx(Carousel.ItemGroup, {
|
|
35
34
|
ref: ref,
|
|
36
35
|
"data-slot": "carousel-item-group",
|
|
37
|
-
className: clsx(Carousel_module.itemGroup,
|
|
36
|
+
className: clsx(Carousel_module.itemGroup, className),
|
|
38
37
|
...props
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -42,7 +41,7 @@ const Carousel_CarouselItem = /*#__PURE__*/ forwardRef(function({ className, ...
|
|
|
42
41
|
return /*#__PURE__*/ jsx(Carousel.Item, {
|
|
43
42
|
ref: ref,
|
|
44
43
|
"data-slot": "carousel-item",
|
|
45
|
-
className: clsx(Carousel_module.item,
|
|
44
|
+
className: clsx(Carousel_module.item, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -50,7 +49,7 @@ const Carousel_CarouselPrevTrigger = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
50
49
|
return /*#__PURE__*/ jsx(Carousel.PrevTrigger, {
|
|
51
50
|
ref: ref,
|
|
52
51
|
"data-slot": "carousel-prev-trigger",
|
|
53
|
-
className: clsx(Carousel_module.prevTrigger,
|
|
52
|
+
className: clsx(Carousel_module.prevTrigger, className),
|
|
54
53
|
...props,
|
|
55
54
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
56
55
|
className: Carousel_module.defaultIcon,
|
|
@@ -62,7 +61,7 @@ const Carousel_CarouselNextTrigger = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
62
61
|
return /*#__PURE__*/ jsx(Carousel.NextTrigger, {
|
|
63
62
|
ref: ref,
|
|
64
63
|
"data-slot": "carousel-next-trigger",
|
|
65
|
-
className: clsx(Carousel_module.nextTrigger,
|
|
64
|
+
className: clsx(Carousel_module.nextTrigger, className),
|
|
66
65
|
...props,
|
|
67
66
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
68
67
|
className: Carousel_module.defaultIcon,
|
|
@@ -74,7 +73,7 @@ const Carousel_CarouselIndicatorGroup = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
74
73
|
return /*#__PURE__*/ jsx(Carousel.IndicatorGroup, {
|
|
75
74
|
ref: ref,
|
|
76
75
|
"data-slot": "carousel-indicator-group",
|
|
77
|
-
className: clsx(Carousel_module.indicatorGroup,
|
|
76
|
+
className: clsx(Carousel_module.indicatorGroup, className),
|
|
78
77
|
...props
|
|
79
78
|
});
|
|
80
79
|
});
|
|
@@ -82,7 +81,7 @@ const Carousel_CarouselIndicator = /*#__PURE__*/ forwardRef(function({ className
|
|
|
82
81
|
return /*#__PURE__*/ jsx(Carousel.Indicator, {
|
|
83
82
|
ref: ref,
|
|
84
83
|
"data-slot": "carousel-indicator",
|
|
85
|
-
className: clsx(Carousel_module.indicator,
|
|
84
|
+
className: clsx(Carousel_module.indicator, className),
|
|
86
85
|
...props
|
|
87
86
|
});
|
|
88
87
|
});
|
|
@@ -103,7 +102,7 @@ const Carousel_CarouselAutoplayTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
103
102
|
return /*#__PURE__*/ jsx(Carousel.AutoplayTrigger, {
|
|
104
103
|
ref: ref,
|
|
105
104
|
"data-slot": "carousel-autoplay-trigger",
|
|
106
|
-
className: clsx(Carousel_module.autoplayTrigger,
|
|
105
|
+
className: clsx(Carousel_module.autoplayTrigger, className),
|
|
107
106
|
...props
|
|
108
107
|
});
|
|
109
108
|
});
|
|
@@ -111,7 +110,7 @@ const Carousel_CarouselAutoplayIndicator = /*#__PURE__*/ forwardRef(function({ c
|
|
|
111
110
|
return /*#__PURE__*/ jsx(Carousel.AutoplayIndicator, {
|
|
112
111
|
ref: ref,
|
|
113
112
|
"data-slot": "carousel-autoplay-indicator",
|
|
114
|
-
className: clsx(Carousel_module.autoplayIndicator,
|
|
113
|
+
className: clsx(Carousel_module.autoplayIndicator, className),
|
|
115
114
|
...props
|
|
116
115
|
});
|
|
117
116
|
});
|
|
@@ -119,7 +118,7 @@ const Carousel_CarouselProgressText = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
119
118
|
return /*#__PURE__*/ jsx(Carousel.ProgressText, {
|
|
120
119
|
ref: ref,
|
|
121
120
|
"data-slot": "carousel-progress-text",
|
|
122
|
-
className: clsx(Carousel_module.progressText,
|
|
121
|
+
className: clsx(Carousel_module.progressText, className),
|
|
123
122
|
...props
|
|
124
123
|
});
|
|
125
124
|
});
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
border-radius: var(--moduix-carousel-track-radius, var(--moduix-radius-xl));
|
|
32
32
|
scrollbar-width: none;
|
|
33
33
|
scroll-behavior: smooth;
|
|
34
|
+
outline: 0;
|
|
34
35
|
flex: auto;
|
|
35
36
|
min-width: 0;
|
|
36
37
|
min-height: 0;
|
|
@@ -41,13 +42,19 @@
|
|
|
41
42
|
display: none;
|
|
42
43
|
}
|
|
43
44
|
|
|
45
|
+
.itemGroup-a7LtFI:focus-visible {
|
|
46
|
+
outline: var(--moduix-carousel-focus-ring-width, var(--moduix-focus-ring-inset-width, var(--moduix-border-width-sm)))
|
|
47
|
+
solid var(--moduix-carousel-focus-ring-color, var(--moduix-color-ring));
|
|
48
|
+
outline-offset: var(--moduix-carousel-focus-ring-offset, var(--moduix-focus-ring-inset-offset));
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
.itemGroup-a7LtFI[data-dragging] {
|
|
45
52
|
cursor: grabbing;
|
|
46
53
|
-webkit-user-select: none;
|
|
47
54
|
user-select: none;
|
|
48
55
|
}
|
|
49
56
|
|
|
50
|
-
.
|
|
57
|
+
.itemGroup-a7LtFI[data-orientation="vertical"] {
|
|
51
58
|
overscroll-behavior-x: auto;
|
|
52
59
|
overscroll-behavior-y: contain;
|
|
53
60
|
height: 100%;
|
|
@@ -130,7 +137,7 @@
|
|
|
130
137
|
display: flex;
|
|
131
138
|
}
|
|
132
139
|
|
|
133
|
-
.
|
|
140
|
+
.indicatorGroup-TO_gj_[data-orientation="vertical"] {
|
|
134
141
|
flex-direction: column;
|
|
135
142
|
}
|
|
136
143
|
|
|
@@ -170,7 +177,7 @@
|
|
|
170
177
|
opacity: var(--moduix-opacity-disabled);
|
|
171
178
|
}
|
|
172
179
|
|
|
173
|
-
|
|
180
|
+
.indicator-cjLdPK[data-orientation="vertical"][data-current] {
|
|
174
181
|
width: var(--moduix-carousel-indicator-size, var(--moduix-spacing-2));
|
|
175
182
|
height: calc(var(--moduix-carousel-indicator-size, var(--moduix-spacing-2)) * 3);
|
|
176
183
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { ChartValue } from '@tanstack/charts';
|
|
2
2
|
import type { RendererChartProps } from '@tanstack/charts/react/tooltip';
|
|
3
|
+
declare const ChartPlot: <TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>({ className, motion, renderTooltipBody, renderer, ...props }: Omit<RendererChartProps<TDatum, TXValue, TYValue>, 'renderer'> & {
|
|
4
|
+
motion?: boolean;
|
|
5
|
+
renderer?: RendererChartProps<TDatum, TXValue, TYValue>['renderer'];
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
3
7
|
declare const Chart: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>> & {
|
|
4
8
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
5
|
-
Plot:
|
|
6
|
-
motion?: boolean;
|
|
7
|
-
renderer?: RendererChartProps<TDatum, TXValue, TYValue>["renderer"];
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
9
|
+
Plot: typeof ChartPlot;
|
|
9
10
|
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLElement>>;
|
|
10
|
-
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
11
|
-
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
12
|
-
Legend: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<
|
|
11
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
Legend: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
13
14
|
LegendItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
14
15
|
color?: string;
|
|
15
|
-
} & import("react").RefAttributes<
|
|
16
|
+
} & import("react").RefAttributes<HTMLLIElement>>;
|
|
16
17
|
};
|
|
17
18
|
export { Chart };
|
|
@@ -6,7 +6,6 @@ import { RendererChart } from "@tanstack/charts/react/tooltip";
|
|
|
6
6
|
import { svgChartRenderer } from "@tanstack/charts/svg/renderer";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
10
9
|
import Chart_module from "./Chart.module.js";
|
|
11
10
|
const defaultChartRenderer = motion_motion({
|
|
12
11
|
transition: {
|
|
@@ -22,7 +21,7 @@ const Chart_ChartRoot = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
22
21
|
"data-scope": "chart",
|
|
23
22
|
"data-part": "root",
|
|
24
23
|
"data-slot": "chart-root",
|
|
25
|
-
className: clsx(Chart_module.root,
|
|
24
|
+
className: clsx(Chart_module.root, className),
|
|
26
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
});
|
|
@@ -87,7 +86,7 @@ const Chart_ChartPlot = function({ className, motion = true, renderTooltipBody,
|
|
|
87
86
|
...props,
|
|
88
87
|
renderer: renderer ?? (motion ? defaultChartRenderer : svgChartRenderer),
|
|
89
88
|
renderTooltipBody: renderTooltipBody ?? renderDefaultTooltipBody,
|
|
90
|
-
className: clsx(Chart_module.plot,
|
|
89
|
+
className: clsx(Chart_module.plot, className)
|
|
91
90
|
});
|
|
92
91
|
};
|
|
93
92
|
const Chart_ChartHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
@@ -96,7 +95,7 @@ const Chart_ChartHeader = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
96
95
|
"data-scope": "chart",
|
|
97
96
|
"data-part": "header",
|
|
98
97
|
"data-slot": "chart-header",
|
|
99
|
-
className: clsx(Chart_module.header,
|
|
98
|
+
className: clsx(Chart_module.header, className),
|
|
100
99
|
...props
|
|
101
100
|
});
|
|
102
101
|
});
|
|
@@ -106,7 +105,7 @@ const Chart_ChartTitle = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
106
105
|
"data-scope": "chart",
|
|
107
106
|
"data-part": "title",
|
|
108
107
|
"data-slot": "chart-title",
|
|
109
|
-
className: clsx(Chart_module.title,
|
|
108
|
+
className: clsx(Chart_module.title, className),
|
|
110
109
|
...props
|
|
111
110
|
});
|
|
112
111
|
});
|
|
@@ -116,7 +115,7 @@ const Chart_ChartDescription = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
116
115
|
"data-scope": "chart",
|
|
117
116
|
"data-part": "description",
|
|
118
117
|
"data-slot": "chart-description",
|
|
119
|
-
className: clsx(Chart_module.description,
|
|
118
|
+
className: clsx(Chart_module.description, className),
|
|
120
119
|
...props
|
|
121
120
|
});
|
|
122
121
|
});
|
|
@@ -126,7 +125,7 @@ const Chart_ChartLegend = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
126
125
|
"data-scope": "chart",
|
|
127
126
|
"data-part": "legend",
|
|
128
127
|
"data-slot": "chart-legend",
|
|
129
|
-
className: clsx(Chart_module.legend,
|
|
128
|
+
className: clsx(Chart_module.legend, className),
|
|
130
129
|
...props
|
|
131
130
|
});
|
|
132
131
|
});
|
|
@@ -136,7 +135,7 @@ const Chart_ChartLegendItem = /*#__PURE__*/ forwardRef(function({ className, col
|
|
|
136
135
|
"data-scope": "chart",
|
|
137
136
|
"data-part": "legend-item",
|
|
138
137
|
"data-slot": "chart-legend-item",
|
|
139
|
-
className: clsx(Chart_module.legendItem,
|
|
138
|
+
className: clsx(Chart_module.legendItem, className),
|
|
140
139
|
style: color ? {
|
|
141
140
|
'--moduix-chart-legend-indicator-color': color,
|
|
142
141
|
...style
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.plot-Ww_CVs {
|
|
19
|
-
border-radius: var(--moduix-chart-plot-radius, var(--moduix-radius-md));
|
|
20
19
|
min-width: 0;
|
|
21
20
|
color: var(--moduix-chart-axis-color, var(--moduix-color-muted-foreground));
|
|
22
21
|
--ts-chart-tooltip-background: var(--moduix-chart-tooltip-bg, var(--moduix-color-popover));
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
.title-zKDqX9 {
|
|
52
|
-
color: currentColor;
|
|
53
51
|
font-size: var(--moduix-text-lg);
|
|
54
52
|
font-weight: var(--moduix-weight-semibold);
|
|
55
53
|
line-height: var(--moduix-line-height-text-lg);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Checkbox as CheckboxPrimitive, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext } from '@ark-ui/react/checkbox';
|
|
2
|
-
import type { ComponentProps
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
type RootProps = ComponentProps<typeof CheckboxPrimitive.Root> & {
|
|
5
5
|
size?: CheckboxSize;
|
|
@@ -10,7 +10,8 @@ type RootProviderProps = ComponentProps<typeof CheckboxPrimitive.RootProvider> &
|
|
|
10
10
|
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>> & {
|
|
11
11
|
Root: import("react").ForwardRefExoticComponent<Omit<RootProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
12
12
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<RootProviderProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
13
|
-
Context: (props: CheckboxPrimitive.ContextProps) => ReactNode;
|
|
13
|
+
Context: (props: CheckboxPrimitive.ContextProps) => import("react").ReactNode;
|
|
14
|
+
HiddenInput: import("react").ForwardRefExoticComponent<CheckboxPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
15
|
Control: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
16
|
Indicator: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
17
|
Label: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -2,30 +2,25 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Checkbox, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext } from "@ark-ui/react/checkbox";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, IndeterminateIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Checkbox_module from "./Checkbox.module.js";
|
|
9
|
-
const Checkbox_CheckboxRoot = /*#__PURE__*/ forwardRef(function({
|
|
8
|
+
const Checkbox_CheckboxRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Checkbox.Root, {
|
|
11
10
|
ref: ref,
|
|
12
|
-
asChild: asChild,
|
|
13
11
|
"data-slot": "checkbox-root",
|
|
14
12
|
"data-size": size,
|
|
15
|
-
className: clsx(Checkbox_module.root,
|
|
16
|
-
...props
|
|
17
|
-
children: withHiddenInput(children, asChild)
|
|
13
|
+
className: clsx(Checkbox_module.root, className),
|
|
14
|
+
...props
|
|
18
15
|
});
|
|
19
16
|
});
|
|
20
|
-
const Checkbox_CheckboxRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
17
|
+
const Checkbox_CheckboxRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
21
18
|
return /*#__PURE__*/ jsx(Checkbox.RootProvider, {
|
|
22
19
|
ref: ref,
|
|
23
|
-
asChild: asChild,
|
|
24
20
|
"data-slot": "checkbox-root-provider",
|
|
25
21
|
"data-size": size,
|
|
26
|
-
className: clsx(Checkbox_module.root,
|
|
27
|
-
...props
|
|
28
|
-
children: withHiddenInput(children, asChild)
|
|
22
|
+
className: clsx(Checkbox_module.root, className),
|
|
23
|
+
...props
|
|
29
24
|
});
|
|
30
25
|
});
|
|
31
26
|
const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className, children, indeterminate, ...props }, ref) {
|
|
@@ -33,7 +28,7 @@ const Checkbox_CheckboxIndicator = /*#__PURE__*/ forwardRef(function({ className
|
|
|
33
28
|
return /*#__PURE__*/ jsx(Checkbox.Indicator, {
|
|
34
29
|
ref: ref,
|
|
35
30
|
"data-slot": "checkbox-indicator",
|
|
36
|
-
className: clsx(Checkbox_module.indicator,
|
|
31
|
+
className: clsx(Checkbox_module.indicator, className),
|
|
37
32
|
indeterminate: indeterminate,
|
|
38
33
|
...props,
|
|
39
34
|
children: children ?? /*#__PURE__*/ jsx("span", {
|
|
@@ -48,7 +43,7 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
|
|
|
48
43
|
return /*#__PURE__*/ jsx(Checkbox.Control, {
|
|
49
44
|
ref: ref,
|
|
50
45
|
"data-slot": "checkbox-control",
|
|
51
|
-
className: clsx(Checkbox_module.control,
|
|
46
|
+
className: clsx(Checkbox_module.control, className),
|
|
52
47
|
...props,
|
|
53
48
|
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
54
49
|
children: [
|
|
@@ -60,30 +55,11 @@ const Checkbox_CheckboxControl = /*#__PURE__*/ forwardRef(function({ children, c
|
|
|
60
55
|
})
|
|
61
56
|
});
|
|
62
57
|
});
|
|
63
|
-
function withHiddenInput(children, asChild) {
|
|
64
|
-
const hiddenInput = /*#__PURE__*/ jsx(CheckboxHiddenInput, {});
|
|
65
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
66
|
-
children: [
|
|
67
|
-
children,
|
|
68
|
-
hiddenInput
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
const child = Children.only(children);
|
|
72
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
73
|
-
}
|
|
74
|
-
function CheckboxHiddenInput() {
|
|
75
|
-
const checkbox = useCheckboxContext();
|
|
76
|
-
const readOnly = void 0 !== checkbox.getRootProps()['data-readonly'];
|
|
77
|
-
return /*#__PURE__*/ jsx(Checkbox.HiddenInput, {
|
|
78
|
-
"aria-readonly": readOnly || void 0,
|
|
79
|
-
"data-slot": "checkbox-hidden-input"
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
58
|
const Checkbox_CheckboxLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
83
59
|
return /*#__PURE__*/ jsx(Checkbox.Label, {
|
|
84
60
|
ref: ref,
|
|
85
61
|
"data-slot": "checkbox-label",
|
|
86
|
-
className: clsx(Checkbox_module.label,
|
|
62
|
+
className: clsx(Checkbox_module.label, className),
|
|
87
63
|
...props
|
|
88
64
|
});
|
|
89
65
|
});
|
|
@@ -91,7 +67,7 @@ const Checkbox_CheckboxGroup = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
91
67
|
return /*#__PURE__*/ jsx(Checkbox.Group, {
|
|
92
68
|
ref: ref,
|
|
93
69
|
"data-slot": "checkbox-group",
|
|
94
|
-
className: clsx(Checkbox_module.group,
|
|
70
|
+
className: clsx(Checkbox_module.group, className),
|
|
95
71
|
...props
|
|
96
72
|
});
|
|
97
73
|
});
|
|
@@ -99,6 +75,7 @@ const Checkbox_Checkbox = Object.assign(Checkbox_CheckboxRoot, {
|
|
|
99
75
|
Root: Checkbox_CheckboxRoot,
|
|
100
76
|
RootProvider: Checkbox_CheckboxRootProvider,
|
|
101
77
|
Context: Checkbox.Context,
|
|
78
|
+
HiddenInput: Checkbox.HiddenInput,
|
|
102
79
|
Control: Checkbox_CheckboxControl,
|
|
103
80
|
Indicator: Checkbox_CheckboxIndicator,
|
|
104
81
|
Label: Checkbox_CheckboxLabel,
|