@moduix/solid-tailwind 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 +7 -7
- 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 +10 -11
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +6 -6
- package/dist/components/bleed/Bleed.js +1 -1
- package/dist/components/bleed/Bleed.jsx +1 -1
- package/dist/components/button/Button.js +1 -6
- package/dist/components/button/Button.jsx +2 -4
- package/dist/components/card/Card.js +54 -44
- package/dist/components/card/Card.jsx +12 -12
- 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.js +5 -5
- package/dist/components/container/Container.jsx +5 -5
- 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/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.jsx +1 -1
- 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/input-group/InputGroup.js +3 -2
- package/dist/components/input-group/InputGroup.jsx +3 -2
- package/dist/components/json-tree-view/JsonTreeView.js +1 -1
- package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
- 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 +9 -9
- package/dist/components/menu/Menu.js +66 -44
- package/dist/components/menu/Menu.jsx +28 -28
- 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 +17 -12
- 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 +72 -43
- package/dist/components/sidebar/Sidebar.jsx +34 -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 +20 -9
- package/dist/components/split-button/SplitButton.jsx +13 -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 +38 -26
- 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
|
@@ -9,7 +9,7 @@ const TreeView_TreeViewRoot = function(props) {
|
|
|
9
9
|
'children',
|
|
10
10
|
'class'
|
|
11
11
|
]);
|
|
12
|
-
return <TreeView.Root asChild={local.asChild}
|
|
12
|
+
return <TreeView.Root asChild={local.asChild} class={cn('box-border flex w-80 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class)} {...others} data-slot="tree-view-root">
|
|
13
13
|
{local.children}
|
|
14
14
|
</TreeView.Root>;
|
|
15
15
|
};
|
|
@@ -19,7 +19,7 @@ const TreeView_TreeViewRootProvider = function(props) {
|
|
|
19
19
|
'children',
|
|
20
20
|
'class'
|
|
21
21
|
]);
|
|
22
|
-
return <TreeView.RootProvider asChild={local.asChild}
|
|
22
|
+
return <TreeView.RootProvider asChild={local.asChild} class={cn('box-border flex w-80 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class)} {...others} data-slot="tree-view-root-provider">
|
|
23
23
|
{local.children}
|
|
24
24
|
</TreeView.RootProvider>;
|
|
25
25
|
};
|
|
@@ -27,25 +27,25 @@ function TreeViewLabel(props) {
|
|
|
27
27
|
const [local, others] = splitProps(props, [
|
|
28
28
|
'class'
|
|
29
29
|
]);
|
|
30
|
-
return <TreeView.Label
|
|
30
|
+
return <TreeView.Label class={cn('text-sm leading-5 font-medium text-foreground select-none', local.class)} {...others} data-slot="tree-view-label"/>;
|
|
31
31
|
}
|
|
32
32
|
function TreeViewTree(props) {
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'class'
|
|
35
35
|
]);
|
|
36
|
-
return <TreeView.Tree
|
|
36
|
+
return <TreeView.Tree class={cn('flex min-w-0 flex-col gap-1 text-sm leading-5 text-foreground', local.class)} {...others} data-slot="tree-view-tree"/>;
|
|
37
37
|
}
|
|
38
38
|
function TreeViewBranch(props) {
|
|
39
39
|
const [local, others] = splitProps(props, [
|
|
40
40
|
'class'
|
|
41
41
|
]);
|
|
42
|
-
return <TreeView.Branch
|
|
42
|
+
return <TreeView.Branch class={cn('relative flex min-w-0 flex-col gap-1', local.class)} {...others} data-slot="tree-view-branch"/>;
|
|
43
43
|
}
|
|
44
44
|
function TreeViewBranchControl(props) {
|
|
45
45
|
const [local, others] = splitProps(props, [
|
|
46
46
|
'class'
|
|
47
47
|
]);
|
|
48
|
-
return <TreeView.BranchControl
|
|
48
|
+
return <TreeView.BranchControl class={cn("relative z-0 box-border flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-2 rounded-sm bg-transparent py-1 ps-[calc(0.5rem+((var(--depth,1)-1)*1rem))] pe-2 text-start text-foreground no-underline transition-[color,opacity] duration-200 ease-in-out outline-none select-none [font:inherit] before:pointer-events-none before:absolute before:inset-y-0 before:start-[calc(0.5rem+((var(--depth,1)-1)*1rem))] before:end-0 before:-z-1 before:rounded-sm before:bg-transparent before:ring-1 before:ring-transparent before:transition-[background-color,box-shadow] before:duration-200 before:ease-in-out before:content-[''] before:ring-inset focus-visible:before:ring-ring data-disabled:cursor-default data-disabled:text-muted-foreground data-disabled:opacity-50 data-focus:before:ring-ring data-selected:text-accent-foreground data-selected:before:bg-accent motion-reduce:before:transition-none [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-accent-foreground [@media(hover:hover)]:[&:not([data-disabled]):hover]:before:bg-accent", local.class)} {...others} data-slot="tree-view-branch-control"/>;
|
|
49
49
|
}
|
|
50
50
|
function TreeViewBranchTrigger(props) {
|
|
51
51
|
const [local, others] = splitProps(props, [
|
|
@@ -53,7 +53,7 @@ function TreeViewBranchTrigger(props) {
|
|
|
53
53
|
'class'
|
|
54
54
|
]);
|
|
55
55
|
const resolvedChildren = children(()=>local.children);
|
|
56
|
-
return <TreeView.BranchTrigger
|
|
56
|
+
return <TreeView.BranchTrigger class={cn('inline-flex size-4 shrink-0 items-center justify-center transition-transform duration-200 ease-in-out data-[state=open]:rotate-90 motion-reduce:transition-none [&_svg]:size-3.5', local.class)} {...others} data-slot="tree-view-branch-trigger">
|
|
57
57
|
{resolvedChildren() ?? <ChevronRightIcon/>}
|
|
58
58
|
</TreeView.BranchTrigger>;
|
|
59
59
|
}
|
|
@@ -63,7 +63,7 @@ function TreeViewBranchIndicator(props) {
|
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
65
|
const resolvedChildren = children(()=>local.children);
|
|
66
|
-
return <TreeView.BranchIndicator
|
|
66
|
+
return <TreeView.BranchIndicator class={cn('inline-flex size-4 shrink-0 items-center justify-center transition-transform duration-200 ease-in-out data-[state=open]:rotate-90 motion-reduce:transition-none [&_svg]:size-3.5', local.class)} {...others} data-slot="tree-view-branch-indicator">
|
|
67
67
|
{resolvedChildren() ?? <ChevronRightIcon/>}
|
|
68
68
|
</TreeView.BranchIndicator>;
|
|
69
69
|
}
|
|
@@ -71,31 +71,31 @@ function TreeViewBranchText(props) {
|
|
|
71
71
|
const [local, others] = splitProps(props, [
|
|
72
72
|
'class'
|
|
73
73
|
]);
|
|
74
|
-
return <TreeView.BranchText
|
|
74
|
+
return <TreeView.BranchText class={cn('inline-flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others} data-slot="tree-view-branch-text"/>;
|
|
75
75
|
}
|
|
76
76
|
function TreeViewBranchContent(props) {
|
|
77
77
|
const [local, others] = splitProps(props, [
|
|
78
78
|
'class'
|
|
79
79
|
]);
|
|
80
|
-
return <TreeView.BranchContent
|
|
80
|
+
return <TreeView.BranchContent class={cn('relative flex min-w-0 flex-col gap-1 overflow-hidden data-[state=closed]:animate-[moduix-collapsible-content-closed_150ms_ease-out] data-[state=open]:animate-[moduix-collapsible-content-open_150ms_ease-out] motion-reduce:animate-none', local.class)} {...others} data-slot="tree-view-branch-content"/>;
|
|
81
81
|
}
|
|
82
82
|
function TreeViewBranchIndentGuide(props) {
|
|
83
83
|
const [local, others] = splitProps(props, [
|
|
84
84
|
'class'
|
|
85
85
|
]);
|
|
86
|
-
return <TreeView.BranchIndentGuide
|
|
86
|
+
return <TreeView.BranchIndentGuide class={cn('pointer-events-none absolute inset-y-0 start-[calc(1rem+((var(--depth,1)-1)*1rem))] z-1 w-px bg-border', local.class)} {...others} data-slot="tree-view-branch-indent-guide"/>;
|
|
87
87
|
}
|
|
88
88
|
function TreeViewItem(props) {
|
|
89
89
|
const [local, others] = splitProps(props, [
|
|
90
90
|
'class'
|
|
91
91
|
]);
|
|
92
|
-
return <TreeView.Item
|
|
92
|
+
return <TreeView.Item class={cn("relative z-0 box-border flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-2 rounded-sm bg-transparent py-1 ps-[calc(1rem+((var(--depth,1)-1)*1rem))] pe-2 text-start text-foreground no-underline transition-[color,opacity] duration-200 ease-in-out outline-none select-none [font:inherit] before:pointer-events-none before:absolute before:inset-y-0 before:start-[calc(0.5rem+((var(--depth,1)-1)*1rem))] before:end-0 before:-z-1 before:rounded-sm before:bg-transparent before:ring-1 before:ring-transparent before:transition-[background-color,box-shadow] before:duration-200 before:ease-in-out before:content-[''] before:ring-inset focus-visible:before:ring-ring data-disabled:cursor-default data-disabled:text-muted-foreground data-disabled:opacity-50 data-focus:before:ring-ring data-selected:text-accent-foreground data-selected:before:bg-accent motion-reduce:before:transition-none [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-accent-foreground [@media(hover:hover)]:[&:not([data-disabled]):hover]:before:bg-accent", local.class)} {...others} data-slot="tree-view-item"/>;
|
|
93
93
|
}
|
|
94
94
|
function TreeViewItemText(props) {
|
|
95
95
|
const [local, others] = splitProps(props, [
|
|
96
96
|
'class'
|
|
97
97
|
]);
|
|
98
|
-
return <TreeView.ItemText
|
|
98
|
+
return <TreeView.ItemText class={cn('inline-flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others} data-slot="tree-view-item-text"/>;
|
|
99
99
|
}
|
|
100
100
|
function TreeViewItemIndicator(props) {
|
|
101
101
|
const [local, others] = splitProps(props, [
|
|
@@ -103,7 +103,7 @@ function TreeViewItemIndicator(props) {
|
|
|
103
103
|
'class'
|
|
104
104
|
]);
|
|
105
105
|
const resolvedChildren = children(()=>local.children);
|
|
106
|
-
return <TreeView.ItemIndicator
|
|
106
|
+
return <TreeView.ItemIndicator class={cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5', local.class)} {...others} data-slot="tree-view-item-indicator">
|
|
107
107
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
108
108
|
</TreeView.ItemIndicator>;
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ function TreeViewNodeCheckbox(props) {
|
|
|
111
111
|
const [local, others] = splitProps(props, [
|
|
112
112
|
'class'
|
|
113
113
|
]);
|
|
114
|
-
return <TreeView.NodeCheckbox
|
|
114
|
+
return <TreeView.NodeCheckbox class={cn('inline-flex size-4 shrink-0 items-center justify-center rounded-xs border border-border bg-background text-primary-foreground outline-1 outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary motion-reduce:transition-none [&_svg]:size-3', local.class)} {...others} data-slot="tree-view-node-checkbox"/>;
|
|
115
115
|
}
|
|
116
116
|
function TreeViewNodeCheckboxIndicator(props) {
|
|
117
117
|
const [local, others] = splitProps(props, [
|
|
@@ -122,7 +122,7 @@ function TreeViewNodeCheckboxIndicator(props) {
|
|
|
122
122
|
'indeterminate'
|
|
123
123
|
]);
|
|
124
124
|
const resolvedChildren = children(()=>local.children);
|
|
125
|
-
return <ark.span asChild={local.asChild}
|
|
125
|
+
return <ark.span asChild={local.asChild} class={cn('inline-flex items-center justify-center', local.class)} {...others} data-slot="tree-view-node-checkbox-indicator">
|
|
126
126
|
<TreeView.NodeCheckboxIndicator fallback={local.fallback} indeterminate={local.indeterminate ?? <IndeterminateIcon/>}>
|
|
127
127
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
128
128
|
</TreeView.NodeCheckboxIndicator>
|
|
@@ -132,7 +132,7 @@ function TreeViewNodeRenameInput(props) {
|
|
|
132
132
|
const [local, others] = splitProps(props, [
|
|
133
133
|
'class'
|
|
134
134
|
]);
|
|
135
|
-
return <TreeView.NodeRenameInput
|
|
135
|
+
return <TreeView.NodeRenameInput class={cn('box-border min-w-0 flex-1 rounded-xs border border-ring bg-background px-1 py-0 text-foreground outline-1 -outline-offset-1 outline-transparent [font:inherit] focus-visible:outline-ring', local.class)} {...others} data-slot="tree-view-node-rename-input"/>;
|
|
136
136
|
}
|
|
137
137
|
const TreeViewNodeProvider = TreeView.NodeProvider;
|
|
138
138
|
function TreeViewNodeContent(props) {
|
|
@@ -124,44 +124,44 @@
|
|
|
124
124
|
@keyframes moduix-accordion-item-content-open {
|
|
125
125
|
from {
|
|
126
126
|
height: 0;
|
|
127
|
-
opacity:
|
|
127
|
+
opacity: 0.01;
|
|
128
128
|
}
|
|
129
129
|
to {
|
|
130
130
|
height: var(--height);
|
|
131
|
-
opacity:
|
|
131
|
+
opacity: 1;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
@keyframes moduix-accordion-item-content-closed {
|
|
136
136
|
from {
|
|
137
137
|
height: var(--height);
|
|
138
|
-
opacity:
|
|
138
|
+
opacity: 1;
|
|
139
139
|
}
|
|
140
140
|
to {
|
|
141
141
|
height: 0;
|
|
142
|
-
opacity:
|
|
142
|
+
opacity: 0.01;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
@keyframes moduix-accordion-item-content-open-horizontal {
|
|
147
147
|
from {
|
|
148
148
|
width: 0;
|
|
149
|
-
opacity:
|
|
149
|
+
opacity: 0.01;
|
|
150
150
|
}
|
|
151
151
|
to {
|
|
152
152
|
width: var(--width);
|
|
153
|
-
opacity:
|
|
153
|
+
opacity: 1;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
@keyframes moduix-accordion-item-content-closed-horizontal {
|
|
158
158
|
from {
|
|
159
159
|
width: var(--width);
|
|
160
|
-
opacity:
|
|
160
|
+
opacity: 1;
|
|
161
161
|
}
|
|
162
162
|
to {
|
|
163
163
|
width: 0;
|
|
164
|
-
opacity:
|
|
164
|
+
opacity: 0.01;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|