@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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TagsInput as TagsInputPrimitive, useTagsInput, useTagsInputContext, useTagsInputItemContext } from '@ark-ui/react/tags-input';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
2
|
declare function TagsInputItems(): import("react").JSX.Element;
|
|
4
3
|
declare const TagsInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
4
|
Root: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
5
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
HiddenInput: import("react").ForwardRefExoticComponent<TagsInputPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
7
|
Label: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
8
|
Control: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Item: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
ItemContext: (props: TagsInputPrimitive.ItemContextProps) => ReactNode;
|
|
10
|
+
ItemContext: (props: TagsInputPrimitive.ItemContextProps) => import("react").ReactNode;
|
|
11
11
|
ItemPreview: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemPreviewProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
ItemText: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
13
|
ItemDeleteTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
ItemInput: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ItemInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
15
|
Input: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
16
16
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<TagsInputPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
Context: (props: TagsInputPrimitive.ContextProps) => ReactNode;
|
|
17
|
+
Context: (props: TagsInputPrimitive.ContextProps) => import("react").ReactNode;
|
|
18
18
|
Items: typeof TagsInputItems;
|
|
19
19
|
};
|
|
20
20
|
export { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext };
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useFieldContext } from "@ark-ui/react/field";
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext } from "@ark-ui/react/tags-input";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef } from "react";
|
|
6
5
|
import { CloseIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
6
|
import { CloseButton } from "../close-button/index.js";
|
|
9
7
|
import TagsInput_module from "./TagsInput.module.js";
|
|
10
|
-
const TagsInput_TagsInputRoot = /*#__PURE__*/ forwardRef(function({
|
|
8
|
+
const TagsInput_TagsInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
11
9
|
return /*#__PURE__*/ jsx(TagsInput.Root, {
|
|
12
10
|
ref: ref,
|
|
13
|
-
asChild: asChild,
|
|
14
11
|
"data-slot": "tags-input-root",
|
|
15
|
-
className: clsx(TagsInput_module.root,
|
|
16
|
-
...props
|
|
17
|
-
children: withHiddenInput(children, asChild)
|
|
12
|
+
className: clsx(TagsInput_module.root, className),
|
|
13
|
+
...props
|
|
18
14
|
});
|
|
19
15
|
});
|
|
20
|
-
const TagsInput_TagsInputRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
16
|
+
const TagsInput_TagsInputRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
21
17
|
return /*#__PURE__*/ jsx(TagsInput.RootProvider, {
|
|
22
18
|
ref: ref,
|
|
23
|
-
asChild: asChild,
|
|
24
19
|
"data-slot": "tags-input-root-provider",
|
|
25
|
-
className: clsx(TagsInput_module.root,
|
|
26
|
-
...props
|
|
27
|
-
children: withHiddenInput(children, asChild)
|
|
20
|
+
className: clsx(TagsInput_module.root, className),
|
|
21
|
+
...props
|
|
28
22
|
});
|
|
29
23
|
});
|
|
30
24
|
const TagsInput_TagsInputLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
31
25
|
return /*#__PURE__*/ jsx(TagsInput.Label, {
|
|
32
26
|
ref: ref,
|
|
33
27
|
"data-slot": "tags-input-label",
|
|
34
|
-
className: clsx(TagsInput_module.label,
|
|
28
|
+
className: clsx(TagsInput_module.label, className),
|
|
35
29
|
...props
|
|
36
30
|
});
|
|
37
31
|
});
|
|
@@ -39,7 +33,7 @@ const TagsInput_TagsInputControl = /*#__PURE__*/ forwardRef(function({ className
|
|
|
39
33
|
return /*#__PURE__*/ jsx(TagsInput.Control, {
|
|
40
34
|
ref: ref,
|
|
41
35
|
"data-slot": "tags-input-control",
|
|
42
|
-
className: clsx(TagsInput_module.control,
|
|
36
|
+
className: clsx(TagsInput_module.control, className),
|
|
43
37
|
...props
|
|
44
38
|
});
|
|
45
39
|
});
|
|
@@ -47,7 +41,7 @@ const TagsInput_TagsInputItem = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
47
41
|
return /*#__PURE__*/ jsx(TagsInput.Item, {
|
|
48
42
|
ref: ref,
|
|
49
43
|
"data-slot": "tags-input-item",
|
|
50
|
-
className: clsx(TagsInput_module.item,
|
|
44
|
+
className: clsx(TagsInput_module.item, className),
|
|
51
45
|
...props
|
|
52
46
|
});
|
|
53
47
|
});
|
|
@@ -55,7 +49,7 @@ const TagsInput_TagsInputItemPreview = /*#__PURE__*/ forwardRef(function({ class
|
|
|
55
49
|
return /*#__PURE__*/ jsx(TagsInput.ItemPreview, {
|
|
56
50
|
ref: ref,
|
|
57
51
|
"data-slot": "tags-input-item-preview",
|
|
58
|
-
className: clsx(TagsInput_module.itemPreview,
|
|
52
|
+
className: clsx(TagsInput_module.itemPreview, className),
|
|
59
53
|
...props
|
|
60
54
|
});
|
|
61
55
|
});
|
|
@@ -63,7 +57,7 @@ const TagsInput_TagsInputItemText = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
63
57
|
return /*#__PURE__*/ jsx(TagsInput.ItemText, {
|
|
64
58
|
ref: ref,
|
|
65
59
|
"data-slot": "tags-input-item-text",
|
|
66
|
-
className: clsx(TagsInput_module.itemText,
|
|
60
|
+
className: clsx(TagsInput_module.itemText, className),
|
|
67
61
|
...props
|
|
68
62
|
});
|
|
69
63
|
});
|
|
@@ -71,7 +65,7 @@ const TagsInput_TagsInputItemDeleteTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
71
65
|
return /*#__PURE__*/ jsx(TagsInput.ItemDeleteTrigger, {
|
|
72
66
|
ref: ref,
|
|
73
67
|
"data-slot": "tags-input-item-delete-trigger",
|
|
74
|
-
className: clsx(TagsInput_module.itemDeleteTrigger,
|
|
68
|
+
className: clsx(TagsInput_module.itemDeleteTrigger, className),
|
|
75
69
|
...props,
|
|
76
70
|
children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
77
71
|
});
|
|
@@ -80,7 +74,7 @@ const TagsInput_TagsInputItemInput = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
80
74
|
return /*#__PURE__*/ jsx(TagsInput.ItemInput, {
|
|
81
75
|
ref: ref,
|
|
82
76
|
"data-slot": "tags-input-item-input",
|
|
83
|
-
className: clsx(TagsInput_module.itemInput,
|
|
77
|
+
className: clsx(TagsInput_module.itemInput, className),
|
|
84
78
|
...props
|
|
85
79
|
});
|
|
86
80
|
});
|
|
@@ -88,30 +82,22 @@ const TagsInput_TagsInputInput = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
88
82
|
return /*#__PURE__*/ jsx(TagsInput.Input, {
|
|
89
83
|
ref: ref,
|
|
90
84
|
"data-slot": "tags-input-input",
|
|
91
|
-
className: clsx(TagsInput_module.input,
|
|
85
|
+
className: clsx(TagsInput_module.input, className),
|
|
92
86
|
...props
|
|
93
87
|
});
|
|
94
88
|
});
|
|
95
89
|
const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
96
|
-
const triggerClassName = clsx(TagsInput_module.clearTrigger,
|
|
90
|
+
const triggerClassName = clsx(TagsInput_module.clearTrigger, className);
|
|
97
91
|
const clearTriggerLabel = useTagsInputContext().getClearTriggerProps()['aria-label'];
|
|
98
|
-
if (asChild) return /*#__PURE__*/ jsx(TagsInput.ClearTrigger, {
|
|
99
|
-
ref: ref,
|
|
100
|
-
asChild: true,
|
|
101
|
-
"data-slot": "tags-input-clear-trigger",
|
|
102
|
-
className: triggerClassName,
|
|
103
|
-
"aria-label": ariaLabel,
|
|
104
|
-
"aria-labelledby": ariaLabelledBy,
|
|
105
|
-
...props,
|
|
106
|
-
children: children
|
|
107
|
-
});
|
|
108
92
|
return /*#__PURE__*/ jsx(TagsInput.ClearTrigger, {
|
|
109
93
|
ref: ref,
|
|
110
94
|
asChild: true,
|
|
111
95
|
"data-slot": "tags-input-clear-trigger",
|
|
112
96
|
className: triggerClassName,
|
|
97
|
+
"aria-label": asChild ? ariaLabel : void 0,
|
|
98
|
+
"aria-labelledby": asChild ? ariaLabelledBy : void 0,
|
|
113
99
|
...props,
|
|
114
|
-
children: /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
100
|
+
children: asChild ? children : /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
115
101
|
"aria-label": ariaLabel ?? clearTriggerLabel,
|
|
116
102
|
"aria-labelledby": ariaLabelledBy,
|
|
117
103
|
"data-part": "clear-trigger",
|
|
@@ -121,48 +107,7 @@ const TagsInput_TagsInputClearTrigger = /*#__PURE__*/ forwardRef(function({ asCh
|
|
|
121
107
|
})
|
|
122
108
|
});
|
|
123
109
|
});
|
|
124
|
-
function withHiddenInput(children, asChild) {
|
|
125
|
-
const hiddenInput = /*#__PURE__*/ jsx(TagsInputHiddenInput, {});
|
|
126
|
-
if (!asChild) return /*#__PURE__*/ jsxs(Fragment, {
|
|
127
|
-
children: [
|
|
128
|
-
children,
|
|
129
|
-
hiddenInput
|
|
130
|
-
]
|
|
131
|
-
});
|
|
132
|
-
const child = Children.only(children);
|
|
133
|
-
return /*#__PURE__*/ cloneElement(child, {}, child.props.children, hiddenInput);
|
|
134
|
-
}
|
|
135
110
|
const TagsInputContext = TagsInput.Context;
|
|
136
|
-
function TagsInputHiddenInput() {
|
|
137
|
-
const field = useFieldContext();
|
|
138
|
-
const tagsInput = useTagsInputContext();
|
|
139
|
-
const inputRef = useRef(null);
|
|
140
|
-
const initialValue = useRef(tagsInput.value);
|
|
141
|
-
const initialInputValue = useRef(tagsInput.inputValue);
|
|
142
|
-
const { defaultValue: _, ...hiddenInputProps } = tagsInput.getHiddenInputProps();
|
|
143
|
-
useEffect(()=>{
|
|
144
|
-
const form = inputRef.current?.form;
|
|
145
|
-
if (!form) return;
|
|
146
|
-
const handleReset = ()=>{
|
|
147
|
-
queueMicrotask(()=>{
|
|
148
|
-
tagsInput.setValue(initialValue.current);
|
|
149
|
-
tagsInput.setInputValue(initialInputValue.current);
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
|
-
form.addEventListener('reset', handleReset);
|
|
153
|
-
return ()=>form.removeEventListener('reset', handleReset);
|
|
154
|
-
}, [
|
|
155
|
-
tagsInput
|
|
156
|
-
]);
|
|
157
|
-
return /*#__PURE__*/ jsx("input", {
|
|
158
|
-
...hiddenInputProps,
|
|
159
|
-
ref: inputRef,
|
|
160
|
-
value: tagsInput.valueAsString,
|
|
161
|
-
readOnly: true,
|
|
162
|
-
"aria-describedby": field?.ariaDescribedby,
|
|
163
|
-
"data-slot": "tags-input-hidden-input"
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
111
|
function TagsInputItems() {
|
|
167
112
|
return /*#__PURE__*/ jsx(TagsInputContext, {
|
|
168
113
|
children: (tagsInput)=>tagsInput.value.map((value, index)=>/*#__PURE__*/ jsxs(TagsInput_TagsInputItem, {
|
|
@@ -185,6 +130,7 @@ function TagsInputItems() {
|
|
|
185
130
|
const TagsInput_TagsInput = Object.assign(TagsInput_TagsInputRoot, {
|
|
186
131
|
Root: TagsInput_TagsInputRoot,
|
|
187
132
|
RootProvider: TagsInput_TagsInputRootProvider,
|
|
133
|
+
HiddenInput: TagsInput.HiddenInput,
|
|
188
134
|
Label: TagsInput_TagsInputLabel,
|
|
189
135
|
Control: TagsInput_TagsInputControl,
|
|
190
136
|
Item: TagsInput_TagsInputItem,
|
|
@@ -209,7 +209,6 @@
|
|
|
209
209
|
--moduix-close-button-focus-ring-color: var(--moduix-tags-input-trigger-focus-ring-color, var(--moduix-color-ring));
|
|
210
210
|
--moduix-close-button-focus-ring-width: var(--moduix-tags-input-trigger-focus-ring-width, var(--moduix-border-width-sm));
|
|
211
211
|
--moduix-close-button-focus-ring-offset: var(--moduix-tags-input-trigger-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
212
|
-
--moduix-close-button-transition: var(--moduix-tags-input-transition, var(--moduix-transition-default));
|
|
213
212
|
--moduix-close-button-disabled-opacity: var(--moduix-tags-input-disabled-opacity, var(--moduix-opacity-disabled));
|
|
214
213
|
flex: none;
|
|
215
214
|
align-self: center;
|
|
@@ -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 Text_module from "./Text.module.js";
|
|
7
6
|
const Text_elements = {
|
|
8
7
|
div: ark.div,
|
|
@@ -34,7 +33,7 @@ const Text_TextRoot = /*#__PURE__*/ forwardRef(function({ as, asChild, size, wei
|
|
|
34
33
|
"data-align": align,
|
|
35
34
|
"data-truncate": truncate ? '' : void 0,
|
|
36
35
|
"data-line-clamp": void 0 === resolvedLineClamp ? void 0 : '',
|
|
37
|
-
className: clsx(Text_module.root,
|
|
36
|
+
className: clsx(Text_module.root, className),
|
|
38
37
|
style: lineClampStyle
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Field } from "@ark-ui/react/field";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Textarea_module from "./Textarea.module.js";
|
|
7
6
|
const Textarea_Textarea = /*#__PURE__*/ forwardRef(function({ autoresize, className, ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(Field.Textarea, {
|
|
@@ -12,7 +11,7 @@ const Textarea_Textarea = /*#__PURE__*/ forwardRef(function({ autoresize, classN
|
|
|
12
11
|
"data-part": "textarea",
|
|
13
12
|
"data-slot": "textarea-root",
|
|
14
13
|
"data-autoresize": autoresize ? '' : void 0,
|
|
15
|
-
className: clsx(Textarea_module.root,
|
|
14
|
+
className: clsx(Textarea_module.root, className),
|
|
16
15
|
autoresize: autoresize
|
|
17
16
|
});
|
|
18
17
|
});
|
|
@@ -3,13 +3,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Timer, useTimer, useTimerContext } from "@ark-ui/react/timer";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { Fragment, forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Timer_module from "./Timer.module.js";
|
|
8
7
|
const Timer_TimerRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Timer.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "timer-root",
|
|
12
|
-
className: clsx(Timer_module.root,
|
|
11
|
+
className: clsx(Timer_module.root, className),
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
});
|
|
@@ -17,7 +16,7 @@ const Timer_TimerRootProvider = /*#__PURE__*/ forwardRef(function({ className, .
|
|
|
17
16
|
return /*#__PURE__*/ jsx(Timer.RootProvider, {
|
|
18
17
|
ref: ref,
|
|
19
18
|
"data-slot": "timer-root-provider",
|
|
20
|
-
className: clsx(Timer_module.root,
|
|
19
|
+
className: clsx(Timer_module.root, className),
|
|
21
20
|
...props
|
|
22
21
|
});
|
|
23
22
|
});
|
|
@@ -25,7 +24,7 @@ const Timer_TimerArea = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
25
24
|
return /*#__PURE__*/ jsx(Timer.Area, {
|
|
26
25
|
ref: ref,
|
|
27
26
|
"data-slot": "timer-area",
|
|
28
|
-
className: clsx(Timer_module.area,
|
|
27
|
+
className: clsx(Timer_module.area, className),
|
|
29
28
|
...props
|
|
30
29
|
});
|
|
31
30
|
});
|
|
@@ -33,7 +32,7 @@ const Timer_TimerItem = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
33
32
|
return /*#__PURE__*/ jsx(Timer.Item, {
|
|
34
33
|
ref: ref,
|
|
35
34
|
"data-slot": "timer-item",
|
|
36
|
-
className: clsx(Timer_module.item,
|
|
35
|
+
className: clsx(Timer_module.item, className),
|
|
37
36
|
...props
|
|
38
37
|
});
|
|
39
38
|
});
|
|
@@ -41,7 +40,7 @@ const Timer_TimerSeparator = /*#__PURE__*/ forwardRef(function({ className, ...p
|
|
|
41
40
|
return /*#__PURE__*/ jsx(Timer.Separator, {
|
|
42
41
|
ref: ref,
|
|
43
42
|
"data-slot": "timer-separator",
|
|
44
|
-
className: clsx(Timer_module.separator,
|
|
43
|
+
className: clsx(Timer_module.separator, className),
|
|
45
44
|
...props
|
|
46
45
|
});
|
|
47
46
|
});
|
|
@@ -49,7 +48,7 @@ const Timer_TimerControl = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
49
48
|
return /*#__PURE__*/ jsx(Timer.Control, {
|
|
50
49
|
ref: ref,
|
|
51
50
|
"data-slot": "timer-control",
|
|
52
|
-
className: clsx(Timer_module.control,
|
|
51
|
+
className: clsx(Timer_module.control, className),
|
|
53
52
|
...props
|
|
54
53
|
});
|
|
55
54
|
});
|
|
@@ -57,7 +56,7 @@ const Timer_TimerActionTrigger = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
57
56
|
return /*#__PURE__*/ jsx(Timer.ActionTrigger, {
|
|
58
57
|
ref: ref,
|
|
59
58
|
"data-slot": "timer-action-trigger",
|
|
60
|
-
className: clsx(Timer_module.actionTrigger,
|
|
59
|
+
className: clsx(Timer_module.actionTrigger, className),
|
|
61
60
|
...props
|
|
62
61
|
});
|
|
63
62
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toast as ToastPrimitive, Toaster as ToasterPrimitive, createToaster, useToastContext } from '@ark-ui/react/toast';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
import type { OverlayPortalProps } from '../../internal/overlayPortal';
|
|
3
|
+
import type { OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type ToasterProps = Omit<ComponentProps<typeof ToasterPrimitive>, 'children'> & OverlayPortalProps & {
|
|
5
5
|
children?: ComponentProps<typeof ToasterPrimitive>['children'];
|
|
6
6
|
};
|
|
@@ -4,7 +4,6 @@ import { Portal } from "@ark-ui/react/portal";
|
|
|
4
4
|
import { Toast, Toaster as toast_Toaster, createToaster, useToastContext } from "@ark-ui/react/toast";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import { CloseButton } from "../close-button/index.js";
|
|
9
8
|
import Toast_module from "./Toast.module.js";
|
|
10
9
|
const DEFAULT_CLOSE_TRIGGER_LABEL = 'Close toast';
|
|
@@ -15,7 +14,7 @@ const Toast_Toaster = /*#__PURE__*/ forwardRef(function({ className, portalled =
|
|
|
15
14
|
children: /*#__PURE__*/ jsx(toast_Toaster, {
|
|
16
15
|
ref: ref,
|
|
17
16
|
"data-slot": "toast-toaster",
|
|
18
|
-
className: clsx(Toast_module.toaster,
|
|
17
|
+
className: clsx(Toast_module.toaster, className),
|
|
19
18
|
...props,
|
|
20
19
|
children: props.children ?? ((toast)=>/*#__PURE__*/ jsx(DefaultToast, {
|
|
21
20
|
toast: toast
|
|
@@ -39,7 +38,7 @@ const Toast_ToastRoot = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
39
38
|
return /*#__PURE__*/ jsx(Toast.Root, {
|
|
40
39
|
ref: ref,
|
|
41
40
|
"data-slot": "toast-root",
|
|
42
|
-
className: clsx(Toast_module.root,
|
|
41
|
+
className: clsx(Toast_module.root, className),
|
|
43
42
|
...props
|
|
44
43
|
});
|
|
45
44
|
});
|
|
@@ -48,7 +47,7 @@ const Toast_ToastTitle = /*#__PURE__*/ forwardRef(function({ className, children
|
|
|
48
47
|
return /*#__PURE__*/ jsx(Toast.Title, {
|
|
49
48
|
ref: ref,
|
|
50
49
|
"data-slot": "toast-title",
|
|
51
|
-
className: clsx(Toast_module.title,
|
|
50
|
+
className: clsx(Toast_module.title, className),
|
|
52
51
|
...props,
|
|
53
52
|
children: void 0 === children ? toast.title : children
|
|
54
53
|
});
|
|
@@ -58,7 +57,7 @@ const Toast_ToastDescription = /*#__PURE__*/ forwardRef(function({ className, ch
|
|
|
58
57
|
return /*#__PURE__*/ jsx(Toast.Description, {
|
|
59
58
|
ref: ref,
|
|
60
59
|
"data-slot": "toast-description",
|
|
61
|
-
className: clsx(Toast_module.description,
|
|
60
|
+
className: clsx(Toast_module.description, className),
|
|
62
61
|
...props,
|
|
63
62
|
children: void 0 === children ? toast.description : children
|
|
64
63
|
});
|
|
@@ -68,7 +67,7 @@ const Toast_ToastActionTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cl
|
|
|
68
67
|
ref: ref,
|
|
69
68
|
asChild: asChild,
|
|
70
69
|
"data-slot": "toast-action-trigger",
|
|
71
|
-
className: clsx(!asChild && Toast_module.actionTrigger,
|
|
70
|
+
className: clsx(!asChild && Toast_module.actionTrigger, className),
|
|
72
71
|
...props,
|
|
73
72
|
children: children
|
|
74
73
|
});
|
|
@@ -79,7 +78,7 @@ const Toast_ToastCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
79
78
|
asChild: true,
|
|
80
79
|
"data-slot": "toast-close-trigger",
|
|
81
80
|
"aria-label": ariaLabel,
|
|
82
|
-
className:
|
|
81
|
+
className: className,
|
|
83
82
|
...props,
|
|
84
83
|
children: children
|
|
85
84
|
});
|
|
@@ -89,7 +88,7 @@ const Toast_ToastCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, cla
|
|
|
89
88
|
ref: ref,
|
|
90
89
|
"data-slot": "toast-close-trigger",
|
|
91
90
|
"aria-label": ariaLabel,
|
|
92
|
-
className: clsx(Toast_module.closeTrigger,
|
|
91
|
+
className: clsx(Toast_module.closeTrigger, className),
|
|
93
92
|
...props,
|
|
94
93
|
children: children
|
|
95
94
|
})
|
|
@@ -144,13 +144,12 @@
|
|
|
144
144
|
--moduix-close-button-focus-ring-color: var(--moduix-toast-focus-ring-color, var(--moduix-color-ring));
|
|
145
145
|
--moduix-close-button-focus-ring-offset: var(--moduix-toast-close-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
146
146
|
--moduix-close-button-focus-ring-width: var(--moduix-toast-close-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)));
|
|
147
|
-
--moduix-close-button-transition: var(--moduix-toast-close-transition, var(--moduix-transition-default));
|
|
148
147
|
position: absolute;
|
|
149
148
|
inset-block-start: var(--moduix-toast-close-offset-top, var(--moduix-spacing-2));
|
|
150
149
|
inset-inline-end: var(--moduix-toast-close-offset-right, var(--moduix-spacing-2));
|
|
151
150
|
}
|
|
152
151
|
|
|
153
|
-
@media (
|
|
152
|
+
@media (width <= 40rem) {
|
|
154
153
|
.toaster-m5bxJd {
|
|
155
154
|
width: 100%;
|
|
156
155
|
}
|
|
@@ -3,7 +3,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Toc, useToc, useTocContext } from "@ark-ui/react/toc";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Toc_module from "./Toc.module.js";
|
|
8
7
|
const railBaseOffset = 0;
|
|
9
8
|
const railStep = 12;
|
|
@@ -20,7 +19,7 @@ const Toc_TocRoot = /*#__PURE__*/ forwardRef(function({ autoScroll = false, clas
|
|
|
20
19
|
ref: ref,
|
|
21
20
|
autoScroll: autoScroll,
|
|
22
21
|
"data-slot": "toc-root",
|
|
23
|
-
className: clsx(Toc_module.root,
|
|
22
|
+
className: clsx(Toc_module.root, className),
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
});
|
|
@@ -29,7 +28,7 @@ const Toc_TocRootProvider = /*#__PURE__*/ forwardRef(function({ className, style
|
|
|
29
28
|
ref: ref,
|
|
30
29
|
value: value,
|
|
31
30
|
"data-slot": "toc-root-provider",
|
|
32
|
-
className: clsx(Toc_module.root,
|
|
31
|
+
className: clsx(Toc_module.root, className),
|
|
33
32
|
style: {
|
|
34
33
|
...value.getRootProps().style,
|
|
35
34
|
...style
|
|
@@ -41,7 +40,7 @@ const Toc_TocContent = /*#__PURE__*/ forwardRef(function({ className, ...props }
|
|
|
41
40
|
return /*#__PURE__*/ jsx(Toc.Content, {
|
|
42
41
|
ref: ref,
|
|
43
42
|
"data-slot": "toc-content",
|
|
44
|
-
className: clsx(Toc_module.content,
|
|
43
|
+
className: clsx(Toc_module.content, className),
|
|
45
44
|
...props
|
|
46
45
|
});
|
|
47
46
|
});
|
|
@@ -49,7 +48,7 @@ const Toc_TocNav = /*#__PURE__*/ forwardRef(function({ className, ...props }, re
|
|
|
49
48
|
return /*#__PURE__*/ jsx(Toc.Nav, {
|
|
50
49
|
ref: ref,
|
|
51
50
|
"data-slot": "toc-nav",
|
|
52
|
-
className: clsx(Toc_module.nav,
|
|
51
|
+
className: clsx(Toc_module.nav, className),
|
|
53
52
|
...props
|
|
54
53
|
});
|
|
55
54
|
});
|
|
@@ -57,7 +56,7 @@ const Toc_TocTitle = /*#__PURE__*/ forwardRef(function({ className, ...props },
|
|
|
57
56
|
return /*#__PURE__*/ jsx(Toc.Title, {
|
|
58
57
|
ref: ref,
|
|
59
58
|
"data-slot": "toc-title",
|
|
60
|
-
className: clsx(Toc_module.title,
|
|
59
|
+
className: clsx(Toc_module.title, className),
|
|
61
60
|
...props
|
|
62
61
|
});
|
|
63
62
|
});
|
|
@@ -65,7 +64,7 @@ const Toc_TocList = /*#__PURE__*/ forwardRef(function({ className, ...props }, r
|
|
|
65
64
|
return /*#__PURE__*/ jsx(Toc.List, {
|
|
66
65
|
ref: ref,
|
|
67
66
|
"data-slot": "toc-list",
|
|
68
|
-
className: clsx(Toc_module.list,
|
|
67
|
+
className: clsx(Toc_module.list, className),
|
|
69
68
|
...props
|
|
70
69
|
});
|
|
71
70
|
});
|
|
@@ -73,7 +72,7 @@ const Toc_TocItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, r
|
|
|
73
72
|
return /*#__PURE__*/ jsx(Toc.Item, {
|
|
74
73
|
ref: ref,
|
|
75
74
|
"data-slot": "toc-item",
|
|
76
|
-
className: clsx(Toc_module.item,
|
|
75
|
+
className: clsx(Toc_module.item, className),
|
|
77
76
|
...props
|
|
78
77
|
});
|
|
79
78
|
});
|
|
@@ -81,7 +80,7 @@ const Toc_TocLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, r
|
|
|
81
80
|
return /*#__PURE__*/ jsx(Toc.Link, {
|
|
82
81
|
ref: ref,
|
|
83
82
|
"data-slot": "toc-link",
|
|
84
|
-
className: clsx(Toc_module.link,
|
|
83
|
+
className: clsx(Toc_module.link, className),
|
|
85
84
|
...props
|
|
86
85
|
});
|
|
87
86
|
});
|
|
@@ -89,7 +88,7 @@ const Toc_TocIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props
|
|
|
89
88
|
return /*#__PURE__*/ jsx(Toc.Indicator, {
|
|
90
89
|
ref: ref,
|
|
91
90
|
"data-slot": "toc-indicator",
|
|
92
|
-
className: clsx(Toc_module.indicator,
|
|
91
|
+
className: clsx(Toc_module.indicator, className),
|
|
93
92
|
...props
|
|
94
93
|
});
|
|
95
94
|
});
|
|
@@ -103,7 +102,7 @@ const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDe
|
|
|
103
102
|
ref: ref,
|
|
104
103
|
"aria-hidden": "true",
|
|
105
104
|
"data-slot": "toc-rail",
|
|
106
|
-
className: clsx(Toc_module.rail,
|
|
105
|
+
className: clsx(Toc_module.rail, className),
|
|
107
106
|
style: {
|
|
108
107
|
width,
|
|
109
108
|
height: lineOffset === nextLineOffset ? `calc(100% + ${railBridge}px + var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5)))` : '100%',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
display: grid;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (
|
|
15
|
+
@media (width <= 48rem) {
|
|
16
16
|
.root-VBggED {
|
|
17
17
|
grid-template-columns: minmax(0, 1fr);
|
|
18
18
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
var(--moduix-table-of-contents-nav-width, 16rem)) minmax(0, 1fr);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media (
|
|
52
|
+
@media (width <= 48rem) {
|
|
53
53
|
.root-VBggED:has(.nav-q0EDqs[data-placement="left"]) .nav-q0EDqs[data-placement="left"] {
|
|
54
54
|
grid-area: auto;
|
|
55
55
|
}
|
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Toggle, ToggleContext, useToggleContext } from "@ark-ui/react/toggle";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Toggle_module from "./Toggle.module.js";
|
|
8
7
|
const Toggle_ToggleRoot = /*#__PURE__*/ forwardRef(function({ className, variant = 'default', size = 'md', ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Toggle.Root, {
|
|
@@ -11,7 +10,7 @@ const Toggle_ToggleRoot = /*#__PURE__*/ forwardRef(function({ className, variant
|
|
|
11
10
|
"data-slot": "toggle-root",
|
|
12
11
|
"data-variant": variant,
|
|
13
12
|
"data-size": size,
|
|
14
|
-
className: clsx(Toggle_module.root,
|
|
13
|
+
className: clsx(Toggle_module.root, className),
|
|
15
14
|
...props
|
|
16
15
|
});
|
|
17
16
|
});
|
|
@@ -19,7 +18,7 @@ const Toggle_ToggleIndicator = /*#__PURE__*/ forwardRef(function({ className, ..
|
|
|
19
18
|
return /*#__PURE__*/ jsx(Toggle.Indicator, {
|
|
20
19
|
ref: ref,
|
|
21
20
|
"data-slot": "toggle-indicator",
|
|
22
|
-
className: clsx(Toggle_module.indicator,
|
|
21
|
+
className: clsx(Toggle_module.indicator, className),
|
|
23
22
|
...props
|
|
24
23
|
});
|
|
25
24
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToggleGroup as ToggleGroupPrimitive, useToggleGroup, useToggleGroupContext } from '@ark-ui/react/toggle-group';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
import type { ToggleSize, ToggleVariant } from '../toggle/Toggle';
|
|
3
|
+
import type { ToggleSize, ToggleVariant } from '../toggle/Toggle.js';
|
|
4
4
|
type ToggleGroupRootProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & {
|
|
5
5
|
variant?: ToggleVariant;
|
|
6
6
|
size?: ToggleSize;
|
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { ToggleGroup, useToggleGroup, useToggleGroupContext } from "@ark-ui/react/toggle-group";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { createContext, forwardRef, useContext } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Toggle_module from "../toggle/Toggle.module.js";
|
|
8
7
|
import ToggleGroup_module from "./ToggleGroup.module.js";
|
|
9
8
|
const defaultToggleGroupStyles = {
|
|
@@ -23,7 +22,7 @@ const ToggleGroup_ToggleGroupRoot = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
23
22
|
"data-slot": "toggle-group-root",
|
|
24
23
|
"data-variant": variant,
|
|
25
24
|
"data-size": size,
|
|
26
|
-
className: clsx(ToggleGroup_module.root,
|
|
25
|
+
className: clsx(ToggleGroup_module.root, className)
|
|
27
26
|
})
|
|
28
27
|
});
|
|
29
28
|
});
|
|
@@ -39,7 +38,7 @@ const ToggleGroup_ToggleGroupRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
39
38
|
"data-slot": "toggle-group-root-provider",
|
|
40
39
|
"data-variant": variant,
|
|
41
40
|
"data-size": size,
|
|
42
|
-
className: clsx(ToggleGroup_module.root,
|
|
41
|
+
className: clsx(ToggleGroup_module.root, className)
|
|
43
42
|
})
|
|
44
43
|
});
|
|
45
44
|
});
|
|
@@ -51,7 +50,7 @@ const ToggleGroup_ToggleGroupItem = /*#__PURE__*/ forwardRef(function({ classNam
|
|
|
51
50
|
"data-slot": "toggle-group-item",
|
|
52
51
|
"data-variant": variant ?? inherited.variant,
|
|
53
52
|
"data-size": size ?? inherited.size,
|
|
54
|
-
className: clsx(Toggle_module.root, ToggleGroup_module.item,
|
|
53
|
+
className: clsx(Toggle_module.root, ToggleGroup_module.item, className)
|
|
55
54
|
});
|
|
56
55
|
});
|
|
57
56
|
const ToggleGroup_ToggleGroup = Object.assign(ToggleGroup_ToggleGroupRoot, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tooltip as TooltipPrimitive, useTooltip, useTooltipContext } from '@ark-ui/react/tooltip';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
4
|
type TooltipRootProps = ComponentProps<typeof TooltipPrimitive.Root> & OverlayPortalProps;
|
|
5
5
|
type TooltipRootProviderProps = ComponentProps<typeof TooltipPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
6
|
declare function TooltipRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: TooltipRootProps): import("react").JSX.Element;
|