@moduix/react 2.5.1 → 2.7.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 +20 -21
- package/dist/components/alert/Alert.js +18 -19
- 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 +29 -71
- 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 +14 -57
- 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 -8
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +30 -31
- package/dist/components/card/Card_module.css +2 -18
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +34 -35
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +21 -22
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +20 -43
- package/dist/components/clipboard/Clipboard.js +27 -27
- 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 +17 -20
- 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 +79 -92
- 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 +51 -60
- 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 +99 -126
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +24 -54
- 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 +84 -93
- 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 +31 -32
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +63 -54
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +27 -28
- package/dist/components/empty/Empty.js +18 -19
- package/dist/components/field/Field.js +29 -30
- package/dist/components/fieldset/Fieldset.js +15 -16
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +52 -79
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
- package/dist/components/floating-panel/FloatingPanel.js +36 -37
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +24 -15
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/hover-card/index.d.ts +1 -0
- 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 +21 -22
- 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 +6 -7
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +38 -39
- 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 +50 -56
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +18 -19
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +72 -79
- 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 +39 -58
- 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 +25 -26
- package/dist/components/pagination/Pagination.js +28 -31
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +20 -21
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +20 -61
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +41 -42
- package/dist/components/progress-circular/ProgressCircular.js +24 -25
- 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 +21 -22
- 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 +18 -19
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +25 -39
- 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 +19 -36
- 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 +28 -42
- 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 +69 -119
- 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 +81 -86
- 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 +28 -57
- 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 +38 -52
- 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 +7 -7
- package/dist/components/split-button/SplitButton.js +25 -17
- package/dist/components/splitter/Splitter.js +14 -15
- 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 +35 -36
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +9 -10
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +17 -40
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +35 -36
- package/dist/components/tabs/Tabs.js +18 -19
- 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 +37 -91
- 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 +21 -22
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +15 -16
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +29 -30
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +6 -7
- 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 +17 -18
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +39 -40
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +47 -48
- 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
|
@@ -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;
|
|
@@ -19,78 +18,78 @@ const Toc_TocRoot = /*#__PURE__*/ forwardRef(function({ autoScroll = false, clas
|
|
|
19
18
|
return /*#__PURE__*/ jsx(Toc.Root, {
|
|
20
19
|
ref: ref,
|
|
21
20
|
autoScroll: autoScroll,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
className: clsx(Toc_module.root, className),
|
|
22
|
+
...props,
|
|
23
|
+
"data-slot": "toc-root"
|
|
25
24
|
});
|
|
26
25
|
});
|
|
27
26
|
const Toc_TocRootProvider = /*#__PURE__*/ forwardRef(function({ className, style, value, ...props }, ref) {
|
|
28
27
|
return /*#__PURE__*/ jsx(Toc.RootProvider, {
|
|
29
28
|
ref: ref,
|
|
30
29
|
value: value,
|
|
31
|
-
|
|
32
|
-
className: clsx(Toc_module.root, normalizeClassName(className)),
|
|
30
|
+
className: clsx(Toc_module.root, className),
|
|
33
31
|
style: {
|
|
34
32
|
...value.getRootProps().style,
|
|
35
33
|
...style
|
|
36
34
|
},
|
|
37
|
-
...props
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "toc-root-provider"
|
|
38
37
|
});
|
|
39
38
|
});
|
|
40
39
|
const Toc_TocContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
41
40
|
return /*#__PURE__*/ jsx(Toc.Content, {
|
|
42
41
|
ref: ref,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
className: clsx(Toc_module.content, className),
|
|
43
|
+
...props,
|
|
44
|
+
"data-slot": "toc-content"
|
|
46
45
|
});
|
|
47
46
|
});
|
|
48
47
|
const Toc_TocNav = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
48
|
return /*#__PURE__*/ jsx(Toc.Nav, {
|
|
50
49
|
ref: ref,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
className: clsx(Toc_module.nav, className),
|
|
51
|
+
...props,
|
|
52
|
+
"data-slot": "toc-nav"
|
|
54
53
|
});
|
|
55
54
|
});
|
|
56
55
|
const Toc_TocTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
57
56
|
return /*#__PURE__*/ jsx(Toc.Title, {
|
|
58
57
|
ref: ref,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
className: clsx(Toc_module.title, className),
|
|
59
|
+
...props,
|
|
60
|
+
"data-slot": "toc-title"
|
|
62
61
|
});
|
|
63
62
|
});
|
|
64
63
|
const Toc_TocList = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
65
64
|
return /*#__PURE__*/ jsx(Toc.List, {
|
|
66
65
|
ref: ref,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
className: clsx(Toc_module.list, className),
|
|
67
|
+
...props,
|
|
68
|
+
"data-slot": "toc-list"
|
|
70
69
|
});
|
|
71
70
|
});
|
|
72
71
|
const Toc_TocItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
73
72
|
return /*#__PURE__*/ jsx(Toc.Item, {
|
|
74
73
|
ref: ref,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
className: clsx(Toc_module.item, className),
|
|
75
|
+
...props,
|
|
76
|
+
"data-slot": "toc-item"
|
|
78
77
|
});
|
|
79
78
|
});
|
|
80
79
|
const Toc_TocLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
81
80
|
return /*#__PURE__*/ jsx(Toc.Link, {
|
|
82
81
|
ref: ref,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
className: clsx(Toc_module.link, className),
|
|
83
|
+
...props,
|
|
84
|
+
"data-slot": "toc-link"
|
|
86
85
|
});
|
|
87
86
|
});
|
|
88
87
|
const Toc_TocIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
89
88
|
return /*#__PURE__*/ jsx(Toc.Indicator, {
|
|
90
89
|
ref: ref,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
className: clsx(Toc_module.indicator, className),
|
|
91
|
+
...props,
|
|
92
|
+
"data-slot": "toc-indicator"
|
|
94
93
|
});
|
|
95
94
|
});
|
|
96
95
|
const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDepth = depth, previousDepth = depth, style, ...props }, ref) {
|
|
@@ -102,14 +101,14 @@ const Toc_TocRail = /*#__PURE__*/ forwardRef(function({ className, depth, nextDe
|
|
|
102
101
|
return /*#__PURE__*/ jsxs("svg", {
|
|
103
102
|
ref: ref,
|
|
104
103
|
"aria-hidden": "true",
|
|
105
|
-
|
|
106
|
-
className: clsx(Toc_module.rail, normalizeClassName(className)),
|
|
104
|
+
className: clsx(Toc_module.rail, className),
|
|
107
105
|
style: {
|
|
108
106
|
width,
|
|
109
107
|
height: lineOffset === nextLineOffset ? `calc(100% + ${railBridge}px + var(--moduix-table-of-contents-list-gap, var(--moduix-spacing-0-5)))` : '100%',
|
|
110
108
|
...style
|
|
111
109
|
},
|
|
112
110
|
...props,
|
|
111
|
+
"data-slot": "toc-rail",
|
|
113
112
|
children: [
|
|
114
113
|
hasTurn && /*#__PURE__*/ jsx("path", {
|
|
115
114
|
d: `M ${previousLineOffset + 0.5} 0 C ${previousLineOffset + 0.5} 8 ${lineOffset + 0.5} 4 ${lineOffset + 0.5} ${2 * railBridge}`,
|
|
@@ -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,24 +3,23 @@ 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, {
|
|
10
9
|
ref: ref,
|
|
11
|
-
"data-slot": "toggle-root",
|
|
12
10
|
"data-variant": variant,
|
|
13
11
|
"data-size": size,
|
|
14
|
-
className: clsx(Toggle_module.root,
|
|
15
|
-
...props
|
|
12
|
+
className: clsx(Toggle_module.root, className),
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "toggle-root"
|
|
16
15
|
});
|
|
17
16
|
});
|
|
18
17
|
const Toggle_ToggleIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
19
18
|
return /*#__PURE__*/ jsx(Toggle.Indicator, {
|
|
20
19
|
ref: ref,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
className: clsx(Toggle_module.indicator, className),
|
|
21
|
+
...props,
|
|
22
|
+
"data-slot": "toggle-indicator"
|
|
24
23
|
});
|
|
25
24
|
});
|
|
26
25
|
const Toggle_Toggle = Object.assign(Toggle_ToggleRoot, {
|
|
@@ -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;
|
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Tooltip, useTooltip, useTooltipContext } from "@ark-ui/react/tooltip";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
8
7
|
import Tooltip_module from "./Tooltip.module.js";
|
|
9
8
|
function TooltipRoot({ lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }) {
|
|
@@ -31,10 +30,10 @@ function TooltipRootProvider({ lazyMount = true, portalled, portalRef, unmountOn
|
|
|
31
30
|
const Tooltip_TooltipTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
32
31
|
return /*#__PURE__*/ jsx(Tooltip.Trigger, {
|
|
33
32
|
ref: ref,
|
|
34
|
-
"data-slot": "tooltip-trigger",
|
|
35
33
|
asChild: asChild,
|
|
36
|
-
className: clsx(!asChild && Tooltip_module.trigger,
|
|
37
|
-
...props
|
|
34
|
+
className: clsx(!asChild && Tooltip_module.trigger, className),
|
|
35
|
+
...props,
|
|
36
|
+
"data-slot": "tooltip-trigger"
|
|
38
37
|
});
|
|
39
38
|
});
|
|
40
39
|
const Tooltip_TooltipDisabledTrigger = /*#__PURE__*/ forwardRef(function({ className, tabIndex = 0, ...props }, ref) {
|
|
@@ -42,10 +41,10 @@ const Tooltip_TooltipDisabledTrigger = /*#__PURE__*/ forwardRef(function({ class
|
|
|
42
41
|
asChild: true,
|
|
43
42
|
children: /*#__PURE__*/ jsx("span", {
|
|
44
43
|
ref: ref,
|
|
45
|
-
"data-slot": "tooltip-disabled-trigger",
|
|
46
44
|
tabIndex: tabIndex,
|
|
47
|
-
className: clsx(Tooltip_module.disabledTrigger,
|
|
48
|
-
...props
|
|
45
|
+
className: clsx(Tooltip_module.disabledTrigger, className),
|
|
46
|
+
...props,
|
|
47
|
+
"data-slot": "tooltip-disabled-trigger"
|
|
49
48
|
})
|
|
50
49
|
});
|
|
51
50
|
});
|
|
@@ -53,18 +52,18 @@ const Tooltip_TooltipPositioner = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
53
52
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
54
53
|
children: /*#__PURE__*/ jsx(Tooltip.Positioner, {
|
|
55
54
|
ref: ref,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
className: clsx(Tooltip_module.positioner, className),
|
|
56
|
+
...props,
|
|
57
|
+
"data-slot": "tooltip-positioner"
|
|
59
58
|
})
|
|
60
59
|
});
|
|
61
60
|
});
|
|
62
61
|
const Tooltip_TooltipContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
63
62
|
return /*#__PURE__*/ jsx(Tooltip.Content, {
|
|
64
63
|
ref: ref,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
className: clsx(Tooltip_module.content, className),
|
|
65
|
+
...props,
|
|
66
|
+
"data-slot": "tooltip-content"
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
const Tooltip_TooltipBody = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
@@ -78,18 +77,18 @@ const Tooltip_TooltipBody = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
78
77
|
const Tooltip_TooltipArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
79
78
|
return /*#__PURE__*/ jsx(Tooltip.Arrow, {
|
|
80
79
|
ref: ref,
|
|
81
|
-
|
|
82
|
-
className: clsx(Tooltip_module.arrow, normalizeClassName(className)),
|
|
80
|
+
className: clsx(Tooltip_module.arrow, className),
|
|
83
81
|
...props,
|
|
82
|
+
"data-slot": "tooltip-arrow",
|
|
84
83
|
children: children ?? /*#__PURE__*/ jsx(Tooltip_TooltipArrowTip, {})
|
|
85
84
|
});
|
|
86
85
|
});
|
|
87
86
|
const Tooltip_TooltipArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
87
|
return /*#__PURE__*/ jsx(Tooltip.ArrowTip, {
|
|
89
88
|
ref: ref,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
className: clsx(Tooltip_module.arrowTip, className),
|
|
90
|
+
...props,
|
|
91
|
+
"data-slot": "tooltip-arrow-tip"
|
|
93
92
|
});
|
|
94
93
|
});
|
|
95
94
|
const Tooltip_Tooltip = Object.assign(TooltipRoot, {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
border-radius: var(--moduix-tooltip-radius, var(--moduix-radius-md));
|
|
78
78
|
background-color: var(--moduix-tooltip-bg, var(--moduix-color-popover));
|
|
79
79
|
color: var(--moduix-tooltip-color, var(--moduix-color-popover-foreground));
|
|
80
|
-
box-shadow: var(--moduix-tooltip-shadow, var(--moduix-shadow-
|
|
80
|
+
box-shadow: var(--moduix-tooltip-shadow, var(--moduix-shadow-md));
|
|
81
81
|
font-size: var(--moduix-tooltip-font-size, var(--moduix-text-sm));
|
|
82
82
|
line-height: var(--moduix-tooltip-line-height, var(--moduix-line-height-text-sm));
|
|
83
83
|
text-align: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tour as TourPrimitive, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from '@ark-ui/react/tour';
|
|
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 TourRootProps = ComponentProps<typeof TourPrimitive.Root> & OverlayPortalProps;
|
|
5
5
|
declare function TourRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: TourRootProps): import("react").JSX.Element;
|
|
6
6
|
declare function TourActionList({ className }: {
|
|
@@ -4,7 +4,6 @@ import { ark } from "@ark-ui/react/factory";
|
|
|
4
4
|
import { Tour, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/react/tour";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
9
8
|
import { CloseButton } from "../close-button/index.js";
|
|
10
9
|
import Tour_module from "./Tour.module.js";
|
|
@@ -24,9 +23,9 @@ const Tour_TourBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
24
23
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
25
24
|
children: /*#__PURE__*/ jsx(Tour.Backdrop, {
|
|
26
25
|
ref: ref,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
className: clsx(Tour_module.backdrop, className),
|
|
27
|
+
...props,
|
|
28
|
+
"data-slot": "tour-backdrop"
|
|
30
29
|
})
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,9 +33,9 @@ const Tour_TourSpotlight = /*#__PURE__*/ forwardRef(function({ className, ...pro
|
|
|
34
33
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
35
34
|
children: /*#__PURE__*/ jsx(Tour.Spotlight, {
|
|
36
35
|
ref: ref,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
className: clsx(Tour_module.spotlight, className),
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "tour-spotlight"
|
|
40
39
|
})
|
|
41
40
|
});
|
|
42
41
|
});
|
|
@@ -44,76 +43,76 @@ const Tour_TourPositioner = /*#__PURE__*/ forwardRef(function({ className, ...pr
|
|
|
44
43
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
45
44
|
children: /*#__PURE__*/ jsx(Tour.Positioner, {
|
|
46
45
|
ref: ref,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
className: clsx(Tour_module.positioner, className),
|
|
47
|
+
...props,
|
|
48
|
+
"data-slot": "tour-positioner"
|
|
50
49
|
})
|
|
51
50
|
});
|
|
52
51
|
});
|
|
53
52
|
const Tour_TourContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
54
53
|
return /*#__PURE__*/ jsx(Tour.Content, {
|
|
55
54
|
ref: ref,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
className: clsx(Tour_module.content, className),
|
|
56
|
+
...props,
|
|
57
|
+
"data-slot": "tour-content"
|
|
59
58
|
});
|
|
60
59
|
});
|
|
61
60
|
const Tour_TourArrow = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
62
61
|
return /*#__PURE__*/ jsx(Tour.Arrow, {
|
|
63
62
|
ref: ref,
|
|
64
|
-
|
|
65
|
-
className: clsx(Tour_module.arrow, normalizeClassName(className)),
|
|
63
|
+
className: clsx(Tour_module.arrow, className),
|
|
66
64
|
...props,
|
|
65
|
+
"data-slot": "tour-arrow",
|
|
67
66
|
children: children ?? /*#__PURE__*/ jsx(Tour_TourArrowTip, {})
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
const Tour_TourArrowTip = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
71
70
|
return /*#__PURE__*/ jsx(Tour.ArrowTip, {
|
|
72
71
|
ref: ref,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
className: clsx(Tour_module.arrowTip, className),
|
|
73
|
+
...props,
|
|
74
|
+
"data-slot": "tour-arrow-tip"
|
|
76
75
|
});
|
|
77
76
|
});
|
|
78
77
|
const Tour_TourTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
79
78
|
return /*#__PURE__*/ jsx(Tour.Title, {
|
|
80
79
|
ref: ref,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
className: clsx(Tour_module.title, className),
|
|
81
|
+
...props,
|
|
82
|
+
"data-slot": "tour-title"
|
|
84
83
|
});
|
|
85
84
|
});
|
|
86
85
|
const Tour_TourDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
87
86
|
return /*#__PURE__*/ jsx(Tour.Description, {
|
|
88
87
|
ref: ref,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
className: clsx(Tour_module.description, className),
|
|
89
|
+
...props,
|
|
90
|
+
"data-slot": "tour-description"
|
|
92
91
|
});
|
|
93
92
|
});
|
|
94
93
|
const Tour_TourProgressText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
95
94
|
return /*#__PURE__*/ jsx(Tour.ProgressText, {
|
|
96
95
|
ref: ref,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
className: clsx(Tour_module.progressText, className),
|
|
97
|
+
...props,
|
|
98
|
+
"data-slot": "tour-progress-text"
|
|
100
99
|
});
|
|
101
100
|
});
|
|
102
101
|
const Tour_TourBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
103
102
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
104
103
|
ref: ref,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
className: clsx(Tour_module.body, className),
|
|
105
|
+
...props,
|
|
106
|
+
"data-slot": "tour-body"
|
|
108
107
|
});
|
|
109
108
|
});
|
|
110
109
|
const Tour_TourCloseTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
111
110
|
return /*#__PURE__*/ jsx(Tour.CloseTrigger, {
|
|
112
111
|
ref: ref,
|
|
113
112
|
asChild: asChild,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
className: clsx(!asChild && Tour_module.closeTrigger, className),
|
|
114
|
+
...props,
|
|
115
|
+
"data-slot": "tour-close-trigger"
|
|
117
116
|
});
|
|
118
117
|
});
|
|
119
118
|
const Tour_TourCloseIcon = /*#__PURE__*/ forwardRef(function({ className, children, 'aria-label': ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
@@ -124,7 +123,7 @@ const Tour_TourCloseIcon = /*#__PURE__*/ forwardRef(function({ className, childr
|
|
|
124
123
|
ref: ref,
|
|
125
124
|
"data-slot": "tour-close-icon",
|
|
126
125
|
"aria-label": ariaLabel,
|
|
127
|
-
className: clsx(Tour_module.closeIcon,
|
|
126
|
+
className: clsx(Tour_module.closeIcon, className),
|
|
128
127
|
children: children
|
|
129
128
|
})
|
|
130
129
|
});
|
|
@@ -132,18 +131,18 @@ const Tour_TourCloseIcon = /*#__PURE__*/ forwardRef(function({ className, childr
|
|
|
132
131
|
const Tour_TourControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
133
132
|
return /*#__PURE__*/ jsx(Tour.Control, {
|
|
134
133
|
ref: ref,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
className: clsx(Tour_module.control, className),
|
|
135
|
+
...props,
|
|
136
|
+
"data-slot": "tour-control"
|
|
138
137
|
});
|
|
139
138
|
});
|
|
140
139
|
const Tour_TourActionTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, ...props }, ref) {
|
|
141
140
|
return /*#__PURE__*/ jsx(Tour.ActionTrigger, {
|
|
142
141
|
ref: ref,
|
|
143
142
|
asChild: asChild,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
className: clsx(!asChild && Tour_module.actionTrigger, className),
|
|
144
|
+
...props,
|
|
145
|
+
"data-slot": "tour-action-trigger"
|
|
147
146
|
});
|
|
148
147
|
});
|
|
149
148
|
const TourActions = Tour.Actions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeView as TreeViewPrimitive, createFileTreeCollection, createTreeCollection, type TreeNode, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, type TreeViewNodeState, useTreeView, useTreeViewContext, useTreeViewNodeContext } from '@ark-ui/react/tree-view';
|
|
1
|
+
import { TreeView as TreeViewPrimitive, createFileTreeCollection, createTreeCollection, type TreeNode, type TreeViewLoadChildrenDetails, type TreeViewNodeProviderProps, type TreeViewNodeState, type TreeViewRootComponent, type TreeViewRootProviderComponent, useTreeView, useTreeViewContext, useTreeViewNodeContext } from '@ark-ui/react/tree-view';
|
|
2
2
|
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
declare function TreeViewNodeCheckboxIndicator({ className, children, indeterminate, ...props }: ComponentProps<typeof TreeViewPrimitive.NodeCheckboxIndicator>): import("react").JSX.Element;
|
|
4
4
|
type TreeViewNodeRenderProps<T extends TreeNode> = {
|
|
@@ -12,9 +12,9 @@ type TreeViewNodeProps<T extends TreeNode> = {
|
|
|
12
12
|
node: T;
|
|
13
13
|
};
|
|
14
14
|
declare function TreeViewNode<T extends TreeNode>({ children, indexPath, node }: TreeViewNodeProps<T>): import("react").JSX.Element;
|
|
15
|
-
declare const TreeView:
|
|
16
|
-
Root:
|
|
17
|
-
RootProvider:
|
|
15
|
+
declare const TreeView: TreeViewRootComponent & {
|
|
16
|
+
Root: TreeViewRootComponent;
|
|
17
|
+
RootProvider: TreeViewRootProviderComponent;
|
|
18
18
|
Context: <T extends unknown>(props: TreeViewPrimitive.ContextProps<T>) => ReactNode;
|
|
19
19
|
NodeContext: (props: TreeViewPrimitive.NodeContextProps) => ReactNode;
|
|
20
20
|
Label: import("react").ForwardRefExoticComponent<Omit<TreeViewPrimitive.LabelProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|