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,194 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._1ruXdW_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--button-content-gap, var(--spacing-2));
|
|
7
|
+
border: var(--button-border-width, var(--border-width-sm)) solid transparent;
|
|
8
|
+
border-radius: var(--button-radius, var(--radius-md));
|
|
9
|
+
color: var(--button-color, var(--color-foreground));
|
|
10
|
+
appearance: none;
|
|
11
|
+
font: inherit;
|
|
12
|
+
font-size: var(--button-font-size, var(--text-sm));
|
|
13
|
+
font-weight: var(--button-font-weight, var(--weight-medium));
|
|
14
|
+
line-height: var(--button-line-height, var(--line-height-text-sm));
|
|
15
|
+
user-select: none;
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition: background-color var(--button-transition, var(--transition-default)),
|
|
19
|
+
border-color var(--button-transition, var(--transition-default)),
|
|
20
|
+
color var(--button-transition, var(--transition-default)),
|
|
21
|
+
opacity var(--button-transition, var(--transition-default)),
|
|
22
|
+
box-shadow var(--button-transition, var(--transition-default));
|
|
23
|
+
background-color: #0000;
|
|
24
|
+
margin: 0;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
position: relative;
|
|
28
|
+
|
|
29
|
+
&:focus-visible {
|
|
30
|
+
outline: var(--button-focus-ring-width, var(--border-width-md)) solid
|
|
31
|
+
var(--button-focus-ring-color, var(--color-ring));
|
|
32
|
+
outline-offset: calc(var(--button-focus-ring-offset, var(--button-border-width, var(--border-width-sm))) * -1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-disabled], &[disabled] {
|
|
36
|
+
opacity: var(--button-disabled-opacity, var(--opacity-disabled));
|
|
37
|
+
cursor: default;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& :where(svg) {
|
|
42
|
+
width: var(--button-icon-size, 1rem);
|
|
43
|
+
height: var(--button-icon-size, 1rem);
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-variant="default"] {
|
|
48
|
+
border-color: var(--button-default-border-color, var(--color-primary));
|
|
49
|
+
background-color: var(--button-default-bg, var(--color-primary));
|
|
50
|
+
color: var(--button-default-color, var(--color-primary-foreground));
|
|
51
|
+
|
|
52
|
+
@media (hover: hover) {
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: var(--button-default-bg-hover, var(--color-foreground));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[data-variant="outline"] {
|
|
60
|
+
border-color: var(--button-outline-border-color, var(--color-border));
|
|
61
|
+
background-color: var(--button-outline-bg, var(--color-background));
|
|
62
|
+
color: var(--button-outline-color, var(--color-foreground));
|
|
63
|
+
|
|
64
|
+
@media (hover: hover) {
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: var(--button-outline-bg-hover, var(--color-accent));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-variant="secondary"] {
|
|
72
|
+
border-color: var(--button-secondary-border-color, var(--color-secondary));
|
|
73
|
+
background-color: var(--button-secondary-bg, var(--color-secondary));
|
|
74
|
+
color: var(--button-secondary-color, var(--color-secondary-foreground));
|
|
75
|
+
|
|
76
|
+
@media (hover: hover) {
|
|
77
|
+
&:hover {
|
|
78
|
+
background-color: var(--button-secondary-bg-hover, var(--color-accent));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[data-variant="destructive"] {
|
|
84
|
+
border-color: var(--button-destructive-border-color, var(--color-destructive));
|
|
85
|
+
background-color: var(--button-destructive-bg, var(--color-destructive));
|
|
86
|
+
color: var(--button-destructive-color, var(--color-primary-foreground));
|
|
87
|
+
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
&:hover {
|
|
90
|
+
filter: brightness(var(--button-destructive-hover-brightness, .96));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[data-variant="destructive-outline"] {
|
|
96
|
+
border-color: var(--button-destructive-outline-border-color, var(--color-destructive));
|
|
97
|
+
background-color: var(--button-destructive-outline-bg, var(--color-background));
|
|
98
|
+
color: var(--button-destructive-outline-color, var(--color-destructive));
|
|
99
|
+
|
|
100
|
+
@media (hover: hover) {
|
|
101
|
+
&:hover {
|
|
102
|
+
background-color: var(--button-destructive-outline-bg-hover, var(--color-destructive));
|
|
103
|
+
color: var(--button-destructive-outline-color-hover, var(--button-destructive-color, var(--color-primary-foreground)));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&[data-variant="ghost"] {
|
|
109
|
+
border-color: var(--button-ghost-border-color, transparent);
|
|
110
|
+
background-color: var(--button-ghost-bg, transparent);
|
|
111
|
+
color: var(--button-ghost-color, var(--color-foreground));
|
|
112
|
+
|
|
113
|
+
@media (hover: hover) {
|
|
114
|
+
&:hover {
|
|
115
|
+
background-color: var(--button-ghost-bg-hover, var(--color-accent));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[data-variant="link"] {
|
|
121
|
+
color: var(--button-link-color, var(--color-primary));
|
|
122
|
+
text-decoration: var(--button-link-text-decoration, underline);
|
|
123
|
+
text-underline-offset: var(--button-link-underline-offset, .25em);
|
|
124
|
+
background-color: #0000;
|
|
125
|
+
border-color: #0000;
|
|
126
|
+
padding-inline: 0;
|
|
127
|
+
|
|
128
|
+
@media (hover: hover) {
|
|
129
|
+
&:hover {
|
|
130
|
+
color: var(--button-link-color-hover, var(--color-foreground));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&[data-size="xs"] {
|
|
136
|
+
min-height: var(--button-size-xs, var(--size-xs));
|
|
137
|
+
padding-block: var(--button-padding-y-xs, .25rem);
|
|
138
|
+
padding-inline: var(--button-padding-x-xs, .625rem);
|
|
139
|
+
font-size: var(--button-font-size-xs, var(--text-xs));
|
|
140
|
+
line-height: var(--button-line-height-xs, var(--line-height-text-xs));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&[data-size="sm"] {
|
|
144
|
+
min-height: var(--button-size-sm, var(--size-sm));
|
|
145
|
+
padding-block: var(--button-padding-y-sm, .375rem);
|
|
146
|
+
padding-inline: var(--button-padding-x-sm, .75rem);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[data-size="md"] {
|
|
150
|
+
min-height: var(--button-size-md, var(--size-lg));
|
|
151
|
+
padding-block: var(--button-padding-y-md, .5rem);
|
|
152
|
+
padding-inline: var(--button-padding-x-md, 1rem);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&[data-size="lg"] {
|
|
156
|
+
min-height: var(--button-size-lg, var(--size-xl));
|
|
157
|
+
padding-block: var(--button-padding-y-lg, .625rem);
|
|
158
|
+
padding-inline: var(--button-padding-x-lg, 1.25rem);
|
|
159
|
+
font-size: var(--button-font-size-lg, var(--text-md));
|
|
160
|
+
line-height: var(--button-line-height-lg, var(--line-height-text-md));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&[data-size="xl"] {
|
|
164
|
+
min-height: var(--button-size-xl, 3.5rem);
|
|
165
|
+
padding-block: var(--button-padding-y-xl, .75rem);
|
|
166
|
+
padding-inline: var(--button-padding-x-xl, 1.5rem);
|
|
167
|
+
font-size: var(--button-font-size-xl, var(--text-lg));
|
|
168
|
+
line-height: var(--button-line-height-xl, var(--line-height-text-lg));
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&[data-size="icon-sm"], &[data-size="icon-md"], &[data-size="icon-lg"] {
|
|
172
|
+
gap: 0;
|
|
173
|
+
padding: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&[data-size="icon-sm"] {
|
|
177
|
+
width: var(--button-size-icon-sm, var(--size-sm));
|
|
178
|
+
min-width: var(--button-size-icon-sm, var(--size-sm));
|
|
179
|
+
height: var(--button-size-icon-sm, var(--size-sm));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&[data-size="icon-md"] {
|
|
183
|
+
width: var(--button-size-icon-md, var(--size-lg));
|
|
184
|
+
min-width: var(--button-size-icon-md, var(--size-lg));
|
|
185
|
+
height: var(--button-size-icon-md, var(--size-lg));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&[data-size="icon-lg"] {
|
|
189
|
+
width: var(--button-size-icon-lg, var(--size-xl));
|
|
190
|
+
min-width: var(--button-size-icon-lg, var(--size-xl));
|
|
191
|
+
height: var(--button-size-icon-lg, var(--size-xl));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Button } from "@base-ui/react/button";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Button/Button.d.ts
|
|
4
|
+
type ButtonVariant = 'default' | 'outline' | 'secondary' | 'destructive' | 'destructive-outline' | 'ghost' | 'link';
|
|
5
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'icon-sm' | 'icon-md' | 'icon-lg';
|
|
6
|
+
type ButtonProps = Button.Props & {
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
};
|
|
10
|
+
declare const Button$1: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Button$1 as Button, type ButtonProps, type ButtonSize, type ButtonVariant };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
2
|
+
import Button_module_default from "./Button.module.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { Button } from "@base-ui/react/button";
|
|
6
|
+
//#region src/components/Button/Button.tsx
|
|
7
|
+
const Button$1 = forwardRef(function Button$2({ className, size = "md", variant = "default", ...props }, ref) {
|
|
8
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9
|
+
ref,
|
|
10
|
+
"data-slot": "button-root",
|
|
11
|
+
"data-variant": variant,
|
|
12
|
+
"data-size": size,
|
|
13
|
+
className: mergeClassName(className, Button_module_default.root),
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Button$1 as Button };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { Button, ButtonProps, ButtonSize, ButtonVariant } from "./Button.js";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_Card_module = require("./Card.module.cjs");
|
|
3
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
+
let clsx = require("clsx");
|
|
5
|
+
clsx = require_runtime.__toESM(clsx);
|
|
6
|
+
let _base_ui_react_use_render = require("@base-ui/react/use-render");
|
|
7
|
+
//#region src/components/Card/Card.tsx
|
|
8
|
+
function Card({ className, render, size = "default", ...props }) {
|
|
9
|
+
return (0, _base_ui_react_use_render.useRender)({
|
|
10
|
+
defaultTagName: "div",
|
|
11
|
+
render,
|
|
12
|
+
props: {
|
|
13
|
+
...props,
|
|
14
|
+
"data-slot": "card",
|
|
15
|
+
"data-size": size,
|
|
16
|
+
className: (0, clsx.default)(require_Card_module.default.root, className)
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function CardHeader({ className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
22
|
+
"data-slot": "card-header",
|
|
23
|
+
className: (0, clsx.default)(require_Card_module.default.header, className),
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function CardContent({ className, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
29
|
+
"data-slot": "card-content",
|
|
30
|
+
className: (0, clsx.default)(require_Card_module.default.content, className),
|
|
31
|
+
...props
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function CardFooter({ className, ...props }) {
|
|
35
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
36
|
+
"data-slot": "card-footer",
|
|
37
|
+
className: (0, clsx.default)(require_Card_module.default.footer, className),
|
|
38
|
+
...props
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function CardTitle({ as: Root = "h3", className, ...props }) {
|
|
42
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Root, {
|
|
43
|
+
"data-slot": "card-title",
|
|
44
|
+
className: (0, clsx.default)(require_Card_module.default.title, className),
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function CardDescription({ className, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
50
|
+
"data-slot": "card-description",
|
|
51
|
+
className: (0, clsx.default)(require_Card_module.default.description, className),
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function CardAction({ className, ...props }) {
|
|
56
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
57
|
+
"data-slot": "card-action",
|
|
58
|
+
className: (0, clsx.default)(require_Card_module.default.action, className),
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function CardLink({ className, render, ...props }) {
|
|
63
|
+
return (0, _base_ui_react_use_render.useRender)({
|
|
64
|
+
defaultTagName: "a",
|
|
65
|
+
render,
|
|
66
|
+
props: {
|
|
67
|
+
...props,
|
|
68
|
+
"data-slot": "card-link",
|
|
69
|
+
className: (0, clsx.default)(require_Card_module.default.link, className)
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
exports.Card = Card;
|
|
75
|
+
exports.CardAction = CardAction;
|
|
76
|
+
exports.CardContent = CardContent;
|
|
77
|
+
exports.CardDescription = CardDescription;
|
|
78
|
+
exports.CardFooter = CardFooter;
|
|
79
|
+
exports.CardHeader = CardHeader;
|
|
80
|
+
exports.CardLink = CardLink;
|
|
81
|
+
exports.CardTitle = CardTitle;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._06ECia_root {
|
|
3
|
+
--card-padding-default: var(--card-padding, var(--spacing-6));
|
|
4
|
+
--card-title-font-size-default: var(--card-title-font-size, var(--text-lg));
|
|
5
|
+
--card-title-line-height-default: var(--card-title-line-height, var(--line-height-text-lg));
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border: var(--card-border-width, var(--border-width-sm)) solid
|
|
8
|
+
var(--card-border-color, var(--color-border));
|
|
9
|
+
border-radius: var(--card-radius, var(--radius-lg));
|
|
10
|
+
background-color: var(--card-bg, var(--color-card));
|
|
11
|
+
width: 100%;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
color: var(--card-color, var(--color-card-foreground));
|
|
14
|
+
box-shadow: var(--card-shadow, none);
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
display: flex;
|
|
17
|
+
position: relative;
|
|
18
|
+
|
|
19
|
+
&:where(a) {
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-size="sm"] {
|
|
24
|
+
--card-padding-default: var(--card-padding-sm, var(--spacing-4));
|
|
25
|
+
--card-title-font-size-default: var(--card-title-font-size-sm, var(--text-md));
|
|
26
|
+
--card-title-line-height-default: var(--card-title-line-height-sm, var(--line-height-text-md));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:has(._06ECia_link) :where(a, button, input, select, textarea, [role="button"], [role="checkbox"], [role="menuitem"], [role="switch"], [tabindex]:not([tabindex="-1"])):not(._06ECia_link) {
|
|
30
|
+
z-index: 1;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
& ._06ECia_link {
|
|
35
|
+
position: static;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
._06ECia_header, ._06ECia_content, ._06ECia_footer {
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
padding-inline: var(--card-padding-default);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._06ECia_header {
|
|
46
|
+
column-gap: var(--card-action-gap, var(--spacing-2));
|
|
47
|
+
row-gap: var(--card-header-gap, var(--spacing-1));
|
|
48
|
+
padding-block: var(--card-padding-default) 0;
|
|
49
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
50
|
+
display: grid;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._06ECia_content {
|
|
54
|
+
padding-block: var(--card-content-padding-top, var(--spacing-4)) var(--card-padding-default);
|
|
55
|
+
color: var(--card-content-color, var(--color-muted-foreground));
|
|
56
|
+
font-size: var(--card-content-font-size, var(--text-sm));
|
|
57
|
+
line-height: var(--card-content-line-height, var(--line-height-text-sm));
|
|
58
|
+
overflow-wrap: anywhere;
|
|
59
|
+
|
|
60
|
+
&:first-child {
|
|
61
|
+
padding-block-start: var(--card-padding-default);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& > :first-child {
|
|
65
|
+
margin-top: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
& > :last-child {
|
|
69
|
+
margin-bottom: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
._06ECia_footer {
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: var(--card-footer-gap, var(--spacing-2));
|
|
76
|
+
padding-block: 0 var(--card-padding-default);
|
|
77
|
+
flex-wrap: wrap;
|
|
78
|
+
display: flex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
._06ECia_title {
|
|
82
|
+
min-width: 0;
|
|
83
|
+
color: var(--card-title-color, currentColor);
|
|
84
|
+
font-size: var(--card-title-font-size-default);
|
|
85
|
+
font-weight: var(--card-title-font-weight, var(--weight-semibold));
|
|
86
|
+
line-height: var(--card-title-line-height-default);
|
|
87
|
+
overflow-wrap: anywhere;
|
|
88
|
+
grid-column: 1;
|
|
89
|
+
margin: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
._06ECia_description {
|
|
93
|
+
min-width: 0;
|
|
94
|
+
color: var(--card-description-color, var(--color-muted-foreground));
|
|
95
|
+
font-size: var(--card-description-font-size, var(--text-sm));
|
|
96
|
+
line-height: var(--card-description-line-height, var(--line-height-text-sm));
|
|
97
|
+
overflow-wrap: anywhere;
|
|
98
|
+
grid-column: 1;
|
|
99
|
+
margin: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._06ECia_action {
|
|
103
|
+
z-index: 1;
|
|
104
|
+
justify-content: flex-end;
|
|
105
|
+
align-items: start;
|
|
106
|
+
gap: var(--card-action-gap, var(--spacing-2));
|
|
107
|
+
grid-area: 1 / 2 / span 2;
|
|
108
|
+
justify-self: end;
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
position: relative;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
._06ECia_link {
|
|
114
|
+
color: inherit;
|
|
115
|
+
text-decoration: none;
|
|
116
|
+
position: relative;
|
|
117
|
+
|
|
118
|
+
&:after {
|
|
119
|
+
content: "";
|
|
120
|
+
z-index: 0;
|
|
121
|
+
border-radius: var(--card-radius, var(--radius-lg));
|
|
122
|
+
position: absolute;
|
|
123
|
+
inset: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:focus-visible {
|
|
127
|
+
outline: 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&:focus-visible:after {
|
|
131
|
+
outline: var(--card-focus-ring-width, var(--border-width-md)) solid
|
|
132
|
+
var(--card-focus-ring-color, var(--color-ring));
|
|
133
|
+
outline-offset: var(--card-focus-ring-offset, var(--border-width-sm));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -1,13 +1,48 @@
|
|
|
1
|
-
import { ComponentProps, ComponentPropsWithoutRef } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
declare function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { ComponentProps, ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Card/Card.d.ts
|
|
5
|
+
type CardSize = 'default' | 'sm';
|
|
6
|
+
type CardTitleElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
|
+
declare function Card({
|
|
8
|
+
className,
|
|
9
|
+
render,
|
|
10
|
+
size,
|
|
11
|
+
...props
|
|
12
|
+
}: useRender.ComponentProps<'div'> & {
|
|
13
|
+
size?: CardSize;
|
|
14
|
+
}): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
15
|
+
declare function CardHeader({
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
19
|
+
declare function CardContent({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
23
|
+
declare function CardFooter({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
27
|
+
declare function CardTitle({
|
|
28
|
+
as: Root,
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
}: ComponentPropsWithoutRef<'h3'> & {
|
|
32
|
+
as?: CardTitleElement;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
declare function CardDescription({
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: ComponentProps<'p'>): import("react").JSX.Element;
|
|
38
|
+
declare function CardAction({
|
|
39
|
+
className,
|
|
40
|
+
...props
|
|
41
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
42
|
+
declare function CardLink({
|
|
43
|
+
className,
|
|
44
|
+
render,
|
|
45
|
+
...props
|
|
46
|
+
}: useRender.ComponentProps<'a'>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardLink, type CardSize, CardTitle, type CardTitleElement };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import Card_module_default from "./Card.module.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
5
|
+
//#region src/components/Card/Card.tsx
|
|
6
|
+
function Card({ className, render, size = "default", ...props }) {
|
|
7
|
+
return useRender({
|
|
8
|
+
defaultTagName: "div",
|
|
9
|
+
render,
|
|
10
|
+
props: {
|
|
11
|
+
...props,
|
|
12
|
+
"data-slot": "card",
|
|
13
|
+
"data-size": size,
|
|
14
|
+
className: clsx$1(Card_module_default.root, className)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function CardHeader({ className, ...props }) {
|
|
19
|
+
return /* @__PURE__ */ jsx("div", {
|
|
20
|
+
"data-slot": "card-header",
|
|
21
|
+
className: clsx$1(Card_module_default.header, className),
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function CardContent({ className, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
"data-slot": "card-content",
|
|
28
|
+
className: clsx$1(Card_module_default.content, className),
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function CardFooter({ className, ...props }) {
|
|
33
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34
|
+
"data-slot": "card-footer",
|
|
35
|
+
className: clsx$1(Card_module_default.footer, className),
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function CardTitle({ as: Root = "h3", className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ jsx(Root, {
|
|
41
|
+
"data-slot": "card-title",
|
|
42
|
+
className: clsx$1(Card_module_default.title, className),
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function CardDescription({ className, ...props }) {
|
|
47
|
+
return /* @__PURE__ */ jsx("p", {
|
|
48
|
+
"data-slot": "card-description",
|
|
49
|
+
className: clsx$1(Card_module_default.description, className),
|
|
50
|
+
...props
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function CardAction({ className, ...props }) {
|
|
54
|
+
return /* @__PURE__ */ jsx("div", {
|
|
55
|
+
"data-slot": "card-action",
|
|
56
|
+
className: clsx$1(Card_module_default.action, className),
|
|
57
|
+
...props
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function CardLink({ className, render, ...props }) {
|
|
61
|
+
return useRender({
|
|
62
|
+
defaultTagName: "a",
|
|
63
|
+
render,
|
|
64
|
+
props: {
|
|
65
|
+
...props,
|
|
66
|
+
"data-slot": "card-link",
|
|
67
|
+
className: clsx$1(Card_module_default.link, className)
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardLink, CardTitle };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './Card.css';
|
|
2
|
+
//#region src/components/Card/Card.module.css
|
|
3
|
+
var Card_module_default = {
|
|
4
|
+
"action": "_06ECia_action",
|
|
5
|
+
"content": "_06ECia_content",
|
|
6
|
+
"description": "_06ECia_description",
|
|
7
|
+
"footer": "_06ECia_footer",
|
|
8
|
+
"header": "_06ECia_header",
|
|
9
|
+
"link": "_06ECia_link",
|
|
10
|
+
"root": "_06ECia_root",
|
|
11
|
+
"title": "_06ECia_title"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.default = Card_module_default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './Card.css';
|
|
2
|
+
//#region src/components/Card/Card.module.css
|
|
3
|
+
var Card_module_default = {
|
|
4
|
+
"action": "_06ECia_action",
|
|
5
|
+
"content": "_06ECia_content",
|
|
6
|
+
"description": "_06ECia_description",
|
|
7
|
+
"footer": "_06ECia_footer",
|
|
8
|
+
"header": "_06ECia_header",
|
|
9
|
+
"link": "_06ECia_link",
|
|
10
|
+
"root": "_06ECia_root",
|
|
11
|
+
"title": "_06ECia_title"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Card_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardLink, CardSize, CardTitle, CardTitleElement } from "./Card.js";
|