@moduix/react 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/components/accordion/Accordion.css +21 -14
- package/dist/components/accordion/Accordion.d.ts +3 -2
- package/dist/components/accordion/Accordion.js +17 -5
- package/dist/components/accordion/Accordion.module.js +10 -9
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/Alert.css +24 -10
- package/dist/components/alert/Alert.d.ts +5 -3
- package/dist/components/alert/Alert.js +17 -5
- package/dist/components/alert/Alert.module.js +6 -5
- package/dist/components/angle-slider/AngleSlider.css +8 -8
- package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
- package/dist/components/angle-slider/AngleSlider.js +34 -18
- package/dist/components/angle-slider/AngleSlider.module.js +7 -7
- package/dist/components/angle-slider/index.d.ts +2 -2
- package/dist/components/aspect-ratio/AspectRatio.css +4 -2
- package/dist/components/aspect-ratio/AspectRatio.js +2 -2
- package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
- package/dist/components/avatar/Avatar.css +3 -3
- package/dist/components/avatar/Avatar.d.ts +6 -3
- package/dist/components/avatar/Avatar.js +12 -5
- package/dist/components/avatar/Avatar.module.js +3 -3
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.css +46 -3
- package/dist/components/badge/Badge.d.ts +2 -2
- package/dist/components/badge/Badge.js +1 -1
- package/dist/components/badge/Badge.module.js +2 -2
- package/dist/components/bleed/Bleed.css +1 -1
- package/dist/components/bleed/Bleed.d.ts +6 -4
- package/dist/components/bleed/Bleed.js +3 -3
- package/dist/components/bleed/Bleed.module.js +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
- package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/Button.css +22 -2
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/components/button/Button.js +12 -7
- package/dist/components/button/Button.module.js +1 -1
- package/dist/components/card/Card.css +29 -13
- package/dist/components/card/Card.d.ts +1 -0
- package/dist/components/card/Card.js +12 -1
- package/dist/components/card/Card.module.js +9 -8
- package/dist/components/carousel/Carousel.css +20 -18
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/Carousel.js +15 -2
- package/dist/components/carousel/Carousel.module.js +12 -12
- package/dist/components/checkbox/Checkbox.css +11 -11
- package/dist/components/checkbox/Checkbox.d.ts +2 -3
- package/dist/components/checkbox/Checkbox.js +25 -22
- package/dist/components/checkbox/Checkbox.module.js +6 -6
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/clipboard/Clipboard.css +8 -8
- package/dist/components/clipboard/Clipboard.d.ts +2 -0
- package/dist/components/clipboard/Clipboard.js +15 -4
- package/dist/components/clipboard/Clipboard.module.js +8 -8
- package/dist/components/close-button/CloseButton.css +1 -1
- package/dist/components/close-button/CloseButton.d.ts +12 -2
- package/dist/components/close-button/CloseButton.js +9 -9
- package/dist/components/close-button/CloseButton.module.js +1 -1
- package/dist/components/collapsible/Collapsible.css +17 -10
- package/dist/components/collapsible/Collapsible.d.ts +3 -2
- package/dist/components/collapsible/Collapsible.js +18 -6
- package/dist/components/collapsible/Collapsible.module.js +7 -6
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/color-picker/ColorPicker.css +63 -34
- package/dist/components/color-picker/ColorPicker.d.ts +3 -3
- package/dist/components/color-picker/ColorPicker.js +78 -27
- package/dist/components/color-picker/ColorPicker.module.js +28 -27
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox/Combobox.css +55 -26
- package/dist/components/combobox/Combobox.d.ts +9 -2
- package/dist/components/combobox/Combobox.js +34 -8
- package/dist/components/combobox/Combobox.module.js +17 -17
- package/dist/components/combobox/index.d.ts +2 -2
- package/dist/components/command-palette/CommandPalette.css +80 -114
- package/dist/components/command-palette/CommandPalette.d.ts +13 -3
- package/dist/components/command-palette/CommandPalette.js +54 -43
- package/dist/components/command-palette/CommandPalette.module.js +35 -37
- package/dist/components/container/Container.css +1 -1
- package/dist/components/container/Container.js +1 -1
- package/dist/components/container/Container.module.js +1 -1
- package/dist/components/date-input/DateInput.css +9 -7
- package/dist/components/date-input/DateInput.d.ts +12 -7
- package/dist/components/date-input/DateInput.js +35 -14
- package/dist/components/date-input/DateInput.module.js +6 -6
- package/dist/components/date-input/index.d.ts +2 -2
- package/dist/components/date-picker/DatePicker.css +68 -40
- package/dist/components/date-picker/DatePicker.d.ts +30 -2
- package/dist/components/date-picker/DatePicker.js +94 -9
- package/dist/components/date-picker/DatePicker.module.js +23 -23
- package/dist/components/date-picker/index.d.ts +2 -2
- package/dist/components/dialog/Dialog.css +31 -27
- package/dist/components/dialog/Dialog.d.ts +2 -2
- package/dist/components/dialog/Dialog.js +3 -3
- package/dist/components/dialog/Dialog.module.js +15 -15
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/drawer/Drawer.css +40 -40
- package/dist/components/drawer/Drawer.d.ts +2 -2
- package/dist/components/drawer/Drawer.js +3 -3
- package/dist/components/drawer/Drawer.module.js +26 -26
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/editable/Editable.css +10 -10
- package/dist/components/editable/Editable.d.ts +9 -2
- package/dist/components/editable/Editable.js +14 -5
- package/dist/components/editable/Editable.module.js +7 -7
- package/dist/components/editable/index.d.ts +2 -2
- package/dist/components/empty/Empty.css +6 -6
- package/dist/components/empty/Empty.js +1 -1
- package/dist/components/empty/Empty.module.js +6 -6
- package/dist/components/field/Field.css +8 -12
- package/dist/components/field/Field.d.ts +3 -2
- package/dist/components/field/Field.js +6 -5
- package/dist/components/field/Field.module.js +8 -9
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.css +6 -6
- package/dist/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/components/fieldset/Fieldset.js +3 -3
- package/dist/components/fieldset/Fieldset.module.js +4 -4
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/file-upload/FileUpload.css +97 -24
- package/dist/components/file-upload/FileUpload.d.ts +22 -5
- package/dist/components/file-upload/FileUpload.js +79 -21
- package/dist/components/file-upload/FileUpload.module.js +16 -13
- package/dist/components/file-upload/index.d.ts +2 -2
- package/dist/components/floating-panel/FloatingPanel.css +28 -24
- package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
- package/dist/components/floating-panel/FloatingPanel.js +15 -9
- package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
- package/dist/components/heading/Heading.css +1 -1
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.module.js +1 -1
- package/dist/components/highlight/Highlight.css +1 -1
- package/dist/components/highlight/Highlight.js +1 -1
- package/dist/components/highlight/Highlight.module.js +1 -1
- package/dist/components/hover-card/HoverCard.css +21 -17
- package/dist/components/hover-card/HoverCard.d.ts +3 -2
- package/dist/components/hover-card/HoverCard.js +5 -4
- package/dist/components/hover-card/HoverCard.module.js +7 -7
- package/dist/components/hover-card/index.d.ts +2 -2
- package/dist/components/image/Image.css +7 -0
- package/dist/components/image/Image.d.ts +12 -0
- package/dist/components/image/Image.js +28 -0
- package/dist/components/image/Image.module.js +5 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image-cropper/ImageCropper.css +6 -6
- package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
- package/dist/components/image-cropper/ImageCropper.js +25 -3
- package/dist/components/image-cropper/ImageCropper.module.js +6 -6
- package/dist/components/image-cropper/index.d.ts +2 -2
- package/dist/components/input/Input.css +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.module.js +1 -1
- package/dist/components/input-group/InputGroup.css +6 -6
- package/dist/components/input-group/InputGroup.d.ts +3 -0
- package/dist/components/input-group/InputGroup.js +1 -1
- package/dist/components/input-group/InputGroup.module.js +5 -5
- package/dist/components/kbd/Kbd.css +2 -2
- package/dist/components/kbd/Kbd.js +1 -1
- package/dist/components/kbd/Kbd.module.js +2 -2
- package/dist/components/lightbox/Lightbox.css +30 -28
- package/dist/components/lightbox/Lightbox.d.ts +4 -2
- package/dist/components/lightbox/Lightbox.js +9 -7
- package/dist/components/lightbox/Lightbox.module.js +16 -16
- package/dist/components/lightbox/index.d.ts +2 -2
- package/dist/components/list/List.css +1 -1
- package/dist/components/list/List.js +1 -1
- package/dist/components/list/List.module.js +1 -1
- package/dist/components/listbox/Listbox.css +76 -17
- package/dist/components/listbox/Listbox.d.ts +14 -2
- package/dist/components/listbox/Listbox.js +41 -5
- package/dist/components/listbox/Listbox.module.js +17 -14
- package/dist/components/listbox/index.d.ts +2 -2
- package/dist/components/marquee/Marquee.css +10 -10
- package/dist/components/marquee/Marquee.d.ts +2 -1
- package/dist/components/marquee/Marquee.js +4 -3
- package/dist/components/marquee/Marquee.module.js +7 -7
- package/dist/components/marquee/index.d.ts +2 -2
- package/dist/components/menu/Menu.css +46 -40
- package/dist/components/menu/Menu.d.ts +3 -2
- package/dist/components/menu/Menu.js +6 -5
- package/dist/components/menu/Menu.module.js +27 -27
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/native-select/NativeSelect.css +5 -5
- package/dist/components/native-select/NativeSelect.d.ts +6 -2
- package/dist/components/native-select/NativeSelect.js +5 -4
- package/dist/components/native-select/NativeSelect.module.js +3 -3
- package/dist/components/number-input/NumberInput.css +11 -17
- package/dist/components/number-input/NumberInput.d.ts +7 -2
- package/dist/components/number-input/NumberInput.js +17 -4
- package/dist/components/number-input/NumberInput.module.js +8 -8
- package/dist/components/number-input/index.d.ts +2 -2
- package/dist/components/pagination/Pagination.css +8 -8
- package/dist/components/pagination/Pagination.d.ts +4 -0
- package/dist/components/pagination/Pagination.js +13 -4
- package/dist/components/pagination/Pagination.module.js +6 -6
- package/dist/components/password-input/PasswordInput.css +7 -7
- package/dist/components/password-input/PasswordInput.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.js +10 -2
- package/dist/components/password-input/PasswordInput.module.js +6 -6
- package/dist/components/pin-input/PinInput.css +5 -5
- package/dist/components/pin-input/PinInput.d.ts +6 -1
- package/dist/components/pin-input/PinInput.js +25 -16
- package/dist/components/pin-input/PinInput.module.js +5 -5
- package/dist/components/popover/Popover.css +33 -24
- package/dist/components/popover/Popover.js +1 -1
- package/dist/components/popover/Popover.module.js +14 -14
- package/dist/components/progress-circular/ProgressCircular.css +8 -8
- package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
- package/dist/components/progress-circular/ProgressCircular.js +14 -3
- package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
- package/dist/components/progress-linear/ProgressLinear.css +8 -8
- package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
- package/dist/components/progress-linear/ProgressLinear.js +6 -3
- package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
- package/dist/components/qr-code/QrCode.css +13 -12
- package/dist/components/qr-code/QrCode.d.ts +2 -2
- package/dist/components/qr-code/QrCode.js +3 -3
- package/dist/components/qr-code/QrCode.module.js +5 -5
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/radio-group/RadioGroup.css +6 -6
- package/dist/components/radio-group/RadioGroup.d.ts +8 -4
- package/dist/components/radio-group/RadioGroup.js +22 -14
- package/dist/components/radio-group/RadioGroup.module.js +6 -6
- package/dist/components/radio-group/index.d.ts +2 -2
- package/dist/components/rating-group/RatingGroup.css +14 -14
- package/dist/components/rating-group/RatingGroup.d.ts +11 -4
- package/dist/components/rating-group/RatingGroup.js +29 -18
- package/dist/components/rating-group/RatingGroup.module.js +7 -7
- package/dist/components/rating-group/index.d.ts +2 -2
- package/dist/components/scroll-area/ScrollArea.css +14 -9
- package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
- package/dist/components/scroll-area/ScrollArea.js +9 -6
- package/dist/components/scroll-area/ScrollArea.module.js +6 -6
- package/dist/components/segment-group/SegmentGroup.css +6 -6
- package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
- package/dist/components/segment-group/SegmentGroup.js +23 -15
- package/dist/components/segment-group/SegmentGroup.module.js +6 -6
- package/dist/components/segment-group/index.d.ts +2 -2
- package/dist/components/select/Select.css +49 -40
- package/dist/components/select/Select.d.ts +18 -4
- package/dist/components/select/Select.js +65 -20
- package/dist/components/select/Select.module.js +21 -21
- package/dist/components/separator/Separator.css +1 -1
- package/dist/components/separator/Separator.js +1 -1
- package/dist/components/separator/Separator.module.js +1 -1
- package/dist/components/sidebar/Sidebar.css +169 -32
- package/dist/components/sidebar/Sidebar.d.ts +26 -0
- package/dist/components/sidebar/Sidebar.js +105 -13
- package/dist/components/sidebar/Sidebar.module.js +23 -17
- package/dist/components/signature-pad/SignaturePad.css +18 -47
- package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
- package/dist/components/signature-pad/SignaturePad.js +56 -17
- package/dist/components/signature-pad/SignaturePad.module.js +6 -6
- package/dist/components/signature-pad/index.d.ts +2 -2
- package/dist/components/simple-grid/SimpleGrid.js +3 -3
- package/dist/components/skeleton/Skeleton.css +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.module.js +1 -1
- package/dist/components/slider/Slider.css +16 -14
- package/dist/components/slider/Slider.d.ts +12 -3
- package/dist/components/slider/Slider.js +24 -15
- package/dist/components/slider/Slider.module.js +10 -10
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/spinner/Spinner.css +9 -9
- package/dist/components/spinner/Spinner.js +2 -2
- package/dist/components/spinner/Spinner.module.js +3 -3
- package/dist/components/split-button/SplitButton.css +9 -9
- package/dist/components/split-button/SplitButton.d.ts +1 -1
- package/dist/components/split-button/SplitButton.js +3 -4
- package/dist/components/split-button/SplitButton.module.js +3 -3
- package/dist/components/splitter/Splitter.css +27 -22
- package/dist/components/splitter/Splitter.d.ts +2 -2
- package/dist/components/splitter/Splitter.js +12 -11
- package/dist/components/splitter/Splitter.module.js +4 -4
- package/dist/components/splitter/index.d.ts +2 -2
- package/dist/components/stack/Stack.css +2 -2
- package/dist/components/stack/Stack.d.ts +1 -3
- package/dist/components/stack/Stack.js +4 -6
- package/dist/components/stack/Stack.module.js +1 -1
- package/dist/components/steps/Steps.css +14 -14
- package/dist/components/steps/Steps.d.ts +2 -1
- package/dist/components/steps/Steps.js +5 -4
- package/dist/components/steps/Steps.module.js +11 -11
- package/dist/components/swap/Swap.css +45 -0
- package/dist/components/swap/Swap.d.ts +11 -0
- package/dist/components/swap/Swap.js +39 -0
- package/dist/components/swap/Swap.module.js +11 -0
- package/dist/components/swap/index.d.ts +2 -0
- package/dist/components/switch/Switch.css +11 -11
- package/dist/components/switch/Switch.d.ts +4 -4
- package/dist/components/switch/Switch.js +19 -16
- package/dist/components/switch/Switch.module.js +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/Table.css +18 -18
- package/dist/components/table/Table.js +3 -2
- package/dist/components/table/Table.module.js +11 -12
- package/dist/components/tabs/Tabs.css +12 -10
- package/dist/components/tabs/Tabs.d.ts +3 -2
- package/dist/components/tabs/Tabs.js +5 -4
- package/dist/components/tabs/Tabs.module.js +5 -5
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tag/Tag.css +16 -46
- package/dist/components/tag/Tag.js +7 -20
- package/dist/components/tag/Tag.module.js +5 -5
- package/dist/components/tags-input/TagsInput.css +13 -50
- package/dist/components/tags-input/TagsInput.d.ts +7 -4
- package/dist/components/tags-input/TagsInput.js +33 -21
- package/dist/components/tags-input/TagsInput.module.js +10 -10
- package/dist/components/tags-input/index.d.ts +2 -2
- package/dist/components/text/Text.css +1 -1
- package/dist/components/text/Text.d.ts +2 -2
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.module.js +1 -1
- package/dist/components/textarea/Textarea.css +7 -7
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.module.js +1 -1
- package/dist/components/timer/Timer.css +6 -6
- package/dist/components/timer/Timer.d.ts +14 -2
- package/dist/components/timer/Timer.js +13 -5
- package/dist/components/timer/Timer.module.js +6 -6
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/toast/Toast.css +8 -8
- package/dist/components/toast/Toast.d.ts +3 -1
- package/dist/components/toast/Toast.js +11 -2
- package/dist/components/toast/Toast.module.js +6 -6
- package/dist/components/toggle/Toggle.css +5 -5
- package/dist/components/toggle/Toggle.d.ts +3 -2
- package/dist/components/toggle/Toggle.js +5 -4
- package/dist/components/toggle/Toggle.module.js +2 -2
- package/dist/components/toggle/index.d.ts +2 -2
- package/dist/components/toggle-group/ToggleGroup.css +3 -3
- package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
- package/dist/components/toggle-group/ToggleGroup.js +4 -3
- package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.css +21 -17
- package/dist/components/tooltip/Tooltip.d.ts +3 -2
- package/dist/components/tooltip/Tooltip.js +10 -3
- package/dist/components/tooltip/Tooltip.module.js +7 -7
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tour/Tour.css +42 -37
- package/dist/components/tour/Tour.d.ts +6 -0
- package/dist/components/tour/Tour.js +8 -1
- package/dist/components/tour/Tour.module.js +17 -17
- package/dist/components/tree-view/TreeView.css +22 -22
- package/dist/components/tree-view/TreeView.d.ts +2 -2
- package/dist/components/tree-view/TreeView.js +4 -4
- package/dist/components/tree-view/TreeView.module.js +20 -20
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/index.d.ts +40 -39
- package/dist/index.js +40 -39
- package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
- package/dist/lib/moduix/icons/ui/Icons.js +36 -263
- package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
- package/dist/lib/moduix/overlayPortal.js +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -58,8 +58,8 @@ bundle, so moduix does not ship duplicate React or Ark UI runtimes.
|
|
|
58
58
|
|
|
59
59
|
### shadcn copy-owned install
|
|
60
60
|
|
|
61
|
-
`shadcn` can install selected moduix components from the
|
|
62
|
-
The files become part of your codebase instead of staying in `node_modules`.
|
|
61
|
+
`shadcn` can install selected moduix components from the hosted registry directly into your
|
|
62
|
+
project. The files become part of your codebase instead of staying in `node_modules`.
|
|
63
63
|
|
|
64
64
|
Make sure your project resolves the `@/*` alias to `src/*` in both `tsconfig.json` and
|
|
65
65
|
`tsconfig.app.json`, and mirror it in your bundler config.
|
|
@@ -88,13 +88,15 @@ Create `components.json` in the project root when your app does not already have
|
|
|
88
88
|
"lib": "@/lib",
|
|
89
89
|
"hooks": "@/hooks"
|
|
90
90
|
},
|
|
91
|
-
"registries": {
|
|
91
|
+
"registries": {
|
|
92
|
+
"@moduix-react": "https://moduix.dev/r/react/{name}.json"
|
|
93
|
+
}
|
|
92
94
|
}
|
|
93
95
|
```
|
|
94
96
|
|
|
95
97
|
```bash
|
|
96
|
-
npx shadcn@latest add
|
|
97
|
-
npx shadcn@latest add
|
|
98
|
+
npx shadcn@latest add @moduix-react/button
|
|
99
|
+
npx shadcn@latest add @moduix-react/accordion
|
|
98
100
|
```
|
|
99
101
|
|
|
100
102
|
The registry install also pulls in the shared moduix foundation files those components need, such as
|
|
@@ -137,7 +139,7 @@ import '@moduix/react/style.css';
|
|
|
137
139
|
Then import and compose the components you need:
|
|
138
140
|
|
|
139
141
|
```tsx
|
|
140
|
-
import { Button, Dialog
|
|
142
|
+
import { Button, Dialog } from '@moduix/react';
|
|
141
143
|
|
|
142
144
|
export function Example() {
|
|
143
145
|
return (
|
|
@@ -145,14 +147,12 @@ export function Example() {
|
|
|
145
147
|
<Dialog.Trigger asChild>
|
|
146
148
|
<Button>Open dialog</Button>
|
|
147
149
|
</Dialog.Trigger>
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
<Dialog.
|
|
151
|
-
<Dialog.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
</Dialog.Positioner>
|
|
155
|
-
</Portal>
|
|
150
|
+
<Dialog.Backdrop />
|
|
151
|
+
<Dialog.Positioner>
|
|
152
|
+
<Dialog.Content>
|
|
153
|
+
<Dialog.Title>Project settings</Dialog.Title>
|
|
154
|
+
</Dialog.Content>
|
|
155
|
+
</Dialog.Positioner>
|
|
156
156
|
</Dialog.Root>
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -176,7 +176,7 @@ attributes for targeted styling. Theme values are regular CSS custom properties:
|
|
|
176
176
|
Library CSS is organized with cascade layers:
|
|
177
177
|
|
|
178
178
|
```css
|
|
179
|
-
@layer ui.reset, ui.tokens, ui.components;
|
|
179
|
+
@layer ui.reset, ui.tokens, ui.base, ui.components;
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
This keeps defaults predictable while still letting application styles override tokens,
|
|
@@ -190,7 +190,7 @@ QrCode, Select, Tabs, Toast, Tooltip, TreeView, and supporting layout and displa
|
|
|
190
190
|
|
|
191
191
|
## Documentation
|
|
192
192
|
|
|
193
|
-
- Documentation: https://moduix.
|
|
193
|
+
- Documentation: https://moduix.dev/
|
|
194
194
|
- npm package: https://www.npmjs.com/package/@moduix/react
|
|
195
195
|
- React package README: `packages/react/README.md`
|
|
196
196
|
- Docs app README: `apps/docs/README.md`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
@keyframes
|
|
2
|
+
@keyframes tIMeYW_accordion-item-content-open {
|
|
3
3
|
from {
|
|
4
4
|
height: 0;
|
|
5
5
|
opacity: var(--accordion-item-content-closed-opacity, .01);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@keyframes
|
|
14
|
+
@keyframes tIMeYW_accordion-item-content-closed {
|
|
15
15
|
from {
|
|
16
16
|
height: var(--height);
|
|
17
17
|
opacity: var(--accordion-item-content-open-opacity, 1);
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@keyframes
|
|
26
|
+
@keyframes tIMeYW_accordion-item-content-open-horizontal {
|
|
27
27
|
from {
|
|
28
28
|
width: 0;
|
|
29
29
|
opacity: var(--accordion-item-content-closed-opacity, .01);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
@keyframes
|
|
38
|
+
@keyframes tIMeYW_accordion-item-content-closed-horizontal {
|
|
39
39
|
from {
|
|
40
40
|
width: var(--width);
|
|
41
41
|
opacity: var(--accordion-item-content-open-opacity, 1);
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
.tIMeYW_root {
|
|
51
51
|
box-sizing: border-box;
|
|
52
|
-
width: var(--accordion-width,
|
|
52
|
+
width: var(--accordion-width, 100%);
|
|
53
53
|
max-width: var(--accordion-max-width, 100%);
|
|
54
54
|
min-width: 0;
|
|
55
55
|
color: var(--accordion-color, var(--color-foreground));
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.
|
|
67
|
+
.tIMeYW_item {
|
|
68
68
|
overflow-anchor: none;
|
|
69
69
|
|
|
70
70
|
&[data-orientation="vertical"]:not(:last-child) {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
.
|
|
85
|
+
.tIMeYW_itemTrigger {
|
|
86
86
|
box-sizing: border-box;
|
|
87
87
|
justify-content: space-between;
|
|
88
88
|
align-items: center;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.tIMeYW_itemIndicator {
|
|
136
136
|
box-sizing: border-box;
|
|
137
137
|
width: var(--accordion-icon-size, .75rem);
|
|
138
138
|
height: var(--accordion-icon-size, .75rem);
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.
|
|
155
|
+
.tIMeYW_itemContent {
|
|
156
156
|
box-sizing: border-box;
|
|
157
157
|
color: var(--accordion-item-content-color, var(--color-muted-foreground));
|
|
158
158
|
font-size: var(--accordion-item-content-font-size, var(--text-md));
|
|
@@ -164,22 +164,22 @@
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
&[data-state="open"][data-orientation="vertical"] {
|
|
167
|
-
animation:
|
|
167
|
+
animation: tIMeYW_accordion-item-content-open
|
|
168
168
|
var(--accordion-item-content-transition, var(--transition-default));
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&[data-state="closed"][data-orientation="vertical"] {
|
|
172
|
-
animation:
|
|
172
|
+
animation: tIMeYW_accordion-item-content-closed
|
|
173
173
|
var(--accordion-item-content-transition, var(--transition-default));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
&[data-state="open"][data-orientation="horizontal"] {
|
|
177
|
-
animation:
|
|
177
|
+
animation: tIMeYW_accordion-item-content-open-horizontal
|
|
178
178
|
var(--accordion-item-content-transition, var(--transition-default));
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
&[data-state="closed"][data-orientation="horizontal"] {
|
|
182
|
-
animation:
|
|
182
|
+
animation: tIMeYW_accordion-item-content-closed-horizontal
|
|
183
183
|
var(--accordion-item-content-transition, var(--transition-default));
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -187,4 +187,11 @@
|
|
|
187
187
|
width: var(--accordion-horizontal-content-width, 16rem);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
+
|
|
191
|
+
.tIMeYW_itemBody {
|
|
192
|
+
gap: var(--accordion-item-body-gap, var(--spacing-3));
|
|
193
|
+
min-width: 0;
|
|
194
|
+
padding: var(--accordion-item-body-padding, var(--spacing-3));
|
|
195
|
+
display: grid;
|
|
196
|
+
}
|
|
190
197
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion } from "@ark-ui/react/accordion";
|
|
1
|
+
import { Accordion, useAccordion } from "@ark-ui/react/accordion";
|
|
2
2
|
|
|
3
3
|
//#region src/components/accordion/Accordion.d.ts
|
|
4
4
|
declare const Accordion$1: import("react").ForwardRefExoticComponent<Omit<Accordion.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -8,6 +8,7 @@ declare const Accordion$1: import("react").ForwardRefExoticComponent<Omit<Accord
|
|
|
8
8
|
ItemTrigger: import("react").ForwardRefExoticComponent<Omit<Accordion.ItemTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<Accordion.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
ItemContent: import("react").ForwardRefExoticComponent<Omit<Accordion.ItemContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
ItemBody: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
12
|
};
|
|
12
13
|
//#endregion
|
|
13
|
-
export { Accordion$1 as Accordion };
|
|
14
|
+
export { Accordion$1 as Accordion, useAccordion };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
2
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
|
+
import { PlusIcon } from "../../lib/moduix/icons/ui/Icons.js";
|
|
3
3
|
import Accordion_module_default from "./Accordion.module.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ark } from "@ark-ui/react/factory";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Accordion, useAccordion } from "@ark-ui/react/accordion";
|
|
8
9
|
//#region src/components/accordion/Accordion.tsx
|
|
9
10
|
const AccordionRoot = forwardRef(function AccordionRoot({ className, ...props }, ref) {
|
|
10
11
|
return /* @__PURE__ */ jsx(Accordion.Root, {
|
|
@@ -55,13 +56,24 @@ const AccordionItemContent = forwardRef(function AccordionItemContent({ classNam
|
|
|
55
56
|
...props
|
|
56
57
|
});
|
|
57
58
|
});
|
|
59
|
+
const AccordionItemBody = forwardRef(function AccordionItemBody({ className, ...props }, ref) {
|
|
60
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
61
|
+
ref,
|
|
62
|
+
"data-scope": "accordion",
|
|
63
|
+
"data-part": "item-body",
|
|
64
|
+
"data-slot": "accordion-item-body",
|
|
65
|
+
className: clsx(Accordion_module_default.itemBody, normalizeClassName(className)),
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
});
|
|
58
69
|
const Accordion$1 = Object.assign(AccordionRoot, {
|
|
59
70
|
Root: AccordionRoot,
|
|
60
71
|
RootProvider: AccordionRootProvider,
|
|
61
72
|
Item: AccordionItem,
|
|
62
73
|
ItemTrigger: AccordionItemTrigger,
|
|
63
74
|
ItemIndicator: AccordionItemIndicator,
|
|
64
|
-
ItemContent: AccordionItemContent
|
|
75
|
+
ItemContent: AccordionItemContent,
|
|
76
|
+
ItemBody: AccordionItemBody
|
|
65
77
|
});
|
|
66
78
|
//#endregion
|
|
67
|
-
export { Accordion$1 as Accordion };
|
|
79
|
+
export { Accordion$1 as Accordion, useAccordion };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import './Accordion.css';
|
|
2
2
|
//#region src/components/accordion/Accordion.module.css
|
|
3
3
|
var Accordion_module_default = {
|
|
4
|
-
"accordion-item-content-closed": "
|
|
5
|
-
"accordion-item-content-closed-horizontal": "
|
|
6
|
-
"accordion-item-content-open": "
|
|
7
|
-
"accordion-item-content-open-horizontal": "
|
|
8
|
-
"item": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
4
|
+
"accordion-item-content-closed": "tIMeYW_accordion-item-content-closed",
|
|
5
|
+
"accordion-item-content-closed-horizontal": "tIMeYW_accordion-item-content-closed-horizontal",
|
|
6
|
+
"accordion-item-content-open": "tIMeYW_accordion-item-content-open",
|
|
7
|
+
"accordion-item-content-open-horizontal": "tIMeYW_accordion-item-content-open-horizontal",
|
|
8
|
+
"item": "tIMeYW_item",
|
|
9
|
+
"itemBody": "tIMeYW_itemBody",
|
|
10
|
+
"itemContent": "tIMeYW_itemContent",
|
|
11
|
+
"itemIndicator": "tIMeYW_itemIndicator",
|
|
12
|
+
"itemTrigger": "tIMeYW_itemTrigger",
|
|
13
|
+
"root": "tIMeYW_root"
|
|
13
14
|
};
|
|
14
15
|
//#endregion
|
|
15
16
|
export { Accordion_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Accordion } from "./Accordion.js";
|
|
2
|
-
export { Accordion };
|
|
1
|
+
import { Accordion, useAccordion } from "./Accordion.js";
|
|
2
|
+
export { Accordion, useAccordion };
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.ZXk2dW_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: start;
|
|
5
|
-
gap: var(--alert-gap, var(--spacing-
|
|
5
|
+
row-gap: var(--alert-content-gap, var(--spacing-1));
|
|
6
|
+
column-gap: var(--alert-gap, var(--spacing-3));
|
|
6
7
|
border: var(--alert-border-width, var(--border-width-sm)) solid
|
|
7
8
|
var(--alert-border-color, var(--alert-border-color-default, var(--color-border)));
|
|
8
9
|
border-radius: var(--alert-radius, var(--radius-lg));
|
|
9
10
|
width: 100%;
|
|
10
11
|
min-width: 0;
|
|
11
|
-
padding: var(--alert-padding, var(--spacing-
|
|
12
|
+
padding: var(--alert-padding, var(--spacing-3));
|
|
12
13
|
background-color: var(--alert-bg, var(--alert-bg-default, var(--color-card)));
|
|
13
14
|
color: var(--alert-color, var(--alert-color-default, var(--color-card-foreground)));
|
|
14
15
|
box-shadow: var(--alert-shadow, none);
|
|
15
16
|
grid-template-columns: auto minmax(0, 1fr);
|
|
16
17
|
display: grid;
|
|
17
18
|
|
|
19
|
+
& > [data-part="title"], & > [data-part="description"] {
|
|
20
|
+
grid-column: 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
&[data-status="neutral"] {
|
|
19
24
|
--alert-bg-default: var(--color-card);
|
|
20
25
|
--alert-border-color-default: var(--color-border);
|
|
@@ -50,14 +55,16 @@
|
|
|
50
55
|
--alert-indicator-color-default: var(--color-destructive);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
|
-
&:not(:has([data-part="indicator"])) {
|
|
54
|
-
|
|
55
|
-
|
|
58
|
+
&:not(:has( > [data-part="indicator"])) {
|
|
59
|
+
grid-template-columns: minmax(0, 1fr);
|
|
60
|
+
|
|
61
|
+
& > [data-part="content"], & > [data-part="title"], & > [data-part="description"] {
|
|
62
|
+
grid-column: 1;
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
}
|
|
59
66
|
|
|
60
|
-
.
|
|
67
|
+
.ZXk2dW_indicator {
|
|
61
68
|
width: var(--alert-indicator-size, 1rem);
|
|
62
69
|
height: var(--alert-indicator-size, 1rem);
|
|
63
70
|
color: var(--alert-indicator-color, var(--alert-indicator-color-default, currentColor));
|
|
@@ -74,13 +81,13 @@
|
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
|
|
77
|
-
.
|
|
84
|
+
.ZXk2dW_content {
|
|
78
85
|
gap: var(--alert-content-gap, var(--spacing-1));
|
|
79
86
|
min-width: 0;
|
|
80
87
|
display: grid;
|
|
81
88
|
}
|
|
82
89
|
|
|
83
|
-
.
|
|
90
|
+
.ZXk2dW_title {
|
|
84
91
|
min-width: 0;
|
|
85
92
|
color: var(--alert-title-color, var(--alert-color, var(--alert-color-default)));
|
|
86
93
|
font-size: var(--alert-title-font-size, var(--text-sm));
|
|
@@ -90,7 +97,7 @@
|
|
|
90
97
|
margin: 0;
|
|
91
98
|
}
|
|
92
99
|
|
|
93
|
-
.
|
|
100
|
+
.ZXk2dW_description {
|
|
94
101
|
min-width: 0;
|
|
95
102
|
color: var(--alert-description-color, var(--color-muted-foreground));
|
|
96
103
|
font-size: var(--alert-description-font-size, var(--text-sm));
|
|
@@ -105,4 +112,11 @@
|
|
|
105
112
|
margin-bottom: 0;
|
|
106
113
|
}
|
|
107
114
|
}
|
|
115
|
+
|
|
116
|
+
.ZXk2dW_actions {
|
|
117
|
+
gap: var(--alert-actions-gap, var(--spacing-2));
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
margin-block-start: var(--alert-actions-margin-top, var(--spacing-2));
|
|
120
|
+
display: flex;
|
|
121
|
+
}
|
|
108
122
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
//#region src/components/alert/Alert.d.ts
|
|
2
|
+
type AlertStatus = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
2
3
|
declare const Alert: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
3
|
-
status?:
|
|
4
|
+
status?: AlertStatus;
|
|
4
5
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
6
|
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & {
|
|
6
|
-
status?:
|
|
7
|
+
status?: AlertStatus;
|
|
7
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
Indicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
9
10
|
Content: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
-
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
11
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
11
12
|
Description: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Actions: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
14
|
};
|
|
13
15
|
//#endregion
|
|
14
16
|
export { Alert };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
|
|
2
2
|
import Alert_module_default from "./Alert.module.js";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { ark } from "@ark-ui/react/factory";
|
|
5
4
|
import { clsx } from "clsx";
|
|
6
5
|
import { forwardRef } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/alert/Alert.tsx
|
|
8
|
-
const AlertRoot = forwardRef(function AlertRoot({ className, role, status = "neutral", ...props }, ref) {
|
|
8
|
+
const AlertRoot = forwardRef(function AlertRoot({ children, className, role, status = "neutral", ...props }, ref) {
|
|
9
9
|
return /* @__PURE__ */ jsx(ark.div, {
|
|
10
10
|
ref,
|
|
11
11
|
role: role ?? (status === "error" ? "alert" : "status"),
|
|
@@ -14,7 +14,8 @@ const AlertRoot = forwardRef(function AlertRoot({ className, role, status = "neu
|
|
|
14
14
|
"data-slot": "alert-root",
|
|
15
15
|
"data-status": status,
|
|
16
16
|
className: clsx(Alert_module_default.root, normalizeClassName(className)),
|
|
17
|
-
...props
|
|
17
|
+
...props,
|
|
18
|
+
children
|
|
18
19
|
});
|
|
19
20
|
});
|
|
20
21
|
const AlertIndicator = forwardRef(function AlertIndicator({ className, ...props }, ref) {
|
|
@@ -39,7 +40,7 @@ const AlertContent = forwardRef(function AlertContent({ className, ...props }, r
|
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
42
|
const AlertTitle = forwardRef(function AlertTitle({ className, ...props }, ref) {
|
|
42
|
-
return /* @__PURE__ */ jsx(ark.
|
|
43
|
+
return /* @__PURE__ */ jsx(ark.p, {
|
|
43
44
|
ref,
|
|
44
45
|
"data-scope": "alert",
|
|
45
46
|
"data-part": "title",
|
|
@@ -58,12 +59,23 @@ const AlertDescription = forwardRef(function AlertDescription({ className, ...pr
|
|
|
58
59
|
...props
|
|
59
60
|
});
|
|
60
61
|
});
|
|
62
|
+
const AlertActions = forwardRef(function AlertActions({ className, ...props }, ref) {
|
|
63
|
+
return /* @__PURE__ */ jsx(ark.div, {
|
|
64
|
+
ref,
|
|
65
|
+
"data-scope": "alert",
|
|
66
|
+
"data-part": "actions",
|
|
67
|
+
"data-slot": "alert-actions",
|
|
68
|
+
className: clsx(Alert_module_default.actions, normalizeClassName(className)),
|
|
69
|
+
...props
|
|
70
|
+
});
|
|
71
|
+
});
|
|
61
72
|
const Alert = Object.assign(AlertRoot, {
|
|
62
73
|
Root: AlertRoot,
|
|
63
74
|
Indicator: AlertIndicator,
|
|
64
75
|
Content: AlertContent,
|
|
65
76
|
Title: AlertTitle,
|
|
66
|
-
Description: AlertDescription
|
|
77
|
+
Description: AlertDescription,
|
|
78
|
+
Actions: AlertActions
|
|
67
79
|
});
|
|
68
80
|
//#endregion
|
|
69
81
|
export { Alert };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import './Alert.css';
|
|
2
2
|
//#region src/components/alert/Alert.module.css
|
|
3
3
|
var Alert_module_default = {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
4
|
+
"actions": "ZXk2dW_actions",
|
|
5
|
+
"content": "ZXk2dW_content",
|
|
6
|
+
"description": "ZXk2dW_description",
|
|
7
|
+
"indicator": "ZXk2dW_indicator",
|
|
8
|
+
"root": "ZXk2dW_root",
|
|
9
|
+
"title": "ZXk2dW_title"
|
|
9
10
|
};
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Alert_module_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui.components {
|
|
2
|
-
.
|
|
2
|
+
.vn7zXa_root {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
5
5
|
gap: var(--angle-slider-gap, .75rem);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.vn7zXa_label {
|
|
17
17
|
color: var(--angle-slider-label-color, var(--angle-slider-color, var(--color-foreground)));
|
|
18
18
|
font-size: var(--angle-slider-label-font-size, var(--text-sm));
|
|
19
19
|
font-weight: var(--angle-slider-label-font-weight, var(--weight-medium));
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
text-align: center;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.vn7zXa_control {
|
|
25
25
|
--_angle-slider-control-border-color: var(--angle-slider-control-border-color, var(--color-border));
|
|
26
26
|
--_angle-slider-track-border-color: var(--angle-slider-track-border-color, var(--color-border));
|
|
27
27
|
box-sizing: border-box;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
position: absolute;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&:has(.
|
|
65
|
+
&:has(.vn7zXa_thumb:focus-visible) {
|
|
66
66
|
box-shadow: inset 0 0 0 var(--angle-slider-track-border-width, var(--border-width-sm))
|
|
67
67
|
var(--_angle-slider-track-border-color),
|
|
68
68
|
0 0 0 var(--angle-slider-focus-ring-width, .1875rem)
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.
|
|
83
|
+
.vn7zXa_thumb {
|
|
84
84
|
top: 0;
|
|
85
85
|
bottom: 0;
|
|
86
86
|
left: calc(50% - var(--angle-slider-thumb-line-width, .1875rem) / 2);
|
|
@@ -150,14 +150,14 @@
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.
|
|
153
|
+
.vn7zXa_markerGroup {
|
|
154
154
|
z-index: 1;
|
|
155
155
|
pointer-events: none;
|
|
156
156
|
position: absolute;
|
|
157
157
|
inset: 0;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
.vn7zXa_marker {
|
|
161
161
|
position: absolute;
|
|
162
162
|
inset: 0;
|
|
163
163
|
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.
|
|
185
|
+
.vn7zXa_valueText {
|
|
186
186
|
color: var(--angle-slider-value-text-color, var(--angle-slider-color, var(--color-foreground)));
|
|
187
187
|
font-size: var(--angle-slider-value-text-font-size, var(--text-sm));
|
|
188
188
|
font-weight: var(--angle-slider-value-text-font-weight, var(--weight-medium));
|
|
@@ -1,16 +1,32 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
1
2
|
import { AngleSlider } from "@ark-ui/react/angle-slider";
|
|
2
3
|
|
|
3
4
|
//#region src/components/angle-slider/AngleSlider.d.ts
|
|
5
|
+
declare function AngleSliderMarks({
|
|
6
|
+
values,
|
|
7
|
+
...props
|
|
8
|
+
}: ComponentProps<typeof AngleSlider.MarkerGroup> & {
|
|
9
|
+
values: readonly number[];
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
declare function AngleSliderDial({
|
|
12
|
+
children,
|
|
13
|
+
thumbClassName,
|
|
14
|
+
...props
|
|
15
|
+
}: ComponentProps<typeof AngleSlider.Control> & {
|
|
16
|
+
thumbClassName?: string;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
4
18
|
declare const AngleSlider$1: import("react").ForwardRefExoticComponent<Omit<AngleSlider.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
19
|
Root: import("react").ForwardRefExoticComponent<Omit<AngleSlider.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
20
|
RootProvider: import("react").ForwardRefExoticComponent<Omit<AngleSlider.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
21
|
Label: import("react").ForwardRefExoticComponent<Omit<AngleSlider.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
8
22
|
Control: import("react").ForwardRefExoticComponent<Omit<AngleSlider.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Dial: typeof AngleSliderDial;
|
|
9
24
|
Thumb: import("react").ForwardRefExoticComponent<Omit<AngleSlider.ThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
25
|
MarkerGroup: import("react").ForwardRefExoticComponent<Omit<AngleSlider.MarkerGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
26
|
Marker: import("react").ForwardRefExoticComponent<Omit<AngleSlider.MarkerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Marks: typeof AngleSliderMarks;
|
|
12
28
|
ValueText: import("react").ForwardRefExoticComponent<Omit<AngleSlider.ValueTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
-
HiddenInput: import("react").ForwardRefExoticComponent<Omit<AngleSlider.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
29
|
};
|
|
30
|
+
declare const useAngleSlider$1: (props?: import("@ark-ui/react/angle-slider").UseAngleSliderProps) => import("@ark-ui/react/angle-slider").UseAngleSliderReturn;
|
|
15
31
|
//#endregion
|
|
16
|
-
export { AngleSlider$1 as AngleSlider };
|
|
32
|
+
export { AngleSlider$1 as AngleSlider, useAngleSlider$1 as useAngleSlider };
|