@moduix/react-tailwind 1.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/LICENSE.md +9 -0
- package/README.md +130 -0
- package/THIRD_PARTY_NOTICES.md +49 -0
- package/dist/components/accordion/Accordion.d.ts +13 -0
- package/dist/components/accordion/Accordion.js +78 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/Alert.d.ts +14 -0
- package/dist/components/alert/Alert.js +93 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/angle-slider/AngleSlider.d.ts +26 -0
- package/dist/components/angle-slider/AngleSlider.js +107 -0
- package/dist/components/angle-slider/index.d.ts +1 -0
- package/dist/components/angle-slider/index.js +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +8 -0
- package/dist/components/aspect-ratio/AspectRatio.js +23 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/avatar/Avatar.d.ts +17 -0
- package/dist/components/avatar/Avatar.js +66 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/Badge.d.ts +11 -0
- package/dist/components/badge/Badge.js +60 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/bleed/Bleed.d.ts +12 -0
- package/dist/components/bleed/Bleed.js +49 -0
- package/dist/components/bleed/index.d.ts +1 -0
- package/dist/components/bleed/index.js +1 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +21 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +105 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -0
- package/dist/components/breadcrumbs/index.js +1 -0
- package/dist/components/button/Button.d.ts +18 -0
- package/dist/components/button/Button.js +84 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/card/Card.d.ts +19 -0
- package/dist/components/card/Card.js +135 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/Carousel.d.ts +20 -0
- package/dist/components/carousel/Carousel.js +145 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/chart/Chart.d.ts +18 -0
- package/dist/components/chart/Chart.js +183 -0
- package/dist/components/chart/index.d.ts +1 -0
- package/dist/components/chart/index.js +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +20 -0
- package/dist/components/checkbox/Checkbox.js +83 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/clipboard/Clipboard.d.ts +15 -0
- package/dist/components/clipboard/Clipboard.js +105 -0
- package/dist/components/clipboard/index.d.ts +1 -0
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/close-button/CloseButton.d.ts +14 -0
- package/dist/components/close-button/CloseButton.js +50 -0
- package/dist/components/close-button/index.d.ts +1 -0
- package/dist/components/close-button/index.js +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +11 -0
- package/dist/components/collapsible/Collapsible.js +67 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-picker/ColorPicker.d.ts +38 -0
- package/dist/components/color-picker/ColorPicker.js +354 -0
- package/dist/components/color-picker/index.d.ts +1 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/combobox/Combobox.d.ts +30 -0
- package/dist/components/combobox/Combobox.js +208 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command-palette/CommandPalette.d.ts +45 -0
- package/dist/components/command-palette/CommandPalette.js +376 -0
- package/dist/components/command-palette/index.d.ts +1 -0
- package/dist/components/command-palette/index.js +1 -0
- package/dist/components/container/Container.d.ts +12 -0
- package/dist/components/container/Container.js +123 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/date-input/DateInput.d.ts +17 -0
- package/dist/components/date-input/DateInput.js +87 -0
- package/dist/components/date-input/index.d.ts +1 -0
- package/dist/components/date-input/index.js +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +66 -0
- package/dist/components/date-picker/DatePicker.js +430 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/dialog/Dialog.d.ts +25 -0
- package/dist/components/dialog/Dialog.js +147 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/drawer/Drawer.d.ts +40 -0
- package/dist/components/drawer/Drawer.js +202 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/editable/Editable.d.ts +16 -0
- package/dist/components/editable/Editable.js +120 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +1 -0
- package/dist/components/empty/Empty.d.ts +9 -0
- package/dist/components/empty/Empty.js +73 -0
- package/dist/components/empty/index.d.ts +1 -0
- package/dist/components/empty/index.js +1 -0
- package/dist/components/field/Field.d.ts +17 -0
- package/dist/components/field/Field.js +103 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/fieldset/Fieldset.d.ts +10 -0
- package/dist/components/fieldset/Fieldset.js +54 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +31 -0
- package/dist/components/file-upload/FileUpload.js +199 -0
- package/dist/components/file-upload/index.d.ts +1 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/floating-panel/FloatingPanel.d.ts +34 -0
- package/dist/components/floating-panel/FloatingPanel.js +209 -0
- package/dist/components/floating-panel/index.d.ts +1 -0
- package/dist/components/floating-panel/index.js +1 -0
- package/dist/components/heading/Heading.d.ts +15 -0
- package/dist/components/heading/Heading.js +60 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +1 -0
- package/dist/components/highlight/Highlight.d.ts +7 -0
- package/dist/components/highlight/Highlight.js +16 -0
- package/dist/components/highlight/index.d.ts +1 -0
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +19 -0
- package/dist/components/hover-card/HoverCard.js +93 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/image/Image.d.ts +13 -0
- package/dist/components/image/Image.js +25 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/image-cropper/ImageCropper.d.ts +17 -0
- package/dist/components/image-cropper/ImageCropper.js +95 -0
- package/dist/components/image-cropper/index.d.ts +1 -0
- package/dist/components/image-cropper/index.js +1 -0
- package/dist/components/input/Input.d.ts +12 -0
- package/dist/components/input/Input.js +38 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input-group/InputGroup.d.ts +25 -0
- package/dist/components/input-group/InputGroup.js +131 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/json-tree-view/JsonTreeView.d.ts +8 -0
- package/dist/components/json-tree-view/JsonTreeView.js +39 -0
- package/dist/components/json-tree-view/index.d.ts +1 -0
- package/dist/components/json-tree-view/index.js +1 -0
- package/dist/components/kbd/Kbd.d.ts +5 -0
- package/dist/components/kbd/Kbd.js +30 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/lightbox/Lightbox.d.ts +46 -0
- package/dist/components/lightbox/Lightbox.js +232 -0
- package/dist/components/lightbox/index.d.ts +2 -0
- package/dist/components/lightbox/index.js +1 -0
- package/dist/components/list/List.d.ts +21 -0
- package/dist/components/list/List.js +106 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/listbox/Listbox.d.ts +28 -0
- package/dist/components/listbox/Listbox.js +179 -0
- package/dist/components/listbox/index.d.ts +1 -0
- package/dist/components/listbox/index.js +1 -0
- package/dist/components/marquee/Marquee.d.ts +12 -0
- package/dist/components/marquee/Marquee.js +93 -0
- package/dist/components/marquee/index.d.ts +1 -0
- package/dist/components/marquee/index.js +1 -0
- package/dist/components/menu/Menu.d.ts +51 -0
- package/dist/components/menu/Menu.js +300 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/native-select/NativeSelect.d.ts +9 -0
- package/dist/components/native-select/NativeSelect.js +38 -0
- package/dist/components/native-select/index.d.ts +1 -0
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +18 -0
- package/dist/components/navigation-menu/NavigationMenu.js +119 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/number-input/NumberInput.d.ts +18 -0
- package/dist/components/number-input/NumberInput.js +105 -0
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/pagination/Pagination.d.ts +17 -0
- package/dist/components/pagination/Pagination.js +115 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/password-input/PasswordInput.d.ts +16 -0
- package/dist/components/password-input/PasswordInput.js +87 -0
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/password-input/index.js +1 -0
- package/dist/components/pin-input/PinInput.d.ts +19 -0
- package/dist/components/pin-input/PinInput.js +83 -0
- package/dist/components/pin-input/index.d.ts +1 -0
- package/dist/components/pin-input/index.js +1 -0
- package/dist/components/popover/Popover.d.ts +29 -0
- package/dist/components/popover/Popover.js +177 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +18 -0
- package/dist/components/progress-circular/ProgressCircular.js +94 -0
- package/dist/components/progress-circular/index.d.ts +1 -0
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +14 -0
- package/dist/components/progress-linear/ProgressLinear.js +73 -0
- package/dist/components/progress-linear/index.d.ts +1 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/qr-code/QrCode.d.ts +11 -0
- package/dist/components/qr-code/QrCode.js +63 -0
- package/dist/components/qr-code/index.d.ts +1 -0
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +25 -0
- package/dist/components/radio-group/RadioGroup.js +108 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/rating-group/RatingGroup.d.ts +27 -0
- package/dist/components/rating-group/RatingGroup.js +92 -0
- package/dist/components/rating-group/index.d.ts +2 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +23 -0
- package/dist/components/scroll-area/ScrollArea.js +77 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/segment-group/SegmentGroup.d.ts +25 -0
- package/dist/components/segment-group/SegmentGroup.js +119 -0
- package/dist/components/segment-group/index.d.ts +1 -0
- package/dist/components/segment-group/index.js +1 -0
- package/dist/components/select/Select.d.ts +39 -0
- package/dist/components/select/Select.js +239 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/separator/Separator.d.ts +12 -0
- package/dist/components/separator/Separator.js +96 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +61 -0
- package/dist/components/sidebar/Sidebar.js +400 -0
- package/dist/components/sidebar/index.d.ts +1 -0
- package/dist/components/sidebar/index.js +1 -0
- package/dist/components/signature-pad/SignaturePad.d.ts +15 -0
- package/dist/components/signature-pad/SignaturePad.js +133 -0
- package/dist/components/signature-pad/index.d.ts +1 -0
- package/dist/components/signature-pad/index.js +1 -0
- package/dist/components/simple-grid/SimpleGrid.d.ts +16 -0
- package/dist/components/simple-grid/SimpleGrid.js +43 -0
- package/dist/components/simple-grid/index.d.ts +1 -0
- package/dist/components/simple-grid/index.js +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +18 -0
- package/dist/components/skeleton/Skeleton.js +30 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/slider/Slider.d.ts +23 -0
- package/dist/components/slider/Slider.js +122 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/spinner/Spinner.d.ts +11 -0
- package/dist/components/spinner/Spinner.js +57 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/split-button/SplitButton.d.ts +36 -0
- package/dist/components/split-button/SplitButton.js +125 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/split-button/index.js +1 -0
- package/dist/components/splitter/Splitter.d.ts +11 -0
- package/dist/components/splitter/Splitter.js +66 -0
- package/dist/components/splitter/index.d.ts +1 -0
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/stack/Stack.d.ts +26 -0
- package/dist/components/stack/Stack.js +57 -0
- package/dist/components/stack/index.d.ts +1 -0
- package/dist/components/stack/index.js +1 -0
- package/dist/components/steps/Steps.d.ts +25 -0
- package/dist/components/steps/Steps.js +122 -0
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/components/steps/index.js +1 -0
- package/dist/components/swap/Swap.d.ts +16 -0
- package/dist/components/swap/Swap.js +38 -0
- package/dist/components/swap/index.d.ts +1 -0
- package/dist/components/swap/index.js +1 -0
- package/dist/components/switch/Switch.d.ts +20 -0
- package/dist/components/switch/Switch.js +58 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/Table.d.ts +39 -0
- package/dist/components/table/Table.js +191 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +19 -0
- package/dist/components/tabs/Tabs.js +71 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tag/Tag.d.ts +16 -0
- package/dist/components/tag/Tag.js +92 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tags-input/TagsInput.d.ts +20 -0
- package/dist/components/tags-input/TagsInput.js +145 -0
- package/dist/components/tags-input/index.d.ts +1 -0
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/text/Text.d.ts +25 -0
- package/dist/components/text/Text.js +79 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +1 -0
- package/dist/components/textarea/Textarea.d.ts +3 -0
- package/dist/components/textarea/Textarea.js +17 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/timer/Timer.d.ts +18 -0
- package/dist/components/timer/Timer.js +94 -0
- package/dist/components/timer/index.d.ts +1 -0
- package/dist/components/timer/index.js +1 -0
- package/dist/components/toast/Toast.d.ts +17 -0
- package/dist/components/toast/Toast.js +107 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toc/Toc.d.ts +23 -0
- package/dist/components/toc/Toc.js +144 -0
- package/dist/components/toc/index.d.ts +1 -0
- package/dist/components/toc/index.js +1 -0
- package/dist/components/toggle/Toggle.d.ts +15 -0
- package/dist/components/toggle/Toggle.js +55 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +24 -0
- package/dist/components/toggle-group/ToggleGroup.js +102 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +20 -0
- package/dist/components/tooltip/Tooltip.js +105 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tour/Tour.d.ts +29 -0
- package/dist/components/tour/Tour.js +176 -0
- package/dist/components/tour/index.d.ts +1 -0
- package/dist/components/tour/index.js +1 -0
- package/dist/components/tree-view/TreeView.d.ts +38 -0
- package/dist/components/tree-view/TreeView.js +189 -0
- package/dist/components/tree-view/index.d.ts +1 -0
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/typeset/Typeset.d.ts +5 -0
- package/dist/components/typeset/Typeset.js +34 -0
- package/dist/components/typeset/Typeset.module.js +6 -0
- package/dist/components/typeset/Typeset_module.css +466 -0
- package/dist/components/typeset/index.d.ts +1 -0
- package/dist/components/typeset/index.js +1 -0
- package/dist/internal/cn.d.ts +2 -0
- package/dist/internal/cn.js +40 -0
- package/dist/internal/icons/ui/Icons.d.ts +24 -0
- package/dist/internal/icons/ui/Icons.js +229 -0
- package/dist/internal/icons/ui/index.d.ts +1 -0
- package/dist/internal/icons/ui/index.js +1 -0
- package/dist/internal/overlayPortal.d.ts +13 -0
- package/dist/internal/overlayPortal.js +20 -0
- package/dist/locale.d.ts +1 -0
- package/dist/locale.js +1 -0
- package/dist/presets/contrast.css +65 -0
- package/dist/presets/dense.css +78 -0
- package/dist/presets/soft.css +77 -0
- package/dist/styles/animations.css +371 -0
- package/dist/styles/borders.css +10 -0
- package/dist/styles/colors.css +122 -0
- package/dist/styles/opacity.css +5 -0
- package/dist/styles/radius.css +11 -0
- package/dist/styles/shadows.css +5 -0
- package/dist/styles/sizing.css +11 -0
- package/dist/styles/spacing.css +26 -0
- package/dist/styles/style.css +180 -0
- package/dist/styles/transforms.css +4 -0
- package/dist/styles/transitions.css +32 -0
- package/dist/styles/typography.css +37 -0
- package/dist/styles/z-index.css +13 -0
- package/package.json +459 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext } from '@ark-ui/react/radio-group';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type RadioGroupItemControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
type RadioGroupItemControlProps = ComponentProps<typeof RadioGroupPrimitive.ItemControl> & {
|
|
5
|
+
size?: RadioGroupItemControlSize;
|
|
6
|
+
};
|
|
7
|
+
type RadioGroupOptionProps = Omit<ComponentProps<typeof RadioGroupPrimitive.Item>, 'asChild' | 'children'> & {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
size?: RadioGroupItemControlSize;
|
|
10
|
+
};
|
|
11
|
+
declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Root: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Context: (props: import("@ark-ui/react/radio-group").RadioGroupContextProps) => ReactNode;
|
|
15
|
+
ItemContext: (props: import("@ark-ui/react/radio-group").RadioGroupItemContextProps) => ReactNode;
|
|
16
|
+
Label: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
Item: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.ItemProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
18
|
+
ItemHiddenInput: import("react").ForwardRefExoticComponent<RadioGroupPrimitive.ItemHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
+
Option: import("react").ForwardRefExoticComponent<Omit<RadioGroupOptionProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
ItemControl: import("react").ForwardRefExoticComponent<Omit<RadioGroupItemControlProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
};
|
|
24
|
+
export { RadioGroup, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext };
|
|
25
|
+
export type { RadioGroupItemControlProps, RadioGroupItemControlSize, RadioGroupOptionProps };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { RadioGroup, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext } from "@ark-ui/react/radio-group";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { cn } from "../../internal/cn.js";
|
|
7
|
+
const radioGroupItemControlVariants = cva("relative inline-flex shrink-0 items-center justify-center rounded-full border border-border bg-background text-primary-foreground outline-0 transition-[background-color,border-color,border-width,color,opacity] duration-200 ease-in-out select-none before:block before:rounded-full before:bg-current before:content-[''] before:scale-[0.6] before:opacity-0 before:transition-[opacity,transform] before:duration-200 before:ease-in-out data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:before:scale-100 data-[state=checked]:before:opacity-100 data-invalid:border-destructive data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:data-focus-visible:outline-destructive data-readonly:cursor-default data-disabled:cursor-default [@media(hover:hover)]:[&[data-state=unchecked]:not([data-readonly]):not([data-disabled]):hover]:bg-accent motion-reduce:transition-none motion-reduce:before:transition-none", {
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
xs: 'size-3.5 before:size-1',
|
|
11
|
+
sm: 'size-4 before:size-1.5',
|
|
12
|
+
md: 'size-5 before:size-2',
|
|
13
|
+
lg: 'size-control-xs before:size-2.5',
|
|
14
|
+
xl: 'size-7 before:size-3'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
size: 'md'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
const RadioGroup_RadioGroupRoot = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
22
|
+
return /*#__PURE__*/ jsx(RadioGroup.Root, {
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-slot": "radio-group-root",
|
|
25
|
+
className: cn('relative flex flex-col gap-2 text-foreground data-disabled:cursor-default', className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
const RadioGroup_RadioGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
30
|
+
return /*#__PURE__*/ jsx(RadioGroup.RootProvider, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-slot": "radio-group-root-provider",
|
|
33
|
+
className: cn('relative flex flex-col gap-2 text-foreground data-disabled:cursor-default', className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
const RadioGroup_RadioGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
38
|
+
return /*#__PURE__*/ jsx(RadioGroup.Label, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
"data-slot": "radio-group-label",
|
|
41
|
+
className: cn('text-sm leading-5 font-semibold text-inherit', className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
const RadioGroup_RadioGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
46
|
+
return /*#__PURE__*/ jsx(RadioGroup.Item, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
"data-slot": "radio-group-item",
|
|
49
|
+
className: cn('inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const RadioGroup_RadioGroupOption = /*#__PURE__*/ forwardRef(function({ children, size, ...props }, ref) {
|
|
54
|
+
return /*#__PURE__*/ jsxs(RadioGroup_RadioGroupItem, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
...props,
|
|
57
|
+
children: [
|
|
58
|
+
/*#__PURE__*/ jsx(RadioGroup.ItemHiddenInput, {}),
|
|
59
|
+
/*#__PURE__*/ jsx(RadioGroup_RadioGroupItemControl, {
|
|
60
|
+
size: size
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ jsx(RadioGroup_RadioGroupItemText, {
|
|
63
|
+
children: children
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
const RadioGroup_RadioGroupItemControl = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
69
|
+
return /*#__PURE__*/ jsx(RadioGroup.ItemControl, {
|
|
70
|
+
ref: ref,
|
|
71
|
+
"data-slot": "radio-group-item-control",
|
|
72
|
+
"data-size": size,
|
|
73
|
+
className: cn(radioGroupItemControlVariants({
|
|
74
|
+
size
|
|
75
|
+
}), className),
|
|
76
|
+
...props
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
const RadioGroup_RadioGroupItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
80
|
+
return /*#__PURE__*/ jsx(RadioGroup.ItemText, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
"data-slot": "radio-group-item-text",
|
|
83
|
+
className: cn('text-sm leading-5 font-medium text-inherit', className),
|
|
84
|
+
...props
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
const RadioGroup_RadioGroupIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
88
|
+
return /*#__PURE__*/ jsx(RadioGroup.Indicator, {
|
|
89
|
+
ref: ref,
|
|
90
|
+
"data-slot": "radio-group-indicator",
|
|
91
|
+
className: cn('pointer-events-none absolute top-[var(--top)] left-[var(--left)] h-[var(--height)] w-[var(--width)] rounded-full bg-primary opacity-[0.12] transition-[var(--transition-property,translate)] duration-200 ease-in-out motion-reduce:transition-none', className),
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
const RadioGroup_RadioGroup = Object.assign(RadioGroup_RadioGroupRoot, {
|
|
96
|
+
Root: RadioGroup_RadioGroupRoot,
|
|
97
|
+
RootProvider: RadioGroup_RadioGroupRootProvider,
|
|
98
|
+
Context: RadioGroup.Context,
|
|
99
|
+
ItemContext: RadioGroup.ItemContext,
|
|
100
|
+
Label: RadioGroup_RadioGroupLabel,
|
|
101
|
+
Item: RadioGroup_RadioGroupItem,
|
|
102
|
+
ItemHiddenInput: RadioGroup.ItemHiddenInput,
|
|
103
|
+
Option: RadioGroup_RadioGroupOption,
|
|
104
|
+
ItemControl: RadioGroup_RadioGroupItemControl,
|
|
105
|
+
ItemText: RadioGroup_RadioGroupItemText,
|
|
106
|
+
Indicator: RadioGroup_RadioGroupIndicator
|
|
107
|
+
});
|
|
108
|
+
export { RadioGroup_RadioGroup as RadioGroup, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroup, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext } from "./RadioGroup.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RatingGroup as RatingGroupPrimitive, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext } from '@ark-ui/react/rating-group';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type RatingGroupSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
type RatingGroupRootProps = ComponentProps<typeof RatingGroupPrimitive.Root> & {
|
|
5
|
+
size?: RatingGroupSize;
|
|
6
|
+
};
|
|
7
|
+
type RatingGroupRootProviderProps = ComponentProps<typeof RatingGroupPrimitive.RootProvider> & {
|
|
8
|
+
size?: RatingGroupSize;
|
|
9
|
+
};
|
|
10
|
+
type RatingGroupItemIndicatorProps = ComponentProps<'span'>;
|
|
11
|
+
declare function RatingGroupItems({ children }: {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
declare const RatingGroup: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
15
|
+
Root: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<RatingGroupRootProviderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Context: (props: RatingGroupPrimitive.ContextProps) => ReactNode;
|
|
18
|
+
HiddenInput: import("react").ForwardRefExoticComponent<RatingGroupPrimitive.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
|
+
Label: import("react").ForwardRefExoticComponent<Omit<RatingGroupPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
Control: import("react").ForwardRefExoticComponent<Omit<RatingGroupPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Item: import("react").ForwardRefExoticComponent<Omit<RatingGroupPrimitive.ItemProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
ItemContext: (props: RatingGroupPrimitive.ItemContextProps) => ReactNode;
|
|
23
|
+
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
Items: typeof RatingGroupItems;
|
|
25
|
+
};
|
|
26
|
+
export { RatingGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|
|
27
|
+
export type { RatingGroupItemIndicatorProps, RatingGroupRootProps, RatingGroupRootProviderProps, RatingGroupSize, };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { RatingGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext } from "@ark-ui/react/rating-group";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
import { RatingStarIcon } from "../../internal/icons/ui/index.js";
|
|
7
|
+
const RatingGroup_RatingGroupRoot = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
8
|
+
return /*#__PURE__*/ jsx(RatingGroup.Root, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
"data-slot": "rating-group-root",
|
|
11
|
+
"data-size": size,
|
|
12
|
+
className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const RatingGroup_RatingGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, size = 'md', ...props }, ref) {
|
|
17
|
+
return /*#__PURE__*/ jsx(RatingGroup.RootProvider, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
"data-slot": "rating-group-root-provider",
|
|
20
|
+
"data-size": size,
|
|
21
|
+
className: cn('group/rating-group inline-flex flex-col gap-1 text-muted-foreground', className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const RatingGroup_RatingGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
26
|
+
return /*#__PURE__*/ jsx(RatingGroup.Label, {
|
|
27
|
+
ref: ref,
|
|
28
|
+
"data-slot": "rating-group-label",
|
|
29
|
+
className: cn('text-sm leading-5 font-semibold text-foreground select-none data-disabled:opacity-50', className),
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
const RatingGroup_RatingGroupControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
34
|
+
return /*#__PURE__*/ jsx(RatingGroup.Control, {
|
|
35
|
+
ref: ref,
|
|
36
|
+
"data-slot": "rating-group-control",
|
|
37
|
+
className: cn('inline-flex items-center gap-1 data-disabled:opacity-50', className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const RatingGroup_RatingGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
42
|
+
return /*#__PURE__*/ jsx(RatingGroup.Item, {
|
|
43
|
+
ref: ref,
|
|
44
|
+
"data-slot": "rating-group-item",
|
|
45
|
+
className: cn('inline-flex cursor-pointer items-center justify-center rounded-sm leading-none text-inherit outline-1 -outline-offset-1 outline-transparent transition-[color,opacity] duration-200 ease-in-out data-disabled:pointer-events-none data-disabled:cursor-default data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-readonly:cursor-default', className),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const RatingGroup_RatingGroupItemIndicator = /*#__PURE__*/ forwardRef(function({ className, children, ...props }, ref) {
|
|
50
|
+
const { half, highlighted } = useRatingGroupItemContext();
|
|
51
|
+
return /*#__PURE__*/ jsx("span", {
|
|
52
|
+
ref: ref,
|
|
53
|
+
"data-slot": "rating-group-item-indicator",
|
|
54
|
+
"data-half": half ? '' : void 0,
|
|
55
|
+
"data-highlighted": highlighted ? '' : void 0,
|
|
56
|
+
className: cn('relative inline-flex size-5 items-center justify-center text-primary group-data-[size=lg]/rating-group:size-6 group-data-[size=sm]/rating-group:size-4 group-data-[size=xl]/rating-group:size-7 group-data-[size=xs]/rating-group:size-3.5 [&>svg]:size-full [&>svg]:flex-none [&>svg]:transition-[color,fill,stroke,clip-path] [&>svg]:duration-200 [&>svg]:ease-in-out', className),
|
|
57
|
+
...props,
|
|
58
|
+
children: children ?? /*#__PURE__*/ jsxs(Fragment, {
|
|
59
|
+
children: [
|
|
60
|
+
/*#__PURE__*/ jsx(RatingStarIcon, {
|
|
61
|
+
"data-slot": "rating-group-item-indicator-bg",
|
|
62
|
+
className: "absolute inset-0 size-full flex-none fill-transparent stroke-current text-muted-foreground"
|
|
63
|
+
}),
|
|
64
|
+
/*#__PURE__*/ jsx(RatingStarIcon, {
|
|
65
|
+
"data-slot": "rating-group-item-indicator-fg",
|
|
66
|
+
className: cn('absolute inset-0 size-full flex-none fill-current stroke-current text-primary [clip-path:inset(0_0_0_0)]', half && '[clip-path:inset(0_50%_0_0)] rtl:[clip-path:inset(0_0_0_50%)]', !highlighted && '[clip-path:inset(0_100%_0_0)]')
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
function RatingGroupItems({ children }) {
|
|
73
|
+
return /*#__PURE__*/ jsx(RatingGroup.Context, {
|
|
74
|
+
children: ({ items })=>items.map((item)=>/*#__PURE__*/ jsx(RatingGroup_RatingGroupItem, {
|
|
75
|
+
index: item,
|
|
76
|
+
children: children ?? /*#__PURE__*/ jsx(RatingGroup_RatingGroupItemIndicator, {})
|
|
77
|
+
}, item))
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const RatingGroup_RatingGroup = Object.assign(RatingGroup_RatingGroupRoot, {
|
|
81
|
+
Root: RatingGroup_RatingGroupRoot,
|
|
82
|
+
RootProvider: RatingGroup_RatingGroupRootProvider,
|
|
83
|
+
Context: RatingGroup.Context,
|
|
84
|
+
HiddenInput: RatingGroup.HiddenInput,
|
|
85
|
+
Label: RatingGroup_RatingGroupLabel,
|
|
86
|
+
Control: RatingGroup_RatingGroupControl,
|
|
87
|
+
Item: RatingGroup_RatingGroupItem,
|
|
88
|
+
ItemContext: RatingGroup.ItemContext,
|
|
89
|
+
ItemIndicator: RatingGroup_RatingGroupItemIndicator,
|
|
90
|
+
Items: RatingGroupItems
|
|
91
|
+
});
|
|
92
|
+
export { RatingGroup_RatingGroup as RatingGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RatingGroup, useRatingGroup, useRatingGroupContext, useRatingGroupItemContext } from "./RatingGroup.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ScrollArea as ScrollAreaPrimitive, useScrollArea, useScrollAreaContext } from '@ark-ui/react/scroll-area';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
type ModuixScrollAreaRootProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
4
|
+
fade?: boolean;
|
|
5
|
+
variant?: 'hover' | 'always';
|
|
6
|
+
};
|
|
7
|
+
type ModuixScrollAreaRootProviderProps = ComponentProps<typeof ScrollAreaPrimitive.RootProvider> & {
|
|
8
|
+
fade?: boolean;
|
|
9
|
+
variant?: 'hover' | 'always';
|
|
10
|
+
};
|
|
11
|
+
declare const ScrollArea: import("react").ForwardRefExoticComponent<Omit<ModuixScrollAreaRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Root: import("react").ForwardRefExoticComponent<Omit<ModuixScrollAreaRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<ModuixScrollAreaRootProviderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Context: (props: ScrollAreaPrimitive.ContextProps) => import("react").ReactNode;
|
|
15
|
+
Viewport: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ViewportProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Content: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Scrollbar: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollbarProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Thumb: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Corner: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.CornerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
useScrollArea: (props?: import("@ark-ui/react/scroll-area").UseScrollAreaProps) => import("@ark-ui/react/scroll-area").UseScrollAreaReturn;
|
|
21
|
+
};
|
|
22
|
+
export { ScrollArea, useScrollArea, useScrollAreaContext };
|
|
23
|
+
export type { ModuixScrollAreaRootProps, ModuixScrollAreaRootProviderProps };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { ScrollArea, useScrollArea, useScrollAreaContext } from "@ark-ui/react/scroll-area";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { cn } from "../../internal/cn.js";
|
|
6
|
+
const ScrollArea_ScrollAreaRoot = /*#__PURE__*/ forwardRef(function({ className, fade, variant = 'hover', ...props }, ref) {
|
|
7
|
+
return /*#__PURE__*/ jsx(ScrollArea.Root, {
|
|
8
|
+
ref: ref,
|
|
9
|
+
...props,
|
|
10
|
+
"data-slot": "scroll-area-root",
|
|
11
|
+
"data-fade": fade ? '' : void 0,
|
|
12
|
+
"data-variant": variant,
|
|
13
|
+
className: cn('group/scroll-area relative h-full min-h-0 w-full min-w-0 text-foreground', className)
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
const ScrollArea_ScrollAreaRootProvider = /*#__PURE__*/ forwardRef(function({ className, fade, variant = 'hover', ...props }, ref) {
|
|
17
|
+
return /*#__PURE__*/ jsx(ScrollArea.RootProvider, {
|
|
18
|
+
ref: ref,
|
|
19
|
+
...props,
|
|
20
|
+
"data-slot": "scroll-area-root-provider",
|
|
21
|
+
"data-fade": fade ? '' : void 0,
|
|
22
|
+
"data-variant": variant,
|
|
23
|
+
className: cn('group/scroll-area relative h-full min-h-0 w-full min-w-0 text-foreground', className)
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const ScrollArea_ScrollAreaViewport = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
27
|
+
return /*#__PURE__*/ jsx(ScrollArea.Viewport, {
|
|
28
|
+
ref: ref,
|
|
29
|
+
...props,
|
|
30
|
+
"data-slot": "scroll-area-viewport",
|
|
31
|
+
className: cn('h-full min-h-0 w-full min-w-0 [scrollbar-width:none] rounded-md bg-transparent outline-0 group-data-[fade]/scroll-area:[mask-image:linear-gradient(to_bottom,transparent_0,black_min(40px,var(--scroll-area-overflow-y-start,0px)),black_calc(100%_-_min(40px,var(--scroll-area-overflow-y-end,0px))),transparent_100%)] group-data-[fade]/scroll-area:mask-no-repeat focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring forced-colors:mask-none forced-colors:focus-visible:outline-[Highlight] [&::-webkit-scrollbar]:hidden', className)
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
const ScrollArea_ScrollAreaContent = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
35
|
+
return /*#__PURE__*/ jsx(ScrollArea.Content, {
|
|
36
|
+
ref: ref,
|
|
37
|
+
...props,
|
|
38
|
+
"data-slot": "scroll-area-content",
|
|
39
|
+
className: cn('block', className)
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const ScrollArea_ScrollAreaScrollbar = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
43
|
+
return /*#__PURE__*/ jsx(ScrollArea.Scrollbar, {
|
|
44
|
+
ref: ref,
|
|
45
|
+
...props,
|
|
46
|
+
"data-slot": "scroll-area-scrollbar",
|
|
47
|
+
className: cn("pointer-events-none absolute hidden touch-none justify-center rounded-md bg-transparent opacity-0 transition-[opacity,width,height] duration-200 ease-in-out select-none group-data-[variant=always]/scroll-area:pointer-events-auto group-data-[variant=always]/scroll-area:opacity-100 before:absolute before:content-[''] data-dragging:pointer-events-auto data-hover:pointer-events-auto data-hover:opacity-100 data-scrolling:pointer-events-auto data-scrolling:opacity-100 data-scrolling:duration-0 data-[orientation=horizontal]:start-0 data-[orientation=horizontal]:end-[var(--corner-width,0px)] data-[orientation=horizontal]:bottom-0 data-[orientation=horizontal]:mx-1 data-[orientation=horizontal]:mb-1 data-[orientation=horizontal]:h-1 data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:before:right-0 data-[orientation=horizontal]:before:bottom-1/2 data-[orientation=horizontal]:before:left-0 data-[orientation=horizontal]:before:h-5 data-[orientation=horizontal]:before:w-full data-[orientation=horizontal]:before:translate-y-1/2 data-[orientation=horizontal]:hover:h-1.5 data-[orientation=horizontal]:data-dragging:h-1.5 data-[orientation=horizontal]:data-overflow-x:flex data-[orientation=vertical]:end-0 data-[orientation=vertical]:top-0 data-[orientation=vertical]:bottom-[var(--corner-height,0px)] data-[orientation=vertical]:my-1 data-[orientation=vertical]:me-1 data-[orientation=vertical]:w-1 data-[orientation=vertical]:before:left-1/2 data-[orientation=vertical]:before:h-full data-[orientation=vertical]:before:w-5 data-[orientation=vertical]:before:-translate-x-1/2 data-[orientation=vertical]:hover:w-1.5 data-[orientation=vertical]:data-dragging:w-1.5 data-[orientation=vertical]:data-overflow-y:flex motion-reduce:transition-none", className)
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const ScrollArea_ScrollAreaThumb = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
51
|
+
return /*#__PURE__*/ jsx(ScrollArea.Thumb, {
|
|
52
|
+
ref: ref,
|
|
53
|
+
...props,
|
|
54
|
+
"data-slot": "scroll-area-thumb",
|
|
55
|
+
className: cn('rounded-full bg-border data-[orientation=horizontal]:h-full data-[orientation=horizontal]:min-w-control-xs data-[orientation=vertical]:min-h-control-xs data-[orientation=vertical]:w-full forced-colors:bg-[ButtonText]', className)
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
const ScrollArea_ScrollAreaCorner = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
59
|
+
return /*#__PURE__*/ jsx(ScrollArea.Corner, {
|
|
60
|
+
ref: ref,
|
|
61
|
+
...props,
|
|
62
|
+
"data-slot": "scroll-area-corner",
|
|
63
|
+
className: cn('bg-transparent', className)
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
const ScrollArea_ScrollArea = Object.assign(ScrollArea_ScrollAreaRoot, {
|
|
67
|
+
Root: ScrollArea_ScrollAreaRoot,
|
|
68
|
+
RootProvider: ScrollArea_ScrollAreaRootProvider,
|
|
69
|
+
Context: ScrollArea.Context,
|
|
70
|
+
Viewport: ScrollArea_ScrollAreaViewport,
|
|
71
|
+
Content: ScrollArea_ScrollAreaContent,
|
|
72
|
+
Scrollbar: ScrollArea_ScrollAreaScrollbar,
|
|
73
|
+
Thumb: ScrollArea_ScrollAreaThumb,
|
|
74
|
+
Corner: ScrollArea_ScrollAreaCorner,
|
|
75
|
+
useScrollArea: useScrollArea
|
|
76
|
+
});
|
|
77
|
+
export { ScrollArea_ScrollArea as ScrollArea, useScrollArea, useScrollAreaContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScrollArea, useScrollArea, useScrollAreaContext } from "./ScrollArea.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SegmentGroup as SegmentGroupPrimitive, useSegmentGroup as useSegmentGroupPrimitive, useSegmentGroupContext, useSegmentGroupItemContext } from '@ark-ui/react/segment-group';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
type SegmentGroupMachineProps = Parameters<typeof useSegmentGroupPrimitive>[0];
|
|
4
|
+
declare function useSegmentGroup(props?: SegmentGroupMachineProps): import("@ark-ui/react/segment-group").UseSegmentGroupReturn;
|
|
5
|
+
declare function SegmentGroupItems({ items, }: {
|
|
6
|
+
items: readonly {
|
|
7
|
+
value: string;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
}): import("react").JSX.Element[];
|
|
12
|
+
declare const SegmentGroup: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
Root: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
RootProvider: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.RootProviderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Context: (props: SegmentGroupPrimitive.ContextProps) => ReactNode;
|
|
16
|
+
ItemContext: (props: SegmentGroupPrimitive.ItemContextProps) => ReactNode;
|
|
17
|
+
Label: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
Item: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.ItemProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
19
|
+
ItemHiddenInput: import("react").ForwardRefExoticComponent<SegmentGroupPrimitive.ItemHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
20
|
+
ItemControl: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.ItemControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<SegmentGroupPrimitive.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Items: typeof SegmentGroupItems;
|
|
24
|
+
};
|
|
25
|
+
export { SegmentGroup, useSegmentGroup, useSegmentGroupContext, useSegmentGroupItemContext };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useFieldContext } from "@ark-ui/react/field";
|
|
4
|
+
import { useFieldsetContext } from "@ark-ui/react/fieldset";
|
|
5
|
+
import { SegmentGroup, useSegmentGroup, useSegmentGroupContext, useSegmentGroupItemContext } from "@ark-ui/react/segment-group";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { cn } from "../../internal/cn.js";
|
|
8
|
+
function omitUndefined(props) {
|
|
9
|
+
return Object.fromEntries(Object.entries(props).filter(([, value])=>void 0 !== value));
|
|
10
|
+
}
|
|
11
|
+
function SegmentGroup_useSegmentGroup(props) {
|
|
12
|
+
const field = useFieldContext();
|
|
13
|
+
const fieldset = useFieldsetContext();
|
|
14
|
+
return useSegmentGroup({
|
|
15
|
+
disabled: field?.disabled ?? fieldset?.disabled,
|
|
16
|
+
invalid: field?.invalid ?? fieldset?.invalid,
|
|
17
|
+
readOnly: field?.readOnly,
|
|
18
|
+
required: field?.required,
|
|
19
|
+
...omitUndefined(props ?? {})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const SegmentGroup_SegmentGroupRoot = /*#__PURE__*/ forwardRef(function({ className, defaultValue, disabled, form, id, ids, invalid, name, onValueChange, orientation = 'horizontal', readOnly, required, value, ...props }, ref) {
|
|
23
|
+
const segmentGroup = SegmentGroup_useSegmentGroup({
|
|
24
|
+
defaultValue,
|
|
25
|
+
disabled,
|
|
26
|
+
form,
|
|
27
|
+
id,
|
|
28
|
+
ids,
|
|
29
|
+
invalid,
|
|
30
|
+
name,
|
|
31
|
+
onValueChange,
|
|
32
|
+
orientation,
|
|
33
|
+
readOnly,
|
|
34
|
+
required,
|
|
35
|
+
value
|
|
36
|
+
});
|
|
37
|
+
return /*#__PURE__*/ jsx(SegmentGroup.RootProvider, {
|
|
38
|
+
ref: ref,
|
|
39
|
+
value: segmentGroup,
|
|
40
|
+
"data-slot": "segment-group-root",
|
|
41
|
+
className: cn('group/segment-group relative isolate box-border inline-flex max-w-full items-stretch gap-1 rounded-lg border border-border bg-muted p-1 text-foreground data-disabled:opacity-50 data-invalid:border-destructive data-[orientation=vertical]:flex-col', className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
const SegmentGroup_SegmentGroupRootProvider = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
46
|
+
return /*#__PURE__*/ jsx(SegmentGroup.RootProvider, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
"data-slot": "segment-group-root-provider",
|
|
49
|
+
className: cn('group/segment-group relative isolate box-border inline-flex max-w-full items-stretch gap-1 rounded-lg border border-border bg-muted p-1 text-foreground data-disabled:opacity-50 data-invalid:border-destructive data-[orientation=vertical]:flex-col', className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const SegmentGroup_SegmentGroupLabel = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
54
|
+
return /*#__PURE__*/ jsx(SegmentGroup.Label, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
"data-slot": "segment-group-label",
|
|
57
|
+
className: cn('relative z-1 text-sm leading-5 font-semibold text-inherit select-none', className),
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
const SegmentGroup_SegmentGroupItem = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
62
|
+
return /*#__PURE__*/ jsx(SegmentGroup.Item, {
|
|
63
|
+
ref: ref,
|
|
64
|
+
"data-slot": "segment-group-item",
|
|
65
|
+
className: cn('relative z-1 box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md px-3.5 text-sm leading-5 font-medium whitespace-nowrap text-muted-foreground outline-0 transition-[color,opacity] duration-200 ease-in-out select-none group-data-disabled/segment-group:!opacity-100 data-disabled:cursor-default data-disabled:opacity-50 data-focus-visible:outline-1 data-focus-visible:-outline-offset-1 data-focus-visible:outline-ring data-invalid:data-focus-visible:outline-destructive data-readonly:cursor-default data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start data-[state=checked]:text-foreground [@media(hover:hover)]:[&:not([data-readonly]):not([data-disabled]):hover]:text-foreground', className),
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
const SegmentGroup_SegmentGroupItemControl = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
70
|
+
return /*#__PURE__*/ jsx(SegmentGroup.ItemControl, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
"data-slot": "segment-group-item-control",
|
|
73
|
+
className: cn('hidden', className),
|
|
74
|
+
...props
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const SegmentGroup_SegmentGroupItemText = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
78
|
+
return /*#__PURE__*/ jsx(SegmentGroup.ItemText, {
|
|
79
|
+
ref: ref,
|
|
80
|
+
"data-slot": "segment-group-item-text",
|
|
81
|
+
className: cn('relative z-1', className),
|
|
82
|
+
...props
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
const SegmentGroup_SegmentGroupIndicator = /*#__PURE__*/ forwardRef(function({ className, ...props }, ref) {
|
|
86
|
+
return /*#__PURE__*/ jsx(SegmentGroup.Indicator, {
|
|
87
|
+
ref: ref,
|
|
88
|
+
"data-slot": "segment-group-indicator",
|
|
89
|
+
className: cn('pointer-events-none absolute top-[var(--top)] left-[var(--left)] z-0 h-[var(--height)] w-[var(--width)] rounded-md bg-background shadow-sm !duration-200 !ease-in-out', className),
|
|
90
|
+
...props
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
function SegmentGroupItems({ items }) {
|
|
94
|
+
return items.map(({ value, label, disabled })=>/*#__PURE__*/ jsxs(SegmentGroup_SegmentGroupItem, {
|
|
95
|
+
value: value,
|
|
96
|
+
disabled: disabled,
|
|
97
|
+
children: [
|
|
98
|
+
/*#__PURE__*/ jsx(SegmentGroup_SegmentGroupItemText, {
|
|
99
|
+
children: label
|
|
100
|
+
}),
|
|
101
|
+
/*#__PURE__*/ jsx(SegmentGroup_SegmentGroupItemControl, {}),
|
|
102
|
+
/*#__PURE__*/ jsx(SegmentGroup.ItemHiddenInput, {})
|
|
103
|
+
]
|
|
104
|
+
}, value));
|
|
105
|
+
}
|
|
106
|
+
const SegmentGroup_SegmentGroup = Object.assign(SegmentGroup_SegmentGroupRoot, {
|
|
107
|
+
Root: SegmentGroup_SegmentGroupRoot,
|
|
108
|
+
RootProvider: SegmentGroup_SegmentGroupRootProvider,
|
|
109
|
+
Context: SegmentGroup.Context,
|
|
110
|
+
ItemContext: SegmentGroup.ItemContext,
|
|
111
|
+
Label: SegmentGroup_SegmentGroupLabel,
|
|
112
|
+
Item: SegmentGroup_SegmentGroupItem,
|
|
113
|
+
ItemHiddenInput: SegmentGroup.ItemHiddenInput,
|
|
114
|
+
ItemControl: SegmentGroup_SegmentGroupItemControl,
|
|
115
|
+
ItemText: SegmentGroup_SegmentGroupItemText,
|
|
116
|
+
Indicator: SegmentGroup_SegmentGroupIndicator,
|
|
117
|
+
Items: SegmentGroupItems
|
|
118
|
+
});
|
|
119
|
+
export { SegmentGroup_SegmentGroup as SegmentGroup, SegmentGroup_useSegmentGroup as useSegmentGroup, useSegmentGroupContext, useSegmentGroupItemContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentGroup, useSegmentGroup, useSegmentGroupContext, useSegmentGroupItemContext, } from './SegmentGroup.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentGroup, useSegmentGroup, useSegmentGroupContext, useSegmentGroupItemContext } from "./SegmentGroup.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Select as SelectPrimitive, type SelectRootComponent as ArkSelectRootComponent, type SelectRootProviderComponent as ArkSelectRootProviderComponent, useSelect, useSelectContext, useSelectItemContext } from '@ark-ui/react/select';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import { type OverlayPortalProps } from '../../internal/overlayPortal.js';
|
|
4
|
+
type SelectRootComponent = ArkSelectRootComponent<OverlayPortalProps>;
|
|
5
|
+
type SelectRootProviderComponent = ArkSelectRootProviderComponent<OverlayPortalProps>;
|
|
6
|
+
type SelectFieldProps = Omit<ComponentProps<typeof SelectPrimitive.Control>, 'asChild' | 'children'> & {
|
|
7
|
+
clearLabel?: string;
|
|
8
|
+
indicator?: ReactNode;
|
|
9
|
+
placeholder?: ComponentProps<typeof SelectPrimitive.ValueText>['placeholder'];
|
|
10
|
+
};
|
|
11
|
+
declare const Select: SelectRootComponent & {
|
|
12
|
+
Root: SelectRootComponent;
|
|
13
|
+
RootProvider: SelectRootProviderComponent;
|
|
14
|
+
Context: <T extends unknown>(props: SelectPrimitive.ContextProps<T>) => ReactNode;
|
|
15
|
+
HiddenSelect: import("react").ForwardRefExoticComponent<SelectPrimitive.HiddenSelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
16
|
+
ItemContext: (props: SelectPrimitive.ItemContextProps) => ReactNode;
|
|
17
|
+
useSelect: <T extends unknown>(props: import("@ark-ui/react/select").UseSelectProps<T>) => import("@ark-ui/react/select").UseSelectReturn<T>;
|
|
18
|
+
useSelectContext: () => import("@ark-ui/react/select").UseSelectContext<any>;
|
|
19
|
+
useSelectItemContext: () => import("@ark-ui/react/select").UseSelectItemContext;
|
|
20
|
+
Label: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
21
|
+
Control: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ControlProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
Field: import("react").ForwardRefExoticComponent<Omit<SelectFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.TriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
ValueText: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
25
|
+
ClearTrigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
Indicator: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.IndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.PositionerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
Content: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
|
+
List: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
30
|
+
ItemGroup: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
ItemGroupLabel: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Item: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
ItemText: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
ItemIndicator: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
+
ItemTextContent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
36
|
+
ItemTextIcon: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
|
+
ItemTextLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("@ark-ui/react/factory").PolymorphicProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
38
|
+
};
|
|
39
|
+
export { Select, useSelect, useSelectContext, useSelectItemContext };
|