@moduix/react 2.2.4 → 2.2.5
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/README.md +1 -1
- package/dist/components/accordion/Accordion_module.css +12 -1
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/alert/Alert.js +1 -1
- package/dist/components/alert/Alert_module.css +22 -48
- package/dist/components/angle-slider/AngleSlider.d.ts +9 -3
- package/dist/components/angle-slider/AngleSlider.js +34 -10
- package/dist/components/angle-slider/AngleSlider_module.css +24 -5
- package/dist/components/aspect-ratio/AspectRatio.js +3 -3
- package/dist/components/aspect-ratio/AspectRatio_module.css +9 -2
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/components/avatar/Avatar.js +39 -3
- package/dist/components/avatar/Avatar.module.js +2 -1
- package/dist/components/avatar/Avatar_module.css +8 -1
- package/dist/components/badge/Badge.d.ts +1 -0
- package/dist/components/badge/Badge.js +15 -5
- package/dist/components/badge/Badge_module.css +45 -30
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +4 -6
- package/dist/components/breadcrumbs/Breadcrumbs.js +4 -3
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +1 -1
- package/dist/components/button/Button.js +9 -1
- package/dist/components/button/Button_module.css +0 -7
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +11 -0
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/card/Card_module.css +79 -29
- package/dist/components/carousel/Carousel_module.css +27 -5
- package/dist/components/checkbox/Checkbox.js +9 -3
- package/dist/components/checkbox/Checkbox_module.css +11 -3
- package/dist/components/clipboard/Clipboard_module.css +13 -1
- package/dist/components/close-button/CloseButton.js +14 -3
- package/dist/components/collapsible/Collapsible_module.css +11 -0
- package/dist/components/color-picker/ColorPicker.js +16 -6
- package/dist/components/color-picker/ColorPicker.module.js +2 -0
- package/dist/components/color-picker/ColorPicker_module.css +84 -9
- package/dist/components/combobox/Combobox.d.ts +1 -1
- package/dist/components/combobox/Combobox.js +2 -1
- package/dist/components/combobox/Combobox_module.css +1 -1
- package/dist/components/command-palette/CommandPalette.js +10 -18
- package/dist/components/command-palette/CommandPalette.module.js +0 -1
- package/dist/components/command-palette/CommandPalette_module.css +5 -15
- package/dist/components/container/Container_module.css +11 -11
- package/dist/components/date-picker/DatePicker.js +15 -6
- package/dist/components/dialog/Dialog.d.ts +3 -6
- package/dist/components/dialog/Dialog.js +19 -15
- package/dist/components/dialog/Dialog_module.css +12 -1
- package/dist/components/drawer/Drawer.d.ts +3 -6
- package/dist/components/drawer/Drawer.js +19 -15
- package/dist/components/drawer/Drawer_module.css +17 -6
- package/dist/components/empty/Empty_module.css +2 -2
- package/dist/components/field/Field_module.css +4 -0
- package/dist/components/fieldset/Fieldset_module.css +3 -0
- package/dist/components/file-upload/FileUpload.js +1 -1
- package/dist/components/floating-panel/FloatingPanel.d.ts +1 -2
- package/dist/components/floating-panel/FloatingPanel.js +7 -5
- package/dist/components/heading/Heading.js +2 -2
- package/dist/components/highlight/Highlight.js +2 -2
- package/dist/components/hover-card/HoverCard.js +0 -2
- package/dist/components/hover-card/HoverCard_module.css +19 -8
- package/dist/components/image/Image.d.ts +6 -2
- package/dist/components/image/Image.js +2 -1
- package/dist/components/image-cropper/ImageCropper_module.css +0 -1
- package/dist/components/input/Input_module.css +2 -2
- package/dist/components/input-group/InputGroup.js +7 -7
- package/dist/components/kbd/Kbd.js +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +5 -8
- package/dist/components/lightbox/Lightbox.js +20 -16
- package/dist/components/lightbox/Lightbox_module.css +7 -0
- package/dist/components/list/List_module.css +3 -4
- package/dist/components/listbox/Listbox.d.ts +3 -6
- package/dist/components/listbox/Listbox.js +15 -12
- package/dist/components/listbox/Listbox_module.css +2 -2
- package/dist/components/menu/Menu.d.ts +4 -8
- package/dist/components/menu/Menu.js +25 -20
- package/dist/components/menu/Menu_module.css +10 -0
- package/dist/components/native-select/NativeSelect_module.css +1 -1
- package/dist/components/pagination/Pagination.js +2 -2
- package/dist/components/pagination/Pagination_module.css +1 -1
- package/dist/components/password-input/PasswordInput_module.css +4 -4
- package/dist/components/popover/Popover.d.ts +4 -7
- package/dist/components/popover/Popover.js +24 -18
- package/dist/components/popover/Popover_module.css +18 -8
- package/dist/components/progress-circular/ProgressCircular_module.css +8 -1
- package/dist/components/progress-linear/ProgressLinear_module.css +1 -0
- package/dist/components/qr-code/QrCode_module.css +2 -3
- package/dist/components/radio-group/RadioGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea_module.css +15 -0
- package/dist/components/segment-group/SegmentGroup.module.js +1 -1
- package/dist/components/segment-group/SegmentGroup_module.css +4 -4
- package/dist/components/select/Select.d.ts +3 -6
- package/dist/components/select/Select.js +16 -12
- package/dist/components/select/Select_module.css +15 -1
- package/dist/components/separator/Separator.js +2 -2
- package/dist/components/separator/Separator_module.css +3 -3
- package/dist/components/sidebar/Sidebar.js +1 -1
- package/dist/components/sidebar/Sidebar_module.css +9 -8
- package/dist/components/signature-pad/SignaturePad.d.ts +3 -5
- package/dist/components/signature-pad/SignaturePad.js +44 -18
- package/dist/components/simple-grid/SimpleGrid.js +1 -0
- package/dist/components/slider/Slider_module.css +9 -5
- package/dist/components/split-button/SplitButton.d.ts +4 -0
- package/dist/components/split-button/SplitButton.js +4 -1
- package/dist/components/splitter/Splitter.js +3 -2
- package/dist/components/splitter/Splitter_module.css +21 -14
- package/dist/components/swap/Swap_module.css +22 -22
- package/dist/components/switch/Switch.js +9 -3
- package/dist/components/switch/Switch_module.css +30 -23
- package/dist/components/table/Table_module.css +15 -11
- package/dist/components/tabs/Tabs.js +5 -2
- package/dist/components/tag/Tag_module.css +17 -14
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text_module.css +2 -1
- package/dist/components/timer/Timer.d.ts +2 -4
- package/dist/components/timer/Timer.js +5 -4
- package/dist/components/toast/Toast_module.css +37 -43
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -2
- package/dist/components/toggle-group/ToggleGroup_module.css +5 -7
- package/dist/components/tooltip/Tooltip_module.css +11 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +2 -1
- package/dist/components/tour/Tour_module.css +16 -4
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView_module.css +1 -1
- package/dist/styles/reset.css +33 -0
- package/package.json +6 -6
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
--_list-gap: var(--moduix-list-gap, var(--moduix-list-gap-sm, var(--moduix-spacing-2)));
|
|
6
6
|
--_list-line-height: var(--moduix-list-line-height, var(--moduix-list-line-height-md, var(--moduix-line-height-text-md)));
|
|
7
7
|
box-sizing: border-box;
|
|
8
|
+
gap: var(--_list-gap);
|
|
8
9
|
color: var(--_list-color);
|
|
9
10
|
font-family: var(--moduix-list-font-family, inherit);
|
|
10
11
|
font-size: var(--_list-font-size);
|
|
@@ -12,9 +13,11 @@
|
|
|
12
13
|
line-height: var(--_list-line-height);
|
|
13
14
|
letter-spacing: var(--moduix-list-letter-spacing, 0);
|
|
14
15
|
overflow-wrap: break-word;
|
|
16
|
+
flex-direction: column;
|
|
15
17
|
margin: 0;
|
|
16
18
|
padding: 0;
|
|
17
19
|
list-style-position: outside;
|
|
20
|
+
display: flex;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
23
|
.root-PNnfB8[data-scope="list"][data-part="root"][data-gap="xs"] {
|
|
@@ -41,10 +44,6 @@
|
|
|
41
44
|
--_list-gap: var(--moduix-list-gap, var(--moduix-list-gap-2xl, var(--moduix-spacing-6)));
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
.root-PNnfB8[data-scope="list"][data-part="root"] > li + li {
|
|
45
|
-
margin-block-start: var(--_list-gap);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
47
|
.root-PNnfB8[data-scope="list"][data-part="root"] > li::marker {
|
|
49
48
|
color: var(--moduix-list-marker-color, currentColor);
|
|
50
49
|
font-weight: var(--moduix-list-marker-font-weight, inherit);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Listbox as ListboxPrimitive, useListbox, useListboxContext, useListboxItemContext } from '@ark-ui/react/listbox';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
declare function ListboxFilter({ className, children, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4
|
-
declare function ListboxItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
5
|
-
declare function ListboxItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
6
|
-
declare function ListboxItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
7
4
|
declare const Listbox: ListboxPrimitive.RootComponent & {
|
|
8
5
|
Root: ListboxPrimitive.RootComponent;
|
|
9
6
|
RootProvider: ListboxPrimitive.RootProviderComponent;
|
|
@@ -21,9 +18,9 @@ declare const Listbox: ListboxPrimitive.RootComponent & {
|
|
|
21
18
|
ValueText: import("react").ForwardRefExoticComponent<Omit<ListboxPrimitive.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
19
|
Context: <T extends unknown>(props: ListboxPrimitive.ContextProps<T>) => import("react").ReactNode;
|
|
23
20
|
ItemContext: (props: ListboxPrimitive.ItemContextProps) => import("react").ReactNode;
|
|
24
|
-
ItemTextContent:
|
|
25
|
-
ItemTextIcon:
|
|
26
|
-
ItemTextLabel:
|
|
21
|
+
ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
27
24
|
useListbox: <T extends unknown>(props: import("@ark-ui/react/listbox").UseListboxProps<T>) => import("@ark-ui/react/listbox").UseListboxReturn<T>;
|
|
28
25
|
useListboxContext: () => import("@ark-ui/react/listbox").UseListboxContext<any>;
|
|
29
26
|
useListboxItemContext: () => import("@ark-ui/react/listbox").UseListboxItemContext;
|
|
@@ -135,27 +135,30 @@ const Listbox_ListboxValueText = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
135
135
|
...props
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
-
|
|
139
|
-
return /*#__PURE__*/ jsx(
|
|
138
|
+
const Listbox_ListboxItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
139
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
140
|
+
ref: ref,
|
|
140
141
|
"data-slot": "listbox-item-text-content",
|
|
141
142
|
className: clsx(Listbox_module.itemTextContent, normalizeClassName(className)),
|
|
142
143
|
...props
|
|
143
144
|
});
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return /*#__PURE__*/ jsx(
|
|
145
|
+
});
|
|
146
|
+
const Listbox_ListboxItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
147
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
148
|
+
ref: ref,
|
|
147
149
|
"data-slot": "listbox-item-text-icon",
|
|
148
150
|
className: clsx(Listbox_module.itemTextIcon, normalizeClassName(className)),
|
|
149
151
|
...props
|
|
150
152
|
});
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return /*#__PURE__*/ jsx(
|
|
153
|
+
});
|
|
154
|
+
const Listbox_ListboxItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
155
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
156
|
+
ref: ref,
|
|
154
157
|
"data-slot": "listbox-item-text-label",
|
|
155
158
|
className: clsx(Listbox_module.itemTextLabel, normalizeClassName(className)),
|
|
156
159
|
...props
|
|
157
160
|
});
|
|
158
|
-
}
|
|
161
|
+
});
|
|
159
162
|
const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
|
|
160
163
|
Root: Listbox_ListboxRoot,
|
|
161
164
|
RootProvider: Listbox_ListboxRootProvider,
|
|
@@ -173,9 +176,9 @@ const Listbox_Listbox = Object.assign(Listbox_ListboxRoot, {
|
|
|
173
176
|
ValueText: Listbox_ListboxValueText,
|
|
174
177
|
Context: Listbox.Context,
|
|
175
178
|
ItemContext: Listbox.ItemContext,
|
|
176
|
-
ItemTextContent:
|
|
177
|
-
ItemTextIcon:
|
|
178
|
-
ItemTextLabel:
|
|
179
|
+
ItemTextContent: Listbox_ListboxItemTextContent,
|
|
180
|
+
ItemTextIcon: Listbox_ListboxItemTextIcon,
|
|
181
|
+
ItemTextLabel: Listbox_ListboxItemTextLabel,
|
|
179
182
|
useListbox: useListbox,
|
|
180
183
|
useListboxContext: useListboxContext,
|
|
181
184
|
useListboxItemContext: useListboxItemContext
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.filter-GcwWjv + .content-bWizSr {
|
|
77
|
-
margin-top: calc(-1 * var(--moduix-listbox-root-gap, var(--moduix-spacing-3)));
|
|
78
77
|
border-top-left-radius: 0;
|
|
79
78
|
border-top-right-radius: 0;
|
|
79
|
+
margin-block-start: calc(-1 * var(--moduix-listbox-root-gap, var(--moduix-spacing-3)));
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.filterIcon-sysxT1 {
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.itemGroup-R3S9Z9 + .itemGroup-R3S9Z9 {
|
|
179
|
-
margin-
|
|
179
|
+
margin-block-start: var(--moduix-listbox-item-group-gap, var(--moduix-spacing-2));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.itemGroupLabel-t4Kb1i {
|
|
@@ -18,10 +18,6 @@ declare function MenuRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...p
|
|
|
18
18
|
declare function MenuRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: MenuRootProviderProps): import("react").JSX.Element;
|
|
19
19
|
declare function MenuTriggerIcon({ className, children, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
20
20
|
declare function MenuTriggerItemIcon({ className, children, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
21
|
-
declare function MenuItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
22
|
-
declare function MenuItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
23
|
-
declare function MenuItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
24
|
-
declare function MenuItemShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
25
21
|
declare const Menu: typeof MenuRoot & {
|
|
26
22
|
Root: typeof MenuRoot;
|
|
27
23
|
RootProvider: typeof MenuRootProvider;
|
|
@@ -45,10 +41,10 @@ declare const Menu: typeof MenuRoot & {
|
|
|
45
41
|
CheckboxItem: import("react").ForwardRefExoticComponent<Omit<MenuCheckboxItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
42
|
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
47
43
|
ItemText: import("react").ForwardRefExoticComponent<Omit<MenuPrimitive.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
48
|
-
ItemTextContent:
|
|
49
|
-
ItemTextIcon:
|
|
50
|
-
ItemTextLabel:
|
|
51
|
-
ItemShortcut:
|
|
44
|
+
ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
45
|
+
ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
46
|
+
ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
47
|
+
ItemShortcut: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
52
48
|
ItemContext: (props: MenuPrimitive.ItemContextProps) => import("react").ReactNode;
|
|
53
49
|
};
|
|
54
50
|
export { Menu, useMenu, useMenuContext, useMenuItemContext };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ark } from "@ark-ui/react/factory";
|
|
3
4
|
import { Menu, useMenu, useMenuContext, useMenuItemContext } from "@ark-ui/react/menu";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { Children, forwardRef, isValidElement } from "react";
|
|
@@ -219,34 +220,38 @@ const Menu_MenuItemText = /*#__PURE__*/ forwardRef(function({ className, ...prop
|
|
|
219
220
|
...props
|
|
220
221
|
});
|
|
221
222
|
});
|
|
222
|
-
|
|
223
|
-
return /*#__PURE__*/ jsx(
|
|
223
|
+
const Menu_MenuItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
224
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
225
|
+
ref: ref,
|
|
224
226
|
"data-slot": "menu-item-text-content",
|
|
225
|
-
className: clsx(Menu_module.itemTextContent, className),
|
|
227
|
+
className: clsx(Menu_module.itemTextContent, normalizeClassName(className)),
|
|
226
228
|
...props
|
|
227
229
|
});
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
return /*#__PURE__*/ jsx(
|
|
230
|
+
});
|
|
231
|
+
const Menu_MenuItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
232
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
233
|
+
ref: ref,
|
|
231
234
|
"data-slot": "menu-item-text-icon",
|
|
232
|
-
className: clsx(Menu_module.itemTextIcon, className),
|
|
235
|
+
className: clsx(Menu_module.itemTextIcon, normalizeClassName(className)),
|
|
233
236
|
...props
|
|
234
237
|
});
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
return /*#__PURE__*/ jsx(
|
|
238
|
+
});
|
|
239
|
+
const Menu_MenuItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
240
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
241
|
+
ref: ref,
|
|
238
242
|
"data-slot": "menu-item-text-label",
|
|
239
|
-
className: clsx(Menu_module.itemTextLabel, className),
|
|
243
|
+
className: clsx(Menu_module.itemTextLabel, normalizeClassName(className)),
|
|
240
244
|
...props
|
|
241
245
|
});
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return /*#__PURE__*/ jsx(
|
|
246
|
+
});
|
|
247
|
+
const Menu_MenuItemShortcut = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
248
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
249
|
+
ref: ref,
|
|
245
250
|
"data-slot": "menu-item-shortcut",
|
|
246
|
-
className: clsx(Menu_module.itemShortcut, className),
|
|
251
|
+
className: clsx(Menu_module.itemShortcut, normalizeClassName(className)),
|
|
247
252
|
...props
|
|
248
253
|
});
|
|
249
|
-
}
|
|
254
|
+
});
|
|
250
255
|
const Menu_Menu = Object.assign(MenuRoot, {
|
|
251
256
|
Root: MenuRoot,
|
|
252
257
|
RootProvider: MenuRootProvider,
|
|
@@ -270,10 +275,10 @@ const Menu_Menu = Object.assign(MenuRoot, {
|
|
|
270
275
|
CheckboxItem: Menu_MenuCheckboxItem,
|
|
271
276
|
ItemIndicator: Menu_MenuItemIndicator,
|
|
272
277
|
ItemText: Menu_MenuItemText,
|
|
273
|
-
ItemTextContent:
|
|
274
|
-
ItemTextIcon:
|
|
275
|
-
ItemTextLabel:
|
|
276
|
-
ItemShortcut:
|
|
278
|
+
ItemTextContent: Menu_MenuItemTextContent,
|
|
279
|
+
ItemTextIcon: Menu_MenuItemTextIcon,
|
|
280
|
+
ItemTextLabel: Menu_MenuItemTextLabel,
|
|
281
|
+
ItemShortcut: Menu_MenuItemShortcut,
|
|
277
282
|
ItemContext: Menu.ItemContext
|
|
278
283
|
});
|
|
279
284
|
export { Menu_Menu as Menu, useMenu, useMenuContext, useMenuItemContext };
|
|
@@ -355,6 +355,16 @@
|
|
|
355
355
|
border: 0;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
+
@media (prefers-reduced-motion: reduce) {
|
|
359
|
+
.trigger-GnJcCa, .contextTrigger-jyrQRV {
|
|
360
|
+
transition: none;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.content-yFF7GN[data-state] {
|
|
364
|
+
animation: none;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
358
368
|
@keyframes menuContentIn-XDpUnW {
|
|
359
369
|
from {
|
|
360
370
|
opacity: var(--moduix-menu-popup-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
opacity var(--moduix-select-transition, var(--moduix-transition-default));
|
|
33
33
|
margin: 0;
|
|
34
34
|
padding-inline-start: var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3));
|
|
35
|
-
padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-
|
|
35
|
+
padding-inline-end: calc(var(--moduix-select-action-offset-right, var(--moduix-spacing-2)) +
|
|
36
36
|
var(--moduix-select-action-size, var(--moduix-spacing-6)) +
|
|
37
37
|
var(--moduix-select-trigger-padding-x-start, var(--moduix-spacing-3)));
|
|
38
38
|
}
|
|
@@ -97,9 +97,9 @@ function PaginationItems() {
|
|
|
97
97
|
children: (pagination)=>pagination.pages.map((page, index)=>'page' === page.type ? /*#__PURE__*/ jsx(Pagination_PaginationItem, {
|
|
98
98
|
...page,
|
|
99
99
|
children: page.value
|
|
100
|
-
},
|
|
100
|
+
}, page.value) : /*#__PURE__*/ jsx(Pagination_PaginationEllipsis, {
|
|
101
101
|
index: index
|
|
102
|
-
}, index))
|
|
102
|
+
}, `ellipsis-${index}`))
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
const Pagination_Pagination = Object.assign(Pagination_PaginationRoot, {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
gap: var(--moduix-pagination-trigger-gap, var(--moduix-spacing-2));
|
|
28
28
|
border: var(--moduix-pagination-item-border-width, var(--moduix-border-width-sm)) solid
|
|
29
29
|
var(--moduix-pagination-item-border-color, var(--moduix-color-border));
|
|
30
|
-
padding-inline: var(--moduix-pagination-item-padding-inline, var(--moduix-spacing-
|
|
30
|
+
padding-inline: var(--moduix-pagination-item-padding-inline, var(--moduix-spacing-2));
|
|
31
31
|
background-color: var(--moduix-pagination-item-bg, var(--moduix-color-background));
|
|
32
32
|
color: var(--moduix-pagination-item-color, var(--moduix-color-foreground));
|
|
33
33
|
-webkit-user-select: none;
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
display: flex;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.root-OrlafY[data-disabled] {
|
|
13
|
+
opacity: var(--moduix-password-input-disabled-opacity, var(--moduix-field-disabled-opacity, var(--moduix-input-disabled-opacity, var(--moduix-opacity-disabled))));
|
|
14
|
+
}
|
|
15
|
+
|
|
12
16
|
.label-ZAQCRM {
|
|
13
17
|
align-items: center;
|
|
14
18
|
gap: var(--moduix-password-input-label-gap, var(--moduix-field-label-gap, var(--moduix-spacing-1)));
|
|
@@ -19,10 +23,6 @@
|
|
|
19
23
|
display: inline-flex;
|
|
20
24
|
}
|
|
21
25
|
|
|
22
|
-
.label-ZAQCRM[data-disabled] {
|
|
23
|
-
opacity: var(--moduix-password-input-disabled-opacity, var(--moduix-field-disabled-opacity, var(--moduix-input-disabled-opacity, var(--moduix-opacity-disabled))));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
26
|
.control-h2eb01 {
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
width: 100%;
|
|
@@ -3,11 +3,8 @@ import type { ComponentProps } from 'react';
|
|
|
3
3
|
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
4
4
|
type PopoverRootProps = ComponentProps<typeof PopoverPrimitive.Root> & OverlayPortalProps;
|
|
5
5
|
type PopoverRootProviderProps = ComponentProps<typeof PopoverPrimitive.RootProvider> & OverlayPortalProps;
|
|
6
|
-
declare function PopoverRoot({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: PopoverRootProps): import("react").JSX.Element;
|
|
6
|
+
declare function PopoverRoot({ lazyMount, modal, portalled, portalRef, unmountOnExit, ...props }: PopoverRootProps): import("react").JSX.Element;
|
|
7
7
|
declare function PopoverRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, value, ...props }: PopoverRootProviderProps): import("react").JSX.Element;
|
|
8
|
-
declare function PopoverHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
9
|
-
declare function PopoverBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
10
|
-
declare function PopoverFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
11
8
|
declare const Popover: typeof PopoverRoot & {
|
|
12
9
|
Root: typeof PopoverRoot;
|
|
13
10
|
RootProvider: typeof PopoverRootProvider;
|
|
@@ -23,8 +20,8 @@ declare const Popover: typeof PopoverRoot & {
|
|
|
23
20
|
Description: import("react").ForwardRefExoticComponent<Omit<PopoverPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
21
|
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<PopoverPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
22
|
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<PopoverPrimitive.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
|
-
Header:
|
|
27
|
-
Body:
|
|
28
|
-
Footer:
|
|
23
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
Footer: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
26
|
};
|
|
30
27
|
export { Popover, usePopover, usePopoverContext };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { ark } from "@ark-ui/react/factory";
|
|
3
4
|
import { Popover, usePopover, usePopoverContext } from "@ark-ui/react/popover";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { forwardRef } from "react";
|
|
@@ -8,13 +9,15 @@ import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPort
|
|
|
8
9
|
import { CloseButton } from "../close-button/index.js";
|
|
9
10
|
import Popover_module from "./Popover.module.js";
|
|
10
11
|
const DEFAULT_CLOSE_BUTTON_LABEL = 'Close popover';
|
|
11
|
-
function PopoverRoot({ lazyMount = true, portalled, portalRef, unmountOnExit = true, ...props }) {
|
|
12
|
+
function PopoverRoot({ lazyMount = true, modal, portalled, portalRef, unmountOnExit = true, ...props }) {
|
|
13
|
+
const resolvedPortalled = modal || portalled;
|
|
12
14
|
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
13
|
-
portalled:
|
|
15
|
+
portalled: resolvedPortalled,
|
|
14
16
|
portalRef: portalRef,
|
|
15
17
|
children: /*#__PURE__*/ jsx(Popover.Root, {
|
|
16
|
-
portalled: portalled,
|
|
17
18
|
lazyMount: lazyMount,
|
|
19
|
+
modal: modal,
|
|
20
|
+
portalled: resolvedPortalled,
|
|
18
21
|
unmountOnExit: unmountOnExit,
|
|
19
22
|
...props
|
|
20
23
|
})
|
|
@@ -130,27 +133,30 @@ const Popover_PopoverCloseIcon = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
130
133
|
})
|
|
131
134
|
});
|
|
132
135
|
});
|
|
133
|
-
|
|
134
|
-
return /*#__PURE__*/ jsx(
|
|
136
|
+
const Popover_PopoverHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
137
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
138
|
+
ref: ref,
|
|
135
139
|
"data-slot": "popover-header",
|
|
136
|
-
className: clsx(Popover_module.header, className),
|
|
140
|
+
className: clsx(Popover_module.header, normalizeClassName(className)),
|
|
137
141
|
...props
|
|
138
142
|
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return /*#__PURE__*/ jsx(
|
|
143
|
+
});
|
|
144
|
+
const Popover_PopoverBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
145
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
146
|
+
ref: ref,
|
|
142
147
|
"data-slot": "popover-body",
|
|
143
|
-
className: clsx(Popover_module.body, className),
|
|
148
|
+
className: clsx(Popover_module.body, normalizeClassName(className)),
|
|
144
149
|
...props
|
|
145
150
|
});
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return /*#__PURE__*/ jsx(
|
|
151
|
+
});
|
|
152
|
+
const Popover_PopoverFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
153
|
+
return /*#__PURE__*/ jsx(ark.div, {
|
|
154
|
+
ref: ref,
|
|
149
155
|
"data-slot": "popover-footer",
|
|
150
|
-
className: clsx(Popover_module.footer, className),
|
|
156
|
+
className: clsx(Popover_module.footer, normalizeClassName(className)),
|
|
151
157
|
...props
|
|
152
158
|
});
|
|
153
|
-
}
|
|
159
|
+
});
|
|
154
160
|
const Popover_Popover = Object.assign(PopoverRoot, {
|
|
155
161
|
Root: PopoverRoot,
|
|
156
162
|
RootProvider: PopoverRootProvider,
|
|
@@ -166,8 +172,8 @@ const Popover_Popover = Object.assign(PopoverRoot, {
|
|
|
166
172
|
Description: Popover_PopoverDescription,
|
|
167
173
|
CloseTrigger: Popover_PopoverCloseTrigger,
|
|
168
174
|
CloseIcon: Popover_PopoverCloseIcon,
|
|
169
|
-
Header:
|
|
170
|
-
Body:
|
|
171
|
-
Footer:
|
|
175
|
+
Header: Popover_PopoverHeader,
|
|
176
|
+
Body: Popover_PopoverBody,
|
|
177
|
+
Footer: Popover_PopoverFooter
|
|
172
178
|
});
|
|
173
179
|
export { Popover_Popover as Popover, usePopover, usePopoverContext };
|
|
@@ -54,10 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.content-QiLEpj {
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
var(--moduix-popover-close-icon-offset-effective)));
|
|
57
|
+
--_popover-close-icon-size-effective: var(--moduix-popover-close-icon-size, var(--moduix-spacing-7));
|
|
58
|
+
--_popover-close-icon-offset-effective: var(--moduix-popover-close-icon-offset, var(--moduix-spacing-3));
|
|
59
|
+
--_popover-header-padding-inline-end-effective: var(--moduix-popover-header-padding-inline-end, calc(var(--_popover-close-icon-size-effective) + var(--_popover-close-icon-offset-effective)));
|
|
61
60
|
z-index: calc(var(--moduix-z-popup) + var(--layer-index, 0));
|
|
62
61
|
box-sizing: border-box;
|
|
63
62
|
width: var(--moduix-popover-width, auto);
|
|
@@ -65,6 +64,7 @@
|
|
|
65
64
|
min-width: min(var(--moduix-popover-min-width, 16rem), var(--available-width));
|
|
66
65
|
max-width: min(var(--moduix-popover-max-width, 28rem), var(--available-width));
|
|
67
66
|
max-height: min(var(--moduix-popover-max-height, 24rem), var(--available-height, 100dvh));
|
|
67
|
+
overflow-wrap: anywhere;
|
|
68
68
|
padding: var(--moduix-popover-padding-y, var(--moduix-spacing-4))
|
|
69
69
|
var(--moduix-popover-padding-x, var(--moduix-spacing-4));
|
|
70
70
|
border-radius: var(--moduix-popover-radius, var(--moduix-radius-md));
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.content-QiLEpj:has(.closeIcon-oldPto) .header-q59Ek4 {
|
|
107
|
-
padding-inline-end: var(--
|
|
107
|
+
padding-inline-end: var(--_popover-header-padding-inline-end-effective);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.arrow-B6fVya {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.closeIcon-oldPto {
|
|
138
|
-
--moduix-close-button-size: var(--
|
|
138
|
+
--moduix-close-button-size: var(--_popover-close-icon-size-effective);
|
|
139
139
|
--moduix-close-button-radius: var(--moduix-popover-close-icon-radius, var(--moduix-radius-sm));
|
|
140
140
|
--moduix-close-button-icon-size: var(--moduix-popover-close-icon-glyph-size, var(--moduix-spacing-3-5));
|
|
141
141
|
--moduix-close-button-bg: var(--moduix-popover-close-icon-bg, transparent);
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
--moduix-close-button-color-hover: var(--moduix-popover-close-icon-color-hover, var(--moduix-popover-color, var(--moduix-color-popover-foreground)));
|
|
145
145
|
--moduix-close-button-focus-ring-color: var(--moduix-popover-close-icon-focus-ring-color, var(--moduix-color-ring));
|
|
146
146
|
position: absolute;
|
|
147
|
-
inset-block-start: var(--
|
|
148
|
-
inset-inline-end: var(--
|
|
147
|
+
inset-block-start: var(--_popover-close-icon-offset-effective);
|
|
148
|
+
inset-inline-end: var(--_popover-close-icon-offset-effective);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.header-q59Ek4 {
|
|
@@ -165,6 +165,16 @@
|
|
|
165
165
|
display: flex;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
@media (prefers-reduced-motion: reduce) {
|
|
169
|
+
.trigger-TuNfDY, .closeTrigger-g6dVFQ {
|
|
170
|
+
transition: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.content-QiLEpj[data-state="open"], .content-QiLEpj[data-state="closed"] {
|
|
174
|
+
animation: none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
@keyframes popover-enter-Kmc_ZV {
|
|
169
179
|
from {
|
|
170
180
|
opacity: var(--moduix-popover-content-starting-opacity, var(--moduix-popup-motion-starting-opacity, 0));
|
|
@@ -46,18 +46,25 @@
|
|
|
46
46
|
.circleRange-IITheJ {
|
|
47
47
|
stroke: var(--moduix-progress-circular-range-bg, var(--moduix-color-primary));
|
|
48
48
|
stroke-linecap: var(--moduix-progress-circular-range-linecap, round);
|
|
49
|
+
transform-box: fill-box;
|
|
50
|
+
transform-origin: center;
|
|
49
51
|
transition: stroke-dashoffset
|
|
50
52
|
var(--moduix-progress-circular-range-transition, var(--moduix-transition-default));
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.circleRange-IITheJ[data-state="indeterminate"] {
|
|
56
|
+
stroke: var(--moduix-progress-circular-range-indeterminate-bg, var(--moduix-progress-circular-range-bg, var(--moduix-color-primary)));
|
|
54
57
|
animation: var(--moduix-progress-circular-range-indeterminate-animation, progress-circular-indeterminate 1.4s linear infinite);
|
|
55
58
|
stroke-dasharray: var(--moduix-progress-circular-range-indeterminate-dasharray, 1 200);
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
.circleRange-IITheJ {
|
|
63
|
+
transition: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
.circleRange-IITheJ[data-state="indeterminate"] {
|
|
60
|
-
stroke-dasharray: 20 200;
|
|
67
|
+
stroke-dasharray: var(--moduix-progress-circular-range-indeterminate-reduced-motion-dasharray, 20 200);
|
|
61
68
|
animation: none;
|
|
62
69
|
}
|
|
63
70
|
}
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
.range-A5c8GJ[data-state="indeterminate"] {
|
|
71
71
|
width: var(--moduix-progress-linear-range-indeterminate-width, 35%);
|
|
72
|
+
background-color: var(--moduix-progress-linear-range-indeterminate-bg, var(--moduix-progress-linear-range-bg, var(--moduix-color-primary)));
|
|
72
73
|
animation: var(--moduix-progress-linear-range-indeterminate-animation, progress-linear-indeterminate 1.5s ease-in-out infinite);
|
|
73
74
|
}
|
|
74
75
|
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: var(--moduix-qr-code-gap, var(--moduix-spacing-3));
|
|
6
|
-
width: -
|
|
7
|
-
width: fit-content;
|
|
6
|
+
width: min(var(--moduix-qr-code-size, 8rem), 100%);
|
|
8
7
|
max-width: var(--moduix-qr-code-max-width, 100%);
|
|
9
8
|
color: var(--moduix-qr-code-color, var(--moduix-color-foreground));
|
|
10
9
|
flex-direction: column;
|
|
@@ -14,8 +13,8 @@
|
|
|
14
13
|
|
|
15
14
|
.frame-xuEHtQ {
|
|
16
15
|
box-sizing: border-box;
|
|
17
|
-
width: min(var(--moduix-qr-code-size, 8rem), 100%);
|
|
18
16
|
aspect-ratio: 1;
|
|
17
|
+
width: 100%;
|
|
19
18
|
height: auto;
|
|
20
19
|
color: inherit;
|
|
21
20
|
fill: var(--moduix-qr-code-fill, currentColor);
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.itemText-gi6tev {
|
|
137
|
-
color: var(--moduix-radio-label-color, var(--moduix-color-foreground));
|
|
137
|
+
color: var(--moduix-radio-label-color, var(--moduix-radio-group-color, var(--moduix-color-foreground)));
|
|
138
138
|
font-size: var(--moduix-radio-label-font-size, var(--moduix-text-sm));
|
|
139
139
|
font-weight: var(--moduix-radio-label-font-weight, var(--moduix-weight-medium));
|
|
140
140
|
line-height: var(--moduix-radio-label-line-height, var(--moduix-line-height-text-sm));
|
|
@@ -172,5 +172,20 @@
|
|
|
172
172
|
transition: none;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
+
|
|
176
|
+
@media (forced-colors: active) {
|
|
177
|
+
.root-FtAkRy[data-fade] .viewport-SrqU1k {
|
|
178
|
+
-webkit-mask-image: none;
|
|
179
|
+
mask-image: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.viewport-SrqU1k:focus-visible {
|
|
183
|
+
outline-color: highlight;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.thumb-eKzpKM {
|
|
187
|
+
background-color: buttontext;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
175
190
|
}
|
|
176
191
|
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
opacity: var(--moduix-segment-group-disabled-opacity, var(--moduix-opacity-disabled));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.root-Bd4lNR:not([data-disabled]) .item-YWqgii[data-disabled] {
|
|
28
|
+
opacity: var(--moduix-segment-group-item-disabled-opacity, var(--moduix-opacity-disabled));
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
.root-Bd4lNR[data-invalid] {
|
|
28
32
|
border-color: var(--moduix-segment-group-border-color-invalid, var(--moduix-color-destructive));
|
|
29
33
|
}
|
|
@@ -87,10 +91,6 @@
|
|
|
87
91
|
cursor: default;
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
.item-YWqgii[data-disabled] {
|
|
91
|
-
opacity: var(--moduix-segment-group-item-disabled-opacity, var(--moduix-opacity-disabled));
|
|
92
|
-
}
|
|
93
|
-
|
|
94
94
|
.item-YWqgii[data-orientation="vertical"] {
|
|
95
95
|
justify-content: flex-start;
|
|
96
96
|
inline-size: 100%;
|
|
@@ -12,9 +12,6 @@ type SelectFieldProps = Omit<ComponentProps<typeof SelectPrimitive.Control>, 'as
|
|
|
12
12
|
indicator?: ReactNode;
|
|
13
13
|
placeholder?: ComponentProps<typeof SelectPrimitive.ValueText>['placeholder'];
|
|
14
14
|
};
|
|
15
|
-
declare function SelectItemTextContent({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
16
|
-
declare function SelectItemTextIcon({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
17
|
-
declare function SelectItemTextLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
18
15
|
declare const Select: SelectRootComponent & {
|
|
19
16
|
Root: SelectRootComponent;
|
|
20
17
|
RootProvider: SelectRootProviderComponent;
|
|
@@ -38,8 +35,8 @@ declare const Select: SelectRootComponent & {
|
|
|
38
35
|
Item: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
36
|
ItemText: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
37
|
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
-
ItemTextContent:
|
|
42
|
-
ItemTextIcon:
|
|
43
|
-
ItemTextLabel:
|
|
38
|
+
ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
40
|
+
ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
44
41
|
};
|
|
45
42
|
export { Select, useSelect, useSelectContext, useSelectItemContext };
|