@moduix/solid 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +71 -52
- package/dist/components/command-palette/CommandPalette.jsx +28 -31
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Toc, useToc, useTocContext } from "@ark-ui/solid/toc";
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
import Toc_module from "./Toc.module.js";
|
|
6
|
-
var _tmpl$ = /*#__PURE__*/ template("<svg aria-hidden=true
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<svg aria-hidden=true><line y2=100%>"), _tmpl$2 = /*#__PURE__*/ template("<svg><path fill=none></svg>", false, true, false);
|
|
7
7
|
const railBaseOffset = 0;
|
|
8
8
|
const railStep = 12;
|
|
9
9
|
const railBridge = 6;
|
|
@@ -23,11 +23,12 @@ function TocRoot(props) {
|
|
|
23
23
|
get autoScroll () {
|
|
24
24
|
return local.autoScroll ?? false;
|
|
25
25
|
},
|
|
26
|
-
"data-slot": "toc-root",
|
|
27
26
|
get ["class"] () {
|
|
28
27
|
return clsx(Toc_module.root, local.class);
|
|
29
28
|
}
|
|
30
|
-
}, others
|
|
29
|
+
}, others, {
|
|
30
|
+
"data-slot": "toc-root"
|
|
31
|
+
}));
|
|
31
32
|
}
|
|
32
33
|
function TocRootProvider(props) {
|
|
33
34
|
const [local, others] = splitProps(props, [
|
|
@@ -40,91 +41,99 @@ function TocRootProvider(props) {
|
|
|
40
41
|
get value () {
|
|
41
42
|
return local.value;
|
|
42
43
|
},
|
|
43
|
-
"data-slot": "toc-root-provider",
|
|
44
44
|
get ["class"] () {
|
|
45
45
|
return clsx(Toc_module.root, local.class);
|
|
46
46
|
},
|
|
47
47
|
get style () {
|
|
48
48
|
return getRootStyle();
|
|
49
49
|
}
|
|
50
|
-
}, others
|
|
50
|
+
}, others, {
|
|
51
|
+
"data-slot": "toc-root-provider"
|
|
52
|
+
}));
|
|
51
53
|
}
|
|
52
54
|
function TocContent(props) {
|
|
53
55
|
const [local, others] = splitProps(props, [
|
|
54
56
|
'class'
|
|
55
57
|
]);
|
|
56
58
|
return createComponent(Toc.Content, mergeProps({
|
|
57
|
-
"data-slot": "toc-content",
|
|
58
59
|
get ["class"] () {
|
|
59
60
|
return clsx(Toc_module.content, local.class);
|
|
60
61
|
}
|
|
61
|
-
}, others
|
|
62
|
+
}, others, {
|
|
63
|
+
"data-slot": "toc-content"
|
|
64
|
+
}));
|
|
62
65
|
}
|
|
63
66
|
function TocNav(props) {
|
|
64
67
|
const [local, others] = splitProps(props, [
|
|
65
68
|
'class'
|
|
66
69
|
]);
|
|
67
70
|
return createComponent(Toc.Nav, mergeProps({
|
|
68
|
-
"data-slot": "toc-nav",
|
|
69
71
|
get ["class"] () {
|
|
70
72
|
return clsx(Toc_module.nav, local.class);
|
|
71
73
|
}
|
|
72
|
-
}, others
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "toc-nav"
|
|
76
|
+
}));
|
|
73
77
|
}
|
|
74
78
|
function TocTitle(props) {
|
|
75
79
|
const [local, others] = splitProps(props, [
|
|
76
80
|
'class'
|
|
77
81
|
]);
|
|
78
82
|
return createComponent(Toc.Title, mergeProps({
|
|
79
|
-
"data-slot": "toc-title",
|
|
80
83
|
get ["class"] () {
|
|
81
84
|
return clsx(Toc_module.title, local.class);
|
|
82
85
|
}
|
|
83
|
-
}, others
|
|
86
|
+
}, others, {
|
|
87
|
+
"data-slot": "toc-title"
|
|
88
|
+
}));
|
|
84
89
|
}
|
|
85
90
|
function TocList(props) {
|
|
86
91
|
const [local, others] = splitProps(props, [
|
|
87
92
|
'class'
|
|
88
93
|
]);
|
|
89
94
|
return createComponent(Toc.List, mergeProps({
|
|
90
|
-
"data-slot": "toc-list",
|
|
91
95
|
get ["class"] () {
|
|
92
96
|
return clsx(Toc_module.list, local.class);
|
|
93
97
|
}
|
|
94
|
-
}, others
|
|
98
|
+
}, others, {
|
|
99
|
+
"data-slot": "toc-list"
|
|
100
|
+
}));
|
|
95
101
|
}
|
|
96
102
|
function TocItem(props) {
|
|
97
103
|
const [local, others] = splitProps(props, [
|
|
98
104
|
'class'
|
|
99
105
|
]);
|
|
100
106
|
return createComponent(Toc.Item, mergeProps({
|
|
101
|
-
"data-slot": "toc-item",
|
|
102
107
|
get ["class"] () {
|
|
103
108
|
return clsx(Toc_module.item, local.class);
|
|
104
109
|
}
|
|
105
|
-
}, others
|
|
110
|
+
}, others, {
|
|
111
|
+
"data-slot": "toc-item"
|
|
112
|
+
}));
|
|
106
113
|
}
|
|
107
114
|
function TocLink(props) {
|
|
108
115
|
const [local, others] = splitProps(props, [
|
|
109
116
|
'class'
|
|
110
117
|
]);
|
|
111
118
|
return createComponent(Toc.Link, mergeProps({
|
|
112
|
-
"data-slot": "toc-link",
|
|
113
119
|
get ["class"] () {
|
|
114
120
|
return clsx(Toc_module.link, local.class);
|
|
115
121
|
}
|
|
116
|
-
}, others
|
|
122
|
+
}, others, {
|
|
123
|
+
"data-slot": "toc-link"
|
|
124
|
+
}));
|
|
117
125
|
}
|
|
118
126
|
function TocIndicator(props) {
|
|
119
127
|
const [local, others] = splitProps(props, [
|
|
120
128
|
'class'
|
|
121
129
|
]);
|
|
122
130
|
return createComponent(Toc.Indicator, mergeProps({
|
|
123
|
-
"data-slot": "toc-indicator",
|
|
124
131
|
get ["class"] () {
|
|
125
132
|
return clsx(Toc_module.indicator, local.class);
|
|
126
133
|
}
|
|
127
|
-
}, others
|
|
134
|
+
}, others, {
|
|
135
|
+
"data-slot": "toc-indicator"
|
|
136
|
+
}));
|
|
128
137
|
}
|
|
129
138
|
const nonScalingStrokeProps = {
|
|
130
139
|
'vector-effect': 'non-scaling-stroke'
|
|
@@ -174,7 +183,9 @@ function TocRail(props) {
|
|
|
174
183
|
get style () {
|
|
175
184
|
return getRailStyle();
|
|
176
185
|
}
|
|
177
|
-
}, others
|
|
186
|
+
}, others, {
|
|
187
|
+
"data-slot": "toc-rail"
|
|
188
|
+
}), true, true);
|
|
178
189
|
insert(_el$, (()=>{
|
|
179
190
|
var _c$ = memo(()=>!!hasTurn());
|
|
180
191
|
return ()=>_c$() && (()=>{
|
|
@@ -17,7 +17,7 @@ function TocRoot(props) {
|
|
|
17
17
|
'autoScroll',
|
|
18
18
|
'class'
|
|
19
19
|
]);
|
|
20
|
-
return <Toc.Root autoScroll={local.autoScroll ?? false}
|
|
20
|
+
return <Toc.Root autoScroll={local.autoScroll ?? false} class={clsx(Toc_module.root, local.class)} {...others} data-slot="toc-root"/>;
|
|
21
21
|
}
|
|
22
22
|
function TocRootProvider(props) {
|
|
23
23
|
const [local, others] = splitProps(props, [
|
|
@@ -26,49 +26,49 @@ function TocRootProvider(props) {
|
|
|
26
26
|
'value'
|
|
27
27
|
]);
|
|
28
28
|
const getRootStyle = ()=>mergeStyles(local.value().getRootProps().style, local.style);
|
|
29
|
-
return <Toc.RootProvider value={local.value}
|
|
29
|
+
return <Toc.RootProvider value={local.value} class={clsx(Toc_module.root, local.class)} style={getRootStyle()} {...others} data-slot="toc-root-provider"/>;
|
|
30
30
|
}
|
|
31
31
|
function TocContent(props) {
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
|
-
return <Toc.Content
|
|
35
|
+
return <Toc.Content class={clsx(Toc_module.content, local.class)} {...others} data-slot="toc-content"/>;
|
|
36
36
|
}
|
|
37
37
|
function TocNav(props) {
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
39
39
|
'class'
|
|
40
40
|
]);
|
|
41
|
-
return <Toc.Nav
|
|
41
|
+
return <Toc.Nav class={clsx(Toc_module.nav, local.class)} {...others} data-slot="toc-nav"/>;
|
|
42
42
|
}
|
|
43
43
|
function TocTitle(props) {
|
|
44
44
|
const [local, others] = splitProps(props, [
|
|
45
45
|
'class'
|
|
46
46
|
]);
|
|
47
|
-
return <Toc.Title
|
|
47
|
+
return <Toc.Title class={clsx(Toc_module.title, local.class)} {...others} data-slot="toc-title"/>;
|
|
48
48
|
}
|
|
49
49
|
function TocList(props) {
|
|
50
50
|
const [local, others] = splitProps(props, [
|
|
51
51
|
'class'
|
|
52
52
|
]);
|
|
53
|
-
return <Toc.List
|
|
53
|
+
return <Toc.List class={clsx(Toc_module.list, local.class)} {...others} data-slot="toc-list"/>;
|
|
54
54
|
}
|
|
55
55
|
function TocItem(props) {
|
|
56
56
|
const [local, others] = splitProps(props, [
|
|
57
57
|
'class'
|
|
58
58
|
]);
|
|
59
|
-
return <Toc.Item
|
|
59
|
+
return <Toc.Item class={clsx(Toc_module.item, local.class)} {...others} data-slot="toc-item"/>;
|
|
60
60
|
}
|
|
61
61
|
function TocLink(props) {
|
|
62
62
|
const [local, others] = splitProps(props, [
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
|
-
return <Toc.Link
|
|
65
|
+
return <Toc.Link class={clsx(Toc_module.link, local.class)} {...others} data-slot="toc-link"/>;
|
|
66
66
|
}
|
|
67
67
|
function TocIndicator(props) {
|
|
68
68
|
const [local, others] = splitProps(props, [
|
|
69
69
|
'class'
|
|
70
70
|
]);
|
|
71
|
-
return <Toc.Indicator
|
|
71
|
+
return <Toc.Indicator class={clsx(Toc_module.indicator, local.class)} {...others} data-slot="toc-indicator"/>;
|
|
72
72
|
}
|
|
73
73
|
const nonScalingStrokeProps = {
|
|
74
74
|
'vector-effect': 'non-scaling-stroke'
|
|
@@ -109,7 +109,7 @@ function TocRail(props) {
|
|
|
109
109
|
width: width(),
|
|
110
110
|
height: height()
|
|
111
111
|
}, local.style);
|
|
112
|
-
return <svg aria-hidden="true"
|
|
112
|
+
return <svg aria-hidden="true" class={clsx(Toc_module.rail, local.class)} style={getRailStyle()} {...others} data-slot="toc-rail">
|
|
113
113
|
{hasTurn() && <path d={`M ${previousLineOffset() + 0.5} 0 C ${previousLineOffset() + 0.5} 8 ${lineOffset() + 0.5} 4 ${lineOffset() + 0.5} ${2 * railBridge}`} fill="none" {...nonScalingStrokeProps} stroke="currentColor"/>}
|
|
114
114
|
<line x1={lineOffset() + 0.5} y1={hasTurn() ? 2 * railBridge : railBridge} x2={lineOffset() + 0.5} y2="100%" {...nonScalingStrokeProps} stroke="currentColor"/>
|
|
115
115
|
</svg>;
|
|
@@ -79,11 +79,12 @@ function TooltipTrigger(props) {
|
|
|
79
79
|
get asChild () {
|
|
80
80
|
return local.asChild;
|
|
81
81
|
},
|
|
82
|
-
"data-slot": "tooltip-trigger",
|
|
83
82
|
get ["class"] () {
|
|
84
83
|
return clsx(!local.asChild && Tooltip_module.trigger, local.class);
|
|
85
84
|
}
|
|
86
|
-
}, others
|
|
85
|
+
}, others, {
|
|
86
|
+
"data-slot": "tooltip-trigger"
|
|
87
|
+
}));
|
|
87
88
|
}
|
|
88
89
|
function TooltipDisabledTrigger(props) {
|
|
89
90
|
const [local, others] = splitProps(props, [
|
|
@@ -124,11 +125,12 @@ function TooltipPositioner(props) {
|
|
|
124
125
|
return createComponent(OverlayPortal, {
|
|
125
126
|
get children () {
|
|
126
127
|
return createComponent(Tooltip.Positioner, mergeProps({
|
|
127
|
-
"data-slot": "tooltip-positioner",
|
|
128
128
|
get ["class"] () {
|
|
129
129
|
return clsx(Tooltip_module.positioner, local.class);
|
|
130
130
|
}
|
|
131
|
-
}, others
|
|
131
|
+
}, others, {
|
|
132
|
+
"data-slot": "tooltip-positioner"
|
|
133
|
+
}));
|
|
132
134
|
}
|
|
133
135
|
});
|
|
134
136
|
}
|
|
@@ -137,11 +139,12 @@ function TooltipContent(props) {
|
|
|
137
139
|
'class'
|
|
138
140
|
]);
|
|
139
141
|
return createComponent(Tooltip.Content, mergeProps({
|
|
140
|
-
"data-slot": "tooltip-content",
|
|
141
142
|
get ["class"] () {
|
|
142
143
|
return clsx(Tooltip_module.content, local.class);
|
|
143
144
|
}
|
|
144
|
-
}, others
|
|
145
|
+
}, others, {
|
|
146
|
+
"data-slot": "tooltip-content"
|
|
147
|
+
}));
|
|
145
148
|
}
|
|
146
149
|
function TooltipBody(props) {
|
|
147
150
|
return createComponent(TooltipPositioner, {
|
|
@@ -157,11 +160,11 @@ function TooltipArrow(props) {
|
|
|
157
160
|
]);
|
|
158
161
|
const resolvedChildren = children(()=>local.children);
|
|
159
162
|
return createComponent(Tooltip.Arrow, mergeProps({
|
|
160
|
-
"data-slot": "tooltip-arrow",
|
|
161
163
|
get ["class"] () {
|
|
162
164
|
return clsx(Tooltip_module.arrow, local.class);
|
|
163
165
|
}
|
|
164
166
|
}, others, {
|
|
167
|
+
"data-slot": "tooltip-arrow",
|
|
165
168
|
get children () {
|
|
166
169
|
return resolvedChildren() ?? createComponent(TooltipArrowTip, {});
|
|
167
170
|
}
|
|
@@ -172,11 +175,12 @@ function TooltipArrowTip(props) {
|
|
|
172
175
|
'class'
|
|
173
176
|
]);
|
|
174
177
|
return createComponent(Tooltip.ArrowTip, mergeProps({
|
|
175
|
-
"data-slot": "tooltip-arrow-tip",
|
|
176
178
|
get ["class"] () {
|
|
177
179
|
return clsx(Tooltip_module.arrowTip, local.class);
|
|
178
180
|
}
|
|
179
|
-
}, others
|
|
181
|
+
}, others, {
|
|
182
|
+
"data-slot": "tooltip-arrow-tip"
|
|
183
|
+
}));
|
|
180
184
|
}
|
|
181
185
|
const Tooltip_Tooltip = Object.assign(TooltipRoot, {
|
|
182
186
|
Root: TooltipRoot,
|
|
@@ -39,7 +39,7 @@ function TooltipTrigger(props) {
|
|
|
39
39
|
'asChild',
|
|
40
40
|
'class'
|
|
41
41
|
]);
|
|
42
|
-
return <Tooltip.Trigger asChild={local.asChild}
|
|
42
|
+
return <Tooltip.Trigger asChild={local.asChild} class={clsx(!local.asChild && Tooltip_module.trigger, local.class)} {...others} data-slot="tooltip-trigger"/>;
|
|
43
43
|
}
|
|
44
44
|
function TooltipDisabledTrigger(props) {
|
|
45
45
|
const [local, others] = splitProps(props, [
|
|
@@ -64,14 +64,14 @@ function TooltipPositioner(props) {
|
|
|
64
64
|
'class'
|
|
65
65
|
]);
|
|
66
66
|
return <OverlayPortal>
|
|
67
|
-
<Tooltip.Positioner
|
|
67
|
+
<Tooltip.Positioner class={clsx(Tooltip_module.positioner, local.class)} {...others} data-slot="tooltip-positioner"/>
|
|
68
68
|
</OverlayPortal>;
|
|
69
69
|
}
|
|
70
70
|
function TooltipContent(props) {
|
|
71
71
|
const [local, others] = splitProps(props, [
|
|
72
72
|
'class'
|
|
73
73
|
]);
|
|
74
|
-
return <Tooltip.Content
|
|
74
|
+
return <Tooltip.Content class={clsx(Tooltip_module.content, local.class)} {...others} data-slot="tooltip-content"/>;
|
|
75
75
|
}
|
|
76
76
|
function TooltipBody(props) {
|
|
77
77
|
return <TooltipPositioner>
|
|
@@ -84,7 +84,7 @@ function TooltipArrow(props) {
|
|
|
84
84
|
'class'
|
|
85
85
|
]);
|
|
86
86
|
const resolvedChildren = children(()=>local.children);
|
|
87
|
-
return <Tooltip.Arrow
|
|
87
|
+
return <Tooltip.Arrow class={clsx(Tooltip_module.arrow, local.class)} {...others} data-slot="tooltip-arrow">
|
|
88
88
|
{resolvedChildren() ?? <TooltipArrowTip/>}
|
|
89
89
|
</Tooltip.Arrow>;
|
|
90
90
|
}
|
|
@@ -92,7 +92,7 @@ function TooltipArrowTip(props) {
|
|
|
92
92
|
const [local, others] = splitProps(props, [
|
|
93
93
|
'class'
|
|
94
94
|
]);
|
|
95
|
-
return <Tooltip.ArrowTip
|
|
95
|
+
return <Tooltip.ArrowTip class={clsx(Tooltip_module.arrowTip, local.class)} {...others} data-slot="tooltip-arrow-tip"/>;
|
|
96
96
|
}
|
|
97
97
|
const Tooltip_Tooltip = Object.assign(TooltipRoot, {
|
|
98
98
|
Root: TooltipRoot,
|
|
@@ -45,11 +45,12 @@ function TourBackdrop(props) {
|
|
|
45
45
|
return createComponent(OverlayPortal, {
|
|
46
46
|
get children () {
|
|
47
47
|
return createComponent(Tour.Backdrop, mergeProps({
|
|
48
|
-
"data-slot": "tour-backdrop",
|
|
49
48
|
get ["class"] () {
|
|
50
49
|
return clsx(Tour_module.backdrop, local.class);
|
|
51
50
|
}
|
|
52
|
-
}, others
|
|
51
|
+
}, others, {
|
|
52
|
+
"data-slot": "tour-backdrop"
|
|
53
|
+
}));
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
}
|
|
@@ -60,11 +61,12 @@ function TourSpotlight(props) {
|
|
|
60
61
|
return createComponent(OverlayPortal, {
|
|
61
62
|
get children () {
|
|
62
63
|
return createComponent(Tour.Spotlight, mergeProps({
|
|
63
|
-
"data-slot": "tour-spotlight",
|
|
64
64
|
get ["class"] () {
|
|
65
65
|
return clsx(Tour_module.spotlight, local.class);
|
|
66
66
|
}
|
|
67
|
-
}, others
|
|
67
|
+
}, others, {
|
|
68
|
+
"data-slot": "tour-spotlight"
|
|
69
|
+
}));
|
|
68
70
|
}
|
|
69
71
|
});
|
|
70
72
|
}
|
|
@@ -75,11 +77,12 @@ function TourPositioner(props) {
|
|
|
75
77
|
return createComponent(OverlayPortal, {
|
|
76
78
|
get children () {
|
|
77
79
|
return createComponent(Tour.Positioner, mergeProps({
|
|
78
|
-
"data-slot": "tour-positioner",
|
|
79
80
|
get ["class"] () {
|
|
80
81
|
return clsx(Tour_module.positioner, local.class);
|
|
81
82
|
}
|
|
82
|
-
}, others
|
|
83
|
+
}, others, {
|
|
84
|
+
"data-slot": "tour-positioner"
|
|
85
|
+
}));
|
|
83
86
|
}
|
|
84
87
|
});
|
|
85
88
|
}
|
|
@@ -88,11 +91,12 @@ function TourContent(props) {
|
|
|
88
91
|
'class'
|
|
89
92
|
]);
|
|
90
93
|
return createComponent(Tour.Content, mergeProps({
|
|
91
|
-
"data-slot": "tour-content",
|
|
92
94
|
get ["class"] () {
|
|
93
95
|
return clsx(Tour_module.content, local.class);
|
|
94
96
|
}
|
|
95
|
-
}, others
|
|
97
|
+
}, others, {
|
|
98
|
+
"data-slot": "tour-content"
|
|
99
|
+
}));
|
|
96
100
|
}
|
|
97
101
|
function TourArrow(props) {
|
|
98
102
|
const [local, others] = splitProps(props, [
|
|
@@ -101,11 +105,11 @@ function TourArrow(props) {
|
|
|
101
105
|
]);
|
|
102
106
|
const resolvedChildren = children(()=>local.children);
|
|
103
107
|
return createComponent(Tour.Arrow, mergeProps({
|
|
104
|
-
"data-slot": "tour-arrow",
|
|
105
108
|
get ["class"] () {
|
|
106
109
|
return clsx(Tour_module.arrow, local.class);
|
|
107
110
|
}
|
|
108
111
|
}, others, {
|
|
112
|
+
"data-slot": "tour-arrow",
|
|
109
113
|
get children () {
|
|
110
114
|
return resolvedChildren() ?? createComponent(TourArrowTip, {});
|
|
111
115
|
}
|
|
@@ -116,55 +120,60 @@ function TourArrowTip(props) {
|
|
|
116
120
|
'class'
|
|
117
121
|
]);
|
|
118
122
|
return createComponent(Tour.ArrowTip, mergeProps({
|
|
119
|
-
"data-slot": "tour-arrow-tip",
|
|
120
123
|
get ["class"] () {
|
|
121
124
|
return clsx(Tour_module.arrowTip, local.class);
|
|
122
125
|
}
|
|
123
|
-
}, others
|
|
126
|
+
}, others, {
|
|
127
|
+
"data-slot": "tour-arrow-tip"
|
|
128
|
+
}));
|
|
124
129
|
}
|
|
125
130
|
function TourTitle(props) {
|
|
126
131
|
const [local, others] = splitProps(props, [
|
|
127
132
|
'class'
|
|
128
133
|
]);
|
|
129
134
|
return createComponent(Tour.Title, mergeProps({
|
|
130
|
-
"data-slot": "tour-title",
|
|
131
135
|
get ["class"] () {
|
|
132
136
|
return clsx(Tour_module.title, local.class);
|
|
133
137
|
}
|
|
134
|
-
}, others
|
|
138
|
+
}, others, {
|
|
139
|
+
"data-slot": "tour-title"
|
|
140
|
+
}));
|
|
135
141
|
}
|
|
136
142
|
function TourDescription(props) {
|
|
137
143
|
const [local, others] = splitProps(props, [
|
|
138
144
|
'class'
|
|
139
145
|
]);
|
|
140
146
|
return createComponent(Tour.Description, mergeProps({
|
|
141
|
-
"data-slot": "tour-description",
|
|
142
147
|
get ["class"] () {
|
|
143
148
|
return clsx(Tour_module.description, local.class);
|
|
144
149
|
}
|
|
145
|
-
}, others
|
|
150
|
+
}, others, {
|
|
151
|
+
"data-slot": "tour-description"
|
|
152
|
+
}));
|
|
146
153
|
}
|
|
147
154
|
function TourProgressText(props) {
|
|
148
155
|
const [local, others] = splitProps(props, [
|
|
149
156
|
'class'
|
|
150
157
|
]);
|
|
151
158
|
return createComponent(Tour.ProgressText, mergeProps({
|
|
152
|
-
"data-slot": "tour-progress-text",
|
|
153
159
|
get ["class"] () {
|
|
154
160
|
return clsx(Tour_module.progressText, local.class);
|
|
155
161
|
}
|
|
156
|
-
}, others
|
|
162
|
+
}, others, {
|
|
163
|
+
"data-slot": "tour-progress-text"
|
|
164
|
+
}));
|
|
157
165
|
}
|
|
158
166
|
function TourBody(props) {
|
|
159
167
|
const [local, others] = splitProps(props, [
|
|
160
168
|
'class'
|
|
161
169
|
]);
|
|
162
170
|
return createComponent(ark.div, mergeProps({
|
|
163
|
-
"data-slot": "tour-body",
|
|
164
171
|
get ["class"] () {
|
|
165
172
|
return clsx(Tour_module.body, local.class);
|
|
166
173
|
}
|
|
167
|
-
}, others
|
|
174
|
+
}, others, {
|
|
175
|
+
"data-slot": "tour-body"
|
|
176
|
+
}));
|
|
168
177
|
}
|
|
169
178
|
function TourCloseTrigger(props) {
|
|
170
179
|
const [local, others] = splitProps(props, [
|
|
@@ -175,11 +184,12 @@ function TourCloseTrigger(props) {
|
|
|
175
184
|
get asChild () {
|
|
176
185
|
return local.asChild;
|
|
177
186
|
},
|
|
178
|
-
"data-slot": "tour-close-trigger",
|
|
179
187
|
get ["class"] () {
|
|
180
188
|
return clsx(!local.asChild && Tour_module.closeTrigger, local.class);
|
|
181
189
|
}
|
|
182
|
-
}, others
|
|
190
|
+
}, others, {
|
|
191
|
+
"data-slot": "tour-close-trigger"
|
|
192
|
+
}));
|
|
183
193
|
}
|
|
184
194
|
function TourCloseIcon(props) {
|
|
185
195
|
const [local, others] = splitProps(props, [
|
|
@@ -212,11 +222,12 @@ function TourControl(props) {
|
|
|
212
222
|
'class'
|
|
213
223
|
]);
|
|
214
224
|
return createComponent(Tour.Control, mergeProps({
|
|
215
|
-
"data-slot": "tour-control",
|
|
216
225
|
get ["class"] () {
|
|
217
226
|
return clsx(Tour_module.control, local.class);
|
|
218
227
|
}
|
|
219
|
-
}, others
|
|
228
|
+
}, others, {
|
|
229
|
+
"data-slot": "tour-control"
|
|
230
|
+
}));
|
|
220
231
|
}
|
|
221
232
|
function TourActionTrigger(props) {
|
|
222
233
|
const [local, others] = splitProps(props, [
|
|
@@ -227,11 +238,12 @@ function TourActionTrigger(props) {
|
|
|
227
238
|
get asChild () {
|
|
228
239
|
return local.asChild;
|
|
229
240
|
},
|
|
230
|
-
"data-slot": "tour-action-trigger",
|
|
231
241
|
get ["class"] () {
|
|
232
242
|
return clsx(!local.asChild && Tour_module.actionTrigger, local.class);
|
|
233
243
|
}
|
|
234
|
-
}, others
|
|
244
|
+
}, others, {
|
|
245
|
+
"data-slot": "tour-action-trigger"
|
|
246
|
+
}));
|
|
235
247
|
}
|
|
236
248
|
const TourActions = Tour.Actions;
|
|
237
249
|
function TourActionList(props) {
|
|
@@ -25,7 +25,7 @@ function TourBackdrop(props) {
|
|
|
25
25
|
'class'
|
|
26
26
|
]);
|
|
27
27
|
return <OverlayPortal>
|
|
28
|
-
<Tour.Backdrop
|
|
28
|
+
<Tour.Backdrop class={clsx(Tour_module.backdrop, local.class)} {...others} data-slot="tour-backdrop"/>
|
|
29
29
|
</OverlayPortal>;
|
|
30
30
|
}
|
|
31
31
|
function TourSpotlight(props) {
|
|
@@ -33,7 +33,7 @@ function TourSpotlight(props) {
|
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
35
|
return <OverlayPortal>
|
|
36
|
-
<Tour.Spotlight
|
|
36
|
+
<Tour.Spotlight class={clsx(Tour_module.spotlight, local.class)} {...others} data-slot="tour-spotlight"/>
|
|
37
37
|
</OverlayPortal>;
|
|
38
38
|
}
|
|
39
39
|
function TourPositioner(props) {
|
|
@@ -41,14 +41,14 @@ function TourPositioner(props) {
|
|
|
41
41
|
'class'
|
|
42
42
|
]);
|
|
43
43
|
return <OverlayPortal>
|
|
44
|
-
<Tour.Positioner
|
|
44
|
+
<Tour.Positioner class={clsx(Tour_module.positioner, local.class)} {...others} data-slot="tour-positioner"/>
|
|
45
45
|
</OverlayPortal>;
|
|
46
46
|
}
|
|
47
47
|
function TourContent(props) {
|
|
48
48
|
const [local, others] = splitProps(props, [
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <Tour.Content
|
|
51
|
+
return <Tour.Content class={clsx(Tour_module.content, local.class)} {...others} data-slot="tour-content"/>;
|
|
52
52
|
}
|
|
53
53
|
function TourArrow(props) {
|
|
54
54
|
const [local, others] = splitProps(props, [
|
|
@@ -56,7 +56,7 @@ function TourArrow(props) {
|
|
|
56
56
|
'class'
|
|
57
57
|
]);
|
|
58
58
|
const resolvedChildren = children(()=>local.children);
|
|
59
|
-
return <Tour.Arrow
|
|
59
|
+
return <Tour.Arrow class={clsx(Tour_module.arrow, local.class)} {...others} data-slot="tour-arrow">
|
|
60
60
|
{resolvedChildren() ?? <TourArrowTip/>}
|
|
61
61
|
</Tour.Arrow>;
|
|
62
62
|
}
|
|
@@ -64,38 +64,38 @@ function TourArrowTip(props) {
|
|
|
64
64
|
const [local, others] = splitProps(props, [
|
|
65
65
|
'class'
|
|
66
66
|
]);
|
|
67
|
-
return <Tour.ArrowTip
|
|
67
|
+
return <Tour.ArrowTip class={clsx(Tour_module.arrowTip, local.class)} {...others} data-slot="tour-arrow-tip"/>;
|
|
68
68
|
}
|
|
69
69
|
function TourTitle(props) {
|
|
70
70
|
const [local, others] = splitProps(props, [
|
|
71
71
|
'class'
|
|
72
72
|
]);
|
|
73
|
-
return <Tour.Title
|
|
73
|
+
return <Tour.Title class={clsx(Tour_module.title, local.class)} {...others} data-slot="tour-title"/>;
|
|
74
74
|
}
|
|
75
75
|
function TourDescription(props) {
|
|
76
76
|
const [local, others] = splitProps(props, [
|
|
77
77
|
'class'
|
|
78
78
|
]);
|
|
79
|
-
return <Tour.Description
|
|
79
|
+
return <Tour.Description class={clsx(Tour_module.description, local.class)} {...others} data-slot="tour-description"/>;
|
|
80
80
|
}
|
|
81
81
|
function TourProgressText(props) {
|
|
82
82
|
const [local, others] = splitProps(props, [
|
|
83
83
|
'class'
|
|
84
84
|
]);
|
|
85
|
-
return <Tour.ProgressText
|
|
85
|
+
return <Tour.ProgressText class={clsx(Tour_module.progressText, local.class)} {...others} data-slot="tour-progress-text"/>;
|
|
86
86
|
}
|
|
87
87
|
function TourBody(props) {
|
|
88
88
|
const [local, others] = splitProps(props, [
|
|
89
89
|
'class'
|
|
90
90
|
]);
|
|
91
|
-
return <ark.div
|
|
91
|
+
return <ark.div class={clsx(Tour_module.body, local.class)} {...others} data-slot="tour-body"/>;
|
|
92
92
|
}
|
|
93
93
|
function TourCloseTrigger(props) {
|
|
94
94
|
const [local, others] = splitProps(props, [
|
|
95
95
|
'asChild',
|
|
96
96
|
'class'
|
|
97
97
|
]);
|
|
98
|
-
return <Tour.CloseTrigger asChild={local.asChild}
|
|
98
|
+
return <Tour.CloseTrigger asChild={local.asChild} class={clsx(!local.asChild && Tour_module.closeTrigger, local.class)} {...others} data-slot="tour-close-trigger"/>;
|
|
99
99
|
}
|
|
100
100
|
function TourCloseIcon(props) {
|
|
101
101
|
const [local, others] = splitProps(props, [
|
|
@@ -113,14 +113,14 @@ function TourControl(props) {
|
|
|
113
113
|
const [local, others] = splitProps(props, [
|
|
114
114
|
'class'
|
|
115
115
|
]);
|
|
116
|
-
return <Tour.Control
|
|
116
|
+
return <Tour.Control class={clsx(Tour_module.control, local.class)} {...others} data-slot="tour-control"/>;
|
|
117
117
|
}
|
|
118
118
|
function TourActionTrigger(props) {
|
|
119
119
|
const [local, others] = splitProps(props, [
|
|
120
120
|
'asChild',
|
|
121
121
|
'class'
|
|
122
122
|
]);
|
|
123
|
-
return <Tour.ActionTrigger asChild={local.asChild}
|
|
123
|
+
return <Tour.ActionTrigger asChild={local.asChild} class={clsx(!local.asChild && Tour_module.actionTrigger, local.class)} {...others} data-slot="tour-action-trigger"/>;
|
|
124
124
|
}
|
|
125
125
|
const TourActions = Tour.Actions;
|
|
126
126
|
function TourActionList(props) {
|