@moduix/react 1.1.1 → 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/README.md +16 -16
- package/dist/components/accordion/Accordion.css +8 -1
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +1 -0
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +19 -5
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +1 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +3 -1
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +44 -1
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/breadcrumbs/Breadcrumbs.css +7 -1
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +2 -1
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +21 -1
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/card/Card.css +20 -4
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/carousel/Carousel.css +2 -0
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +1 -1
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/collapsible/Collapsible.css +9 -2
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +1 -0
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +35 -6
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +1 -0
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +37 -8
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +40 -74
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +0 -2
- package/dist/components/container/Container.js +1 -1
- package/dist/components/date-input/DateInput.css +3 -1
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +41 -13
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +14 -10
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/field/Field.css +0 -4
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +0 -1
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +81 -8
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +3 -0
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +14 -10
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/hover-card/HoverCard.css +14 -10
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/lightbox/Lightbox.css +12 -10
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.js +1 -1
- package/dist/components/listbox/Listbox.css +60 -1
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +3 -0
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +14 -8
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/number-input/NumberInput.css +0 -6
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/popover/Popover.css +20 -11
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/qr-code/QrCode.css +3 -2
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +3 -3
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +7 -2
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +24 -15
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/sidebar/Sidebar.css +144 -4
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +6 -0
- package/dist/components/signature-pad/SignaturePad.css +12 -41
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/slider/Slider.css +6 -4
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/splitter/Splitter.css +13 -12
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +2 -2
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +3 -3
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +0 -1
- package/dist/components/tabs/Tabs.css +3 -1
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +12 -42
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tags-input/TagsInput.css +3 -40
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toggle/Toggle.css +3 -3
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +14 -10
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +23 -18
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tree-view/TreeView.css +1 -1
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/index.d.ts +40 -39
- package/dist/index.js +40 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/package.json +4 -3
|
@@ -9,5 +9,6 @@ declare const Marquee$1: import("react").ForwardRefExoticComponent<Omit<Marquee.
|
|
|
9
9
|
Item: import("react").ForwardRefExoticComponent<Omit<Marquee.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
Edge: import("react").ForwardRefExoticComponent<Omit<Marquee.EdgeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
};
|
|
12
|
+
declare const useMarquee$1: (props?: import("@ark-ui/react/marquee").UseMarqueeProps) => import("@ark-ui/react/marquee").UseMarqueeReturn;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { Marquee$1 as Marquee };
|
|
14
|
+
export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Marquee_module_default from "./Marquee.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Marquee, useMarquee } from "@ark-ui/react/marquee";
|
|
7
7
|
//#region src/components/marquee/Marquee.tsx
|
|
8
8
|
const MarqueeRoot = forwardRef(function MarqueeRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Marquee.Root, {
|
|
@@ -61,5 +61,6 @@ const Marquee$1 = Object.assign(MarqueeRoot, {
|
|
|
61
61
|
Item: MarqueeItem,
|
|
62
62
|
Edge: MarqueeEdge
|
|
63
63
|
});
|
|
64
|
+
const useMarquee$1 = useMarquee;
|
|
64
65
|
//#endregion
|
|
65
|
-
export { Marquee$1 as Marquee };
|
|
66
|
+
export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Marquee } from "./Marquee.js";
|
|
2
|
-
export { Marquee };
|
|
1
|
+
import { Marquee, useMarquee } from "./Marquee.js";
|
|
2
|
+
export { Marquee, useMarquee };
|
|
@@ -97,11 +97,15 @@
|
|
|
97
97
|
overflow: auto;
|
|
98
98
|
|
|
99
99
|
&[data-state="open"] {
|
|
100
|
-
animation: AJ5G3W_menuContentIn
|
|
100
|
+
animation: AJ5G3W_menuContentIn
|
|
101
|
+
var(--menu-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
102
|
+
var(--popup-motion-easing, var(--ease-in-out)));
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
&[data-state="closed"] {
|
|
104
|
-
animation: AJ5G3W_menuContentOut
|
|
106
|
+
animation: AJ5G3W_menuContentOut
|
|
107
|
+
var(--menu-transition, var(--popup-motion-duration, var(--duration-normal))
|
|
108
|
+
var(--popup-motion-easing, var(--ease-in-out)));
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
|
|
@@ -345,9 +349,10 @@
|
|
|
345
349
|
|
|
346
350
|
@keyframes AJ5G3W_menuContentIn {
|
|
347
351
|
from {
|
|
348
|
-
opacity: var(--menu-popup-starting-opacity, 0);
|
|
349
|
-
translate: var(--menu-popup-starting-translate-x,
|
|
350
|
-
|
|
352
|
+
opacity: var(--menu-popup-starting-opacity, var(--popup-motion-starting-opacity, 0));
|
|
353
|
+
translate: var(--menu-popup-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
|
|
354
|
+
var(--menu-popup-starting-translate-y, var(--popup-motion-starting-translate-y, 0));
|
|
355
|
+
transform: scale(var(--menu-popup-starting-scale, var(--popup-motion-starting-scale, var(--scale-popup))));
|
|
351
356
|
}
|
|
352
357
|
|
|
353
358
|
to {
|
|
@@ -363,9 +368,10 @@
|
|
|
363
368
|
}
|
|
364
369
|
|
|
365
370
|
to {
|
|
366
|
-
opacity: var(--menu-popup-ending-opacity, 0);
|
|
367
|
-
translate: var(--menu-popup-ending-translate-x,
|
|
368
|
-
|
|
371
|
+
opacity: var(--menu-popup-ending-opacity, var(--popup-motion-ending-opacity, 0));
|
|
372
|
+
translate: var(--menu-popup-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
|
|
373
|
+
var(--menu-popup-ending-translate-y, var(--popup-motion-ending-translate-y, 0));
|
|
374
|
+
transform: scale(var(--menu-popup-ending-scale, var(--popup-motion-ending-scale, var(--scale-popup))));
|
|
369
375
|
}
|
|
370
376
|
}
|
|
371
377
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import { Menu } from "@ark-ui/react/menu";
|
|
3
|
+
import { Menu, useMenu } from "@ark-ui/react/menu";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/Menu.d.ts
|
|
6
6
|
type MenuIndicatorPosition = 'start' | 'end' | 'none';
|
|
@@ -78,6 +78,7 @@ declare const Menu$1: typeof MenuRoot & {
|
|
|
78
78
|
ItemTextIcon: typeof MenuItemTextIcon;
|
|
79
79
|
ItemTextLabel: typeof MenuItemTextLabel;
|
|
80
80
|
ItemShortcut: typeof MenuItemShortcut;
|
|
81
|
+
ItemContext: (props: Menu.ItemContextProps) => import("react").ReactNode;
|
|
81
82
|
};
|
|
82
83
|
//#endregion
|
|
83
|
-
export { Menu$1 as Menu };
|
|
84
|
+
export { Menu$1 as Menu, useMenu };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CheckIcon, ChevronDownIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { CheckIcon, ChevronDownIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
4
|
import Menu_module_default from "./Menu.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { forwardRef } from "react";
|
|
8
|
-
import {
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Menu, useMenu } from "@ark-ui/react/menu";
|
|
9
9
|
//#region src/components/menu/Menu.tsx
|
|
10
10
|
function MenuRoot({ portalled, portalRef, ...props }) {
|
|
11
11
|
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
@@ -234,7 +234,8 @@ const Menu$1 = Object.assign(MenuRoot, {
|
|
|
234
234
|
ItemTextContent: MenuItemTextContent,
|
|
235
235
|
ItemTextIcon: MenuItemTextIcon,
|
|
236
236
|
ItemTextLabel: MenuItemTextLabel,
|
|
237
|
-
ItemShortcut: MenuItemShortcut
|
|
237
|
+
ItemShortcut: MenuItemShortcut,
|
|
238
|
+
ItemContext: Menu.ItemContext
|
|
238
239
|
});
|
|
239
240
|
//#endregion
|
|
240
|
-
export { Menu$1 as Menu };
|
|
241
|
+
export { Menu$1 as Menu, useMenu };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Menu } from "./Menu.js";
|
|
2
|
-
export { Menu };
|
|
1
|
+
import { Menu, useMenu } from "./Menu.js";
|
|
2
|
+
export { Menu, useMenu };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { Field } from "@ark-ui/react/field";
|
|
2
3
|
|
|
3
4
|
//#region src/components/native-select/NativeSelect.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
type NativeSelectRootProps = ComponentProps<typeof Field.Select> & {
|
|
6
|
+
controlProps?: ComponentProps<'span'>;
|
|
7
|
+
};
|
|
8
|
+
declare const NativeSelect: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>> & {
|
|
9
|
+
Root: import("react").ForwardRefExoticComponent<Omit<NativeSelectRootProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
6
10
|
};
|
|
7
11
|
//#endregion
|
|
8
12
|
export { NativeSelect };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { ChevronDownIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import NativeSelect_module_default from "./NativeSelect.module.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Field } from "@ark-ui/react/field";
|
|
8
8
|
//#region src/components/native-select/NativeSelect.tsx
|
|
9
|
-
const NativeSelectRoot = forwardRef(function NativeSelectRoot({ className, ...props }, ref) {
|
|
9
|
+
const NativeSelectRoot = forwardRef(function NativeSelectRoot({ className, controlProps, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsxs("span", {
|
|
11
|
+
...controlProps,
|
|
11
12
|
"data-scope": "native-select",
|
|
12
13
|
"data-part": "control",
|
|
13
14
|
"data-slot": "native-select-control",
|
|
14
|
-
className: NativeSelect_module_default.control,
|
|
15
|
+
className: clsx(NativeSelect_module_default.control, normalizeClassName(controlProps?.className)),
|
|
15
16
|
children: [/* @__PURE__ */ jsx(Field.Select, {
|
|
16
17
|
...props,
|
|
17
18
|
ref,
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
|
|
30
30
|
&[data-disabled] {
|
|
31
31
|
cursor: default;
|
|
32
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
&:is([data-disabled], :disabled) {
|
|
82
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
83
81
|
pointer-events: none;
|
|
84
82
|
}
|
|
85
83
|
|
|
@@ -147,10 +145,6 @@
|
|
|
147
145
|
outline-color: var(--number-input-border-color-invalid, var(--color-destructive));
|
|
148
146
|
}
|
|
149
147
|
}
|
|
150
|
-
|
|
151
|
-
&:is([data-disabled], :disabled) {
|
|
152
|
-
opacity: var(--number-input-disabled-opacity, var(--opacity-disabled));
|
|
153
|
-
}
|
|
154
148
|
}
|
|
155
149
|
|
|
156
150
|
.ZjEX8G_valueText {
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "@ark-ui/react/number-input";
|
|
2
3
|
|
|
3
4
|
//#region src/components/number-input/NumberInput.d.ts
|
|
5
|
+
declare const NumberInputControl: import("react").ForwardRefExoticComponent<Omit<NumberInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
type NumberInputFieldProps = Omit<ComponentProps<typeof NumberInputControl>, 'asChild' | 'children'>;
|
|
4
7
|
declare const NumberInput$1: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
8
|
Root: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
9
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<NumberInput.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Context: (props: NumberInput.ContextProps) => import("react").ReactNode;
|
|
7
11
|
Label: import("react").ForwardRefExoticComponent<Omit<NumberInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
12
|
Scrubber: import("react").ForwardRefExoticComponent<Omit<NumberInput.ScrubberProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
Control: import("react").ForwardRefExoticComponent<Omit<NumberInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Field: import("react").ForwardRefExoticComponent<Omit<NumberInputFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
15
|
DecrementTrigger: import("react").ForwardRefExoticComponent<Omit<NumberInput.DecrementTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
16
|
Input: import("react").ForwardRefExoticComponent<Omit<NumberInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
17
|
IncrementTrigger: import("react").ForwardRefExoticComponent<Omit<NumberInput.IncrementTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
18
|
ValueText: import("react").ForwardRefExoticComponent<Omit<NumberInput.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
19
|
};
|
|
15
20
|
//#endregion
|
|
16
|
-
export { NumberInput$1 as NumberInput };
|
|
21
|
+
export { NumberInput$1 as NumberInput, useNumberInput, useNumberInputContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MinusIcon, PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { MinusIcon, PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import NumberInput_module_default from "./NumberInput.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "@ark-ui/react/number-input";
|
|
8
8
|
//#region src/components/number-input/NumberInput.tsx
|
|
9
9
|
const NumberInputRoot = forwardRef(function NumberInputRoot({ className, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(NumberInput.Root, {
|
|
@@ -80,16 +80,29 @@ const NumberInputValueText = forwardRef(function NumberInputValueText({ classNam
|
|
|
80
80
|
...props
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
+
const NumberInputField = forwardRef(function NumberInputField(props, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsxs(NumberInputControl, {
|
|
85
|
+
ref,
|
|
86
|
+
...props,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx(NumberInputDecrementTrigger, {}),
|
|
89
|
+
/* @__PURE__ */ jsx(NumberInputInput, {}),
|
|
90
|
+
/* @__PURE__ */ jsx(NumberInputIncrementTrigger, {})
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
});
|
|
83
94
|
const NumberInput$1 = Object.assign(NumberInputRoot, {
|
|
84
95
|
Root: NumberInputRoot,
|
|
85
96
|
RootProvider: NumberInputRootProvider,
|
|
97
|
+
Context: NumberInput.Context,
|
|
86
98
|
Label: NumberInputLabel,
|
|
87
99
|
Scrubber: NumberInputScrubber,
|
|
88
100
|
Control: NumberInputControl,
|
|
101
|
+
Field: NumberInputField,
|
|
89
102
|
DecrementTrigger: NumberInputDecrementTrigger,
|
|
90
103
|
Input: NumberInputInput,
|
|
91
104
|
IncrementTrigger: NumberInputIncrementTrigger,
|
|
92
105
|
ValueText: NumberInputValueText
|
|
93
106
|
});
|
|
94
107
|
//#endregion
|
|
95
|
-
export { NumberInput$1 as NumberInput };
|
|
108
|
+
export { NumberInput$1 as NumberInput, useNumberInput, useNumberInputContext };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { NumberInput } from "./NumberInput.js";
|
|
2
|
-
export { NumberInput };
|
|
1
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "./NumberInput.js";
|
|
2
|
+
export { NumberInput, useNumberInput, useNumberInputContext };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Pagination } from "@ark-ui/react/pagination";
|
|
2
2
|
|
|
3
3
|
//#region src/components/pagination/Pagination.d.ts
|
|
4
|
+
declare function PaginationItems(): import("react").JSX.Element;
|
|
4
5
|
declare const Pagination$1: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>> & {
|
|
5
6
|
Root: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
6
7
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Pagination.RootProviderProps & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -11,6 +12,9 @@ declare const Pagination$1: import("react").ForwardRefExoticComponent<Omit<Pagin
|
|
|
11
12
|
FirstTrigger: import("react").ForwardRefExoticComponent<Omit<Pagination.FirstTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
13
|
LastTrigger: import("react").ForwardRefExoticComponent<Omit<Pagination.LastTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
Context: (props: Pagination.ContextProps) => import("react").ReactNode;
|
|
15
|
+
Items: typeof PaginationItems;
|
|
16
|
+
usePagination: (props?: import("@ark-ui/react/pagination").UsePaginationProps) => import("@ark-ui/react/pagination").UsePaginationReturn;
|
|
17
|
+
usePaginationContext: () => import("@ark-ui/react/pagination").UsePaginationContext;
|
|
14
18
|
};
|
|
15
19
|
//#endregion
|
|
16
20
|
export { Pagination$1 as Pagination };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { ChevronLeftIcon, ChevronRightIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import Pagination_module_default from "./Pagination.module.js";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Pagination, usePagination, usePaginationContext } from "@ark-ui/react/pagination";
|
|
8
8
|
//#region src/components/pagination/Pagination.tsx
|
|
9
9
|
const PaginationRoot = forwardRef(function PaginationRoot({ "aria-label": ariaLabel = "Pagination", className, ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(Pagination.Root, {
|
|
@@ -86,6 +86,12 @@ const PaginationLastTrigger = forwardRef(function PaginationLastTrigger({ classN
|
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
const PaginationContext = Pagination.Context;
|
|
89
|
+
function PaginationItems() {
|
|
90
|
+
return /* @__PURE__ */ jsx(PaginationContext, { children: (pagination) => pagination.pages.map((page, index) => page.type === "page" ? /* @__PURE__ */ jsx(PaginationItem, {
|
|
91
|
+
...page,
|
|
92
|
+
children: page.value
|
|
93
|
+
}, index) : /* @__PURE__ */ jsx(PaginationEllipsis, { index }, index)) });
|
|
94
|
+
}
|
|
89
95
|
const Pagination$1 = Object.assign(PaginationRoot, {
|
|
90
96
|
Root: PaginationRoot,
|
|
91
97
|
RootProvider: PaginationRootProvider,
|
|
@@ -95,7 +101,10 @@ const Pagination$1 = Object.assign(PaginationRoot, {
|
|
|
95
101
|
NextTrigger: PaginationNextTrigger,
|
|
96
102
|
FirstTrigger: PaginationFirstTrigger,
|
|
97
103
|
LastTrigger: PaginationLastTrigger,
|
|
98
|
-
Context: PaginationContext
|
|
104
|
+
Context: PaginationContext,
|
|
105
|
+
Items: PaginationItems,
|
|
106
|
+
usePagination,
|
|
107
|
+
usePaginationContext
|
|
99
108
|
});
|
|
100
109
|
//#endregion
|
|
101
110
|
export { Pagination$1 as Pagination };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { PasswordInput, usePasswordInput } from "@ark-ui/react/password-input";
|
|
2
3
|
|
|
3
4
|
//#region src/components/password-input/PasswordInput.d.ts
|
|
5
|
+
declare const PasswordInputControl: import("react").ForwardRefExoticComponent<Omit<PasswordInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
type PasswordInputFieldProps = Omit<ComponentProps<typeof PasswordInputControl>, 'asChild' | 'children'>;
|
|
4
7
|
declare const PasswordInput$1: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
8
|
Root: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
9
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<PasswordInput.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
10
|
Label: import("react").ForwardRefExoticComponent<Omit<PasswordInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
11
|
Control: import("react").ForwardRefExoticComponent<Omit<PasswordInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Field: import("react").ForwardRefExoticComponent<Omit<PasswordInputFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
13
|
Input: import("react").ForwardRefExoticComponent<Omit<PasswordInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
14
|
VisibilityTrigger: import("react").ForwardRefExoticComponent<Omit<PasswordInput.VisibilityTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
15
|
Indicator: import("react").ForwardRefExoticComponent<Omit<PasswordInput.IndicatorProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EyeClosedIcon, EyeIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { EyeClosedIcon, EyeIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import PasswordInput_module_default from "./PasswordInput.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { PasswordInput, usePasswordInput } from "@ark-ui/react/password-input";
|
|
8
8
|
//#region src/components/password-input/PasswordInput.tsx
|
|
9
9
|
const PasswordInputRoot = forwardRef(function PasswordInputRoot({ className, ...props }, ref) {
|
|
@@ -64,11 +64,19 @@ const PasswordInputIndicator = forwardRef(function PasswordInputIndicator({ clas
|
|
|
64
64
|
children: children ?? /* @__PURE__ */ jsx(EyeIcon, {})
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
+
const PasswordInputField = forwardRef(function PasswordInputField(props, ref) {
|
|
68
|
+
return /* @__PURE__ */ jsxs(PasswordInputControl, {
|
|
69
|
+
ref,
|
|
70
|
+
...props,
|
|
71
|
+
children: [/* @__PURE__ */ jsx(PasswordInputInput, {}), /* @__PURE__ */ jsx(PasswordInputVisibilityTrigger, { children: /* @__PURE__ */ jsx(PasswordInputIndicator, {}) })]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
67
74
|
const PasswordInput$1 = Object.assign(PasswordInputRoot, {
|
|
68
75
|
Root: PasswordInputRoot,
|
|
69
76
|
RootProvider: PasswordInputRootProvider,
|
|
70
77
|
Label: PasswordInputLabel,
|
|
71
78
|
Control: PasswordInputControl,
|
|
79
|
+
Field: PasswordInputField,
|
|
72
80
|
Input: PasswordInputInput,
|
|
73
81
|
VisibilityTrigger: PasswordInputVisibilityTrigger,
|
|
74
82
|
Indicator: PasswordInputIndicator
|
|
@@ -2,6 +2,11 @@ import { ComponentProps } from "react";
|
|
|
2
2
|
import { PinInput, UsePinInputProps } from "@ark-ui/react/pin-input";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pin-input/PinInput.d.ts
|
|
5
|
+
declare function PinInputInputs({
|
|
6
|
+
className
|
|
7
|
+
}: {
|
|
8
|
+
className?: string;
|
|
9
|
+
}): import("react").JSX.Element[];
|
|
5
10
|
declare function PinInputSeparator({
|
|
6
11
|
className,
|
|
7
12
|
'aria-hidden': ariaHidden,
|
|
@@ -16,7 +21,7 @@ declare const PinInput$1: import("react").ForwardRefExoticComponent<Omit<PinInpu
|
|
|
16
21
|
Label: import("react").ForwardRefExoticComponent<Omit<PinInput.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
17
22
|
Control: import("react").ForwardRefExoticComponent<Omit<PinInput.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
23
|
Input: import("react").ForwardRefExoticComponent<Omit<PinInput.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
-
|
|
24
|
+
Inputs: typeof PinInputInputs;
|
|
20
25
|
Separator: typeof PinInputSeparator;
|
|
21
26
|
};
|
|
22
27
|
//#endregion
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { SeparatorMarkIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { SeparatorMarkIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import PinInput_module_default from "./PinInput.module.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
|
-
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
5
|
+
import { Children, cloneElement, forwardRef } from "react";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { PinInput, usePinInput, usePinInputContext } from "@ark-ui/react/pin-input";
|
|
8
8
|
//#region src/components/pin-input/PinInput.tsx
|
|
9
|
-
const PinInputRoot = forwardRef(function PinInputRoot({ children, className, count, placeholder = "", ...props }, ref) {
|
|
9
|
+
const PinInputRoot = forwardRef(function PinInputRoot({ asChild, children, className, count, placeholder = "", ...props }, ref) {
|
|
10
10
|
return /* @__PURE__ */ jsx(PinInput.Root, {
|
|
11
11
|
ref,
|
|
12
|
+
asChild,
|
|
12
13
|
"data-slot": "pin-input-root",
|
|
13
14
|
className: clsx(PinInput_module_default.root, normalizeClassName(className)),
|
|
14
15
|
count,
|
|
15
16
|
placeholder,
|
|
16
17
|
...props,
|
|
17
|
-
children
|
|
18
|
+
children: withHiddenInput(children, asChild)
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
|
-
const PinInputRootProvider = forwardRef(function PinInputRootProvider({ className, ...props }, ref) {
|
|
21
|
+
const PinInputRootProvider = forwardRef(function PinInputRootProvider({ asChild, children, className, ...props }, ref) {
|
|
21
22
|
return /* @__PURE__ */ jsx(PinInput.RootProvider, {
|
|
22
23
|
ref,
|
|
24
|
+
asChild,
|
|
23
25
|
"data-slot": "pin-input-root-provider",
|
|
24
26
|
className: clsx(PinInput_module_default.root, normalizeClassName(className)),
|
|
25
|
-
...props
|
|
27
|
+
...props,
|
|
28
|
+
children: withHiddenInput(children, asChild)
|
|
26
29
|
});
|
|
27
30
|
});
|
|
28
31
|
const PinInputLabel = forwardRef(function PinInputLabel({ className, ...props }, ref) {
|
|
@@ -49,13 +52,19 @@ const PinInputInput = forwardRef(function PinInputInput({ className, ...props },
|
|
|
49
52
|
...props
|
|
50
53
|
});
|
|
51
54
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
58
|
-
}
|
|
55
|
+
function PinInputInputs({ className }) {
|
|
56
|
+
const { items } = usePinInputContext();
|
|
57
|
+
return items.map((index) => /* @__PURE__ */ jsx(PinInputInput, {
|
|
58
|
+
index,
|
|
59
|
+
className
|
|
60
|
+
}, index));
|
|
61
|
+
}
|
|
62
|
+
function withHiddenInput(children, asChild) {
|
|
63
|
+
const hiddenInput = /* @__PURE__ */ jsx(PinInput.HiddenInput, { "data-slot": "pin-input-hidden-input" });
|
|
64
|
+
if (!asChild) return /* @__PURE__ */ jsxs(Fragment$1, { children: [children, hiddenInput] });
|
|
65
|
+
const child = Children.only(children);
|
|
66
|
+
return cloneElement(child, {}, child.props.children, hiddenInput);
|
|
67
|
+
}
|
|
59
68
|
function PinInputSeparator({ className, "aria-hidden": ariaHidden = true, role = "presentation", children, ...props }) {
|
|
60
69
|
return /* @__PURE__ */ jsx("span", {
|
|
61
70
|
"data-slot": "pin-input-separator",
|
|
@@ -78,7 +87,7 @@ const PinInput$1 = Object.assign(PinInputRoot, {
|
|
|
78
87
|
Label: PinInputLabel,
|
|
79
88
|
Control: PinInputControl,
|
|
80
89
|
Input: PinInputInput,
|
|
81
|
-
|
|
90
|
+
Inputs: PinInputInputs,
|
|
82
91
|
Separator: PinInputSeparator
|
|
83
92
|
});
|
|
84
93
|
//#endregion
|
|
@@ -75,11 +75,21 @@
|
|
|
75
75
|
overflow: visible;
|
|
76
76
|
|
|
77
77
|
&[data-state="open"] {
|
|
78
|
-
animation: Qww_tG_popover-enter
|
|
78
|
+
animation: Qww_tG_popover-enter
|
|
79
|
+
var(--popover-transition, var(--popup-motion-duration, var(--duration-fast)) var(--popup-motion-easing, ease))
|
|
80
|
+
both;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
&[data-state="closed"] {
|
|
82
|
-
animation: Qww_tG_popover-exit
|
|
84
|
+
animation: Qww_tG_popover-exit
|
|
85
|
+
var(--popover-transition, var(--popup-motion-duration, var(--duration-fast)) var(--popup-motion-easing, ease))
|
|
86
|
+
both;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:has(.Qww_tG_closeIcon) {
|
|
90
|
+
& .Qww_tG_header {
|
|
91
|
+
padding-inline-end: var(--popover-header-padding-inline-end-effective);
|
|
92
|
+
}
|
|
83
93
|
}
|
|
84
94
|
}
|
|
85
95
|
|
|
@@ -126,7 +136,6 @@
|
|
|
126
136
|
|
|
127
137
|
.Qww_tG_header {
|
|
128
138
|
gap: var(--popover-header-gap, var(--spacing-1));
|
|
129
|
-
padding-inline-end: var(--popover-header-padding-inline-end-effective);
|
|
130
139
|
display: grid;
|
|
131
140
|
}
|
|
132
141
|
|
|
@@ -144,19 +153,19 @@
|
|
|
144
153
|
|
|
145
154
|
@keyframes Qww_tG_popover-enter {
|
|
146
155
|
from {
|
|
147
|
-
opacity: var(--popover-content-starting-opacity, 0);
|
|
148
|
-
translate: var(--popover-content-starting-translate-x, 0)
|
|
149
|
-
var(--popover-content-starting-translate-y, 0);
|
|
150
|
-
scale: var(--popover-content-starting-scale, var(--scale-popup));
|
|
156
|
+
opacity: var(--popover-content-starting-opacity, var(--popup-motion-starting-opacity, 0));
|
|
157
|
+
translate: var(--popover-content-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
|
|
158
|
+
var(--popover-content-starting-translate-y, var(--popup-motion-starting-translate-y, 0));
|
|
159
|
+
scale: var(--popover-content-starting-scale, var(--popup-motion-starting-scale, var(--scale-popup)));
|
|
151
160
|
}
|
|
152
161
|
}
|
|
153
162
|
|
|
154
163
|
@keyframes Qww_tG_popover-exit {
|
|
155
164
|
to {
|
|
156
|
-
opacity: var(--popover-content-ending-opacity, 0);
|
|
157
|
-
translate: var(--popover-content-ending-translate-x, 0)
|
|
158
|
-
var(--popover-content-ending-translate-y, 0);
|
|
159
|
-
scale: var(--popover-content-ending-scale, var(--scale-popup));
|
|
165
|
+
opacity: var(--popover-content-ending-opacity, var(--popup-motion-ending-opacity, 0));
|
|
166
|
+
translate: var(--popover-content-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
|
|
167
|
+
var(--popover-content-ending-translate-y, var(--popup-motion-ending-translate-y, 0));
|
|
168
|
+
scale: var(--popover-content-ending-scale, var(--popup-motion-ending-scale, var(--scale-popup)));
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
171
|
}
|
|
@@ -2,9 +2,9 @@ import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
|
2
2
|
import { CloseButton } from "../close-button/CloseButton.js";
|
|
3
3
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
4
|
import Popover_module_default from "./Popover.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { forwardRef } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { Popover, usePopover } from "@ark-ui/react/popover";
|
|
9
9
|
//#region src/components/popover/Popover.tsx
|
|
10
10
|
const DEFAULT_CLOSE_BUTTON_LABEL = "Close popover";
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { Progress } from "@ark-ui/react/progress";
|
|
2
3
|
|
|
3
4
|
//#region src/components/progress-circular/ProgressCircular.d.ts
|
|
5
|
+
type ProgressCircularRingProps = Omit<ComponentProps<typeof Progress.Circle>, 'asChild' | 'children'>;
|
|
4
6
|
declare const ProgressCircular: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
7
|
Root: import("react").ForwardRefExoticComponent<Omit<Progress.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
8
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<Progress.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Context: (props: Progress.ContextProps) => import("react").ReactNode;
|
|
7
10
|
Label: import("react").ForwardRefExoticComponent<Omit<Progress.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
11
|
ValueText: import("react").ForwardRefExoticComponent<Omit<Progress.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
12
|
Circle: import("react").ForwardRefExoticComponent<Omit<Progress.CircleProps & import("react").RefAttributes<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
10
13
|
CircleTrack: import("react").ForwardRefExoticComponent<Omit<Progress.CircleTrackProps & import("react").RefAttributes<SVGCircleElement>, "ref"> & import("react").RefAttributes<SVGCircleElement>>;
|
|
11
14
|
CircleRange: import("react").ForwardRefExoticComponent<Omit<Progress.CircleRangeProps & import("react").RefAttributes<SVGCircleElement>, "ref"> & import("react").RefAttributes<SVGCircleElement>>;
|
|
15
|
+
Ring: import("react").ForwardRefExoticComponent<Omit<ProgressCircularRingProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
16
|
View: import("react").ForwardRefExoticComponent<Omit<Progress.ViewProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
useProgress: (props?: import("@ark-ui/react/progress").UseProgressProps) => import("@ark-ui/react/progress").UseProgressReturn;
|
|
18
|
+
useProgressContext: () => import("@ark-ui/react/progress").UseProgressContext;
|
|
13
19
|
};
|
|
14
20
|
//#endregion
|
|
15
21
|
export { ProgressCircular };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import ProgressCircular_module_default from "./ProgressCircular.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Progress, useProgress, useProgressContext } from "@ark-ui/react/progress";
|
|
7
7
|
//#region src/components/progress-circular/ProgressCircular.tsx
|
|
8
8
|
const ProgressCircularRoot = forwardRef(function ProgressCircularRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Progress.Root, {
|
|
@@ -61,6 +61,13 @@ const ProgressCircularCircleRange = forwardRef(function ProgressCircularCircleRa
|
|
|
61
61
|
...props
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
+
const ProgressCircularRing = forwardRef(function ProgressCircularRing(props, ref) {
|
|
65
|
+
return /* @__PURE__ */ jsxs(ProgressCircularCircle, {
|
|
66
|
+
ref,
|
|
67
|
+
...props,
|
|
68
|
+
children: [/* @__PURE__ */ jsx(ProgressCircularCircleTrack, {}), /* @__PURE__ */ jsx(ProgressCircularCircleRange, {})]
|
|
69
|
+
});
|
|
70
|
+
});
|
|
64
71
|
const ProgressCircularView = forwardRef(function ProgressCircularView({ className, ...props }, ref) {
|
|
65
72
|
return /* @__PURE__ */ jsx(Progress.View, {
|
|
66
73
|
ref,
|
|
@@ -72,12 +79,16 @@ const ProgressCircularView = forwardRef(function ProgressCircularView({ classNam
|
|
|
72
79
|
const ProgressCircular = Object.assign(ProgressCircularRoot, {
|
|
73
80
|
Root: ProgressCircularRoot,
|
|
74
81
|
RootProvider: ProgressCircularRootProvider,
|
|
82
|
+
Context: Progress.Context,
|
|
75
83
|
Label: ProgressCircularLabel,
|
|
76
84
|
ValueText: ProgressCircularValueText,
|
|
77
85
|
Circle: ProgressCircularCircle,
|
|
78
86
|
CircleTrack: ProgressCircularCircleTrack,
|
|
79
87
|
CircleRange: ProgressCircularCircleRange,
|
|
80
|
-
|
|
88
|
+
Ring: ProgressCircularRing,
|
|
89
|
+
View: ProgressCircularView,
|
|
90
|
+
useProgress,
|
|
91
|
+
useProgressContext
|
|
81
92
|
});
|
|
82
93
|
//#endregion
|
|
83
94
|
export { ProgressCircular };
|