@moduix/solid 1.1.1 → 2.0.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 +2 -2
- package/dist/components/accordion/Accordion.jsx +1 -1
- package/dist/components/alert/Alert.js +14 -14
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.js +13 -1
- package/dist/components/angle-slider/AngleSlider.jsx +13 -2
- package/dist/components/angle-slider/AngleSlider_module.css +65 -90
- package/dist/components/avatar/Avatar.js +3 -3
- package/dist/components/avatar/Avatar.jsx +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/dist/components/breadcrumbs/Breadcrumbs.js +34 -29
- package/dist/components/breadcrumbs/Breadcrumbs.jsx +12 -11
- package/dist/components/carousel/Carousel_module.css +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.jsx +1 -1
- package/dist/components/highlight/Highlight_module.css +0 -1
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/json-tree-view/JsonTreeView_module.css +9 -1
- package/dist/components/marquee/Marquee_module.css +12 -14
- package/dist/components/menu/Menu.js +11 -20
- package/dist/components/menu/Menu.jsx +6 -9
- package/dist/components/menu/Menu_module.css +1 -1
- package/dist/components/native-select/NativeSelect.d.ts +0 -1
- package/dist/components/native-select/NativeSelect.js +2 -7
- package/dist/components/native-select/NativeSelect.jsx +2 -4
- package/dist/components/native-select/NativeSelect_module.css +7 -7
- package/dist/components/navigation-menu/NavigationMenu.d.ts +1 -0
- package/dist/components/navigation-menu/NavigationMenu.js +2 -1
- package/dist/components/navigation-menu/NavigationMenu.jsx +2 -1
- package/dist/components/navigation-menu/NavigationMenu_module.css +2 -2
- package/dist/components/number-input/NumberInput_module.css +4 -4
- package/dist/components/pagination/Pagination.js +4 -4
- package/dist/components/pagination/Pagination.jsx +4 -4
- package/dist/components/pagination/Pagination_module.css +1 -1
- package/dist/components/password-input/PasswordInput.js +4 -13
- package/dist/components/password-input/PasswordInput.jsx +4 -12
- package/dist/components/password-input/PasswordInput_module.css +11 -3
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -1
- package/dist/components/radio-group/RadioGroup.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup_module.css +1 -4
- package/dist/components/rating-group/RatingGroup.js +10 -10
- package/dist/components/rating-group/RatingGroup.jsx +3 -3
- package/dist/components/rating-group/RatingGroup_module.css +2 -14
- package/dist/components/scroll-area/ScrollArea.d.ts +1 -1
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -1
- package/dist/components/segment-group/SegmentGroup.js +1 -0
- package/dist/components/segment-group/SegmentGroup.jsx +1 -0
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select.module.jsx +1 -1
- package/dist/components/select/Select_module.css +4 -4
- package/dist/components/separator/Separator_module.css +6 -6
- package/dist/components/sidebar/Sidebar.js +46 -52
- package/dist/components/sidebar/Sidebar.jsx +21 -23
- package/dist/components/sidebar/Sidebar_module.css +1 -1
- package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
- package/dist/components/slider/Slider.js +3 -3
- package/dist/components/slider/Slider.jsx +1 -1
- package/dist/components/slider/Slider_module.css +6 -4
- package/dist/components/split-button/SplitButton.js +7 -7
- package/dist/components/split-button/SplitButton.jsx +5 -6
- package/dist/components/split-button/SplitButton_module.css +4 -1
- package/dist/components/steps/Steps_module.css +1 -1
- package/dist/components/swap/Swap.js +6 -6
- package/dist/components/swap/Swap.jsx +2 -2
- package/dist/components/swap/Swap_module.css +0 -3
- package/dist/components/switch/Switch.js +6 -6
- package/dist/components/switch/Switch.jsx +2 -2
- package/dist/components/switch/Switch_module.css +2 -2
- package/dist/components/table/Table_module.css +4 -2
- package/dist/components/tabs/Tabs.js +6 -6
- package/dist/components/tabs/Tabs.jsx +2 -2
- package/dist/components/tabs/Tabs_module.css +2 -2
- package/dist/components/tags-input/TagsInput_module.css +5 -4
- package/dist/components/toast/Toast.module.js +2 -2
- package/dist/components/toast/Toast.module.jsx +2 -2
- package/dist/components/toast/Toast_module.css +4 -6
- package/dist/components/toc/Toc.d.ts +2 -2
- package/dist/components/toc/Toc.js +4 -5
- package/dist/components/toc/Toc.jsx +4 -5
- package/dist/components/toc/Toc_module.css +2 -1
- package/dist/components/toggle/Toggle_module.css +3 -0
- package/dist/components/tooltip/Tooltip_module.css +1 -3
- package/dist/components/tour/Tour_module.css +2 -3
- package/dist/components/tree-view/TreeView_module.css +7 -5
- package/dist/components/typeset/Typeset_module.css +6 -4
- package/dist/styles/animations.css +10 -0
- package/dist/styles/style.css +2 -0
- package/package.json +1 -1
|
@@ -148,9 +148,6 @@ function DrawerContent(props) {
|
|
|
148
148
|
]);
|
|
149
149
|
const rootVariant = useContext(DrawerVariantContext);
|
|
150
150
|
return createComponent(Drawer.Content, mergeProps({
|
|
151
|
-
get ["data-variant"] () {
|
|
152
|
-
return local.variant ?? rootVariant;
|
|
153
|
-
},
|
|
154
151
|
get ["class"] () {
|
|
155
152
|
return clsx(Drawer_module.content, local.class);
|
|
156
153
|
},
|
|
@@ -158,6 +155,9 @@ function DrawerContent(props) {
|
|
|
158
155
|
return local.draggable ?? true;
|
|
159
156
|
}
|
|
160
157
|
}, others, {
|
|
158
|
+
get ["data-variant"] () {
|
|
159
|
+
return local.variant ?? rootVariant;
|
|
160
|
+
},
|
|
161
161
|
"data-slot": "drawer-content"
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
@@ -73,7 +73,7 @@ function DrawerContent(props) {
|
|
|
73
73
|
'variant'
|
|
74
74
|
]);
|
|
75
75
|
const rootVariant = useContext(DrawerVariantContext);
|
|
76
|
-
return <Drawer.Content
|
|
76
|
+
return <Drawer.Content class={clsx(Drawer_module.content, local.class)} draggable={local.draggable ?? true} {...others} data-variant={local.variant ?? rootVariant} data-slot="drawer-content"/>;
|
|
77
77
|
}
|
|
78
78
|
function DrawerGrabber(props) {
|
|
79
79
|
const [local, others] = splitProps(props, [
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
background-color: var(--moduix-highlight-bg, color-mix(in oklab, var(--moduix-color-warning) 40%, var(--moduix-color-accent)));
|
|
7
7
|
color: var(--moduix-highlight-color, var(--moduix-color-foreground));
|
|
8
8
|
box-shadow: var(--moduix-highlight-shadow, none);
|
|
9
|
-
font: inherit;
|
|
10
9
|
font-weight: var(--moduix-highlight-font-weight, var(--moduix-weight-medium));
|
|
11
10
|
-webkit-box-decoration-break: clone;
|
|
12
11
|
box-decoration-break: clone;
|
|
@@ -22,6 +22,6 @@ declare const ImageCropper: typeof ImageCropperRoot & {
|
|
|
22
22
|
Grid: typeof ImageCropperGrid;
|
|
23
23
|
Handle: typeof ImageCropperHandle;
|
|
24
24
|
CropArea: typeof ImageCropperCropArea;
|
|
25
|
-
handles: import("@ark-ui/solid").ImageCropperHandlePosition[];
|
|
25
|
+
handles: import("@ark-ui/solid/image-cropper").ImageCropperHandlePosition[];
|
|
26
26
|
};
|
|
27
27
|
export { ImageCropper, useImageCropper, useImageCropperContext };
|
|
@@ -64,7 +64,15 @@
|
|
|
64
64
|
inset-inline-end: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"]):not([data-disabled]):hover:before {
|
|
69
|
+
background-color: color-mix(in oklab,
|
|
70
|
+
var(--moduix-color-accent) 72%,
|
|
71
|
+
var(--moduix-color-background));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.root-jp1ege :where([data-scope="json-tree-view"][data-part="branch-control"], [data-scope="json-tree-view"][data-part="item"])[data-selected]:before {
|
|
68
76
|
background-color: color-mix(in oklab,
|
|
69
77
|
var(--moduix-color-accent) 72%,
|
|
70
78
|
var(--moduix-color-background));
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
2
|
.root-liPuNO {
|
|
3
|
-
--marquee-edge-color: var(--moduix-color-background);
|
|
4
|
-
--marquee-edge-size: 20%;
|
|
5
|
-
--moduix-marquee-edge-color: var(--marquee-edge-color);
|
|
6
|
-
--moduix-marquee-edge-size: var(--marquee-edge-size);
|
|
7
3
|
box-sizing: border-box;
|
|
8
4
|
width: var(--moduix-marquee-width, 100%);
|
|
9
5
|
height: var(--moduix-marquee-height, auto);
|
|
@@ -54,36 +50,38 @@
|
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
.edge-LzcjhJ {
|
|
53
|
+
--_edge-color: var(--moduix-marquee-edge-color, var(--marquee-edge-color, var(--moduix-color-background)));
|
|
54
|
+
--_edge-size: var(--moduix-marquee-edge-size, var(--marquee-edge-size, 20%));
|
|
57
55
|
z-index: var(--moduix-marquee-edge-z-index, 1);
|
|
58
56
|
pointer-events: none;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
.edge-LzcjhJ[data-side="start"] {
|
|
62
|
-
width: var(--
|
|
63
|
-
background: linear-gradient(to right, var(--
|
|
60
|
+
width: var(--_edge-size);
|
|
61
|
+
background: linear-gradient(to right, var(--_edge-color), transparent);
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
.edge-LzcjhJ[data-side="start"][dir="rtl"] {
|
|
67
|
-
background: linear-gradient(to left, var(--
|
|
65
|
+
background: linear-gradient(to left, var(--_edge-color), transparent);
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
.edge-LzcjhJ[data-side="end"] {
|
|
71
|
-
width: var(--
|
|
72
|
-
background: linear-gradient(to left, var(--
|
|
69
|
+
width: var(--_edge-size);
|
|
70
|
+
background: linear-gradient(to left, var(--_edge-color), transparent);
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
.edge-LzcjhJ[data-side="end"][dir="rtl"] {
|
|
76
|
-
background: linear-gradient(to right, var(--
|
|
74
|
+
background: linear-gradient(to right, var(--_edge-color), transparent);
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
.edge-LzcjhJ[data-side="top"] {
|
|
80
|
-
height: var(--
|
|
81
|
-
background: linear-gradient(to bottom, var(--
|
|
78
|
+
height: var(--_edge-size);
|
|
79
|
+
background: linear-gradient(to bottom, var(--_edge-color), transparent);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
.edge-LzcjhJ[data-side="bottom"] {
|
|
85
|
-
height: var(--
|
|
86
|
-
background: linear-gradient(to top, var(--
|
|
83
|
+
height: var(--_edge-size);
|
|
84
|
+
background: linear-gradient(to top, var(--_edge-color), transparent);
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
@keyframes marquee-x-Su5_G3 {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createComponent, insert, mergeProps, spread, template } from "solid-js/web";
|
|
2
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
3
2
|
import { ark } from "@ark-ui/solid/factory";
|
|
4
3
|
import { Menu, useMenu, useMenuContext, useMenuItemContext } from "@ark-ui/solid/menu";
|
|
5
4
|
import { clsx } from "clsx";
|
|
@@ -71,7 +70,6 @@ function MenuRootProvider(props) {
|
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
function MenuTrigger(props) {
|
|
74
|
-
const focusVisible = useFocusVisible();
|
|
75
73
|
const [local, others] = splitProps(props, [
|
|
76
74
|
'asChild',
|
|
77
75
|
'class'
|
|
@@ -80,9 +78,6 @@ function MenuTrigger(props) {
|
|
|
80
78
|
get asChild () {
|
|
81
79
|
return local.asChild;
|
|
82
80
|
},
|
|
83
|
-
get ["data-focus-visible"] () {
|
|
84
|
-
return focusVisible() ? '' : void 0;
|
|
85
|
-
},
|
|
86
81
|
get ["class"] () {
|
|
87
82
|
return clsx(!local.asChild && Menu_module.trigger, local.class);
|
|
88
83
|
}
|
|
@@ -135,7 +130,6 @@ function MenuIndicator(props) {
|
|
|
135
130
|
}));
|
|
136
131
|
}
|
|
137
132
|
function MenuContextTrigger(props) {
|
|
138
|
-
const focusVisible = useFocusVisible();
|
|
139
133
|
const [local, others] = splitProps(props, [
|
|
140
134
|
'asChild',
|
|
141
135
|
'class'
|
|
@@ -144,9 +138,6 @@ function MenuContextTrigger(props) {
|
|
|
144
138
|
get asChild () {
|
|
145
139
|
return local.asChild;
|
|
146
140
|
},
|
|
147
|
-
get ["data-focus-visible"] () {
|
|
148
|
-
return focusVisible() ? '' : void 0;
|
|
149
|
-
},
|
|
150
141
|
get ["class"] () {
|
|
151
142
|
return clsx(!local.asChild && Menu_module.contextTrigger, local.class);
|
|
152
143
|
}
|
|
@@ -199,12 +190,12 @@ function MenuViewport(props) {
|
|
|
199
190
|
get asChild () {
|
|
200
191
|
return local.asChild;
|
|
201
192
|
},
|
|
202
|
-
"data-scope": "menu",
|
|
203
|
-
"data-part": "viewport",
|
|
204
193
|
get ["class"] () {
|
|
205
194
|
return clsx(Menu_module.viewport, local.class);
|
|
206
195
|
}
|
|
207
196
|
}, others, {
|
|
197
|
+
"data-scope": "menu",
|
|
198
|
+
"data-part": "viewport",
|
|
208
199
|
"data-slot": "menu-viewport"
|
|
209
200
|
}));
|
|
210
201
|
}
|
|
@@ -243,13 +234,13 @@ function MenuItem(props) {
|
|
|
243
234
|
'tone'
|
|
244
235
|
]);
|
|
245
236
|
return createComponent(Menu.Item, mergeProps({
|
|
246
|
-
get ["data-tone"] () {
|
|
247
|
-
return local.tone ?? 'default';
|
|
248
|
-
},
|
|
249
237
|
get ["class"] () {
|
|
250
238
|
return clsx(Menu_module.item, local.class);
|
|
251
239
|
}
|
|
252
240
|
}, others, {
|
|
241
|
+
get ["data-tone"] () {
|
|
242
|
+
return local.tone ?? 'default';
|
|
243
|
+
},
|
|
253
244
|
"data-slot": "menu-item"
|
|
254
245
|
}));
|
|
255
246
|
}
|
|
@@ -346,13 +337,13 @@ function MenuRadioItem(props) {
|
|
|
346
337
|
'indicator'
|
|
347
338
|
]);
|
|
348
339
|
return createComponent(Menu.RadioItem, mergeProps({
|
|
349
|
-
get ["data-indicator-position"] () {
|
|
350
|
-
return local.indicator ?? 'start';
|
|
351
|
-
},
|
|
352
340
|
get ["class"] () {
|
|
353
341
|
return clsx(Menu_module.radioItem, local.class);
|
|
354
342
|
}
|
|
355
343
|
}, others, {
|
|
344
|
+
get ["data-indicator-position"] () {
|
|
345
|
+
return local.indicator ?? 'start';
|
|
346
|
+
},
|
|
356
347
|
"data-slot": "menu-radio-item"
|
|
357
348
|
}));
|
|
358
349
|
}
|
|
@@ -362,13 +353,13 @@ function MenuCheckboxItem(props) {
|
|
|
362
353
|
'indicator'
|
|
363
354
|
]);
|
|
364
355
|
return createComponent(Menu.CheckboxItem, mergeProps({
|
|
365
|
-
get ["data-indicator-position"] () {
|
|
366
|
-
return local.indicator ?? 'start';
|
|
367
|
-
},
|
|
368
356
|
get ["class"] () {
|
|
369
357
|
return clsx(Menu_module.checkboxItem, local.class);
|
|
370
358
|
}
|
|
371
359
|
}, others, {
|
|
360
|
+
get ["data-indicator-position"] () {
|
|
361
|
+
return local.indicator ?? 'start';
|
|
362
|
+
},
|
|
372
363
|
"data-slot": "menu-checkbox-item"
|
|
373
364
|
}));
|
|
374
365
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
2
1
|
import { ark } from "@ark-ui/solid/factory";
|
|
3
2
|
import { Menu, useMenu, useMenuContext, useMenuItemContext } from "@ark-ui/solid/menu";
|
|
4
3
|
import { clsx } from "clsx";
|
|
@@ -35,12 +34,11 @@ function MenuRootProvider(props) {
|
|
|
35
34
|
</OverlayPortalProvider>;
|
|
36
35
|
}
|
|
37
36
|
function MenuTrigger(props) {
|
|
38
|
-
const focusVisible = useFocusVisible();
|
|
39
37
|
const [local, others] = splitProps(props, [
|
|
40
38
|
'asChild',
|
|
41
39
|
'class'
|
|
42
40
|
]);
|
|
43
|
-
return <Menu.Trigger asChild={local.asChild}
|
|
41
|
+
return <Menu.Trigger asChild={local.asChild} class={clsx(!local.asChild && Menu_module.trigger, local.class)} {...others} data-slot="menu-trigger"/>;
|
|
44
42
|
}
|
|
45
43
|
function MenuTriggerIcon(props) {
|
|
46
44
|
const [local, others] = splitProps(props, [
|
|
@@ -63,12 +61,11 @@ function MenuIndicator(props) {
|
|
|
63
61
|
</Menu.Indicator>;
|
|
64
62
|
}
|
|
65
63
|
function MenuContextTrigger(props) {
|
|
66
|
-
const focusVisible = useFocusVisible();
|
|
67
64
|
const [local, others] = splitProps(props, [
|
|
68
65
|
'asChild',
|
|
69
66
|
'class'
|
|
70
67
|
]);
|
|
71
|
-
return <Menu.ContextTrigger asChild={local.asChild}
|
|
68
|
+
return <Menu.ContextTrigger asChild={local.asChild} class={clsx(!local.asChild && Menu_module.contextTrigger, local.class)} {...others} data-slot="menu-context-trigger"/>;
|
|
72
69
|
}
|
|
73
70
|
function MenuPositioner(props) {
|
|
74
71
|
const [local, others] = splitProps(props, [
|
|
@@ -93,7 +90,7 @@ function MenuViewport(props) {
|
|
|
93
90
|
'asChild',
|
|
94
91
|
'class'
|
|
95
92
|
]);
|
|
96
|
-
return <ark.div asChild={local.asChild}
|
|
93
|
+
return <ark.div asChild={local.asChild} class={clsx(Menu_module.viewport, local.class)} {...others} data-scope="menu" data-part="viewport" data-slot="menu-viewport"/>;
|
|
97
94
|
}
|
|
98
95
|
function MenuArrow(props) {
|
|
99
96
|
const [local, others] = splitProps(props, [
|
|
@@ -116,7 +113,7 @@ function MenuItem(props) {
|
|
|
116
113
|
'class',
|
|
117
114
|
'tone'
|
|
118
115
|
]);
|
|
119
|
-
return <Menu.Item
|
|
116
|
+
return <Menu.Item class={clsx(Menu_module.item, local.class)} {...others} data-tone={local.tone ?? 'default'} data-slot="menu-item"/>;
|
|
120
117
|
}
|
|
121
118
|
function MenuTriggerItem(props) {
|
|
122
119
|
const [local, others] = splitProps(props, [
|
|
@@ -166,14 +163,14 @@ function MenuRadioItem(props) {
|
|
|
166
163
|
'class',
|
|
167
164
|
'indicator'
|
|
168
165
|
]);
|
|
169
|
-
return <Menu.RadioItem
|
|
166
|
+
return <Menu.RadioItem class={clsx(Menu_module.radioItem, local.class)} {...others} data-indicator-position={local.indicator ?? 'start'} data-slot="menu-radio-item"/>;
|
|
170
167
|
}
|
|
171
168
|
function MenuCheckboxItem(props) {
|
|
172
169
|
const [local, others] = splitProps(props, [
|
|
173
170
|
'class',
|
|
174
171
|
'indicator'
|
|
175
172
|
]);
|
|
176
|
-
return <Menu.CheckboxItem
|
|
173
|
+
return <Menu.CheckboxItem class={clsx(Menu_module.checkboxItem, local.class)} {...others} data-indicator-position={local.indicator ?? 'start'} data-slot="menu-checkbox-item"/>;
|
|
177
174
|
}
|
|
178
175
|
function MenuItemIndicator(props) {
|
|
179
176
|
const [local, others] = splitProps(props, [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
background-color: var(--moduix-menu-trigger-bg-active, var(--moduix-menu-trigger-bg-hover));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV):focus
|
|
40
|
+
:is(.trigger-GnJcCa, .contextTrigger-jyrQRV):focus-visible {
|
|
41
41
|
outline: var(--moduix-menu-focus-ring-width, var(--moduix-menu-trigger-border-width, var(--moduix-border-width-sm)))
|
|
42
42
|
solid var(--moduix-menu-focus-ring-color, var(--moduix-color-ring));
|
|
43
43
|
outline-offset: calc(var(--moduix-menu-focus-ring-width, var(--moduix-menu-trigger-border-width, var(--moduix-border-width-sm))) *
|
|
@@ -2,7 +2,6 @@ import type { FieldSelectProps } from '@ark-ui/solid/field';
|
|
|
2
2
|
import type { JSX } from 'solid-js';
|
|
3
3
|
type NativeSelectRootProps = FieldSelectProps & {
|
|
4
4
|
controlProps?: JSX.HTMLAttributes<HTMLSpanElement>;
|
|
5
|
-
defaultValue?: FieldSelectProps['value'];
|
|
6
5
|
};
|
|
7
6
|
declare function NativeSelectRoot(props: NativeSelectRootProps): JSX.Element;
|
|
8
7
|
declare const NativeSelect: typeof NativeSelectRoot & {
|
|
@@ -5,13 +5,11 @@ import { splitProps } from "solid-js";
|
|
|
5
5
|
import { ChevronDownIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
6
|
import NativeSelect_module from "./NativeSelect.module.js";
|
|
7
7
|
var _tmpl$ = /*#__PURE__*/ template("<span><span aria-hidden=true data-scope=native-select data-part=indicator data-slot=native-select-indicator>");
|
|
8
|
-
const NativeFieldSelect = Field.Select;
|
|
9
8
|
function NativeSelectRoot(props) {
|
|
10
9
|
const [local, others] = splitProps(props, [
|
|
11
10
|
'asChild',
|
|
12
11
|
'class',
|
|
13
|
-
'controlProps'
|
|
14
|
-
'defaultValue'
|
|
12
|
+
'controlProps'
|
|
15
13
|
]);
|
|
16
14
|
return (()=>{
|
|
17
15
|
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
@@ -23,7 +21,7 @@ function NativeSelectRoot(props) {
|
|
|
23
21
|
return clsx(NativeSelect_module.control, local.controlProps?.class);
|
|
24
22
|
}
|
|
25
23
|
}), false, true);
|
|
26
|
-
insert(_el$, createComponent(
|
|
24
|
+
insert(_el$, createComponent(Field.Select, mergeProps({
|
|
27
25
|
get asChild () {
|
|
28
26
|
return local.asChild;
|
|
29
27
|
}
|
|
@@ -33,9 +31,6 @@ function NativeSelectRoot(props) {
|
|
|
33
31
|
"data-slot": "native-select-root",
|
|
34
32
|
get ["class"] () {
|
|
35
33
|
return clsx(NativeSelect_module.root, local.class);
|
|
36
|
-
},
|
|
37
|
-
get ["prop:defaultValue"] () {
|
|
38
|
-
return local.defaultValue;
|
|
39
34
|
}
|
|
40
35
|
})), _el$2);
|
|
41
36
|
insert(_el$2, createComponent(ChevronDownIcon, {}));
|
|
@@ -3,16 +3,14 @@ import { clsx } from "clsx";
|
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
import { ChevronDownIcon } from "../../internal/icons/ui/Icons.jsx";
|
|
5
5
|
import NativeSelect_module from "./NativeSelect.module.jsx";
|
|
6
|
-
const NativeFieldSelect = Field.Select;
|
|
7
6
|
function NativeSelectRoot(props) {
|
|
8
7
|
const [local, others] = splitProps(props, [
|
|
9
8
|
'asChild',
|
|
10
9
|
'class',
|
|
11
|
-
'controlProps'
|
|
12
|
-
'defaultValue'
|
|
10
|
+
'controlProps'
|
|
13
11
|
]);
|
|
14
12
|
return <span {...local.controlProps} data-scope="native-select" data-part="control" data-slot="native-select-control" class={clsx(NativeSelect_module.control, local.controlProps?.class)}>
|
|
15
|
-
<
|
|
13
|
+
<Field.Select asChild={local.asChild} {...others} data-scope="field" data-part="select" data-slot="native-select-root" class={clsx(NativeSelect_module.root, local.class)}/>
|
|
16
14
|
<span aria-hidden="true" data-scope="native-select" data-part="indicator" data-slot="native-select-indicator" class={NativeSelect_module.indicator}>
|
|
17
15
|
<ChevronDownIcon/>
|
|
18
16
|
</span>
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
outline-color var(--moduix-select-transition, var(--moduix-transition-default)),
|
|
31
31
|
opacity var(--moduix-select-transition, var(--moduix-transition-default));
|
|
32
32
|
margin: 0;
|
|
33
|
-
padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
33
|
+
padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
34
34
|
padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
|
|
35
|
-
var(--moduix-select-action-size, var(--moduix-
|
|
36
|
-
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3)));
|
|
35
|
+
var(--moduix-select-action-size, var(--moduix-size-xs)) +
|
|
36
|
+
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5)));
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.root-ZCXVuV:focus-visible {
|
|
@@ -54,21 +54,21 @@
|
|
|
54
54
|
.root-ZCXVuV:is([multiple], [size]:not([size="0"], [size="1"])) {
|
|
55
55
|
height: auto;
|
|
56
56
|
padding-block: var(--moduix-spacing-2);
|
|
57
|
-
padding-inline: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
57
|
+
padding-inline: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
58
58
|
appearance: auto;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@media (forced-colors: active) {
|
|
62
62
|
.root-ZCXVuV {
|
|
63
63
|
appearance: auto;
|
|
64
|
-
padding-inline-end: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
64
|
+
padding-inline-end: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3-5));
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.indicator-oW5rXf {
|
|
69
69
|
top: 50%;
|
|
70
|
-
width: var(--moduix-select-action-size, var(--moduix-
|
|
71
|
-
height: var(--moduix-select-action-size, var(--moduix-
|
|
70
|
+
width: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
71
|
+
height: var(--moduix-select-action-size, var(--moduix-size-xs));
|
|
72
72
|
border-radius: var(--moduix-select-action-radius, var(--moduix-radius-sm));
|
|
73
73
|
background: var(--moduix-select-action-bg, transparent);
|
|
74
74
|
color: var(--moduix-select-icon-color, var(--moduix-color-muted-foreground));
|
|
@@ -26,6 +26,7 @@ declare const NavigationMenu: typeof NavigationMenuRoot & {
|
|
|
26
26
|
Arrow: typeof NavigationMenuArrow;
|
|
27
27
|
ViewportPositioner: typeof NavigationMenuViewportPositioner;
|
|
28
28
|
Viewport: typeof NavigationMenuViewport;
|
|
29
|
+
useNavigationMenu: (props?: import("@ark-ui/solid/navigation-menu").UseNavigationMenuProps) => import("@ark-ui/solid/navigation-menu").UseNavigationMenuReturn;
|
|
29
30
|
};
|
|
30
31
|
export { useNavigationMenu, useNavigationMenuContext };
|
|
31
32
|
export { NavigationMenu };
|
|
@@ -168,6 +168,7 @@ const NavigationMenu_NavigationMenu = Object.assign(NavigationMenuRoot, {
|
|
|
168
168
|
ItemIndicator: NavigationMenuItemIndicator,
|
|
169
169
|
Arrow: NavigationMenuArrow,
|
|
170
170
|
ViewportPositioner: NavigationMenuViewportPositioner,
|
|
171
|
-
Viewport: NavigationMenuViewport
|
|
171
|
+
Viewport: NavigationMenuViewport,
|
|
172
|
+
useNavigationMenu: useNavigationMenu
|
|
172
173
|
});
|
|
173
174
|
export { NavigationMenu_NavigationMenu as NavigationMenu, useNavigationMenu, useNavigationMenuContext };
|
|
@@ -89,6 +89,7 @@ const NavigationMenu_NavigationMenu = Object.assign(NavigationMenuRoot, {
|
|
|
89
89
|
ItemIndicator: NavigationMenuItemIndicator,
|
|
90
90
|
Arrow: NavigationMenuArrow,
|
|
91
91
|
ViewportPositioner: NavigationMenuViewportPositioner,
|
|
92
|
-
Viewport: NavigationMenuViewport
|
|
92
|
+
Viewport: NavigationMenuViewport,
|
|
93
|
+
useNavigationMenu: useNavigationMenu
|
|
93
94
|
});
|
|
94
95
|
export { NavigationMenu_NavigationMenu as NavigationMenu, useNavigationMenu, useNavigationMenuContext };
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
@keyframes navigation-menu-viewport-in-GyosQZ {
|
|
371
371
|
from {
|
|
372
372
|
opacity: 0;
|
|
373
|
-
transform:
|
|
373
|
+
transform: scale(var(--moduix-scale-popup));
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
to {
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
|
|
388
388
|
to {
|
|
389
389
|
opacity: 0;
|
|
390
|
-
transform:
|
|
390
|
+
transform: scale(var(--moduix-scale-popup));
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
background-color: var(--moduix-number-input-button-bg-active, var(--moduix-number-input-button-bg-hover, var(--moduix-color-accent)));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
:is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr):focus-visible
|
|
77
|
+
:is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr):focus-visible {
|
|
78
78
|
outline: var(--_number-input-focus-ring-width) solid
|
|
79
79
|
var(--moduix-number-input-focus-ring-color, var(--moduix-color-ring));
|
|
80
80
|
outline-offset: calc(var(--_number-input-focus-ring-width) * -1);
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
pointer-events: none;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
.root-J5l339[data-invalid] :is(.decrementTrigger-gr_J6_, .incrementTrigger-AZRSzr) {
|
|
89
89
|
border-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
margin: 0;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.input-MggWIT:focus-visible
|
|
140
|
+
.input-MggWIT:focus-visible {
|
|
141
141
|
outline-color: var(--moduix-number-input-focus-ring-color, var(--moduix-color-ring));
|
|
142
142
|
z-index: 1;
|
|
143
143
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
border-bottom-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
:is(.input-MggWIT[data-invalid], .root-J5l339[data-invalid] .input-MggWIT):focus-visible
|
|
150
|
+
:is(.input-MggWIT[data-invalid], .root-J5l339[data-invalid] .input-MggWIT):focus-visible {
|
|
151
151
|
outline-color: var(--moduix-number-input-border-color-invalid, var(--moduix-color-destructive));
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -109,7 +109,7 @@ function PaginationPrevTrigger(props) {
|
|
|
109
109
|
return local.asChild;
|
|
110
110
|
},
|
|
111
111
|
get ["class"] () {
|
|
112
|
-
return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
|
|
112
|
+
return clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class);
|
|
113
113
|
}
|
|
114
114
|
}, others, {
|
|
115
115
|
"data-slot": "pagination-prev-trigger",
|
|
@@ -130,7 +130,7 @@ function PaginationNextTrigger(props) {
|
|
|
130
130
|
return local.asChild;
|
|
131
131
|
},
|
|
132
132
|
get ["class"] () {
|
|
133
|
-
return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
|
|
133
|
+
return clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class);
|
|
134
134
|
}
|
|
135
135
|
}, others, {
|
|
136
136
|
"data-slot": "pagination-next-trigger",
|
|
@@ -151,7 +151,7 @@ function PaginationFirstTrigger(props) {
|
|
|
151
151
|
return local.asChild;
|
|
152
152
|
},
|
|
153
153
|
get ["class"] () {
|
|
154
|
-
return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
|
|
154
|
+
return clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class);
|
|
155
155
|
}
|
|
156
156
|
}, others, {
|
|
157
157
|
"data-slot": "pagination-first-trigger",
|
|
@@ -174,7 +174,7 @@ function PaginationLastTrigger(props) {
|
|
|
174
174
|
return local.asChild;
|
|
175
175
|
},
|
|
176
176
|
get ["class"] () {
|
|
177
|
-
return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
|
|
177
|
+
return clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class);
|
|
178
178
|
}
|
|
179
179
|
}, others, {
|
|
180
180
|
"data-slot": "pagination-last-trigger",
|
|
@@ -54,7 +54,7 @@ function PaginationPrevTrigger(props) {
|
|
|
54
54
|
'class'
|
|
55
55
|
]);
|
|
56
56
|
const resolvedChildren = children(()=>local.children);
|
|
57
|
-
return <Pagination.PrevTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-prev-trigger">
|
|
57
|
+
return <Pagination.PrevTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-prev-trigger">
|
|
58
58
|
{resolvedChildren() ?? (!local.asChild && <ChevronLeftIcon/>)}
|
|
59
59
|
</Pagination.PrevTrigger>;
|
|
60
60
|
}
|
|
@@ -65,7 +65,7 @@ function PaginationNextTrigger(props) {
|
|
|
65
65
|
'class'
|
|
66
66
|
]);
|
|
67
67
|
const resolvedChildren = children(()=>local.children);
|
|
68
|
-
return <Pagination.NextTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-next-trigger">
|
|
68
|
+
return <Pagination.NextTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-next-trigger">
|
|
69
69
|
{resolvedChildren() ?? (!local.asChild && <ChevronRightIcon/>)}
|
|
70
70
|
</Pagination.NextTrigger>;
|
|
71
71
|
}
|
|
@@ -76,7 +76,7 @@ function PaginationFirstTrigger(props) {
|
|
|
76
76
|
'class'
|
|
77
77
|
]);
|
|
78
78
|
const resolvedChildren = children(()=>local.children);
|
|
79
|
-
return <Pagination.FirstTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-first-trigger">
|
|
79
|
+
return <Pagination.FirstTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-first-trigger">
|
|
80
80
|
{resolvedChildren() ?? (!local.asChild && <EdgeIcon side="left"/>)}
|
|
81
81
|
</Pagination.FirstTrigger>;
|
|
82
82
|
}
|
|
@@ -87,7 +87,7 @@ function PaginationLastTrigger(props) {
|
|
|
87
87
|
'class'
|
|
88
88
|
]);
|
|
89
89
|
const resolvedChildren = children(()=>local.children);
|
|
90
|
-
return <Pagination.LastTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-last-trigger">
|
|
90
|
+
return <Pagination.LastTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, (null == local.children || false === local.children) && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-last-trigger">
|
|
91
91
|
{resolvedChildren() ?? (!local.asChild && <EdgeIcon side="right"/>)}
|
|
92
92
|
</Pagination.LastTrigger>;
|
|
93
93
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createComponent, mergeProps } from "solid-js/web";
|
|
2
2
|
import { PasswordInput, usePasswordInput, usePasswordInputContext } from "@ark-ui/solid/password-input";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
|
-
import { children,
|
|
4
|
+
import { children, splitProps } from "solid-js";
|
|
5
5
|
import { EyeClosedIcon, EyeIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
6
|
import PasswordInput_module from "./PasswordInput.module.js";
|
|
7
7
|
function PasswordInputRoot(props) {
|
|
@@ -56,27 +56,18 @@ function PasswordInputInput(props) {
|
|
|
56
56
|
const [local, others] = splitProps(props, [
|
|
57
57
|
'asChild',
|
|
58
58
|
'class',
|
|
59
|
-
'defaultValue'
|
|
60
|
-
'ref'
|
|
59
|
+
'defaultValue'
|
|
61
60
|
]);
|
|
62
|
-
let inputRef;
|
|
63
|
-
createEffect(()=>{
|
|
64
|
-
if (inputRef) inputRef.defaultValue = String(local.defaultValue ?? '');
|
|
65
|
-
});
|
|
66
61
|
return createComponent(PasswordInput.Input, mergeProps({
|
|
67
62
|
get asChild () {
|
|
68
63
|
return local.asChild;
|
|
69
64
|
}
|
|
70
|
-
}, others, ()=>
|
|
65
|
+
}, others, ()=>({
|
|
71
66
|
'prop:defaultValue': local.defaultValue
|
|
72
|
-
}
|
|
67
|
+
}), {
|
|
73
68
|
"data-slot": "password-input-input",
|
|
74
69
|
get ["class"] () {
|
|
75
70
|
return clsx(PasswordInput_module.input, local.class);
|
|
76
|
-
},
|
|
77
|
-
ref: (element)=>{
|
|
78
|
-
inputRef = element;
|
|
79
|
-
if ('function' == typeof local.ref) local.ref(element);
|
|
80
71
|
}
|
|
81
72
|
}));
|
|
82
73
|
}
|