@moduix/react 1.1.1 → 2.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/README.md +105 -177
- package/dist/components/accordion/Accordion.css +12 -5
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +1 -0
- 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 +1 -0
- package/dist/components/angle-slider/AngleSlider.css +9 -9
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +3 -1
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +52 -8
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/breadcrumbs/Breadcrumbs.css +13 -6
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +2 -1
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +45 -25
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/card/Card.css +21 -5
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +1 -0
- package/dist/components/carousel/Carousel.css +19 -17
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/checkbox/Checkbox.css +13 -13
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +11 -11
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/close-button/CloseButton.css +7 -7
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/collapsible/Collapsible.css +13 -6
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +1 -0
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -27
- 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 +1 -0
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +69 -53
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +67 -100
- 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 +0 -2
- package/dist/components/container/Container.js +1 -1
- package/dist/components/date-input/DateInput.css +8 -5
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +78 -57
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +19 -14
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +6 -5
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +12 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +2 -2
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/field/Field.css +6 -8
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +0 -1
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +96 -23
- 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 +3 -0
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +44 -40
- package/dist/components/floating-panel/FloatingPanel.d.ts +10 -2
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/hover-card/HoverCard.css +19 -15
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- 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 +15 -11
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +9 -9
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input-group/InputGroup.css +29 -29
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/lightbox/Lightbox.css +19 -17
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.js +1 -1
- package/dist/components/listbox/Listbox.css +87 -26
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +3 -0
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +54 -45
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +17 -12
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/number-input/NumberInput.css +17 -24
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +11 -11
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/password-input/PasswordInput.css +4 -4
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/pin-input/PinInput.css +6 -6
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/popover/Popover.css +29 -19
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/progress-circular/ProgressCircular.css +2 -2
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-linear/ProgressLinear.css +1 -1
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/qr-code/QrCode.css +10 -9
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +12 -12
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +10 -10
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +12 -7
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/segment-group/SegmentGroup.css +4 -4
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +81 -55
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/separator/Separator.css +6 -6
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/sidebar/Sidebar.css +161 -20
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +6 -0
- package/dist/components/signature-pad/SignaturePad.css +17 -45
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- 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/slider/Slider.css +17 -13
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +5 -5
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/split-button/SplitButton.css +10 -10
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/splitter/Splitter.css +19 -18
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/steps/Steps.css +20 -19
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- 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 +17 -17
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +3 -3
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +0 -1
- package/dist/components/tabs/Tabs.css +22 -20
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +23 -53
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tags-input/TagsInput.css +19 -55
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/textarea/Textarea.css +4 -3
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/timer/Timer.css +7 -7
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +16 -15
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toggle/Toggle.css +23 -23
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +23 -18
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +37 -32
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tree-view/TreeView.css +24 -21
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/typeset/Typeset.css +317 -0
- package/dist/components/typeset/Typeset.d.ts +7 -0
- package/dist/components/typeset/Typeset.js +33 -0
- package/dist/components/typeset/Typeset.module.js +8 -0
- package/dist/index.d.ts +42 -39
- package/dist/index.js +42 -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/dist/lib/moduix/presets/contrast.css +65 -0
- package/dist/lib/moduix/presets/dense.css +78 -0
- package/dist/lib/moduix/presets/soft.css +77 -0
- package/dist/lib/moduix/styles/reset.css +33 -0
- package/dist/lib/moduix/styles/style.css +17 -4
- package/dist/presets/contrast.d.ts +1 -0
- package/dist/presets/contrast.js +1 -0
- package/dist/presets/dense.d.ts +1 -0
- package/dist/presets/dense.js +1 -0
- package/dist/presets/soft.d.ts +1 -0
- package/dist/presets/soft.js +1 -0
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
|
-
import { CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpDownIcon, ChevronUpIcon, CloseIcon, CopyIcon, EyeClosedIcon, EyeIcon, FileIcon, FlipHorizontalIcon, FolderIcon, FolderOpenIcon, GripIcon, IndeterminateIcon, MaximizeIcon, MinusIcon, PauseIcon, PencilIcon, PipetteIcon, PlayIcon, PlusIcon, PopupArrowIcon, RatingStarIcon, RestartIcon, RotateCcwIcon, RotateCwIcon, ScrubCursorIcon, SeparatorMarkIcon, TrashIcon, UploadIcon, ZoomInIcon, ZoomOutIcon } from "./lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { AspectRatio } from "./components/aspect-ratio/AspectRatio.js";
|
|
3
|
-
import { Accordion } from "./components/accordion/Accordion.js";
|
|
4
|
-
import { AngleSlider } from "./components/angle-slider/AngleSlider.js";
|
|
2
|
+
import { Accordion, useAccordion } from "./components/accordion/Accordion.js";
|
|
3
|
+
import { AngleSlider, useAngleSlider } from "./components/angle-slider/AngleSlider.js";
|
|
5
4
|
import { Alert } from "./components/alert/Alert.js";
|
|
6
|
-
import { Avatar } from "./components/avatar/Avatar.js";
|
|
5
|
+
import { Avatar, useAvatar, useAvatarContext } from "./components/avatar/Avatar.js";
|
|
7
6
|
import { Badge } from "./components/badge/Badge.js";
|
|
8
7
|
import { Bleed } from "./components/bleed/Bleed.js";
|
|
9
8
|
import { Breadcrumbs } from "./components/breadcrumbs/Breadcrumbs.js";
|
|
10
9
|
import { Button } from "./components/button/Button.js";
|
|
11
10
|
import { Card } from "./components/card/Card.js";
|
|
12
|
-
import { Checkbox } from "./components/checkbox/Checkbox.js";
|
|
11
|
+
import { Checkbox, useCheckbox, useCheckboxGroup } from "./components/checkbox/Checkbox.js";
|
|
13
12
|
import { Clipboard } from "./components/clipboard/Clipboard.js";
|
|
14
13
|
import { CloseButton } from "./components/close-button/CloseButton.js";
|
|
15
|
-
import { Collapsible } from "./components/collapsible/Collapsible.js";
|
|
16
|
-
import { ColorPicker, parseColor } from "./components/color-picker/ColorPicker.js";
|
|
17
|
-
import { Combobox } from "./components/combobox/Combobox.js";
|
|
14
|
+
import { Collapsible, useCollapsible } from "./components/collapsible/Collapsible.js";
|
|
15
|
+
import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "./components/color-picker/ColorPicker.js";
|
|
16
|
+
import { Combobox, useCombobox, useComboboxContext } from "./components/combobox/Combobox.js";
|
|
18
17
|
import { Kbd } from "./components/kbd/Kbd.js";
|
|
19
18
|
import { ScrollArea } from "./components/scroll-area/ScrollArea.js";
|
|
20
19
|
import { CommandPalette } from "./components/command-palette/CommandPalette.js";
|
|
21
20
|
import { Container } from "./components/container/Container.js";
|
|
22
|
-
import { DateInput } from "./components/date-input/DateInput.js";
|
|
23
|
-
import { DatePicker } from "./components/date-picker/DatePicker.js";
|
|
24
|
-
import { Dialog } from "./components/dialog/Dialog.js";
|
|
25
|
-
import { Drawer } from "./components/drawer/Drawer.js";
|
|
26
|
-
import { Editable } from "./components/editable/Editable.js";
|
|
21
|
+
import { DateInput, useDateInput, useDateInputContext } from "./components/date-input/DateInput.js";
|
|
22
|
+
import { DatePicker, useDatePicker, useDatePickerContext } from "./components/date-picker/DatePicker.js";
|
|
23
|
+
import { Dialog, useDialog, useDialogContext } from "./components/dialog/Dialog.js";
|
|
24
|
+
import { Drawer, useDrawer } from "./components/drawer/Drawer.js";
|
|
25
|
+
import { Editable, useEditable, useEditableContext } from "./components/editable/Editable.js";
|
|
27
26
|
import { Empty } from "./components/empty/Empty.js";
|
|
28
|
-
import { Field } from "./components/field/Field.js";
|
|
29
|
-
import { FileUpload } from "./components/file-upload/FileUpload.js";
|
|
30
|
-
import { Fieldset } from "./components/fieldset/Fieldset.js";
|
|
27
|
+
import { Field, useField, useFieldContext } from "./components/field/Field.js";
|
|
28
|
+
import { FileUpload, useFileUpload, useFileUploadContext } from "./components/file-upload/FileUpload.js";
|
|
29
|
+
import { Fieldset, useFieldset } from "./components/fieldset/Fieldset.js";
|
|
31
30
|
import { FloatingPanel, resizeTriggerAxes } from "./components/floating-panel/FloatingPanel.js";
|
|
32
31
|
import { Heading } from "./components/heading/Heading.js";
|
|
33
32
|
import { Highlight } from "./components/highlight/Highlight.js";
|
|
34
|
-
import {
|
|
33
|
+
import { Image } from "./components/image/Image.js";
|
|
34
|
+
import { ImageCropper, useImageCropper } from "./components/image-cropper/ImageCropper.js";
|
|
35
35
|
import { Input } from "./components/input/Input.js";
|
|
36
36
|
import { InputGroup } from "./components/input-group/InputGroup.js";
|
|
37
|
-
import { Lightbox, LightboxBind, LightboxGallery, LightboxImage } from "./components/lightbox/Lightbox.js";
|
|
37
|
+
import { Lightbox, LightboxBind, LightboxGallery, LightboxImage, useLightbox as useDialog$1, useLightboxContext as useDialogContext$1 } from "./components/lightbox/Lightbox.js";
|
|
38
38
|
import { List } from "./components/list/List.js";
|
|
39
|
-
import { Listbox } from "./components/listbox/Listbox.js";
|
|
40
|
-
import { Marquee } from "./components/marquee/Marquee.js";
|
|
41
|
-
import { Menu } from "./components/menu/Menu.js";
|
|
39
|
+
import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "./components/listbox/Listbox.js";
|
|
40
|
+
import { Marquee, useMarquee } from "./components/marquee/Marquee.js";
|
|
41
|
+
import { Menu, useMenu } from "./components/menu/Menu.js";
|
|
42
42
|
import { NativeSelect } from "./components/native-select/NativeSelect.js";
|
|
43
|
-
import { NumberInput } from "./components/number-input/NumberInput.js";
|
|
43
|
+
import { NumberInput, useNumberInput, useNumberInputContext } from "./components/number-input/NumberInput.js";
|
|
44
44
|
import { PinInput, usePinInput } from "./components/pin-input/PinInput.js";
|
|
45
45
|
import { Pagination } from "./components/pagination/Pagination.js";
|
|
46
46
|
import { PasswordInput, usePasswordInput } from "./components/password-input/PasswordInput.js";
|
|
47
47
|
import { Popover, usePopover } from "./components/popover/Popover.js";
|
|
48
|
-
import { HoverCard } from "./components/hover-card/HoverCard.js";
|
|
48
|
+
import { HoverCard, useHoverCard, useHoverCardContext } from "./components/hover-card/HoverCard.js";
|
|
49
49
|
import { ProgressCircular } from "./components/progress-circular/ProgressCircular.js";
|
|
50
50
|
import { ProgressLinear } from "./components/progress-linear/ProgressLinear.js";
|
|
51
|
-
import { QrCode } from "./components/qr-code/QrCode.js";
|
|
52
|
-
import { RadioGroup } from "./components/radio-group/RadioGroup.js";
|
|
53
|
-
import { RatingGroup } from "./components/rating-group/RatingGroup.js";
|
|
51
|
+
import { QrCode, useQrCode } from "./components/qr-code/QrCode.js";
|
|
52
|
+
import { RadioGroup, useRadioGroup } from "./components/radio-group/RadioGroup.js";
|
|
53
|
+
import { RatingGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext } from "./components/rating-group/RatingGroup.js";
|
|
54
54
|
import { Separator } from "./components/separator/Separator.js";
|
|
55
|
-
import { SegmentGroup } from "./components/segment-group/SegmentGroup.js";
|
|
55
|
+
import { SegmentGroup, useSegmentGroup } from "./components/segment-group/SegmentGroup.js";
|
|
56
56
|
import { Select } from "./components/select/Select.js";
|
|
57
|
-
import { SignaturePad, useSignaturePad } from "./components/signature-pad/SignaturePad.js";
|
|
57
|
+
import { SignaturePad, useSignaturePad, useSignaturePadContext } from "./components/signature-pad/SignaturePad.js";
|
|
58
58
|
import { SimpleGrid } from "./components/simple-grid/SimpleGrid.js";
|
|
59
|
-
import { Slider } from "./components/slider/Slider.js";
|
|
60
|
-
import { Splitter } from "./components/splitter/Splitter.js";
|
|
59
|
+
import { Slider, useSlider, useSliderContext } from "./components/slider/Slider.js";
|
|
60
|
+
import { Splitter, createSplitterRegistry, useSplitter, useSplitterContext } from "./components/splitter/Splitter.js";
|
|
61
|
+
import { Tooltip, useTooltip, useTooltipContext } from "./components/tooltip/Tooltip.js";
|
|
61
62
|
import { Sidebar, useSidebar } from "./components/sidebar/Sidebar.js";
|
|
62
63
|
import { Carousel } from "./components/carousel/Carousel.js";
|
|
63
64
|
import { Skeleton } from "./components/skeleton/Skeleton.js";
|
|
@@ -65,19 +66,21 @@ import { Spinner } from "./components/spinner/Spinner.js";
|
|
|
65
66
|
import { SplitButton } from "./components/split-button/SplitButton.js";
|
|
66
67
|
import { Stack } from "./components/stack/Stack.js";
|
|
67
68
|
import { Steps } from "./components/steps/Steps.js";
|
|
68
|
-
import {
|
|
69
|
+
import { Swap, useSwapContext } from "./components/swap/Swap.js";
|
|
70
|
+
import { Switch, useSwitch, useSwitchContext } from "./components/switch/Switch.js";
|
|
69
71
|
import { Tag } from "./components/tag/Tag.js";
|
|
70
|
-
import { TagsInput } from "./components/tags-input/TagsInput.js";
|
|
72
|
+
import { TagsInput, useTagsInput, useTagsInputContext, useTagsInputItemContext } from "./components/tags-input/TagsInput.js";
|
|
71
73
|
import { Table } from "./components/table/Table.js";
|
|
72
|
-
import { Tabs } from "./components/tabs/Tabs.js";
|
|
74
|
+
import { Tabs, useTabs } from "./components/tabs/Tabs.js";
|
|
73
75
|
import { Text } from "./components/text/Text.js";
|
|
74
76
|
import { Textarea } from "./components/textarea/Textarea.js";
|
|
75
|
-
import { Timer } from "./components/timer/Timer.js";
|
|
77
|
+
import { Timer, useTimer, useTimerContext } from "./components/timer/Timer.js";
|
|
78
|
+
import { Typeset } from "./components/typeset/Typeset.js";
|
|
76
79
|
import { Toast, Toaster, createToaster } from "./components/toast/Toast.js";
|
|
77
|
-
import { Tooltip } from "./components/tooltip/Tooltip.js";
|
|
78
80
|
import { Tour, useTour, waitForElement, waitForElementValue, waitForEvent, waitForPromise } from "./components/tour/Tour.js";
|
|
79
|
-
import { TreeView, createFileTreeCollection, createTreeCollection } from "./components/tree-view/TreeView.js";
|
|
80
|
-
import { Toggle } from "./components/toggle/Toggle.js";
|
|
81
|
-
import { ToggleGroup } from "./components/toggle-group/ToggleGroup.js";
|
|
81
|
+
import { TreeView, createFileTreeCollection, createTreeCollection, useTreeView, useTreeViewNodeContext } from "./components/tree-view/TreeView.js";
|
|
82
|
+
import { Toggle, useToggleContext } from "./components/toggle/Toggle.js";
|
|
83
|
+
import { ToggleGroup, useToggleGroup, useToggleGroupContext } from "./components/toggle-group/ToggleGroup.js";
|
|
82
84
|
import { Portal } from "@ark-ui/react/portal";
|
|
83
|
-
|
|
85
|
+
import { LocaleProvider, useLocaleContext } from "@ark-ui/react/locale";
|
|
86
|
+
export { Accordion, Alert, AngleSlider, AspectRatio, Avatar, Badge, Bleed, Breadcrumbs, Button, Card, Carousel, Checkbox, Clipboard, CloseButton, Collapsible, ColorPicker, Combobox, CommandPalette, Container, DateInput, DatePicker, Dialog, Drawer, Editable, Empty, Field, Fieldset, FileUpload, FloatingPanel, Heading, Highlight, HoverCard, Image, ImageCropper, Input, InputGroup, Kbd, Lightbox, LightboxBind, LightboxGallery, LightboxImage, List, Listbox, LocaleProvider, Marquee, Menu, NativeSelect, NumberInput, Pagination, PasswordInput, PinInput, Popover, Portal, ProgressCircular, ProgressLinear, QrCode, RadioGroup, RatingGroup, ScrollArea, SegmentGroup, Select, Separator, Sidebar, SignaturePad, SimpleGrid, Skeleton, Slider, Spinner, SplitButton, Splitter, Stack, Steps, Swap, Switch, Table, Tabs, Tag, TagsInput, Text, Textarea, Timer, Toast, Toaster, Toggle, ToggleGroup, Tooltip, Tour, TreeView, Typeset, createFileTreeCollection, createSplitterRegistry, createToaster, createTreeCollection, parseColor, resizeTriggerAxes, useAccordion, useAngleSlider, useAvatar, useAvatarContext, useCheckbox, useCheckboxGroup, useCollapsible, useColorPicker, useColorPickerContext, useCombobox, useComboboxContext, useDateInput, useDateInputContext, useDatePicker, useDatePickerContext, useDialog, useDialogContext, useDrawer, useEditable, useEditableContext, useField, useFieldContext, useFieldset, useFileUpload, useFileUploadContext, useHoverCard, useHoverCardContext, useImageCropper, useDialog$1 as useLightbox, useDialogContext$1 as useLightboxContext, useListbox, useListboxContext, useListboxItemContext, useLocaleContext, useMarquee, useMenu, useNumberInput, useNumberInputContext, usePasswordInput, usePinInput, usePopover, useQrCode, useRadioGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext, useSegmentGroup, useSidebar, useSignaturePad, useSignaturePadContext, useSlider, useSliderContext, useSplitter, useSplitterContext, useSwapContext, useSwitch, useSwitchContext, useTabs, useTagsInput, useTagsInputContext, useTagsInputItemContext, useTimer, useTimerContext, useToggleContext, useToggleGroup, useToggleGroupContext, useTooltip, useTooltipContext, useTour, useTreeView, useTreeViewNodeContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -2,50 +2,6 @@ import { ComponentProps } from "react";
|
|
|
2
2
|
|
|
3
3
|
//#region src/lib/moduix/icons/ui/Icons.d.ts
|
|
4
4
|
type IconProps = ComponentProps<'svg'>;
|
|
5
|
-
type PopupArrowIconProps = IconProps & {
|
|
6
|
-
fillClassName?: string;
|
|
7
|
-
outerStrokeClassName?: string;
|
|
8
|
-
innerStrokeClassName?: string;
|
|
9
|
-
};
|
|
10
|
-
declare function ChevronLeftIcon(props: IconProps): import("react").JSX.Element;
|
|
11
|
-
declare function ChevronRightIcon(props: IconProps): import("react").JSX.Element;
|
|
12
|
-
declare function ChevronDownIcon(props: IconProps): import("react").JSX.Element;
|
|
13
|
-
declare function CalendarIcon(props: IconProps): import("react").JSX.Element;
|
|
14
|
-
declare function ChevronUpIcon(props: IconProps): import("react").JSX.Element;
|
|
15
|
-
declare function ChevronUpDownIcon(props: IconProps): import("react").JSX.Element;
|
|
16
|
-
declare function PlusIcon(props: IconProps): import("react").JSX.Element;
|
|
17
|
-
declare function MinusIcon(props: IconProps): import("react").JSX.Element;
|
|
18
|
-
declare function ZoomOutIcon(props: IconProps): import("react").JSX.Element;
|
|
19
|
-
declare function ZoomInIcon(props: IconProps): import("react").JSX.Element;
|
|
20
|
-
declare function RotateCcwIcon(props: IconProps): import("react").JSX.Element;
|
|
21
|
-
declare function RotateCwIcon(props: IconProps): import("react").JSX.Element;
|
|
22
|
-
declare function PlayIcon(props: IconProps): import("react").JSX.Element;
|
|
23
|
-
declare function PauseIcon(props: IconProps): import("react").JSX.Element;
|
|
24
|
-
declare function RestartIcon(props: IconProps): import("react").JSX.Element;
|
|
25
|
-
declare function FlipHorizontalIcon(props: IconProps): import("react").JSX.Element;
|
|
26
|
-
declare function MaximizeIcon(props: IconProps): import("react").JSX.Element;
|
|
27
|
-
declare function GripIcon(props: IconProps): import("react").JSX.Element;
|
|
28
|
-
declare function CheckIcon(props: IconProps): import("react").JSX.Element;
|
|
29
|
-
declare function CloseIcon(props: IconProps): import("react").JSX.Element;
|
|
30
|
-
declare function TrashIcon(props: IconProps): import("react").JSX.Element;
|
|
31
|
-
declare function UploadIcon(props: IconProps): import("react").JSX.Element;
|
|
32
|
-
declare function PencilIcon(props: IconProps): import("react").JSX.Element;
|
|
33
|
-
declare function PipetteIcon(props: IconProps): import("react").JSX.Element;
|
|
34
|
-
declare function EyeIcon(props: IconProps): import("react").JSX.Element;
|
|
35
|
-
declare function EyeClosedIcon(props: IconProps): import("react").JSX.Element;
|
|
36
|
-
declare function RatingStarIcon(props: IconProps): import("react").JSX.Element;
|
|
37
|
-
declare function CopyIcon(props: IconProps): import("react").JSX.Element;
|
|
38
5
|
declare function FileIcon(props: IconProps): import("react").JSX.Element;
|
|
39
|
-
declare function FolderIcon(props: IconProps): import("react").JSX.Element;
|
|
40
|
-
declare function FolderOpenIcon(props: IconProps): import("react").JSX.Element;
|
|
41
|
-
declare function IndeterminateIcon(props: IconProps): import("react").JSX.Element;
|
|
42
|
-
declare function SeparatorMarkIcon(props: IconProps): import("react").JSX.Element;
|
|
43
|
-
declare function ScrubCursorIcon(props: IconProps): import("react").JSX.Element;
|
|
44
|
-
declare function PopupArrowIcon({
|
|
45
|
-
fillClassName,
|
|
46
|
-
outerStrokeClassName,
|
|
47
|
-
innerStrokeClassName,
|
|
48
|
-
...props
|
|
49
|
-
}: PopupArrowIconProps): import("react").JSX.Element;
|
|
50
6
|
//#endregion
|
|
51
|
-
export {
|
|
7
|
+
export { FileIcon };
|
|
@@ -79,23 +79,6 @@ function CalendarIcon(props) {
|
|
|
79
79
|
]
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
function ChevronUpIcon(props) {
|
|
83
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
width: "24",
|
|
86
|
-
height: "24",
|
|
87
|
-
viewBox: "0 0 24 24",
|
|
88
|
-
fill: "none",
|
|
89
|
-
stroke: "currentColor",
|
|
90
|
-
strokeWidth: "3",
|
|
91
|
-
strokeLinecap: "round",
|
|
92
|
-
strokeLinejoin: "round",
|
|
93
|
-
"aria-hidden": "true",
|
|
94
|
-
focusable: "false",
|
|
95
|
-
...props,
|
|
96
|
-
children: /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" })
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
82
|
function ChevronUpDownIcon(props) {
|
|
100
83
|
return /* @__PURE__ */ jsxs("svg", {
|
|
101
84
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -147,82 +130,6 @@ function MinusIcon(props) {
|
|
|
147
130
|
children: /* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
148
131
|
});
|
|
149
132
|
}
|
|
150
|
-
function ZoomOutIcon(props) {
|
|
151
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
152
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
153
|
-
width: "24",
|
|
154
|
-
height: "24",
|
|
155
|
-
viewBox: "0 0 24 24",
|
|
156
|
-
fill: "none",
|
|
157
|
-
stroke: "currentColor",
|
|
158
|
-
strokeWidth: "2",
|
|
159
|
-
strokeLinecap: "round",
|
|
160
|
-
strokeLinejoin: "round",
|
|
161
|
-
"aria-hidden": "true",
|
|
162
|
-
focusable: "false",
|
|
163
|
-
...props,
|
|
164
|
-
children: [
|
|
165
|
-
/* @__PURE__ */ jsx("circle", {
|
|
166
|
-
cx: "11",
|
|
167
|
-
cy: "11",
|
|
168
|
-
r: "8"
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ jsx("line", {
|
|
171
|
-
x1: "21",
|
|
172
|
-
x2: "16.65",
|
|
173
|
-
y1: "21",
|
|
174
|
-
y2: "16.65"
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ jsx("line", {
|
|
177
|
-
x1: "8",
|
|
178
|
-
x2: "14",
|
|
179
|
-
y1: "11",
|
|
180
|
-
y2: "11"
|
|
181
|
-
})
|
|
182
|
-
]
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
function ZoomInIcon(props) {
|
|
186
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
187
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
188
|
-
width: "24",
|
|
189
|
-
height: "24",
|
|
190
|
-
viewBox: "0 0 24 24",
|
|
191
|
-
fill: "none",
|
|
192
|
-
stroke: "currentColor",
|
|
193
|
-
strokeWidth: "2",
|
|
194
|
-
strokeLinecap: "round",
|
|
195
|
-
strokeLinejoin: "round",
|
|
196
|
-
"aria-hidden": "true",
|
|
197
|
-
focusable: "false",
|
|
198
|
-
...props,
|
|
199
|
-
children: [
|
|
200
|
-
/* @__PURE__ */ jsx("circle", {
|
|
201
|
-
cx: "11",
|
|
202
|
-
cy: "11",
|
|
203
|
-
r: "8"
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ jsx("line", {
|
|
206
|
-
x1: "21",
|
|
207
|
-
x2: "16.65",
|
|
208
|
-
y1: "21",
|
|
209
|
-
y2: "16.65"
|
|
210
|
-
}),
|
|
211
|
-
/* @__PURE__ */ jsx("line", {
|
|
212
|
-
x1: "11",
|
|
213
|
-
x2: "11",
|
|
214
|
-
y1: "8",
|
|
215
|
-
y2: "14"
|
|
216
|
-
}),
|
|
217
|
-
/* @__PURE__ */ jsx("line", {
|
|
218
|
-
x1: "8",
|
|
219
|
-
x2: "14",
|
|
220
|
-
y1: "11",
|
|
221
|
-
y2: "11"
|
|
222
|
-
})
|
|
223
|
-
]
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
133
|
function RotateCcwIcon(props) {
|
|
227
134
|
return /* @__PURE__ */ jsxs("svg", {
|
|
228
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -240,93 +147,7 @@ function RotateCcwIcon(props) {
|
|
|
240
147
|
children: [/* @__PURE__ */ jsx("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }), /* @__PURE__ */ jsx("path", { d: "M3 3v5h5" })]
|
|
241
148
|
});
|
|
242
149
|
}
|
|
243
|
-
function
|
|
244
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
245
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
246
|
-
width: "24",
|
|
247
|
-
height: "24",
|
|
248
|
-
viewBox: "0 0 24 24",
|
|
249
|
-
fill: "none",
|
|
250
|
-
stroke: "currentColor",
|
|
251
|
-
strokeWidth: "2",
|
|
252
|
-
strokeLinecap: "round",
|
|
253
|
-
strokeLinejoin: "round",
|
|
254
|
-
"aria-hidden": "true",
|
|
255
|
-
focusable: "false",
|
|
256
|
-
...props,
|
|
257
|
-
children: [/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }), /* @__PURE__ */ jsx("path", { d: "M21 3v5h-5" })]
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
function PlayIcon(props) {
|
|
261
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
262
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
263
|
-
width: "24",
|
|
264
|
-
height: "24",
|
|
265
|
-
viewBox: "0 0 24 24",
|
|
266
|
-
fill: "none",
|
|
267
|
-
stroke: "currentColor",
|
|
268
|
-
strokeWidth: "2",
|
|
269
|
-
strokeLinecap: "round",
|
|
270
|
-
strokeLinejoin: "round",
|
|
271
|
-
"aria-hidden": "true",
|
|
272
|
-
focusable: "false",
|
|
273
|
-
...props,
|
|
274
|
-
children: /* @__PURE__ */ jsx("path", { d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" })
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
function PauseIcon(props) {
|
|
278
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
279
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
280
|
-
width: "24",
|
|
281
|
-
height: "24",
|
|
282
|
-
viewBox: "0 0 24 24",
|
|
283
|
-
fill: "none",
|
|
284
|
-
stroke: "currentColor",
|
|
285
|
-
strokeWidth: "2",
|
|
286
|
-
strokeLinecap: "round",
|
|
287
|
-
strokeLinejoin: "round",
|
|
288
|
-
"aria-hidden": "true",
|
|
289
|
-
focusable: "false",
|
|
290
|
-
...props,
|
|
291
|
-
children: [/* @__PURE__ */ jsx("rect", {
|
|
292
|
-
x: "14",
|
|
293
|
-
y: "3",
|
|
294
|
-
width: "5",
|
|
295
|
-
height: "18",
|
|
296
|
-
rx: "1"
|
|
297
|
-
}), /* @__PURE__ */ jsx("rect", {
|
|
298
|
-
x: "5",
|
|
299
|
-
y: "3",
|
|
300
|
-
width: "5",
|
|
301
|
-
height: "18",
|
|
302
|
-
rx: "1"
|
|
303
|
-
})]
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function RestartIcon(props) {
|
|
307
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
308
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
309
|
-
width: "24",
|
|
310
|
-
height: "24",
|
|
311
|
-
viewBox: "0 0 24 24",
|
|
312
|
-
fill: "none",
|
|
313
|
-
stroke: "currentColor",
|
|
314
|
-
strokeWidth: "2",
|
|
315
|
-
strokeLinecap: "round",
|
|
316
|
-
strokeLinejoin: "round",
|
|
317
|
-
"aria-hidden": "true",
|
|
318
|
-
focusable: "false",
|
|
319
|
-
...props,
|
|
320
|
-
children: [
|
|
321
|
-
/* @__PURE__ */ jsx("path", { d: "M21 5H3" }),
|
|
322
|
-
/* @__PURE__ */ jsx("path", { d: "M7 12H3" }),
|
|
323
|
-
/* @__PURE__ */ jsx("path", { d: "M7 19H3" }),
|
|
324
|
-
/* @__PURE__ */ jsx("path", { d: "M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14" }),
|
|
325
|
-
/* @__PURE__ */ jsx("path", { d: "M11 10v4h4" })
|
|
326
|
-
]
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
function FlipHorizontalIcon(props) {
|
|
150
|
+
function MaximizeIcon(props) {
|
|
330
151
|
return /* @__PURE__ */ jsxs("svg", {
|
|
331
152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
332
153
|
width: "24",
|
|
@@ -341,16 +162,14 @@ function FlipHorizontalIcon(props) {
|
|
|
341
162
|
focusable: "false",
|
|
342
163
|
...props,
|
|
343
164
|
children: [
|
|
344
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
345
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
346
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
347
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
348
|
-
/* @__PURE__ */ jsx("path", { d: "M12 8v2" }),
|
|
349
|
-
/* @__PURE__ */ jsx("path", { d: "M12 2v2" })
|
|
165
|
+
/* @__PURE__ */ jsx("path", { d: "M15 3h6v6" }),
|
|
166
|
+
/* @__PURE__ */ jsx("path", { d: "m21 3-7 7" }),
|
|
167
|
+
/* @__PURE__ */ jsx("path", { d: "m3 21 7-7" }),
|
|
168
|
+
/* @__PURE__ */ jsx("path", { d: "M9 21H3v-6" })
|
|
350
169
|
]
|
|
351
170
|
});
|
|
352
171
|
}
|
|
353
|
-
function
|
|
172
|
+
function RestoreIcon(props) {
|
|
354
173
|
return /* @__PURE__ */ jsxs("svg", {
|
|
355
174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
356
175
|
width: "24",
|
|
@@ -364,12 +183,13 @@ function MaximizeIcon(props) {
|
|
|
364
183
|
"aria-hidden": "true",
|
|
365
184
|
focusable: "false",
|
|
366
185
|
...props,
|
|
367
|
-
children: [
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
186
|
+
children: [/* @__PURE__ */ jsx("rect", {
|
|
187
|
+
width: "14",
|
|
188
|
+
height: "14",
|
|
189
|
+
x: "3",
|
|
190
|
+
y: "3",
|
|
191
|
+
rx: "2"
|
|
192
|
+
}), /* @__PURE__ */ jsx("path", { d: "M7 21h10a2 2 0 0 0 2-2V9" })]
|
|
373
193
|
});
|
|
374
194
|
}
|
|
375
195
|
function GripIcon(props) {
|
|
@@ -469,6 +289,27 @@ function CloseIcon(props) {
|
|
|
469
289
|
children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
|
|
470
290
|
});
|
|
471
291
|
}
|
|
292
|
+
function SearchIcon(props) {
|
|
293
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
294
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
295
|
+
width: "24",
|
|
296
|
+
height: "24",
|
|
297
|
+
viewBox: "0 0 24 24",
|
|
298
|
+
fill: "none",
|
|
299
|
+
stroke: "currentColor",
|
|
300
|
+
strokeWidth: "2",
|
|
301
|
+
strokeLinecap: "round",
|
|
302
|
+
strokeLinejoin: "round",
|
|
303
|
+
"aria-hidden": "true",
|
|
304
|
+
focusable: "false",
|
|
305
|
+
...props,
|
|
306
|
+
children: [/* @__PURE__ */ jsx("path", { d: "m21 21-4.34-4.34" }), /* @__PURE__ */ jsx("circle", {
|
|
307
|
+
cx: "11",
|
|
308
|
+
cy: "11",
|
|
309
|
+
r: "8"
|
|
310
|
+
})]
|
|
311
|
+
});
|
|
312
|
+
}
|
|
472
313
|
function TrashIcon(props) {
|
|
473
314
|
return /* @__PURE__ */ jsxs("svg", {
|
|
474
315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -622,7 +463,7 @@ function CopyIcon(props) {
|
|
|
622
463
|
viewBox: "0 0 24 24",
|
|
623
464
|
fill: "none",
|
|
624
465
|
stroke: "currentColor",
|
|
625
|
-
strokeWidth: "
|
|
466
|
+
strokeWidth: "2",
|
|
626
467
|
strokeLinecap: "round",
|
|
627
468
|
strokeLinejoin: "round",
|
|
628
469
|
"aria-hidden": "true",
|
|
@@ -655,40 +496,6 @@ function FileIcon(props) {
|
|
|
655
496
|
children: [/* @__PURE__ */ jsx("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }), /* @__PURE__ */ jsx("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" })]
|
|
656
497
|
});
|
|
657
498
|
}
|
|
658
|
-
function FolderIcon(props) {
|
|
659
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
660
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
661
|
-
width: "24",
|
|
662
|
-
height: "24",
|
|
663
|
-
viewBox: "0 0 24 24",
|
|
664
|
-
fill: "none",
|
|
665
|
-
stroke: "currentColor",
|
|
666
|
-
strokeWidth: "2",
|
|
667
|
-
strokeLinecap: "round",
|
|
668
|
-
strokeLinejoin: "round",
|
|
669
|
-
"aria-hidden": "true",
|
|
670
|
-
focusable: "false",
|
|
671
|
-
...props,
|
|
672
|
-
children: /* @__PURE__ */ jsx("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" })
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
function FolderOpenIcon(props) {
|
|
676
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
677
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
678
|
-
width: "24",
|
|
679
|
-
height: "24",
|
|
680
|
-
viewBox: "0 0 24 24",
|
|
681
|
-
fill: "none",
|
|
682
|
-
stroke: "currentColor",
|
|
683
|
-
strokeWidth: "2",
|
|
684
|
-
strokeLinecap: "round",
|
|
685
|
-
strokeLinejoin: "round",
|
|
686
|
-
"aria-hidden": "true",
|
|
687
|
-
focusable: "false",
|
|
688
|
-
...props,
|
|
689
|
-
children: /* @__PURE__ */ jsx("path", { d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" })
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
499
|
function IndeterminateIcon(props) {
|
|
693
500
|
return /* @__PURE__ */ jsx("svg", {
|
|
694
501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -721,39 +528,5 @@ function SeparatorMarkIcon(props) {
|
|
|
721
528
|
})
|
|
722
529
|
});
|
|
723
530
|
}
|
|
724
|
-
function ScrubCursorIcon(props) {
|
|
725
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
726
|
-
viewBox: "0 0 25 14",
|
|
727
|
-
fill: "black",
|
|
728
|
-
stroke: "white",
|
|
729
|
-
"aria-hidden": "true",
|
|
730
|
-
focusable: "false",
|
|
731
|
-
...props,
|
|
732
|
-
children: /* @__PURE__ */ jsx("path", { d: "M19.5 5.5H6.5V2L1 7l5.5 5v-3.5h13V12L25 7l-5.5-5z" })
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
function PopupArrowIcon({ fillClassName, outerStrokeClassName, innerStrokeClassName, ...props }) {
|
|
736
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
737
|
-
viewBox: "0 0 20 10",
|
|
738
|
-
fill: "none",
|
|
739
|
-
"aria-hidden": "true",
|
|
740
|
-
focusable: "false",
|
|
741
|
-
...props,
|
|
742
|
-
children: [
|
|
743
|
-
/* @__PURE__ */ jsx("path", {
|
|
744
|
-
d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
|
|
745
|
-
className: fillClassName
|
|
746
|
-
}),
|
|
747
|
-
/* @__PURE__ */ jsx("path", {
|
|
748
|
-
d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
|
|
749
|
-
className: outerStrokeClassName
|
|
750
|
-
}),
|
|
751
|
-
/* @__PURE__ */ jsx("path", {
|
|
752
|
-
d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z",
|
|
753
|
-
className: innerStrokeClassName
|
|
754
|
-
})
|
|
755
|
-
]
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
531
|
//#endregion
|
|
759
|
-
export { CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpDownIcon,
|
|
532
|
+
export { CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpDownIcon, CloseIcon, CopyIcon, EyeClosedIcon, EyeIcon, FileIcon, GripIcon, IndeterminateIcon, MaximizeIcon, MinusIcon, PencilIcon, PipetteIcon, PlusIcon, RatingStarIcon, RestoreIcon, RotateCcwIcon, SearchIcon, SeparatorMarkIcon, TrashIcon, UploadIcon };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { FileIcon } from "./Icons.js";
|
|
2
|
+
export { FileIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { Portal } from "@ark-ui/react/portal";
|
|
3
2
|
import { createContext, useContext } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/lib/moduix/overlayPortal.tsx
|
|
5
5
|
const OverlayPortalContext = createContext({});
|
|
6
6
|
function OverlayPortalProvider({ children, ...value }) {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[data-moduix-theme="contrast"] {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--background: oklch(99.5% .001 250);
|
|
4
|
+
--foreground: oklch(14.5% .018 250);
|
|
5
|
+
--card: oklch(100% 0 0);
|
|
6
|
+
--card-foreground: oklch(14.5% .018 250);
|
|
7
|
+
--popover: oklch(100% 0 0);
|
|
8
|
+
--popover-foreground: oklch(14.5% .018 250);
|
|
9
|
+
--primary: oklch(46% .2 255);
|
|
10
|
+
--primary-foreground: oklch(100% 0 0);
|
|
11
|
+
--secondary: oklch(94% .012 250);
|
|
12
|
+
--secondary-foreground: oklch(18% .025 250);
|
|
13
|
+
--muted: oklch(93% .01 250);
|
|
14
|
+
--muted-foreground: oklch(39% .026 250);
|
|
15
|
+
--accent: oklch(90% .04 245);
|
|
16
|
+
--accent-foreground: oklch(16% .04 250);
|
|
17
|
+
--border: oklch(72% .025 250);
|
|
18
|
+
--input: oklch(62% .035 250);
|
|
19
|
+
--ring: oklch(50% .19 255);
|
|
20
|
+
--overlay: oklch(9% .018 250 / .38);
|
|
21
|
+
--overlay-foreground: oklch(9% .018 250 / .12);
|
|
22
|
+
--sidebar: oklch(96.5% .005 250);
|
|
23
|
+
--sidebar-foreground: oklch(14.5% .018 250);
|
|
24
|
+
--sidebar-primary: oklch(46% .2 255);
|
|
25
|
+
--sidebar-primary-foreground: oklch(100% 0 0);
|
|
26
|
+
--sidebar-accent: oklch(90% .04 245);
|
|
27
|
+
--sidebar-accent-foreground: oklch(16% .04 250);
|
|
28
|
+
--sidebar-border: oklch(72% .025 250);
|
|
29
|
+
--sidebar-ring: oklch(50% .19 255);
|
|
30
|
+
--radius: .375rem;
|
|
31
|
+
--shadow-sm: 0 1px 2px #0f172a1a;
|
|
32
|
+
--shadow-md: 0 4px 10px #0f172a24;
|
|
33
|
+
--shadow-lg: 0 16px 30px #0f172a2e;
|
|
34
|
+
|
|
35
|
+
& .dark, &.dark {
|
|
36
|
+
color-scheme: dark;
|
|
37
|
+
--background: oklch(11% .018 250);
|
|
38
|
+
--foreground: oklch(98.5% .004 250);
|
|
39
|
+
--card: oklch(15.5% .022 250);
|
|
40
|
+
--card-foreground: oklch(98.5% .004 250);
|
|
41
|
+
--popover: oklch(15.5% .022 250);
|
|
42
|
+
--popover-foreground: oklch(98.5% .004 250);
|
|
43
|
+
--primary: oklch(76% .13 255);
|
|
44
|
+
--primary-foreground: oklch(12% .02 250);
|
|
45
|
+
--secondary: oklch(24% .026 250);
|
|
46
|
+
--secondary-foreground: oklch(98.5% .004 250);
|
|
47
|
+
--muted: oklch(22.5% .024 250);
|
|
48
|
+
--muted-foreground: oklch(76% .018 250);
|
|
49
|
+
--accent: oklch(30% .06 250);
|
|
50
|
+
--accent-foreground: oklch(98.5% .004 250);
|
|
51
|
+
--border: oklch(80% .025 250 / .34);
|
|
52
|
+
--input: oklch(82% .025 250 / .42);
|
|
53
|
+
--ring: oklch(74% .13 255);
|
|
54
|
+
--overlay: oklch(4% .014 250 / .84);
|
|
55
|
+
--overlay-foreground: oklch(98.5% .004 250 / .12);
|
|
56
|
+
--sidebar: oklch(13% .02 250);
|
|
57
|
+
--sidebar-foreground: oklch(98.5% .004 250);
|
|
58
|
+
--sidebar-primary: oklch(76% .13 255);
|
|
59
|
+
--sidebar-primary-foreground: oklch(12% .02 250);
|
|
60
|
+
--sidebar-accent: oklch(30% .06 250);
|
|
61
|
+
--sidebar-accent-foreground: oklch(98.5% .004 250);
|
|
62
|
+
--sidebar-border: oklch(80% .025 250 / .34);
|
|
63
|
+
--sidebar-ring: oklch(74% .13 255);
|
|
64
|
+
}
|
|
65
|
+
}
|