@moduix/react 2.5.1 → 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 +24 -3
- 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 +7 -0
- 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 +5 -2
- 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 -2
- 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 +16 -16
- package/dist/components/sidebar/Sidebar.js +35 -48
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +62 -158
- 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 +23 -23
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -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,6 +42,12 @@
|
|
|
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;
|
|
@@ -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,
|
|
@@ -4,13 +4,12 @@ import { Clipboard, useClipboard, useClipboardContext } from "@ark-ui/react/clip
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { CheckIcon, CopyIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import Clipboard_module from "./Clipboard.module.js";
|
|
9
8
|
const Clipboard_ClipboardRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(Clipboard.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "clipboard-root",
|
|
13
|
-
className: clsx(Clipboard_module.root,
|
|
12
|
+
className: clsx(Clipboard_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -18,7 +17,7 @@ const Clipboard_ClipboardRootProvider = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
18
17
|
return /*#__PURE__*/ jsx(Clipboard.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "clipboard-root-provider",
|
|
21
|
-
className: clsx(Clipboard_module.root,
|
|
20
|
+
className: clsx(Clipboard_module.root, className),
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -26,7 +25,7 @@ const Clipboard_ClipboardLabel = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
26
25
|
return /*#__PURE__*/ jsx(Clipboard.Label, {
|
|
27
26
|
ref: ref,
|
|
28
27
|
"data-slot": "clipboard-label",
|
|
29
|
-
className: clsx(Clipboard_module.label,
|
|
28
|
+
className: clsx(Clipboard_module.label, className),
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,7 +33,7 @@ const Clipboard_ClipboardControl = /*#__PURE__*/ forwardRef(function({ className
|
|
|
34
33
|
return /*#__PURE__*/ jsx(Clipboard.Control, {
|
|
35
34
|
ref: ref,
|
|
36
35
|
"data-slot": "clipboard-control",
|
|
37
|
-
className: clsx(Clipboard_module.control,
|
|
36
|
+
className: clsx(Clipboard_module.control, className),
|
|
38
37
|
...props
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -42,7 +41,7 @@ const Clipboard_ClipboardInput = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
42
41
|
return /*#__PURE__*/ jsx(Clipboard.Input, {
|
|
43
42
|
ref: ref,
|
|
44
43
|
"data-slot": "clipboard-input",
|
|
45
|
-
className: clsx(Clipboard_module.input,
|
|
44
|
+
className: clsx(Clipboard_module.input, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -50,7 +49,7 @@ const Clipboard_ClipboardTrigger = /*#__PURE__*/ forwardRef(function({ className
|
|
|
50
49
|
return /*#__PURE__*/ jsx(Clipboard.Trigger, {
|
|
51
50
|
ref: ref,
|
|
52
51
|
"data-slot": "clipboard-trigger",
|
|
53
|
-
className: clsx(Clipboard_module.trigger,
|
|
52
|
+
className: clsx(Clipboard_module.trigger, className),
|
|
54
53
|
...props
|
|
55
54
|
});
|
|
56
55
|
});
|
|
@@ -58,7 +57,7 @@ const Clipboard_ClipboardIndicator = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
58
57
|
return /*#__PURE__*/ jsx(Clipboard.Indicator, {
|
|
59
58
|
ref: ref,
|
|
60
59
|
"data-slot": "clipboard-indicator",
|
|
61
|
-
className: clsx(Clipboard_module.indicator,
|
|
60
|
+
className: clsx(Clipboard_module.indicator, className),
|
|
62
61
|
copied: copied ?? /*#__PURE__*/ jsx("span", {
|
|
63
62
|
"aria-hidden": "true",
|
|
64
63
|
"data-slot": "clipboard-indicator-copied-icon",
|
|
@@ -78,7 +77,7 @@ const Clipboard_ClipboardValueText = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
78
77
|
return /*#__PURE__*/ jsx(Clipboard.ValueText, {
|
|
79
78
|
ref: ref,
|
|
80
79
|
"data-slot": "clipboard-value-text",
|
|
81
|
-
className: clsx(Clipboard_module.valueText,
|
|
80
|
+
className: clsx(Clipboard_module.valueText, className),
|
|
82
81
|
...props
|
|
83
82
|
});
|
|
84
83
|
});
|
|
@@ -3,7 +3,6 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { CloseIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import CloseButton_module from "./CloseButton.module.js";
|
|
8
7
|
const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, children, disabled, onClick, onClickCapture, type, 'aria-disabled': ariaDisabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-disabled': dataDisabled, 'data-part': dataPart, 'data-scope': dataScope, 'data-slot': dataSlot, ...props }, ref) {
|
|
9
8
|
const isDisabled = disabled || true === ariaDisabled || 'true' === ariaDisabled || void 0 !== dataDisabled;
|
|
@@ -35,7 +34,7 @@ const CloseButton_CloseButtonRoot = /*#__PURE__*/ forwardRef(function({ asChild,
|
|
|
35
34
|
"data-part": dataPart ?? 'root',
|
|
36
35
|
"data-slot": dataSlot ?? 'close-button-root',
|
|
37
36
|
"data-disabled": dataDisabled ?? (isDisabled ? '' : void 0),
|
|
38
|
-
className: clsx(CloseButton_module.root,
|
|
37
|
+
className: clsx(CloseButton_module.root, className),
|
|
39
38
|
"aria-disabled": resolvedAriaDisabled,
|
|
40
39
|
"aria-label": ariaLabel ?? (null == ariaLabelledBy ? 'Close' : void 0),
|
|
41
40
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
transition: background-color var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
15
15
|
color var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
16
|
-
opacity var(--moduix-close-button-transition, var(--moduix-transition-default))
|
|
17
|
-
translate var(--moduix-close-button-transition, var(--moduix-transition-default)),
|
|
18
|
-
scale var(--moduix-close-button-transition, var(--moduix-transition-default));
|
|
16
|
+
opacity var(--moduix-close-button-transition, var(--moduix-transition-default));
|
|
19
17
|
border: none;
|
|
20
18
|
flex-shrink: 0;
|
|
21
19
|
justify-content: center;
|
|
@@ -48,13 +46,6 @@
|
|
|
48
46
|
opacity: .94;
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
52
|
-
.root-_7JLUV:active:not([data-disabled]) {
|
|
53
|
-
translate: 0 1px;
|
|
54
|
-
scale: .985;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
49
|
.root-_7JLUV[data-disabled] {
|
|
59
50
|
cursor: default;
|
|
60
51
|
pointer-events: none;
|
|
@@ -5,13 +5,12 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
7
|
import { ChevronDownIcon } from "../../internal/icons/ui/index.js";
|
|
8
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
8
|
import Collapsible_module from "./Collapsible.module.js";
|
|
10
9
|
const Collapsible_CollapsibleRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
11
10
|
return /*#__PURE__*/ jsx(Collapsible.Root, {
|
|
12
11
|
ref: ref,
|
|
13
12
|
"data-slot": "collapsible-root",
|
|
14
|
-
className: clsx(Collapsible_module.root,
|
|
13
|
+
className: clsx(Collapsible_module.root, className),
|
|
15
14
|
...props
|
|
16
15
|
});
|
|
17
16
|
});
|
|
@@ -19,7 +18,7 @@ const Collapsible_CollapsibleRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
19
18
|
return /*#__PURE__*/ jsx(Collapsible.RootProvider, {
|
|
20
19
|
ref: ref,
|
|
21
20
|
"data-slot": "collapsible-root-provider",
|
|
22
|
-
className: clsx(Collapsible_module.root,
|
|
21
|
+
className: clsx(Collapsible_module.root, className),
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -28,7 +27,7 @@ const Collapsible_CollapsibleTrigger = /*#__PURE__*/ forwardRef(function({ asChi
|
|
|
28
27
|
ref: ref,
|
|
29
28
|
asChild: asChild,
|
|
30
29
|
"data-slot": "collapsible-trigger",
|
|
31
|
-
className: clsx(!asChild && Collapsible_module.trigger,
|
|
30
|
+
className: clsx(!asChild && Collapsible_module.trigger, className),
|
|
32
31
|
...props
|
|
33
32
|
});
|
|
34
33
|
});
|
|
@@ -36,7 +35,7 @@ const Collapsible_CollapsibleIndicator = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
36
35
|
return /*#__PURE__*/ jsx(Collapsible.Indicator, {
|
|
37
36
|
ref: ref,
|
|
38
37
|
"data-slot": "collapsible-indicator",
|
|
39
|
-
className: clsx(Collapsible_module.indicator,
|
|
38
|
+
className: clsx(Collapsible_module.indicator, className),
|
|
40
39
|
...props,
|
|
41
40
|
children: children ?? /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
42
41
|
});
|
|
@@ -45,17 +44,15 @@ const Collapsible_CollapsibleContent = /*#__PURE__*/ forwardRef(function({ class
|
|
|
45
44
|
return /*#__PURE__*/ jsx(Collapsible.Content, {
|
|
46
45
|
ref: ref,
|
|
47
46
|
"data-slot": "collapsible-content",
|
|
48
|
-
className: clsx(Collapsible_module.content,
|
|
47
|
+
className: clsx(Collapsible_module.content, className),
|
|
49
48
|
...props
|
|
50
49
|
});
|
|
51
50
|
});
|
|
52
51
|
const Collapsible_CollapsibleBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
53
52
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
54
53
|
ref: ref,
|
|
55
|
-
"data-scope": "collapsible",
|
|
56
|
-
"data-part": "body",
|
|
57
54
|
"data-slot": "collapsible-body",
|
|
58
|
-
className: clsx(Collapsible_module.body,
|
|
55
|
+
className: clsx(Collapsible_module.body, className),
|
|
59
56
|
...props
|
|
60
57
|
});
|
|
61
58
|
});
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
border-radius: var(--moduix-collapsible-trigger-radius, 0);
|
|
46
46
|
width: 100%;
|
|
47
47
|
padding-block: var(--moduix-collapsible-trigger-padding-y, var(--moduix-spacing-1));
|
|
48
|
-
padding-inline: var(--moduix-collapsible-trigger-padding-x,
|
|
48
|
+
padding-inline: var(--moduix-collapsible-trigger-padding-x, 0);
|
|
49
49
|
background-color: var(--moduix-collapsible-trigger-bg, transparent);
|
|
50
50
|
color: var(--moduix-collapsible-trigger-color, var(--moduix-collapsible-color, var(--moduix-color-foreground)));
|
|
51
51
|
font: inherit;
|
|
@@ -113,7 +113,6 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.content-dHAw0w {
|
|
116
|
-
--collapsed-height: 0;
|
|
117
116
|
box-sizing: border-box;
|
|
118
117
|
color: var(--moduix-collapsible-content-color, var(--moduix-color-muted-foreground));
|
|
119
118
|
font-size: var(--moduix-collapsible-content-font-size, var(--moduix-text-sm));
|
|
@@ -142,7 +141,7 @@
|
|
|
142
141
|
.body-TpC0eh {
|
|
143
142
|
gap: var(--moduix-collapsible-body-gap, var(--moduix-spacing-2));
|
|
144
143
|
min-width: 0;
|
|
145
|
-
padding: var(--moduix-collapsible-body-padding,
|
|
144
|
+
padding: var(--moduix-collapsible-body-padding, 0);
|
|
146
145
|
display: grid;
|
|
147
146
|
}
|
|
148
147
|
|
|
@@ -153,7 +152,6 @@
|
|
|
153
152
|
|
|
154
153
|
.content-dHAw0w[data-state] {
|
|
155
154
|
animation-duration: 1ms;
|
|
156
|
-
animation-delay: 0s;
|
|
157
155
|
}
|
|
158
156
|
}
|
|
159
157
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ColorPicker as ColorPickerPrimitive, parseColor, useColorPicker, useColorPickerContext } from '@ark-ui/react/color-picker';
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type ColorPickerRootProps = ComponentProps<typeof ColorPickerPrimitive.Root> & OverlayPortalProps;
|
|
5
5
|
type ColorPickerRootProviderProps = ComponentProps<typeof ColorPickerPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
6
|
declare const ColorPicker: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
Root: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<ColorPickerRootProviderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Context: (props: ColorPickerPrimitive.ContextProps) => ReactNode;
|
|
9
|
+
Context: (props: ColorPickerPrimitive.ContextProps) => import("react").ReactNode;
|
|
10
|
+
HiddenInput: import("react").ForwardRefExoticComponent<ColorPickerPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
11
|
Label: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
11
12
|
Control: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
13
|
Trigger: import("react").ForwardRefExoticComponent<Omit<ColorPickerPrimitive.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|