moduix 0.10.0 → 0.11.1
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 +9 -2
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/components/Accordion/Accordion.cjs +65 -0
- package/dist/components/Accordion/Accordion.css +99 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -9
- package/dist/components/Accordion/Accordion.js +60 -0
- package/dist/components/Accordion/Accordion.module.cjs +12 -0
- package/dist/components/Accordion/Accordion.module.js +12 -0
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Alert/Alert.cjs +50 -0
- package/dist/components/Alert/Alert.css +114 -0
- package/dist/components/Alert/Alert.d.ts +33 -9
- package/dist/components/Alert/Alert.js +44 -0
- package/dist/components/Alert/Alert.module.cjs +11 -0
- package/dist/components/Alert/Alert.module.js +11 -0
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.cjs +122 -0
- package/dist/components/AlertDialog/AlertDialog.css +159 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +66 -15
- package/dist/components/AlertDialog/AlertDialog.js +107 -0
- package/dist/components/AlertDialog/AlertDialog.module.cjs +18 -0
- package/dist/components/AlertDialog/AlertDialog.module.js +18 -0
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/AspectRatio/AspectRatio.cjs +24 -0
- package/dist/components/AspectRatio/AspectRatio.css +14 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +14 -0
- package/dist/components/AspectRatio/AspectRatio.js +24 -0
- package/dist/components/AspectRatio/AspectRatio.module.cjs +5 -0
- package/dist/components/AspectRatio/AspectRatio.module.js +5 -0
- package/dist/components/AspectRatio/index.d.ts +1 -0
- package/dist/components/Autocomplete/Autocomplete.cjs +303 -0
- package/dist/components/Autocomplete/Autocomplete.css +454 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +40 -37
- package/dist/components/Autocomplete/Autocomplete.js +271 -0
- package/dist/components/Autocomplete/Autocomplete.module.cjs +37 -0
- package/dist/components/Autocomplete/Autocomplete.module.js +37 -0
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.cjs +31 -0
- package/dist/components/Avatar/Avatar.css +74 -0
- package/dist/components/Avatar/Avatar.d.ts +21 -5
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Avatar/Avatar.module.cjs +9 -0
- package/dist/components/Avatar/Avatar.module.js +9 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.cjs +25 -0
- package/dist/components/Badge/Badge.css +66 -0
- package/dist/components/Badge/Badge.d.ts +19 -6
- package/dist/components/Badge/Badge.js +22 -0
- package/dist/components/Badge/Badge.module.cjs +8 -0
- package/dist/components/Badge/Badge.module.js +8 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.cjs +17 -0
- package/dist/components/Bleed/Bleed.css +51 -0
- package/dist/components/Bleed/Bleed.d.ts +16 -7
- package/dist/components/Bleed/Bleed.js +15 -0
- package/dist/components/Bleed/Bleed.module.cjs +5 -0
- package/dist/components/Bleed/Bleed.module.js +5 -0
- package/dist/components/Bleed/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +72 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.css +88 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +38 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.js +66 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.module.cjs +13 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.module.js +13 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.cjs +18 -0
- package/dist/components/Button/Button.css +194 -0
- package/dist/components/Button/Button.d.ts +12 -5
- package/dist/components/Button/Button.js +18 -0
- package/dist/components/Button/Button.module.cjs +5 -0
- package/dist/components/Button/Button.module.js +5 -0
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.cjs +81 -0
- package/dist/components/Card/Card.css +136 -0
- package/dist/components/Card/Card.d.ts +48 -13
- package/dist/components/Card/Card.js +72 -0
- package/dist/components/Card/Card.module.cjs +14 -0
- package/dist/components/Card/Card.module.js +14 -0
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +63 -0
- package/dist/components/Checkbox/Checkbox.css +131 -0
- package/dist/components/Checkbox/Checkbox.d.ts +27 -10
- package/dist/components/Checkbox/Checkbox.js +59 -0
- package/dist/components/Checkbox/Checkbox.module.cjs +13 -0
- package/dist/components/Checkbox/Checkbox.module.js +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +55 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.css +33 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +28 -10
- package/dist/components/CheckboxGroup/CheckboxGroup.js +50 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.module.cjs +11 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.module.js +11 -0
- package/dist/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/CloseButton/CloseButton.cjs +22 -0
- package/dist/components/CloseButton/CloseButton.css +49 -0
- package/dist/components/CloseButton/CloseButton.d.ts +4 -2
- package/dist/components/CloseButton/CloseButton.js +22 -0
- package/dist/components/CloseButton/CloseButton.module.cjs +5 -0
- package/dist/components/CloseButton/CloseButton.module.js +5 -0
- package/dist/components/Collapsible/Collapsible.cjs +47 -0
- package/dist/components/Collapsible/Collapsible.css +92 -0
- package/dist/components/Collapsible/Collapsible.d.ts +14 -6
- package/dist/components/Collapsible/Collapsible.js +44 -0
- package/dist/components/Collapsible/Collapsible.module.cjs +10 -0
- package/dist/components/Collapsible/Collapsible.module.js +10 -0
- package/dist/components/Collapsible/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.cjs +330 -0
- package/dist/components/Combobox/Combobox.css +497 -0
- package/dist/components/Combobox/Combobox.d.ts +59 -42
- package/dist/components/Combobox/Combobox.js +295 -0
- package/dist/components/Combobox/Combobox.module.cjs +42 -0
- package/dist/components/Combobox/Combobox.module.js +42 -0
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPalette.cjs +304 -0
- package/dist/components/CommandPalette/CommandPalette.css +375 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +137 -48
- package/dist/components/CommandPalette/CommandPalette.js +278 -0
- package/dist/components/CommandPalette/CommandPalette.module.cjs +30 -0
- package/dist/components/CommandPalette/CommandPalette.module.js +30 -0
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/Container/Container.cjs +17 -0
- package/dist/components/Container/Container.css +45 -0
- package/dist/components/Container/Container.d.ts +16 -8
- package/dist/components/Container/Container.js +15 -0
- package/dist/components/Container/Container.module.cjs +5 -0
- package/dist/components/Container/Container.module.js +5 -0
- package/dist/components/Container/index.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.cjs +241 -0
- package/dist/components/ContextMenu/ContextMenu.css +308 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +133 -38
- package/dist/components/ContextMenu/ContextMenu.js +215 -0
- package/dist/components/ContextMenu/ContextMenu.module.cjs +33 -0
- package/dist/components/ContextMenu/ContextMenu.module.js +33 -0
- package/dist/components/ContextMenu/index.d.ts +1 -1
- package/dist/components/CopyButton/CopyButton.cjs +66 -0
- package/dist/components/CopyButton/CopyButton.css +14 -0
- package/dist/components/CopyButton/CopyButton.d.ts +16 -0
- package/dist/components/CopyButton/CopyButton.js +66 -0
- package/dist/components/CopyButton/CopyButton.module.cjs +5 -0
- package/dist/components/CopyButton/CopyButton.module.js +5 -0
- package/dist/components/CopyButton/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.cjs +136 -0
- package/dist/components/Dialog/Dialog.css +186 -0
- package/dist/components/Dialog/Dialog.d.ts +68 -18
- package/dist/components/Dialog/Dialog.js +122 -0
- package/dist/components/Dialog/Dialog.module.cjs +18 -0
- package/dist/components/Dialog/Dialog.module.js +18 -0
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.cjs +202 -0
- package/dist/components/Drawer/Drawer.css +483 -0
- package/dist/components/Drawer/Drawer.d.ts +96 -27
- package/dist/components/Drawer/Drawer.js +182 -0
- package/dist/components/Drawer/Drawer.module.cjs +24 -0
- package/dist/components/Drawer/Drawer.module.js +24 -0
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Empty/Empty.cjs +55 -0
- package/dist/components/Empty/Empty.css +78 -0
- package/dist/components/Empty/Empty.d.ts +33 -0
- package/dist/components/Empty/Empty.js +48 -0
- package/dist/components/Empty/Empty.module.cjs +12 -0
- package/dist/components/Empty/Empty.module.js +12 -0
- package/dist/components/Empty/index.d.ts +1 -0
- package/dist/components/Field/Field.cjs +56 -0
- package/dist/components/Field/Field.css +86 -0
- package/dist/components/Field/Field.d.ts +30 -9
- package/dist/components/Field/Field.js +50 -0
- package/dist/components/Field/Field.module.cjs +12 -0
- package/dist/components/Field/Field.module.js +12 -0
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.cjs +22 -0
- package/dist/components/Fieldset/Fieldset.css +39 -0
- package/dist/components/Fieldset/Fieldset.d.ts +13 -4
- package/dist/components/Fieldset/Fieldset.js +21 -0
- package/dist/components/Fieldset/Fieldset.module.cjs +8 -0
- package/dist/components/Fieldset/Fieldset.module.js +8 -0
- package/dist/components/Fieldset/index.d.ts +1 -1
- package/dist/components/Form/Form.cjs +16 -0
- package/dist/components/Form/Form.css +9 -0
- package/dist/components/Form/Form.d.ts +6 -3
- package/dist/components/Form/Form.js +16 -0
- package/dist/components/Form/Form.module.cjs +5 -0
- package/dist/components/Form/Form.module.js +5 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Heading/Heading.cjs +25 -0
- package/dist/components/Heading/Heading.css +50 -0
- package/dist/components/Heading/Heading.d.ts +24 -13
- package/dist/components/Heading/Heading.js +23 -0
- package/dist/components/Heading/Heading.module.cjs +5 -0
- package/dist/components/Heading/Heading.module.js +5 -0
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Input/Input.cjs +18 -0
- package/dist/components/Input/Input.css +78 -0
- package/dist/components/Input/Input.d.ts +12 -7
- package/dist/components/Input/Input.js +18 -0
- package/dist/components/Input/Input.module.cjs +5 -0
- package/dist/components/Input/Input.module.js +5 -0
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/InputGroup/InputGroup.cjs +77 -0
- package/dist/components/InputGroup/InputGroup.css +160 -0
- package/dist/components/InputGroup/InputGroup.d.ts +14 -16
- package/dist/components/InputGroup/InputGroup.js +73 -0
- package/dist/components/InputGroup/InputGroup.module.cjs +11 -0
- package/dist/components/InputGroup/InputGroup.module.js +11 -0
- package/dist/components/InputGroup/index.d.ts +1 -1
- package/dist/components/Kbd/Kbd.cjs +23 -0
- package/dist/components/Kbd/Kbd.css +49 -0
- package/dist/components/Kbd/Kbd.d.ts +13 -4
- package/dist/components/Kbd/Kbd.js +20 -0
- package/dist/components/Kbd/Kbd.module.cjs +8 -0
- package/dist/components/Kbd/Kbd.module.js +8 -0
- package/dist/components/Kbd/index.d.ts +1 -1
- package/dist/components/Lightbox/Lightbox.cjs +220 -0
- package/dist/components/Lightbox/Lightbox.css +114 -0
- package/dist/components/Lightbox/Lightbox.d.ts +84 -31
- package/dist/components/Lightbox/Lightbox.js +208 -0
- package/dist/components/Lightbox/Lightbox.module.cjs +14 -0
- package/dist/components/Lightbox/Lightbox.module.js +14 -0
- package/dist/components/Lightbox/index.d.ts +1 -1
- package/dist/components/List/List.cjs +31 -0
- package/dist/components/List/List.css +114 -0
- package/dist/components/List/List.d.ts +33 -11
- package/dist/components/List/List.js +28 -0
- package/dist/components/List/List.module.cjs +5 -0
- package/dist/components/List/List.module.js +5 -0
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Menu/Menu.cjs +260 -0
- package/dist/components/Menu/Menu.css +377 -0
- package/dist/components/Menu/Menu.d.ts +143 -41
- package/dist/components/Menu/Menu.js +231 -0
- package/dist/components/Menu/Menu.module.cjs +36 -0
- package/dist/components/Menu/Menu.module.js +36 -0
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Menubar/Menubar.cjs +261 -0
- package/dist/components/Menubar/Menubar.css +387 -0
- package/dist/components/Menubar/Menubar.d.ts +146 -42
- package/dist/components/Menubar/Menubar.js +232 -0
- package/dist/components/Menubar/Menubar.module.cjs +36 -0
- package/dist/components/Menubar/Menubar.module.js +36 -0
- package/dist/components/Menubar/index.d.ts +1 -1
- package/dist/components/Meter/Meter.cjs +60 -0
- package/dist/components/Meter/Meter.css +46 -0
- package/dist/components/Meter/Meter.d.ts +9 -8
- package/dist/components/Meter/Meter.js +55 -0
- package/dist/components/Meter/Meter.module.cjs +11 -0
- package/dist/components/Meter/Meter.module.js +11 -0
- package/dist/components/NavigationMenu/NavigationMenu.cjs +146 -0
- package/dist/components/NavigationMenu/NavigationMenu.css +319 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +82 -22
- package/dist/components/NavigationMenu/NavigationMenu.js +134 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.cjs +21 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.js +21 -0
- package/dist/components/NavigationMenu/index.d.ts +1 -1
- package/dist/components/NumberField/NumberField.cjs +82 -0
- package/dist/components/NumberField/NumberField.css +158 -0
- package/dist/components/NumberField/NumberField.d.ts +49 -13
- package/dist/components/NumberField/NumberField.js +75 -0
- package/dist/components/NumberField/NumberField.module.cjs +13 -0
- package/dist/components/NumberField/NumberField.module.js +13 -0
- package/dist/components/NumberField/index.d.ts +1 -1
- package/dist/components/OTPField/OTPField.cjs +41 -0
- package/dist/components/OTPField/OTPField.css +78 -0
- package/dist/components/OTPField/OTPField.d.ts +19 -5
- package/dist/components/OTPField/OTPField.js +39 -0
- package/dist/components/OTPField/OTPField.module.cjs +9 -0
- package/dist/components/OTPField/OTPField.module.js +9 -0
- package/dist/components/OTPField/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.cjs +123 -0
- package/dist/components/Pagination/Pagination.css +103 -0
- package/dist/components/Pagination/Pagination.d.ts +61 -23
- package/dist/components/Pagination/Pagination.js +116 -0
- package/dist/components/Pagination/Pagination.module.cjs +16 -0
- package/dist/components/Pagination/Pagination.module.js +16 -0
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +47 -0
- package/dist/components/PasswordInput/PasswordInput.css +19 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +16 -0
- package/dist/components/PasswordInput/PasswordInput.js +47 -0
- package/dist/components/PasswordInput/PasswordInput.module.cjs +9 -0
- package/dist/components/PasswordInput/PasswordInput.module.js +9 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/Popover/Popover.cjs +146 -0
- package/dist/components/Popover/Popover.css +200 -0
- package/dist/components/Popover/Popover.d.ts +79 -22
- package/dist/components/Popover/Popover.js +131 -0
- package/dist/components/Popover/Popover.module.cjs +22 -0
- package/dist/components/Popover/Popover.module.js +22 -0
- package/dist/components/Popover/index.d.ts +1 -1
- package/dist/components/PreviewCard/PreviewCard.cjs +96 -0
- package/dist/components/PreviewCard/PreviewCard.css +136 -0
- package/dist/components/PreviewCard/PreviewCard.d.ts +51 -15
- package/dist/components/PreviewCard/PreviewCard.js +87 -0
- package/dist/components/PreviewCard/PreviewCard.module.cjs +16 -0
- package/dist/components/PreviewCard/PreviewCard.module.js +16 -0
- package/dist/components/PreviewCard/index.d.ts +1 -1
- package/dist/components/Progress/Progress.cjs +60 -0
- package/dist/components/Progress/Progress.css +68 -0
- package/dist/components/Progress/Progress.d.ts +9 -7
- package/dist/components/Progress/Progress.js +55 -0
- package/dist/components/Progress/Progress.module.cjs +12 -0
- package/dist/components/Progress/Progress.module.js +12 -0
- package/dist/components/Radio/Radio.cjs +78 -0
- package/dist/components/Radio/Radio.css +141 -0
- package/dist/components/Radio/Radio.d.ts +39 -14
- package/dist/components/Radio/Radio.js +71 -0
- package/dist/components/Radio/Radio.module.cjs +14 -0
- package/dist/components/Radio/Radio.module.js +14 -0
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Rating/Rating.cjs +61 -0
- package/dist/components/Rating/Rating.css +79 -0
- package/dist/components/Rating/Rating.d.ts +14 -0
- package/dist/components/Rating/Rating.js +61 -0
- package/dist/components/Rating/Rating.module.cjs +9 -0
- package/dist/components/Rating/Rating.module.js +9 -0
- package/dist/components/Rating/index.d.ts +1 -0
- package/dist/components/ScrollArea/ScrollArea.cjs +82 -0
- package/dist/components/ScrollArea/ScrollArea.css +205 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +16 -14
- package/dist/components/ScrollArea/ScrollArea.js +76 -0
- package/dist/components/ScrollArea/ScrollArea.module.cjs +12 -0
- package/dist/components/ScrollArea/ScrollArea.module.js +12 -0
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Select/Select.cjs +219 -0
- package/dist/components/Select/Select.css +357 -0
- package/dist/components/Select/Select.d.ts +117 -32
- package/dist/components/Select/Select.js +196 -0
- package/dist/components/Select/Select.module.cjs +33 -0
- package/dist/components/Select/Select.module.js +33 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Separator/Separator.cjs +16 -0
- package/dist/components/Separator/Separator.css +17 -0
- package/dist/components/Separator/Separator.d.ts +4 -4
- package/dist/components/Separator/Separator.js +16 -0
- package/dist/components/Separator/Separator.module.cjs +5 -0
- package/dist/components/Separator/Separator.module.js +5 -0
- package/dist/components/Skeleton/Skeleton.cjs +25 -0
- package/dist/components/Skeleton/Skeleton.css +21 -0
- package/dist/components/Skeleton/Skeleton.d.ts +23 -10
- package/dist/components/Skeleton/Skeleton.js +25 -0
- package/dist/components/Skeleton/Skeleton.module.cjs +5 -0
- package/dist/components/Skeleton/Skeleton.module.js +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.cjs +106 -0
- package/dist/components/Slider/Slider.css +115 -0
- package/dist/components/Slider/Slider.d.ts +16 -10
- package/dist/components/Slider/Slider.js +99 -0
- package/dist/components/Slider/Slider.module.cjs +13 -0
- package/dist/components/Slider/Slider.module.js +13 -0
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/SnapCarousel/SnapCarousel.cjs +130 -0
- package/dist/components/SnapCarousel/SnapCarousel.css +131 -0
- package/dist/components/SnapCarousel/SnapCarousel.d.ts +45 -0
- package/dist/components/SnapCarousel/SnapCarousel.js +125 -0
- package/dist/components/SnapCarousel/SnapCarousel.module.cjs +13 -0
- package/dist/components/SnapCarousel/SnapCarousel.module.js +13 -0
- package/dist/components/SnapCarousel/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.cjs +30 -0
- package/dist/components/Spinner/Spinner.css +60 -0
- package/dist/components/Spinner/Spinner.d.ts +18 -6
- package/dist/components/Spinner/Spinner.js +28 -0
- package/dist/components/Spinner/Spinner.module.cjs +9 -0
- package/dist/components/Spinner/Spinner.module.js +9 -0
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.cjs +69 -0
- package/dist/components/SplitButton/SplitButton.css +59 -0
- package/dist/components/SplitButton/SplitButton.d.ts +46 -0
- package/dist/components/SplitButton/SplitButton.js +66 -0
- package/dist/components/SplitButton/SplitButton.module.cjs +9 -0
- package/dist/components/SplitButton/SplitButton.module.js +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/Stack/Stack.cjs +27 -0
- package/dist/components/Stack/Stack.css +13 -0
- package/dist/components/Stack/Stack.d.ts +28 -14
- package/dist/components/Stack/Stack.js +27 -0
- package/dist/components/Stack/Stack.module.cjs +5 -0
- package/dist/components/Stack/Stack.module.js +5 -0
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.cjs +138 -0
- package/dist/components/Stepper/Stepper.css +174 -0
- package/dist/components/Stepper/Stepper.d.ts +59 -0
- package/dist/components/Stepper/Stepper.js +131 -0
- package/dist/components/Stepper/Stepper.module.cjs +14 -0
- package/dist/components/Stepper/Stepper.module.js +14 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Switch/Switch.cjs +43 -0
- package/dist/components/Switch/Switch.css +138 -0
- package/dist/components/Switch/Switch.d.ts +21 -9
- package/dist/components/Switch/Switch.js +40 -0
- package/dist/components/Switch/Switch.module.cjs +10 -0
- package/dist/components/Switch/Switch.module.js +10 -0
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/Table.cjs +96 -0
- package/dist/components/Table/Table.css +107 -0
- package/dist/components/Table/Table.d.ts +58 -0
- package/dist/components/Table/Table.js +85 -0
- package/dist/components/Table/Table.module.cjs +18 -0
- package/dist/components/Table/Table.module.js +18 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.cjs +70 -0
- package/dist/components/Tabs/Tabs.css +181 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -8
- package/dist/components/Tabs/Tabs.js +66 -0
- package/dist/components/Tabs/Tabs.module.cjs +11 -0
- package/dist/components/Tabs/Tabs.module.js +11 -0
- package/dist/components/Text/Text.cjs +42 -0
- package/dist/components/Text/Text.css +73 -0
- package/dist/components/Text/Text.d.ts +27 -9
- package/dist/components/Text/Text.js +42 -0
- package/dist/components/Text/Text.module.cjs +5 -0
- package/dist/components/Text/Text.module.js +5 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.cjs +28 -0
- package/dist/components/Textarea/Textarea.css +59 -0
- package/dist/components/Textarea/Textarea.d.ts +9 -4
- package/dist/components/Textarea/Textarea.js +28 -0
- package/dist/components/Textarea/Textarea.module.cjs +5 -0
- package/dist/components/Textarea/Textarea.module.js +5 -0
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Toast/Toast.cjs +278 -0
- package/dist/components/Toast/Toast.css +351 -0
- package/dist/components/Toast/Toast.d.ts +82 -41
- package/dist/components/Toast/Toast.js +263 -0
- package/dist/components/Toast/Toast.module.cjs +26 -0
- package/dist/components/Toast/Toast.module.js +26 -0
- package/dist/components/Toast/index.d.ts +1 -1
- package/dist/components/Toggle/Toggle.cjs +18 -0
- package/dist/components/Toggle/Toggle.css +147 -0
- package/dist/components/Toggle/Toggle.d.ts +9 -6
- package/dist/components/Toggle/Toggle.js +18 -0
- package/dist/components/Toggle/Toggle.module.cjs +5 -0
- package/dist/components/Toggle/Toggle.module.js +5 -0
- package/dist/components/Toggle/index.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.cjs +42 -0
- package/dist/components/ToggleGroup/ToggleGroup.css +42 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +15 -12
- package/dist/components/ToggleGroup/ToggleGroup.js +41 -0
- package/dist/components/ToggleGroup/ToggleGroup.module.cjs +8 -0
- package/dist/components/ToggleGroup/ToggleGroup.module.js +8 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.cjs +61 -0
- package/dist/components/Toolbar/Toolbar.css +203 -0
- package/dist/components/Toolbar/Toolbar.d.ts +9 -7
- package/dist/components/Toolbar/Toolbar.js +56 -0
- package/dist/components/Toolbar/Toolbar.module.cjs +12 -0
- package/dist/components/Toolbar/Toolbar.module.js +12 -0
- package/dist/components/Tooltip/Tooltip.cjs +91 -0
- package/dist/components/Tooltip/Tooltip.css +155 -0
- package/dist/components/Tooltip/Tooltip.d.ts +51 -15
- package/dist/components/Tooltip/Tooltip.js +82 -0
- package/dist/components/Tooltip/Tooltip.module.cjs +15 -0
- package/dist/components/Tooltip/Tooltip.module.js +15 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/icons/demo/Icons.cjs +234 -0
- package/dist/icons/demo/Icons.d.ts +15 -12
- package/dist/icons/demo/Icons.js +225 -0
- package/dist/icons/demo/index.d.ts +1 -1
- package/dist/icons/ui/Icons.cjs +324 -0
- package/dist/icons/ui/Icons.d.ts +30 -18
- package/dist/icons/ui/Icons.js +308 -0
- package/dist/icons/ui/index.d.ts +1 -1
- package/dist/index.cjs +619 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +68 -58
- package/dist/index.js +68 -5039
- package/dist/reset.cjs +1 -0
- package/dist/reset.d.cts +1 -0
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +1 -0
- package/dist/style.cjs +1 -0
- package/dist/style.d.cts +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -0
- package/dist/styles/reset.css +175 -0
- package/dist/styles/style.css +263 -0
- package/dist/utils/mergeClassName.cjs +8 -0
- package/dist/utils/mergeClassName.js +8 -0
- package/package.json +8 -7
- package/dist/components/CloseButton/index.d.ts +0 -1
- package/dist/components/Meter/index.d.ts +0 -1
- package/dist/components/Progress/index.d.ts +0 -1
- package/dist/components/Separator/index.d.ts +0 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/data/insideScrollSections.d.ts +0 -4
- package/dist/index.css +0 -1
- package/dist/reset.css +0 -334
- package/dist/utils/mergeClassName.d.ts +0 -4
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import SnapCarousel_module_default from "./SnapCarousel.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
import { Children, createContext, useCallback, useContext, useRef } from "react";
|
|
6
|
+
//#region src/components/SnapCarousel/SnapCarousel.tsx
|
|
7
|
+
const SnapCarouselContext = createContext(null);
|
|
8
|
+
const SnapCarouselViewportPresenceContext = createContext(false);
|
|
9
|
+
function useSnapCarouselContext(componentName) {
|
|
10
|
+
const context = useContext(SnapCarouselContext);
|
|
11
|
+
if (!context) throw new Error(`${componentName} must be used within SnapCarousel.`);
|
|
12
|
+
return context;
|
|
13
|
+
}
|
|
14
|
+
function SnapCarousel({ align = "start", className, orientation = "horizontal", ...props }) {
|
|
15
|
+
const viewportRef = useRef(null);
|
|
16
|
+
const setViewport = useCallback((viewport) => {
|
|
17
|
+
viewportRef.current = viewport;
|
|
18
|
+
}, []);
|
|
19
|
+
const scrollViewport = useCallback((direction) => {
|
|
20
|
+
if (!viewportRef.current) return;
|
|
21
|
+
const viewport = viewportRef.current;
|
|
22
|
+
const distance = (orientation === "horizontal" ? viewport.clientWidth : viewport.clientHeight) * .85;
|
|
23
|
+
const scrollDistance = direction === "previous" ? -distance : distance;
|
|
24
|
+
viewport.scrollBy(orientation === "horizontal" ? {
|
|
25
|
+
behavior: "smooth",
|
|
26
|
+
left: scrollDistance
|
|
27
|
+
} : {
|
|
28
|
+
behavior: "smooth",
|
|
29
|
+
top: scrollDistance
|
|
30
|
+
});
|
|
31
|
+
}, [orientation]);
|
|
32
|
+
return /* @__PURE__ */ jsx(SnapCarouselContext.Provider, {
|
|
33
|
+
value: {
|
|
34
|
+
orientation,
|
|
35
|
+
scrollViewport,
|
|
36
|
+
setViewport
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
39
|
+
"data-slot": "snap-carousel-root",
|
|
40
|
+
"data-align": align,
|
|
41
|
+
"data-orientation": orientation,
|
|
42
|
+
className: clsx(SnapCarousel_module_default.root, className),
|
|
43
|
+
...props
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function SnapCarouselViewport({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, role, tabIndex = 0, ...props }) {
|
|
48
|
+
const context = useSnapCarouselContext("SnapCarouselViewport");
|
|
49
|
+
const resolvedRole = role ?? (ariaLabel || ariaLabelledBy ? "region" : void 0);
|
|
50
|
+
return /* @__PURE__ */ jsx(SnapCarouselViewportPresenceContext.Provider, {
|
|
51
|
+
value: true,
|
|
52
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
53
|
+
"data-slot": "snap-carousel-viewport",
|
|
54
|
+
"aria-label": ariaLabel,
|
|
55
|
+
"aria-labelledby": ariaLabelledBy,
|
|
56
|
+
role: resolvedRole,
|
|
57
|
+
tabIndex,
|
|
58
|
+
className: clsx(SnapCarousel_module_default.viewport, className),
|
|
59
|
+
...props,
|
|
60
|
+
ref: context.setViewport
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function SnapCarouselContent({ "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, children, className, itemClassName, onKeyDown, tabIndex, ...props }) {
|
|
65
|
+
const isInsideViewport = useContext(SnapCarouselViewportPresenceContext);
|
|
66
|
+
const contentChildren = isInsideViewport ? children : Children.map(children, (child) => /* @__PURE__ */ jsx(SnapCarouselItem, {
|
|
67
|
+
className: itemClassName,
|
|
68
|
+
children: child
|
|
69
|
+
}));
|
|
70
|
+
const content = /* @__PURE__ */ jsx("div", {
|
|
71
|
+
"data-slot": "snap-carousel-content",
|
|
72
|
+
className: clsx(SnapCarousel_module_default.content, className),
|
|
73
|
+
...props,
|
|
74
|
+
children: contentChildren
|
|
75
|
+
});
|
|
76
|
+
if (isInsideViewport) return content;
|
|
77
|
+
return /* @__PURE__ */ jsx(SnapCarouselViewport, {
|
|
78
|
+
"aria-describedby": ariaDescribedBy,
|
|
79
|
+
"aria-label": ariaLabel,
|
|
80
|
+
"aria-labelledby": ariaLabelledBy,
|
|
81
|
+
tabIndex,
|
|
82
|
+
onKeyDown,
|
|
83
|
+
children: content
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function SnapCarouselItem({ className, ...props }) {
|
|
87
|
+
return /* @__PURE__ */ jsx("div", {
|
|
88
|
+
"data-slot": "snap-carousel-item",
|
|
89
|
+
className: clsx(SnapCarousel_module_default.item, className),
|
|
90
|
+
...props
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function SnapCarouselControl({ children, className, direction, onClick, type = "button", "aria-label": ariaLabel, ...props }) {
|
|
94
|
+
const context = useSnapCarouselContext(direction === "previous" ? "SnapCarouselPrevious" : "SnapCarouselNext");
|
|
95
|
+
const isPrevious = direction === "previous";
|
|
96
|
+
const Icon = isPrevious ? context.orientation === "vertical" ? ChevronUpIcon : ChevronLeftIcon : context.orientation === "vertical" ? ChevronDownIcon : ChevronRightIcon;
|
|
97
|
+
const handleClick = (event) => {
|
|
98
|
+
onClick?.(event);
|
|
99
|
+
if (event.defaultPrevented) return;
|
|
100
|
+
context.scrollViewport(direction);
|
|
101
|
+
};
|
|
102
|
+
return /* @__PURE__ */ jsx("button", {
|
|
103
|
+
"data-slot": `snap-carousel-${direction}`,
|
|
104
|
+
"aria-label": children ? ariaLabel : ariaLabel ?? (isPrevious ? "Previous slide" : "Next slide"),
|
|
105
|
+
className: clsx(SnapCarousel_module_default.control, isPrevious ? SnapCarousel_module_default.previous : SnapCarousel_module_default.next, className),
|
|
106
|
+
type,
|
|
107
|
+
onClick: handleClick,
|
|
108
|
+
...props,
|
|
109
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, {})
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function SnapCarouselPrevious(props) {
|
|
113
|
+
return /* @__PURE__ */ jsx(SnapCarouselControl, {
|
|
114
|
+
direction: "previous",
|
|
115
|
+
...props
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function SnapCarouselNext(props) {
|
|
119
|
+
return /* @__PURE__ */ jsx(SnapCarouselControl, {
|
|
120
|
+
direction: "next",
|
|
121
|
+
...props
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { SnapCarousel, SnapCarouselContent, SnapCarouselItem, SnapCarouselNext, SnapCarouselPrevious, SnapCarouselViewport };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './SnapCarousel.css';
|
|
2
|
+
//#region src/components/SnapCarousel/SnapCarousel.module.css
|
|
3
|
+
var SnapCarousel_module_default = {
|
|
4
|
+
"content": "_4RLCYW_content",
|
|
5
|
+
"control": "_4RLCYW_control",
|
|
6
|
+
"item": "_4RLCYW_item",
|
|
7
|
+
"next": "_4RLCYW_next",
|
|
8
|
+
"previous": "_4RLCYW_previous",
|
|
9
|
+
"root": "_4RLCYW_root",
|
|
10
|
+
"viewport": "_4RLCYW_viewport"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.default = SnapCarousel_module_default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './SnapCarousel.css';
|
|
2
|
+
//#region src/components/SnapCarousel/SnapCarousel.module.css
|
|
3
|
+
var SnapCarousel_module_default = {
|
|
4
|
+
"content": "_4RLCYW_content",
|
|
5
|
+
"control": "_4RLCYW_control",
|
|
6
|
+
"item": "_4RLCYW_item",
|
|
7
|
+
"next": "_4RLCYW_next",
|
|
8
|
+
"previous": "_4RLCYW_previous",
|
|
9
|
+
"root": "_4RLCYW_root",
|
|
10
|
+
"viewport": "_4RLCYW_viewport"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SnapCarousel_module_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { SnapCarousel, SnapCarouselAlign, SnapCarouselContent, SnapCarouselContentProps, SnapCarouselItem, SnapCarouselNext, SnapCarouselOrientation, SnapCarouselPrevious, SnapCarouselProps, SnapCarouselViewport } from "./SnapCarousel.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Spinner_module = require("./Spinner.module.cjs");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
7
|
+
function Spinner({ className, size = "md", decorative = false, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }) {
|
|
8
|
+
const accessibleLabel = decorative ? void 0 : ariaLabel ?? (ariaLabelledBy ? void 0 : "Loading");
|
|
9
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10
|
+
...props,
|
|
11
|
+
"data-slot": "spinner-root",
|
|
12
|
+
"data-size": size,
|
|
13
|
+
role: decorative ? "presentation" : "status",
|
|
14
|
+
"aria-hidden": decorative ? true : void 0,
|
|
15
|
+
"aria-label": accessibleLabel,
|
|
16
|
+
"aria-labelledby": decorative ? void 0 : ariaLabelledBy,
|
|
17
|
+
className: (0, clsx.default)(require_Spinner_module.default.root, className),
|
|
18
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
19
|
+
"data-slot": "spinner-indicator",
|
|
20
|
+
className: require_Spinner_module.default.indicator,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
23
|
+
"data-slot": "spinner-ring",
|
|
24
|
+
className: require_Spinner_module.default.ring
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.Spinner = Spinner;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.ofoevq_root {
|
|
3
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-md, 1.25rem));
|
|
4
|
+
width: var(--_spinner-size);
|
|
5
|
+
height: var(--_spinner-size);
|
|
6
|
+
color: var(--spinner-color, currentColor);
|
|
7
|
+
vertical-align: middle;
|
|
8
|
+
flex: none;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ofoevq_indicator {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
animation: var(--spinner-animation, var(--animation-spin));
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ofoevq_ring {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
border: var(--spinner-ring-border-width, .125rem) solid
|
|
26
|
+
var(--spinner-ring-track-color, color-mix(in oklab, currentColor 22%, transparent));
|
|
27
|
+
border-block-start-color: var(--spinner-color, currentColor);
|
|
28
|
+
border-radius: var(--spinner-radius, var(--radius-full));
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ofoevq_indicator :where(svg) {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ofoevq_root[data-size="xs"] {
|
|
40
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-xs, .75rem));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ofoevq_root[data-size="sm"] {
|
|
44
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-sm, 1rem));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ofoevq_root[data-size="lg"] {
|
|
48
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-lg, 1.75rem));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ofoevq_root[data-size="xl"] {
|
|
52
|
+
--_spinner-size: var(--spinner-size, var(--spinner-size-xl, 2.25rem));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (prefers-reduced-motion: reduce) {
|
|
56
|
+
.ofoevq_indicator {
|
|
57
|
+
animation: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { ComponentProps } from
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Spinner/Spinner.d.ts
|
|
2
4
|
type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
5
|
+
type SpinnerProps = ComponentProps<'span'> & {
|
|
6
|
+
size?: SpinnerSize;
|
|
7
|
+
decorative?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare function Spinner({
|
|
10
|
+
className,
|
|
11
|
+
size,
|
|
12
|
+
decorative,
|
|
13
|
+
children,
|
|
14
|
+
'aria-label': ariaLabel,
|
|
15
|
+
'aria-labelledby': ariaLabelledBy,
|
|
16
|
+
...props
|
|
17
|
+
}: SpinnerProps): import("react").JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { Spinner, type SpinnerProps, type SpinnerSize };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Spinner_module_default from "./Spinner.module.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
//#region src/components/Spinner/Spinner.tsx
|
|
5
|
+
function Spinner({ className, size = "md", decorative = false, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }) {
|
|
6
|
+
const accessibleLabel = decorative ? void 0 : ariaLabel ?? (ariaLabelledBy ? void 0 : "Loading");
|
|
7
|
+
return /* @__PURE__ */ jsx("span", {
|
|
8
|
+
...props,
|
|
9
|
+
"data-slot": "spinner-root",
|
|
10
|
+
"data-size": size,
|
|
11
|
+
role: decorative ? "presentation" : "status",
|
|
12
|
+
"aria-hidden": decorative ? true : void 0,
|
|
13
|
+
"aria-label": accessibleLabel,
|
|
14
|
+
"aria-labelledby": decorative ? void 0 : ariaLabelledBy,
|
|
15
|
+
className: clsx$1(Spinner_module_default.root, className),
|
|
16
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
17
|
+
"data-slot": "spinner-indicator",
|
|
18
|
+
className: Spinner_module_default.indicator,
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
children: children ?? /* @__PURE__ */ jsx("span", {
|
|
21
|
+
"data-slot": "spinner-ring",
|
|
22
|
+
className: Spinner_module_default.ring
|
|
23
|
+
})
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Spinner };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { Spinner, SpinnerProps, SpinnerSize } from "./Spinner.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const require_Icons = require("../../icons/ui/Icons.cjs");
|
|
2
|
+
const require_mergeClassName = require("../../utils/mergeClassName.cjs");
|
|
3
|
+
const require_Button = require("../Button/Button.cjs");
|
|
4
|
+
const require_Menu = require("../Menu/Menu.cjs");
|
|
5
|
+
const require_SplitButton_module = require("./SplitButton.module.cjs");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let clsx = require("clsx");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
//#region src/components/SplitButton/SplitButton.tsx
|
|
10
|
+
const SplitButtonContext = (0, react.createContext)(null);
|
|
11
|
+
function useSplitButtonContext(componentName) {
|
|
12
|
+
const context = (0, react.useContext)(SplitButtonContext);
|
|
13
|
+
if (!context) throw new Error(`${componentName} must be used within SplitButton.`);
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function SplitButton({ children, className, size = "md", variant = "default", ...props }) {
|
|
17
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SplitButtonContext.Provider, {
|
|
18
|
+
value: {
|
|
19
|
+
size,
|
|
20
|
+
variant
|
|
21
|
+
},
|
|
22
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Menu.Menu, {
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
25
|
+
"data-slot": "split-button-root",
|
|
26
|
+
className: (0, clsx.clsx)(require_SplitButton_module.default.root, className),
|
|
27
|
+
children
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const SplitButtonAction = (0, react.forwardRef)(function SplitButtonAction({ className, size, variant, ...props }, ref) {
|
|
33
|
+
const context = useSplitButtonContext("SplitButtonAction");
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Button.Button, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "split-button-action",
|
|
37
|
+
size: size ?? context.size,
|
|
38
|
+
variant: variant ?? context.variant,
|
|
39
|
+
className: require_mergeClassName.mergeClassName(className, require_SplitButton_module.default.action),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
function SplitButtonTrigger({ children, className, size, variant, "aria-label": ariaLabel, ...props }) {
|
|
44
|
+
const context = useSplitButtonContext("SplitButtonTrigger");
|
|
45
|
+
const resolvedChildren = children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.ChevronDownIcon, {});
|
|
46
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Menu.MenuTrigger, {
|
|
47
|
+
"data-slot": "split-button-trigger",
|
|
48
|
+
"aria-label": children ? ariaLabel : ariaLabel ?? "More actions",
|
|
49
|
+
className: require_mergeClassName.mergeClassName(className, require_SplitButton_module.default.trigger),
|
|
50
|
+
render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Button.Button, {
|
|
51
|
+
size: size ?? context.size,
|
|
52
|
+
variant: variant ?? context.variant
|
|
53
|
+
}),
|
|
54
|
+
...props,
|
|
55
|
+
children: resolvedChildren
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function SplitButtonContent({ align = "end", sideOffset = 4, ...props }) {
|
|
59
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Menu.MenuContent, {
|
|
60
|
+
align,
|
|
61
|
+
sideOffset,
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
exports.SplitButton = SplitButton;
|
|
67
|
+
exports.SplitButtonAction = SplitButtonAction;
|
|
68
|
+
exports.SplitButtonContent = SplitButtonContent;
|
|
69
|
+
exports.SplitButtonTrigger = SplitButtonTrigger;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._6bYSkW_root {
|
|
3
|
+
align-items: stretch;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
._6bYSkW_action {
|
|
8
|
+
border-start-end-radius: 0;
|
|
9
|
+
border-end-end-radius: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
._6bYSkW_trigger {
|
|
13
|
+
min-width: 0;
|
|
14
|
+
border-start-start-radius: 0;
|
|
15
|
+
border-end-start-radius: 0;
|
|
16
|
+
margin-inline-start: calc(var(--button-border-width, var(--border-width-sm)) * -1);
|
|
17
|
+
padding-inline: .75rem;
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._6bYSkW_trigger:before {
|
|
22
|
+
content: "";
|
|
23
|
+
opacity: .16;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
background-color: currentColor;
|
|
26
|
+
width: 1px;
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset-block: .375rem;
|
|
29
|
+
inset-inline-start: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
._6bYSkW_trigger[data-variant="outline"]:before, ._6bYSkW_trigger[data-variant="destructive-outline"]:before {
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
._6bYSkW_trigger[data-size="xs"] {
|
|
37
|
+
padding-inline: .5rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
._6bYSkW_trigger[data-size="sm"] {
|
|
41
|
+
padding-inline: .625rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
._6bYSkW_trigger[data-size="md"] {
|
|
45
|
+
padding-inline: .75rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
._6bYSkW_trigger[data-size="lg"] {
|
|
49
|
+
padding-inline: .875rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
._6bYSkW_trigger[data-size="xl"] {
|
|
53
|
+
padding-inline: 1rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
._6bYSkW_trigger :where(svg) {
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ButtonProps, ButtonSize, ButtonVariant } from "../Button/Button.js";
|
|
2
|
+
import { MenuContentProps } from "../Menu/Menu.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { Menu } from "@base-ui/react/menu";
|
|
5
|
+
|
|
6
|
+
//#region src/components/SplitButton/SplitButton.d.ts
|
|
7
|
+
type SplitButtonVariant = Exclude<ButtonVariant, 'link'>;
|
|
8
|
+
type SplitButtonSize = Exclude<ButtonSize, 'icon-sm' | 'icon-md' | 'icon-lg'>;
|
|
9
|
+
type SplitButtonProps = Omit<Menu.Root.Props, 'children'> & {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
size?: SplitButtonSize;
|
|
13
|
+
variant?: SplitButtonVariant;
|
|
14
|
+
};
|
|
15
|
+
type SplitButtonActionProps = Omit<ButtonProps, 'size' | 'variant'> & {
|
|
16
|
+
size?: SplitButtonSize;
|
|
17
|
+
variant?: SplitButtonVariant;
|
|
18
|
+
};
|
|
19
|
+
type SplitButtonTriggerProps = Omit<Menu.Trigger.Props, 'render'> & {
|
|
20
|
+
size?: SplitButtonSize;
|
|
21
|
+
variant?: SplitButtonVariant;
|
|
22
|
+
};
|
|
23
|
+
type SplitButtonContentProps = MenuContentProps;
|
|
24
|
+
declare function SplitButton({
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
size,
|
|
28
|
+
variant,
|
|
29
|
+
...props
|
|
30
|
+
}: SplitButtonProps): import("react").JSX.Element;
|
|
31
|
+
declare const SplitButtonAction: import("react").ForwardRefExoticComponent<Omit<SplitButtonActionProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
32
|
+
declare function SplitButtonTrigger({
|
|
33
|
+
children,
|
|
34
|
+
className,
|
|
35
|
+
size,
|
|
36
|
+
variant,
|
|
37
|
+
'aria-label': ariaLabel,
|
|
38
|
+
...props
|
|
39
|
+
}: SplitButtonTriggerProps): import("react").JSX.Element;
|
|
40
|
+
declare function SplitButtonContent({
|
|
41
|
+
align,
|
|
42
|
+
sideOffset,
|
|
43
|
+
...props
|
|
44
|
+
}: SplitButtonContentProps): import("react").JSX.Element;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { SplitButton, SplitButtonAction, type SplitButtonActionProps, SplitButtonContent, type SplitButtonContentProps, type SplitButtonProps, type SplitButtonSize, SplitButtonTrigger, type SplitButtonTriggerProps, type SplitButtonVariant };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ChevronDownIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
3
|
+
import { Button } from "../Button/Button.js";
|
|
4
|
+
import { Menu, MenuContent, MenuTrigger } from "../Menu/Menu.js";
|
|
5
|
+
import SplitButton_module_default from "./SplitButton.module.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { createContext, forwardRef, useContext } from "react";
|
|
9
|
+
//#region src/components/SplitButton/SplitButton.tsx
|
|
10
|
+
const SplitButtonContext = createContext(null);
|
|
11
|
+
function useSplitButtonContext(componentName) {
|
|
12
|
+
const context = useContext(SplitButtonContext);
|
|
13
|
+
if (!context) throw new Error(`${componentName} must be used within SplitButton.`);
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function SplitButton({ children, className, size = "md", variant = "default", ...props }) {
|
|
17
|
+
return /* @__PURE__ */ jsx(SplitButtonContext.Provider, {
|
|
18
|
+
value: {
|
|
19
|
+
size,
|
|
20
|
+
variant
|
|
21
|
+
},
|
|
22
|
+
children: /* @__PURE__ */ jsx(Menu, {
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
25
|
+
"data-slot": "split-button-root",
|
|
26
|
+
className: clsx(SplitButton_module_default.root, className),
|
|
27
|
+
children
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const SplitButtonAction = forwardRef(function SplitButtonAction({ className, size, variant, ...props }, ref) {
|
|
33
|
+
const context = useSplitButtonContext("SplitButtonAction");
|
|
34
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "split-button-action",
|
|
37
|
+
size: size ?? context.size,
|
|
38
|
+
variant: variant ?? context.variant,
|
|
39
|
+
className: mergeClassName(className, SplitButton_module_default.action),
|
|
40
|
+
...props
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
function SplitButtonTrigger({ children, className, size, variant, "aria-label": ariaLabel, ...props }) {
|
|
44
|
+
const context = useSplitButtonContext("SplitButtonTrigger");
|
|
45
|
+
const resolvedChildren = children ?? /* @__PURE__ */ jsx(ChevronDownIcon, {});
|
|
46
|
+
return /* @__PURE__ */ jsx(MenuTrigger, {
|
|
47
|
+
"data-slot": "split-button-trigger",
|
|
48
|
+
"aria-label": children ? ariaLabel : ariaLabel ?? "More actions",
|
|
49
|
+
className: mergeClassName(className, SplitButton_module_default.trigger),
|
|
50
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
51
|
+
size: size ?? context.size,
|
|
52
|
+
variant: variant ?? context.variant
|
|
53
|
+
}),
|
|
54
|
+
...props,
|
|
55
|
+
children: resolvedChildren
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function SplitButtonContent({ align = "end", sideOffset = 4, ...props }) {
|
|
59
|
+
return /* @__PURE__ */ jsx(MenuContent, {
|
|
60
|
+
align,
|
|
61
|
+
sideOffset,
|
|
62
|
+
...props
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { SplitButton, SplitButtonAction, SplitButtonContent, SplitButtonTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './SplitButton.css';
|
|
2
|
+
//#region src/components/SplitButton/SplitButton.module.css
|
|
3
|
+
var SplitButton_module_default = {
|
|
4
|
+
"action": "_6bYSkW_action",
|
|
5
|
+
"root": "_6bYSkW_root",
|
|
6
|
+
"trigger": "_6bYSkW_trigger"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = SplitButton_module_default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './SplitButton.css';
|
|
2
|
+
//#region src/components/SplitButton/SplitButton.module.css
|
|
3
|
+
var SplitButton_module_default = {
|
|
4
|
+
"action": "_6bYSkW_action",
|
|
5
|
+
"root": "_6bYSkW_root",
|
|
6
|
+
"trigger": "_6bYSkW_trigger"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SplitButton_module_default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { SplitButton, SplitButtonAction, SplitButtonActionProps, SplitButtonContent, SplitButtonContentProps, SplitButtonProps, SplitButtonSize, SplitButtonTrigger, SplitButtonTriggerProps, SplitButtonVariant } from "./SplitButton.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_Stack_module = require("./Stack.module.cjs");
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let clsx = require("clsx");
|
|
4
|
+
//#region src/components/Stack/Stack.tsx
|
|
5
|
+
function Stack({ as: Root = "div", className, style, direction, gap, align, justify, wrap, fill, ...props }) {
|
|
6
|
+
const responsiveDirection = typeof direction === "string" ? {
|
|
7
|
+
mobile: direction,
|
|
8
|
+
desktop: direction
|
|
9
|
+
} : direction;
|
|
10
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Root, {
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "stack-root",
|
|
13
|
+
className: (0, clsx.clsx)(require_Stack_module.default.root, className),
|
|
14
|
+
style: {
|
|
15
|
+
"--stack-direction-desktop": responsiveDirection?.desktop ?? responsiveDirection?.mobile ?? "column",
|
|
16
|
+
"--stack-direction-mobile": responsiveDirection?.mobile ?? responsiveDirection?.desktop ?? "column",
|
|
17
|
+
"--stack-flex": fill ? "1 1 0" : "initial",
|
|
18
|
+
gap,
|
|
19
|
+
alignItems: align,
|
|
20
|
+
justifyContent: justify,
|
|
21
|
+
flexWrap: wrap,
|
|
22
|
+
...style
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.Stack = Stack;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.PtMr7W_root {
|
|
3
|
+
flex: var(--stack-flex, initial);
|
|
4
|
+
flex-direction: var(--stack-direction-mobile, column);
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (width >= 640px) {
|
|
9
|
+
.PtMr7W_root {
|
|
10
|
+
flex-direction: var(--stack-direction-desktop, var(--stack-direction-mobile, column));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|