@moduix/react 2.5.1 → 2.7.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 +24 -3
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.js +20 -21
- package/dist/components/alert/Alert.js +18 -19
- 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 +29 -71
- 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 +14 -57
- 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 -8
- package/dist/components/card/Card.d.ts +15 -15
- package/dist/components/card/Card.js +30 -31
- package/dist/components/card/Card_module.css +2 -18
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +34 -35
- package/dist/components/carousel/Carousel_module.css +7 -0
- package/dist/components/chart/Chart.d.ts +9 -8
- package/dist/components/chart/Chart.js +21 -22
- package/dist/components/chart/Chart_module.css +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +3 -2
- package/dist/components/checkbox/Checkbox.js +20 -43
- package/dist/components/clipboard/Clipboard.js +27 -27
- 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 +17 -20
- 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 +79 -92
- 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 +51 -60
- 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 +99 -126
- package/dist/components/command-palette/CommandPalette_module.css +11 -18
- package/dist/components/container/Container.js +1 -2
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.d.ts +7 -9
- package/dist/components/date-input/DateInput.js +24 -54
- 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 +84 -93
- package/dist/components/date-picker/DatePicker.module.js +1 -1
- package/dist/components/date-picker/DatePicker_module.css +5 -2
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +31 -32
- package/dist/components/drawer/Drawer.d.ts +6 -3
- package/dist/components/drawer/Drawer.js +63 -54
- package/dist/components/editable/Editable.d.ts +1 -1
- package/dist/components/editable/Editable.js +27 -28
- package/dist/components/empty/Empty.js +18 -19
- package/dist/components/field/Field.js +29 -30
- package/dist/components/fieldset/Fieldset.js +15 -16
- package/dist/components/file-upload/FileUpload.d.ts +3 -2
- package/dist/components/file-upload/FileUpload.js +52 -79
- package/dist/components/file-upload/FileUpload_module.css +4 -13
- package/dist/components/floating-panel/FloatingPanel.d.ts +3 -3
- package/dist/components/floating-panel/FloatingPanel.js +36 -37
- package/dist/components/floating-panel/FloatingPanel_module.css +4 -17
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/highlight/Highlight.js +1 -2
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +24 -15
- package/dist/components/hover-card/HoverCard.module.js +1 -0
- package/dist/components/hover-card/HoverCard_module.css +18 -3
- package/dist/components/hover-card/index.d.ts +1 -0
- 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 +21 -22
- 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 +6 -7
- package/dist/components/lightbox/Lightbox.d.ts +1 -1
- package/dist/components/lightbox/Lightbox.js +38 -39
- package/dist/components/lightbox/Lightbox_module.css +0 -2
- package/dist/components/list/List.js +2 -3
- package/dist/components/listbox/Listbox.d.ts +5 -5
- package/dist/components/listbox/Listbox.js +50 -56
- package/dist/components/listbox/Listbox.module.js +2 -2
- package/dist/components/listbox/Listbox_module.css +3 -13
- package/dist/components/marquee/Marquee.js +18 -19
- package/dist/components/menu/Menu.d.ts +2 -1
- package/dist/components/menu/Menu.js +72 -79
- 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 +39 -58
- 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 +25 -26
- package/dist/components/pagination/Pagination.js +28 -31
- package/dist/components/pagination/Pagination_module.css +1 -5
- package/dist/components/password-input/PasswordInput.js +20 -21
- package/dist/components/pin-input/PinInput.d.ts +3 -2
- package/dist/components/pin-input/PinInput.js +20 -61
- package/dist/components/popover/Popover.d.ts +5 -3
- package/dist/components/popover/Popover.js +41 -42
- package/dist/components/progress-circular/ProgressCircular.js +24 -25
- 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 +21 -22
- 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 +18 -19
- package/dist/components/radio-group/RadioGroup.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.js +25 -39
- 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 +19 -36
- 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 +28 -42
- 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 +69 -119
- 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 +16 -16
- package/dist/components/sidebar/Sidebar.js +81 -86
- package/dist/components/sidebar/Sidebar.module.js +2 -3
- package/dist/components/sidebar/Sidebar_module.css +62 -158
- package/dist/components/signature-pad/SignaturePad.d.ts +5 -8
- package/dist/components/signature-pad/SignaturePad.js +28 -57
- 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 +38 -52
- 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 +7 -7
- package/dist/components/split-button/SplitButton.js +25 -17
- package/dist/components/splitter/Splitter.js +14 -15
- 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 +35 -36
- package/dist/components/steps/Steps_module.css +2 -3
- package/dist/components/swap/Swap.js +9 -10
- package/dist/components/switch/Switch.d.ts +3 -2
- package/dist/components/switch/Switch.js +17 -40
- package/dist/components/switch/Switch_module.css +0 -1
- package/dist/components/table/Table.d.ts +5 -5
- package/dist/components/table/Table.js +35 -36
- package/dist/components/tabs/Tabs.js +18 -19
- 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 +37 -91
- 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 +21 -22
- package/dist/components/toast/Toast.d.ts +1 -1
- package/dist/components/toast/Toast.js +15 -16
- package/dist/components/toast/Toast_module.css +1 -2
- package/dist/components/toc/Toc.js +29 -30
- package/dist/components/toc/Toc_module.css +2 -2
- package/dist/components/toggle/Toggle.js +6 -7
- 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 +17 -18
- package/dist/components/tooltip/Tooltip_module.css +1 -1
- package/dist/components/tour/Tour.d.ts +1 -1
- package/dist/components/tour/Tour.js +39 -40
- package/dist/components/tree-view/TreeView.d.ts +4 -4
- package/dist/components/tree-view/TreeView.js +47 -48
- 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 +23 -23
- package/dist/internal/normalizeClassName.d.ts +0 -1
- package/dist/internal/normalizeClassName.js +0 -2
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { Combobox as ComboboxPrimitive } from '@ark-ui/react/combobox';
|
|
1
|
+
import { Combobox as ComboboxPrimitive, type ComboboxRootComponent } from '@ark-ui/react/combobox';
|
|
2
2
|
import { Dialog as DialogPrimitive } from '@ark-ui/react/dialog';
|
|
3
3
|
import type { ComponentProps } from 'react';
|
|
4
|
-
import { type OverlayPortalProps } from '../../internal/overlayPortal';
|
|
5
|
-
import {
|
|
6
|
-
import { Kbd } from '../kbd';
|
|
4
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
5
|
+
import { Kbd } from '../kbd/index.js';
|
|
7
6
|
type CommandPaletteRootProps = ComponentProps<typeof DialogPrimitive.Root> & {
|
|
8
7
|
shortcut?: false | string;
|
|
9
|
-
shortcutTarget?: Document | HTMLElement | null;
|
|
10
8
|
} & OverlayPortalProps;
|
|
11
9
|
type CommandPaletteRootProviderProps = ComponentProps<typeof DialogPrimitive.RootProvider> & OverlayPortalProps;
|
|
12
|
-
|
|
13
|
-
controlProps?: ComponentProps<typeof ComboboxPrimitive.Control>;
|
|
14
|
-
clearTriggerProps?: ComponentProps<typeof CloseButton.Root>;
|
|
15
|
-
};
|
|
16
|
-
declare function CommandPaletteRoot({ shortcut, shortcutTarget, lazyMount, unmountOnExit, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }: CommandPaletteRootProps): import("react").JSX.Element;
|
|
10
|
+
declare function CommandPaletteRoot({ shortcut, lazyMount, unmountOnExit, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }: CommandPaletteRootProps): import("react").JSX.Element;
|
|
17
11
|
declare function CommandPaletteRootProvider({ lazyMount, portalled, portalRef, unmountOnExit, ...props }: CommandPaletteRootProviderProps): import("react").JSX.Element;
|
|
18
12
|
declare function CommandPaletteKbd({ className, ...props }: ComponentProps<typeof Kbd.Root>): import("react").JSX.Element;
|
|
19
13
|
declare const CommandPalette: typeof CommandPaletteRoot & {
|
|
@@ -28,16 +22,11 @@ declare const CommandPalette: typeof CommandPaletteRoot & {
|
|
|
28
22
|
Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
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>>;
|
|
30
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>>;
|
|
31
|
-
Combobox:
|
|
25
|
+
Combobox: ComboboxRootComponent;
|
|
32
26
|
Control: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
27
|
Input: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
34
|
-
Search: import("react").ForwardRefExoticComponent<Omit<
|
|
35
|
-
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<
|
|
36
|
-
'data-disabled'?: string;
|
|
37
|
-
'data-part'?: string;
|
|
38
|
-
'data-scope'?: string;
|
|
39
|
-
'data-slot'?: string;
|
|
40
|
-
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
Search: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
29
|
+
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
41
30
|
List: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
42
31
|
Empty: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
43
32
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<ComboboxPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -3,51 +3,34 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Combobox } from "@ark-ui/react/combobox";
|
|
4
4
|
import { Dialog, useDialog, useDialogContext } from "@ark-ui/react/dialog";
|
|
5
5
|
import { ark } from "@ark-ui/react/factory";
|
|
6
|
+
import { isHotKey } from "@zag-js/hotkeys";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
import { forwardRef, useEffect } from "react";
|
|
8
|
-
import { CheckIcon } from "../../internal/icons/ui/index.js";
|
|
9
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
9
|
+
import { CheckIcon, CloseIcon } from "../../internal/icons/ui/index.js";
|
|
10
10
|
import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
|
|
11
|
-
import
|
|
11
|
+
import CloseButton_module from "../close-button/CloseButton.module.js";
|
|
12
12
|
import { Kbd } from "../kbd/index.js";
|
|
13
13
|
import { ScrollArea } from "../scroll-area/index.js";
|
|
14
14
|
import CommandPalette_module from "./CommandPalette.module.js";
|
|
15
15
|
const DEFAULT_CLEAR_TRIGGER_LABEL = 'Clear search';
|
|
16
16
|
const DEFAULT_SEARCH_INPUT_LABEL = 'Search commands';
|
|
17
|
-
function
|
|
18
|
-
const parts = shortcut.toLowerCase().split('+').map((part)=>part.trim()).filter(Boolean);
|
|
19
|
-
const [modifier, key] = parts;
|
|
20
|
-
if (!modifier || !key || 2 !== parts.length || event.shiftKey) return false;
|
|
21
|
-
const eventKey = event.key.toLowerCase();
|
|
22
|
-
const eventCode = event.code.startsWith('Key') || event.code.startsWith('Digit') ? event.code.slice(event.code.startsWith('Key') ? 3 : 5).toLowerCase() : event.code.toLowerCase();
|
|
23
|
-
if (eventKey !== key && eventCode !== key) return false;
|
|
24
|
-
if ('mod' === modifier) return (event.metaKey || event.ctrlKey) && !event.altKey;
|
|
25
|
-
if ('ctrl' === modifier || 'control' === modifier) return event.ctrlKey && !event.metaKey && !event.altKey;
|
|
26
|
-
if ('meta' === modifier || 'cmd' === modifier || 'command' === modifier) return event.metaKey && !event.ctrlKey && !event.altKey;
|
|
27
|
-
if ('alt' === modifier || 'option' === modifier) return event.altKey && !event.metaKey && !event.ctrlKey;
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
function isEditableTarget(target) {
|
|
31
|
-
if (!(target instanceof Element)) return false;
|
|
32
|
-
return null !== target.closest('input, textarea, select, [contenteditable], [contenteditable="true"]');
|
|
33
|
-
}
|
|
34
|
-
function CommandPaletteRoot({ shortcut = false, shortcutTarget, lazyMount = true, unmountOnExit = true, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }) {
|
|
17
|
+
function CommandPaletteRoot({ shortcut = false, lazyMount = true, unmountOnExit = true, immediate, onExitComplete, portalled, present, portalRef, skipAnimationOnMount, children, ...props }) {
|
|
35
18
|
const dialog = useDialog(props);
|
|
36
19
|
useEffect(()=>{
|
|
37
|
-
if (!shortcut
|
|
38
|
-
const target = shortcutTarget ?? document;
|
|
20
|
+
if (!shortcut) return;
|
|
39
21
|
const handleKeyDown = (event)=>{
|
|
40
|
-
if (event.defaultPrevented || event.repeat || event.isComposing || !
|
|
22
|
+
if (event.defaultPrevented || event.repeat || event.isComposing || !isHotKey(shortcut, event, {
|
|
23
|
+
enableOnContentEditable: dialog.open,
|
|
24
|
+
enableOnFormTags: dialog.open
|
|
25
|
+
})) return;
|
|
41
26
|
event.preventDefault();
|
|
42
27
|
dialog.setOpen(!dialog.open);
|
|
43
28
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return ()=>target.removeEventListener('keydown', eventListener);
|
|
29
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
30
|
+
return ()=>document.removeEventListener('keydown', handleKeyDown);
|
|
47
31
|
}, [
|
|
48
32
|
dialog,
|
|
49
|
-
shortcut
|
|
50
|
-
shortcutTarget
|
|
33
|
+
shortcut
|
|
51
34
|
]);
|
|
52
35
|
return /*#__PURE__*/ jsx(OverlayPortalProvider, {
|
|
53
36
|
portalled: portalled,
|
|
@@ -79,18 +62,18 @@ const CommandPalette_CommandPaletteTrigger = /*#__PURE__*/ forwardRef(function({
|
|
|
79
62
|
return /*#__PURE__*/ jsx(Dialog.Trigger, {
|
|
80
63
|
ref: ref,
|
|
81
64
|
asChild: asChild,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
65
|
+
className: clsx(!asChild && CommandPalette_module.trigger, className),
|
|
66
|
+
...props,
|
|
67
|
+
"data-slot": "command-palette-trigger"
|
|
85
68
|
});
|
|
86
69
|
});
|
|
87
70
|
const CommandPalette_CommandPaletteBackdrop = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
71
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
89
72
|
children: /*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
90
73
|
ref: ref,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
74
|
+
className: clsx(CommandPalette_module.backdrop, className),
|
|
75
|
+
...props,
|
|
76
|
+
"data-slot": "command-palette-backdrop"
|
|
94
77
|
})
|
|
95
78
|
});
|
|
96
79
|
});
|
|
@@ -98,18 +81,18 @@ const CommandPalette_CommandPalettePositioner = /*#__PURE__*/ forwardRef(functio
|
|
|
98
81
|
return /*#__PURE__*/ jsx(OverlayPortal, {
|
|
99
82
|
children: /*#__PURE__*/ jsx(Dialog.Positioner, {
|
|
100
83
|
ref: ref,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
84
|
+
className: clsx(CommandPalette_module.positioner, className),
|
|
85
|
+
...props,
|
|
86
|
+
"data-slot": "command-palette-positioner"
|
|
104
87
|
})
|
|
105
88
|
});
|
|
106
89
|
});
|
|
107
90
|
const CommandPalette_CommandPaletteContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
108
91
|
return /*#__PURE__*/ jsx(Dialog.Content, {
|
|
109
92
|
ref: ref,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
93
|
+
className: clsx(CommandPalette_module.content, className),
|
|
94
|
+
...props,
|
|
95
|
+
"data-slot": "command-palette-content"
|
|
113
96
|
});
|
|
114
97
|
});
|
|
115
98
|
const CommandPalette_CommandPalettePanel = /*#__PURE__*/ forwardRef(function({ children, ...props }, ref) {
|
|
@@ -131,33 +114,33 @@ const CommandPalette_CommandPalettePanel = /*#__PURE__*/ forwardRef(function({ c
|
|
|
131
114
|
const CommandPalette_CommandPaletteTitle = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
132
115
|
return /*#__PURE__*/ jsx(Dialog.Title, {
|
|
133
116
|
ref: ref,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
117
|
+
className: clsx(CommandPalette_module.title, className),
|
|
118
|
+
...props,
|
|
119
|
+
"data-slot": "command-palette-title"
|
|
137
120
|
});
|
|
138
121
|
});
|
|
139
122
|
const CommandPalette_CommandPaletteDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
140
123
|
return /*#__PURE__*/ jsx(Dialog.Description, {
|
|
141
124
|
ref: ref,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
125
|
+
className: clsx(CommandPalette_module.description, className),
|
|
126
|
+
...props,
|
|
127
|
+
"data-slot": "command-palette-description"
|
|
145
128
|
});
|
|
146
129
|
});
|
|
147
130
|
const CommandPalette_CommandPaletteHeader = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
148
131
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
149
132
|
ref: ref,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
133
|
+
className: clsx(CommandPalette_module.header, className),
|
|
134
|
+
...props,
|
|
135
|
+
"data-slot": "command-palette-header"
|
|
153
136
|
});
|
|
154
137
|
});
|
|
155
138
|
const CommandPalette_CommandPaletteBody = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
156
139
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
157
140
|
ref: ref,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
141
|
+
className: clsx(CommandPalette_module.body, className),
|
|
142
|
+
...props,
|
|
143
|
+
"data-slot": "command-palette-body"
|
|
161
144
|
});
|
|
162
145
|
});
|
|
163
146
|
const CommandPalette_CommandPaletteCombobox = /*#__PURE__*/ forwardRef(function({ className, open = true, inputBehavior = 'autohighlight', selectionBehavior = 'preserve', closeOnSelect = true, disableLayer = true, onSelect, ...props }, ref) {
|
|
@@ -168,36 +151,35 @@ const CommandPalette_CommandPaletteCombobox = /*#__PURE__*/ forwardRef(function(
|
|
|
168
151
|
};
|
|
169
152
|
return /*#__PURE__*/ jsx(Combobox.Root, {
|
|
170
153
|
ref: ref,
|
|
171
|
-
|
|
172
|
-
className: clsx(CommandPalette_module.combobox, normalizeClassName(className)),
|
|
154
|
+
className: clsx(CommandPalette_module.combobox, className),
|
|
173
155
|
open: open,
|
|
174
156
|
inputBehavior: inputBehavior,
|
|
175
157
|
selectionBehavior: selectionBehavior,
|
|
176
158
|
closeOnSelect: closeOnSelect,
|
|
177
159
|
disableLayer: disableLayer,
|
|
178
160
|
onSelect: handleSelect,
|
|
179
|
-
...props
|
|
161
|
+
...props,
|
|
162
|
+
"data-slot": "command-palette-combobox"
|
|
180
163
|
});
|
|
181
164
|
});
|
|
182
165
|
const CommandPalette_CommandPaletteControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
183
166
|
return /*#__PURE__*/ jsx(Combobox.Control, {
|
|
184
167
|
ref: ref,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
168
|
+
className: clsx(CommandPalette_module.control, className),
|
|
169
|
+
...props,
|
|
170
|
+
"data-slot": "command-palette-control"
|
|
188
171
|
});
|
|
189
172
|
});
|
|
190
173
|
const CommandPalette_CommandPaletteInput = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
191
174
|
return /*#__PURE__*/ jsx(Combobox.Input, {
|
|
192
175
|
ref: ref,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
176
|
+
className: clsx(CommandPalette_module.input, className),
|
|
177
|
+
...props,
|
|
178
|
+
"data-slot": "command-palette-input"
|
|
196
179
|
});
|
|
197
180
|
});
|
|
198
|
-
const CommandPalette_CommandPaletteSearch = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy,
|
|
181
|
+
const CommandPalette_CommandPaletteSearch = /*#__PURE__*/ forwardRef(function({ 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
199
182
|
return /*#__PURE__*/ jsxs(CommandPalette_CommandPaletteControl, {
|
|
200
|
-
...controlProps,
|
|
201
183
|
children: [
|
|
202
184
|
/*#__PURE__*/ jsx(CommandPalette_CommandPaletteInput, {
|
|
203
185
|
ref: ref,
|
|
@@ -205,51 +187,42 @@ const CommandPalette_CommandPaletteSearch = /*#__PURE__*/ forwardRef(function({
|
|
|
205
187
|
"aria-labelledby": ariaLabelledBy,
|
|
206
188
|
...props
|
|
207
189
|
}),
|
|
208
|
-
/*#__PURE__*/ jsx(CommandPalette_CommandPaletteClearTrigger, {
|
|
209
|
-
...clearTriggerProps
|
|
210
|
-
})
|
|
190
|
+
/*#__PURE__*/ jsx(CommandPalette_CommandPaletteClearTrigger, {})
|
|
211
191
|
]
|
|
212
192
|
});
|
|
213
193
|
});
|
|
214
|
-
const CommandPalette_CommandPaletteClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children,
|
|
194
|
+
const CommandPalette_CommandPaletteClearTrigger = /*#__PURE__*/ forwardRef(function({ asChild, className, children, onClick, onPointerDown, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }, ref) {
|
|
215
195
|
return /*#__PURE__*/ jsx(Combobox.Context, {
|
|
216
|
-
children: (combobox)
|
|
217
|
-
const inputProps = combobox.getInputProps();
|
|
218
|
-
const isInvalid = true === inputProps['aria-invalid'] || 'true' === inputProps['aria-invalid'];
|
|
219
|
-
return /*#__PURE__*/ jsx(CloseButton.Root, {
|
|
196
|
+
children: (combobox)=>/*#__PURE__*/ jsx(Combobox.ClearTrigger, {
|
|
220
197
|
ref: ref,
|
|
221
198
|
asChild: asChild,
|
|
222
199
|
...props,
|
|
223
|
-
disabled: disabled ?? combobox.disabled,
|
|
224
|
-
"data-scope": "combobox",
|
|
225
|
-
"data-part": "clear-trigger",
|
|
226
200
|
"data-slot": "command-palette-clear-trigger",
|
|
227
|
-
"data-invalid": isInvalid ? '' : void 0,
|
|
228
201
|
hidden: 0 === combobox.inputValue.length,
|
|
229
|
-
tabIndex: tabIndex ?? -1,
|
|
230
|
-
"aria-controls": ariaControls ?? inputProps.id,
|
|
231
202
|
"aria-label": ariaLabel ?? (asChild || null != children || null != ariaLabelledBy ? void 0 : DEFAULT_CLEAR_TRIGGER_LABEL),
|
|
232
203
|
"aria-labelledby": ariaLabelledBy,
|
|
233
|
-
className: clsx(CommandPalette_module.clearTrigger,
|
|
204
|
+
className: clsx(CloseButton_module.root, CommandPalette_module.clearTrigger, className),
|
|
205
|
+
onClick: (event)=>{
|
|
206
|
+
onClick?.(event);
|
|
207
|
+
if (!event.defaultPrevented) {
|
|
208
|
+
event.preventDefault();
|
|
209
|
+
combobox.setInputValue('');
|
|
210
|
+
}
|
|
211
|
+
},
|
|
234
212
|
onPointerDown: (event)=>{
|
|
235
213
|
onPointerDown?.(event);
|
|
236
214
|
if (0 === event.button) event.preventDefault();
|
|
237
215
|
},
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (!event.defaultPrevented) combobox.setInputValue('');
|
|
241
|
-
},
|
|
242
|
-
children: children
|
|
243
|
-
});
|
|
244
|
-
}
|
|
216
|
+
children: children ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
217
|
+
})
|
|
245
218
|
});
|
|
246
219
|
});
|
|
247
220
|
const CommandPalette_CommandPaletteList = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
248
221
|
return /*#__PURE__*/ jsx(Combobox.Content, {
|
|
249
222
|
ref: ref,
|
|
250
|
-
|
|
251
|
-
className: clsx(CommandPalette_module.list, normalizeClassName(className)),
|
|
223
|
+
className: clsx(CommandPalette_module.list, className),
|
|
252
224
|
...props,
|
|
225
|
+
"data-slot": "command-palette-list",
|
|
253
226
|
children: /*#__PURE__*/ jsx(ScrollArea, {
|
|
254
227
|
"data-slot": "command-palette-scroll-area",
|
|
255
228
|
className: CommandPalette_module.scrollArea,
|
|
@@ -268,106 +241,106 @@ const CommandPalette_CommandPaletteList = /*#__PURE__*/ forwardRef(function({ cl
|
|
|
268
241
|
const CommandPalette_CommandPaletteEmpty = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
269
242
|
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
270
243
|
ref: ref,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
244
|
+
className: clsx(CommandPalette_module.empty, className),
|
|
245
|
+
...props,
|
|
246
|
+
"data-slot": "command-palette-empty"
|
|
274
247
|
});
|
|
275
248
|
});
|
|
276
249
|
const CommandPalette_CommandPaletteItemGroup = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
277
250
|
return /*#__PURE__*/ jsx(Combobox.ItemGroup, {
|
|
278
251
|
ref: ref,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
252
|
+
className: clsx(CommandPalette_module.itemGroup, className),
|
|
253
|
+
...props,
|
|
254
|
+
"data-slot": "command-palette-item-group"
|
|
282
255
|
});
|
|
283
256
|
});
|
|
284
257
|
const CommandPalette_CommandPaletteItemGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
285
258
|
return /*#__PURE__*/ jsx(Combobox.ItemGroupLabel, {
|
|
286
259
|
ref: ref,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
260
|
+
className: clsx(CommandPalette_module.itemGroupLabel, className),
|
|
261
|
+
...props,
|
|
262
|
+
"data-slot": "command-palette-item-group-label"
|
|
290
263
|
});
|
|
291
264
|
});
|
|
292
265
|
const CommandPalette_CommandPaletteItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
293
266
|
return /*#__PURE__*/ jsx(Combobox.Item, {
|
|
294
267
|
ref: ref,
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
268
|
+
className: clsx(CommandPalette_module.item, className),
|
|
269
|
+
...props,
|
|
270
|
+
"data-slot": "command-palette-item"
|
|
298
271
|
});
|
|
299
272
|
});
|
|
300
273
|
const CommandPalette_CommandPaletteItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
301
274
|
return /*#__PURE__*/ jsx(Combobox.ItemText, {
|
|
302
275
|
ref: ref,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
276
|
+
className: clsx(CommandPalette_module.itemText, className),
|
|
277
|
+
...props,
|
|
278
|
+
"data-slot": "command-palette-item-text"
|
|
306
279
|
});
|
|
307
280
|
});
|
|
308
281
|
const CommandPalette_CommandPaletteItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
309
282
|
return /*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
310
283
|
ref: ref,
|
|
311
|
-
|
|
312
|
-
className: clsx(CommandPalette_module.itemIndicator, normalizeClassName(className)),
|
|
284
|
+
className: clsx(CommandPalette_module.itemIndicator, className),
|
|
313
285
|
...props,
|
|
286
|
+
"data-slot": "command-palette-item-indicator",
|
|
314
287
|
children: children ?? /*#__PURE__*/ jsx(CheckIcon, {})
|
|
315
288
|
});
|
|
316
289
|
});
|
|
317
290
|
const CommandPalette_CommandPaletteItemIcon = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
318
291
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
319
292
|
ref: ref,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
293
|
+
className: clsx(CommandPalette_module.itemIcon, className),
|
|
294
|
+
...props,
|
|
295
|
+
"data-slot": "command-palette-item-icon"
|
|
323
296
|
});
|
|
324
297
|
});
|
|
325
298
|
const CommandPalette_CommandPaletteItemLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
326
299
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
327
300
|
ref: ref,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
301
|
+
className: clsx(CommandPalette_module.itemLabel, className),
|
|
302
|
+
...props,
|
|
303
|
+
"data-slot": "command-palette-item-label"
|
|
331
304
|
});
|
|
332
305
|
});
|
|
333
306
|
const CommandPalette_CommandPaletteItemDescription = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
334
307
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
335
308
|
ref: ref,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
309
|
+
className: clsx(CommandPalette_module.itemDescription, className),
|
|
310
|
+
...props,
|
|
311
|
+
"data-slot": "command-palette-item-description"
|
|
339
312
|
});
|
|
340
313
|
});
|
|
341
314
|
const CommandPalette_CommandPaletteItemMeta = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
342
315
|
return /*#__PURE__*/ jsx(ark.span, {
|
|
343
316
|
ref: ref,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
317
|
+
className: clsx(CommandPalette_module.itemMeta, className),
|
|
318
|
+
...props,
|
|
319
|
+
"data-slot": "command-palette-item-meta"
|
|
347
320
|
});
|
|
348
321
|
});
|
|
349
322
|
const CommandPalette_CommandPaletteSeparator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
350
323
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
351
324
|
ref: ref,
|
|
352
325
|
role: "separator",
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
326
|
+
className: clsx(CommandPalette_module.separator, className),
|
|
327
|
+
...props,
|
|
328
|
+
"data-slot": "command-palette-separator"
|
|
356
329
|
});
|
|
357
330
|
});
|
|
358
331
|
const CommandPalette_CommandPaletteFooter = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
359
332
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
360
333
|
ref: ref,
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
334
|
+
className: clsx(CommandPalette_module.footer, className),
|
|
335
|
+
...props,
|
|
336
|
+
"data-slot": "command-palette-footer"
|
|
364
337
|
});
|
|
365
338
|
});
|
|
366
339
|
function CommandPaletteKbd({ className, ...props }) {
|
|
367
340
|
return /*#__PURE__*/ jsx(Kbd.Root, {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
341
|
+
className: clsx(CommandPalette_module.kbd, className),
|
|
342
|
+
...props,
|
|
343
|
+
"data-slot": "command-palette-kbd"
|
|
371
344
|
});
|
|
372
345
|
}
|
|
373
346
|
const CommandPalette = Object.assign(CommandPaletteRoot, {
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
.backdrop-Y8_IJU {
|
|
42
42
|
z-index: calc(var(--moduix-z-backdrop) + var(--layer-index, 0));
|
|
43
43
|
background-color: var(--moduix-command-palette-backdrop-bg, var(--moduix-backdrop-bg, var(--moduix-color-overlay)));
|
|
44
|
-
min-height: 100dvh;
|
|
45
44
|
-webkit-backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-command-palette-backdrop-blur, 4px)));
|
|
46
45
|
backdrop-filter: var(--moduix-backdrop-filter, blur(var(--moduix-command-palette-backdrop-blur, 4px)));
|
|
47
46
|
position: fixed;
|
|
@@ -127,9 +126,9 @@
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
.clearTrigger-n6fuk6 {
|
|
130
|
-
--moduix-close-button-size: var(--moduix-command-palette-clear-size, var(--moduix-
|
|
129
|
+
--moduix-close-button-size: var(--moduix-command-palette-clear-size, var(--moduix-spacing-6));
|
|
131
130
|
--moduix-close-button-radius: var(--moduix-command-palette-clear-radius, var(--moduix-radius-md));
|
|
132
|
-
--moduix-close-button-icon-size: var(--moduix-command-palette-icon-size, var(--moduix-spacing-
|
|
131
|
+
--moduix-close-button-icon-size: var(--moduix-command-palette-icon-size, var(--moduix-spacing-3));
|
|
133
132
|
--moduix-close-button-bg: transparent;
|
|
134
133
|
--moduix-close-button-bg-hover: var(--moduix-command-palette-clear-bg-hover, var(--moduix-color-accent));
|
|
135
134
|
--moduix-close-button-color: var(--moduix-command-palette-muted-color, var(--moduix-color-muted-foreground));
|
|
@@ -192,6 +191,7 @@
|
|
|
192
191
|
background: none;
|
|
193
192
|
border: 0;
|
|
194
193
|
outline: 0;
|
|
194
|
+
flex: auto;
|
|
195
195
|
margin: 0;
|
|
196
196
|
padding: 0;
|
|
197
197
|
}
|
|
@@ -296,16 +296,8 @@
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
.item-UA3NPh[data-highlighted] {
|
|
299
|
-
color: var(--moduix-command-palette-highlight-color, var(--moduix-color-foreground));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.item-UA3NPh[data-highlighted]:before {
|
|
303
|
-
content: "";
|
|
304
|
-
z-index: -1;
|
|
305
|
-
border-radius: inherit;
|
|
306
299
|
background-color: var(--moduix-command-palette-highlight-bg, var(--moduix-color-accent));
|
|
307
|
-
|
|
308
|
-
inset: 0;
|
|
300
|
+
color: var(--moduix-command-palette-highlight-color, var(--moduix-color-foreground));
|
|
309
301
|
}
|
|
310
302
|
|
|
311
303
|
.item-UA3NPh[data-state="checked"] {
|
|
@@ -330,18 +322,13 @@
|
|
|
330
322
|
display: inline-flex;
|
|
331
323
|
}
|
|
332
324
|
|
|
333
|
-
:is(.itemIcon-EO6ViN, .itemIndicator-nhPwW2) > svg {
|
|
334
|
-
width: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
|
|
335
|
-
height: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
|
|
336
|
-
}
|
|
337
|
-
|
|
338
325
|
.itemIndicator-nhPwW2 {
|
|
339
326
|
background-color: #0000;
|
|
340
327
|
border-color: #0000;
|
|
341
328
|
justify-self: end;
|
|
342
329
|
}
|
|
343
330
|
|
|
344
|
-
.itemIndicator-nhPwW2 > svg {
|
|
331
|
+
.itemIcon-EO6ViN > svg, .itemIndicator-nhPwW2 > svg {
|
|
345
332
|
width: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
|
|
346
333
|
height: var(--moduix-command-palette-item-icon-size, var(--moduix-spacing-4));
|
|
347
334
|
}
|
|
@@ -446,5 +433,11 @@
|
|
|
446
433
|
scale: var(--moduix-command-palette-content-ending-scale, var(--moduix-popup-motion-ending-scale, var(--moduix-scale-popup)));
|
|
447
434
|
}
|
|
448
435
|
}
|
|
436
|
+
|
|
437
|
+
@media (prefers-reduced-motion: reduce) {
|
|
438
|
+
.backdrop-Y8_IJU, .content-EVNfnh {
|
|
439
|
+
animation: none;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
449
442
|
}
|
|
450
443
|
|
|
@@ -2,7 +2,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ark } from "@ark-ui/react/factory";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { normalizeClassName } from "../../internal/normalizeClassName.js";
|
|
6
5
|
import Container_module from "./Container.module.js";
|
|
7
6
|
const Container_ContainerRoot = /*#__PURE__*/ forwardRef(function({ size = 'lg', gutter = 'md', className, ...props }, ref) {
|
|
8
7
|
return /*#__PURE__*/ jsx(ark.div, {
|
|
@@ -13,7 +12,7 @@ const Container_ContainerRoot = /*#__PURE__*/ forwardRef(function({ size = 'lg',
|
|
|
13
12
|
"data-slot": "container-root",
|
|
14
13
|
"data-size": size,
|
|
15
14
|
"data-gutter": gutter,
|
|
16
|
-
className: clsx(Container_module.root,
|
|
15
|
+
className: clsx(Container_module.root, className)
|
|
17
16
|
});
|
|
18
17
|
});
|
|
19
18
|
const Container = Object.assign(Container_ContainerRoot, {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { DateInput as DateInputPrimitive, type DateInputDateValue, useDateInput, useDateInputContext } from '@ark-ui/react/date-input';
|
|
2
|
-
import type { ComponentProps
|
|
3
|
-
type DateInputFormProps = {
|
|
4
|
-
names?: readonly [string, string];
|
|
5
|
-
};
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
6
3
|
declare function DateInputSeparator({ className, 'aria-hidden': ariaHidden, role, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
7
|
-
declare const DateInput: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement
|
|
8
|
-
Root: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement
|
|
9
|
-
RootProvider: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement
|
|
4
|
+
declare const DateInput: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Root: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
HiddenInput: import("react").ForwardRefExoticComponent<DateInputPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
8
|
Label: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
11
9
|
Control: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
10
|
SegmentGroup: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.SegmentGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
11
|
Segment: import("react").ForwardRefExoticComponent<Omit<DateInputPrimitive.SegmentProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
|
-
Segments: import("react").ForwardRefExoticComponent<Omit<Omit<DateInputPrimitive.SegmentGroupProps & import("react").RefAttributes<HTMLDivElement>, "
|
|
12
|
+
Segments: import("react").ForwardRefExoticComponent<Omit<Omit<DateInputPrimitive.SegmentGroupProps & import("react").RefAttributes<HTMLDivElement>, "asChild" | "children">, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
13
|
Separator: typeof DateInputSeparator;
|
|
16
|
-
Context: (props: DateInputPrimitive.ContextProps) => ReactNode;
|
|
14
|
+
Context: (props: DateInputPrimitive.ContextProps) => import("react").ReactNode;
|
|
17
15
|
SegmentContext: (props: DateInputPrimitive.SegmentContextProps) => import("react").JSX.Element[];
|
|
18
16
|
};
|
|
19
17
|
export { DateInput, type DateInputDateValue, useDateInput, useDateInputContext };
|