@timmbr/ui 1.0.0-beta
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 +151 -0
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +52 -0
- package/dist/components/Accordion/Accordion.styles.d.ts +4 -0
- package/dist/components/Accordion/Accordion.styles.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.styles.js +11 -0
- package/dist/components/Accordion/Accordion.types.d.ts +12 -0
- package/dist/components/Accordion/Accordion.types.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +6 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.js +99 -0
- package/dist/components/Alert/Alert.styles.d.ts +11 -0
- package/dist/components/Alert/Alert.styles.d.ts.map +1 -0
- package/dist/components/Alert/Alert.styles.js +47 -0
- package/dist/components/Alert/Alert.types.d.ts +30 -0
- package/dist/components/Alert/Alert.types.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +4 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +4 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.js +74 -0
- package/dist/components/Avatar/Avatar.styles.d.ts +11 -0
- package/dist/components/Avatar/Avatar.styles.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.js +55 -0
- package/dist/components/Avatar/Avatar.types.d.ts +26 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +4 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.js +50 -0
- package/dist/components/Badge/Badge.styles.d.ts +7 -0
- package/dist/components/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/components/Badge/Badge.styles.js +30 -0
- package/dist/components/Badge/Badge.types.d.ts +21 -0
- package/dist/components/Badge/Badge.types.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +4 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.js +89 -0
- package/dist/components/Button/Button.styles.d.ts +7 -0
- package/dist/components/Button/Button.styles.d.ts.map +1 -0
- package/dist/components/Button/Button.styles.js +31 -0
- package/dist/components/Button/Button.types.d.ts +30 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.js +90 -0
- package/dist/components/Card/Card.styles.d.ts +12 -0
- package/dist/components/Card/Card.styles.d.ts.map +1 -0
- package/dist/components/Card/Card.styles.js +33 -0
- package/dist/components/Card/Card.types.d.ts +24 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +4 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Center/Center.d.ts +4 -0
- package/dist/components/Center/Center.d.ts.map +1 -0
- package/dist/components/Center/Center.js +26 -0
- package/dist/components/Center/Center.styles.d.ts +6 -0
- package/dist/components/Center/Center.styles.d.ts.map +1 -0
- package/dist/components/Center/Center.styles.js +18 -0
- package/dist/components/Center/Center.types.d.ts +9 -0
- package/dist/components/Center/Center.types.d.ts.map +1 -0
- package/dist/components/Center/index.d.ts +4 -0
- package/dist/components/Center/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +88 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.js +41 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +22 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts +4 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.js +74 -0
- package/dist/components/Chip/Chip.styles.d.ts +10 -0
- package/dist/components/Chip/Chip.styles.d.ts.map +1 -0
- package/dist/components/Chip/Chip.styles.js +43 -0
- package/dist/components/Chip/Chip.types.d.ts +26 -0
- package/dist/components/Chip/Chip.types.d.ts.map +1 -0
- package/dist/components/Chip/index.d.ts +4 -0
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/Container/Container.d.ts +4 -0
- package/dist/components/Container/Container.d.ts.map +1 -0
- package/dist/components/Container/Container.js +35 -0
- package/dist/components/Container/Container.styles.d.ts +7 -0
- package/dist/components/Container/Container.styles.d.ts.map +1 -0
- package/dist/components/Container/Container.styles.js +24 -0
- package/dist/components/Container/Container.types.d.ts +9 -0
- package/dist/components/Container/Container.types.d.ts.map +1 -0
- package/dist/components/Container/index.d.ts +4 -0
- package/dist/components/Container/index.d.ts.map +1 -0
- package/dist/components/DataList/DataList.d.ts +7 -0
- package/dist/components/DataList/DataList.d.ts.map +1 -0
- package/dist/components/DataList/DataList.js +95 -0
- package/dist/components/DataList/DataList.styles.d.ts +14 -0
- package/dist/components/DataList/DataList.styles.d.ts.map +1 -0
- package/dist/components/DataList/DataList.styles.js +49 -0
- package/dist/components/DataList/DataList.types.d.ts +59 -0
- package/dist/components/DataList/DataList.types.d.ts.map +1 -0
- package/dist/components/DataList/index.d.ts +4 -0
- package/dist/components/DataList/index.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +14 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.js +86 -0
- package/dist/components/Dialog/Dialog.styles.d.ts +7 -0
- package/dist/components/Dialog/Dialog.styles.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.styles.js +22 -0
- package/dist/components/Dialog/Dialog.types.d.ts +16 -0
- package/dist/components/Dialog/Dialog.types.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +4 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.js +74 -0
- package/dist/components/Divider/Divider.styles.d.ts +9 -0
- package/dist/components/Divider/Divider.styles.d.ts.map +1 -0
- package/dist/components/Divider/Divider.styles.js +48 -0
- package/dist/components/Divider/Divider.types.d.ts +47 -0
- package/dist/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +4 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +14 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +69 -0
- package/dist/components/Drawer/Drawer.styles.d.ts +9 -0
- package/dist/components/Drawer/Drawer.styles.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.styles.js +29 -0
- package/dist/components/Drawer/Drawer.types.d.ts +17 -0
- package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +4 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +22 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.js +133 -0
- package/dist/components/Dropdown/Dropdown.styles.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.styles.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.js +10 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +15 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.js +82 -0
- package/dist/components/EmptyState/EmptyState.styles.d.ts +10 -0
- package/dist/components/EmptyState/EmptyState.styles.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.styles.js +40 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +30 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/components/EmptyState/index.d.ts +4 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/FormField/FormField.d.ts +4 -0
- package/dist/components/FormField/FormField.d.ts.map +1 -0
- package/dist/components/FormField/FormField.js +58 -0
- package/dist/components/FormField/FormField.styles.d.ts +2 -0
- package/dist/components/FormField/FormField.styles.d.ts.map +1 -0
- package/dist/components/FormField/FormField.styles.js +5 -0
- package/dist/components/FormField/FormField.types.d.ts +28 -0
- package/dist/components/FormField/FormField.types.d.ts.map +1 -0
- package/dist/components/FormField/index.d.ts +4 -0
- package/dist/components/FormField/index.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +4 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/Grid.js +58 -0
- package/dist/components/Grid/Grid.styles.d.ts +7 -0
- package/dist/components/Grid/Grid.styles.d.ts.map +1 -0
- package/dist/components/Grid/Grid.styles.js +75 -0
- package/dist/components/Grid/Grid.types.d.ts +41 -0
- package/dist/components/Grid/Grid.types.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/Heading/Heading.d.ts +4 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/Heading.js +47 -0
- package/dist/components/Heading/Heading.styles.d.ts +9 -0
- package/dist/components/Heading/Heading.styles.d.ts.map +1 -0
- package/dist/components/Heading/Heading.styles.js +42 -0
- package/dist/components/Heading/Heading.types.d.ts +34 -0
- package/dist/components/Heading/Heading.types.d.ts.map +1 -0
- package/dist/components/Heading/index.d.ts +4 -0
- package/dist/components/Heading/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +4 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.js +78 -0
- package/dist/components/Icon/Icon.styles.d.ts +8 -0
- package/dist/components/Icon/Icon.styles.d.ts.map +1 -0
- package/dist/components/Icon/Icon.styles.js +37 -0
- package/dist/components/Icon/Icon.types.d.ts +39 -0
- package/dist/components/Icon/Icon.types.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Inline/Inline.d.ts +4 -0
- package/dist/components/Inline/Inline.d.ts.map +1 -0
- package/dist/components/Inline/Inline.js +48 -0
- package/dist/components/Inline/Inline.styles.d.ts +8 -0
- package/dist/components/Inline/Inline.styles.d.ts.map +1 -0
- package/dist/components/Inline/Inline.styles.js +31 -0
- package/dist/components/Inline/Inline.types.d.ts +17 -0
- package/dist/components/Inline/Inline.types.d.ts.map +1 -0
- package/dist/components/Inline/index.d.ts +4 -0
- package/dist/components/Inline/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.js +194 -0
- package/dist/components/Input/Input.styles.d.ts +10 -0
- package/dist/components/Input/Input.styles.d.ts.map +1 -0
- package/dist/components/Input/Input.styles.js +39 -0
- package/dist/components/Input/Input.types.d.ts +55 -0
- package/dist/components/Input/Input.types.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Label/Label.d.ts +4 -0
- package/dist/components/Label/Label.d.ts.map +1 -0
- package/dist/components/Label/Label.js +29 -0
- package/dist/components/Label/Label.styles.d.ts +6 -0
- package/dist/components/Label/Label.styles.d.ts.map +1 -0
- package/dist/components/Label/Label.styles.js +20 -0
- package/dist/components/Label/Label.types.d.ts +14 -0
- package/dist/components/Label/Label.types.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +4 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/List/List.d.ts +8 -0
- package/dist/components/List/List.d.ts.map +1 -0
- package/dist/components/List/List.js +82 -0
- package/dist/components/List/List.styles.d.ts +14 -0
- package/dist/components/List/List.styles.d.ts.map +1 -0
- package/dist/components/List/List.styles.js +41 -0
- package/dist/components/List/List.types.d.ts +16 -0
- package/dist/components/List/List.types.d.ts.map +1 -0
- package/dist/components/List/index.d.ts +4 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +19 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +100 -0
- package/dist/components/Pagination/Pagination.styles.d.ts +5 -0
- package/dist/components/Pagination/Pagination.styles.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.styles.js +24 -0
- package/dist/components/Pagination/Pagination.types.d.ts +98 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +4 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +9 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/Popover.js +36 -0
- package/dist/components/Popover/Popover.styles.d.ts +2 -0
- package/dist/components/Popover/Popover.styles.d.ts.map +1 -0
- package/dist/components/Popover/Popover.styles.js +7 -0
- package/dist/components/Popover/Popover.types.d.ts +12 -0
- package/dist/components/Popover/Popover.types.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Progress/Progress.d.ts +4 -0
- package/dist/components/Progress/Progress.d.ts.map +1 -0
- package/dist/components/Progress/Progress.js +66 -0
- package/dist/components/Progress/Progress.styles.d.ts +9 -0
- package/dist/components/Progress/Progress.styles.d.ts.map +1 -0
- package/dist/components/Progress/Progress.styles.js +36 -0
- package/dist/components/Progress/Progress.types.d.ts +30 -0
- package/dist/components/Progress/Progress.types.d.ts.map +1 -0
- package/dist/components/Progress/index.d.ts +4 -0
- package/dist/components/Progress/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +6 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.js +128 -0
- package/dist/components/Radio/Radio.styles.d.ts +9 -0
- package/dist/components/Radio/Radio.styles.d.ts.map +1 -0
- package/dist/components/Radio/Radio.styles.js +36 -0
- package/dist/components/Radio/Radio.types.d.ts +51 -0
- package/dist/components/Radio/Radio.types.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +4 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts +4 -0
- package/dist/components/RangeSlider/RangeSlider.d.ts.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.js +138 -0
- package/dist/components/RangeSlider/RangeSlider.styles.d.ts +7 -0
- package/dist/components/RangeSlider/RangeSlider.styles.d.ts.map +1 -0
- package/dist/components/RangeSlider/RangeSlider.styles.js +16 -0
- package/dist/components/RangeSlider/RangeSlider.types.d.ts +68 -0
- package/dist/components/RangeSlider/RangeSlider.types.d.ts.map +1 -0
- package/dist/components/RangeSlider/index.d.ts +4 -0
- package/dist/components/RangeSlider/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +13 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.js +128 -0
- package/dist/components/Select/Select.styles.d.ts +10 -0
- package/dist/components/Select/Select.styles.d.ts.map +1 -0
- package/dist/components/Select/Select.styles.js +36 -0
- package/dist/components/Select/Select.types.d.ts +53 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +62 -0
- package/dist/components/Skeleton/Skeleton.styles.d.ts +7 -0
- package/dist/components/Skeleton/Skeleton.styles.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.js +26 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +22 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.js +44 -0
- package/dist/components/Spinner/Spinner.styles.d.ts +7 -0
- package/dist/components/Spinner/Spinner.styles.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.styles.js +29 -0
- package/dist/components/Spinner/Spinner.types.d.ts +13 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +4 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stack/Stack.d.ts +4 -0
- package/dist/components/Stack/Stack.d.ts.map +1 -0
- package/dist/components/Stack/Stack.js +47 -0
- package/dist/components/Stack/Stack.styles.d.ts +7 -0
- package/dist/components/Stack/Stack.styles.d.ts.map +1 -0
- package/dist/components/Stack/Stack.styles.js +27 -0
- package/dist/components/Stack/Stack.types.d.ts +17 -0
- package/dist/components/Stack/Stack.types.d.ts.map +1 -0
- package/dist/components/Stack/index.d.ts +4 -0
- package/dist/components/Stack/index.d.ts.map +1 -0
- package/dist/components/Stat/Stat.d.ts +8 -0
- package/dist/components/Stat/Stat.d.ts.map +1 -0
- package/dist/components/Stat/Stat.js +87 -0
- package/dist/components/Stat/Stat.styles.d.ts +13 -0
- package/dist/components/Stat/Stat.styles.d.ts.map +1 -0
- package/dist/components/Stat/Stat.styles.js +42 -0
- package/dist/components/Stat/Stat.types.d.ts +16 -0
- package/dist/components/Stat/Stat.types.d.ts.map +1 -0
- package/dist/components/Stat/index.d.ts +4 -0
- package/dist/components/Stat/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.js +70 -0
- package/dist/components/Switch/Switch.styles.d.ts +9 -0
- package/dist/components/Switch/Switch.styles.d.ts.map +1 -0
- package/dist/components/Switch/Switch.styles.js +36 -0
- package/dist/components/Switch/Switch.types.d.ts +18 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +4 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +12 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.js +104 -0
- package/dist/components/Table/Table.styles.d.ts +15 -0
- package/dist/components/Table/Table.styles.d.ts.map +1 -0
- package/dist/components/Table/Table.styles.js +53 -0
- package/dist/components/Table/Table.types.d.ts +57 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -0
- package/dist/components/Table/TablePagination.d.ts +4 -0
- package/dist/components/Table/TablePagination.d.ts.map +1 -0
- package/dist/components/Table/TablePagination.js +107 -0
- package/dist/components/Table/index.d.ts +5 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +7 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.js +177 -0
- package/dist/components/Tabs/Tabs.styles.d.ts +13 -0
- package/dist/components/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.styles.js +51 -0
- package/dist/components/Tabs/Tabs.types.d.ts +35 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Text/Text.d.ts +4 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/Text.js +46 -0
- package/dist/components/Text/Text.styles.d.ts +9 -0
- package/dist/components/Text/Text.styles.d.ts.map +1 -0
- package/dist/components/Text/Text.styles.js +45 -0
- package/dist/components/Text/Text.types.d.ts +28 -0
- package/dist/components/Text/Text.types.d.ts.map +1 -0
- package/dist/components/Text/index.d.ts +4 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +4 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.js +170 -0
- package/dist/components/Textarea/Textarea.styles.d.ts +9 -0
- package/dist/components/Textarea/Textarea.styles.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.styles.js +38 -0
- package/dist/components/Textarea/Textarea.types.d.ts +38 -0
- package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +4 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +11 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/Toast.js +107 -0
- package/dist/components/Toast/Toast.styles.d.ts +6 -0
- package/dist/components/Toast/Toast.styles.d.ts.map +1 -0
- package/dist/components/Toast/Toast.styles.js +21 -0
- package/dist/components/Toast/Toast.types.d.ts +27 -0
- package/dist/components/Toast/Toast.types.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +56 -0
- package/dist/components/Tooltip/Tooltip.styles.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.styles.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.styles.js +7 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +32 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +4 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/providers/AnimationProvider.d.ts +15 -0
- package/dist/providers/AnimationProvider.d.ts.map +1 -0
- package/dist/providers/AnimationProvider.js +35 -0
- package/dist/providers/TimmbrConfigProvider.d.ts +38 -0
- package/dist/providers/TimmbrConfigProvider.d.ts.map +1 -0
- package/dist/providers/TimmbrConfigProvider.js +76 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/types/motion.d.ts +99 -0
- package/dist/types/motion.d.ts.map +1 -0
- package/dist/types/motion.js +73 -0
- package/dist/utils/gap.d.ts +2 -0
- package/dist/utils/gap.d.ts.map +1 -0
- package/dist/utils/gap.js +55 -0
- package/package.json +81 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Center.types.d.ts","sourceRoot":"","sources":["../../../src/components/Center/Center.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,cAAc;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Center/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,eAAO,MAAM,QAAQ,yFAwFpB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
|
+
import { Check } from '@timmbr/icons';
|
|
6
|
+
import { cn } from '@timmbr/utils';
|
|
7
|
+
import { checkboxIndicatorVariants, checkboxVariants } from './Checkbox.styles.js';
|
|
8
|
+
|
|
9
|
+
const Checkbox = React.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
className,
|
|
12
|
+
containerClassName,
|
|
13
|
+
style,
|
|
14
|
+
size,
|
|
15
|
+
label,
|
|
16
|
+
description,
|
|
17
|
+
error,
|
|
18
|
+
checked,
|
|
19
|
+
id: customId,
|
|
20
|
+
disabled,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) => {
|
|
23
|
+
const generatedId = React.useId();
|
|
24
|
+
const id = customId || generatedId;
|
|
25
|
+
const isError = Boolean(error);
|
|
26
|
+
const errorMessage = typeof error === "string" ? error : void 0;
|
|
27
|
+
const checkboxElement = /* @__PURE__ */ jsx(
|
|
28
|
+
CheckboxPrimitive.Root,
|
|
29
|
+
{
|
|
30
|
+
ref,
|
|
31
|
+
id,
|
|
32
|
+
disabled,
|
|
33
|
+
...checked !== void 0 ? { checked } : {},
|
|
34
|
+
className: cn(checkboxVariants({ size, isError }), !label && className),
|
|
35
|
+
style: !label ? style : void 0,
|
|
36
|
+
...props,
|
|
37
|
+
children: /* @__PURE__ */ jsxs(
|
|
38
|
+
CheckboxPrimitive.Indicator,
|
|
39
|
+
{
|
|
40
|
+
className: cn(checkboxIndicatorVariants({ size })),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ jsx("span", { className: "hidden [[data-state=indeterminate]_&]:block w-2.5 h-0.5 bg-white rounded-full" }),
|
|
43
|
+
/* @__PURE__ */ jsx(Check, { className: "[[data-state=indeterminate]_&]:hidden w-full h-full stroke-[3]" })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
if (!label && !description && !errorMessage) {
|
|
50
|
+
return checkboxElement;
|
|
51
|
+
}
|
|
52
|
+
return /* @__PURE__ */ jsxs(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: cn(
|
|
56
|
+
"flex flex-col gap-1 font-sans",
|
|
57
|
+
disabled && "opacity-60 cursor-not-allowed",
|
|
58
|
+
containerClassName,
|
|
59
|
+
label && className
|
|
60
|
+
),
|
|
61
|
+
style: label ? style : void 0,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-2.5", children: [
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "pt-0.5 shrink-0", children: checkboxElement }),
|
|
65
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
66
|
+
label && /* @__PURE__ */ jsx(
|
|
67
|
+
"label",
|
|
68
|
+
{
|
|
69
|
+
htmlFor: id,
|
|
70
|
+
className: cn(
|
|
71
|
+
"text-sm font-medium text-foreground cursor-pointer select-none leading-snug",
|
|
72
|
+
disabled && "cursor-not-allowed"
|
|
73
|
+
),
|
|
74
|
+
children: label
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted leading-normal mt-0.5", children: description })
|
|
78
|
+
] })
|
|
79
|
+
] }),
|
|
80
|
+
errorMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive font-medium pl-7", children: errorMessage })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
Checkbox.displayName = "Checkbox";
|
|
87
|
+
|
|
88
|
+
export { Checkbox };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const checkboxVariants: (props?: ({
|
|
3
|
+
size?: "default" | "sm" | "lg" | "md" | null | undefined;
|
|
4
|
+
isError?: boolean | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const checkboxIndicatorVariants: (props?: ({
|
|
7
|
+
size?: "default" | "sm" | "lg" | "md" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export type CheckboxVariants = VariantProps<typeof checkboxVariants>;
|
|
10
|
+
//# sourceMappingURL=Checkbox.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;8EAoB5B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;8EAerC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const checkboxVariants = cva(
|
|
4
|
+
"peer shrink-0 rounded-[2px] border border-grey-300 dark:border-grey-600 bg-white dark:bg-grey-900 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-white data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-white cursor-pointer flex items-center justify-center",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
sm: "w-4 h-4",
|
|
9
|
+
default: "w-5 h-5",
|
|
10
|
+
md: "w-5 h-5",
|
|
11
|
+
lg: "w-6 h-6 rounded-[3px]"
|
|
12
|
+
},
|
|
13
|
+
isError: {
|
|
14
|
+
true: "border-destructive focus-visible:ring-destructive",
|
|
15
|
+
false: ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "default",
|
|
20
|
+
isError: false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
const checkboxIndicatorVariants = cva(
|
|
25
|
+
"flex items-center justify-center text-current",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
sm: "w-3 h-3",
|
|
30
|
+
default: "w-3.5 h-3.5",
|
|
31
|
+
md: "w-3.5 h-3.5",
|
|
32
|
+
lg: "w-4 h-4"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
size: "default"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export { checkboxIndicatorVariants, checkboxVariants };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
import type { CheckboxVariants } from './Checkbox.styles';
|
|
4
|
+
export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, 'size'>, CheckboxVariants {
|
|
5
|
+
/**
|
|
6
|
+
* Primary label text displayed next to the checkbox.
|
|
7
|
+
*/
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Secondary supporting text displayed below the label.
|
|
11
|
+
*/
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Error state or error message.
|
|
15
|
+
*/
|
|
16
|
+
error?: string | boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Custom className for the outer container wrapper.
|
|
19
|
+
*/
|
|
20
|
+
containerClassName?: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=Checkbox.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.types.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,aACf,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,MAAM,CACP,EACD,gBAAgB;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,kFAsEhB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cn } from '@timmbr/utils';
|
|
5
|
+
import { X } from '@timmbr/icons';
|
|
6
|
+
import { resolveMotion } from '../../types/motion.js';
|
|
7
|
+
import { chipVariants } from './Chip.styles.js';
|
|
8
|
+
import { useGlobalAnimation } from '../../providers/AnimationProvider.js';
|
|
9
|
+
|
|
10
|
+
const Chip = React.forwardRef(
|
|
11
|
+
({
|
|
12
|
+
className,
|
|
13
|
+
variant,
|
|
14
|
+
color,
|
|
15
|
+
size = "default",
|
|
16
|
+
selected = false,
|
|
17
|
+
clickable,
|
|
18
|
+
icon,
|
|
19
|
+
onRemove,
|
|
20
|
+
motion,
|
|
21
|
+
onClick,
|
|
22
|
+
children,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => {
|
|
25
|
+
const isInteractive = clickable || !!onClick;
|
|
26
|
+
const globalMotion = useGlobalAnimation();
|
|
27
|
+
const { shouldAnimate, motionClass } = resolveMotion(motion, globalMotion);
|
|
28
|
+
const handleRemove = (e) => {
|
|
29
|
+
e.stopPropagation();
|
|
30
|
+
onRemove?.(e);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ jsxs(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "chip",
|
|
37
|
+
role: isInteractive ? "button" : void 0,
|
|
38
|
+
tabIndex: isInteractive ? 0 : void 0,
|
|
39
|
+
onClick,
|
|
40
|
+
className: cn(
|
|
41
|
+
chipVariants({
|
|
42
|
+
variant: selected ? "filled" : variant,
|
|
43
|
+
color: selected ? void 0 : color,
|
|
44
|
+
size,
|
|
45
|
+
clickable: isInteractive,
|
|
46
|
+
selected
|
|
47
|
+
}),
|
|
48
|
+
!shouldAnimate && "transition-none active:scale-100",
|
|
49
|
+
motionClass,
|
|
50
|
+
className
|
|
51
|
+
),
|
|
52
|
+
...props,
|
|
53
|
+
children: [
|
|
54
|
+
icon && /* @__PURE__ */ jsx("span", { className: "shrink-0 size-3.5 inline-flex items-center justify-center -ml-0.5", "data-slot": "chip-icon", children: icon }),
|
|
55
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children }),
|
|
56
|
+
onRemove && /* @__PURE__ */ jsx(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
type: "button",
|
|
60
|
+
tabIndex: -1,
|
|
61
|
+
onClick: handleRemove,
|
|
62
|
+
"aria-label": "Remove",
|
|
63
|
+
className: "shrink-0 -mr-1 size-4 rounded-full inline-flex items-center justify-center opacity-70 hover:opacity-100 hover:bg-black/10 dark:hover:bg-white/20 transition-all cursor-pointer",
|
|
64
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-3" })
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
Chip.displayName = "Chip";
|
|
73
|
+
|
|
74
|
+
export { Chip };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const chipVariants: (props?: ({
|
|
3
|
+
variant?: "filled" | "subtle" | "outlined" | null | undefined;
|
|
4
|
+
color?: "default" | "primary" | "destructive" | "success" | "warning" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
+
clickable?: boolean | null | undefined;
|
|
7
|
+
selected?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
+
export type ChipVariants = VariantProps<typeof chipVariants>;
|
|
10
|
+
//# sourceMappingURL=Chip.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;;;;;8EAsCxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const chipVariants = cva(
|
|
4
|
+
"inline-flex items-center gap-1.5 font-sans font-medium rounded-full transition-all duration-150 select-none outline-none",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
subtle: "bg-grey-100 dark:bg-grey-800 text-foreground border border-transparent",
|
|
9
|
+
filled: "bg-primary text-white border border-transparent shadow-xs",
|
|
10
|
+
outlined: "bg-transparent border border-grey-300 dark:border-grey-700 text-foreground"
|
|
11
|
+
},
|
|
12
|
+
color: {
|
|
13
|
+
default: "",
|
|
14
|
+
primary: "bg-primary/10 text-primary border-primary/20",
|
|
15
|
+
success: "bg-success/10 text-success border-success/20",
|
|
16
|
+
warning: "bg-warning/10 text-warning border-warning/20",
|
|
17
|
+
destructive: "bg-destructive/10 text-destructive border-destructive/20"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
sm: "h-6 px-2.5 text-[11px]",
|
|
21
|
+
default: "h-8 px-3 text-xs",
|
|
22
|
+
lg: "h-9 px-4 text-sm"
|
|
23
|
+
},
|
|
24
|
+
clickable: {
|
|
25
|
+
true: "cursor-pointer hover:brightness-95 active:scale-95 focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",
|
|
26
|
+
false: ""
|
|
27
|
+
},
|
|
28
|
+
selected: {
|
|
29
|
+
true: "bg-primary text-white border-primary shadow-xs",
|
|
30
|
+
false: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "subtle",
|
|
35
|
+
color: "default",
|
|
36
|
+
size: "default",
|
|
37
|
+
clickable: false,
|
|
38
|
+
selected: false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
export { chipVariants };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ChipVariants } from './Chip.styles';
|
|
3
|
+
import type { MotionProp } from '../../types/motion';
|
|
4
|
+
export interface ChipProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, ChipVariants {
|
|
5
|
+
/**
|
|
6
|
+
* Leading icon, avatar, or visual graphic.
|
|
7
|
+
*/
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* If true, styles the chip as actively selected (e.g. In filter groups).
|
|
11
|
+
*/
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If true, enables interactive click styles.
|
|
15
|
+
*/
|
|
16
|
+
clickable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Callback fired when the remove button is clicked. If provided, renders an X button.
|
|
19
|
+
*/
|
|
20
|
+
onRemove?: (e: React.MouseEvent) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Motion transition control.
|
|
23
|
+
*/
|
|
24
|
+
motion?: MotionProp;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=Chip.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EACzD,YAAY;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,uFA4BrB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
5
|
+
import { cn } from '@timmbr/utils';
|
|
6
|
+
import { containerVariants } from './Container.styles.js';
|
|
7
|
+
|
|
8
|
+
const Container = React.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
className,
|
|
11
|
+
style,
|
|
12
|
+
maxWidth = "lg",
|
|
13
|
+
padded = true,
|
|
14
|
+
asChild = false,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}, ref) => {
|
|
18
|
+
const Component = asChild ? Slot : "div";
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
Component,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
"data-slot": "container",
|
|
24
|
+
"data-testid": "timmbr-container",
|
|
25
|
+
style,
|
|
26
|
+
className: cn(containerVariants({ maxWidth, padded, className })),
|
|
27
|
+
...props,
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
Container.displayName = "Container";
|
|
34
|
+
|
|
35
|
+
export { Container };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const containerVariants: (props?: ({
|
|
3
|
+
maxWidth?: "sm" | "lg" | "md" | "xl" | "2xl" | "full" | null | undefined;
|
|
4
|
+
padded?: boolean | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type ContainerVariants = VariantProps<typeof containerVariants>;
|
|
7
|
+
//# sourceMappingURL=Container.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,iBAAiB;;;8EAmB5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const containerVariants = cva("w-full mx-auto px-4 sm:px-6 lg:px-8 transition-all", {
|
|
4
|
+
variants: {
|
|
5
|
+
maxWidth: {
|
|
6
|
+
sm: "max-w-screen-sm",
|
|
7
|
+
md: "max-w-screen-md",
|
|
8
|
+
lg: "max-w-screen-lg",
|
|
9
|
+
xl: "max-w-screen-xl",
|
|
10
|
+
"2xl": "max-w-screen-2xl",
|
|
11
|
+
full: "max-w-full"
|
|
12
|
+
},
|
|
13
|
+
padded: {
|
|
14
|
+
true: "px-4 sm:px-6 lg:px-8",
|
|
15
|
+
false: "px-0"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
maxWidth: "lg",
|
|
20
|
+
padded: true
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { containerVariants };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { ContainerVariants } from './Container.styles';
|
|
3
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, ContainerVariants {
|
|
4
|
+
/**
|
|
5
|
+
* If true, renders child element via Radix Slot while applying container constraints.
|
|
6
|
+
*/
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=Container.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container.types.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,iBAAiB;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Container/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DataListProps, DataListItemProps, DataListLabelProps, DataListValueProps } from './DataList.types';
|
|
3
|
+
export declare const DataList: React.ForwardRefExoticComponent<DataListProps & React.RefAttributes<HTMLDListElement>>;
|
|
4
|
+
export declare const DataListItem: React.ForwardRefExoticComponent<DataListItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const DataListLabel: React.ForwardRefExoticComponent<DataListLabelProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
export declare const DataListValue: React.ForwardRefExoticComponent<DataListValueProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
//# sourceMappingURL=DataList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataList.d.ts","sourceRoot":"","sources":["../../../src/components/DataList/DataList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAY1B,eAAO,MAAM,QAAQ,wFAyBpB,CAAC;AAGF,eAAO,MAAM,YAAY,0FAsBxB,CAAC;AAGF,eAAO,MAAM,aAAa,wFAoBzB,CAAC;AAGF,eAAO,MAAM,aAAa,wFAazB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cn } from '@timmbr/utils';
|
|
5
|
+
import { dataListVariants, dataListItemVariants, dataListLabelVariants, dataListValueVariants } from './DataList.styles.js';
|
|
6
|
+
|
|
7
|
+
const DataListContext = React.createContext({
|
|
8
|
+
orientation: "horizontal",
|
|
9
|
+
size: "default"
|
|
10
|
+
});
|
|
11
|
+
const DataList = React.forwardRef(
|
|
12
|
+
({
|
|
13
|
+
className,
|
|
14
|
+
orientation = "horizontal",
|
|
15
|
+
size = "default",
|
|
16
|
+
divided = false,
|
|
17
|
+
children,
|
|
18
|
+
...props
|
|
19
|
+
}, ref) => {
|
|
20
|
+
return /* @__PURE__ */ jsx(DataListContext.Provider, { value: { orientation, size }, children: /* @__PURE__ */ jsx(
|
|
21
|
+
"dl",
|
|
22
|
+
{
|
|
23
|
+
ref,
|
|
24
|
+
"data-slot": "data-list",
|
|
25
|
+
className: cn(dataListVariants({ orientation, size, divided }), className),
|
|
26
|
+
...props,
|
|
27
|
+
children
|
|
28
|
+
}
|
|
29
|
+
) });
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
DataList.displayName = "DataList";
|
|
33
|
+
const DataListItem = React.forwardRef(
|
|
34
|
+
({ className, orientation: itemOrientation, align = "baseline", children, ...props }, ref) => {
|
|
35
|
+
const context = React.useContext(DataListContext);
|
|
36
|
+
const orientation = itemOrientation ?? context.orientation;
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref,
|
|
41
|
+
"data-slot": "data-list-item",
|
|
42
|
+
className: cn(
|
|
43
|
+
dataListItemVariants({ orientation, align }),
|
|
44
|
+
context.size === "sm" && "py-1",
|
|
45
|
+
context.size === "default" && "py-1.5",
|
|
46
|
+
context.size === "lg" && "py-2",
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
DataListItem.displayName = "DataListItem";
|
|
56
|
+
const DataListLabel = React.forwardRef(
|
|
57
|
+
({ className, minWidth, icon, style, children, ...props }, ref) => {
|
|
58
|
+
const computedStyle = {
|
|
59
|
+
...style,
|
|
60
|
+
...minWidth ? { minWidth: typeof minWidth === "number" ? `${minWidth}px` : minWidth } : {}
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ jsxs(
|
|
63
|
+
"dt",
|
|
64
|
+
{
|
|
65
|
+
ref,
|
|
66
|
+
"data-slot": "data-list-label",
|
|
67
|
+
style: computedStyle,
|
|
68
|
+
className: cn(dataListLabelVariants(), className),
|
|
69
|
+
...props,
|
|
70
|
+
children: [
|
|
71
|
+
icon && /* @__PURE__ */ jsx("span", { className: "inline-flex shrink-0 items-center justify-center text-grey-400 dark:text-grey-500", children: icon }),
|
|
72
|
+
children
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
DataListLabel.displayName = "DataListLabel";
|
|
79
|
+
const DataListValue = React.forwardRef(
|
|
80
|
+
({ className, children, ...props }, ref) => {
|
|
81
|
+
return /* @__PURE__ */ jsx(
|
|
82
|
+
"dd",
|
|
83
|
+
{
|
|
84
|
+
ref,
|
|
85
|
+
"data-slot": "data-list-value",
|
|
86
|
+
className: cn(dataListValueVariants(), className),
|
|
87
|
+
...props,
|
|
88
|
+
children
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
DataListValue.displayName = "DataListValue";
|
|
94
|
+
|
|
95
|
+
export { DataList, DataListItem, DataListLabel, DataListValue };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const dataListVariants: (props?: ({
|
|
3
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
4
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
|
+
divided?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const dataListItemVariants: (props?: ({
|
|
8
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
9
|
+
align?: "center" | "start" | "baseline" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
export declare const dataListLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
12
|
+
export declare const dataListValueVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
13
|
+
export type DataListVariants = VariantProps<typeof dataListVariants>;
|
|
14
|
+
//# sourceMappingURL=DataList.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataList.styles.d.ts","sourceRoot":"","sources":["../../../src/components/DataList/DataList.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;8EAqB3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;8EAgB/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,oFAEjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,oFAEjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|