moduix 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +13 -3
- 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.js +12 -0
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/Alert/Alert.css +114 -0
- package/dist/components/Alert/Alert.d.ts +30 -10
- package/dist/components/Alert/Alert.js +44 -0
- package/dist/components/Alert/Alert.module.js +11 -0
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.css +159 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +66 -19
- package/dist/components/AlertDialog/AlertDialog.js +107 -0
- package/dist/components/AlertDialog/AlertDialog.module.js +18 -0
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/AspectRatio/AspectRatio.css +14 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +12 -5
- package/dist/components/AspectRatio/AspectRatio.js +24 -0
- package/dist/components/AspectRatio/AspectRatio.module.js +5 -0
- package/dist/components/AspectRatio/index.d.ts +1 -2
- 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.js +37 -0
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Avatar/Avatar.css +74 -0
- package/dist/components/Avatar/Avatar.d.ts +19 -6
- package/dist/components/Avatar/Avatar.js +29 -0
- package/dist/components/Avatar/Avatar.module.js +9 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.css +66 -0
- package/dist/components/Badge/Badge.d.ts +15 -6
- package/dist/components/Badge/Badge.js +22 -0
- package/dist/components/Badge/Badge.module.js +8 -0
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.css +51 -0
- package/dist/components/Bleed/Bleed.d.ts +15 -6
- package/dist/components/Bleed/Bleed.js +15 -0
- package/dist/components/Bleed/Bleed.module.js +5 -0
- package/dist/components/Bleed/index.d.ts +1 -1
- 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.js +13 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.css +194 -0
- package/dist/components/Button/Button.d.ts +9 -7
- package/dist/components/Button/Button.js +18 -0
- package/dist/components/Button/Button.module.js +5 -0
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Card/Card.css +136 -0
- package/dist/components/Card/Card.d.ts +45 -15
- package/dist/components/Card/Card.js +72 -0
- package/dist/components/Card/Card.module.js +14 -0
- package/dist/components/Card/index.d.ts +1 -2
- 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.js +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.css +33 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +27 -9
- package/dist/components/CheckboxGroup/CheckboxGroup.js +50 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.module.js +11 -0
- package/dist/components/CheckboxGroup/index.d.ts +1 -1
- 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.js +5 -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.js +10 -0
- package/dist/components/Collapsible/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.css +497 -0
- package/dist/components/Combobox/Combobox.d.ts +58 -43
- package/dist/components/Combobox/Combobox.js +295 -0
- package/dist/components/Combobox/Combobox.module.js +42 -0
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPalette.css +375 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +134 -42
- package/dist/components/CommandPalette/CommandPalette.js +278 -0
- package/dist/components/CommandPalette/CommandPalette.module.js +30 -0
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/Container/Container.css +45 -0
- package/dist/components/Container/Container.d.ts +15 -6
- package/dist/components/Container/Container.js +15 -0
- package/dist/components/Container/Container.module.js +5 -0
- package/dist/components/Container/index.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.css +308 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +131 -38
- package/dist/components/ContextMenu/ContextMenu.js +215 -0
- package/dist/components/ContextMenu/ContextMenu.module.js +33 -0
- package/dist/components/ContextMenu/index.d.ts +1 -2
- package/dist/components/CopyButton/CopyButton.css +14 -0
- package/dist/components/CopyButton/CopyButton.d.ts +14 -13
- package/dist/components/CopyButton/CopyButton.js +66 -0
- package/dist/components/CopyButton/CopyButton.module.js +5 -0
- package/dist/components/CopyButton/index.d.ts +1 -2
- 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.js +18 -0
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.css +483 -0
- package/dist/components/Drawer/Drawer.d.ts +95 -27
- package/dist/components/Drawer/Drawer.js +182 -0
- package/dist/components/Drawer/Drawer.module.js +24 -0
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Empty/Empty.css +78 -0
- package/dist/components/Empty/Empty.d.ts +31 -9
- package/dist/components/Empty/Empty.js +48 -0
- package/dist/components/Empty/Empty.module.js +12 -0
- package/dist/components/Empty/index.d.ts +1 -1
- 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.js +12 -0
- package/dist/components/Field/index.d.ts +1 -1
- 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.js +8 -0
- package/dist/components/Fieldset/index.d.ts +1 -1
- 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.js +5 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Heading/Heading.css +50 -0
- package/dist/components/Heading/Heading.d.ts +21 -13
- package/dist/components/Heading/Heading.js +23 -0
- package/dist/components/Heading/Heading.module.js +5 -0
- package/dist/components/Heading/index.d.ts +1 -1
- package/dist/components/Input/Input.css +78 -0
- package/dist/components/Input/Input.d.ts +10 -8
- package/dist/components/Input/Input.js +18 -0
- package/dist/components/Input/Input.module.js +5 -0
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputGroup/InputGroup.css +160 -0
- package/dist/components/InputGroup/InputGroup.d.ts +14 -10
- package/dist/components/InputGroup/InputGroup.js +73 -0
- package/dist/components/InputGroup/InputGroup.module.js +11 -0
- package/dist/components/InputGroup/index.d.ts +1 -1
- 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.js +8 -0
- package/dist/components/Kbd/index.d.ts +1 -1
- package/dist/components/Lightbox/Lightbox.css +114 -0
- package/dist/components/Lightbox/Lightbox.d.ts +81 -28
- package/dist/components/Lightbox/Lightbox.js +208 -0
- package/dist/components/Lightbox/Lightbox.module.js +14 -0
- package/dist/components/Lightbox/index.d.ts +1 -1
- package/dist/components/List/List.css +114 -0
- package/dist/components/List/List.d.ts +26 -12
- package/dist/components/List/List.js +28 -0
- package/dist/components/List/List.module.js +5 -0
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Menu/Menu.css +377 -0
- package/dist/components/Menu/Menu.d.ts +141 -41
- package/dist/components/Menu/Menu.js +231 -0
- package/dist/components/Menu/Menu.module.js +36 -0
- package/dist/components/Menu/index.d.ts +1 -2
- package/dist/components/Menubar/Menubar.css +387 -0
- package/dist/components/Menubar/Menubar.d.ts +144 -42
- package/dist/components/Menubar/Menubar.js +232 -0
- package/dist/components/Menubar/Menubar.module.js +36 -0
- package/dist/components/Menubar/index.d.ts +1 -2
- package/dist/components/Meter/Meter.css +46 -0
- package/dist/components/Meter/Meter.d.ts +9 -7
- package/dist/components/Meter/Meter.js +55 -0
- package/dist/components/Meter/Meter.module.js +11 -0
- package/dist/components/NavigationMenu/NavigationMenu.css +319 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +81 -22
- package/dist/components/NavigationMenu/NavigationMenu.js +134 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.js +21 -0
- package/dist/components/NavigationMenu/index.d.ts +1 -2
- package/dist/components/NumberField/NumberField.css +158 -0
- package/dist/components/NumberField/NumberField.d.ts +48 -14
- package/dist/components/NumberField/NumberField.js +75 -0
- package/dist/components/NumberField/NumberField.module.js +13 -0
- package/dist/components/NumberField/index.d.ts +1 -2
- 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.js +9 -0
- package/dist/components/OTPField/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.css +103 -0
- package/dist/components/Pagination/Pagination.d.ts +60 -22
- package/dist/components/Pagination/Pagination.js +116 -0
- package/dist/components/Pagination/Pagination.module.js +16 -0
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.css +19 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +14 -12
- package/dist/components/PasswordInput/PasswordInput.js +47 -0
- package/dist/components/PasswordInput/PasswordInput.module.js +9 -0
- package/dist/components/PasswordInput/index.d.ts +1 -2
- 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.js +22 -0
- package/dist/components/Popover/index.d.ts +1 -1
- 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.js +16 -0
- package/dist/components/PreviewCard/index.d.ts +1 -1
- 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.js +12 -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.js +14 -0
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Rating/Rating.css +79 -0
- package/dist/components/Rating/Rating.d.ts +12 -10
- package/dist/components/Rating/Rating.js +61 -0
- package/dist/components/Rating/Rating.module.js +9 -0
- package/dist/components/Rating/index.d.ts +1 -2
- package/dist/components/ScrollArea/ScrollArea.css +205 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +16 -13
- package/dist/components/ScrollArea/ScrollArea.js +76 -0
- package/dist/components/ScrollArea/ScrollArea.module.js +12 -0
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Select/Select.css +357 -0
- package/dist/components/Select/Select.d.ts +116 -30
- package/dist/components/Select/Select.js +196 -0
- package/dist/components/Select/Select.module.js +33 -0
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Separator/Separator.css +17 -0
- package/dist/components/Separator/Separator.d.ts +4 -2
- package/dist/components/Separator/Separator.js +16 -0
- package/dist/components/Separator/Separator.module.js +5 -0
- package/dist/components/Skeleton/Skeleton.css +21 -0
- package/dist/components/Skeleton/Skeleton.d.ts +22 -9
- package/dist/components/Skeleton/Skeleton.js +25 -0
- package/dist/components/Skeleton/Skeleton.module.js +5 -0
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.css +115 -0
- package/dist/components/Slider/Slider.d.ts +14 -11
- package/dist/components/Slider/Slider.js +99 -0
- package/dist/components/Slider/Slider.module.js +13 -0
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/SnapCarousel/SnapCarousel.css +131 -0
- package/dist/components/SnapCarousel/SnapCarousel.d.ts +37 -10
- package/dist/components/SnapCarousel/SnapCarousel.js +125 -0
- package/dist/components/SnapCarousel/SnapCarousel.module.js +13 -0
- package/dist/components/SnapCarousel/index.d.ts +1 -2
- package/dist/components/Spinner/Spinner.css +60 -0
- package/dist/components/Spinner/Spinner.d.ts +16 -6
- package/dist/components/Spinner/Spinner.js +28 -0
- package/dist/components/Spinner/Spinner.module.js +9 -0
- package/dist/components/Spinner/index.d.ts +1 -2
- package/dist/components/SplitButton/SplitButton.css +59 -0
- package/dist/components/SplitButton/SplitButton.d.ts +39 -20
- package/dist/components/SplitButton/SplitButton.js +66 -0
- package/dist/components/SplitButton/SplitButton.module.js +9 -0
- package/dist/components/SplitButton/index.d.ts +1 -2
- package/dist/components/Stack/Stack.css +13 -0
- package/dist/components/Stack/Stack.d.ts +27 -13
- package/dist/components/Stack/Stack.js +27 -0
- package/dist/components/Stack/Stack.module.js +5 -0
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.css +174 -0
- package/dist/components/Stepper/Stepper.d.ts +55 -16
- package/dist/components/Stepper/Stepper.js +131 -0
- package/dist/components/Stepper/Stepper.module.js +14 -0
- package/dist/components/Stepper/index.d.ts +1 -2
- 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.js +10 -0
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Table/Table.css +107 -0
- package/dist/components/Table/Table.d.ts +54 -16
- package/dist/components/Table/Table.js +85 -0
- package/dist/components/Table/Table.module.js +18 -0
- package/dist/components/Table/index.d.ts +1 -1
- 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.js +11 -0
- package/dist/components/Text/Text.css +73 -0
- package/dist/components/Text/Text.d.ts +20 -9
- package/dist/components/Text/Text.js +42 -0
- package/dist/components/Text/Text.module.js +5 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.css +59 -0
- package/dist/components/Textarea/Textarea.d.ts +7 -5
- package/dist/components/Textarea/Textarea.js +28 -0
- package/dist/components/Textarea/Textarea.module.js +5 -0
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/Toast/Toast.css +351 -0
- package/dist/components/Toast/Toast.d.ts +79 -38
- package/dist/components/Toast/Toast.js +263 -0
- package/dist/components/Toast/Toast.module.js +26 -0
- package/dist/components/Toast/index.d.ts +1 -2
- 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.js +5 -0
- package/dist/components/Toggle/index.d.ts +1 -1
- 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.js +8 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -1
- 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.js +12 -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.js +15 -0
- package/dist/components/Tooltip/index.d.ts +1 -1
- 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.d.ts +30 -22
- package/dist/icons/ui/Icons.js +308 -0
- package/dist/icons/ui/index.d.ts +1 -1
- package/dist/index.d.ts +68 -67
- package/dist/index.js +68 -5775
- package/dist/reset.d.ts +1 -0
- package/dist/reset.js +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.js +8 -0
- package/package.json +11 -10
- 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.cjs +0 -1
- package/dist/index.css +0 -1
- package/dist/reset.css +0 -334
- package/dist/utils/mergeClassName.d.ts +0 -4
|
@@ -1,18 +1,48 @@
|
|
|
1
|
-
import { ComponentProps, ComponentPropsWithoutRef } from
|
|
2
|
-
import { useRender } from
|
|
1
|
+
import { ComponentProps, ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Card/Card.d.ts
|
|
3
5
|
type CardSize = 'default' | 'sm';
|
|
4
6
|
type CardTitleElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
|
-
declare function Card({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
13
33
|
}): import("react").JSX.Element;
|
|
14
|
-
declare function CardDescription({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
export { Card_module_default as default };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type { CardSize, CardTitleElement } from './Card';
|
|
1
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardLink, CardSize, CardTitle, CardTitleElement } from "./Card.js";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._00Q5eW_field {
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--checkbox-gap, var(--spacing-2));
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
|
|
9
|
+
&:has(._00Q5eW_root[data-disabled]), &:has(._00Q5eW_root[data-readonly]) {
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
._00Q5eW_root {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
width: var(--_checkbox-size, 1.25rem);
|
|
17
|
+
height: var(--_checkbox-size, 1.25rem);
|
|
18
|
+
border: var(--checkbox-border-width, var(--border-width-sm)) solid
|
|
19
|
+
var(--checkbox-border-color, var(--color-border));
|
|
20
|
+
border-radius: var(--checkbox-radius, var(--radius-xs));
|
|
21
|
+
background-color: var(--checkbox-bg, var(--color-background));
|
|
22
|
+
color: var(--checkbox-color, var(--color-primary-foreground));
|
|
23
|
+
user-select: none;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
transition: background-color var(--checkbox-transition, var(--transition-default)),
|
|
26
|
+
border-color var(--checkbox-transition, var(--transition-default)),
|
|
27
|
+
color var(--checkbox-transition, var(--transition-default)),
|
|
28
|
+
opacity var(--checkbox-transition, var(--transition-default));
|
|
29
|
+
outline: 0;
|
|
30
|
+
flex: none;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
line-height: 0;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
|
|
38
|
+
&[data-checked], &[data-indeterminate] {
|
|
39
|
+
border-color: var(--checkbox-border-color-checked, var(--color-primary));
|
|
40
|
+
background-color: var(--checkbox-bg-checked, var(--color-primary));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:focus-visible {
|
|
44
|
+
outline: var(--checkbox-focus-ring-width, var(--border-width-sm)) solid
|
|
45
|
+
var(--checkbox-focus-ring-color, var(--color-ring));
|
|
46
|
+
outline-offset: var(--checkbox-focus-ring-offset, var(--border-width-sm));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (hover: hover) {
|
|
50
|
+
&[data-unchecked]:not([data-readonly]):hover {
|
|
51
|
+
background-color: var(--checkbox-bg-hover, var(--color-accent));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[data-readonly] {
|
|
56
|
+
cursor: default;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[data-disabled] {
|
|
60
|
+
opacity: var(--checkbox-disabled-opacity, var(--opacity-disabled));
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-size="xs"] {
|
|
65
|
+
--_checkbox-size: var(--checkbox-size-xs, .875rem);
|
|
66
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-xs, .5rem);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[data-size="sm"] {
|
|
70
|
+
--_checkbox-size: var(--checkbox-size-sm, 1rem);
|
|
71
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-sm, .625rem);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[data-size="md"] {
|
|
75
|
+
--_checkbox-size: var(--checkbox-size-md, 1.25rem);
|
|
76
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-md, .75rem);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-size="lg"] {
|
|
80
|
+
--_checkbox-size: var(--checkbox-size-lg, 1.5rem);
|
|
81
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-lg, .875rem);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-size="xl"] {
|
|
85
|
+
--_checkbox-size: var(--checkbox-size-xl, 1.75rem);
|
|
86
|
+
--_checkbox-icon-size: var(--checkbox-icon-size-xl, 1rem);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
._00Q5eW_indicator {
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: 100%;
|
|
95
|
+
display: flex;
|
|
96
|
+
|
|
97
|
+
&[data-indeterminate] ._00Q5eW_iconChecked, &[data-checked] ._00Q5eW_iconIndeterminate, &[data-unchecked] ._00Q5eW_iconChecked, &[data-unchecked] ._00Q5eW_iconIndeterminate {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._00Q5eW_icon {
|
|
103
|
+
width: var(--_checkbox-icon-size, .75rem);
|
|
104
|
+
height: var(--_checkbox-icon-size, .75rem);
|
|
105
|
+
color: inherit;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
line-height: 0;
|
|
109
|
+
display: flex;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
._00Q5eW_iconChecked, ._00Q5eW_iconIndeterminate {
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: 100%;
|
|
117
|
+
display: flex;
|
|
118
|
+
|
|
119
|
+
& > svg {
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
._00Q5eW_label {
|
|
126
|
+
color: var(--checkbox-label-color, var(--color-foreground));
|
|
127
|
+
font-size: var(--checkbox-label-font-size, var(--text-sm));
|
|
128
|
+
font-weight: var(--checkbox-label-font-weight, var(--weight-medium));
|
|
129
|
+
line-height: var(--checkbox-label-line-height, var(--line-height-text-sm));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -1,11 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Checkbox } from "@base-ui/react/checkbox";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Checkbox/Checkbox.d.ts
|
|
3
5
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
declare const Checkbox: import(
|
|
5
|
-
|
|
6
|
-
}, "ref"> & import(
|
|
7
|
-
declare function CheckboxIndicator({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
declare const Checkbox$1: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").CheckboxRootProps & {
|
|
7
|
+
size?: CheckboxSize;
|
|
8
|
+
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
9
|
+
declare function CheckboxIndicator({
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
...props
|
|
13
|
+
}: Checkbox.Indicator.Props): import("react").JSX.Element;
|
|
14
|
+
declare function CheckboxIndicatorIcon({
|
|
15
|
+
className,
|
|
16
|
+
children,
|
|
17
|
+
...props
|
|
18
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
19
|
+
declare function CheckboxField({
|
|
20
|
+
className,
|
|
21
|
+
...props
|
|
22
|
+
}: ComponentProps<'label'>): import("react").JSX.Element;
|
|
23
|
+
declare function CheckboxLabel({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: ComponentProps<'span'>): import("react").JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Checkbox$1 as Checkbox, CheckboxField, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxLabel };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CheckIcon, IndeterminateIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
3
|
+
import Checkbox_module_default from "./Checkbox.module.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { forwardRef } from "react";
|
|
7
|
+
import { Checkbox } from "@base-ui/react/checkbox";
|
|
8
|
+
//#region src/components/Checkbox/Checkbox.tsx
|
|
9
|
+
const Checkbox$1 = forwardRef(function Checkbox$2({ className, size = "md", children, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Checkbox.Root, {
|
|
11
|
+
ref,
|
|
12
|
+
"data-slot": "checkbox-root",
|
|
13
|
+
"data-size": size,
|
|
14
|
+
className: mergeClassName(className, Checkbox_module_default.root),
|
|
15
|
+
...props,
|
|
16
|
+
children: children ?? /* @__PURE__ */ jsx(CheckboxIndicator, {})
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
function CheckboxIndicator({ className, children, ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Checkbox.Indicator, {
|
|
21
|
+
"data-slot": "checkbox-indicator",
|
|
22
|
+
className: mergeClassName(className, Checkbox_module_default.indicator),
|
|
23
|
+
...props,
|
|
24
|
+
children: children ?? /* @__PURE__ */ jsx(CheckboxIndicatorIcon, {})
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function CheckboxIndicatorIcon({ className, children, ...props }) {
|
|
28
|
+
return /* @__PURE__ */ jsx("span", {
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
"data-slot": "checkbox-indicator-icon",
|
|
31
|
+
className: clsx(Checkbox_module_default.icon, className),
|
|
32
|
+
...props,
|
|
33
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
34
|
+
"data-slot": "checkbox-indicator-checked-icon",
|
|
35
|
+
className: Checkbox_module_default.iconChecked,
|
|
36
|
+
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
37
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
38
|
+
"data-slot": "checkbox-indicator-indeterminate-icon",
|
|
39
|
+
className: Checkbox_module_default.iconIndeterminate,
|
|
40
|
+
children: /* @__PURE__ */ jsx(IndeterminateIcon, {})
|
|
41
|
+
})] })
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function CheckboxField({ className, ...props }) {
|
|
45
|
+
return /* @__PURE__ */ jsx("label", {
|
|
46
|
+
"data-slot": "checkbox-field",
|
|
47
|
+
className: clsx(Checkbox_module_default.field, className),
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function CheckboxLabel({ className, ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx("span", {
|
|
53
|
+
"data-slot": "checkbox-label",
|
|
54
|
+
className: clsx(Checkbox_module_default.label, className),
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Checkbox$1 as Checkbox, CheckboxField, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxLabel };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './Checkbox.css';
|
|
2
|
+
//#region src/components/Checkbox/Checkbox.module.css
|
|
3
|
+
var Checkbox_module_default = {
|
|
4
|
+
"field": "_00Q5eW_field",
|
|
5
|
+
"icon": "_00Q5eW_icon",
|
|
6
|
+
"iconChecked": "_00Q5eW_iconChecked",
|
|
7
|
+
"iconIndeterminate": "_00Q5eW_iconIndeterminate",
|
|
8
|
+
"indicator": "_00Q5eW_indicator",
|
|
9
|
+
"label": "_00Q5eW_label",
|
|
10
|
+
"root": "_00Q5eW_root"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Checkbox_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { Checkbox, CheckboxField, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxLabel } from "./Checkbox.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
._6iNGhG_root {
|
|
3
|
+
gap: var(--checkbox-group-gap, var(--spacing-2));
|
|
4
|
+
color: var(--checkbox-group-color, var(--color-foreground));
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
._6iNGhG_label {
|
|
10
|
+
color: var(--checkbox-group-label-color, var(--checkbox-group-color, var(--color-foreground)));
|
|
11
|
+
font-size: var(--checkbox-group-label-font-size, var(--text-sm));
|
|
12
|
+
font-weight: var(--checkbox-group-label-font-weight, var(--weight-semibold));
|
|
13
|
+
line-height: var(--checkbox-group-label-line-height, var(--line-height-text-sm));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._6iNGhG_list {
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
gap: var(--checkbox-group-list-gap, var(--spacing-2));
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
._6iNGhG_item {
|
|
24
|
+
gap: var(--checkbox-group-item-gap, var(--checkbox-gap, var(--spacing-2)));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
._6iNGhG_itemLabel {
|
|
28
|
+
color: var(--checkbox-group-item-label-color, var(--checkbox-label-color, var(--color-foreground)));
|
|
29
|
+
font-size: var(--checkbox-group-item-label-font-size, var(--checkbox-label-font-size, var(--text-sm)));
|
|
30
|
+
font-weight: var(--checkbox-group-item-label-font-weight, var(--checkbox-label-font-weight, var(--weight-medium)));
|
|
31
|
+
line-height: var(--checkbox-group-item-label-line-height, var(--checkbox-label-line-height, var(--line-height-text-sm)));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare function
|
|
7
|
-
|
|
1
|
+
import { Checkbox, CheckboxField, CheckboxLabel } from "../Checkbox/Checkbox.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
import { CheckboxGroup } from "@base-ui/react/checkbox-group";
|
|
4
|
+
|
|
5
|
+
//#region src/components/CheckboxGroup/CheckboxGroup.d.ts
|
|
6
|
+
declare function CheckboxGroup$1({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}: CheckboxGroup.Props): import("react").JSX.Element;
|
|
10
|
+
declare function CheckboxGroupLabel({
|
|
11
|
+
className,
|
|
12
|
+
...props
|
|
13
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
14
|
+
declare function CheckboxGroupList({
|
|
15
|
+
className,
|
|
16
|
+
...props
|
|
17
|
+
}: ComponentProps<'div'>): import("react").JSX.Element;
|
|
18
|
+
declare function CheckboxGroupItem({
|
|
19
|
+
className,
|
|
20
|
+
...props
|
|
21
|
+
}: ComponentProps<typeof CheckboxField>): import("react").JSX.Element;
|
|
8
22
|
declare function CheckboxGroupItemControl(props: ComponentProps<typeof Checkbox>): import("react").JSX.Element;
|
|
9
|
-
declare function CheckboxGroupItemLabel({
|
|
10
|
-
|
|
23
|
+
declare function CheckboxGroupItemLabel({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: ComponentProps<typeof CheckboxLabel>): import("react").JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { CheckboxGroup$1 as CheckboxGroup, CheckboxGroupItem, CheckboxGroupItemControl, CheckboxGroupItemLabel, CheckboxGroupLabel, CheckboxGroupList };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
2
|
+
import { Checkbox, CheckboxField, CheckboxLabel } from "../Checkbox/Checkbox.js";
|
|
3
|
+
import CheckboxGroup_module_default from "./CheckboxGroup.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { clsx } from "clsx";
|
|
6
|
+
import { CheckboxGroup } from "@base-ui/react/checkbox-group";
|
|
7
|
+
//#region src/components/CheckboxGroup/CheckboxGroup.tsx
|
|
8
|
+
function CheckboxGroup$1({ className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(CheckboxGroup, {
|
|
10
|
+
"data-slot": "checkbox-group-root",
|
|
11
|
+
className: mergeClassName(className, CheckboxGroup_module_default.root),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function CheckboxGroupLabel({ className, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx("div", {
|
|
17
|
+
"data-slot": "checkbox-group-label",
|
|
18
|
+
className: clsx(CheckboxGroup_module_default.label, className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function CheckboxGroupList({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
|
+
"data-slot": "checkbox-group-list",
|
|
25
|
+
className: clsx(CheckboxGroup_module_default.list, className),
|
|
26
|
+
...props
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function CheckboxGroupItem({ className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsx(CheckboxField, {
|
|
31
|
+
"data-slot": "checkbox-group-item",
|
|
32
|
+
className: clsx(CheckboxGroup_module_default.item, className),
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function CheckboxGroupItemControl(props) {
|
|
37
|
+
return /* @__PURE__ */ jsx(Checkbox, {
|
|
38
|
+
"data-slot": "checkbox-group-item-control",
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function CheckboxGroupItemLabel({ className, ...props }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(CheckboxLabel, {
|
|
44
|
+
"data-slot": "checkbox-group-item-label",
|
|
45
|
+
className: clsx(CheckboxGroup_module_default.itemLabel, className),
|
|
46
|
+
...props
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { CheckboxGroup$1 as CheckboxGroup, CheckboxGroupItem, CheckboxGroupItemControl, CheckboxGroupItemLabel, CheckboxGroupLabel, CheckboxGroupList };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './CheckboxGroup.css';
|
|
2
|
+
//#region src/components/CheckboxGroup/CheckboxGroup.module.css
|
|
3
|
+
var CheckboxGroup_module_default = {
|
|
4
|
+
"item": "_6iNGhG_item",
|
|
5
|
+
"itemLabel": "_6iNGhG_itemLabel",
|
|
6
|
+
"label": "_6iNGhG_label",
|
|
7
|
+
"list": "_6iNGhG_list",
|
|
8
|
+
"root": "_6iNGhG_root"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { CheckboxGroup_module_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { CheckboxGroup, CheckboxGroupItem, CheckboxGroupItemControl, CheckboxGroupItemLabel, CheckboxGroupLabel, CheckboxGroupList } from "./CheckboxGroup.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@layer ui.components {
|
|
2
|
+
.yxg1Ha_root {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: var(--close-button-size, 28px);
|
|
5
|
+
height: var(--close-button-size, 28px);
|
|
6
|
+
background-color: var(--close-button-bg, transparent);
|
|
7
|
+
border-radius: var(--close-button-radius, var(--radius-sm));
|
|
8
|
+
color: var(--close-button-color, var(--color-muted-foreground));
|
|
9
|
+
appearance: none;
|
|
10
|
+
font: inherit;
|
|
11
|
+
user-select: none;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition: background-color var(--close-button-transition, var(--transition-default)),
|
|
14
|
+
color var(--close-button-transition, var(--transition-default)),
|
|
15
|
+
opacity var(--close-button-transition, var(--transition-default));
|
|
16
|
+
border: none;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
|
|
24
|
+
& > :where(svg) {
|
|
25
|
+
width: var(--close-button-icon-size, 12px);
|
|
26
|
+
height: var(--close-button-icon-size, 12px);
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (hover: hover) {
|
|
31
|
+
&:hover:not(:disabled):not([data-disabled]) {
|
|
32
|
+
background-color: var(--close-button-bg-hover, var(--color-muted));
|
|
33
|
+
color: var(--close-button-color-hover, var(--color-foreground));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
outline: var(--close-button-focus-ring-width, var(--border-width-md)) solid
|
|
39
|
+
var(--close-button-focus-ring-color, var(--color-ring));
|
|
40
|
+
outline-offset: var(--close-button-focus-ring-offset, 2px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:disabled, &[data-disabled] {
|
|
44
|
+
cursor: default;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
opacity: var(--close-button-disabled-opacity, var(--opacity-disabled));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/components/CloseButton/CloseButton.d.ts
|
|
2
|
+
declare const CloseButton: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { CloseButton };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CloseIcon } from "../../icons/ui/Icons.js";
|
|
2
|
+
import { mergeClassName } from "../../utils/mergeClassName.js";
|
|
3
|
+
import CloseButton_module_default from "./CloseButton.module.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef } from "react";
|
|
6
|
+
import { Button } from "@base-ui/react/button";
|
|
7
|
+
//#region src/components/CloseButton/CloseButton.tsx
|
|
8
|
+
const DEFAULT_CLOSE_BUTTON_LABEL = "Close";
|
|
9
|
+
const CloseButton = forwardRef(function CloseButton({ className, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }, ref) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
11
|
+
ref,
|
|
12
|
+
type: "button",
|
|
13
|
+
"data-slot": "close-button",
|
|
14
|
+
className: mergeClassName(className, CloseButton_module_default.root),
|
|
15
|
+
"aria-label": ariaLabel ?? (children == null && ariaLabelledBy == null ? DEFAULT_CLOSE_BUTTON_LABEL : void 0),
|
|
16
|
+
"aria-labelledby": ariaLabelledBy,
|
|
17
|
+
...props,
|
|
18
|
+
children: children ?? /* @__PURE__ */ jsx(CloseIcon, {})
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CloseButton };
|