@moduix/react 1.1.0 → 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 +21 -14
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +10 -9
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +6 -5
- package/dist/components/angle-slider/AngleSlider.css +8 -8
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/AngleSlider.module.js +7 -7
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +4 -2
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
- package/dist/components/avatar/Avatar.css +3 -3
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/Avatar.module.js +3 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +46 -3
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.module.js +2 -2
- package/dist/components/bleed/Bleed.css +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/bleed/Bleed.module.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +22 -2
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/button/Button.module.js +1 -1
- package/dist/components/card/Card.css +29 -13
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +9 -8
- package/dist/components/carousel/Carousel.css +20 -18
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/carousel/Carousel.module.js +12 -12
- package/dist/components/checkbox/Checkbox.css +11 -11
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/Checkbox.module.js +6 -6
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +8 -8
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/clipboard/Clipboard.module.js +8 -8
- package/dist/components/close-button/CloseButton.css +1 -1
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/close-button/CloseButton.module.js +1 -1
- package/dist/components/collapsible/Collapsible.css +17 -10
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +7 -6
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -34
- 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 +28 -27
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +55 -26
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/Combobox.module.js +17 -17
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +80 -114
- 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 +35 -37
- package/dist/components/container/Container.css +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/Container.module.js +1 -1
- package/dist/components/date-input/DateInput.css +9 -7
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/DateInput.module.js +6 -6
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +68 -40
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/DatePicker.module.js +23 -23
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +31 -27
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/Dialog.module.js +15 -15
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +40 -40
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.module.js +26 -26
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +10 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/Editable.module.js +7 -7
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +6 -6
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.module.js +6 -6
- package/dist/components/field/Field.css +8 -12
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +8 -9
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.css +6 -6
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/Fieldset.module.js +4 -4
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +97 -24
- 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 +16 -13
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +28 -24
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
- package/dist/components/heading/Heading.css +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.module.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.module.js +1 -1
- package/dist/components/hover-card/HoverCard.css +21 -17
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/HoverCard.module.js +7 -7
- 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.css +6 -6
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/ImageCropper.module.js +6 -6
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.module.js +1 -1
- package/dist/components/input-group/InputGroup.css +6 -6
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/input-group/InputGroup.module.js +5 -5
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/kbd/Kbd.module.js +2 -2
- package/dist/components/lightbox/Lightbox.css +30 -28
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/Lightbox.module.js +16 -16
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.css +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.module.js +1 -1
- package/dist/components/listbox/Listbox.css +76 -17
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +17 -14
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.css +10 -10
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/Marquee.module.js +7 -7
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +46 -40
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/Menu.module.js +27 -27
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +5 -5
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/native-select/NativeSelect.module.js +3 -3
- package/dist/components/number-input/NumberInput.css +11 -17
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/NumberInput.module.js +8 -8
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +8 -8
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/pagination/Pagination.module.js +6 -6
- package/dist/components/password-input/PasswordInput.css +7 -7
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/password-input/PasswordInput.module.js +6 -6
- package/dist/components/pin-input/PinInput.css +5 -5
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/pin-input/PinInput.module.js +5 -5
- package/dist/components/popover/Popover.css +33 -24
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.module.js +14 -14
- package/dist/components/progress-circular/ProgressCircular.css +8 -8
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
- package/dist/components/progress-linear/ProgressLinear.css +8 -8
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
- package/dist/components/qr-code/QrCode.css +13 -12
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/QrCode.module.js +5 -5
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +6 -6
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/RadioGroup.module.js +6 -6
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +14 -14
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/RatingGroup.module.js +7 -7
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +14 -9
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/scroll-area/ScrollArea.module.js +6 -6
- package/dist/components/segment-group/SegmentGroup.css +6 -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/SegmentGroup.module.js +6 -6
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +49 -40
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/select/Select.module.js +21 -21
- package/dist/components/separator/Separator.css +1 -1
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.module.js +1 -1
- package/dist/components/sidebar/Sidebar.css +169 -32
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +23 -17
- package/dist/components/signature-pad/SignaturePad.css +18 -47
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/SignaturePad.module.js +6 -6
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.module.js +1 -1
- package/dist/components/slider/Slider.css +16 -14
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/Slider.module.js +10 -10
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +9 -9
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/spinner/Spinner.module.js +3 -3
- package/dist/components/split-button/SplitButton.css +9 -9
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/split-button/SplitButton.module.js +3 -3
- package/dist/components/splitter/Splitter.css +27 -22
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/Splitter.module.js +4 -4
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.css +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/stack/Stack.module.js +1 -1
- package/dist/components/steps/Steps.css +14 -14
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/steps/Steps.module.js +11 -11
- 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 +11 -11
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/Switch.module.js +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +18 -18
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +11 -12
- package/dist/components/tabs/Tabs.css +12 -10
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/Tabs.module.js +5 -5
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +16 -46
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tag/Tag.module.js +5 -5
- package/dist/components/tags-input/TagsInput.css +13 -50
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/TagsInput.module.js +10 -10
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.css +1 -1
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.module.js +1 -1
- package/dist/components/textarea/Textarea.css +7 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.module.js +1 -1
- package/dist/components/timer/Timer.css +6 -6
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/Timer.module.js +6 -6
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +8 -8
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toast/Toast.module.js +6 -6
- package/dist/components/toggle/Toggle.css +5 -5
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/Toggle.module.js +2 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.css +3 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +21 -17
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/Tooltip.module.js +7 -7
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +42 -37
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tour/Tour.module.js +17 -17
- package/dist/components/tree-view/TreeView.css +22 -22
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/TreeView.module.js +20 -20
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
|
-
import { HoverCard } from "@ark-ui/react/hover-card";
|
|
3
|
+
import { HoverCard, useHoverCard, useHoverCardContext } from "@ark-ui/react/hover-card";
|
|
4
4
|
|
|
5
5
|
//#region src/components/hover-card/HoverCard.d.ts
|
|
6
6
|
type HoverCardRootProps = ComponentProps<typeof HoverCard.Root> & OverlayPortalProps;
|
|
@@ -23,6 +23,7 @@ declare const HoverCard$1: typeof HoverCardRoot & {
|
|
|
23
23
|
Content: import("react").ForwardRefExoticComponent<Omit<HoverCard.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
24
|
Arrow: import("react").ForwardRefExoticComponent<Omit<HoverCard.ArrowProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
25
|
ArrowTip: import("react").ForwardRefExoticComponent<Omit<HoverCard.ArrowTipProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
Context: (props: HoverCard.ContextProps) => import("react").ReactNode;
|
|
26
27
|
};
|
|
27
28
|
//#endregion
|
|
28
|
-
export { HoverCard$1 as HoverCard };
|
|
29
|
+
export { HoverCard$1 as HoverCard, useHoverCard, useHoverCardContext };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
3
3
|
import HoverCard_module_default from "./HoverCard.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 } from "react/jsx-runtime";
|
|
7
|
+
import { HoverCard, useHoverCard, useHoverCardContext } from "@ark-ui/react/hover-card";
|
|
8
8
|
//#region src/components/hover-card/HoverCard.tsx
|
|
9
9
|
function HoverCardRoot({ portalled, portalRef, ...props }) {
|
|
10
10
|
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
@@ -75,7 +75,8 @@ const HoverCard$1 = Object.assign(HoverCardRoot, {
|
|
|
75
75
|
Positioner: HoverCardPositioner,
|
|
76
76
|
Content: HoverCardContent,
|
|
77
77
|
Arrow: HoverCardArrow,
|
|
78
|
-
ArrowTip: HoverCardArrowTip
|
|
78
|
+
ArrowTip: HoverCardArrowTip,
|
|
79
|
+
Context: HoverCard.Context
|
|
79
80
|
});
|
|
80
81
|
//#endregion
|
|
81
|
-
export { HoverCard$1 as HoverCard };
|
|
82
|
+
export { HoverCard$1 as HoverCard, useHoverCard, useHoverCardContext };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './HoverCard.css';
|
|
2
2
|
//#region src/components/hover-card/HoverCard.module.css
|
|
3
3
|
var HoverCard_module_default = {
|
|
4
|
-
"arrow": "
|
|
5
|
-
"arrowTip": "
|
|
6
|
-
"content": "
|
|
7
|
-
"hover-card-enter": "
|
|
8
|
-
"hover-card-exit": "
|
|
9
|
-
"positioner": "
|
|
10
|
-
"trigger": "
|
|
4
|
+
"arrow": "_0VaKFG_arrow",
|
|
5
|
+
"arrowTip": "_0VaKFG_arrowTip",
|
|
6
|
+
"content": "_0VaKFG_content",
|
|
7
|
+
"hover-card-enter": "_0VaKFG_hover-card-enter",
|
|
8
|
+
"hover-card-exit": "_0VaKFG_hover-card-exit",
|
|
9
|
+
"positioner": "_0VaKFG_positioner",
|
|
10
|
+
"trigger": "_0VaKFG_trigger"
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { HoverCard_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HoverCard } from "./HoverCard.js";
|
|
2
|
-
export { HoverCard };
|
|
1
|
+
import { HoverCard, useHoverCard, useHoverCardContext } from "./HoverCard.js";
|
|
2
|
+
export { HoverCard, useHoverCard, useHoverCardContext };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ImageProps, SourceProps } from "@unpic/react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/image/Image.d.ts
|
|
4
|
+
type ImageSourceProps = SourceProps & {
|
|
5
|
+
'data-slot'?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Image$1: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>> & {
|
|
8
|
+
Root: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
9
|
+
Source: import("react").ForwardRefExoticComponent<ImageSourceProps & import("react").RefAttributes<HTMLSourceElement>>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Image$1 as Image };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import Image_module_default from "./Image.module.js";
|
|
3
|
+
import { clsx } from "clsx";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Image, Source } from "@unpic/react";
|
|
7
|
+
//#region src/components/image/Image.tsx
|
|
8
|
+
const ImageRoot = forwardRef(function ImageRoot({ className, ...props }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Image, {
|
|
10
|
+
ref,
|
|
11
|
+
"data-slot": "image-root",
|
|
12
|
+
className: clsx(Image_module_default.root, normalizeClassName(className)),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const ImageSource = forwardRef(function ImageSource(props, ref) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Source, {
|
|
18
|
+
ref,
|
|
19
|
+
"data-slot": "image-source",
|
|
20
|
+
...props
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
const Image$1 = Object.assign(ImageRoot, {
|
|
24
|
+
Root: ImageRoot,
|
|
25
|
+
Source: ImageSource
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Image$1 as Image };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.Bk909a_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: var(--image-cropper-width, 32rem);
|
|
5
5
|
max-width: var(--image-cropper-max-width, 100%);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.
|
|
15
|
+
.Bk909a_viewport {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
width: 100%;
|
|
18
18
|
height: var(--image-cropper-viewport-height, var(--image-cropper-viewport-min-height, 20rem));
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.
|
|
54
|
+
.Bk909a_image {
|
|
55
55
|
object-fit: contain;
|
|
56
56
|
transform-origin: center;
|
|
57
57
|
backface-visibility: hidden;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
inset: 0;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.
|
|
65
|
+
.Bk909a_selection {
|
|
66
66
|
box-sizing: content-box;
|
|
67
67
|
border: var(--image-cropper-selection-border-width, var(--border-width-md)) solid
|
|
68
68
|
var(--image-cropper-selection-border-color, var(--color-primary));
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.
|
|
99
|
+
.Bk909a_grid {
|
|
100
100
|
pointer-events: none;
|
|
101
101
|
|
|
102
102
|
&[data-axis="horizontal"] {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
.
|
|
113
|
+
.Bk909a_handle {
|
|
114
114
|
z-index: 1;
|
|
115
115
|
box-sizing: border-box;
|
|
116
116
|
width: var(--image-cropper-handle-size, .75rem);
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { ImageCropper } from "@ark-ui/react/image-cropper";
|
|
1
|
+
import { ImageCropper, useImageCropper } from "@ark-ui/react/image-cropper";
|
|
2
2
|
|
|
3
3
|
//#region src/components/image-cropper/ImageCropper.d.ts
|
|
4
4
|
declare const ImageCropper$1: import("react").ForwardRefExoticComponent<Omit<ImageCropper.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Root: import("react").ForwardRefExoticComponent<Omit<ImageCropper.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<ImageCropper.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Context: (props: ImageCropper.ContextProps) => import("react").ReactNode;
|
|
7
8
|
Viewport: import("react").ForwardRefExoticComponent<Omit<ImageCropper.ViewportProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
Image: import("react").ForwardRefExoticComponent<Omit<ImageCropper.ImageProps & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
9
10
|
Selection: import("react").ForwardRefExoticComponent<Omit<ImageCropper.SelectionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
11
|
Grid: import("react").ForwardRefExoticComponent<Omit<ImageCropper.GridProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
12
|
Handle: import("react").ForwardRefExoticComponent<Omit<ImageCropper.HandleProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
CropArea: import("react").ForwardRefExoticComponent<Omit<ImageCropper.SelectionProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
14
|
+
gridClassName?: string;
|
|
15
|
+
handleClassName?: string;
|
|
16
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
17
|
handles: ImageCropper.HandlePosition[];
|
|
13
18
|
};
|
|
14
19
|
//#endregion
|
|
15
|
-
export { ImageCropper$1 as ImageCropper };
|
|
20
|
+
export { ImageCropper$1 as ImageCropper, useImageCropper };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import ImageCropper_module_default from "./ImageCropper.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 { ImageCropper, useImageCropper } from "@ark-ui/react/image-cropper";
|
|
7
7
|
//#region src/components/image-cropper/ImageCropper.tsx
|
|
8
8
|
const ImageCropperRoot = forwardRef(function ImageCropperRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ImageCropper.Root, {
|
|
@@ -61,15 +61,37 @@ const ImageCropperHandle = forwardRef(function ImageCropperHandle({ className, .
|
|
|
61
61
|
...props
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
|
+
const ImageCropperCropArea = forwardRef(function ImageCropperCropArea({ gridClassName, handleClassName, ...props }, ref) {
|
|
65
|
+
return /* @__PURE__ */ jsxs(ImageCropperSelection, {
|
|
66
|
+
ref,
|
|
67
|
+
...props,
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ jsx(ImageCropperGrid, {
|
|
70
|
+
axis: "horizontal",
|
|
71
|
+
className: gridClassName
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx(ImageCropperGrid, {
|
|
74
|
+
axis: "vertical",
|
|
75
|
+
className: gridClassName
|
|
76
|
+
}),
|
|
77
|
+
ImageCropper.handles.map((position) => /* @__PURE__ */ jsx(ImageCropperHandle, {
|
|
78
|
+
position,
|
|
79
|
+
className: handleClassName
|
|
80
|
+
}, position))
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
});
|
|
64
84
|
const ImageCropper$1 = Object.assign(ImageCropperRoot, {
|
|
65
85
|
Root: ImageCropperRoot,
|
|
66
86
|
RootProvider: ImageCropperRootProvider,
|
|
87
|
+
Context: ImageCropper.Context,
|
|
67
88
|
Viewport: ImageCropperViewport,
|
|
68
89
|
Image: ImageCropperImage,
|
|
69
90
|
Selection: ImageCropperSelection,
|
|
70
91
|
Grid: ImageCropperGrid,
|
|
71
92
|
Handle: ImageCropperHandle,
|
|
93
|
+
CropArea: ImageCropperCropArea,
|
|
72
94
|
handles: ImageCropper.handles
|
|
73
95
|
});
|
|
74
96
|
//#endregion
|
|
75
|
-
export { ImageCropper$1 as ImageCropper };
|
|
97
|
+
export { ImageCropper$1 as ImageCropper, useImageCropper };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './ImageCropper.css';
|
|
2
2
|
//#region src/components/image-cropper/ImageCropper.module.css
|
|
3
3
|
var ImageCropper_module_default = {
|
|
4
|
-
"grid": "
|
|
5
|
-
"handle": "
|
|
6
|
-
"image": "
|
|
7
|
-
"root": "
|
|
8
|
-
"selection": "
|
|
9
|
-
"viewport": "
|
|
4
|
+
"grid": "Bk909a_grid",
|
|
5
|
+
"handle": "Bk909a_handle",
|
|
6
|
+
"image": "Bk909a_image",
|
|
7
|
+
"root": "Bk909a_root",
|
|
8
|
+
"selection": "Bk909a_selection",
|
|
9
|
+
"viewport": "Bk909a_viewport"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ImageCropper_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ImageCropper } from "./ImageCropper.js";
|
|
2
|
-
export { ImageCropper };
|
|
1
|
+
import { ImageCropper, useImageCropper } from "./ImageCropper.js";
|
|
2
|
+
export { ImageCropper, useImageCropper };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Input_module_default from "./Input.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Field } from "@ark-ui/react/field";
|
|
7
7
|
//#region src/components/input/Input.tsx
|
|
8
8
|
const InputRoot = forwardRef(function InputRoot({ className, size = "md", htmlSize, ...props }, ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.n0dHIa_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: var(--input-group-width, 100%);
|
|
5
5
|
max-width: var(--input-group-max-width, none);
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.n0dHIa_input {
|
|
91
91
|
min-width: 0;
|
|
92
92
|
min-height: 0;
|
|
93
93
|
font-size: var(--input-group-font-size, var(--text-md));
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
flex: auto;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
.n0dHIa_addon, .n0dHIa_text {
|
|
105
105
|
box-sizing: border-box;
|
|
106
106
|
justify-content: center;
|
|
107
107
|
align-items: center;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.
|
|
125
|
+
.n0dHIa_addon {
|
|
126
126
|
border-inline: var(--input-group-separator-width, var(--border-width-sm)) solid
|
|
127
127
|
var(--input-group-separator-color, var(--color-border));
|
|
128
128
|
|
|
@@ -135,11 +135,11 @@
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
.n0dHIa_text {
|
|
139
139
|
background-color: #0000;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.
|
|
142
|
+
.n0dHIa_button {
|
|
143
143
|
height: auto;
|
|
144
144
|
min-height: auto;
|
|
145
145
|
padding-block: 0;
|
|
@@ -16,8 +16,11 @@ declare const InputGroup: import("react").ForwardRefExoticComponent<Omit<import(
|
|
|
16
16
|
Addon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
17
|
Text: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
18
|
Button: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
19
|
+
loading?: boolean;
|
|
19
20
|
variant?: "default" | "outline" | "secondary" | "destructive" | "destructive-outline" | "ghost" | "link";
|
|
20
21
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg";
|
|
22
|
+
'data-scope'?: string;
|
|
23
|
+
'data-part'?: string;
|
|
21
24
|
'data-slot'?: string;
|
|
22
25
|
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
26
|
};
|
|
@@ -2,10 +2,10 @@ import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
|
2
2
|
import { Button } from "../button/Button.js";
|
|
3
3
|
import { Input } from "../input/Input.js";
|
|
4
4
|
import InputGroup_module_default from "./InputGroup.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { ark } from "@ark-ui/react/factory";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { createContext, forwardRef, useContext } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/input-group/InputGroup.tsx
|
|
10
10
|
const InputGroupSizeContext = createContext("md");
|
|
11
11
|
const InputGroupRoot = forwardRef(function InputGroupRoot({ children, className, size = "md", ...props }, ref) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './InputGroup.css';
|
|
2
2
|
//#region src/components/input-group/InputGroup.module.css
|
|
3
3
|
var InputGroup_module_default = {
|
|
4
|
-
"addon": "
|
|
5
|
-
"button": "
|
|
6
|
-
"input": "
|
|
7
|
-
"root": "
|
|
8
|
-
"text": "
|
|
4
|
+
"addon": "n0dHIa_addon",
|
|
5
|
+
"button": "n0dHIa_button",
|
|
6
|
+
"input": "n0dHIa_input",
|
|
7
|
+
"root": "n0dHIa_root",
|
|
8
|
+
"text": "n0dHIa_text"
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { InputGroup_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
|
|
2
|
+
.VpuRJG_root[data-scope="kbd"][data-part="root"] {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
min-width: var(--kbd-min-width, var(--kbd-height, 1.5rem));
|
|
5
5
|
max-width: 100%;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
overflow: hidden;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
.VpuRJG_group[data-scope="kbd"][data-part="group"] {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
align-items: center;
|
|
33
33
|
gap: var(--kbd-group-gap, var(--spacing-1));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Kbd_module_default from "./Kbd.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { ark } from "@ark-ui/react/factory";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/kbd/Kbd.tsx
|
|
8
8
|
const KbdRoot = forwardRef(function KbdRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ark.kbd, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.BCq4HG_trigger {
|
|
3
3
|
cursor: zoom-in;
|
|
4
4
|
|
|
5
5
|
&:focus-visible {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
12
|
+
.BCq4HG_backdrop {
|
|
13
13
|
z-index: calc(var(--z-backdrop) + var(--layer-index, 0));
|
|
14
14
|
background-color: var(--lightbox-backdrop-bg, var(--backdrop-bg, var(--color-overlay)));
|
|
15
15
|
min-height: 100dvh;
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
inset: 0;
|
|
19
19
|
|
|
20
20
|
&[data-state="open"] {
|
|
21
|
-
animation:
|
|
21
|
+
animation: BCq4HG_lightbox-backdrop-in var(--lightbox-backdrop-transition, var(--transition-default));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&[data-state="closed"] {
|
|
25
|
-
animation:
|
|
25
|
+
animation: BCq4HG_lightbox-backdrop-out
|
|
26
26
|
var(--lightbox-backdrop-transition, var(--transition-default));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.
|
|
30
|
+
.BCq4HG_positioner {
|
|
31
31
|
box-sizing: border-box;
|
|
32
32
|
z-index: calc(var(--z-modal) + var(--layer-index, 0));
|
|
33
33
|
overscroll-behavior: contain;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
overflow: hidden;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
.BCq4HG_content {
|
|
43
43
|
box-sizing: border-box;
|
|
44
44
|
gap: var(--lightbox-content-gap, var(--spacing-3));
|
|
45
45
|
width: fit-content;
|
|
@@ -52,15 +52,17 @@
|
|
|
52
52
|
position: relative;
|
|
53
53
|
|
|
54
54
|
&[data-state="open"] {
|
|
55
|
-
animation:
|
|
55
|
+
animation: BCq4HG_lightbox-content-in
|
|
56
|
+
var(--lightbox-transition, var(--popup-motion-duration, .22s) var(--popup-motion-easing, ease));
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
&[data-state="closed"] {
|
|
59
|
-
animation:
|
|
60
|
+
animation: BCq4HG_lightbox-content-out
|
|
61
|
+
var(--lightbox-transition, var(--popup-motion-duration, .22s) var(--popup-motion-easing, ease));
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
.
|
|
65
|
+
.BCq4HG_title {
|
|
64
66
|
color: var(--lightbox-title-color, var(--color-foreground));
|
|
65
67
|
font-size: var(--lightbox-title-font-size, var(--text-md));
|
|
66
68
|
font-weight: var(--lightbox-title-font-weight, var(--weight-semibold));
|
|
@@ -68,24 +70,24 @@
|
|
|
68
70
|
margin: 0;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
.
|
|
73
|
+
.BCq4HG_description {
|
|
72
74
|
color: var(--lightbox-description-color, var(--color-muted-foreground));
|
|
73
75
|
font-size: var(--lightbox-description-font-size, var(--text-sm));
|
|
74
76
|
line-height: var(--lightbox-description-line-height, var(--line-height-text-sm));
|
|
75
77
|
margin: 0;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
.
|
|
80
|
+
.BCq4HG_header {
|
|
79
81
|
gap: var(--lightbox-header-gap, var(--spacing-1));
|
|
80
82
|
display: grid;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
.
|
|
85
|
+
.BCq4HG_body {
|
|
84
86
|
gap: var(--lightbox-body-gap, var(--spacing-3));
|
|
85
87
|
display: grid;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
.
|
|
90
|
+
.BCq4HG_footer {
|
|
89
91
|
align-items: center;
|
|
90
92
|
justify-content: var(--lightbox-footer-justify, flex-end);
|
|
91
93
|
gap: var(--lightbox-footer-gap, var(--spacing-2));
|
|
@@ -95,7 +97,7 @@
|
|
|
95
97
|
display: flex;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
.
|
|
100
|
+
.BCq4HG_image {
|
|
99
101
|
max-width: min(var(--lightbox-media-max-width, 80vw), 100%);
|
|
100
102
|
max-height: min(var(--lightbox-media-max-height, 80dvh), 100%);
|
|
101
103
|
object-fit: contain;
|
|
@@ -109,7 +111,7 @@
|
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
|
|
112
|
-
.
|
|
114
|
+
.BCq4HG_gallery {
|
|
113
115
|
--carousel-gap: var(--lightbox-gallery-gap, var(--spacing-4));
|
|
114
116
|
width: auto;
|
|
115
117
|
max-width: min(var(--lightbox-gallery-max-width, 72rem),
|
|
@@ -182,7 +184,7 @@
|
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
186
|
|
|
185
|
-
.
|
|
187
|
+
.BCq4HG_closeIcon {
|
|
186
188
|
--close-button-size: var(--lightbox-close-icon-size, 2rem);
|
|
187
189
|
--close-button-radius: var(--lightbox-close-icon-radius, var(--radius-sm));
|
|
188
190
|
--close-button-icon-size: var(--lightbox-close-icon-glyph-size, .875rem);
|
|
@@ -208,35 +210,35 @@
|
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
212
|
|
|
211
|
-
@keyframes
|
|
213
|
+
@keyframes BCq4HG_lightbox-backdrop-in {
|
|
212
214
|
from {
|
|
213
215
|
opacity: var(--lightbox-backdrop-starting-opacity, 0);
|
|
214
216
|
backdrop-filter: var(--lightbox-backdrop-starting-blur, none);
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
|
|
218
|
-
@keyframes
|
|
220
|
+
@keyframes BCq4HG_lightbox-backdrop-out {
|
|
219
221
|
to {
|
|
220
222
|
opacity: var(--lightbox-backdrop-ending-opacity, 0);
|
|
221
223
|
backdrop-filter: var(--lightbox-backdrop-ending-blur, none);
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
226
|
|
|
225
|
-
@keyframes
|
|
227
|
+
@keyframes BCq4HG_lightbox-content-in {
|
|
226
228
|
from {
|
|
227
|
-
opacity: var(--lightbox-content-starting-opacity, 0);
|
|
228
|
-
translate: var(--lightbox-content-starting-translate-x, 0)
|
|
229
|
-
var(--lightbox-content-starting-translate-y, 0);
|
|
230
|
-
scale: var(--lightbox-content-starting-scale, .82);
|
|
229
|
+
opacity: var(--lightbox-content-starting-opacity, var(--popup-motion-starting-opacity, 0));
|
|
230
|
+
translate: var(--lightbox-content-starting-translate-x, var(--popup-motion-starting-translate-x, 0))
|
|
231
|
+
var(--lightbox-content-starting-translate-y, var(--popup-motion-starting-translate-y, 0));
|
|
232
|
+
scale: var(--lightbox-content-starting-scale, var(--popup-motion-starting-scale, .82));
|
|
231
233
|
}
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
@keyframes
|
|
236
|
+
@keyframes BCq4HG_lightbox-content-out {
|
|
235
237
|
to {
|
|
236
|
-
opacity: var(--lightbox-content-ending-opacity, 0);
|
|
237
|
-
translate: var(--lightbox-content-ending-translate-x, 0)
|
|
238
|
-
var(--lightbox-content-ending-translate-y, 0);
|
|
239
|
-
scale: var(--lightbox-content-ending-scale, .82);
|
|
238
|
+
opacity: var(--lightbox-content-ending-opacity, var(--popup-motion-ending-opacity, 0));
|
|
239
|
+
translate: var(--lightbox-content-ending-translate-x, var(--popup-motion-ending-translate-x, 0))
|
|
240
|
+
var(--lightbox-content-ending-translate-y, var(--popup-motion-ending-translate-y, 0));
|
|
241
|
+
scale: var(--lightbox-content-ending-scale, var(--popup-motion-ending-scale, .82));
|
|
240
242
|
}
|
|
241
243
|
}
|
|
242
244
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
2
|
import { ComponentProps, RefObject } from "react";
|
|
3
|
-
import { Dialog } from "@ark-ui/react/dialog";
|
|
3
|
+
import { Dialog, useDialog as useDialog$1, useDialogContext as useDialogContext$1 } from "@ark-ui/react/dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/components/lightbox/Lightbox.d.ts
|
|
6
6
|
type LightboxImageSelectDetails = {
|
|
@@ -66,6 +66,8 @@ declare const Lightbox: typeof LightboxRoot & {
|
|
|
66
66
|
Image: import("react").ForwardRefExoticComponent<Omit<LightboxImageProps, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
67
67
|
Gallery: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
68
68
|
Bind: typeof LightboxBind;
|
|
69
|
+
useLightbox: (props?: import("@ark-ui/react/dialog").UseDialogProps) => import("@ark-ui/react/dialog").UseDialogReturn;
|
|
70
|
+
useLightboxContext: () => import("@ark-ui/react/dialog").UseDialogContext;
|
|
69
71
|
};
|
|
70
72
|
//#endregion
|
|
71
|
-
export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails };
|
|
73
|
+
export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails, useDialog$1 as useLightbox, useDialogContext$1 as useLightboxContext };
|