@moduix/react 1.1.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/LICENSE.md +21 -0
- package/README.md +252 -0
- package/dist/components/accordion/Accordion.css +190 -0
- package/dist/components/accordion/Accordion.d.ts +13 -0
- package/dist/components/accordion/Accordion.js +67 -0
- package/dist/components/accordion/Accordion.module.js +15 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/alert/Alert.css +108 -0
- package/dist/components/alert/Alert.d.ts +14 -0
- package/dist/components/alert/Alert.js +69 -0
- package/dist/components/alert/Alert.module.js +11 -0
- package/dist/components/angle-slider/AngleSlider.css +192 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +16 -0
- package/dist/components/angle-slider/AngleSlider.js +92 -0
- package/dist/components/angle-slider/AngleSlider.module.js +13 -0
- package/dist/components/angle-slider/index.d.ts +2 -0
- package/dist/components/aspect-ratio/AspectRatio.css +14 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +10 -0
- package/dist/components/aspect-ratio/AspectRatio.js +24 -0
- package/dist/components/aspect-ratio/AspectRatio.module.js +5 -0
- package/dist/components/avatar/Avatar.css +75 -0
- package/dist/components/avatar/Avatar.d.ts +19 -0
- package/dist/components/avatar/Avatar.js +49 -0
- package/dist/components/avatar/Avatar.module.js +9 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/Badge.css +66 -0
- package/dist/components/badge/Badge.d.ts +11 -0
- package/dist/components/badge/Badge.js +35 -0
- package/dist/components/badge/Badge.module.js +8 -0
- package/dist/components/bleed/Bleed.css +51 -0
- package/dist/components/bleed/Bleed.d.ts +12 -0
- package/dist/components/bleed/Bleed.js +22 -0
- package/dist/components/bleed/Bleed.module.js +5 -0
- package/dist/components/breadcrumbs/Breadcrumbs.css +90 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +95 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/button/Button.css +193 -0
- package/dist/components/button/Button.d.ts +14 -0
- package/dist/components/button/Button.js +28 -0
- package/dist/components/button/Button.module.js +5 -0
- package/dist/components/card/Card.css +148 -0
- package/dist/components/card/Card.d.ts +19 -0
- package/dist/components/card/Card.js +101 -0
- package/dist/components/card/Card.module.js +14 -0
- package/dist/components/carousel/Carousel.css +198 -0
- package/dist/components/carousel/Carousel.d.ts +19 -0
- package/dist/components/carousel/Carousel.js +128 -0
- package/dist/components/carousel/Carousel.module.js +18 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.css +135 -0
- package/dist/components/checkbox/Checkbox.d.ts +22 -0
- package/dist/components/checkbox/Checkbox.js +84 -0
- package/dist/components/checkbox/Checkbox.module.js +12 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.css +145 -0
- package/dist/components/clipboard/Clipboard.d.ts +15 -0
- package/dist/components/clipboard/Clipboard.js +96 -0
- package/dist/components/clipboard/Clipboard.module.js +14 -0
- package/dist/components/clipboard/index.d.ts +2 -0
- package/dist/components/close-button/CloseButton.css +49 -0
- package/dist/components/close-button/CloseButton.d.ts +6 -0
- package/dist/components/close-button/CloseButton.js +39 -0
- package/dist/components/close-button/CloseButton.module.js +5 -0
- package/dist/components/collapsible/Collapsible.css +138 -0
- package/dist/components/collapsible/Collapsible.d.ts +12 -0
- package/dist/components/collapsible/Collapsible.js +59 -0
- package/dist/components/collapsible/Collapsible.module.js +12 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/color-picker/ColorPicker.css +433 -0
- package/dist/components/color-picker/ColorPicker.d.ts +39 -0
- package/dist/components/color-picker/ColorPicker.js +275 -0
- package/dist/components/color-picker/ColorPicker.module.js +33 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/combobox/Combobox.css +315 -0
- package/dist/components/combobox/Combobox.d.ts +24 -0
- package/dist/components/combobox/Combobox.js +169 -0
- package/dist/components/combobox/Combobox.module.js +23 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/command-palette/CommandPalette.css +492 -0
- package/dist/components/command-palette/CommandPalette.d.ts +71 -0
- package/dist/components/command-palette/CommandPalette.js +383 -0
- package/dist/components/command-palette/CommandPalette.module.js +43 -0
- package/dist/components/command-palette/index.d.ts +2 -0
- package/dist/components/container/Container.css +45 -0
- package/dist/components/container/Container.d.ts +14 -0
- package/dist/components/container/Container.js +22 -0
- package/dist/components/container/Container.module.js +5 -0
- package/dist/components/date-input/DateInput.css +104 -0
- package/dist/components/date-input/DateInput.d.ts +22 -0
- package/dist/components/date-input/DateInput.js +83 -0
- package/dist/components/date-input/DateInput.module.js +12 -0
- package/dist/components/date-input/index.d.ts +2 -0
- package/dist/components/date-picker/DatePicker.css +420 -0
- package/dist/components/date-picker/DatePicker.d.ts +39 -0
- package/dist/components/date-picker/DatePicker.js +284 -0
- package/dist/components/date-picker/DatePicker.module.js +29 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.css +221 -0
- package/dist/components/dialog/Dialog.d.ts +46 -0
- package/dist/components/dialog/Dialog.js +133 -0
- package/dist/components/dialog/Dialog.module.js +21 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/drawer/Drawer.css +482 -0
- package/dist/components/drawer/Drawer.d.ts +56 -0
- package/dist/components/drawer/Drawer.js +188 -0
- package/dist/components/drawer/Drawer.module.js +32 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/editable/Editable.css +171 -0
- package/dist/components/editable/Editable.d.ts +17 -0
- package/dist/components/editable/Editable.js +106 -0
- package/dist/components/editable/Editable.module.js +13 -0
- package/dist/components/editable/index.d.ts +2 -0
- package/dist/components/empty/Empty.css +78 -0
- package/dist/components/empty/Empty.d.ts +11 -0
- package/dist/components/empty/Empty.js +77 -0
- package/dist/components/empty/Empty.module.js +12 -0
- package/dist/components/field/Field.css +113 -0
- package/dist/components/field/Field.d.ts +25 -0
- package/dist/components/field/Field.js +104 -0
- package/dist/components/field/Field.module.js +15 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/fieldset/Fieldset.css +52 -0
- package/dist/components/fieldset/Fieldset.d.ts +12 -0
- package/dist/components/fieldset/Fieldset.js +56 -0
- package/dist/components/fieldset/Fieldset.module.js +10 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.css +290 -0
- package/dist/components/file-upload/FileUpload.d.ts +28 -0
- package/dist/components/file-upload/FileUpload.js +149 -0
- package/dist/components/file-upload/FileUpload.module.js +19 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/floating-panel/FloatingPanel.css +319 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +45 -0
- package/dist/components/floating-panel/FloatingPanel.js +194 -0
- package/dist/components/floating-panel/FloatingPanel.module.js +20 -0
- package/dist/components/floating-panel/index.d.ts +2 -0
- package/dist/components/heading/Heading.css +58 -0
- package/dist/components/heading/Heading.d.ts +17 -0
- package/dist/components/heading/Heading.js +32 -0
- package/dist/components/heading/Heading.module.js +5 -0
- package/dist/components/highlight/Highlight.css +15 -0
- package/dist/components/highlight/Highlight.d.ts +13 -0
- package/dist/components/highlight/Highlight.js +18 -0
- package/dist/components/highlight/Highlight.module.js +5 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/hover-card/HoverCard.css +107 -0
- package/dist/components/hover-card/HoverCard.d.ts +28 -0
- package/dist/components/hover-card/HoverCard.js +81 -0
- package/dist/components/hover-card/HoverCard.module.js +13 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +147 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +15 -0
- package/dist/components/image-cropper/ImageCropper.js +75 -0
- package/dist/components/image-cropper/ImageCropper.module.js +12 -0
- package/dist/components/image-cropper/index.d.ts +2 -0
- package/dist/components/input/Input.css +83 -0
- package/dist/components/input/Input.d.ts +15 -0
- package/dist/components/input/Input.js +22 -0
- package/dist/components/input/Input.module.js +5 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input-group/InputGroup.css +158 -0
- package/dist/components/input-group/InputGroup.d.ts +25 -0
- package/dist/components/input-group/InputGroup.js +76 -0
- package/dist/components/input-group/InputGroup.module.js +11 -0
- package/dist/components/input-group/index.d.ts +2 -0
- package/dist/components/kbd/Kbd.css +45 -0
- package/dist/components/kbd/Kbd.d.ts +7 -0
- package/dist/components/kbd/Kbd.js +33 -0
- package/dist/components/kbd/Kbd.module.js +8 -0
- package/dist/components/lightbox/Lightbox.css +242 -0
- package/dist/components/lightbox/Lightbox.d.ts +71 -0
- package/dist/components/lightbox/Lightbox.js +219 -0
- package/dist/components/lightbox/Lightbox.module.js +22 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/list/List.css +118 -0
- package/dist/components/list/List.d.ts +24 -0
- package/dist/components/list/List.js +48 -0
- package/dist/components/list/List.module.js +5 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/listbox/Listbox.css +255 -0
- package/dist/components/listbox/Listbox.d.ts +35 -0
- package/dist/components/listbox/Listbox.js +145 -0
- package/dist/components/listbox/Listbox.module.js +20 -0
- package/dist/components/listbox/index.d.ts +2 -0
- package/dist/components/marquee/Marquee.css +114 -0
- package/dist/components/marquee/Marquee.d.ts +13 -0
- package/dist/components/marquee/Marquee.js +65 -0
- package/dist/components/marquee/Marquee.module.js +13 -0
- package/dist/components/marquee/index.d.ts +2 -0
- package/dist/components/menu/Menu.css +371 -0
- package/dist/components/menu/Menu.d.ts +83 -0
- package/dist/components/menu/Menu.js +240 -0
- package/dist/components/menu/Menu.module.js +33 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/native-select/NativeSelect.css +104 -0
- package/dist/components/native-select/NativeSelect.d.ts +8 -0
- package/dist/components/native-select/NativeSelect.js +32 -0
- package/dist/components/native-select/NativeSelect.module.js +9 -0
- package/dist/components/native-select/index.d.ts +2 -0
- package/dist/components/number-input/NumberInput.css +162 -0
- package/dist/components/number-input/NumberInput.d.ts +16 -0
- package/dist/components/number-input/NumberInput.js +95 -0
- package/dist/components/number-input/NumberInput.module.js +14 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/pagination/Pagination.css +99 -0
- package/dist/components/pagination/Pagination.d.ts +16 -0
- package/dist/components/pagination/Pagination.js +101 -0
- package/dist/components/pagination/Pagination.module.js +12 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/password-input/PasswordInput.css +155 -0
- package/dist/components/password-input/PasswordInput.d.ts +14 -0
- package/dist/components/password-input/PasswordInput.js +77 -0
- package/dist/components/password-input/PasswordInput.module.js +12 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/pin-input/PinInput.css +96 -0
- package/dist/components/pin-input/PinInput.d.ts +23 -0
- package/dist/components/pin-input/PinInput.js +85 -0
- package/dist/components/pin-input/PinInput.module.js +11 -0
- package/dist/components/pin-input/index.d.ts +2 -0
- package/dist/components/popover/Popover.css +162 -0
- package/dist/components/popover/Popover.d.ts +50 -0
- package/dist/components/popover/Popover.js +167 -0
- package/dist/components/popover/Popover.module.js +20 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/progress-circular/ProgressCircular.css +68 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +15 -0
- package/dist/components/progress-circular/ProgressCircular.js +83 -0
- package/dist/components/progress-circular/ProgressCircular.module.js +14 -0
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-linear/ProgressLinear.css +106 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +14 -0
- package/dist/components/progress-linear/ProgressLinear.js +74 -0
- package/dist/components/progress-linear/ProgressLinear.module.js +14 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/qr-code/QrCode.css +100 -0
- package/dist/components/qr-code/QrCode.d.ts +13 -0
- package/dist/components/qr-code/QrCode.js +65 -0
- package/dist/components/qr-code/QrCode.module.js +11 -0
- package/dist/components/qr-code/index.d.ts +2 -0
- package/dist/components/radio-group/RadioGroup.css +147 -0
- package/dist/components/radio-group/RadioGroup.d.ts +20 -0
- package/dist/components/radio-group/RadioGroup.js +83 -0
- package/dist/components/radio-group/RadioGroup.module.js +12 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/rating-group/RatingGroup.css +133 -0
- package/dist/components/rating-group/RatingGroup.d.ts +23 -0
- package/dist/components/rating-group/RatingGroup.js +86 -0
- package/dist/components/rating-group/RatingGroup.module.js +13 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/scroll-area/ScrollArea.css +162 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +21 -0
- package/dist/components/scroll-area/ScrollArea.js +76 -0
- package/dist/components/scroll-area/ScrollArea.module.js +12 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/segment-group/SegmentGroup.css +120 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +15 -0
- package/dist/components/segment-group/SegmentGroup.js +83 -0
- package/dist/components/segment-group/SegmentGroup.module.js +12 -0
- package/dist/components/segment-group/index.d.ts +2 -0
- package/dist/components/select/Select.css +351 -0
- package/dist/components/select/Select.d.ts +48 -0
- package/dist/components/select/Select.js +210 -0
- package/dist/components/select/Select.module.js +27 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/separator/Separator.css +45 -0
- package/dist/components/separator/Separator.d.ts +14 -0
- package/dist/components/separator/Separator.js +27 -0
- package/dist/components/separator/Separator.module.js +5 -0
- package/dist/components/sidebar/Sidebar.css +341 -0
- package/dist/components/sidebar/Sidebar.d.ts +48 -0
- package/dist/components/sidebar/Sidebar.js +279 -0
- package/dist/components/sidebar/Sidebar.module.js +23 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/signature-pad/SignaturePad.css +123 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +15 -0
- package/dist/components/signature-pad/SignaturePad.js +82 -0
- package/dist/components/signature-pad/SignaturePad.module.js +12 -0
- package/dist/components/signature-pad/index.d.ts +2 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +18 -0
- package/dist/components/simple-grid/SimpleGrid.js +32 -0
- package/dist/components/skeleton/Skeleton.css +29 -0
- package/dist/components/skeleton/Skeleton.d.ts +20 -0
- package/dist/components/skeleton/Skeleton.js +32 -0
- package/dist/components/skeleton/Skeleton.module.js +5 -0
- package/dist/components/slider/Slider.css +167 -0
- package/dist/components/slider/Slider.d.ts +19 -0
- package/dist/components/slider/Slider.js +119 -0
- package/dist/components/slider/Slider.module.js +16 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/spinner/Spinner.css +60 -0
- package/dist/components/spinner/Spinner.d.ts +12 -0
- package/dist/components/spinner/Spinner.js +40 -0
- package/dist/components/spinner/Spinner.module.js +9 -0
- package/dist/components/split-button/SplitButton.css +51 -0
- package/dist/components/split-button/SplitButton.d.ts +36 -0
- package/dist/components/split-button/SplitButton.js +93 -0
- package/dist/components/split-button/SplitButton.module.js +9 -0
- package/dist/components/split-button/index.d.ts +2 -0
- package/dist/components/splitter/Splitter.css +170 -0
- package/dist/components/splitter/Splitter.d.ts +12 -0
- package/dist/components/splitter/Splitter.js +68 -0
- package/dist/components/splitter/Splitter.module.js +10 -0
- package/dist/components/splitter/index.d.ts +2 -0
- package/dist/components/stack/Stack.css +13 -0
- package/dist/components/stack/Stack.d.ts +31 -0
- package/dist/components/stack/Stack.js +36 -0
- package/dist/components/stack/Stack.module.js +5 -0
- package/dist/components/stack/index.d.ts +2 -0
- package/dist/components/steps/Steps.css +283 -0
- package/dist/components/steps/Steps.d.ts +19 -0
- package/dist/components/steps/Steps.js +122 -0
- package/dist/components/steps/Steps.module.js +17 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +130 -0
- package/dist/components/switch/Switch.d.ts +21 -0
- package/dist/components/switch/Switch.js +67 -0
- package/dist/components/switch/Switch.module.js +10 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/Table.css +162 -0
- package/dist/components/table/Table.d.ts +41 -0
- package/dist/components/table/Table.js +173 -0
- package/dist/components/table/Table.module.js +18 -0
- package/dist/components/tabs/Tabs.css +186 -0
- package/dist/components/tabs/Tabs.d.ts +20 -0
- package/dist/components/tabs/Tabs.js +67 -0
- package/dist/components/tabs/Tabs.module.js +11 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tag/Tag.css +128 -0
- package/dist/components/tag/Tag.d.ts +18 -0
- package/dist/components/tag/Tag.js +87 -0
- package/dist/components/tag/Tag.module.js +11 -0
- package/dist/components/tags-input/TagsInput.css +248 -0
- package/dist/components/tags-input/TagsInput.d.ts +20 -0
- package/dist/components/tags-input/TagsInput.js +139 -0
- package/dist/components/tags-input/TagsInput.module.js +16 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/text/Text.css +87 -0
- package/dist/components/text/Text.d.ts +27 -0
- package/dist/components/text/Text.js +43 -0
- package/dist/components/text/Text.module.js +5 -0
- package/dist/components/textarea/Textarea.css +55 -0
- package/dist/components/textarea/Textarea.d.ts +6 -0
- package/dist/components/textarea/Textarea.js +21 -0
- package/dist/components/textarea/Textarea.module.js +5 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/timer/Timer.css +95 -0
- package/dist/components/timer/Timer.d.ts +14 -0
- package/dist/components/timer/Timer.js +74 -0
- package/dist/components/timer/Timer.module.js +12 -0
- package/dist/components/timer/index.d.ts +2 -0
- package/dist/components/toast/Toast.css +154 -0
- package/dist/components/toast/Toast.d.ts +17 -0
- package/dist/components/toast/Toast.js +92 -0
- package/dist/components/toast/Toast.module.js +12 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toggle/Toggle.css +167 -0
- package/dist/components/toggle/Toggle.d.ts +16 -0
- package/dist/components/toggle/Toggle.js +31 -0
- package/dist/components/toggle/Toggle.module.js +8 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroup.css +42 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +25 -0
- package/dist/components/toggle-group/ToggleGroup.js +62 -0
- package/dist/components/toggle-group/ToggleGroup.module.js +8 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.css +125 -0
- package/dist/components/tooltip/Tooltip.d.ts +28 -0
- package/dist/components/tooltip/Tooltip.js +75 -0
- package/dist/components/tooltip/Tooltip.module.js +13 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tour/Tour.css +286 -0
- package/dist/components/tour/Tour.d.ts +30 -0
- package/dist/components/tour/Tour.js +149 -0
- package/dist/components/tour/Tour.module.js +23 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tree-view/TreeView.css +261 -0
- package/dist/components/tree-view/TreeView.d.ts +32 -0
- package/dist/components/tree-view/TreeView.js +171 -0
- package/dist/components/tree-view/TreeView.module.js +26 -0
- package/dist/components/tree-view/index.d.ts +2 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +83 -0
- package/dist/lib/moduix/icons/ui/Icons.d.ts +51 -0
- package/dist/lib/moduix/icons/ui/Icons.js +759 -0
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -0
- package/dist/lib/moduix/normalizeClassName.js +4 -0
- package/dist/lib/moduix/overlayPortal.d.ts +9 -0
- package/dist/lib/moduix/overlayPortal.js +21 -0
- package/dist/lib/moduix/styles/reset.css +175 -0
- package/dist/lib/moduix/styles/style.css +288 -0
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
3
|
+
import Tooltip_module_default from "./Tooltip.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Tooltip } from "@ark-ui/react/tooltip";
|
|
8
|
+
//#region src/components/tooltip/Tooltip.tsx
|
|
9
|
+
function TooltipRoot({ portalled, portalRef, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
11
|
+
portalled,
|
|
12
|
+
portalRef,
|
|
13
|
+
children: /* @__PURE__ */ jsx(Tooltip.Root, { ...props })
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function TooltipRootProvider({ portalled, portalRef, ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
18
|
+
portalled,
|
|
19
|
+
portalRef,
|
|
20
|
+
children: /* @__PURE__ */ jsx(Tooltip.RootProvider, { ...props })
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const TooltipTrigger = forwardRef(function TooltipTrigger({ asChild, className, ...props }, ref) {
|
|
24
|
+
return /* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
25
|
+
ref,
|
|
26
|
+
"data-slot": "tooltip-trigger",
|
|
27
|
+
asChild,
|
|
28
|
+
className: clsx(!asChild && Tooltip_module_default.trigger, normalizeClassName(className)),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
const TooltipPositioner = forwardRef(function TooltipPositioner({ className, ...props }, ref) {
|
|
33
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
34
|
+
ref,
|
|
35
|
+
"data-slot": "tooltip-positioner",
|
|
36
|
+
className: clsx(Tooltip_module_default.positioner, normalizeClassName(className)),
|
|
37
|
+
...props
|
|
38
|
+
}) });
|
|
39
|
+
});
|
|
40
|
+
const TooltipContent = forwardRef(function TooltipContent({ className, ...props }, ref) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Tooltip.Content, {
|
|
42
|
+
ref,
|
|
43
|
+
"data-slot": "tooltip-content",
|
|
44
|
+
className: clsx(Tooltip_module_default.content, normalizeClassName(className)),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
const TooltipArrow = forwardRef(function TooltipArrow({ className, children, ...props }, ref) {
|
|
49
|
+
return /* @__PURE__ */ jsx(Tooltip.Arrow, {
|
|
50
|
+
ref,
|
|
51
|
+
"data-slot": "tooltip-arrow",
|
|
52
|
+
className: clsx(Tooltip_module_default.arrow, normalizeClassName(className)),
|
|
53
|
+
...props,
|
|
54
|
+
children: children ?? /* @__PURE__ */ jsx(TooltipArrowTip, {})
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const TooltipArrowTip = forwardRef(function TooltipArrowTip({ className, ...props }, ref) {
|
|
58
|
+
return /* @__PURE__ */ jsx(Tooltip.ArrowTip, {
|
|
59
|
+
ref,
|
|
60
|
+
"data-slot": "tooltip-arrow-tip",
|
|
61
|
+
className: clsx(Tooltip_module_default.arrowTip, normalizeClassName(className)),
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
const Tooltip$1 = Object.assign(TooltipRoot, {
|
|
66
|
+
Root: TooltipRoot,
|
|
67
|
+
RootProvider: TooltipRootProvider,
|
|
68
|
+
Trigger: TooltipTrigger,
|
|
69
|
+
Positioner: TooltipPositioner,
|
|
70
|
+
Content: TooltipContent,
|
|
71
|
+
Arrow: TooltipArrow,
|
|
72
|
+
ArrowTip: TooltipArrowTip
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { Tooltip$1 as Tooltip };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './Tooltip.css';
|
|
2
|
+
//#region src/components/tooltip/Tooltip.module.css
|
|
3
|
+
var Tooltip_module_default = {
|
|
4
|
+
"arrow": "DqDdfq_arrow",
|
|
5
|
+
"arrowTip": "DqDdfq_arrowTip",
|
|
6
|
+
"content": "DqDdfq_content",
|
|
7
|
+
"positioner": "DqDdfq_positioner",
|
|
8
|
+
"tooltip-content-in": "DqDdfq_tooltip-content-in",
|
|
9
|
+
"tooltip-content-out": "DqDdfq_tooltip-content-out",
|
|
10
|
+
"trigger": "DqDdfq_trigger"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Tooltip_module_default as default };
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.vsTV1G_backdrop {
|
|
3
|
+
z-index: calc(var(--tour-z-index, var(--z-modal)) + var(--layer-index, 0));
|
|
4
|
+
background-color: var(--tour-backdrop-bg, var(--backdrop-bg, var(--color-overlay)));
|
|
5
|
+
backdrop-filter: var(--backdrop-filter, blur(var(--tour-backdrop-blur, 4px)));
|
|
6
|
+
|
|
7
|
+
&[data-state="open"] {
|
|
8
|
+
animation: vsTV1G_tour-backdrop-in var(--tour-backdrop-transition, var(--transition-default));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-state="closed"] {
|
|
12
|
+
animation: vsTV1G_tour-backdrop-out var(--tour-backdrop-transition, var(--transition-default));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.vsTV1G_spotlight {
|
|
17
|
+
z-index: calc(var(--tour-z-index, var(--z-modal)) + var(--tour-layer, 0));
|
|
18
|
+
box-shadow: var(--tour-spotlight-shadow, 0 0 0 var(--tour-spotlight-ring-width, 2px) var(--color-ring));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.vsTV1G_positioner {
|
|
22
|
+
z-index: var(--z-index, var(--tour-z-index, var(--z-modal)));
|
|
23
|
+
max-width: var(--available-width);
|
|
24
|
+
max-height: var(--available-height);
|
|
25
|
+
outline: 0;
|
|
26
|
+
|
|
27
|
+
&[data-type="dialog"] {
|
|
28
|
+
overscroll-behavior: contain;
|
|
29
|
+
padding: var(--tour-positioner-padding, var(--spacing-4));
|
|
30
|
+
place-items: center;
|
|
31
|
+
display: grid;
|
|
32
|
+
position: fixed;
|
|
33
|
+
inset: 0;
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[data-type="floating"] {
|
|
38
|
+
z-index: var(--tour-z-index, var(--z-modal));
|
|
39
|
+
margin: var(--tour-floating-offset, var(--spacing-6));
|
|
40
|
+
position: fixed;
|
|
41
|
+
|
|
42
|
+
&[data-placement*="top"] {
|
|
43
|
+
inset-block-start: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-placement*="bottom"] {
|
|
47
|
+
inset-block-end: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-placement*="start"] {
|
|
51
|
+
inset-inline-start: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-placement*="end"] {
|
|
55
|
+
inset-inline-end: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.vsTV1G_content {
|
|
61
|
+
--arrow-background: var(--tour-arrow-background, var(--tour-bg, var(--color-popover)));
|
|
62
|
+
--arrow-size: var(--tour-arrow-size, .625rem);
|
|
63
|
+
box-sizing: border-box;
|
|
64
|
+
z-index: calc(var(--tour-z-index, var(--z-modal)) + var(--layer-index, 0));
|
|
65
|
+
gap: var(--tour-gap, var(--spacing-1));
|
|
66
|
+
width: min(var(--tour-width, 20rem), var(--available-width, 100vw));
|
|
67
|
+
max-width: min(var(--tour-max-width, calc(100vw - var(--spacing-8))),
|
|
68
|
+
var(--available-width, 100vw));
|
|
69
|
+
max-height: min(var(--tour-max-height, 24rem), var(--available-height, 100dvh));
|
|
70
|
+
padding: var(--tour-padding, var(--spacing-5));
|
|
71
|
+
border: var(--tour-border-width, var(--border-width-sm)) solid
|
|
72
|
+
var(--tour-border-color, var(--color-border));
|
|
73
|
+
border-radius: var(--tour-radius, var(--radius-lg));
|
|
74
|
+
background-color: var(--tour-bg, var(--color-popover));
|
|
75
|
+
color: var(--tour-color, var(--color-popover-foreground));
|
|
76
|
+
box-shadow: var(--tour-shadow, var(--shadow-lg));
|
|
77
|
+
transform-origin: var(--transform-origin);
|
|
78
|
+
outline: 0;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
display: flex;
|
|
81
|
+
position: relative;
|
|
82
|
+
overflow: visible;
|
|
83
|
+
|
|
84
|
+
&[data-state="open"] {
|
|
85
|
+
animation: vsTV1G_tour-content-in var(--tour-transition, var(--transition-default)) both;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&[data-state="closed"] {
|
|
89
|
+
animation: vsTV1G_tour-content-out var(--tour-transition, var(--transition-default)) both;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&[data-type="dialog"] {
|
|
93
|
+
width: min(var(--tour-dialog-width, 26rem),
|
|
94
|
+
var(--tour-max-width, calc(100vw - var(--spacing-8))));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&[data-type="floating"] {
|
|
98
|
+
width: min(var(--tour-floating-width, 22rem),
|
|
99
|
+
var(--tour-max-width, calc(100vw - var(--spacing-8))));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.vsTV1G_arrow {
|
|
104
|
+
--arrow-background: var(--tour-arrow-background, var(--tour-bg, var(--color-popover)));
|
|
105
|
+
--arrow-size: var(--tour-arrow-size, .625rem);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.vsTV1G_arrowTip {
|
|
109
|
+
border-top: var(--tour-border-width, var(--border-width-sm)) solid
|
|
110
|
+
var(--tour-arrow-stroke-color, var(--tour-border-color, var(--color-border)));
|
|
111
|
+
border-left: var(--tour-border-width, var(--border-width-sm)) solid
|
|
112
|
+
var(--tour-arrow-stroke-color, var(--tour-border-color, var(--color-border)));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.vsTV1G_title {
|
|
116
|
+
margin: var(--tour-title-margin, 0);
|
|
117
|
+
color: var(--tour-title-color, var(--tour-color, var(--color-popover-foreground)));
|
|
118
|
+
font-size: var(--tour-title-font-size, var(--text-md));
|
|
119
|
+
font-weight: var(--tour-title-font-weight, var(--weight-semibold));
|
|
120
|
+
line-height: var(--tour-title-line-height, var(--line-height-text-md));
|
|
121
|
+
padding-inline-end: var(--tour-title-padding-inline-end, var(--spacing-6));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.vsTV1G_description {
|
|
125
|
+
margin: var(--tour-description-margin, 0);
|
|
126
|
+
color: var(--tour-description-color, var(--color-muted-foreground));
|
|
127
|
+
font-size: var(--tour-description-font-size, var(--text-sm));
|
|
128
|
+
line-height: var(--tour-description-line-height, var(--line-height-text-sm));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.vsTV1G_progressText {
|
|
132
|
+
margin-top: var(--tour-progress-text-margin-top, var(--spacing-2));
|
|
133
|
+
color: var(--tour-progress-text-color, var(--color-muted-foreground));
|
|
134
|
+
font-size: var(--tour-progress-text-font-size, var(--text-xs));
|
|
135
|
+
line-height: var(--tour-progress-text-line-height, var(--line-height-text-xs));
|
|
136
|
+
order: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.vsTV1G_closeTrigger {
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
width: var(--tour-close-trigger-size, 1.75rem);
|
|
142
|
+
height: var(--tour-close-trigger-size, 1.75rem);
|
|
143
|
+
border-radius: var(--tour-close-trigger-radius, var(--radius-md));
|
|
144
|
+
background: var(--tour-close-trigger-bg, transparent);
|
|
145
|
+
color: var(--tour-close-trigger-color, var(--color-muted-foreground));
|
|
146
|
+
font: inherit;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
border: 0;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
padding: 0;
|
|
152
|
+
line-height: 1;
|
|
153
|
+
display: inline-flex;
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset-block-start: var(--tour-close-trigger-offset, var(--spacing-2));
|
|
156
|
+
inset-inline-end: var(--tour-close-trigger-offset, var(--spacing-2));
|
|
157
|
+
|
|
158
|
+
& :where(svg) {
|
|
159
|
+
width: var(--tour-close-trigger-icon-size, .875rem);
|
|
160
|
+
height: var(--tour-close-trigger-icon-size, .875rem);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media (hover: hover) {
|
|
164
|
+
&:hover {
|
|
165
|
+
background: var(--tour-close-trigger-bg-hover, var(--color-accent));
|
|
166
|
+
color: var(--tour-close-trigger-color-hover, var(--tour-color, var(--color-popover-foreground)));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:focus-visible {
|
|
171
|
+
outline: var(--tour-focus-ring-width, var(--border-width-sm)) solid
|
|
172
|
+
var(--tour-focus-ring-color, var(--color-ring));
|
|
173
|
+
outline-offset: calc(var(--tour-focus-ring-width, var(--border-width-sm)) * -1);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.vsTV1G_closeIcon {
|
|
178
|
+
--close-button-size: var(--tour-close-trigger-size, 1.75rem);
|
|
179
|
+
--close-button-radius: var(--tour-close-trigger-radius, var(--radius-md));
|
|
180
|
+
--close-button-icon-size: var(--tour-close-trigger-icon-size, .875rem);
|
|
181
|
+
--close-button-bg: var(--tour-close-trigger-bg, transparent);
|
|
182
|
+
--close-button-bg-hover: var(--tour-close-trigger-bg-hover, var(--color-accent));
|
|
183
|
+
--close-button-color: var(--tour-close-trigger-color, var(--color-muted-foreground));
|
|
184
|
+
--close-button-color-hover: var(--tour-close-trigger-color-hover, var(--tour-color, var(--color-popover-foreground)));
|
|
185
|
+
--close-button-focus-ring-width: var(--tour-focus-ring-width, var(--border-width-sm));
|
|
186
|
+
--close-button-focus-ring-color: var(--tour-focus-ring-color, var(--color-ring));
|
|
187
|
+
--close-button-focus-ring-offset: calc(var(--tour-focus-ring-width, var(--border-width-sm)) * -1);
|
|
188
|
+
position: absolute;
|
|
189
|
+
inset-block-start: var(--tour-close-trigger-offset, var(--spacing-2));
|
|
190
|
+
inset-inline-end: var(--tour-close-trigger-offset, var(--spacing-2));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.vsTV1G_control {
|
|
194
|
+
justify-content: flex-end;
|
|
195
|
+
gap: var(--tour-control-gap, var(--spacing-2));
|
|
196
|
+
margin-top: var(--tour-control-margin-top, var(--spacing-3));
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
order: 2;
|
|
199
|
+
display: flex;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.vsTV1G_actionTrigger {
|
|
203
|
+
box-sizing: border-box;
|
|
204
|
+
min-height: var(--tour-action-height, 2rem);
|
|
205
|
+
justify-content: center;
|
|
206
|
+
align-items: center;
|
|
207
|
+
gap: var(--tour-action-gap, var(--spacing-2));
|
|
208
|
+
padding-block: var(--tour-action-padding-y, .375rem);
|
|
209
|
+
padding-inline: var(--tour-action-padding-x, .75rem);
|
|
210
|
+
border: var(--tour-action-border-width, var(--border-width-sm)) solid
|
|
211
|
+
var(--tour-action-border-color, var(--color-border));
|
|
212
|
+
border-radius: var(--tour-action-radius, var(--radius-md));
|
|
213
|
+
background: var(--tour-action-bg, var(--color-background));
|
|
214
|
+
color: var(--tour-action-color, var(--color-foreground));
|
|
215
|
+
font: inherit;
|
|
216
|
+
font-size: var(--tour-action-font-size, var(--text-sm));
|
|
217
|
+
font-weight: var(--tour-action-font-weight, var(--weight-medium));
|
|
218
|
+
line-height: var(--tour-action-line-height, var(--line-height-text-sm));
|
|
219
|
+
white-space: nowrap;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
transition: background-color var(--tour-action-transition, var(--transition-default)),
|
|
222
|
+
border-color var(--tour-action-transition, var(--transition-default)),
|
|
223
|
+
color var(--tour-action-transition, var(--transition-default));
|
|
224
|
+
text-decoration: none;
|
|
225
|
+
display: inline-flex;
|
|
226
|
+
|
|
227
|
+
&[data-type="next"], &[data-type="close"] {
|
|
228
|
+
border-color: var(--tour-action-primary-border-color, var(--color-primary));
|
|
229
|
+
background: var(--tour-action-primary-bg, var(--color-primary));
|
|
230
|
+
color: var(--tour-action-primary-color, var(--color-primary-foreground));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@media (hover: hover) {
|
|
234
|
+
&:hover:not([data-disabled], :disabled) {
|
|
235
|
+
background: var(--tour-action-bg-hover, var(--color-accent));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&:is([data-type="next"], [data-type="close"]):hover:not([data-disabled], :disabled) {
|
|
239
|
+
border-color: var(--tour-action-primary-border-color-hover, color-mix(in oklab, var(--color-primary), black 12%));
|
|
240
|
+
background: var(--tour-action-primary-bg-hover, color-mix(in oklab, var(--color-primary), black 12%));
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&:focus-visible {
|
|
245
|
+
outline: var(--tour-focus-ring-width, var(--border-width-sm)) solid
|
|
246
|
+
var(--tour-focus-ring-color, var(--color-ring));
|
|
247
|
+
outline-offset: calc(var(--tour-focus-ring-width, var(--border-width-sm)) * -1);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&[data-disabled], &:disabled {
|
|
251
|
+
pointer-events: none;
|
|
252
|
+
opacity: var(--tour-disabled-opacity, var(--opacity-disabled));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@keyframes vsTV1G_tour-backdrop-in {
|
|
257
|
+
from {
|
|
258
|
+
opacity: var(--tour-backdrop-starting-opacity, 0);
|
|
259
|
+
backdrop-filter: var(--tour-backdrop-starting-blur, none);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@keyframes vsTV1G_tour-backdrop-out {
|
|
264
|
+
to {
|
|
265
|
+
opacity: var(--tour-backdrop-ending-opacity, 0);
|
|
266
|
+
backdrop-filter: var(--tour-backdrop-ending-blur, none);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@keyframes vsTV1G_tour-content-in {
|
|
271
|
+
from {
|
|
272
|
+
opacity: var(--tour-content-starting-opacity, 0);
|
|
273
|
+
translate: var(--tour-content-starting-translate-x, 0)
|
|
274
|
+
var(--tour-content-starting-translate-y, 0);
|
|
275
|
+
scale: var(--tour-content-starting-scale, var(--scale-popup));
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@keyframes vsTV1G_tour-content-out {
|
|
280
|
+
to {
|
|
281
|
+
opacity: var(--tour-content-ending-opacity, 0);
|
|
282
|
+
translate: var(--tour-content-ending-translate-x, 0) var(--tour-content-ending-translate-y, 0);
|
|
283
|
+
scale: var(--tour-content-ending-scale, var(--scale-popup));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/react/tour";
|
|
4
|
+
|
|
5
|
+
//#region src/components/tour/Tour.d.ts
|
|
6
|
+
type TourRootProps = ComponentProps<typeof Tour.Root> & OverlayPortalProps;
|
|
7
|
+
declare function TourRoot({
|
|
8
|
+
portalled,
|
|
9
|
+
portalRef,
|
|
10
|
+
...props
|
|
11
|
+
}: TourRootProps): import("react").JSX.Element;
|
|
12
|
+
declare const Tour$1: typeof TourRoot & {
|
|
13
|
+
Root: typeof TourRoot;
|
|
14
|
+
Backdrop: import("react").ForwardRefExoticComponent<Omit<Tour.BackdropProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Spotlight: import("react").ForwardRefExoticComponent<Omit<Tour.SpotlightProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<Tour.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Tour.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Arrow: import("react").ForwardRefExoticComponent<Omit<Tour.ArrowProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
ArrowTip: import("react").ForwardRefExoticComponent<Omit<Tour.ArrowTipProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
Title: import("react").ForwardRefExoticComponent<Omit<Tour.TitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
21
|
+
Description: import("react").ForwardRefExoticComponent<Omit<Tour.DescriptionProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
ProgressText: import("react").ForwardRefExoticComponent<Omit<Tour.ProgressTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
CloseTrigger: import("react").ForwardRefExoticComponent<Omit<Tour.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
CloseIcon: import("react").ForwardRefExoticComponent<Omit<Omit<Tour.CloseTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "asChild">, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
Control: import("react").ForwardRefExoticComponent<Omit<Tour.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
Actions: (props: Tour.ActionsProps) => import("react").ReactNode;
|
|
27
|
+
ActionTrigger: import("react").ForwardRefExoticComponent<Omit<Tour.ActionTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Tour$1 as Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { CloseButton } from "../close-button/CloseButton.js";
|
|
3
|
+
import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
|
|
4
|
+
import Tour_module_default from "./Tour.module.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "@ark-ui/react/tour";
|
|
9
|
+
//#region src/components/tour/Tour.tsx
|
|
10
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = "Close tour";
|
|
11
|
+
function TourRoot({ portalled, portalRef, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsx(OverlayPortalProvider, {
|
|
13
|
+
portalled,
|
|
14
|
+
portalRef,
|
|
15
|
+
children: /* @__PURE__ */ jsx(Tour.Root, { ...props })
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const TourBackdrop = forwardRef(function TourBackdrop({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Tour.Backdrop, {
|
|
20
|
+
ref,
|
|
21
|
+
"data-slot": "tour-backdrop",
|
|
22
|
+
className: clsx(Tour_module_default.backdrop, normalizeClassName(className)),
|
|
23
|
+
...props
|
|
24
|
+
}) });
|
|
25
|
+
});
|
|
26
|
+
const TourSpotlight = forwardRef(function TourSpotlight({ className, ...props }, ref) {
|
|
27
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Tour.Spotlight, {
|
|
28
|
+
ref,
|
|
29
|
+
"data-slot": "tour-spotlight",
|
|
30
|
+
className: clsx(Tour_module_default.spotlight, normalizeClassName(className)),
|
|
31
|
+
...props
|
|
32
|
+
}) });
|
|
33
|
+
});
|
|
34
|
+
const TourPositioner = forwardRef(function TourPositioner({ className, ...props }, ref) {
|
|
35
|
+
return /* @__PURE__ */ jsx(OverlayPortal, { children: /* @__PURE__ */ jsx(Tour.Positioner, {
|
|
36
|
+
ref,
|
|
37
|
+
"data-slot": "tour-positioner",
|
|
38
|
+
className: clsx(Tour_module_default.positioner, normalizeClassName(className)),
|
|
39
|
+
...props
|
|
40
|
+
}) });
|
|
41
|
+
});
|
|
42
|
+
const TourContent = forwardRef(function TourContent({ className, ...props }, ref) {
|
|
43
|
+
return /* @__PURE__ */ jsx(Tour.Content, {
|
|
44
|
+
ref,
|
|
45
|
+
"data-slot": "tour-content",
|
|
46
|
+
className: clsx(Tour_module_default.content, normalizeClassName(className)),
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const TourArrow = forwardRef(function TourArrow({ className, children, ...props }, ref) {
|
|
51
|
+
return /* @__PURE__ */ jsx(Tour.Arrow, {
|
|
52
|
+
ref,
|
|
53
|
+
"data-slot": "tour-arrow",
|
|
54
|
+
className: clsx(Tour_module_default.arrow, normalizeClassName(className)),
|
|
55
|
+
...props,
|
|
56
|
+
children: children ?? /* @__PURE__ */ jsx(TourArrowTip, {})
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
const TourArrowTip = forwardRef(function TourArrowTip({ className, ...props }, ref) {
|
|
60
|
+
return /* @__PURE__ */ jsx(Tour.ArrowTip, {
|
|
61
|
+
ref,
|
|
62
|
+
"data-slot": "tour-arrow-tip",
|
|
63
|
+
className: clsx(Tour_module_default.arrowTip, normalizeClassName(className)),
|
|
64
|
+
...props
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const TourTitle = forwardRef(function TourTitle({ className, ...props }, ref) {
|
|
68
|
+
return /* @__PURE__ */ jsx(Tour.Title, {
|
|
69
|
+
ref,
|
|
70
|
+
"data-slot": "tour-title",
|
|
71
|
+
className: clsx(Tour_module_default.title, normalizeClassName(className)),
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
const TourDescription = forwardRef(function TourDescription({ className, ...props }, ref) {
|
|
76
|
+
return /* @__PURE__ */ jsx(Tour.Description, {
|
|
77
|
+
ref,
|
|
78
|
+
"data-slot": "tour-description",
|
|
79
|
+
className: clsx(Tour_module_default.description, normalizeClassName(className)),
|
|
80
|
+
...props
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const TourProgressText = forwardRef(function TourProgressText({ className, ...props }, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Tour.ProgressText, {
|
|
85
|
+
ref,
|
|
86
|
+
"data-slot": "tour-progress-text",
|
|
87
|
+
className: clsx(Tour_module_default.progressText, normalizeClassName(className)),
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
const TourCloseTrigger = forwardRef(function TourCloseTrigger({ asChild, className, ...props }, ref) {
|
|
92
|
+
return /* @__PURE__ */ jsx(Tour.CloseTrigger, {
|
|
93
|
+
ref,
|
|
94
|
+
asChild,
|
|
95
|
+
"data-slot": "tour-close-trigger",
|
|
96
|
+
className: clsx(!asChild && Tour_module_default.closeTrigger, normalizeClassName(className)),
|
|
97
|
+
...props
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
const TourCloseIcon = forwardRef(function TourCloseIcon({ className, children, "aria-label": ariaLabel = DEFAULT_CLOSE_BUTTON_LABEL, ...props }, ref) {
|
|
101
|
+
return /* @__PURE__ */ jsx(Tour.CloseTrigger, {
|
|
102
|
+
asChild: true,
|
|
103
|
+
...props,
|
|
104
|
+
children: /* @__PURE__ */ jsx(CloseButton.Root, {
|
|
105
|
+
ref,
|
|
106
|
+
"data-slot": "tour-close-icon",
|
|
107
|
+
"aria-label": ariaLabel,
|
|
108
|
+
className: clsx(Tour_module_default.closeIcon, normalizeClassName(className)),
|
|
109
|
+
children
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
const TourControl = forwardRef(function TourControl({ className, ...props }, ref) {
|
|
114
|
+
return /* @__PURE__ */ jsx(Tour.Control, {
|
|
115
|
+
ref,
|
|
116
|
+
"data-slot": "tour-control",
|
|
117
|
+
className: clsx(Tour_module_default.control, normalizeClassName(className)),
|
|
118
|
+
...props
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
const TourActionTrigger = forwardRef(function TourActionTrigger({ asChild, className, ...props }, ref) {
|
|
122
|
+
return /* @__PURE__ */ jsx(Tour.ActionTrigger, {
|
|
123
|
+
ref,
|
|
124
|
+
asChild,
|
|
125
|
+
"data-slot": "tour-action-trigger",
|
|
126
|
+
className: clsx(!asChild && Tour_module_default.actionTrigger, normalizeClassName(className)),
|
|
127
|
+
...props
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
const TourActions = Tour.Actions;
|
|
131
|
+
const Tour$1 = Object.assign(TourRoot, {
|
|
132
|
+
Root: TourRoot,
|
|
133
|
+
Backdrop: TourBackdrop,
|
|
134
|
+
Spotlight: TourSpotlight,
|
|
135
|
+
Positioner: TourPositioner,
|
|
136
|
+
Content: TourContent,
|
|
137
|
+
Arrow: TourArrow,
|
|
138
|
+
ArrowTip: TourArrowTip,
|
|
139
|
+
Title: TourTitle,
|
|
140
|
+
Description: TourDescription,
|
|
141
|
+
ProgressText: TourProgressText,
|
|
142
|
+
CloseTrigger: TourCloseTrigger,
|
|
143
|
+
CloseIcon: TourCloseIcon,
|
|
144
|
+
Control: TourControl,
|
|
145
|
+
Actions: TourActions,
|
|
146
|
+
ActionTrigger: TourActionTrigger
|
|
147
|
+
});
|
|
148
|
+
//#endregion
|
|
149
|
+
export { Tour$1 as Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import './Tour.css';
|
|
2
|
+
//#region src/components/tour/Tour.module.css
|
|
3
|
+
var Tour_module_default = {
|
|
4
|
+
"actionTrigger": "vsTV1G_actionTrigger",
|
|
5
|
+
"arrow": "vsTV1G_arrow",
|
|
6
|
+
"arrowTip": "vsTV1G_arrowTip",
|
|
7
|
+
"backdrop": "vsTV1G_backdrop",
|
|
8
|
+
"closeIcon": "vsTV1G_closeIcon",
|
|
9
|
+
"closeTrigger": "vsTV1G_closeTrigger",
|
|
10
|
+
"content": "vsTV1G_content",
|
|
11
|
+
"control": "vsTV1G_control",
|
|
12
|
+
"description": "vsTV1G_description",
|
|
13
|
+
"positioner": "vsTV1G_positioner",
|
|
14
|
+
"progressText": "vsTV1G_progressText",
|
|
15
|
+
"spotlight": "vsTV1G_spotlight",
|
|
16
|
+
"title": "vsTV1G_title",
|
|
17
|
+
"tour-backdrop-in": "vsTV1G_tour-backdrop-in",
|
|
18
|
+
"tour-backdrop-out": "vsTV1G_tour-backdrop-out",
|
|
19
|
+
"tour-content-in": "vsTV1G_tour-content-in",
|
|
20
|
+
"tour-content-out": "vsTV1G_tour-content-out"
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Tour_module_default as default };
|