@moduix/react 2.2.4 → 2.3.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/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/chart/Chart.d.ts +17 -0
- package/dist/components/chart/Chart.js +156 -0
- package/dist/components/chart/Chart.module.js +18 -0
- package/dist/components/chart/Chart_module.css +138 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/chart/index.js +1 -0
- 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 +10 -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 +27 -15
|
@@ -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 };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ark } from "@ark-ui/react/factory";
|
|
3
4
|
import { Select, useSelect, useSelectContext, useSelectItemContext } from "@ark-ui/react/select";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { Children, cloneElement, forwardRef } from "react";
|
|
@@ -235,27 +236,30 @@ function SelectFormControl({ nativeFormControl }) {
|
|
|
235
236
|
]
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
|
|
239
|
-
return /*#__PURE__*/ jsx(
|
|
239
|
+
const Select_SelectItemTextContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
240
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
241
|
+
ref: ref,
|
|
240
242
|
"data-slot": "select-item-text-content",
|
|
241
243
|
className: clsx(Select_module.itemTextContent, normalizeClassName(className)),
|
|
242
244
|
...props
|
|
243
245
|
});
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
return /*#__PURE__*/ jsx(
|
|
246
|
+
});
|
|
247
|
+
const Select_SelectItemTextIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
248
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
249
|
+
ref: ref,
|
|
247
250
|
"data-slot": "select-item-text-icon",
|
|
248
251
|
className: clsx(Select_module.itemTextIcon, normalizeClassName(className)),
|
|
249
252
|
...props
|
|
250
253
|
});
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
return /*#__PURE__*/ jsx(
|
|
254
|
+
});
|
|
255
|
+
const Select_SelectItemTextLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
256
|
+
return /*#__PURE__*/ jsx(ark.span, {
|
|
257
|
+
ref: ref,
|
|
254
258
|
"data-slot": "select-item-text-label",
|
|
255
259
|
className: clsx(Select_module.itemTextLabel, normalizeClassName(className)),
|
|
256
260
|
...props
|
|
257
261
|
});
|
|
258
|
-
}
|
|
262
|
+
});
|
|
259
263
|
const Select_Select = Object.assign(Select_SelectRoot, {
|
|
260
264
|
Root: Select_SelectRoot,
|
|
261
265
|
RootProvider: Select_SelectRootProvider,
|
|
@@ -279,8 +283,8 @@ const Select_Select = Object.assign(Select_SelectRoot, {
|
|
|
279
283
|
Item: Select_SelectItem,
|
|
280
284
|
ItemText: Select_SelectItemText,
|
|
281
285
|
ItemIndicator: Select_SelectItemIndicator,
|
|
282
|
-
ItemTextContent:
|
|
283
|
-
ItemTextIcon:
|
|
284
|
-
ItemTextLabel:
|
|
286
|
+
ItemTextContent: Select_SelectItemTextContent,
|
|
287
|
+
ItemTextIcon: Select_SelectItemTextIcon,
|
|
288
|
+
ItemTextLabel: Select_SelectItemTextLabel
|
|
285
289
|
});
|
|
286
290
|
export { Select_Select as Select, useSelect, useSelectContext, useSelectItemContext };
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
.itemGroup-rRI1Ej + .itemGroup-rRI1Ej {
|
|
273
|
-
margin-
|
|
273
|
+
margin-block-start: var(--moduix-select-item-group-gap, var(--moduix-spacing-2));
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
.itemGroupLabel-IeDuI7 {
|
|
@@ -371,5 +371,19 @@
|
|
|
371
371
|
min-width: 0;
|
|
372
372
|
overflow: hidden;
|
|
373
373
|
}
|
|
374
|
+
|
|
375
|
+
@media (prefers-reduced-motion: reduce) {
|
|
376
|
+
.trigger-_8XyWR, .indicator-ywAB27 {
|
|
377
|
+
transition: none;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.clearTrigger-bA52Dh {
|
|
381
|
+
--moduix-close-button-transition: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.content-fSDhut[data-state] {
|
|
385
|
+
animation: none;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
374
388
|
}
|
|
375
389
|
|
|
@@ -4,14 +4,14 @@ import { clsx } from "clsx";
|
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
6
|
import Separator_module from "./Separator.module.js";
|
|
7
|
-
const Separator_SeparatorRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, orientation = 'horizontal', role, size = 'sm', variant = 'solid', 'aria-orientation':
|
|
7
|
+
const Separator_SeparatorRoot = /*#__PURE__*/ forwardRef(function({ asChild, className, orientation = 'horizontal', role, size = 'sm', variant = 'solid', 'aria-orientation': _ariaOrientation, ...props }, ref) {
|
|
8
8
|
const resolvedRole = role ?? 'separator';
|
|
9
9
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
10
10
|
...props,
|
|
11
11
|
ref: ref,
|
|
12
12
|
asChild: asChild,
|
|
13
13
|
role: resolvedRole,
|
|
14
|
-
"aria-orientation":
|
|
14
|
+
"aria-orientation": 'separator' === resolvedRole ? orientation : void 0,
|
|
15
15
|
"data-scope": "separator",
|
|
16
16
|
"data-part": "root",
|
|
17
17
|
"data-slot": "separator-root",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.root-q9iyyK {
|
|
3
3
|
border: 0;
|
|
4
4
|
border-color: var(--moduix-separator-color, var(--moduix-color-border));
|
|
5
|
-
border-style: var(--moduix-separator-border-style, var(--
|
|
5
|
+
border-style: var(--moduix-separator-border-style, var(--_separator-variant-border-style, solid));
|
|
6
6
|
flex-shrink: 0;
|
|
7
7
|
margin: 0;
|
|
8
8
|
display: block;
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.root-q9iyyK[data-variant="dashed"] {
|
|
28
|
-
--
|
|
28
|
+
--_separator-variant-border-style: dashed;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.root-q9iyyK[data-variant="dotted"] {
|
|
32
|
-
--
|
|
32
|
+
--_separator-variant-border-style: dotted;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.root-q9iyyK[data-orientation="horizontal"] {
|
|
@@ -93,10 +93,6 @@
|
|
|
93
93
|
z-index: 2;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.resizeTrigger-xFDgel:focus-visible:not([data-dragging]):before {
|
|
97
|
-
background-color: var(--moduix-sidebar-focus-ring-color, var(--moduix-color-ring));
|
|
98
|
-
}
|
|
99
|
-
|
|
100
96
|
.trigger-_fUcgc {
|
|
101
97
|
box-sizing: border-box;
|
|
102
98
|
width: var(--moduix-sidebar-trigger-size, var(--moduix-spacing-7));
|
|
@@ -143,14 +139,13 @@
|
|
|
143
139
|
|
|
144
140
|
.trigger-_fUcgc {
|
|
145
141
|
z-index: 4;
|
|
146
|
-
margin-block-start:
|
|
142
|
+
margin-block-start: 0;
|
|
147
143
|
margin-inline: calc(var(--moduix-sidebar-trigger-size, var(--moduix-spacing-7)) * -.5);
|
|
148
144
|
border: var(--moduix-sidebar-trigger-border-width, var(--moduix-border-width-sm)) solid
|
|
149
145
|
var(--moduix-sidebar-trigger-border-color, var(--moduix-color-border));
|
|
150
146
|
border-radius: var(--moduix-sidebar-trigger-radius, var(--moduix-radius-full));
|
|
151
147
|
background-color: var(--moduix-sidebar-trigger-bg, var(--moduix-color-background));
|
|
152
148
|
box-shadow: var(--moduix-sidebar-trigger-shadow, var(--moduix-shadow-sm));
|
|
153
|
-
align-self: flex-start;
|
|
154
149
|
position: relative;
|
|
155
150
|
}
|
|
156
151
|
|
|
@@ -162,8 +157,15 @@
|
|
|
162
157
|
transition: transform var(--moduix-sidebar-transition, var(--moduix-transition-default));
|
|
163
158
|
}
|
|
164
159
|
|
|
165
|
-
.
|
|
160
|
+
.trigger-_fUcgc {
|
|
161
|
+
translate: 0 var(--moduix-sidebar-trigger-offset-y, 40px);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.label-trHnso, .groupLabel-IvBtsR {
|
|
165
|
+
text-overflow: ellipsis;
|
|
166
|
+
white-space: nowrap;
|
|
166
167
|
min-width: 0;
|
|
168
|
+
overflow: hidden;
|
|
167
169
|
}
|
|
168
170
|
|
|
169
171
|
.header-YkNEAV, .footer-RydM38 {
|
|
@@ -202,7 +204,6 @@
|
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
.groupLabel-IvBtsR {
|
|
205
|
-
min-width: 0;
|
|
206
207
|
padding-inline: var(--moduix-sidebar-group-label-padding-x, var(--moduix-spacing-2));
|
|
207
208
|
color: var(--moduix-sidebar-muted-color, var(--moduix-color-muted-foreground));
|
|
208
209
|
font-size: var(--moduix-sidebar-group-label-font-size, var(--moduix-text-xs));
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { SignaturePad as SignaturePadPrimitive, useSignaturePad, useSignaturePadContext } from '@ark-ui/react/signature-pad';
|
|
1
|
+
import { SignaturePad as SignaturePadPrimitive, useSignaturePad as useSignaturePadPrimitive, useSignaturePadContext } from '@ark-ui/react/signature-pad';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
type SignaturePadFormProps = {
|
|
4
4
|
getFormValue?: (paths: string[]) => string;
|
|
5
5
|
};
|
|
6
|
-
declare function
|
|
7
|
-
className?: string;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
6
|
+
declare function useSignaturePad(props?: Parameters<typeof useSignaturePadPrimitive>[0]): ReturnType<typeof useSignaturePadPrimitive>;
|
|
9
7
|
declare const SignaturePad: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement> & SignaturePadFormProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
10
8
|
Root: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement> & SignaturePadFormProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
9
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement> & SignaturePadFormProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
10
|
Context: (props: SignaturePadPrimitive.ContextProps) => ReactNode;
|
|
13
11
|
Label: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
12
|
Control: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
-
Canvas:
|
|
13
|
+
Canvas: import("react").ForwardRefExoticComponent<Omit<Omit<SignaturePadPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
14
|
Segment: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.SegmentProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
15
|
Guide: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.GuideProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
16
|
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<SignaturePadPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|