@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":"Grid.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,oFAAqB,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa1C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAa5C,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const gridVariants = cva("grid w-full");
|
|
4
|
+
const colsMap = {
|
|
5
|
+
1: "grid-cols-1",
|
|
6
|
+
2: "grid-cols-2",
|
|
7
|
+
3: "grid-cols-3",
|
|
8
|
+
4: "grid-cols-4",
|
|
9
|
+
5: "grid-cols-5",
|
|
10
|
+
6: "grid-cols-6",
|
|
11
|
+
7: "grid-cols-7",
|
|
12
|
+
8: "grid-cols-8",
|
|
13
|
+
9: "grid-cols-9",
|
|
14
|
+
10: "grid-cols-10",
|
|
15
|
+
11: "grid-cols-11",
|
|
16
|
+
12: "grid-cols-12"
|
|
17
|
+
};
|
|
18
|
+
const smColsMap = {
|
|
19
|
+
1: "sm:grid-cols-1",
|
|
20
|
+
2: "sm:grid-cols-2",
|
|
21
|
+
3: "sm:grid-cols-3",
|
|
22
|
+
4: "sm:grid-cols-4",
|
|
23
|
+
5: "sm:grid-cols-5",
|
|
24
|
+
6: "sm:grid-cols-6",
|
|
25
|
+
7: "sm:grid-cols-7",
|
|
26
|
+
8: "sm:grid-cols-8",
|
|
27
|
+
9: "sm:grid-cols-9",
|
|
28
|
+
10: "sm:grid-cols-10",
|
|
29
|
+
11: "sm:grid-cols-11",
|
|
30
|
+
12: "sm:grid-cols-12"
|
|
31
|
+
};
|
|
32
|
+
const mdColsMap = {
|
|
33
|
+
1: "md:grid-cols-1",
|
|
34
|
+
2: "md:grid-cols-2",
|
|
35
|
+
3: "md:grid-cols-3",
|
|
36
|
+
4: "md:grid-cols-4",
|
|
37
|
+
5: "md:grid-cols-5",
|
|
38
|
+
6: "md:grid-cols-6",
|
|
39
|
+
7: "md:grid-cols-7",
|
|
40
|
+
8: "md:grid-cols-8",
|
|
41
|
+
9: "md:grid-cols-9",
|
|
42
|
+
10: "md:grid-cols-10",
|
|
43
|
+
11: "md:grid-cols-11",
|
|
44
|
+
12: "md:grid-cols-12"
|
|
45
|
+
};
|
|
46
|
+
const lgColsMap = {
|
|
47
|
+
1: "lg:grid-cols-1",
|
|
48
|
+
2: "lg:grid-cols-2",
|
|
49
|
+
3: "lg:grid-cols-3",
|
|
50
|
+
4: "lg:grid-cols-4",
|
|
51
|
+
5: "lg:grid-cols-5",
|
|
52
|
+
6: "lg:grid-cols-6",
|
|
53
|
+
7: "lg:grid-cols-7",
|
|
54
|
+
8: "lg:grid-cols-8",
|
|
55
|
+
9: "lg:grid-cols-9",
|
|
56
|
+
10: "lg:grid-cols-10",
|
|
57
|
+
11: "lg:grid-cols-11",
|
|
58
|
+
12: "lg:grid-cols-12"
|
|
59
|
+
};
|
|
60
|
+
const xlColsMap = {
|
|
61
|
+
1: "xl:grid-cols-1",
|
|
62
|
+
2: "xl:grid-cols-2",
|
|
63
|
+
3: "xl:grid-cols-3",
|
|
64
|
+
4: "xl:grid-cols-4",
|
|
65
|
+
5: "xl:grid-cols-5",
|
|
66
|
+
6: "xl:grid-cols-6",
|
|
67
|
+
7: "xl:grid-cols-7",
|
|
68
|
+
8: "xl:grid-cols-8",
|
|
69
|
+
9: "xl:grid-cols-9",
|
|
70
|
+
10: "xl:grid-cols-10",
|
|
71
|
+
11: "xl:grid-cols-11",
|
|
72
|
+
12: "xl:grid-cols-12"
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { colsMap, gridVariants, lgColsMap, mdColsMap, smColsMap, xlColsMap };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface ResponsiveCols {
|
|
3
|
+
sm?: number;
|
|
4
|
+
md?: number;
|
|
5
|
+
lg?: number;
|
|
6
|
+
xl?: number;
|
|
7
|
+
'2xl'?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Number of columns, or an object with responsive column counts.
|
|
12
|
+
* @default 1
|
|
13
|
+
*/
|
|
14
|
+
cols?: number | ResponsiveCols;
|
|
15
|
+
/**
|
|
16
|
+
* Gap between rows and columns (e.g. 2, 4, 6, 8 or CSS string '1rem').
|
|
17
|
+
* @default 4
|
|
18
|
+
*/
|
|
19
|
+
gap?: number | string;
|
|
20
|
+
/**
|
|
21
|
+
* Specific row gap.
|
|
22
|
+
*/
|
|
23
|
+
rowGap?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Specific column gap.
|
|
26
|
+
*/
|
|
27
|
+
colGap?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* If true, generates an auto-fit/auto-fill responsive grid using minChildWidth.
|
|
30
|
+
*/
|
|
31
|
+
autoFit?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Minimum width for auto-fit columns (e.g. '280px', '20rem').
|
|
34
|
+
*/
|
|
35
|
+
minChildWidth?: string;
|
|
36
|
+
/**
|
|
37
|
+
* If true, delegates rendering to child component via Radix Slot.
|
|
38
|
+
*/
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=Grid.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.types.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAC/B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,iBAAiB,CAAC;AAEhE,eAAO,MAAM,OAAO,yFAwCnB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { headingVariants } from './Heading.styles.js';
|
|
7
|
+
|
|
8
|
+
const Heading = React.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
className,
|
|
11
|
+
style,
|
|
12
|
+
level = 1,
|
|
13
|
+
as,
|
|
14
|
+
font = "display",
|
|
15
|
+
foreground = "default",
|
|
16
|
+
weight,
|
|
17
|
+
asChild = false,
|
|
18
|
+
children,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => {
|
|
21
|
+
const Tag = as ?? `h${level}`;
|
|
22
|
+
const Component = asChild ? Slot : Tag;
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
Component,
|
|
25
|
+
{
|
|
26
|
+
ref,
|
|
27
|
+
"data-slot": "heading",
|
|
28
|
+
"data-testid": "timmbr-heading",
|
|
29
|
+
style,
|
|
30
|
+
className: cn(
|
|
31
|
+
headingVariants({
|
|
32
|
+
level,
|
|
33
|
+
font,
|
|
34
|
+
foreground,
|
|
35
|
+
weight,
|
|
36
|
+
className
|
|
37
|
+
})
|
|
38
|
+
),
|
|
39
|
+
...props,
|
|
40
|
+
children
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
Heading.displayName = "Heading";
|
|
46
|
+
|
|
47
|
+
export { Heading };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const headingVariants: (props?: ({
|
|
3
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
4
|
+
font?: "title" | "display" | null | undefined;
|
|
5
|
+
foreground?: "default" | "inherit" | "white" | "subtle" | "primary" | "secondary" | "destructive" | "muted" | null | undefined;
|
|
6
|
+
weight?: "bold" | "light" | "normal" | "medium" | "semibold" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type HeadingVariants = VariantProps<typeof headingVariants>;
|
|
9
|
+
//# sourceMappingURL=Heading.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,eAAe;;;;;8EAqC1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const headingVariants = cva("transition-colors leading-[1.3] text-foreground", {
|
|
4
|
+
variants: {
|
|
5
|
+
level: {
|
|
6
|
+
1: "text-[64px]",
|
|
7
|
+
2: "text-[48px]",
|
|
8
|
+
3: "text-[32px]",
|
|
9
|
+
4: "text-[24px] tracking-[-0.02em]",
|
|
10
|
+
5: "text-[20px]",
|
|
11
|
+
6: "text-[20px]"
|
|
12
|
+
},
|
|
13
|
+
font: {
|
|
14
|
+
display: "font-display font-normal",
|
|
15
|
+
title: "font-title font-bold"
|
|
16
|
+
},
|
|
17
|
+
foreground: {
|
|
18
|
+
default: "text-foreground",
|
|
19
|
+
muted: "text-grey-600 dark:text-grey-400",
|
|
20
|
+
subtle: "text-grey-500 dark:text-grey-500",
|
|
21
|
+
primary: "text-primary",
|
|
22
|
+
secondary: "text-secondary-foreground",
|
|
23
|
+
destructive: "text-destructive",
|
|
24
|
+
white: "text-white",
|
|
25
|
+
inherit: "text-inherit"
|
|
26
|
+
},
|
|
27
|
+
weight: {
|
|
28
|
+
light: "font-light",
|
|
29
|
+
normal: "font-normal",
|
|
30
|
+
medium: "font-medium",
|
|
31
|
+
semibold: "font-semibold",
|
|
32
|
+
bold: "font-bold"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
level: 1,
|
|
37
|
+
font: "display",
|
|
38
|
+
foreground: "default"
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { headingVariants };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { HeadingVariants } from './Heading.styles';
|
|
3
|
+
export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement>, HeadingVariants {
|
|
6
|
+
/**
|
|
7
|
+
* The heading level (1-6), determining the font scale and default HTML heading tag.
|
|
8
|
+
* @default 1
|
|
9
|
+
*/
|
|
10
|
+
level?: HeadingLevel;
|
|
11
|
+
/**
|
|
12
|
+
* Overrides the HTML heading tag while keeping the level typography.
|
|
13
|
+
*/
|
|
14
|
+
as?: HeadingTag;
|
|
15
|
+
/**
|
|
16
|
+
* Typographic font family ('display' uses DM Serif Display; 'title' uses Outfit).
|
|
17
|
+
* @default 'display'
|
|
18
|
+
*/
|
|
19
|
+
font?: 'display' | 'title';
|
|
20
|
+
/**
|
|
21
|
+
* Font weight override.
|
|
22
|
+
*/
|
|
23
|
+
weight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
24
|
+
/**
|
|
25
|
+
* Foreground color token.
|
|
26
|
+
* @default 'default'
|
|
27
|
+
*/
|
|
28
|
+
foreground?: 'default' | 'muted' | 'subtle' | 'primary' | 'secondary' | 'destructive' | 'white' | 'inherit';
|
|
29
|
+
/**
|
|
30
|
+
* If true, renders child element via Radix Slot while applying heading styles.
|
|
31
|
+
*/
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=Heading.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,MAAM,WAAW,YACf,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAC9C,eAAe;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAC7D;;;OAGG;IACH,UAAU,CAAC,EACP,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,WAAW,GACX,aAAa,GACb,OAAO,GACP,SAAS,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Heading/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,+EAgFhB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, Fragment } 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 { resolveMotion } from '../../types/motion.js';
|
|
7
|
+
import { iconVariants } from './Icon.styles.js';
|
|
8
|
+
import { useGlobalAnimation } from '../../providers/AnimationProvider.js';
|
|
9
|
+
|
|
10
|
+
const Icon = React.forwardRef(
|
|
11
|
+
({
|
|
12
|
+
className,
|
|
13
|
+
style,
|
|
14
|
+
icon: Component,
|
|
15
|
+
src,
|
|
16
|
+
svg,
|
|
17
|
+
size = "md",
|
|
18
|
+
foreground = "inherit",
|
|
19
|
+
clickable = false,
|
|
20
|
+
motion,
|
|
21
|
+
onClick,
|
|
22
|
+
"aria-label": ariaLabel,
|
|
23
|
+
asChild = false,
|
|
24
|
+
children,
|
|
25
|
+
...props
|
|
26
|
+
}, ref) => {
|
|
27
|
+
const isInteractive = clickable || !!onClick;
|
|
28
|
+
const isCustomSize = typeof size === "number";
|
|
29
|
+
const globalMotion = useGlobalAnimation();
|
|
30
|
+
const { shouldAnimate, motionClass } = resolveMotion(motion, globalMotion);
|
|
31
|
+
const customDimensionStyle = isCustomSize ? { width: `${size}px`, height: `${size}px`, ...style } : style;
|
|
32
|
+
const Tag = asChild ? Slot : isInteractive ? "button" : "span";
|
|
33
|
+
const content = /* @__PURE__ */ jsx(Fragment, { children: Component ? /* @__PURE__ */ jsx(
|
|
34
|
+
Component,
|
|
35
|
+
{
|
|
36
|
+
className: "size-full",
|
|
37
|
+
"aria-hidden": !ariaLabel
|
|
38
|
+
}
|
|
39
|
+
) : src ? /* @__PURE__ */ jsx(
|
|
40
|
+
"img",
|
|
41
|
+
{
|
|
42
|
+
src,
|
|
43
|
+
alt: ariaLabel ?? "",
|
|
44
|
+
className: "size-full object-contain",
|
|
45
|
+
"aria-hidden": !ariaLabel
|
|
46
|
+
}
|
|
47
|
+
) : svg ? svg : children });
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
Tag,
|
|
50
|
+
{
|
|
51
|
+
ref,
|
|
52
|
+
type: Tag === "button" ? "button" : void 0,
|
|
53
|
+
role: isInteractive ? "button" : void 0,
|
|
54
|
+
tabIndex: isInteractive ? 0 : void 0,
|
|
55
|
+
"aria-label": ariaLabel,
|
|
56
|
+
"data-slot": "icon",
|
|
57
|
+
"data-testid": "timmbr-icon",
|
|
58
|
+
onClick,
|
|
59
|
+
style: customDimensionStyle,
|
|
60
|
+
className: cn(
|
|
61
|
+
iconVariants({
|
|
62
|
+
size: isCustomSize ? void 0 : size,
|
|
63
|
+
foreground,
|
|
64
|
+
clickable: isInteractive,
|
|
65
|
+
className
|
|
66
|
+
}),
|
|
67
|
+
!shouldAnimate && "transition-none active:scale-100",
|
|
68
|
+
motionClass
|
|
69
|
+
),
|
|
70
|
+
...props,
|
|
71
|
+
children: content
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
Icon.displayName = "Icon";
|
|
77
|
+
|
|
78
|
+
export { Icon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const iconVariants: (props?: ({
|
|
3
|
+
size?: "sm" | "lg" | "md" | "xl" | "xs" | null | undefined;
|
|
4
|
+
foreground?: "default" | "inherit" | "white" | "subtle" | "primary" | "secondary" | "destructive" | "muted" | null | undefined;
|
|
5
|
+
clickable?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type IconVariants = VariantProps<typeof iconVariants>;
|
|
8
|
+
//# sourceMappingURL=Icon.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;;;8EAgCxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const iconVariants = cva(
|
|
4
|
+
"inline-flex shrink-0 items-center justify-center transition-all leading-none",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
xs: "size-3 text-xs",
|
|
9
|
+
sm: "size-4 text-sm",
|
|
10
|
+
md: "size-5 text-base",
|
|
11
|
+
lg: "size-6 text-lg",
|
|
12
|
+
xl: "size-8 text-2xl"
|
|
13
|
+
},
|
|
14
|
+
foreground: {
|
|
15
|
+
default: "text-foreground",
|
|
16
|
+
muted: "text-grey-600 dark:text-grey-400",
|
|
17
|
+
subtle: "text-grey-500 dark:text-grey-500",
|
|
18
|
+
primary: "text-primary",
|
|
19
|
+
secondary: "text-secondary-foreground",
|
|
20
|
+
destructive: "text-destructive",
|
|
21
|
+
white: "text-white",
|
|
22
|
+
inherit: "text-inherit"
|
|
23
|
+
},
|
|
24
|
+
clickable: {
|
|
25
|
+
true: "cursor-pointer hover:bg-grey-100 dark:hover:bg-grey-800 hover:text-foreground hover:scale-105 active:scale-95 rounded-[4px] p-1 transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",
|
|
26
|
+
false: "pointer-events-none"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
size: "md",
|
|
31
|
+
foreground: "inherit",
|
|
32
|
+
clickable: false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export { iconVariants };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { IconVariants } from './Icon.styles';
|
|
3
|
+
import type { MotionProp } from '../../types/motion';
|
|
4
|
+
export type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
5
|
+
export interface IconProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onClick'>, IconVariants {
|
|
6
|
+
/**
|
|
7
|
+
* Component reference (e.g. Lucide icon component or custom SVG component).
|
|
8
|
+
*/
|
|
9
|
+
icon?: React.ComponentType<any>;
|
|
10
|
+
/**
|
|
11
|
+
* External image or SVG asset URL.
|
|
12
|
+
*/
|
|
13
|
+
src?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Raw inline SVG content.
|
|
16
|
+
*/
|
|
17
|
+
svg?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Accessible text description for screen readers (mandatory if clickable without child text).
|
|
20
|
+
*/
|
|
21
|
+
'aria-label'?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If true, renders with interactive button semantics, hover states, and focus rings.
|
|
24
|
+
*/
|
|
25
|
+
clickable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Motion transition control.
|
|
28
|
+
*/
|
|
29
|
+
motion?: MotionProp;
|
|
30
|
+
/**
|
|
31
|
+
* Click handler for interactive icons.
|
|
32
|
+
*/
|
|
33
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
34
|
+
/**
|
|
35
|
+
* If true, renders child element via Radix Slot.
|
|
36
|
+
*/
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=Icon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.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,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,EACxD,YAAY;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAChC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/Inline.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,oFA4ClB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } 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 { formatGap } from '../../utils/gap.js';
|
|
7
|
+
import { inlineVariants } from './Inline.styles.js';
|
|
8
|
+
|
|
9
|
+
const Inline = React.forwardRef(
|
|
10
|
+
({
|
|
11
|
+
className,
|
|
12
|
+
style,
|
|
13
|
+
gap = 3,
|
|
14
|
+
align = "center",
|
|
15
|
+
justify = "start",
|
|
16
|
+
wrap = true,
|
|
17
|
+
divider,
|
|
18
|
+
asChild = false,
|
|
19
|
+
children,
|
|
20
|
+
...props
|
|
21
|
+
}, ref) => {
|
|
22
|
+
const Component = asChild ? Slot : "div";
|
|
23
|
+
const gapClass = formatGap(gap);
|
|
24
|
+
const renderChildren = () => {
|
|
25
|
+
if (!divider) return children;
|
|
26
|
+
const array = React.Children.toArray(children).filter(Boolean);
|
|
27
|
+
return array.map((child, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
28
|
+
child,
|
|
29
|
+
index < array.length - 1 && divider
|
|
30
|
+
] }, index));
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
Component,
|
|
34
|
+
{
|
|
35
|
+
ref,
|
|
36
|
+
"data-slot": "inline",
|
|
37
|
+
"data-testid": "timmbr-inline",
|
|
38
|
+
style,
|
|
39
|
+
className: cn(inlineVariants({ align, justify, wrap }), gapClass, className),
|
|
40
|
+
...props,
|
|
41
|
+
children: renderChildren()
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
Inline.displayName = "Inline";
|
|
47
|
+
|
|
48
|
+
export { Inline };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const inlineVariants: (props?: ({
|
|
3
|
+
align?: "center" | "end" | "start" | "baseline" | null | undefined;
|
|
4
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
5
|
+
wrap?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type InlineVariants = VariantProps<typeof inlineVariants>;
|
|
8
|
+
//# sourceMappingURL=Inline.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/Inline.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,cAAc;;;;8EA0BzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
|
|
3
|
+
const inlineVariants = cva("flex flex-row", {
|
|
4
|
+
variants: {
|
|
5
|
+
align: {
|
|
6
|
+
start: "items-start",
|
|
7
|
+
center: "items-center",
|
|
8
|
+
end: "items-end",
|
|
9
|
+
baseline: "items-baseline"
|
|
10
|
+
},
|
|
11
|
+
justify: {
|
|
12
|
+
start: "justify-start",
|
|
13
|
+
center: "justify-center",
|
|
14
|
+
end: "justify-end",
|
|
15
|
+
between: "justify-between",
|
|
16
|
+
around: "justify-around",
|
|
17
|
+
evenly: "justify-evenly"
|
|
18
|
+
},
|
|
19
|
+
wrap: {
|
|
20
|
+
true: "flex-wrap",
|
|
21
|
+
false: "flex-nowrap"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
align: "center",
|
|
26
|
+
justify: "start",
|
|
27
|
+
wrap: true
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { inlineVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { InlineVariants } from './Inline.styles';
|
|
3
|
+
export interface InlineProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'gap'>, Omit<InlineVariants, 'gap'> {
|
|
4
|
+
/**
|
|
5
|
+
* Gap between items. Translates standard Tailwind tokens, any number (px), or custom string.
|
|
6
|
+
*/
|
|
7
|
+
gap?: number | string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional divider element rendered between each inline child.
|
|
10
|
+
*/
|
|
11
|
+
divider?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* If true, renders child element via Radix Slot.
|
|
14
|
+
*/
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Inline.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.types.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/Inline.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,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,EACvD,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC;IAC7B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Inline/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,KAAK,qFAoNjB,CAAC"}
|