@moduix/solid 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 +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/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_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 +9 -10
|
@@ -53,9 +53,7 @@ function toggleSidebarPanel(splitter, panelId) {
|
|
|
53
53
|
splitter().collapsePanel(panelId);
|
|
54
54
|
}
|
|
55
55
|
function useSidebarConfig() {
|
|
56
|
-
|
|
57
|
-
if (!config) throw new Error('Sidebar components must be used within Sidebar.Root');
|
|
58
|
-
return config;
|
|
56
|
+
return useContext(SidebarConfigContext);
|
|
59
57
|
}
|
|
60
58
|
function SidebarRoot(props) {
|
|
61
59
|
const [local, others] = splitProps(props, [
|
|
@@ -135,7 +133,7 @@ function SidebarTrigger(props) {
|
|
|
135
133
|
if (event.defaultPrevented) return;
|
|
136
134
|
toggleSidebarPanel(splitter, config.panelId());
|
|
137
135
|
};
|
|
138
|
-
return <ark.button asChild={local.asChild} type={local.type ?? 'button'} aria-label={local['aria-label'] ?? 'Toggle sidebar'} aria-expanded={!collapsed()} data-scope="sidebar" data-part="trigger" data-side={config.side()} data-state={collapsed() ? 'collapsed' : 'expanded'}
|
|
136
|
+
return <ark.button asChild={local.asChild} type={local.type ?? 'button'} aria-label={local['aria-label'] ?? 'Toggle sidebar'} aria-expanded={!collapsed()} class={clsx(Sidebar_module.trigger, local.class)} onClick={handleClick} {...others} data-scope="sidebar" data-part="trigger" data-side={config.side()} data-state={collapsed() ? 'collapsed' : 'expanded'} data-slot="sidebar-trigger">
|
|
139
137
|
{void 0 === local.children && !local.asChild ? <ChevronLeftIcon/> : local.children}
|
|
140
138
|
</ark.button>;
|
|
141
139
|
}
|
|
@@ -143,76 +141,76 @@ function SidebarLabel(props) {
|
|
|
143
141
|
const [local, others] = splitProps(props, [
|
|
144
142
|
'class'
|
|
145
143
|
]);
|
|
146
|
-
return <ark.span
|
|
144
|
+
return <ark.span class={clsx(Sidebar_module.label, local.class)} {...others} data-scope="sidebar" data-part="label" data-slot="sidebar-label"/>;
|
|
147
145
|
}
|
|
148
146
|
function SidebarHeader(props) {
|
|
149
147
|
const [local, others] = splitProps(props, [
|
|
150
148
|
'class'
|
|
151
149
|
]);
|
|
152
|
-
return <ark.header
|
|
150
|
+
return <ark.header class={clsx(Sidebar_module.header, local.class)} {...others} data-scope="sidebar" data-part="header" data-slot="sidebar-header"/>;
|
|
153
151
|
}
|
|
154
152
|
function SidebarContent(props) {
|
|
155
153
|
const [local, others] = splitProps(props, [
|
|
156
154
|
'class'
|
|
157
155
|
]);
|
|
158
|
-
return <ark.div
|
|
156
|
+
return <ark.div class={clsx(Sidebar_module.content, local.class)} {...others} data-scope="sidebar" data-part="content" data-slot="sidebar-content"/>;
|
|
159
157
|
}
|
|
160
158
|
function SidebarExpandedContent(props) {
|
|
161
159
|
const [local, others] = splitProps(props, [
|
|
162
160
|
'class'
|
|
163
161
|
]);
|
|
164
162
|
const { collapsed } = useSidebar();
|
|
165
|
-
return <ark.div data-scope="sidebar" data-part="expanded-content"
|
|
163
|
+
return <ark.div class={local.class} {...others} data-scope="sidebar" data-part="expanded-content" data-slot="sidebar-expanded-content" hidden={collapsed()}/>;
|
|
166
164
|
}
|
|
167
165
|
function SidebarCollapsedContent(props) {
|
|
168
166
|
const [local, others] = splitProps(props, [
|
|
169
167
|
'class'
|
|
170
168
|
]);
|
|
171
169
|
const { collapsed } = useSidebar();
|
|
172
|
-
return <ark.div data-scope="sidebar" data-part="collapsed-content"
|
|
170
|
+
return <ark.div class={local.class} {...others} data-scope="sidebar" data-part="collapsed-content" data-slot="sidebar-collapsed-content" hidden={!collapsed()}/>;
|
|
173
171
|
}
|
|
174
172
|
function SidebarFooter(props) {
|
|
175
173
|
const [local, others] = splitProps(props, [
|
|
176
174
|
'class'
|
|
177
175
|
]);
|
|
178
|
-
return <ark.footer
|
|
176
|
+
return <ark.footer class={clsx(Sidebar_module.footer, local.class)} {...others} data-scope="sidebar" data-part="footer" data-slot="sidebar-footer"/>;
|
|
179
177
|
}
|
|
180
178
|
function SidebarGroup(props) {
|
|
181
179
|
const [local, others] = splitProps(props, [
|
|
182
180
|
'class'
|
|
183
181
|
]);
|
|
184
|
-
return <ark.section
|
|
182
|
+
return <ark.section class={clsx(Sidebar_module.group, local.class)} {...others} data-scope="sidebar" data-part="group" data-slot="sidebar-group"/>;
|
|
185
183
|
}
|
|
186
184
|
function SidebarGroupLabel(props) {
|
|
187
185
|
const [local, others] = splitProps(props, [
|
|
188
186
|
'class'
|
|
189
187
|
]);
|
|
190
|
-
return <ark.h3
|
|
188
|
+
return <ark.h3 class={clsx(Sidebar_module.groupLabel, local.class)} {...others} data-scope="sidebar" data-part="group-label" data-slot="sidebar-group-label"/>;
|
|
191
189
|
}
|
|
192
190
|
function SidebarGroupHeader(props) {
|
|
193
191
|
const [local, others] = splitProps(props, [
|
|
194
192
|
'class'
|
|
195
193
|
]);
|
|
196
|
-
return <ark.div
|
|
194
|
+
return <ark.div class={clsx(Sidebar_module.groupHeader, local.class)} {...others} data-scope="sidebar" data-part="group-header" data-slot="sidebar-group-header"/>;
|
|
197
195
|
}
|
|
198
196
|
function SidebarGroupAction(props) {
|
|
199
197
|
const [local, others] = splitProps(props, [
|
|
200
198
|
'class',
|
|
201
199
|
'type'
|
|
202
200
|
]);
|
|
203
|
-
return <ark.button type={local.type ?? 'button'}
|
|
201
|
+
return <ark.button type={local.type ?? 'button'} class={clsx(Sidebar_module.groupAction, local.class)} {...others} data-scope="sidebar" data-part="group-action" data-slot="sidebar-group-action"/>;
|
|
204
202
|
}
|
|
205
203
|
function SidebarNavigationList(props) {
|
|
206
204
|
const [local, others] = splitProps(props, [
|
|
207
205
|
'class'
|
|
208
206
|
]);
|
|
209
|
-
return <ark.ul
|
|
207
|
+
return <ark.ul class={clsx(Sidebar_module.menu, local.class)} {...others} data-scope="sidebar" data-part="navigation-list" data-slot="sidebar-navigation-list"/>;
|
|
210
208
|
}
|
|
211
209
|
function SidebarNavigationItem(props) {
|
|
212
210
|
const [local, others] = splitProps(props, [
|
|
213
211
|
'class'
|
|
214
212
|
]);
|
|
215
|
-
return <ark.li
|
|
213
|
+
return <ark.li class={clsx(Sidebar_module.menuItem, local.class)} {...others} data-scope="sidebar" data-part="navigation-item" data-slot="sidebar-navigation-item"/>;
|
|
216
214
|
}
|
|
217
215
|
function SidebarNavigationButton(props) {
|
|
218
216
|
const [local, others] = splitProps(props, [
|
|
@@ -223,25 +221,25 @@ function SidebarNavigationButton(props) {
|
|
|
223
221
|
'size',
|
|
224
222
|
'type'
|
|
225
223
|
]);
|
|
226
|
-
return <ark.button asChild={local.asChild} type={local.type ?? 'button'} aria-current={local['aria-current'] ?? (local.active ? 'page' : void 0)} data-scope="sidebar" data-part="navigation-button" data-active={local.active ? '' : void 0} data-size={local.size ?? 'md'}
|
|
224
|
+
return <ark.button asChild={local.asChild} type={local.type ?? 'button'} aria-current={local['aria-current'] ?? (local.active ? 'page' : void 0)} class={clsx(Sidebar_module.menuButton, local.class)} {...others} data-scope="sidebar" data-part="navigation-button" data-active={local.active ? '' : void 0} data-size={local.size ?? 'md'} data-slot="sidebar-navigation-button"/>;
|
|
227
225
|
}
|
|
228
226
|
function SidebarNavigationBadge(props) {
|
|
229
227
|
const [local, others] = splitProps(props, [
|
|
230
228
|
'class'
|
|
231
229
|
]);
|
|
232
|
-
return <ark.span
|
|
230
|
+
return <ark.span class={clsx(Sidebar_module.menuBadge, local.class)} {...others} data-scope="sidebar" data-part="navigation-badge" data-slot="sidebar-navigation-badge"/>;
|
|
233
231
|
}
|
|
234
232
|
function SidebarNavigationSubList(props) {
|
|
235
233
|
const [local, others] = splitProps(props, [
|
|
236
234
|
'class'
|
|
237
235
|
]);
|
|
238
|
-
return <ark.ul
|
|
236
|
+
return <ark.ul class={clsx(Sidebar_module.menuSub, local.class)} {...others} data-scope="sidebar" data-part="navigation-sub-list" data-slot="sidebar-navigation-sub-list"/>;
|
|
239
237
|
}
|
|
240
238
|
function SidebarNavigationSubItem(props) {
|
|
241
239
|
const [local, others] = splitProps(props, [
|
|
242
240
|
'class'
|
|
243
241
|
]);
|
|
244
|
-
return <ark.li
|
|
242
|
+
return <ark.li class={clsx(Sidebar_module.menuSubItem, local.class)} {...others} data-scope="sidebar" data-part="navigation-sub-item" data-slot="sidebar-navigation-sub-item"/>;
|
|
245
243
|
}
|
|
246
244
|
function SidebarNavigationSubButton(props) {
|
|
247
245
|
const [local, others] = splitProps(props, [
|
|
@@ -251,7 +249,7 @@ function SidebarNavigationSubButton(props) {
|
|
|
251
249
|
'children',
|
|
252
250
|
'class'
|
|
253
251
|
]);
|
|
254
|
-
return <ark.a asChild={local.asChild} aria-current={local['aria-current'] ?? (local.active ? 'page' : void 0)} data-scope="sidebar" data-part="navigation-sub-button" data-active={local.active ? '' : void 0}
|
|
252
|
+
return <ark.a asChild={local.asChild} aria-current={local['aria-current'] ?? (local.active ? 'page' : void 0)} class={clsx(Sidebar_module.menuSubButton, local.class)} {...others} data-scope="sidebar" data-part="navigation-sub-button" data-active={local.active ? '' : void 0} data-slot="sidebar-navigation-sub-button">
|
|
255
253
|
{'string' == typeof local.children ? <span data-slot="sidebar-navigation-sub-label">{local.children}</span> : local.children}
|
|
256
254
|
</ark.a>;
|
|
257
255
|
}
|
|
@@ -279,13 +277,13 @@ function SidebarInput(props) {
|
|
|
279
277
|
const [local, others] = splitProps(props, [
|
|
280
278
|
'class'
|
|
281
279
|
]);
|
|
282
|
-
return <Input.Root class={clsx(Sidebar_module.input, local.class)} {...others}
|
|
280
|
+
return <Input.Root class={clsx(Sidebar_module.input, local.class)} {...others}/>;
|
|
283
281
|
}
|
|
284
282
|
function SidebarSeparator(props) {
|
|
285
283
|
const [local, others] = splitProps(props, [
|
|
286
284
|
'class'
|
|
287
285
|
]);
|
|
288
|
-
return <Separator.Root class={clsx(Sidebar_module.separator, local.class)} {...others}
|
|
286
|
+
return <Separator.Root class={clsx(Sidebar_module.separator, local.class)} {...others}/>;
|
|
289
287
|
}
|
|
290
288
|
const Sidebar = Object.assign(SidebarRoot, {
|
|
291
289
|
Root: SidebarRoot,
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
margin-inline-start: auto;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.trigger-_fUcgc:focus-visible, .groupAction-aoQPc4:focus-visible, .menuButton-OAl6eQ:focus-visible {
|
|
385
|
+
.trigger-_fUcgc:focus-visible, .groupAction-aoQPc4:focus-visible, .menuButton-OAl6eQ:focus-visible, .menuSubButton-MjeEfX:focus-visible {
|
|
386
386
|
outline: var(--moduix-sidebar-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
387
387
|
solid var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
388
388
|
outline-offset: var(--moduix-sidebar-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
@@ -12,7 +12,7 @@ declare function SignaturePadControl(props: ComponentProps<typeof SignaturePadPr
|
|
|
12
12
|
declare function SignaturePadSegment(props: ComponentProps<typeof SignaturePadPrimitive.Segment>): import("solid-js").JSX.Element;
|
|
13
13
|
declare function SignaturePadGuide(props: ComponentProps<typeof SignaturePadPrimitive.Guide>): import("solid-js").JSX.Element;
|
|
14
14
|
declare function SignaturePadClearTrigger(props: ComponentProps<typeof SignaturePadPrimitive.ClearTrigger>): import("solid-js").JSX.Element;
|
|
15
|
-
type SignaturePadCanvasProps = Omit<ComponentProps<typeof SignaturePadPrimitive.Control>, 'children'>;
|
|
15
|
+
type SignaturePadCanvasProps = Omit<ComponentProps<typeof SignaturePadPrimitive.Control>, 'asChild' | 'children'>;
|
|
16
16
|
declare function SignaturePadCanvas(props: SignaturePadCanvasProps): import("solid-js").JSX.Element;
|
|
17
17
|
declare const SignaturePad: typeof SignaturePadRoot & {
|
|
18
18
|
Root: typeof SignaturePadRoot;
|
|
@@ -22,9 +22,6 @@ function SliderRoot(props) {
|
|
|
22
22
|
get value () {
|
|
23
23
|
return local.value;
|
|
24
24
|
},
|
|
25
|
-
get ["data-readonly"] () {
|
|
26
|
-
return local.readOnly ? '' : void 0;
|
|
27
|
-
},
|
|
28
25
|
get ["class"] () {
|
|
29
26
|
return clsx(Slider_module.root, local.class);
|
|
30
27
|
},
|
|
@@ -32,6 +29,9 @@ function SliderRoot(props) {
|
|
|
32
29
|
return local.readOnly;
|
|
33
30
|
}
|
|
34
31
|
}, others, {
|
|
32
|
+
get ["data-readonly"] () {
|
|
33
|
+
return local.readOnly ? '' : void 0;
|
|
34
|
+
},
|
|
35
35
|
"data-slot": "slider-root",
|
|
36
36
|
get children () {
|
|
37
37
|
return local.children;
|
|
@@ -11,7 +11,7 @@ function SliderRoot(props) {
|
|
|
11
11
|
'readOnly',
|
|
12
12
|
'value'
|
|
13
13
|
]);
|
|
14
|
-
return <Slider.Root asChild={local.asChild} defaultValue={local.defaultValue} value={local.value}
|
|
14
|
+
return <Slider.Root asChild={local.asChild} defaultValue={local.defaultValue} value={local.value} class={clsx(Slider_module.root, local.class)} readOnly={local.readOnly} {...others} data-readonly={local.readOnly ? '' : void 0} data-slot="slider-root">
|
|
15
15
|
{local.children}
|
|
16
16
|
</Slider.Root>;
|
|
17
17
|
}
|
|
@@ -179,13 +179,10 @@
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.markerGroup-LGDl6p {
|
|
182
|
-
justify-content: space-between;
|
|
183
182
|
margin-block-start: var(--moduix-slider-marker-group-margin-top, var(--moduix-spacing-2));
|
|
184
|
-
display: flex;
|
|
185
183
|
}
|
|
186
184
|
|
|
187
185
|
.markerGroup-LGDl6p[data-orientation="vertical"] {
|
|
188
|
-
flex-direction: column;
|
|
189
186
|
height: 100%;
|
|
190
187
|
margin: 0;
|
|
191
188
|
}
|
|
@@ -194,7 +191,6 @@
|
|
|
194
191
|
color: var(--moduix-slider-marker-color, var(--moduix-color-muted-foreground));
|
|
195
192
|
font-size: var(--moduix-slider-marker-font-size, var(--moduix-text-xs));
|
|
196
193
|
line-height: var(--moduix-slider-marker-line-height, var(--moduix-line-height-text-xs));
|
|
197
|
-
position: relative;
|
|
198
194
|
}
|
|
199
195
|
|
|
200
196
|
.marker-RkqZdP:before {
|
|
@@ -222,5 +218,11 @@
|
|
|
222
218
|
inset-inline-start: calc(-1 * var(--moduix-spacing-2));
|
|
223
219
|
transform: translate(-50%, -50%);
|
|
224
220
|
}
|
|
221
|
+
|
|
222
|
+
@media (prefers-reduced-motion: reduce) {
|
|
223
|
+
.thumb-dktwnB {
|
|
224
|
+
transition: none;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
225
227
|
}
|
|
226
228
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { className, createComponent, effect, insert, memo, mergeProps, setAttribute, template, use } from "solid-js/web";
|
|
2
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
3
2
|
import { Menu } from "@ark-ui/solid/menu";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { children, createContext, splitProps, useContext } from "solid-js";
|
|
@@ -90,19 +89,23 @@ function SplitButtonAction(props) {
|
|
|
90
89
|
}
|
|
91
90
|
function SplitButtonTrigger(props) {
|
|
92
91
|
const [local, others] = splitProps(props, [
|
|
92
|
+
'aria-label',
|
|
93
93
|
'children',
|
|
94
94
|
'class',
|
|
95
|
+
'ref',
|
|
95
96
|
'size',
|
|
96
|
-
'variant'
|
|
97
|
-
'aria-label'
|
|
97
|
+
'variant'
|
|
98
98
|
]);
|
|
99
99
|
const context = useSplitButtonContext('SplitButton.Trigger');
|
|
100
|
-
const focusVisible = useFocusVisible();
|
|
101
100
|
const resolvedChildren = children(()=>local.children);
|
|
102
101
|
const isIconOnly = ()=>null == resolvedChildren();
|
|
103
102
|
const ariaLabel = ()=>isIconOnly() ? local['aria-label'] ?? 'More actions' : local['aria-label'];
|
|
104
103
|
return createComponent(Menu.Trigger, mergeProps(others, {
|
|
105
104
|
asChild: (triggerProps)=>createComponent(Button, mergeProps(triggerProps, {
|
|
105
|
+
ref (r$) {
|
|
106
|
+
var _ref$2 = local.ref;
|
|
107
|
+
"function" == typeof _ref$2 ? _ref$2(r$) : local.ref = r$;
|
|
108
|
+
},
|
|
106
109
|
"data-slot": "split-button-trigger",
|
|
107
110
|
get size () {
|
|
108
111
|
return local.size ?? context.size();
|
|
@@ -126,9 +129,6 @@ function SplitButtonTrigger(props) {
|
|
|
126
129
|
},
|
|
127
130
|
get ["class"] () {
|
|
128
131
|
return clsx(SplitButton_module.trigger, local.class);
|
|
129
|
-
},
|
|
130
|
-
get ["data-focus-visible"] () {
|
|
131
|
-
return focusVisible() ? '' : void 0;
|
|
132
132
|
}
|
|
133
133
|
}));
|
|
134
134
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useFocusVisible } from "@ark-ui/solid";
|
|
2
1
|
import { Menu } from "@ark-ui/solid/menu";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { children, createContext, splitProps, useContext } from "solid-js";
|
|
@@ -52,20 +51,20 @@ function SplitButtonAction(props) {
|
|
|
52
51
|
}
|
|
53
52
|
function SplitButtonTrigger(props) {
|
|
54
53
|
const [local, others] = splitProps(props, [
|
|
54
|
+
'aria-label',
|
|
55
55
|
'children',
|
|
56
56
|
'class',
|
|
57
|
+
'ref',
|
|
57
58
|
'size',
|
|
58
|
-
'variant'
|
|
59
|
-
'aria-label'
|
|
59
|
+
'variant'
|
|
60
60
|
]);
|
|
61
61
|
const context = useSplitButtonContext('SplitButton.Trigger');
|
|
62
|
-
const focusVisible = useFocusVisible();
|
|
63
62
|
const resolvedChildren = children(()=>local.children);
|
|
64
63
|
const isIconOnly = ()=>null == resolvedChildren();
|
|
65
64
|
const ariaLabel = ()=>isIconOnly() ? local['aria-label'] ?? 'More actions' : local['aria-label'];
|
|
66
|
-
return <Menu.Trigger {...others} asChild={(triggerProps)=><Button {...triggerProps()} data-slot="split-button-trigger" size={local.size ?? context.size()} variant={local.variant ?? context.variant()} class={clsx(SplitButton_module.trigger, local.class)} aria-label={ariaLabel()}>
|
|
65
|
+
return <Menu.Trigger {...others} asChild={(triggerProps)=><Button {...triggerProps()} ref={local.ref} data-slot="split-button-trigger" size={local.size ?? context.size()} variant={local.variant ?? context.variant()} class={clsx(SplitButton_module.trigger, local.class)} aria-label={ariaLabel()}>
|
|
67
66
|
{resolvedChildren() ?? <ChevronDownIcon/>}
|
|
68
|
-
</Button>} data-slot="split-button-trigger" aria-label={ariaLabel()} class={clsx(SplitButton_module.trigger, local.class)}
|
|
67
|
+
</Button>} data-slot="split-button-trigger" aria-label={ariaLabel()} class={clsx(SplitButton_module.trigger, local.class)}/>;
|
|
69
68
|
}
|
|
70
69
|
function SplitButtonPositioner(props) {
|
|
71
70
|
const [local, others] = splitProps(props, [
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
.trigger-DZQRcF {
|
|
13
13
|
min-width: 0;
|
|
14
|
-
padding-inline: var(--moduix-split-button-trigger-padding-x-md, var(--moduix-spacing-3));
|
|
15
14
|
border-start-start-radius: 0;
|
|
16
15
|
border-end-start-radius: 0;
|
|
17
16
|
margin-inline-start: calc(var(--moduix-button-border-width, var(--moduix-border-width-sm)) * -1);
|
|
@@ -41,6 +40,10 @@
|
|
|
41
40
|
padding-inline: var(--moduix-split-button-trigger-padding-x-sm, var(--moduix-spacing-2-5));
|
|
42
41
|
}
|
|
43
42
|
|
|
43
|
+
.trigger-DZQRcF[data-size="md"] {
|
|
44
|
+
padding-inline: var(--moduix-split-button-trigger-padding-x-md, var(--moduix-spacing-3));
|
|
45
|
+
}
|
|
46
|
+
|
|
44
47
|
.trigger-DZQRcF[data-size="lg"] {
|
|
45
48
|
padding-inline: var(--moduix-split-button-trigger-padding-x-lg, var(--moduix-spacing-3-5));
|
|
46
49
|
}
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
outline-offset: var(--moduix-steps-focus-ring-offset, var(--moduix-focus-ring-offset));
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
:is(.prevTrigger-n0gQx3, .nextTrigger-y2dzVS):
|
|
267
|
+
:is(.prevTrigger-n0gQx3, .nextTrigger-y2dzVS):disabled {
|
|
268
268
|
opacity: var(--moduix-steps-disabled-opacity, var(--moduix-opacity-disabled));
|
|
269
269
|
cursor: default;
|
|
270
270
|
}
|
|
@@ -9,13 +9,13 @@ function SwapRoot(props) {
|
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
11
|
return createComponent(Swap.Root, mergeProps({
|
|
12
|
-
get ["data-animation"] () {
|
|
13
|
-
return local.animation ?? 'scale';
|
|
14
|
-
},
|
|
15
12
|
get ["class"] () {
|
|
16
13
|
return clsx(Swap_module.root, local.class);
|
|
17
14
|
}
|
|
18
15
|
}, others, {
|
|
16
|
+
get ["data-animation"] () {
|
|
17
|
+
return local.animation ?? 'scale';
|
|
18
|
+
},
|
|
19
19
|
"data-slot": "swap-root"
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
@@ -25,13 +25,13 @@ function SwapRootProvider(props) {
|
|
|
25
25
|
'class'
|
|
26
26
|
]);
|
|
27
27
|
return createComponent(Swap.RootProvider, mergeProps({
|
|
28
|
-
get ["data-animation"] () {
|
|
29
|
-
return local.animation ?? 'scale';
|
|
30
|
-
},
|
|
31
28
|
get ["class"] () {
|
|
32
29
|
return clsx(Swap_module.root, local.class);
|
|
33
30
|
}
|
|
34
31
|
}, others, {
|
|
32
|
+
get ["data-animation"] () {
|
|
33
|
+
return local.animation ?? 'scale';
|
|
34
|
+
},
|
|
35
35
|
"data-slot": "swap-root-provider"
|
|
36
36
|
}));
|
|
37
37
|
}
|
|
@@ -7,14 +7,14 @@ function SwapRoot(props) {
|
|
|
7
7
|
'animation',
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
|
-
return <Swap.Root
|
|
10
|
+
return <Swap.Root class={clsx(Swap_module.root, local.class)} {...others} data-animation={local.animation ?? 'scale'} data-slot="swap-root"/>;
|
|
11
11
|
}
|
|
12
12
|
function SwapRootProvider(props) {
|
|
13
13
|
const [local, others] = splitProps(props, [
|
|
14
14
|
'animation',
|
|
15
15
|
'class'
|
|
16
16
|
]);
|
|
17
|
-
return <Swap.RootProvider
|
|
17
|
+
return <Swap.RootProvider class={clsx(Swap_module.root, local.class)} {...others} data-animation={local.animation ?? 'scale'} data-slot="swap-root-provider"/>;
|
|
18
18
|
}
|
|
19
19
|
function SwapIndicator(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
vertical-align: middle;
|
|
4
4
|
grid-template-areas: "swap";
|
|
5
5
|
place-items: center;
|
|
6
|
-
display: inline-grid;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.root-hsHHcI[data-animation="flip"] {
|
|
@@ -48,10 +47,8 @@
|
|
|
48
47
|
|
|
49
48
|
.indicator-S0xChs {
|
|
50
49
|
color: inherit;
|
|
51
|
-
grid-area: swap;
|
|
52
50
|
justify-content: center;
|
|
53
51
|
align-items: center;
|
|
54
|
-
display: inline-flex;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -14,13 +14,13 @@ function SwitchRoot(props) {
|
|
|
14
14
|
get asChild () {
|
|
15
15
|
return local.asChild;
|
|
16
16
|
},
|
|
17
|
-
get ["data-size"] () {
|
|
18
|
-
return local.size ?? 'md';
|
|
19
|
-
},
|
|
20
17
|
get ["class"] () {
|
|
21
18
|
return clsx(Switch_module.root, local.class);
|
|
22
19
|
}
|
|
23
20
|
}, others, {
|
|
21
|
+
get ["data-size"] () {
|
|
22
|
+
return local.size ?? 'md';
|
|
23
|
+
},
|
|
24
24
|
"data-slot": "switch-root",
|
|
25
25
|
get children () {
|
|
26
26
|
return local.children;
|
|
@@ -38,13 +38,13 @@ function SwitchRootProvider(props) {
|
|
|
38
38
|
get asChild () {
|
|
39
39
|
return local.asChild;
|
|
40
40
|
},
|
|
41
|
-
get ["data-size"] () {
|
|
42
|
-
return local.size ?? 'md';
|
|
43
|
-
},
|
|
44
41
|
get ["class"] () {
|
|
45
42
|
return clsx(Switch_module.root, local.class);
|
|
46
43
|
}
|
|
47
44
|
}, others, {
|
|
45
|
+
get ["data-size"] () {
|
|
46
|
+
return local.size ?? 'md';
|
|
47
|
+
},
|
|
48
48
|
"data-slot": "switch-root-provider",
|
|
49
49
|
get children () {
|
|
50
50
|
return local.children;
|
|
@@ -9,7 +9,7 @@ function SwitchRoot(props) {
|
|
|
9
9
|
'class',
|
|
10
10
|
'size'
|
|
11
11
|
]);
|
|
12
|
-
return <Switch.Root asChild={local.asChild}
|
|
12
|
+
return <Switch.Root asChild={local.asChild} class={clsx(Switch_module.root, local.class)} {...others} data-size={local.size ?? 'md'} data-slot="switch-root">
|
|
13
13
|
{local.children}
|
|
14
14
|
</Switch.Root>;
|
|
15
15
|
}
|
|
@@ -20,7 +20,7 @@ function SwitchRootProvider(props) {
|
|
|
20
20
|
'class',
|
|
21
21
|
'size'
|
|
22
22
|
]);
|
|
23
|
-
return <Switch.RootProvider asChild={local.asChild}
|
|
23
|
+
return <Switch.RootProvider asChild={local.asChild} class={clsx(Switch_module.root, local.class)} {...others} data-size={local.size ?? 'md'} data-slot="switch-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</Switch.RootProvider>;
|
|
26
26
|
}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
.control-_x56fO {
|
|
20
20
|
box-sizing: border-box;
|
|
21
|
-
width: var(--_switch-width,
|
|
21
|
+
width: var(--_switch-width, 2.75rem);
|
|
22
22
|
height: var(--_switch-height, var(--moduix-size-xs));
|
|
23
|
-
--_switch-thumb-translate-default: calc(var(--_switch-width,
|
|
23
|
+
--_switch-thumb-translate-default: calc(var(--_switch-width, 2.75rem) - var(--_switch-thumb-size, var(--moduix-spacing-5)) -
|
|
24
24
|
(var(--moduix-switch-padding, var(--moduix-spacing-0-5)) * 2) -
|
|
25
25
|
(var(--moduix-switch-border-width, var(--moduix-border-width-sm)) * 2));
|
|
26
26
|
border: var(--moduix-switch-border-width, var(--moduix-border-width-sm)) solid
|
|
@@ -84,8 +84,10 @@
|
|
|
84
84
|
background-color: var(--moduix-table-row-bg-striped, color-mix(in oklab, var(--moduix-color-muted) 35%, transparent));
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
@media (hover: hover) {
|
|
88
|
+
.root-iUez_7[data-interactive] .body-JqLHru .row-vTGkhP:not([data-empty]):hover {
|
|
89
|
+
background-color: var(--moduix-table-row-bg-hover, var(--moduix-color-muted));
|
|
90
|
+
}
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
.root-iUez_7[data-interactive] .body-JqLHru .row-vTGkhP:not([data-empty]):focus-within {
|
|
@@ -10,9 +10,6 @@ function TabsRoot(props) {
|
|
|
10
10
|
'variant'
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(Tabs.Root, mergeProps({
|
|
13
|
-
get ["data-variant"] () {
|
|
14
|
-
return memo(()=>'vertical' === local.orientation)() ? 'default' : local.variant ?? 'default';
|
|
15
|
-
},
|
|
16
13
|
get ["class"] () {
|
|
17
14
|
return clsx(Tabs_module.root, local.class);
|
|
18
15
|
},
|
|
@@ -20,6 +17,9 @@ function TabsRoot(props) {
|
|
|
20
17
|
return local.orientation;
|
|
21
18
|
}
|
|
22
19
|
}, others, {
|
|
20
|
+
get ["data-variant"] () {
|
|
21
|
+
return memo(()=>'vertical' === local.orientation)() ? 'default' : local.variant ?? 'default';
|
|
22
|
+
},
|
|
23
23
|
"data-slot": "tabs-root"
|
|
24
24
|
}));
|
|
25
25
|
}
|
|
@@ -31,9 +31,6 @@ function TabsRootProvider(props) {
|
|
|
31
31
|
]);
|
|
32
32
|
const orientation = ()=>local.value().getRootProps()['data-orientation'];
|
|
33
33
|
return createComponent(Tabs.RootProvider, mergeProps({
|
|
34
|
-
get ["data-variant"] () {
|
|
35
|
-
return memo(()=>'vertical' === orientation())() ? 'default' : local.variant ?? 'default';
|
|
36
|
-
},
|
|
37
34
|
get ["class"] () {
|
|
38
35
|
return clsx(Tabs_module.root, local.class);
|
|
39
36
|
},
|
|
@@ -41,6 +38,9 @@ function TabsRootProvider(props) {
|
|
|
41
38
|
return local.value;
|
|
42
39
|
}
|
|
43
40
|
}, others, {
|
|
41
|
+
get ["data-variant"] () {
|
|
42
|
+
return memo(()=>'vertical' === orientation())() ? 'default' : local.variant ?? 'default';
|
|
43
|
+
},
|
|
44
44
|
"data-slot": "tabs-root-provider"
|
|
45
45
|
}));
|
|
46
46
|
}
|
|
@@ -8,7 +8,7 @@ function TabsRoot(props) {
|
|
|
8
8
|
'orientation',
|
|
9
9
|
'variant'
|
|
10
10
|
]);
|
|
11
|
-
return <Tabs.Root data-variant={'vertical' === local.orientation ? 'default' : local.variant ?? 'default'}
|
|
11
|
+
return <Tabs.Root class={clsx(Tabs_module.root, local.class)} orientation={local.orientation} {...others} data-variant={'vertical' === local.orientation ? 'default' : local.variant ?? 'default'} data-slot="tabs-root"/>;
|
|
12
12
|
}
|
|
13
13
|
function TabsRootProvider(props) {
|
|
14
14
|
const [local, others] = splitProps(props, [
|
|
@@ -17,7 +17,7 @@ function TabsRootProvider(props) {
|
|
|
17
17
|
'variant'
|
|
18
18
|
]);
|
|
19
19
|
const orientation = ()=>local.value().getRootProps()['data-orientation'];
|
|
20
|
-
return <Tabs.RootProvider data-variant={'vertical' === orientation() ? 'default' : local.variant ?? 'default'}
|
|
20
|
+
return <Tabs.RootProvider class={clsx(Tabs_module.root, local.class)} value={local.value} {...others} data-variant={'vertical' === orientation() ? 'default' : local.variant ?? 'default'} data-slot="tabs-root-provider"/>;
|
|
21
21
|
}
|
|
22
22
|
function TabsList(props) {
|
|
23
23
|
const [local, others] = splitProps(props, [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.root-r9cKMR[data-variant="line"]
|
|
51
|
+
.root-r9cKMR[data-variant="line"] .list-HWuixw {
|
|
52
52
|
border-width: 0 0 var(--moduix-tabs-list-border-width, var(--moduix-border-width-sm));
|
|
53
53
|
background-color: #0000;
|
|
54
54
|
border-radius: 0;
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
translate: 0 -50%;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.root-r9cKMR[data-variant="line"]
|
|
137
|
+
.root-r9cKMR[data-variant="line"] .indicator-Eq3gMQ {
|
|
138
138
|
--transition-duration: var(--moduix-tabs-line-indicator-transition-duration, var(--moduix-duration-normal));
|
|
139
139
|
--transition-timing-function: var(--moduix-tabs-line-indicator-transition-timing-function, var(--moduix-ease-in-out));
|
|
140
140
|
height: var(--moduix-tabs-line-indicator-size, var(--moduix-spacing-0-5));
|
|
@@ -130,7 +130,6 @@
|
|
|
130
130
|
height: var(--moduix-tags-input-input-height, var(--moduix-size-xs));
|
|
131
131
|
padding: 0 var(--moduix-tags-input-input-padding-x, var(--moduix-spacing-1));
|
|
132
132
|
color: inherit;
|
|
133
|
-
font: inherit;
|
|
134
133
|
font-size: var(--moduix-tags-input-input-font-size, var(--moduix-input-font-size, var(--moduix-text-sm)));
|
|
135
134
|
line-height: var(--moduix-tags-input-input-line-height, var(--moduix-input-line-height, var(--moduix-line-height-text-sm)));
|
|
136
135
|
background-color: #0000;
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
flex: 0 1 var(--moduix-tags-input-item-input-width, 7rem);
|
|
152
151
|
}
|
|
153
152
|
|
|
154
|
-
.input-uYY2LW[data-readonly] {
|
|
153
|
+
.input-uYY2LW[data-readonly], .control-aj7rxt[data-readonly] .itemDeleteTrigger-Fx1XkC {
|
|
155
154
|
display: none;
|
|
156
155
|
}
|
|
157
156
|
|
|
@@ -182,8 +181,10 @@
|
|
|
182
181
|
flex: none;
|
|
183
182
|
}
|
|
184
183
|
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
@media (hover: hover) {
|
|
185
|
+
.itemDeleteTrigger-Fx1XkC:hover {
|
|
186
|
+
background-color: var(--moduix-tags-input-trigger-bg-hover, color-mix(in oklab, currentColor 12%, transparent));
|
|
187
|
+
}
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
.itemDeleteTrigger-Fx1XkC:focus-visible {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./Toast_module.css";
|
|
2
2
|
const Toast_module = {
|
|
3
|
-
toaster: "toaster-m5bxJd",
|
|
4
3
|
root: "root-p_jC2T",
|
|
5
4
|
title: "title-MTy3zi",
|
|
6
5
|
description: "description-AIx4K_",
|
|
7
6
|
actionTrigger: "actionTrigger-ftU5e1",
|
|
8
|
-
closeTrigger: "closeTrigger-IYs7Wg"
|
|
7
|
+
closeTrigger: "closeTrigger-IYs7Wg",
|
|
8
|
+
toaster: "toaster-m5bxJd"
|
|
9
9
|
};
|
|
10
10
|
export default Toast_module;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./Toast_module.css";
|
|
2
2
|
const Toast_module = {
|
|
3
|
-
toaster: "toaster-m5bxJd",
|
|
4
3
|
root: "root-p_jC2T",
|
|
5
4
|
title: "title-MTy3zi",
|
|
6
5
|
description: "description-AIx4K_",
|
|
7
6
|
actionTrigger: "actionTrigger-ftU5e1",
|
|
8
|
-
closeTrigger: "closeTrigger-IYs7Wg"
|
|
7
|
+
closeTrigger: "closeTrigger-IYs7Wg",
|
|
8
|
+
toaster: "toaster-m5bxJd"
|
|
9
9
|
};
|
|
10
10
|
export default Toast_module;
|