@moduix/solid-tailwind 1.1.0 → 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 +15 -15
- package/dist/components/alert/Alert.jsx +7 -7
- package/dist/components/angle-slider/AngleSlider.js +15 -8
- package/dist/components/angle-slider/AngleSlider.jsx +13 -6
- package/dist/components/avatar/Avatar.js +3 -3
- package/dist/components/avatar/Avatar.jsx +2 -2
- 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.js +3 -3
- package/dist/components/carousel/Carousel.jsx +3 -3
- package/dist/components/command-palette/CommandPalette.js +1 -1
- package/dist/components/command-palette/CommandPalette.jsx +1 -1
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.jsx +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.jsx +1 -1
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/json-tree-view/JsonTreeView.js +3 -2
- package/dist/components/json-tree-view/JsonTreeView.jsx +3 -2
- package/dist/components/menu/Menu.d.ts +3 -1
- package/dist/components/menu/Menu.js +18 -25
- package/dist/components/menu/Menu.jsx +14 -15
- 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/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/number-input/NumberInput.js +3 -3
- package/dist/components/number-input/NumberInput.jsx +3 -3
- package/dist/components/pagination/Pagination.js +6 -6
- package/dist/components/pagination/Pagination.jsx +6 -6
- package/dist/components/password-input/PasswordInput.js +6 -15
- package/dist/components/password-input/PasswordInput.jsx +5 -13
- package/dist/components/pin-input/PinInput.js +2 -2
- package/dist/components/pin-input/PinInput.jsx +2 -2
- package/dist/components/popover/Popover.js +6 -6
- package/dist/components/popover/Popover.jsx +6 -6
- package/dist/components/progress-circular/ProgressCircular.js +3 -3
- package/dist/components/progress-circular/ProgressCircular.jsx +3 -3
- package/dist/components/qr-code/QrCode.js +1 -1
- package/dist/components/qr-code/QrCode.jsx +1 -1
- package/dist/components/radio-group/RadioGroup.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.js +1 -1
- package/dist/components/radio-group/RadioGroup.jsx +1 -1
- package/dist/components/rating-group/RatingGroup.js +11 -11
- package/dist/components/rating-group/RatingGroup.jsx +4 -4
- package/dist/components/scroll-area/ScrollArea.d.ts +1 -1
- package/dist/components/scroll-area/ScrollArea.js +2 -2
- package/dist/components/scroll-area/ScrollArea.jsx +2 -2
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -1
- package/dist/components/segment-group/SegmentGroup.js +2 -1
- package/dist/components/segment-group/SegmentGroup.jsx +2 -1
- package/dist/components/select/Select.js +6 -6
- package/dist/components/select/Select.jsx +7 -8
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.jsx +1 -1
- package/dist/components/sidebar/Sidebar.js +50 -56
- package/dist/components/sidebar/Sidebar.jsx +25 -27
- package/dist/components/signature-pad/SignaturePad.d.ts +1 -1
- package/dist/components/signature-pad/SignaturePad.js +1 -1
- package/dist/components/signature-pad/SignaturePad.jsx +1 -1
- package/dist/components/slider/Slider.js +5 -5
- package/dist/components/slider/Slider.jsx +3 -3
- package/dist/components/split-button/SplitButton.js +12 -11
- package/dist/components/split-button/SplitButton.jsx +10 -10
- package/dist/components/splitter/Splitter.js +2 -2
- package/dist/components/splitter/Splitter.jsx +2 -2
- package/dist/components/steps/Steps.js +2 -2
- package/dist/components/steps/Steps.jsx +2 -2
- package/dist/components/swap/Swap.js +9 -9
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +7 -7
- package/dist/components/switch/Switch.jsx +3 -3
- package/dist/components/table/Table.js +3 -3
- package/dist/components/table/Table.jsx +3 -3
- package/dist/components/tabs/Tabs.js +7 -7
- package/dist/components/tabs/Tabs.jsx +3 -3
- package/dist/components/tag/Tag.js +1 -1
- package/dist/components/tag/Tag.jsx +1 -1
- package/dist/components/tags-input/TagsInput.js +3 -3
- package/dist/components/tags-input/TagsInput.jsx +3 -3
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.jsx +1 -1
- package/dist/components/timer/Timer.js +1 -1
- package/dist/components/timer/Timer.jsx +1 -1
- package/dist/components/toast/Toast.js +2 -2
- package/dist/components/toast/Toast.jsx +2 -2
- package/dist/components/toc/Toc.d.ts +2 -2
- package/dist/components/toc/Toc.js +5 -6
- package/dist/components/toc/Toc.jsx +5 -6
- package/dist/components/toggle/Toggle.d.ts +5 -1
- package/dist/components/toggle/Toggle.js +2 -2
- package/dist/components/toggle/Toggle.jsx +2 -2
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -25
- package/dist/components/toggle-group/ToggleGroup.jsx +4 -25
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tooltip/Tooltip.jsx +2 -2
- package/dist/components/tour/Tour.js +1 -1
- package/dist/components/tour/Tour.jsx +1 -1
- package/dist/components/tree-view/TreeView.js +4 -2
- package/dist/components/tree-view/TreeView.jsx +4 -2
- 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 +10 -11
|
@@ -15,13 +15,13 @@ function RatingGroupRoot(props) {
|
|
|
15
15
|
get asChild () {
|
|
16
16
|
return local.asChild;
|
|
17
17
|
},
|
|
18
|
-
get ["data-size"] () {
|
|
19
|
-
return local.size ?? 'md';
|
|
20
|
-
},
|
|
21
18
|
get ["class"] () {
|
|
22
19
|
return cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', local.class);
|
|
23
20
|
}
|
|
24
21
|
}, others, {
|
|
22
|
+
get ["data-size"] () {
|
|
23
|
+
return local.size ?? 'md';
|
|
24
|
+
},
|
|
25
25
|
"data-slot": "rating-group-root",
|
|
26
26
|
get children () {
|
|
27
27
|
return local.children;
|
|
@@ -39,13 +39,13 @@ function RatingGroupRootProvider(props) {
|
|
|
39
39
|
get asChild () {
|
|
40
40
|
return local.asChild;
|
|
41
41
|
},
|
|
42
|
-
get ["data-size"] () {
|
|
43
|
-
return local.size ?? 'md';
|
|
44
|
-
},
|
|
45
42
|
get ["class"] () {
|
|
46
43
|
return cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', local.class);
|
|
47
44
|
}
|
|
48
45
|
}, others, {
|
|
46
|
+
get ["data-size"] () {
|
|
47
|
+
return local.size ?? 'md';
|
|
48
|
+
},
|
|
49
49
|
"data-slot": "rating-group-root-provider",
|
|
50
50
|
get children () {
|
|
51
51
|
return local.children;
|
|
@@ -82,7 +82,7 @@ function RatingGroupItem(props) {
|
|
|
82
82
|
]);
|
|
83
83
|
return createComponent(RatingGroup.Item, mergeProps({
|
|
84
84
|
get ["class"] () {
|
|
85
|
-
return cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out
|
|
85
|
+
return cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-ring data-disabled:pointer-events-none data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none', local.class);
|
|
86
86
|
}
|
|
87
87
|
}, others, {
|
|
88
88
|
"data-slot": "rating-group-item"
|
|
@@ -98,16 +98,16 @@ function RatingGroupItemIndicator(props) {
|
|
|
98
98
|
return (()=>{
|
|
99
99
|
var _el$ = _tmpl$();
|
|
100
100
|
spread(_el$, mergeProps({
|
|
101
|
+
get ["class"] () {
|
|
102
|
+
return cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out motion-reduce:[&>svg]:transition-none', local.class);
|
|
103
|
+
}
|
|
104
|
+
}, others, {
|
|
101
105
|
get ["data-half"] () {
|
|
102
106
|
return item().half ? '' : void 0;
|
|
103
107
|
},
|
|
104
108
|
get ["data-highlighted"] () {
|
|
105
109
|
return item().highlighted ? '' : void 0;
|
|
106
110
|
},
|
|
107
|
-
get ["class"] () {
|
|
108
|
-
return cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out', local.class);
|
|
109
|
-
}
|
|
110
|
-
}, others, {
|
|
111
111
|
"data-slot": "rating-group-item-indicator"
|
|
112
112
|
}), false, true);
|
|
113
113
|
insert(_el$, ()=>resolvedChildren() ?? [
|
|
@@ -9,7 +9,7 @@ function RatingGroupRoot(props) {
|
|
|
9
9
|
'class',
|
|
10
10
|
'size'
|
|
11
11
|
]);
|
|
12
|
-
return <RatingGroup.Root asChild={local.asChild}
|
|
12
|
+
return <RatingGroup.Root asChild={local.asChild} class={cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', local.class)} {...others} data-size={local.size ?? 'md'} data-slot="rating-group-root">
|
|
13
13
|
{local.children}
|
|
14
14
|
</RatingGroup.Root>;
|
|
15
15
|
}
|
|
@@ -20,7 +20,7 @@ function RatingGroupRootProvider(props) {
|
|
|
20
20
|
'class',
|
|
21
21
|
'size'
|
|
22
22
|
]);
|
|
23
|
-
return <RatingGroup.RootProvider asChild={local.asChild}
|
|
23
|
+
return <RatingGroup.RootProvider asChild={local.asChild} class={cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', local.class)} {...others} data-size={local.size ?? 'md'} data-slot="rating-group-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</RatingGroup.RootProvider>;
|
|
26
26
|
}
|
|
@@ -40,7 +40,7 @@ function RatingGroupItem(props) {
|
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
41
41
|
'class'
|
|
42
42
|
]);
|
|
43
|
-
return <RatingGroup.Item class={cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out
|
|
43
|
+
return <RatingGroup.Item class={cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 focus-visible:outline-ring data-disabled:pointer-events-none data-disabled:cursor-default data-readonly:cursor-default motion-reduce:transition-none', local.class)} {...others} data-slot="rating-group-item"/>;
|
|
44
44
|
}
|
|
45
45
|
function RatingGroupItemIndicator(props) {
|
|
46
46
|
const [local, others] = splitProps(props, [
|
|
@@ -49,7 +49,7 @@ function RatingGroupItemIndicator(props) {
|
|
|
49
49
|
]);
|
|
50
50
|
const resolvedChildren = children(()=>local.children);
|
|
51
51
|
const item = useRatingGroupItemContext();
|
|
52
|
-
return <span
|
|
52
|
+
return <span class={cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out motion-reduce:[&>svg]:transition-none', local.class)} {...others} data-half={item().half ? '' : void 0} data-highlighted={item().highlighted ? '' : void 0} data-slot="rating-group-item-indicator">
|
|
53
53
|
{resolvedChildren() ?? <>
|
|
54
54
|
<RatingStarIcon data-slot="rating-group-item-indicator-bg" class="absolute inset-0 size-full flex-none fill-transparent stroke-current text-muted-foreground"/>
|
|
55
55
|
<RatingStarIcon data-slot="rating-group-item-indicator-fg" class={cn('absolute inset-0 size-full flex-none fill-current stroke-current text-primary [clip-path:inset(0_0_0_0)]', item().half && '[clip-path:inset(0_50%_0_0)] rtl:[clip-path:inset(0_0_0_50%)]', !item().highlighted && '[clip-path:inset(0_100%_0_0)]')}/>
|
|
@@ -24,7 +24,7 @@ declare const ScrollArea: typeof ScrollAreaRoot & {
|
|
|
24
24
|
Scrollbar: typeof ScrollAreaScrollbar;
|
|
25
25
|
Thumb: typeof ScrollAreaThumb;
|
|
26
26
|
Corner: typeof ScrollAreaCorner;
|
|
27
|
-
useScrollArea: (props?: import("@ark-ui/solid").UseScrollAreaProps) => import("@ark-ui/solid").UseScrollAreaReturn;
|
|
27
|
+
useScrollArea: (props?: import("@ark-ui/solid/scroll-area").UseScrollAreaProps) => import("@ark-ui/solid/scroll-area").UseScrollAreaReturn;
|
|
28
28
|
};
|
|
29
29
|
export { ScrollArea, useScrollArea, useScrollAreaContext };
|
|
30
30
|
export type { ModuixScrollAreaRootProps, ModuixScrollAreaRootProviderProps };
|
|
@@ -47,7 +47,7 @@ function ScrollAreaViewport(props) {
|
|
|
47
47
|
return createComponent(ScrollArea.Viewport, mergeProps(others, {
|
|
48
48
|
"data-slot": "scroll-area-viewport",
|
|
49
49
|
get ["class"] () {
|
|
50
|
-
return cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(
|
|
50
|
+
return cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:not-forced-colors:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(var(--spacing-10),var(--scroll-area-overflow-y-start,0px)),black_calc(100%_-_min(var(--spacing-10),var(--scroll-area-overflow-y-end,0px))),transparent_100%)] group-data-[fade]/scroll-area:not-forced-colors:mask-no-repeat focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring forced-colors:focus-visible:outline-[Highlight] [&::-webkit-scrollbar]:hidden', local.class);
|
|
51
51
|
}
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
@@ -69,7 +69,7 @@ function ScrollAreaScrollbar(props) {
|
|
|
69
69
|
return createComponent(ScrollArea.Scrollbar, mergeProps(others, {
|
|
70
70
|
"data-slot": "scroll-area-scrollbar",
|
|
71
71
|
get ["class"] () {
|
|
72
|
-
return cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-
|
|
72
|
+
return cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-[200ms,150ms,150ms] ease-in-out select-none group-data-[variant=always]/scroll-area:pointer-events-auto group-data-[variant=always]/scroll-area:opacity-100 before:absolute before:content-[''] data-dragging:pointer-events-auto data-hover:pointer-events-auto data-hover:opacity-100 data-scrolling:pointer-events-auto data-scrolling:opacity-100 data-scrolling:duration-0 data-[orientation=horizontal]:start-0 data-[orientation=horizontal]:end-[var(--corner-width,0px)] data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:mx-1 data-[orientation=horizontal]:mb-1 data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:before:right-0 data-[orientation=horizontal]:before:bottom-1/2 data-[orientation=horizontal]:before:left-0 data-[orientation=horizontal]:before:h-5 data-[orientation=horizontal]:before:w-full data-[orientation=horizontal]:before:translate-y-1/2 data-[orientation=horizontal]:hover:h-1.5 data-[orientation=horizontal]:data-dragging:h-1.5 data-[orientation=horizontal]:data-overflow-x:flex data-[orientation=vertical]:end-0 data-[orientation=vertical]:top-0 data-[orientation=vertical]:bottom-[var(--corner-height,0px)] data-[orientation=vertical]:my-1 data-[orientation=vertical]:me-1 data-[orientation=vertical]:w-1 data-[orientation=vertical]:before:left-1/2 data-[orientation=vertical]:before:h-full data-[orientation=vertical]:before:w-5 data-[orientation=vertical]:before:-translate-x-1/2 data-[orientation=vertical]:hover:w-1.5 data-[orientation=vertical]:data-dragging:w-1.5 data-[orientation=vertical]:data-overflow-y:flex motion-reduce:transition-none", local.class);
|
|
73
73
|
}
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
@@ -21,7 +21,7 @@ function ScrollAreaViewport(props) {
|
|
|
21
21
|
const [local, others] = splitProps(props, [
|
|
22
22
|
'class'
|
|
23
23
|
]);
|
|
24
|
-
return <ScrollArea.Viewport {...others} data-slot="scroll-area-viewport" class={cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(
|
|
24
|
+
return <ScrollArea.Viewport {...others} data-slot="scroll-area-viewport" class={cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:not-forced-colors:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(var(--spacing-10),var(--scroll-area-overflow-y-start,0px)),black_calc(100%_-_min(var(--spacing-10),var(--scroll-area-overflow-y-end,0px))),transparent_100%)] group-data-[fade]/scroll-area:not-forced-colors:mask-no-repeat focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring forced-colors:focus-visible:outline-[Highlight] [&::-webkit-scrollbar]:hidden', local.class)}/>;
|
|
25
25
|
}
|
|
26
26
|
function ScrollAreaContent(props) {
|
|
27
27
|
const [local, others] = splitProps(props, [
|
|
@@ -33,7 +33,7 @@ function ScrollAreaScrollbar(props) {
|
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'class'
|
|
35
35
|
]);
|
|
36
|
-
return <ScrollArea.Scrollbar {...others} data-slot="scroll-area-scrollbar" class={cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-
|
|
36
|
+
return <ScrollArea.Scrollbar {...others} data-slot="scroll-area-scrollbar" class={cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-[200ms,150ms,150ms] ease-in-out select-none group-data-[variant=always]/scroll-area:pointer-events-auto group-data-[variant=always]/scroll-area:opacity-100 before:absolute before:content-[''] data-dragging:pointer-events-auto data-hover:pointer-events-auto data-hover:opacity-100 data-scrolling:pointer-events-auto data-scrolling:opacity-100 data-scrolling:duration-0 data-[orientation=horizontal]:start-0 data-[orientation=horizontal]:end-[var(--corner-width,0px)] data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:mx-1 data-[orientation=horizontal]:mb-1 data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:before:right-0 data-[orientation=horizontal]:before:bottom-1/2 data-[orientation=horizontal]:before:left-0 data-[orientation=horizontal]:before:h-5 data-[orientation=horizontal]:before:w-full data-[orientation=horizontal]:before:translate-y-1/2 data-[orientation=horizontal]:hover:h-1.5 data-[orientation=horizontal]:data-dragging:h-1.5 data-[orientation=horizontal]:data-overflow-x:flex data-[orientation=vertical]:end-0 data-[orientation=vertical]:top-0 data-[orientation=vertical]:bottom-[var(--corner-height,0px)] data-[orientation=vertical]:my-1 data-[orientation=vertical]:me-1 data-[orientation=vertical]:w-1 data-[orientation=vertical]:before:left-1/2 data-[orientation=vertical]:before:h-full data-[orientation=vertical]:before:w-5 data-[orientation=vertical]:before:-translate-x-1/2 data-[orientation=vertical]:hover:w-1.5 data-[orientation=vertical]:data-dragging:w-1.5 data-[orientation=vertical]:data-overflow-y:flex motion-reduce:transition-none", local.class)}/>;
|
|
37
37
|
}
|
|
38
38
|
function ScrollAreaThumb(props) {
|
|
39
39
|
const [local, others] = splitProps(props, [
|
|
@@ -6,7 +6,7 @@ type SegmentGroupOption = {
|
|
|
6
6
|
label: JSX.Element;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare function useSegmentGroup(props?: SegmentGroupMachineProps): import("@ark-ui/solid").UseSegmentGroupReturn;
|
|
9
|
+
declare function useSegmentGroup(props?: SegmentGroupMachineProps): import("@ark-ui/solid/segment-group").UseSegmentGroupReturn;
|
|
10
10
|
declare function SegmentGroupRoot(props: ComponentProps<typeof SegmentGroupPrimitive.Root>): JSX.Element;
|
|
11
11
|
declare function SegmentGroupRootProvider(props: ComponentProps<typeof SegmentGroupPrimitive.RootProvider>): JSX.Element;
|
|
12
12
|
declare function SegmentGroupLabel(props: ComponentProps<typeof SegmentGroupPrimitive.Label>): JSX.Element;
|
|
@@ -13,6 +13,7 @@ function SegmentGroup_useSegmentGroup(props) {
|
|
|
13
13
|
return useSegmentGroup(()=>{
|
|
14
14
|
const machineProps = 'function' == typeof props ? props() : props;
|
|
15
15
|
return omitUndefined({
|
|
16
|
+
orientation: 'horizontal',
|
|
16
17
|
disabled: field?.()?.disabled ?? fieldset?.()?.disabled,
|
|
17
18
|
invalid: field?.()?.invalid ?? fieldset?.()?.invalid,
|
|
18
19
|
readOnly: field?.()?.readOnly,
|
|
@@ -111,7 +112,7 @@ function SegmentGroupItem(props) {
|
|
|
111
112
|
return local.asChild;
|
|
112
113
|
},
|
|
113
114
|
get ["class"] () {
|
|
114
|
-
return cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible
|
|
115
|
+
return cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:data-focus-visible:outline-destructive data-readonly:cursor-default data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start data-[state=checked]:text-foreground [@media(hover:hover)]:[&:not([data-readonly]):not([data-disabled]):hover]:text-foreground', local.class);
|
|
115
116
|
}
|
|
116
117
|
}, others, {
|
|
117
118
|
"data-slot": "segment-group-item",
|
|
@@ -12,6 +12,7 @@ function SegmentGroup_useSegmentGroup(props) {
|
|
|
12
12
|
return useSegmentGroup(()=>{
|
|
13
13
|
const machineProps = 'function' == typeof props ? props() : props;
|
|
14
14
|
return omitUndefined({
|
|
15
|
+
orientation: 'horizontal',
|
|
15
16
|
disabled: field?.()?.disabled ?? fieldset?.()?.disabled,
|
|
16
17
|
invalid: field?.()?.invalid ?? fieldset?.()?.invalid,
|
|
17
18
|
readOnly: field?.()?.readOnly,
|
|
@@ -76,7 +77,7 @@ function SegmentGroupItem(props) {
|
|
|
76
77
|
'children',
|
|
77
78
|
'class'
|
|
78
79
|
]);
|
|
79
|
-
return <SegmentGroup.Item asChild={local.asChild} class={cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible
|
|
80
|
+
return <SegmentGroup.Item asChild={local.asChild} class={cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:data-focus-visible:outline-destructive data-readonly:cursor-default data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start data-[state=checked]:text-foreground [@media(hover:hover)]:[&:not([data-readonly]):not([data-disabled]):hover]:text-foreground', local.class)} {...others} data-slot="segment-group-item">
|
|
80
81
|
{local.children}
|
|
81
82
|
</SegmentGroup.Item>;
|
|
82
83
|
}
|
|
@@ -120,7 +120,7 @@ function SelectTrigger(props) {
|
|
|
120
120
|
return local.asChild;
|
|
121
121
|
},
|
|
122
122
|
get ["class"] () {
|
|
123
|
-
return cn(!local.asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit]
|
|
123
|
+
return cn(!local.asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit] not-data-[placeholder-shown]:pe-[4.25rem] group-data-invalid/select-control:border-destructive group-data-invalid/select-control:outline-destructive focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-placeholder-shown:text-muted-foreground data-[state=open]:border-ring data-[state=open]:outline-ring motion-reduce:transition-none', local.class);
|
|
124
124
|
}
|
|
125
125
|
}, others, {
|
|
126
126
|
"data-slot": "select-trigger"
|
|
@@ -138,6 +138,7 @@ function SelectValueText(props) {
|
|
|
138
138
|
"data-slot": "select-value-text"
|
|
139
139
|
}));
|
|
140
140
|
}
|
|
141
|
+
const clearTriggerClassName = 'pointer-events-auto absolute inset-y-0 end-[2.125rem] my-auto size-control-xs transition-[background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 motion-reduce:transition-none [&>svg]:size-4';
|
|
141
142
|
function SelectClearTrigger(props) {
|
|
142
143
|
const [local, others] = splitProps(props, [
|
|
143
144
|
'aria-label',
|
|
@@ -158,7 +159,7 @@ function SelectClearTrigger(props) {
|
|
|
158
159
|
return local['aria-labelledby'];
|
|
159
160
|
},
|
|
160
161
|
get ["class"] () {
|
|
161
|
-
return cn(
|
|
162
|
+
return cn(clearTriggerClassName, local.class);
|
|
162
163
|
}
|
|
163
164
|
}, others, {
|
|
164
165
|
"data-slot": "select-clear-trigger",
|
|
@@ -182,7 +183,7 @@ function SelectClearTrigger(props) {
|
|
|
182
183
|
}));
|
|
183
184
|
},
|
|
184
185
|
get ["class"] () {
|
|
185
|
-
return cn(
|
|
186
|
+
return cn(clearTriggerClassName, local.class);
|
|
186
187
|
}
|
|
187
188
|
}, others, {
|
|
188
189
|
"data-slot": "select-clear-trigger"
|
|
@@ -196,7 +197,7 @@ function SelectIndicator(props) {
|
|
|
196
197
|
const resolvedChildren = children(()=>local.children);
|
|
197
198
|
return createComponent(Select.Indicator, mergeProps({
|
|
198
199
|
get ["class"] () {
|
|
199
|
-
return cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&>svg]:block [&>svg]:size-4', local.class);
|
|
200
|
+
return cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&:is([data-slot=select-control]>*)]:absolute [&:is([data-slot=select-control]>*)]:end-2 [&:is([data-slot=select-control]>*)]:top-1/2 [&:is([data-slot=select-control]>*)]:-translate-y-1/2 [&>svg]:block [&>svg]:size-4', local.class);
|
|
200
201
|
}
|
|
201
202
|
}, others, {
|
|
202
203
|
"data-slot": "select-indicator",
|
|
@@ -229,7 +230,6 @@ function SelectField(props) {
|
|
|
229
230
|
}
|
|
230
231
|
})),
|
|
231
232
|
createComponent(SelectIndicator, {
|
|
232
|
-
class: "absolute end-2 top-1/2 -translate-y-1/2",
|
|
233
233
|
get children () {
|
|
234
234
|
return local.indicator;
|
|
235
235
|
}
|
|
@@ -260,7 +260,7 @@ function SelectContent(props) {
|
|
|
260
260
|
]);
|
|
261
261
|
return createComponent(Select.Content, mergeProps({
|
|
262
262
|
get ["class"] () {
|
|
263
|
-
return cn('z-[calc(
|
|
263
|
+
return cn('z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] flex max-h-[min(24rem,var(--available-height))] max-w-[var(--available-width)] min-w-[var(--reference-width)] origin-[var(--transform-origin)] scroll-py-1 flex-col overflow-auto overscroll-contain rounded-md border border-border bg-popover py-1 text-popover-foreground shadow-lg outline-0 data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none', local.class);
|
|
264
264
|
}
|
|
265
265
|
}, others, {
|
|
266
266
|
"data-slot": "select-content"
|
|
@@ -54,7 +54,7 @@ function SelectTrigger(props) {
|
|
|
54
54
|
'asChild',
|
|
55
55
|
'class'
|
|
56
56
|
]);
|
|
57
|
-
return <Select.Trigger asChild={local.asChild} class={cn(!local.asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit]
|
|
57
|
+
return <Select.Trigger asChild={local.asChild} class={cn(!local.asChild && 'peer/select-trigger relative inline-flex h-control-md w-full min-w-0 cursor-pointer items-center justify-start rounded-md border border-border bg-background px-3.5 pe-[2.875rem] text-start text-inherit outline-1 -outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out select-none [font:inherit] not-data-[placeholder-shown]:pe-[4.25rem] group-data-invalid/select-control:border-destructive group-data-invalid/select-control:outline-destructive focus-visible:border-ring focus-visible:outline-ring disabled:cursor-default data-disabled:cursor-default data-placeholder-shown:text-muted-foreground data-[state=open]:border-ring data-[state=open]:outline-ring motion-reduce:transition-none', local.class)} {...others} data-slot="select-trigger"/>;
|
|
58
58
|
}
|
|
59
59
|
function SelectValueText(props) {
|
|
60
60
|
const [local, others] = splitProps(props, [
|
|
@@ -62,6 +62,7 @@ function SelectValueText(props) {
|
|
|
62
62
|
]);
|
|
63
63
|
return <Select.ValueText class={cn('min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap', local.class)} {...others} data-slot="select-value-text"/>;
|
|
64
64
|
}
|
|
65
|
+
const clearTriggerClassName = 'pointer-events-auto absolute inset-y-0 end-[2.125rem] my-auto size-control-xs transition-[background-color,color,opacity] duration-200 ease-in-out focus-visible:outline-1 focus-visible:outline-offset-1 motion-reduce:transition-none [&>svg]:size-4';
|
|
65
66
|
function SelectClearTrigger(props) {
|
|
66
67
|
const [local, others] = splitProps(props, [
|
|
67
68
|
'aria-label',
|
|
@@ -71,7 +72,7 @@ function SelectClearTrigger(props) {
|
|
|
71
72
|
'class'
|
|
72
73
|
]);
|
|
73
74
|
const resolvedChildren = children(()=>local.children);
|
|
74
|
-
if (local.asChild) return <Select.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} class={cn(
|
|
75
|
+
if (local.asChild) return <Select.ClearTrigger asChild={local.asChild} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} class={cn(clearTriggerClassName, local.class)} {...others} data-slot="select-clear-trigger">
|
|
75
76
|
{local.children}
|
|
76
77
|
</Select.ClearTrigger>;
|
|
77
78
|
return <Select.ClearTrigger asChild={(triggerProps)=>{
|
|
@@ -79,7 +80,7 @@ function SelectClearTrigger(props) {
|
|
|
79
80
|
return <CloseButton.Root {...resolvedProps} aria-label={local['aria-label'] ?? (null == local['aria-labelledby'] ? 'Clear selection' : void 0)} aria-labelledby={local['aria-labelledby']}>
|
|
80
81
|
{resolvedChildren()}
|
|
81
82
|
</CloseButton.Root>;
|
|
82
|
-
}} class={cn(
|
|
83
|
+
}} class={cn(clearTriggerClassName, local.class)} {...others} data-slot="select-clear-trigger"/>;
|
|
83
84
|
}
|
|
84
85
|
function SelectIndicator(props) {
|
|
85
86
|
const [local, others] = splitProps(props, [
|
|
@@ -87,7 +88,7 @@ function SelectIndicator(props) {
|
|
|
87
88
|
'class'
|
|
88
89
|
]);
|
|
89
90
|
const resolvedChildren = children(()=>local.children);
|
|
90
|
-
return <Select.Indicator class={cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&>svg]:block [&>svg]:size-4', local.class)} {...others} data-slot="select-indicator">
|
|
91
|
+
return <Select.Indicator class={cn('pointer-events-none inline-flex size-control-xs shrink-0 items-center justify-center rounded-sm bg-transparent leading-none text-muted-foreground transition-[background-color,color,opacity] duration-200 ease-in-out peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:bg-muted peer-[:not([disabled]):not([data-disabled]):hover]/select-trigger:text-foreground motion-reduce:transition-none [&:is([data-slot=select-control]>*)]:absolute [&:is([data-slot=select-control]>*)]:end-2 [&:is([data-slot=select-control]>*)]:top-1/2 [&:is([data-slot=select-control]>*)]:-translate-y-1/2 [&>svg]:block [&>svg]:size-4', local.class)} {...others} data-slot="select-indicator">
|
|
91
92
|
{resolvedChildren() ?? <ChevronUpDownIcon/>}
|
|
92
93
|
</Select.Indicator>;
|
|
93
94
|
}
|
|
@@ -102,9 +103,7 @@ function SelectField(props) {
|
|
|
102
103
|
<SelectValueText placeholder={local.placeholder}/>
|
|
103
104
|
</SelectTrigger>
|
|
104
105
|
{local.clearLabel && <SelectClearTrigger aria-label={local.clearLabel}/>}
|
|
105
|
-
<SelectIndicator
|
|
106
|
-
{local.indicator}
|
|
107
|
-
</SelectIndicator>
|
|
106
|
+
<SelectIndicator>{local.indicator}</SelectIndicator>
|
|
108
107
|
</SelectControl>;
|
|
109
108
|
}
|
|
110
109
|
function SelectPositioner(props) {
|
|
@@ -119,7 +118,7 @@ function SelectContent(props) {
|
|
|
119
118
|
const [local, others] = splitProps(props, [
|
|
120
119
|
'class'
|
|
121
120
|
]);
|
|
122
|
-
return <Select.Content class={cn('z-[calc(
|
|
121
|
+
return <Select.Content class={cn('z-[calc(var(--moduix-z-popup)+var(--layer-index,0))] flex max-h-[min(24rem,var(--available-height))] max-w-[var(--available-width)] min-w-[var(--reference-width)] origin-[var(--transform-origin)] scroll-py-1 flex-col overflow-auto overscroll-contain rounded-md border border-border bg-popover py-1 text-popover-foreground shadow-lg outline-0 data-[state=closed]:pointer-events-none data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open motion-reduce:animate-none', local.class)} {...others} data-slot="select-content"/>;
|
|
123
122
|
}
|
|
124
123
|
function SelectList(props) {
|
|
125
124
|
const [local, others] = splitProps(props, [
|
|
@@ -3,7 +3,7 @@ import { ark } from "@ark-ui/solid/factory";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { splitProps } from "solid-js";
|
|
5
5
|
import { cn } from "../../internal/cn.js";
|
|
6
|
-
const separatorVariants = cva('block shrink-0 border-border', {
|
|
6
|
+
const separatorVariants = cva('block shrink-0 m-0 border-border', {
|
|
7
7
|
variants: {
|
|
8
8
|
orientation: {
|
|
9
9
|
horizontal: 'h-0 w-full',
|
|
@@ -2,7 +2,7 @@ import { ark } from "@ark-ui/solid/factory";
|
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { splitProps } from "solid-js";
|
|
4
4
|
import { cn } from "../../internal/cn.jsx";
|
|
5
|
-
const separatorVariants = cva('block shrink-0 border-border', {
|
|
5
|
+
const separatorVariants = cva('block shrink-0 m-0 border-border', {
|
|
6
6
|
variants: {
|
|
7
7
|
orientation: {
|
|
8
8
|
horizontal: 'h-0 w-full',
|