@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
|
@@ -2,10 +2,10 @@ import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
|
2
2
|
import { CloseButton } from "../close-button/CloseButton.js";
|
|
3
3
|
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
4
|
import Lightbox_module_default from "./Lightbox.module.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { forwardRef, useEffect } from "react";
|
|
8
|
-
import {
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Dialog, useDialog as useDialog$1, useDialogContext as useDialogContext$1 } from "@ark-ui/react/dialog";
|
|
9
9
|
//#region src/components/lightbox/Lightbox.tsx
|
|
10
10
|
const DEFAULT_CLOSE_LABEL = "Close image";
|
|
11
11
|
const preloadedImageSources = /* @__PURE__ */ new Set();
|
|
@@ -100,7 +100,7 @@ const LightboxCloseTrigger = forwardRef(function LightboxCloseTrigger({ classNam
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
const LightboxCloseIcon = forwardRef(function LightboxCloseIcon({ className, children, "aria-label": ariaLabel = DEFAULT_CLOSE_LABEL, ...props }, ref) {
|
|
103
|
-
const dialog = useDialogContext();
|
|
103
|
+
const dialog = useDialogContext$1();
|
|
104
104
|
return /* @__PURE__ */ jsx(Dialog.CloseTrigger, {
|
|
105
105
|
asChild: true,
|
|
106
106
|
...props,
|
|
@@ -115,7 +115,7 @@ const LightboxCloseIcon = forwardRef(function LightboxCloseIcon({ className, chi
|
|
|
115
115
|
});
|
|
116
116
|
});
|
|
117
117
|
const LightboxImage = forwardRef(function LightboxImage({ className, closeOnClick = false, onClick, ...props }, ref) {
|
|
118
|
-
const dialog = useDialogContext();
|
|
118
|
+
const dialog = useDialogContext$1();
|
|
119
119
|
const handleClick = (event) => {
|
|
120
120
|
onClick?.(event);
|
|
121
121
|
if (closeOnClick && !event.defaultPrevented) dialog.setOpen(false);
|
|
@@ -159,7 +159,7 @@ function LightboxFooter({ className, ...props }) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function LightboxBind({ onImageSelect, selector = "img", rootRef, rootSelector }) {
|
|
162
|
-
const { setOpen } = useDialogContext();
|
|
162
|
+
const { setOpen } = useDialogContext$1();
|
|
163
163
|
useEffect(() => {
|
|
164
164
|
const rootNode = rootRef?.current ?? (rootSelector ? document.querySelector(rootSelector) : null);
|
|
165
165
|
if (!rootNode) return;
|
|
@@ -213,7 +213,9 @@ const Lightbox = Object.assign(LightboxRoot, {
|
|
|
213
213
|
Footer: LightboxFooter,
|
|
214
214
|
Image: LightboxImage,
|
|
215
215
|
Gallery: LightboxGallery,
|
|
216
|
-
Bind: LightboxBind
|
|
216
|
+
Bind: LightboxBind,
|
|
217
|
+
useLightbox: useDialog$1,
|
|
218
|
+
useLightboxContext: useDialogContext$1
|
|
217
219
|
});
|
|
218
220
|
//#endregion
|
|
219
|
-
export { Lightbox, LightboxBind, LightboxGallery, LightboxImage };
|
|
221
|
+
export { Lightbox, LightboxBind, LightboxGallery, LightboxImage, useDialog$1 as useLightbox, useDialogContext$1 as useLightboxContext };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import './Lightbox.css';
|
|
2
2
|
//#region src/components/lightbox/Lightbox.module.css
|
|
3
3
|
var Lightbox_module_default = {
|
|
4
|
-
"backdrop": "
|
|
5
|
-
"body": "
|
|
6
|
-
"closeIcon": "
|
|
7
|
-
"content": "
|
|
8
|
-
"description": "
|
|
9
|
-
"footer": "
|
|
10
|
-
"gallery": "
|
|
11
|
-
"header": "
|
|
12
|
-
"image": "
|
|
13
|
-
"lightbox-backdrop-in": "
|
|
14
|
-
"lightbox-backdrop-out": "
|
|
15
|
-
"lightbox-content-in": "
|
|
16
|
-
"lightbox-content-out": "
|
|
17
|
-
"positioner": "
|
|
18
|
-
"title": "
|
|
19
|
-
"trigger": "
|
|
4
|
+
"backdrop": "BCq4HG_backdrop",
|
|
5
|
+
"body": "BCq4HG_body",
|
|
6
|
+
"closeIcon": "BCq4HG_closeIcon",
|
|
7
|
+
"content": "BCq4HG_content",
|
|
8
|
+
"description": "BCq4HG_description",
|
|
9
|
+
"footer": "BCq4HG_footer",
|
|
10
|
+
"gallery": "BCq4HG_gallery",
|
|
11
|
+
"header": "BCq4HG_header",
|
|
12
|
+
"image": "BCq4HG_image",
|
|
13
|
+
"lightbox-backdrop-in": "BCq4HG_lightbox-backdrop-in",
|
|
14
|
+
"lightbox-backdrop-out": "BCq4HG_lightbox-backdrop-out",
|
|
15
|
+
"lightbox-content-in": "BCq4HG_lightbox-content-in",
|
|
16
|
+
"lightbox-content-out": "BCq4HG_lightbox-content-out",
|
|
17
|
+
"positioner": "BCq4HG_positioner",
|
|
18
|
+
"title": "BCq4HG_title",
|
|
19
|
+
"trigger": "BCq4HG_trigger"
|
|
20
20
|
};
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Lightbox_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails } from "./Lightbox.js";
|
|
2
|
-
export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails };
|
|
1
|
+
import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails, useLightbox as useDialog, useLightboxContext as useDialogContext } from "./Lightbox.js";
|
|
2
|
+
export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails, useDialog as useLightbox, useDialogContext as useLightboxContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.dG8Cea_root[data-scope="list"][data-part="root"] {
|
|
3
3
|
--_list-color: var(--list-color, var(--list-default-color, var(--color-foreground)));
|
|
4
4
|
--_list-font-size: var(--list-font-size, var(--list-font-size-md, var(--text-md)));
|
|
5
5
|
--_list-gap: var(--list-gap, var(--list-gap-sm, var(--spacing-2)));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import List_module_default from "./List.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/list/List.tsx
|
|
8
8
|
const ListRoot = forwardRef(function ListRoot({ as, asChild, className, gap = "sm", marker, role, size = "md", tone = "default", ...props }, ref) {
|
|
9
9
|
const markerValue = marker ?? "auto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
|
|
2
|
+
.SHhhXW_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: var(--listbox-width, 16rem);
|
|
5
5
|
max-width: var(--listbox-max-width, 100%);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
.SHhhXW_label {
|
|
18
18
|
color: var(--listbox-label-color, var(--listbox-color, var(--color-foreground)));
|
|
19
19
|
font-size: var(--listbox-label-font-size, var(--text-sm));
|
|
20
20
|
font-weight: var(--listbox-label-font-weight, var(--weight-medium));
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
user-select: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
.SHhhXW_input {
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
width: 100%;
|
|
28
28
|
min-height: var(--listbox-input-height, var(--size-lg));
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
&:focus-visible {
|
|
53
|
-
border-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
|
|
54
53
|
outline-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -60,7 +59,67 @@
|
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
.SHhhXW_filter {
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
width: 100%;
|
|
65
|
+
position: relative;
|
|
66
|
+
|
|
67
|
+
&:has( + .SHhhXW_content) .SHhhXW_input {
|
|
68
|
+
border-bottom: 0;
|
|
69
|
+
border-bottom-right-radius: 0;
|
|
70
|
+
border-bottom-left-radius: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.SHhhXW_filter + .SHhhXW_content {
|
|
75
|
+
margin-top: calc(-1 * var(--listbox-root-gap, var(--spacing-3)));
|
|
76
|
+
border-top-left-radius: 0;
|
|
77
|
+
border-top-right-radius: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.SHhhXW_filterIcon {
|
|
81
|
+
z-index: 1;
|
|
82
|
+
top: 50%;
|
|
83
|
+
width: var(--listbox-filter-icon-size, 1rem);
|
|
84
|
+
height: var(--listbox-filter-icon-size, 1rem);
|
|
85
|
+
color: var(--listbox-filter-icon-color, var(--color-muted-foreground));
|
|
86
|
+
pointer-events: none;
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset-inline-start: var(--listbox-filter-padding-x, var(--spacing-3));
|
|
89
|
+
transform: translateY(-50%);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.SHhhXW_filter .SHhhXW_input {
|
|
93
|
+
min-height: var(--listbox-filter-height, var(--listbox-input-height, var(--size-lg)));
|
|
94
|
+
background-color: var(--listbox-bg, var(--color-background));
|
|
95
|
+
padding-inline-start: calc(var(--listbox-filter-padding-x, var(--spacing-3)) + var(--listbox-filter-icon-size, 1rem) +
|
|
96
|
+
var(--listbox-filter-input-padding-x, var(--spacing-2)));
|
|
97
|
+
padding-inline-end: calc(var(--listbox-filter-padding-x, var(--spacing-3)) +
|
|
98
|
+
var(--listbox-filter-action-size, 1.5rem) +
|
|
99
|
+
var(--listbox-filter-input-padding-x, var(--spacing-2)));
|
|
100
|
+
|
|
101
|
+
&:focus-visible {
|
|
102
|
+
outline-color: #0000;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.SHhhXW_clearTrigger {
|
|
107
|
+
z-index: 1;
|
|
108
|
+
top: 50%;
|
|
109
|
+
--close-button-size: var(--listbox-filter-action-size, 1.5rem);
|
|
110
|
+
--close-button-radius: var(--listbox-filter-action-radius, var(--radius-sm));
|
|
111
|
+
--close-button-bg: var(--listbox-filter-action-bg, transparent);
|
|
112
|
+
--close-button-bg-hover: var(--listbox-filter-action-bg-hover, var(--color-muted));
|
|
113
|
+
--close-button-color: var(--listbox-filter-icon-color, var(--color-muted-foreground));
|
|
114
|
+
--close-button-color-hover: var(--listbox-filter-action-color-hover, var(--color-foreground));
|
|
115
|
+
--close-button-icon-size: var(--listbox-filter-icon-size, 1rem);
|
|
116
|
+
--close-button-transition: var(--listbox-transition, var(--transition-default));
|
|
117
|
+
position: absolute;
|
|
118
|
+
inset-inline-end: var(--listbox-filter-padding-x, var(--spacing-3));
|
|
119
|
+
transform: translateY(-50%);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.SHhhXW_content {
|
|
64
123
|
box-sizing: border-box;
|
|
65
124
|
min-height: 0;
|
|
66
125
|
max-height: var(--listbox-content-max-height, 14rem);
|
|
@@ -97,7 +156,7 @@
|
|
|
97
156
|
}
|
|
98
157
|
}
|
|
99
158
|
|
|
100
|
-
|
|
159
|
+
.SHhhXW_empty {
|
|
101
160
|
padding-block: var(--listbox-empty-padding-y, var(--spacing-3));
|
|
102
161
|
padding-inline: var(--listbox-empty-padding-x, var(--spacing-3));
|
|
103
162
|
color: var(--listbox-empty-color, var(--color-muted-foreground));
|
|
@@ -106,7 +165,7 @@
|
|
|
106
165
|
text-align: center;
|
|
107
166
|
}
|
|
108
167
|
|
|
109
|
-
|
|
168
|
+
.SHhhXW_itemGroup {
|
|
110
169
|
flex-direction: column;
|
|
111
170
|
display: flex;
|
|
112
171
|
|
|
@@ -115,7 +174,7 @@
|
|
|
115
174
|
}
|
|
116
175
|
}
|
|
117
176
|
|
|
118
|
-
|
|
177
|
+
.SHhhXW_itemGroupLabel {
|
|
119
178
|
padding-block: var(--listbox-item-group-label-padding-y, var(--spacing-1));
|
|
120
179
|
padding-inline: var(--listbox-item-group-label-padding-x, var(--spacing-2));
|
|
121
180
|
color: var(--listbox-item-group-label-color, var(--color-muted-foreground));
|
|
@@ -125,7 +184,7 @@
|
|
|
125
184
|
user-select: none;
|
|
126
185
|
}
|
|
127
186
|
|
|
128
|
-
|
|
187
|
+
.SHhhXW_item {
|
|
129
188
|
box-sizing: border-box;
|
|
130
189
|
width: calc(100% - var(--listbox-item-inset-x, var(--spacing-2)));
|
|
131
190
|
min-height: var(--listbox-item-min-height, 2rem);
|
|
@@ -174,13 +233,13 @@
|
|
|
174
233
|
}
|
|
175
234
|
}
|
|
176
235
|
|
|
177
|
-
|
|
236
|
+
.SHhhXW_content[data-orientation="horizontal"]:not([data-layout="grid"]) .SHhhXW_item {
|
|
178
237
|
width: var(--listbox-horizontal-item-width, 11rem);
|
|
179
238
|
min-width: var(--listbox-horizontal-item-width, 11rem);
|
|
180
239
|
align-items: flex-start;
|
|
181
240
|
}
|
|
182
241
|
|
|
183
|
-
|
|
242
|
+
.SHhhXW_content[data-layout="grid"] .SHhhXW_item {
|
|
184
243
|
text-align: center;
|
|
185
244
|
grid-template-columns: minmax(0, 1fr);
|
|
186
245
|
justify-items: center;
|
|
@@ -194,7 +253,7 @@
|
|
|
194
253
|
}
|
|
195
254
|
}
|
|
196
255
|
|
|
197
|
-
|
|
256
|
+
.SHhhXW_itemText {
|
|
198
257
|
text-overflow: ellipsis;
|
|
199
258
|
white-space: nowrap;
|
|
200
259
|
flex: 1;
|
|
@@ -202,7 +261,7 @@
|
|
|
202
261
|
overflow: hidden;
|
|
203
262
|
}
|
|
204
263
|
|
|
205
|
-
|
|
264
|
+
.SHhhXW_itemIndicator {
|
|
206
265
|
width: var(--listbox-item-indicator-size, 1rem);
|
|
207
266
|
height: var(--listbox-item-indicator-size, 1rem);
|
|
208
267
|
color: var(--listbox-item-indicator-color, currentColor);
|
|
@@ -221,13 +280,13 @@
|
|
|
221
280
|
}
|
|
222
281
|
}
|
|
223
282
|
|
|
224
|
-
|
|
283
|
+
.SHhhXW_valueText {
|
|
225
284
|
color: var(--listbox-value-text-color, var(--color-muted-foreground));
|
|
226
285
|
font-size: var(--listbox-value-text-font-size, var(--text-sm));
|
|
227
286
|
line-height: var(--listbox-value-text-line-height, var(--line-height-text-sm));
|
|
228
287
|
}
|
|
229
288
|
|
|
230
|
-
|
|
289
|
+
.SHhhXW_itemTextContent {
|
|
231
290
|
align-items: center;
|
|
232
291
|
gap: var(--listbox-item-text-content-gap, var(--spacing-2));
|
|
233
292
|
vertical-align: top;
|
|
@@ -236,7 +295,7 @@
|
|
|
236
295
|
display: inline-flex;
|
|
237
296
|
}
|
|
238
297
|
|
|
239
|
-
|
|
298
|
+
.SHhhXW_itemTextIcon {
|
|
240
299
|
width: var(--listbox-item-text-icon-size, 1rem);
|
|
241
300
|
height: var(--listbox-item-text-icon-size, 1rem);
|
|
242
301
|
color: var(--listbox-item-text-icon-color, currentColor);
|
|
@@ -246,7 +305,7 @@
|
|
|
246
305
|
display: inline-flex;
|
|
247
306
|
}
|
|
248
307
|
|
|
249
|
-
|
|
308
|
+
.SHhhXW_itemTextLabel {
|
|
250
309
|
text-overflow: ellipsis;
|
|
251
310
|
white-space: nowrap;
|
|
252
311
|
min-width: 0;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
|
-
import { Listbox } from "@ark-ui/react/listbox";
|
|
2
|
+
import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "@ark-ui/react/listbox";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/Listbox.d.ts
|
|
5
|
+
declare function ListboxFilter({
|
|
6
|
+
className,
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
5
10
|
declare function ListboxItemTextContent({
|
|
6
11
|
className,
|
|
7
12
|
...props
|
|
@@ -19,6 +24,8 @@ declare const Listbox$1: Listbox.RootComponent & {
|
|
|
19
24
|
RootProvider: Listbox.RootProviderComponent;
|
|
20
25
|
Label: import("react").ForwardRefExoticComponent<Omit<Listbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
26
|
Input: import("react").ForwardRefExoticComponent<Omit<Listbox.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
27
|
+
Filter: typeof ListboxFilter;
|
|
28
|
+
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
29
|
Content: import("react").ForwardRefExoticComponent<Omit<Listbox.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
30
|
Empty: import("react").ForwardRefExoticComponent<Omit<Listbox.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
31
|
ItemGroup: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -27,9 +34,14 @@ declare const Listbox$1: Listbox.RootComponent & {
|
|
|
27
34
|
ItemText: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
35
|
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
36
|
ValueText: import("react").ForwardRefExoticComponent<Omit<Listbox.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
|
+
Context: <T extends unknown>(props: Listbox.ContextProps<T>) => import("react").ReactNode;
|
|
38
|
+
ItemContext: (props: Listbox.ItemContextProps) => import("react").ReactNode;
|
|
30
39
|
ItemTextContent: typeof ListboxItemTextContent;
|
|
31
40
|
ItemTextIcon: typeof ListboxItemTextIcon;
|
|
32
41
|
ItemTextLabel: typeof ListboxItemTextLabel;
|
|
42
|
+
useListbox: <T extends unknown>(props: import("@ark-ui/react/listbox").UseListboxProps<T>) => import("@ark-ui/react/listbox").UseListboxReturn<T>;
|
|
43
|
+
useListboxContext: () => import("@ark-ui/react/listbox").UseListboxContext<any>;
|
|
44
|
+
useListboxItemContext: () => import("@ark-ui/react/listbox").UseListboxItemContext;
|
|
33
45
|
};
|
|
34
46
|
//#endregion
|
|
35
|
-
export { Listbox$1 as Listbox };
|
|
47
|
+
export { Listbox$1 as Listbox, useListbox, useListboxContext, useListboxItemContext };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { CheckIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { CheckIcon, SearchIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
|
+
import { CloseButton } from "../close-button/CloseButton.js";
|
|
3
4
|
import Listbox_module_default from "./Listbox.module.js";
|
|
4
|
-
import {
|
|
5
|
+
import { ark } from "@ark-ui/react/factory";
|
|
5
6
|
import { clsx } from "clsx";
|
|
6
7
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "@ark-ui/react/listbox";
|
|
8
10
|
//#region src/components/listbox/Listbox.tsx
|
|
9
11
|
const ListboxRoot = forwardRef(function ListboxRoot({ className, ...props }, ref) {
|
|
10
12
|
return /* @__PURE__ */ jsx(Listbox.Root, {
|
|
@@ -38,6 +40,33 @@ const ListboxInput = forwardRef(function ListboxInput({ className, ...props }, r
|
|
|
38
40
|
...props
|
|
39
41
|
});
|
|
40
42
|
});
|
|
43
|
+
function ListboxFilter({ className, children, ...props }) {
|
|
44
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
45
|
+
"data-slot": "listbox-filter",
|
|
46
|
+
className: clsx(Listbox_module_default.filter, normalizeClassName(className)),
|
|
47
|
+
...props,
|
|
48
|
+
children: [/* @__PURE__ */ jsx(SearchIcon, {
|
|
49
|
+
"data-slot": "listbox-filter-icon",
|
|
50
|
+
className: Listbox_module_default.filterIcon
|
|
51
|
+
}), children]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const ListboxClearTrigger = forwardRef(function ListboxClearTrigger({ "aria-label": ariaLabel = "Clear search", className, children, type = "button", ...props }, ref) {
|
|
55
|
+
return /* @__PURE__ */ jsx(ark.button, {
|
|
56
|
+
ref,
|
|
57
|
+
asChild: true,
|
|
58
|
+
"data-slot": "listbox-clear-trigger",
|
|
59
|
+
type,
|
|
60
|
+
"aria-label": ariaLabel,
|
|
61
|
+
className: clsx(Listbox_module_default.clearTrigger, normalizeClassName(className)),
|
|
62
|
+
...props,
|
|
63
|
+
children: /* @__PURE__ */ jsx(CloseButton.Root, {
|
|
64
|
+
"aria-label": ariaLabel,
|
|
65
|
+
type,
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
});
|
|
41
70
|
const ListboxContent = forwardRef(function ListboxContent({ className, ...props }, ref) {
|
|
42
71
|
return /* @__PURE__ */ jsx(Listbox.Content, {
|
|
43
72
|
ref,
|
|
@@ -129,6 +158,8 @@ const Listbox$1 = Object.assign(ListboxRoot, {
|
|
|
129
158
|
RootProvider: ListboxRootProvider,
|
|
130
159
|
Label: ListboxLabel,
|
|
131
160
|
Input: ListboxInput,
|
|
161
|
+
Filter: ListboxFilter,
|
|
162
|
+
ClearTrigger: ListboxClearTrigger,
|
|
132
163
|
Content: ListboxContent,
|
|
133
164
|
Empty: ListboxEmpty,
|
|
134
165
|
ItemGroup: ListboxItemGroup,
|
|
@@ -137,9 +168,14 @@ const Listbox$1 = Object.assign(ListboxRoot, {
|
|
|
137
168
|
ItemText: ListboxItemText,
|
|
138
169
|
ItemIndicator: ListboxItemIndicator,
|
|
139
170
|
ValueText: ListboxValueText,
|
|
171
|
+
Context: Listbox.Context,
|
|
172
|
+
ItemContext: Listbox.ItemContext,
|
|
140
173
|
ItemTextContent: ListboxItemTextContent,
|
|
141
174
|
ItemTextIcon: ListboxItemTextIcon,
|
|
142
|
-
ItemTextLabel: ListboxItemTextLabel
|
|
175
|
+
ItemTextLabel: ListboxItemTextLabel,
|
|
176
|
+
useListbox,
|
|
177
|
+
useListboxContext,
|
|
178
|
+
useListboxItemContext
|
|
143
179
|
});
|
|
144
180
|
//#endregion
|
|
145
|
-
export { Listbox$1 as Listbox };
|
|
181
|
+
export { Listbox$1 as Listbox, useListbox, useListboxContext, useListboxItemContext };
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import './Listbox.css';
|
|
2
2
|
//#region src/components/listbox/Listbox.module.css
|
|
3
3
|
var Listbox_module_default = {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
4
|
+
"clearTrigger": "SHhhXW_clearTrigger",
|
|
5
|
+
"content": "SHhhXW_content",
|
|
6
|
+
"empty": "SHhhXW_empty",
|
|
7
|
+
"filter": "SHhhXW_filter",
|
|
8
|
+
"filterIcon": "SHhhXW_filterIcon",
|
|
9
|
+
"input": "SHhhXW_input",
|
|
10
|
+
"item": "SHhhXW_item",
|
|
11
|
+
"itemGroup": "SHhhXW_itemGroup",
|
|
12
|
+
"itemGroupLabel": "SHhhXW_itemGroupLabel",
|
|
13
|
+
"itemIndicator": "SHhhXW_itemIndicator",
|
|
14
|
+
"itemText": "SHhhXW_itemText",
|
|
15
|
+
"itemTextContent": "SHhhXW_itemTextContent",
|
|
16
|
+
"itemTextIcon": "SHhhXW_itemTextIcon",
|
|
17
|
+
"itemTextLabel": "SHhhXW_itemTextLabel",
|
|
18
|
+
"label": "SHhhXW_label",
|
|
19
|
+
"root": "SHhhXW_root",
|
|
20
|
+
"valueText": "SHhhXW_valueText"
|
|
18
21
|
};
|
|
19
22
|
//#endregion
|
|
20
23
|
export { Listbox_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Listbox } from "./Listbox.js";
|
|
2
|
-
export { Listbox };
|
|
1
|
+
import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "./Listbox.js";
|
|
2
|
+
export { Listbox, useListbox, useListboxContext, useListboxItemContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.MH_pgW_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: var(--marquee-width, 100%);
|
|
5
5
|
height: var(--marquee-height, auto);
|
|
@@ -11,26 +11,26 @@
|
|
|
11
11
|
height: var(--marquee-vertical-height, var(--marquee-height, 15rem));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
&[data-paused] .
|
|
14
|
+
&[data-paused] .MH_pgW_content {
|
|
15
15
|
animation-play-state: paused;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.MH_pgW_viewport {
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
width: 100%;
|
|
22
22
|
height: 100%;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
26
|
-
animation-name:
|
|
25
|
+
.MH_pgW_content {
|
|
26
|
+
animation-name: MH_pgW_marquee-x;
|
|
27
27
|
animation-duration: var(--marquee-duration);
|
|
28
28
|
animation-delay: var(--marquee-delay);
|
|
29
29
|
animation-timing-function: linear;
|
|
30
30
|
animation-iteration-count: var(--marquee-loop-count);
|
|
31
31
|
|
|
32
32
|
&[data-side="top"], &[data-side="bottom"] {
|
|
33
|
-
animation-name:
|
|
33
|
+
animation-name: MH_pgW_marquee-y;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&[data-reverse] {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.
|
|
45
|
+
.MH_pgW_item {
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
flex-shrink: 0;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
.MH_pgW_edge {
|
|
51
51
|
z-index: var(--marquee-edge-z-index, 1);
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
@keyframes
|
|
95
|
+
@keyframes MH_pgW_marquee-x {
|
|
96
96
|
from {
|
|
97
97
|
transform: translateX(0%);
|
|
98
98
|
}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
@keyframes
|
|
105
|
+
@keyframes MH_pgW_marquee-y {
|
|
106
106
|
from {
|
|
107
107
|
transform: translateY(0%);
|
|
108
108
|
}
|
|
@@ -9,5 +9,6 @@ declare const Marquee$1: import("react").ForwardRefExoticComponent<Omit<Marquee.
|
|
|
9
9
|
Item: import("react").ForwardRefExoticComponent<Omit<Marquee.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
Edge: import("react").ForwardRefExoticComponent<Omit<Marquee.EdgeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
};
|
|
12
|
+
declare const useMarquee$1: (props?: import("@ark-ui/react/marquee").UseMarqueeProps) => import("@ark-ui/react/marquee").UseMarqueeReturn;
|
|
12
13
|
//#endregion
|
|
13
|
-
export { Marquee$1 as Marquee };
|
|
14
|
+
export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Marquee_module_default from "./Marquee.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Marquee, useMarquee } from "@ark-ui/react/marquee";
|
|
7
7
|
//#region src/components/marquee/Marquee.tsx
|
|
8
8
|
const MarqueeRoot = forwardRef(function MarqueeRoot({ className, ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Marquee.Root, {
|
|
@@ -61,5 +61,6 @@ const Marquee$1 = Object.assign(MarqueeRoot, {
|
|
|
61
61
|
Item: MarqueeItem,
|
|
62
62
|
Edge: MarqueeEdge
|
|
63
63
|
});
|
|
64
|
+
const useMarquee$1 = useMarquee;
|
|
64
65
|
//#endregion
|
|
65
|
-
export { Marquee$1 as Marquee };
|
|
66
|
+
export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './Marquee.css';
|
|
2
2
|
//#region src/components/marquee/Marquee.module.css
|
|
3
3
|
var Marquee_module_default = {
|
|
4
|
-
"content": "
|
|
5
|
-
"edge": "
|
|
6
|
-
"item": "
|
|
7
|
-
"marquee-x": "
|
|
8
|
-
"marquee-y": "
|
|
9
|
-
"root": "
|
|
10
|
-
"viewport": "
|
|
4
|
+
"content": "MH_pgW_content",
|
|
5
|
+
"edge": "MH_pgW_edge",
|
|
6
|
+
"item": "MH_pgW_item",
|
|
7
|
+
"marquee-x": "MH_pgW_marquee-x",
|
|
8
|
+
"marquee-y": "MH_pgW_marquee-y",
|
|
9
|
+
"root": "MH_pgW_root",
|
|
10
|
+
"viewport": "MH_pgW_viewport"
|
|
11
11
|
};
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Marquee_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Marquee } from "./Marquee.js";
|
|
2
|
-
export { Marquee };
|
|
1
|
+
import { Marquee, useMarquee } from "./Marquee.js";
|
|
2
|
+
export { Marquee, useMarquee };
|