@moduix/react 2.5.0 → 2.6.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 +65 -86
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +7 -8
- package/dist/components/alert/Alert.js +6 -7
- package/dist/components/alert/Alert_module.css +3 -16
- package/dist/components/angle-slider/AngleSlider.d.ts +5 -11
- package/dist/components/angle-slider/AngleSlider.js +17 -59
- package/dist/components/aspect-ratio/AspectRatio.js +1 -2
- package/dist/components/aspect-ratio/AspectRatio_module.css +0 -13
- package/dist/components/avatar/Avatar.d.ts +3 -6
- package/dist/components/avatar/Avatar.js +7 -50
- package/dist/components/avatar/Avatar.module.js +1 -2
- package/dist/components/avatar/Avatar_module.css +0 -6
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +5 -10
- package/dist/components/badge/Badge_module.css +7 -14
- package/dist/components/bleed/Bleed.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +16 -32
- package/dist/components/breadcrumbs/Breadcrumbs_module.css +12 -14
- package/dist/components/button/Button.d.ts +4 -4
- package/dist/components/button/Button.js +1 -2
- package/dist/components/button/Button_module.css +2 -7
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +10 -11
- package/dist/components/card/Card_module.css +1 -17
- package/dist/components/carousel/Carousel.js +12 -13
- package/dist/components/carousel/Carousel_module.css +10 -3
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +7 -8
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +12 -35
- package/dist/components/clipboard/Clipboard.js +8 -9
- package/dist/components/close-button/CloseButton.js +1 -2
- package/dist/components/close-button/CloseButton_module.css +1 -10
- package/dist/components/collapsible/Collapsible.js +6 -9
- package/dist/components/collapsible/Collapsible_module.css +2 -4
- package/dist/components/color-picker/ColorPicker.d.ts +4 -3
- package/dist/components/color-picker/ColorPicker.js +32 -45
- package/dist/components/color-picker/ColorPicker_module.css +0 -1
- package/dist/components/combobox/Combobox.d.ts +5 -5
- package/dist/components/combobox/Combobox.js +20 -29
- package/dist/components/combobox/Combobox_module.css +0 -1
- package/dist/components/command-palette/CommandPalette.d.ts +7 -18
- package/dist/components/command-palette/CommandPalette.js +51 -78
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +14 -44
- package/dist/components/date-input/DateInput_module.css +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/components/date-picker/DatePicker.js +34 -43
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +14 -4
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +11 -12
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +33 -24
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +10 -11
- package/dist/components/empty/Empty.js +6 -7
- package/dist/components/field/Field.js +10 -11
- package/dist/components/fieldset/Fieldset.js +5 -6
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +28 -55
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.js +14 -15
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +2 -1
- package/dist/components/hover-card/HoverCard.js +15 -6
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/image/Image.js +1 -2
- package/dist/components/image-cropper/ImageCropper.d.ts +1 -1
- package/dist/components/image-cropper/ImageCropper.js +7 -8
- package/dist/components/input/Input.d.ts +4 -4
- package/dist/components/input/Input.js +1 -2
- package/dist/components/input-group/InputGroup.d.ts +5 -5
- package/dist/components/input-group/InputGroup.js +5 -6
- package/dist/components/json-tree-view/JsonTreeView.js +3 -4
- package/dist/components/json-tree-view/JsonTreeView_module.css +26 -10
- package/dist/components/kbd/Kbd.js +2 -3
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +13 -14
- package/dist/components/lightbox/Lightbox_module.css +0 -3
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +19 -25
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +6 -7
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +34 -41
- package/dist/components/menu/Menu.module.js +1 -1
- package/dist/components/menu/Menu_module.css +8 -8
- package/dist/components/native-select/NativeSelect.js +2 -3
- package/dist/components/native-select/NativeSelect_module.css +0 -1
- package/dist/components/navigation-menu/NavigationMenu.js +17 -36
- package/dist/components/navigation-menu/NavigationMenu.module.js +2 -3
- package/dist/components/navigation-menu/NavigationMenu_module.css +15 -32
- package/dist/components/number-input/NumberInput.js +9 -10
- package/dist/components/pagination/Pagination.js +17 -20
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +7 -8
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +13 -54
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +16 -17
- package/dist/components/progress-circular/ProgressCircular.js +8 -9
- package/dist/components/progress-circular/ProgressCircular.module.js +1 -3
- package/dist/components/progress-circular/ProgressCircular_module.css +0 -10
- package/dist/components/progress-linear/ProgressLinear.js +7 -8
- package/dist/components/progress-linear/ProgressLinear.module.js +1 -5
- package/dist/components/progress-linear/ProgressLinear_module.css +0 -20
- package/dist/components/qr-code/QrCode.js +6 -7
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +13 -27
- package/dist/components/radio-group/RadioGroup_module.css +0 -1
- package/dist/components/rating-group/RatingGroup.d.ts +1 -0
- package/dist/components/rating-group/RatingGroup.js +12 -29
- package/dist/components/rating-group/RatingGroup_module.css +1 -1
- package/dist/components/scroll-area/ScrollArea.js +7 -8
- package/dist/components/segment-group/SegmentGroup.d.ts +1 -0
- package/dist/components/segment-group/SegmentGroup.js +16 -30
- package/dist/components/segment-group/SegmentGroup_module.css +4 -0
- package/dist/components/select/Select.d.ts +4 -7
- package/dist/components/select/Select.js +36 -86
- package/dist/components/select/Select.module.js +1 -1
- package/dist/components/select/Select_module.css +4 -31
- package/dist/components/separator/Separator.d.ts +6 -6
- package/dist/components/separator/Separator.js +1 -2
- package/dist/components/sidebar/Sidebar.d.ts +24 -22
- package/dist/components/sidebar/Sidebar.js +88 -75
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +112 -178
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +17 -46
- package/dist/components/signature-pad/SignaturePad_module.css +0 -1
- package/dist/components/simple-grid/SimpleGrid.js +13 -8
- package/dist/components/skeleton/Skeleton.d.ts +2 -2
- package/dist/components/skeleton/Skeleton.js +1 -2
- package/dist/components/slider/Slider.d.ts +2 -2
- package/dist/components/slider/Slider.js +18 -32
- package/dist/components/spinner/Spinner.d.ts +2 -2
- package/dist/components/spinner/Spinner.js +1 -2
- package/dist/components/split-button/SplitButton.d.ts +4 -4
- package/dist/components/split-button/SplitButton.js +11 -8
- package/dist/components/splitter/Splitter.js +5 -6
- package/dist/components/splitter/Splitter_module.css +2 -10
- package/dist/components/stack/Stack.d.ts +6 -6
- package/dist/components/stack/Stack.js +4 -5
- package/dist/components/stack/Stack_module.css +1 -1
- package/dist/components/steps/Steps.js +12 -13
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +3 -4
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +12 -35
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +12 -13
- package/dist/components/tabs/Tabs.js +6 -7
- package/dist/components/tabs/Tabs_module.css +5 -10
- package/dist/components/tag/Tag.js +5 -6
- package/dist/components/tag/Tag_module.css +2 -4
- package/dist/components/tags-input/TagsInput.d.ts +3 -3
- package/dist/components/tags-input/TagsInput.js +21 -75
- package/dist/components/tags-input/TagsInput_module.css +0 -1
- package/dist/components/text/Text.js +1 -2
- package/dist/components/textarea/Textarea.js +1 -2
- package/dist/components/timer/Timer.js +7 -8
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +7 -8
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +10 -11
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +2 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroup.js +3 -4
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.js +6 -7
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +14 -15
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +17 -18
- package/dist/components/tree-view/TreeView_module.css +39 -12
- package/dist/components/typeset/Typeset.js +2 -3
- package/dist/components/typeset/Typeset_module.css +300 -159
- package/dist/internal/icons/ui/Icons.d.ts +9 -30
- package/dist/internal/icons/ui/Icons.js +67 -807
- package/dist/internal/icons/ui/index.d.ts +1 -1
- package/dist/styles/animations.css +310 -0
- package/dist/styles/style.css +168 -2
- package/package.json +25 -25
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { NavigationMenu, useNavigationMenu, useNavigationMenuContext } from "@ark-ui/react/navigation-menu";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import {
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
5
|
+
import { forwardRef } from "react";
|
|
7
6
|
import NavigationMenu_module from "./NavigationMenu.module.js";
|
|
8
7
|
const NavigationMenu_NavigationMenuRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(NavigationMenu.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "navigation-menu-root",
|
|
12
|
-
className: clsx(NavigationMenu_module.root,
|
|
11
|
+
className: clsx(NavigationMenu_module.root, className),
|
|
13
12
|
...props
|
|
14
13
|
});
|
|
15
14
|
});
|
|
@@ -17,7 +16,7 @@ const NavigationMenu_NavigationMenuRootProvider = /*#__PURE__*/ forwardRef(funct
|
|
|
17
16
|
return /*#__PURE__*/ jsx(NavigationMenu.RootProvider, {
|
|
18
17
|
ref: ref,
|
|
19
18
|
"data-slot": "navigation-menu-root-provider",
|
|
20
|
-
className: clsx(NavigationMenu_module.root,
|
|
19
|
+
className: clsx(NavigationMenu_module.root, className),
|
|
21
20
|
...props
|
|
22
21
|
});
|
|
23
22
|
});
|
|
@@ -25,7 +24,7 @@ const NavigationMenu_NavigationMenuList = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
25
24
|
return /*#__PURE__*/ jsx(NavigationMenu.List, {
|
|
26
25
|
ref: ref,
|
|
27
26
|
"data-slot": "navigation-menu-list",
|
|
28
|
-
className: clsx(NavigationMenu_module.list,
|
|
27
|
+
className: clsx(NavigationMenu_module.list, className),
|
|
29
28
|
...props
|
|
30
29
|
});
|
|
31
30
|
});
|
|
@@ -33,7 +32,7 @@ const NavigationMenu_NavigationMenuItem = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
33
32
|
return /*#__PURE__*/ jsx(NavigationMenu.Item, {
|
|
34
33
|
ref: ref,
|
|
35
34
|
"data-slot": "navigation-menu-item",
|
|
36
|
-
className: clsx(NavigationMenu_module.item,
|
|
35
|
+
className: clsx(NavigationMenu_module.item, className),
|
|
37
36
|
...props
|
|
38
37
|
});
|
|
39
38
|
});
|
|
@@ -42,41 +41,23 @@ const NavigationMenu_NavigationMenuTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
42
41
|
ref: ref,
|
|
43
42
|
asChild: asChild,
|
|
44
43
|
"data-slot": "navigation-menu-trigger",
|
|
45
|
-
className: clsx(!asChild && NavigationMenu_module.trigger,
|
|
44
|
+
className: clsx(!asChild && NavigationMenu_module.trigger, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
49
|
-
const NavigationMenu_NavigationMenuContent = /*#__PURE__*/ forwardRef(function({
|
|
50
|
-
|
|
48
|
+
const NavigationMenu_NavigationMenuContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
49
|
+
return /*#__PURE__*/ jsx(NavigationMenu.Content, {
|
|
51
50
|
ref: ref,
|
|
52
|
-
asChild: true,
|
|
53
51
|
"data-slot": "navigation-menu-content",
|
|
54
|
-
className: clsx(NavigationMenu_module.content,
|
|
55
|
-
...props
|
|
56
|
-
children: children
|
|
57
|
-
});
|
|
58
|
-
const childrenArray = Children.toArray(children);
|
|
59
|
-
const indicators = childrenArray.filter((child)=>/*#__PURE__*/ isValidElement(child) && child.type === NavigationMenu_NavigationMenuIndicator);
|
|
60
|
-
const content = childrenArray.filter((child)=>!/*#__PURE__*/ isValidElement(child) || child.type !== NavigationMenu_NavigationMenuIndicator);
|
|
61
|
-
return /*#__PURE__*/ jsxs(NavigationMenu.Content, {
|
|
62
|
-
ref: ref,
|
|
63
|
-
"data-slot": "navigation-menu-content",
|
|
64
|
-
className: clsx(NavigationMenu_module.content, normalizeClassName(className)),
|
|
65
|
-
...props,
|
|
66
|
-
children: [
|
|
67
|
-
indicators,
|
|
68
|
-
/*#__PURE__*/ jsx("div", {
|
|
69
|
-
className: NavigationMenu_module.contentViewport,
|
|
70
|
-
children: content
|
|
71
|
-
})
|
|
72
|
-
]
|
|
52
|
+
className: clsx(NavigationMenu_module.content, className),
|
|
53
|
+
...props
|
|
73
54
|
});
|
|
74
55
|
});
|
|
75
56
|
const NavigationMenu_NavigationMenuLink = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
76
57
|
return /*#__PURE__*/ jsx(NavigationMenu.Link, {
|
|
77
58
|
ref: ref,
|
|
78
59
|
"data-slot": "navigation-menu-link",
|
|
79
|
-
className: clsx(NavigationMenu_module.link,
|
|
60
|
+
className: clsx(NavigationMenu_module.link, className),
|
|
80
61
|
...props
|
|
81
62
|
});
|
|
82
63
|
});
|
|
@@ -84,7 +65,7 @@ const NavigationMenu_NavigationMenuIndicator = /*#__PURE__*/ forwardRef(function
|
|
|
84
65
|
return /*#__PURE__*/ jsx(NavigationMenu.Indicator, {
|
|
85
66
|
ref: ref,
|
|
86
67
|
"data-slot": "navigation-menu-indicator",
|
|
87
|
-
className: clsx(NavigationMenu_module.indicator,
|
|
68
|
+
className: clsx(NavigationMenu_module.indicator, className),
|
|
88
69
|
...props
|
|
89
70
|
});
|
|
90
71
|
});
|
|
@@ -92,7 +73,7 @@ const NavigationMenu_NavigationMenuItemIndicator = /*#__PURE__*/ forwardRef(func
|
|
|
92
73
|
return /*#__PURE__*/ jsx(NavigationMenu.ItemIndicator, {
|
|
93
74
|
ref: ref,
|
|
94
75
|
"data-slot": "navigation-menu-item-indicator",
|
|
95
|
-
className: clsx(NavigationMenu_module.itemIndicator,
|
|
76
|
+
className: clsx(NavigationMenu_module.itemIndicator, className),
|
|
96
77
|
...props
|
|
97
78
|
});
|
|
98
79
|
});
|
|
@@ -100,7 +81,7 @@ const NavigationMenu_NavigationMenuArrow = /*#__PURE__*/ forwardRef(function({ c
|
|
|
100
81
|
return /*#__PURE__*/ jsx(NavigationMenu.Arrow, {
|
|
101
82
|
ref: ref,
|
|
102
83
|
"data-slot": "navigation-menu-arrow",
|
|
103
|
-
className: clsx(NavigationMenu_module.arrow,
|
|
84
|
+
className: clsx(NavigationMenu_module.arrow, className),
|
|
104
85
|
...props
|
|
105
86
|
});
|
|
106
87
|
});
|
|
@@ -108,7 +89,7 @@ const NavigationMenu_NavigationMenuViewportPositioner = /*#__PURE__*/ forwardRef
|
|
|
108
89
|
return /*#__PURE__*/ jsx(NavigationMenu.ViewportPositioner, {
|
|
109
90
|
ref: ref,
|
|
110
91
|
"data-slot": "navigation-menu-viewport-positioner",
|
|
111
|
-
className: clsx(NavigationMenu_module.viewportPositioner,
|
|
92
|
+
className: clsx(NavigationMenu_module.viewportPositioner, className),
|
|
112
93
|
...props
|
|
113
94
|
});
|
|
114
95
|
});
|
|
@@ -116,7 +97,7 @@ const NavigationMenu_NavigationMenuViewport = /*#__PURE__*/ forwardRef(function(
|
|
|
116
97
|
return /*#__PURE__*/ jsx(NavigationMenu.Viewport, {
|
|
117
98
|
ref: ref,
|
|
118
99
|
"data-slot": "navigation-menu-viewport",
|
|
119
|
-
className: clsx(NavigationMenu_module.viewport,
|
|
100
|
+
className: clsx(NavigationMenu_module.viewport, className),
|
|
120
101
|
...props
|
|
121
102
|
});
|
|
122
103
|
});
|
|
@@ -5,15 +5,14 @@ const NavigationMenu_module = {
|
|
|
5
5
|
item: "item-LmKKOe",
|
|
6
6
|
viewportPositioner: "viewportPositioner-hUgOWA",
|
|
7
7
|
viewport: "viewport-Gtf85E",
|
|
8
|
+
indicator: "indicator-f9Famp",
|
|
9
|
+
content: "content-dvfEnJ",
|
|
8
10
|
trigger: "trigger-Qt8Wrp",
|
|
9
11
|
link: "link-HFA7O5",
|
|
10
|
-
content: "content-dvfEnJ",
|
|
11
12
|
"navigation-menu-content-in": "navigation-menu-content-in-z6oz3S",
|
|
12
13
|
navigationMenuContentIn: "navigation-menu-content-in-z6oz3S",
|
|
13
14
|
"navigation-menu-content-out": "navigation-menu-content-out-PRe3xI",
|
|
14
15
|
navigationMenuContentOut: "navigation-menu-content-out-PRe3xI",
|
|
15
|
-
contentViewport: "contentViewport-MCA9d7",
|
|
16
|
-
indicator: "indicator-f9Famp",
|
|
17
16
|
"navigation-menu-indicator-in": "navigation-menu-indicator-in-CVxbn2",
|
|
18
17
|
navigationMenuIndicatorIn: "navigation-menu-indicator-in-CVxbn2",
|
|
19
18
|
"navigation-menu-indicator-out": "navigation-menu-indicator-out-rEIfTV",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer moduix.components {
|
|
2
2
|
.root-l1uCDR {
|
|
3
3
|
box-sizing: border-box;
|
|
4
|
-
inline-size: -moz-fit-content;
|
|
5
4
|
inline-size: fit-content;
|
|
6
5
|
min-inline-size: 0;
|
|
7
6
|
max-inline-size: 100%;
|
|
@@ -32,10 +31,14 @@
|
|
|
32
31
|
position: relative;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
.root-l1uCDR:has( > .viewportPositioner-hUgOWA > .viewport-Gtf85E) .item-LmKKOe {
|
|
34
|
+
:is(.root-l1uCDR:has( > .viewportPositioner-hUgOWA > .viewport-Gtf85E) .item-LmKKOe, .list-vJ6fy3:has( > .indicator-f9Famp) .item-LmKKOe) {
|
|
36
35
|
position: static;
|
|
37
36
|
}
|
|
38
37
|
|
|
38
|
+
.list-vJ6fy3:has( > .indicator-f9Famp) .content-dvfEnJ[data-state="closed"] {
|
|
39
|
+
animation: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
39
42
|
.trigger-Qt8Wrp, .link-HFA7O5 {
|
|
40
43
|
box-sizing: border-box;
|
|
41
44
|
min-block-size: var(--moduix-navigation-menu-trigger-height, var(--moduix-size-md));
|
|
@@ -109,6 +112,8 @@
|
|
|
109
112
|
calc(100vw - var(--moduix-spacing-6)));
|
|
110
113
|
max-inline-size: min(var(--moduix-navigation-menu-content-max-width, 20rem),
|
|
111
114
|
calc(100vw - var(--moduix-spacing-6)));
|
|
115
|
+
max-block-size: min(var(--moduix-navigation-menu-content-max-height, 24rem),
|
|
116
|
+
calc(100dvh - var(--moduix-spacing-6)));
|
|
112
117
|
outline: var(--moduix-navigation-menu-content-border-width, var(--moduix-border-width-sm)) solid
|
|
113
118
|
var(--moduix-navigation-menu-content-border-color, var(--moduix-color-border));
|
|
114
119
|
border-radius: var(--moduix-navigation-menu-content-radius, var(--moduix-radius-md));
|
|
@@ -123,7 +128,7 @@
|
|
|
123
128
|
position: absolute;
|
|
124
129
|
inset-block-start: calc(100% + var(--moduix-navigation-menu-content-offset, var(--moduix-spacing-2)));
|
|
125
130
|
inset-inline-start: 0;
|
|
126
|
-
overflow:
|
|
131
|
+
overflow: auto;
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
.content-dvfEnJ[dir="rtl"] {
|
|
@@ -145,16 +150,6 @@
|
|
|
145
150
|
pointer-events: none;
|
|
146
151
|
}
|
|
147
152
|
|
|
148
|
-
.contentViewport-MCA9d7 {
|
|
149
|
-
z-index: 1;
|
|
150
|
-
max-block-size: min(var(--moduix-navigation-menu-content-max-height, 24rem),
|
|
151
|
-
calc(100dvh - var(--moduix-spacing-6)));
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
display: flex;
|
|
154
|
-
position: relative;
|
|
155
|
-
overflow: auto;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
153
|
.content-dvfEnJ .link-HFA7O5 {
|
|
159
154
|
margin-inline: var(--moduix-popup-highlight-inset-x, var(--moduix-spacing-1));
|
|
160
155
|
border-radius: var(--moduix-navigation-menu-content-link-radius, var(--moduix-radius-sm));
|
|
@@ -187,13 +182,15 @@
|
|
|
187
182
|
}
|
|
188
183
|
|
|
189
184
|
.list-vJ6fy3 > .indicator-f9Famp {
|
|
185
|
+
z-index: calc(var(--moduix-navigation-menu-content-z-index, var(--moduix-z-popup)) + 1);
|
|
190
186
|
inset-block-start: auto;
|
|
191
187
|
inset-block-end: calc(-1 * var(--moduix-navigation-menu-indicator-size, var(--moduix-spacing-2-5)));
|
|
192
188
|
}
|
|
193
189
|
|
|
194
190
|
.arrow-oIu4Ws {
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
--arrow-size: var(--moduix-navigation-menu-arrow-size, var(--moduix-spacing-2-5));
|
|
192
|
+
inline-size: var(--arrow-size);
|
|
193
|
+
block-size: var(--arrow-size);
|
|
197
194
|
border-block-start: var(--moduix-navigation-menu-content-border-width, var(--moduix-border-width-sm))
|
|
198
195
|
solid
|
|
199
196
|
var(--moduix-navigation-menu-arrow-stroke-color, var(--moduix-navigation-menu-content-border-color, var(--moduix-color-border)));
|
|
@@ -230,17 +227,6 @@
|
|
|
230
227
|
translate: 0;
|
|
231
228
|
}
|
|
232
229
|
|
|
233
|
-
.viewportPositioner-hUgOWA > .indicator-f9Famp {
|
|
234
|
-
z-index: 1;
|
|
235
|
-
translate: calc(var(--trigger-x, 0px) - var(--viewport-x, 0px)) 0;
|
|
236
|
-
inset-block-start: calc(var(--moduix-navigation-menu-viewport-offset, var(--moduix-spacing-2)) -
|
|
237
|
-
var(--moduix-navigation-menu-indicator-size, var(--moduix-spacing-2-5)));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.viewportPositioner-hUgOWA[data-orientation="horizontal"] > .indicator-f9Famp {
|
|
241
|
-
overflow: hidden;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
230
|
.viewport-Gtf85E {
|
|
245
231
|
box-sizing: border-box;
|
|
246
232
|
inline-size: var(--viewport-width);
|
|
@@ -262,7 +248,7 @@
|
|
|
262
248
|
block-size
|
|
263
249
|
var(--moduix-navigation-menu-viewport-transition, var(--moduix-popup-motion-duration, var(--moduix-duration-normal))
|
|
264
250
|
var(--moduix-popup-motion-easing, var(--moduix-ease-in-out)));
|
|
265
|
-
margin-block-start: var(--moduix-navigation-menu-viewport-offset, var(--moduix-spacing-2));
|
|
251
|
+
margin-block-start: var(--moduix-navigation-menu-viewport-offset, var(--moduix-navigation-menu-indicator-size, var(--moduix-spacing-2-5)));
|
|
266
252
|
position: relative;
|
|
267
253
|
overflow: hidden;
|
|
268
254
|
}
|
|
@@ -288,6 +274,7 @@
|
|
|
288
274
|
}
|
|
289
275
|
|
|
290
276
|
.viewport-Gtf85E .content-dvfEnJ {
|
|
277
|
+
max-block-size: none;
|
|
291
278
|
box-shadow: none;
|
|
292
279
|
transform-origin: center;
|
|
293
280
|
will-change: translate, opacity;
|
|
@@ -297,11 +284,7 @@
|
|
|
297
284
|
margin: 0;
|
|
298
285
|
position: absolute;
|
|
299
286
|
inset: 0 auto auto 0;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
.viewport-Gtf85E .contentViewport-MCA9d7 {
|
|
303
|
-
z-index: 2;
|
|
304
|
-
max-block-size: none;
|
|
287
|
+
overflow: visible;
|
|
305
288
|
}
|
|
306
289
|
|
|
307
290
|
.viewport-Gtf85E .content-dvfEnJ[data-state] {
|
|
@@ -4,13 +4,12 @@ import { NumberInput, useNumberInput, useNumberInputContext } from "@ark-ui/reac
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { MinusIcon, PlusIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import NumberInput_module from "./NumberInput.module.js";
|
|
9
8
|
const NumberInput_NumberInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(NumberInput.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "number-input-root",
|
|
13
|
-
className: clsx(NumberInput_module.root,
|
|
12
|
+
className: clsx(NumberInput_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -18,7 +17,7 @@ const NumberInput_NumberInputRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
|
18
17
|
return /*#__PURE__*/ jsx(NumberInput.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "number-input-root-provider",
|
|
21
|
-
className: clsx(NumberInput_module.root,
|
|
20
|
+
className: clsx(NumberInput_module.root, className),
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -26,7 +25,7 @@ const NumberInput_NumberInputLabel = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
26
25
|
return /*#__PURE__*/ jsx(NumberInput.Label, {
|
|
27
26
|
ref: ref,
|
|
28
27
|
"data-slot": "number-input-label",
|
|
29
|
-
className: clsx(NumberInput_module.label,
|
|
28
|
+
className: clsx(NumberInput_module.label, className),
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,7 +33,7 @@ const NumberInput_NumberInputScrubber = /*#__PURE__*/ forwardRef(function({ clas
|
|
|
34
33
|
return /*#__PURE__*/ jsx(NumberInput.Scrubber, {
|
|
35
34
|
ref: ref,
|
|
36
35
|
"data-slot": "number-input-scrubber",
|
|
37
|
-
className: clsx(NumberInput_module.scrubber,
|
|
36
|
+
className: clsx(NumberInput_module.scrubber, className),
|
|
38
37
|
...props
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -42,7 +41,7 @@ const NumberInput_NumberInputControl = /*#__PURE__*/ forwardRef(function({ class
|
|
|
42
41
|
return /*#__PURE__*/ jsx(NumberInput.Control, {
|
|
43
42
|
ref: ref,
|
|
44
43
|
"data-slot": "number-input-control",
|
|
45
|
-
className: clsx(NumberInput_module.control,
|
|
44
|
+
className: clsx(NumberInput_module.control, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -50,7 +49,7 @@ const NumberInput_NumberInputDecrementTrigger = /*#__PURE__*/ forwardRef(functio
|
|
|
50
49
|
return /*#__PURE__*/ jsx(NumberInput.DecrementTrigger, {
|
|
51
50
|
ref: ref,
|
|
52
51
|
"data-slot": "number-input-decrement-trigger",
|
|
53
|
-
className: clsx(NumberInput_module.decrementTrigger,
|
|
52
|
+
className: clsx(NumberInput_module.decrementTrigger, className),
|
|
54
53
|
...props,
|
|
55
54
|
children: children ?? /*#__PURE__*/ jsx(MinusIcon, {})
|
|
56
55
|
});
|
|
@@ -59,7 +58,7 @@ const NumberInput_NumberInputInput = /*#__PURE__*/ forwardRef(function({ classNa
|
|
|
59
58
|
return /*#__PURE__*/ jsx(NumberInput.Input, {
|
|
60
59
|
ref: ref,
|
|
61
60
|
"data-slot": "number-input-input",
|
|
62
|
-
className: clsx(NumberInput_module.input,
|
|
61
|
+
className: clsx(NumberInput_module.input, className),
|
|
63
62
|
...props
|
|
64
63
|
});
|
|
65
64
|
});
|
|
@@ -67,7 +66,7 @@ const NumberInput_NumberInputIncrementTrigger = /*#__PURE__*/ forwardRef(functio
|
|
|
67
66
|
return /*#__PURE__*/ jsx(NumberInput.IncrementTrigger, {
|
|
68
67
|
ref: ref,
|
|
69
68
|
"data-slot": "number-input-increment-trigger",
|
|
70
|
-
className: clsx(NumberInput_module.incrementTrigger,
|
|
69
|
+
className: clsx(NumberInput_module.incrementTrigger, className),
|
|
71
70
|
...props,
|
|
72
71
|
children: children ?? /*#__PURE__*/ jsx(PlusIcon, {})
|
|
73
72
|
});
|
|
@@ -76,7 +75,7 @@ const NumberInput_NumberInputValueText = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
76
75
|
return /*#__PURE__*/ jsx(NumberInput.ValueText, {
|
|
77
76
|
ref: ref,
|
|
78
77
|
"data-slot": "number-input-value-text",
|
|
79
|
-
className: clsx(NumberInput_module.valueText,
|
|
78
|
+
className: clsx(NumberInput_module.valueText, className),
|
|
80
79
|
...props
|
|
81
80
|
});
|
|
82
81
|
});
|
|
@@ -3,23 +3,20 @@ import { Pagination, usePagination, usePaginationContext } from "@ark-ui/react/p
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { ChevronLeftIcon, ChevronRightIcon } from "../../internal/icons/ui/index.js";
|
|
6
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
7
6
|
import Pagination_module from "./Pagination.module.js";
|
|
8
|
-
const Pagination_PaginationRoot = /*#__PURE__*/ forwardRef(function({
|
|
7
|
+
const Pagination_PaginationRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
9
8
|
return /*#__PURE__*/ jsx(Pagination.Root, {
|
|
10
9
|
ref: ref,
|
|
11
10
|
"data-slot": "pagination-root",
|
|
12
|
-
|
|
13
|
-
className: clsx(Pagination_module.root, normalizeClassName(className)),
|
|
11
|
+
className: clsx(Pagination_module.root, className),
|
|
14
12
|
...props
|
|
15
13
|
});
|
|
16
14
|
});
|
|
17
|
-
const Pagination_PaginationRootProvider = /*#__PURE__*/ forwardRef(function({
|
|
15
|
+
const Pagination_PaginationRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
18
16
|
return /*#__PURE__*/ jsx(Pagination.RootProvider, {
|
|
19
17
|
ref: ref,
|
|
20
18
|
"data-slot": "pagination-root-provider",
|
|
21
|
-
|
|
22
|
-
className: clsx(Pagination_module.root, normalizeClassName(className)),
|
|
19
|
+
className: clsx(Pagination_module.root, className),
|
|
23
20
|
...props
|
|
24
21
|
});
|
|
25
22
|
});
|
|
@@ -27,7 +24,7 @@ const Pagination_PaginationItem = /*#__PURE__*/ forwardRef(function({ className,
|
|
|
27
24
|
return /*#__PURE__*/ jsx(Pagination.Item, {
|
|
28
25
|
ref: ref,
|
|
29
26
|
"data-slot": "pagination-item",
|
|
30
|
-
className: clsx(Pagination_module.item,
|
|
27
|
+
className: clsx(Pagination_module.item, className),
|
|
31
28
|
...props
|
|
32
29
|
});
|
|
33
30
|
});
|
|
@@ -35,9 +32,9 @@ const Pagination_PaginationEllipsis = /*#__PURE__*/ forwardRef(function({ classN
|
|
|
35
32
|
return /*#__PURE__*/ jsx(Pagination.Ellipsis, {
|
|
36
33
|
ref: ref,
|
|
37
34
|
"data-slot": "pagination-ellipsis",
|
|
38
|
-
className: clsx(Pagination_module.ellipsis,
|
|
35
|
+
className: clsx(Pagination_module.ellipsis, className),
|
|
39
36
|
...props,
|
|
40
|
-
children: children ?? '...'
|
|
37
|
+
children: children ?? (!props.asChild && '...')
|
|
41
38
|
});
|
|
42
39
|
});
|
|
43
40
|
function EdgeIcon({ side }) {
|
|
@@ -55,40 +52,40 @@ const Pagination_PaginationPrevTrigger = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
55
52
|
return /*#__PURE__*/ jsx(Pagination.PrevTrigger, {
|
|
56
53
|
ref: ref,
|
|
57
54
|
"data-slot": "pagination-prev-trigger",
|
|
58
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger,
|
|
55
|
+
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
59
56
|
...props,
|
|
60
|
-
children: children ?? /*#__PURE__*/ jsx(ChevronLeftIcon, {})
|
|
57
|
+
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronLeftIcon, {}))
|
|
61
58
|
});
|
|
62
59
|
});
|
|
63
60
|
const Pagination_PaginationNextTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
64
61
|
return /*#__PURE__*/ jsx(Pagination.NextTrigger, {
|
|
65
62
|
ref: ref,
|
|
66
63
|
"data-slot": "pagination-next-trigger",
|
|
67
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger,
|
|
64
|
+
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
68
65
|
...props,
|
|
69
|
-
children: children ?? /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
66
|
+
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(ChevronRightIcon, {}))
|
|
70
67
|
});
|
|
71
68
|
});
|
|
72
69
|
const Pagination_PaginationFirstTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
73
70
|
return /*#__PURE__*/ jsx(Pagination.FirstTrigger, {
|
|
74
71
|
ref: ref,
|
|
75
72
|
"data-slot": "pagination-first-trigger",
|
|
76
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger,
|
|
73
|
+
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
77
74
|
...props,
|
|
78
|
-
children: children ?? /*#__PURE__*/ jsx(EdgeIcon, {
|
|
75
|
+
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
79
76
|
side: "left"
|
|
80
|
-
})
|
|
77
|
+
}))
|
|
81
78
|
});
|
|
82
79
|
});
|
|
83
80
|
const Pagination_PaginationLastTrigger = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
84
81
|
return /*#__PURE__*/ jsx(Pagination.LastTrigger, {
|
|
85
82
|
ref: ref,
|
|
86
83
|
"data-slot": "pagination-last-trigger",
|
|
87
|
-
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger,
|
|
84
|
+
className: clsx(Pagination_module.trigger, null == children && Pagination_module.iconTrigger, className),
|
|
88
85
|
...props,
|
|
89
|
-
children: children ?? /*#__PURE__*/ jsx(EdgeIcon, {
|
|
86
|
+
children: children ?? (!props.asChild && /*#__PURE__*/ jsx(EdgeIcon, {
|
|
90
87
|
side: "right"
|
|
91
|
-
})
|
|
88
|
+
}))
|
|
92
89
|
});
|
|
93
90
|
});
|
|
94
91
|
const PaginationContext = Pagination.Context;
|
|
@@ -33,10 +33,6 @@
|
|
|
33
33
|
-webkit-user-select: none;
|
|
34
34
|
user-select: none;
|
|
35
35
|
white-space: nowrap;
|
|
36
|
-
transition: background-color var(--moduix-pagination-transition, var(--moduix-transition-default)),
|
|
37
|
-
border-color var(--moduix-pagination-transition, var(--moduix-transition-default)),
|
|
38
|
-
color var(--moduix-pagination-transition, var(--moduix-transition-default)),
|
|
39
|
-
opacity var(--moduix-pagination-transition, var(--moduix-transition-default));
|
|
40
36
|
font-family: inherit;
|
|
41
37
|
text-decoration: none;
|
|
42
38
|
}
|
|
@@ -47,7 +43,7 @@
|
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
:is(.item-TI2iyy, .trigger-Z_SoJt):focus-visible
|
|
46
|
+
:is(.item-TI2iyy, .trigger-Z_SoJt):focus-visible {
|
|
51
47
|
outline: var(--moduix-pagination-focus-ring-width, var(--moduix-focus-ring-width, var(--moduix-border-width-md)))
|
|
52
48
|
solid var(--moduix-pagination-focus-ring-color, var(--moduix-color-ring));
|
|
53
49
|
outline-offset: var(--moduix-pagination-focus-ring-offset, var(--moduix-focus-ring-inset-offset));
|
|
@@ -4,13 +4,12 @@ import { PasswordInput, usePasswordInput, usePasswordInputContext } from "@ark-u
|
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { EyeClosedIcon, EyeIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
8
7
|
import PasswordInput_module from "./PasswordInput.module.js";
|
|
9
8
|
const PasswordInput_PasswordInputRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
10
9
|
return /*#__PURE__*/ jsx(PasswordInput.Root, {
|
|
11
10
|
ref: ref,
|
|
12
11
|
"data-slot": "password-input-root",
|
|
13
|
-
className: clsx(PasswordInput_module.root,
|
|
12
|
+
className: clsx(PasswordInput_module.root, className),
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
16
15
|
});
|
|
@@ -18,7 +17,7 @@ const PasswordInput_PasswordInputRootProvider = /*#__PURE__*/ forwardRef(functio
|
|
|
18
17
|
return /*#__PURE__*/ jsx(PasswordInput.RootProvider, {
|
|
19
18
|
ref: ref,
|
|
20
19
|
"data-slot": "password-input-root-provider",
|
|
21
|
-
className: clsx(PasswordInput_module.root,
|
|
20
|
+
className: clsx(PasswordInput_module.root, className),
|
|
22
21
|
...props
|
|
23
22
|
});
|
|
24
23
|
});
|
|
@@ -26,7 +25,7 @@ const PasswordInput_PasswordInputLabel = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
26
25
|
return /*#__PURE__*/ jsx(PasswordInput.Label, {
|
|
27
26
|
ref: ref,
|
|
28
27
|
"data-slot": "password-input-label",
|
|
29
|
-
className: clsx(PasswordInput_module.label,
|
|
28
|
+
className: clsx(PasswordInput_module.label, className),
|
|
30
29
|
...props
|
|
31
30
|
});
|
|
32
31
|
});
|
|
@@ -34,7 +33,7 @@ const PasswordInput_PasswordInputControl = /*#__PURE__*/ forwardRef(function({ c
|
|
|
34
33
|
return /*#__PURE__*/ jsx(PasswordInput.Control, {
|
|
35
34
|
ref: ref,
|
|
36
35
|
"data-slot": "password-input-control",
|
|
37
|
-
className: clsx(PasswordInput_module.control,
|
|
36
|
+
className: clsx(PasswordInput_module.control, className),
|
|
38
37
|
...props
|
|
39
38
|
});
|
|
40
39
|
});
|
|
@@ -42,7 +41,7 @@ const PasswordInput_PasswordInputInput = /*#__PURE__*/ forwardRef(function({ cla
|
|
|
42
41
|
return /*#__PURE__*/ jsx(PasswordInput.Input, {
|
|
43
42
|
ref: ref,
|
|
44
43
|
"data-slot": "password-input-input",
|
|
45
|
-
className: clsx(PasswordInput_module.input,
|
|
44
|
+
className: clsx(PasswordInput_module.input, className),
|
|
46
45
|
...props
|
|
47
46
|
});
|
|
48
47
|
});
|
|
@@ -50,7 +49,7 @@ const PasswordInput_PasswordInputVisibilityTrigger = /*#__PURE__*/ forwardRef(fu
|
|
|
50
49
|
return /*#__PURE__*/ jsx(PasswordInput.VisibilityTrigger, {
|
|
51
50
|
ref: ref,
|
|
52
51
|
"data-slot": "password-input-visibility-trigger",
|
|
53
|
-
className: clsx(PasswordInput_module.visibilityTrigger,
|
|
52
|
+
className: clsx(PasswordInput_module.visibilityTrigger, className),
|
|
54
53
|
...props
|
|
55
54
|
});
|
|
56
55
|
});
|
|
@@ -58,7 +57,7 @@ const PasswordInput_PasswordInputIndicator = /*#__PURE__*/ forwardRef(function({
|
|
|
58
57
|
return /*#__PURE__*/ jsx(PasswordInput.Indicator, {
|
|
59
58
|
ref: ref,
|
|
60
59
|
"data-slot": "password-input-indicator",
|
|
61
|
-
className: clsx(PasswordInput_module.indicator,
|
|
60
|
+
className: clsx(PasswordInput_module.indicator, className),
|
|
62
61
|
fallback: fallback ?? /*#__PURE__*/ jsx(EyeClosedIcon, {}),
|
|
63
62
|
...props,
|
|
64
63
|
children: children ?? /*#__PURE__*/ jsx(EyeIcon, {})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PinInput as PinInputPrimitive, usePinInputContext, type UsePinInputProps } from '@ark-ui/react/pin-input';
|
|
2
|
-
import type { ComponentProps
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
declare function PinInputInputs({ className }: {
|
|
4
4
|
className?: string;
|
|
5
5
|
}): import("react").JSX.Element[];
|
|
@@ -8,7 +8,8 @@ declare function usePinInput(props?: UsePinInputProps): import("@ark-ui/react/pi
|
|
|
8
8
|
declare const PinInput: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
9
9
|
Root: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
Context: (props: PinInputPrimitive.ContextProps) => ReactNode;
|
|
11
|
+
Context: (props: PinInputPrimitive.ContextProps) => import("react").ReactNode;
|
|
12
|
+
HiddenInput: import("react").ForwardRefExoticComponent<PinInputPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
13
|
Label: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
13
14
|
Control: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
15
|
Input: import("react").ForwardRefExoticComponent<Omit<PinInputPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|