@pk-design/react-tailwind 1.6.0 → 1.7.0
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/dist/cjs/components/Accordion/Accordion.js +61 -0
- package/dist/cjs/components/Accordion/Accordion.js.map +1 -0
- package/dist/cjs/components/ActionSheet/ActionSheet.js +38 -0
- package/dist/cjs/components/ActionSheet/ActionSheet.js.map +1 -0
- package/dist/cjs/components/Alert/Alert.js +34 -0
- package/dist/cjs/components/Alert/Alert.js.map +1 -0
- package/dist/cjs/components/Badge/Badge.js +33 -0
- package/dist/cjs/components/Badge/Badge.js.map +1 -0
- package/dist/cjs/components/Banner/Banner.js +41 -0
- package/dist/cjs/components/Banner/Banner.js.map +1 -0
- package/dist/cjs/components/BodyText/BodyText.js +59 -0
- package/dist/cjs/components/BodyText/BodyText.js.map +1 -0
- package/dist/cjs/components/BottomNavigation/BottomNavigation.js +52 -0
- package/dist/cjs/components/BottomNavigation/BottomNavigation.js.map +1 -0
- package/dist/cjs/components/Breadcrumb/Breadcrumb.js +63 -0
- package/dist/cjs/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/cjs/components/Button/Button.js +118 -0
- package/dist/cjs/components/Button/Button.js.map +1 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js +100 -0
- package/dist/cjs/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/cjs/components/Card/Card.js +65 -0
- package/dist/cjs/components/Card/Card.js.map +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.js +64 -0
- package/dist/cjs/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.js +82 -0
- package/dist/cjs/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/cjs/components/DataList/DataList.js +287 -0
- package/dist/cjs/components/DataList/DataList.js.map +1 -0
- package/dist/cjs/components/DataTable/DataTable.icons.js +20 -0
- package/dist/cjs/components/DataTable/DataTable.icons.js.map +1 -0
- package/dist/cjs/components/DataTable/DataTable.js +110 -0
- package/dist/cjs/components/DataTable/DataTable.js.map +1 -0
- package/dist/cjs/components/DataTable/DataTable.utils.js +87 -0
- package/dist/cjs/components/DataTable/DataTable.utils.js.map +1 -0
- package/dist/cjs/components/DetailedInformation/DetailedInformation.js +67 -0
- package/dist/cjs/components/DetailedInformation/DetailedInformation.js.map +1 -0
- package/dist/cjs/components/Dot/index.js +12 -0
- package/dist/cjs/components/Dot/index.js.map +1 -0
- package/dist/cjs/components/Drawer/Drawer.js +67 -0
- package/dist/cjs/components/Drawer/Drawer.js.map +1 -0
- package/dist/cjs/components/Dropdown/Dropdown.js +50 -0
- package/dist/cjs/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/cjs/components/EmptyState/index.js +14 -0
- package/dist/cjs/components/EmptyState/index.js.map +1 -0
- package/dist/cjs/components/Flex/Flex.js +25 -0
- package/dist/cjs/components/Flex/Flex.js.map +1 -0
- package/dist/cjs/components/FloatingActionButton/FloatingActionButton.js +71 -0
- package/dist/cjs/components/FloatingActionButton/FloatingActionButton.js.map +1 -0
- package/dist/cjs/components/Grid/Grid.js +33 -0
- package/dist/cjs/components/Grid/Grid.js.map +1 -0
- package/dist/cjs/components/HeadingText/HeadingText.js +89 -0
- package/dist/cjs/components/HeadingText/HeadingText.js.map +1 -0
- package/dist/cjs/components/Icons/ArrowDownAZ.svg.js +46 -0
- package/dist/cjs/components/Icons/ArrowDownAZ.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ArrowDownNarrowWide.svg.js +46 -0
- package/dist/cjs/components/Icons/ArrowDownNarrowWide.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ArrowDownWideNarrow.svg.js +46 -0
- package/dist/cjs/components/Icons/ArrowDownWideNarrow.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ArrowDownZA.svg.js +46 -0
- package/dist/cjs/components/Icons/ArrowDownZA.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ArrowUpDown.svg.js +46 -0
- package/dist/cjs/components/Icons/ArrowUpDown.svg.js.map +1 -0
- package/dist/cjs/components/Icons/BadgeCheck.svg.js +48 -0
- package/dist/cjs/components/Icons/BadgeCheck.svg.js.map +1 -0
- package/dist/cjs/components/Icons/Check.svg.js +46 -0
- package/dist/cjs/components/Icons/Check.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ChevronDown.svg.js +46 -0
- package/dist/cjs/components/Icons/ChevronDown.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ChevronLeft.svg.js +46 -0
- package/dist/cjs/components/Icons/ChevronLeft.svg.js.map +1 -0
- package/dist/cjs/components/Icons/ChevronRight.svg.js +46 -0
- package/dist/cjs/components/Icons/ChevronRight.svg.js.map +1 -0
- package/dist/cjs/components/Icons/CircleAlert.svg.js +50 -0
- package/dist/cjs/components/Icons/CircleAlert.svg.js.map +1 -0
- package/dist/cjs/components/Icons/CircleCheck.svg.js +50 -0
- package/dist/cjs/components/Icons/CircleCheck.svg.js.map +1 -0
- package/dist/cjs/components/Icons/CirclePlus.svg.js +50 -0
- package/dist/cjs/components/Icons/CirclePlus.svg.js.map +1 -0
- package/dist/cjs/components/Icons/CircleX.svg.js +50 -0
- package/dist/cjs/components/Icons/CircleX.svg.js.map +1 -0
- package/dist/cjs/components/Icons/FolderPlus.svg.js +46 -0
- package/dist/cjs/components/Icons/FolderPlus.svg.js.map +1 -0
- package/dist/cjs/components/Icons/Info.svg.js +50 -0
- package/dist/cjs/components/Icons/Info.svg.js.map +1 -0
- package/dist/cjs/components/Icons/Search.svg.js +50 -0
- package/dist/cjs/components/Icons/Search.svg.js.map +1 -0
- package/dist/cjs/components/Icons/Slash.svg.js +46 -0
- package/dist/cjs/components/Icons/Slash.svg.js.map +1 -0
- package/dist/cjs/components/Icons/TriangleAlert.svg.js +46 -0
- package/dist/cjs/components/Icons/TriangleAlert.svg.js.map +1 -0
- package/dist/cjs/components/Icons/X.svg.js +46 -0
- package/dist/cjs/components/Icons/X.svg.js.map +1 -0
- package/dist/cjs/components/Input/Input.js +85 -0
- package/dist/cjs/components/Input/Input.js.map +1 -0
- package/dist/cjs/components/Label/Label.js +14 -0
- package/dist/cjs/components/Label/Label.js.map +1 -0
- package/dist/cjs/components/Loader/index.js +18 -0
- package/dist/cjs/components/Loader/index.js.map +1 -0
- package/dist/cjs/components/MobileHeader/MobileHeader.js +45 -0
- package/dist/cjs/components/MobileHeader/MobileHeader.js.map +1 -0
- package/dist/cjs/components/MobilePicker/MobilePicker.js +368 -0
- package/dist/cjs/components/MobilePicker/MobilePicker.js.map +1 -0
- package/dist/cjs/components/MobileStepper/MobileStepper.js +33 -0
- package/dist/cjs/components/MobileStepper/MobileStepper.js.map +1 -0
- package/dist/cjs/components/Pagination/Pagination.js +33 -0
- package/dist/cjs/components/Pagination/Pagination.js.map +1 -0
- package/dist/cjs/components/Pagination/usePagination.js +33 -0
- package/dist/cjs/components/Pagination/usePagination.js.map +1 -0
- package/dist/cjs/components/PasswordInput/PasswordInput.js +56 -0
- package/dist/cjs/components/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/cjs/components/PinInput/PinInput.js +98 -0
- package/dist/cjs/components/PinInput/PinInput.js.map +1 -0
- package/dist/cjs/components/PullToRefresh/PullToRefresh.js +83 -0
- package/dist/cjs/components/PullToRefresh/PullToRefresh.js.map +1 -0
- package/dist/cjs/components/QuantityStepper/QuantityStepper.js +77 -0
- package/dist/cjs/components/QuantityStepper/QuantityStepper.js.map +1 -0
- package/dist/cjs/components/Radio/Radio.js +34 -0
- package/dist/cjs/components/Radio/Radio.js.map +1 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.js +50 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/cjs/components/RadioSwitch/RadioSwitch.js +116 -0
- package/dist/cjs/components/RadioSwitch/RadioSwitch.js.map +1 -0
- package/dist/cjs/components/RangeInput/RangeInput.js +66 -0
- package/dist/cjs/components/RangeInput/RangeInput.js.map +1 -0
- package/dist/cjs/components/RangeSlider/RangeSlider.js +167 -0
- package/dist/cjs/components/RangeSlider/RangeSlider.js.map +1 -0
- package/dist/cjs/components/SegmentedControl/SegmentedControl.js +64 -0
- package/dist/cjs/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/cjs/components/SelectBox/SelectBox.js +305 -0
- package/dist/cjs/components/SelectBox/SelectBox.js.map +1 -0
- package/dist/cjs/components/Skeleton/Skeleton.js +36 -0
- package/dist/cjs/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/cjs/components/StatusPill/StatusPill.js +46 -0
- package/dist/cjs/components/StatusPill/StatusPill.js.map +1 -0
- package/dist/cjs/components/StickyActionBar/StickyActionBar.js +22 -0
- package/dist/cjs/components/StickyActionBar/StickyActionBar.js.map +1 -0
- package/dist/cjs/components/SwipeableRow/SwipeableRow.js +187 -0
- package/dist/cjs/components/SwipeableRow/SwipeableRow.js.map +1 -0
- package/dist/cjs/components/SwipeableTabs/SwipeableTabs.js +91 -0
- package/dist/cjs/components/SwipeableTabs/SwipeableTabs.js.map +1 -0
- package/dist/cjs/components/Table/Table.js +57 -0
- package/dist/cjs/components/Table/Table.js.map +1 -0
- package/dist/cjs/components/Tabs/Tabs.js +53 -0
- package/dist/cjs/components/Tabs/Tabs.js.map +1 -0
- package/dist/cjs/components/TextContent/TextContent.js +47 -0
- package/dist/cjs/components/TextContent/TextContent.js.map +1 -0
- package/dist/cjs/components/Textarea/Textarea.js +64 -0
- package/dist/cjs/components/Textarea/Textarea.js.map +1 -0
- package/dist/cjs/components/Toast/Toast.js +96 -0
- package/dist/cjs/components/Toast/Toast.js.map +1 -0
- package/dist/cjs/components/Toast/ToastProvider.js +151 -0
- package/dist/cjs/components/Toast/ToastProvider.js.map +1 -0
- package/dist/cjs/components/VirtualizedDataTable/VirtualizedDataTable.js +122 -0
- package/dist/cjs/components/VirtualizedDataTable/VirtualizedDataTable.js.map +1 -0
- package/dist/cjs/components/VirtualizedDataTable/VirtualizedRow.js +48 -0
- package/dist/cjs/components/VirtualizedDataTable/VirtualizedRow.js.map +1 -0
- package/dist/cjs/components/WheelPicker/WheelPicker.js +82 -0
- package/dist/cjs/components/WheelPicker/WheelPicker.js.map +1 -0
- package/dist/cjs/components/common-responsive.js +310 -0
- package/dist/cjs/components/common-responsive.js.map +1 -0
- package/dist/cjs/hooks/use-debounce.js +31 -0
- package/dist/cjs/hooks/use-debounce.js.map +1 -0
- package/dist/cjs/hooks/use-is-mobile.js +24 -0
- package/dist/cjs/hooks/use-is-mobile.js.map +1 -0
- package/dist/cjs/hooks/use-is-tablet-or-mobile.js +13 -0
- package/dist/cjs/hooks/use-is-tablet-or-mobile.js.map +1 -0
- package/dist/cjs/hooks/use-is-tablet.js +21 -0
- package/dist/cjs/hooks/use-is-tablet.js.map +1 -0
- package/dist/cjs/index.js +163 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/react-tailwind.css +2 -0
- package/dist/cjs/react-tailwind.css.map +1 -0
- package/dist/cjs/utils/build-classname.js +8 -0
- package/dist/cjs/utils/build-classname.js.map +1 -0
- package/dist/cjs/utils/get.js +20 -0
- package/dist/cjs/utils/get.js.map +1 -0
- package/dist/cjs/utils/is-array.js +12 -0
- package/dist/cjs/utils/is-array.js.map +1 -0
- package/dist/cjs/utils/is-empty.js +26 -0
- package/dist/cjs/utils/is-empty.js.map +1 -0
- package/dist/es/components/Accordion/Accordion.js +59 -0
- package/dist/es/components/Accordion/Accordion.js.map +1 -0
- package/dist/es/components/ActionSheet/ActionSheet.js +36 -0
- package/dist/es/components/ActionSheet/ActionSheet.js.map +1 -0
- package/dist/es/components/Alert/Alert.js +32 -0
- package/dist/es/components/Alert/Alert.js.map +1 -0
- package/dist/es/components/Badge/Badge.js +31 -0
- package/dist/es/components/Badge/Badge.js.map +1 -0
- package/dist/es/components/Banner/Banner.js +39 -0
- package/dist/es/components/Banner/Banner.js.map +1 -0
- package/dist/es/components/BodyText/BodyText.js +57 -0
- package/dist/es/components/BodyText/BodyText.js.map +1 -0
- package/dist/es/components/BottomNavigation/BottomNavigation.js +50 -0
- package/dist/es/components/BottomNavigation/BottomNavigation.js.map +1 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.js +61 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/es/components/Button/Button.js +116 -0
- package/dist/es/components/Button/Button.js.map +1 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.js +98 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/es/components/Card/Card.js +57 -0
- package/dist/es/components/Card/Card.js.map +1 -0
- package/dist/es/components/Checkbox/Checkbox.js +62 -0
- package/dist/es/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/es/components/CheckboxGroup/CheckboxGroup.js +80 -0
- package/dist/es/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/es/components/DataList/DataList.js +285 -0
- package/dist/es/components/DataList/DataList.js.map +1 -0
- package/dist/es/components/DataTable/DataTable.icons.js +17 -0
- package/dist/es/components/DataTable/DataTable.icons.js.map +1 -0
- package/dist/es/components/DataTable/DataTable.js +108 -0
- package/dist/es/components/DataTable/DataTable.js.map +1 -0
- package/dist/es/components/DataTable/DataTable.utils.js +83 -0
- package/dist/es/components/DataTable/DataTable.utils.js.map +1 -0
- package/dist/es/components/DetailedInformation/DetailedInformation.js +65 -0
- package/dist/es/components/DetailedInformation/DetailedInformation.js.map +1 -0
- package/dist/es/components/Dot/index.js +10 -0
- package/dist/es/components/Dot/index.js.map +1 -0
- package/dist/es/components/Drawer/Drawer.js +65 -0
- package/dist/es/components/Drawer/Drawer.js.map +1 -0
- package/dist/es/components/Dropdown/Dropdown.js +48 -0
- package/dist/es/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/es/components/EmptyState/index.js +12 -0
- package/dist/es/components/EmptyState/index.js.map +1 -0
- package/dist/es/components/Flex/Flex.js +22 -0
- package/dist/es/components/Flex/Flex.js.map +1 -0
- package/dist/es/components/FloatingActionButton/FloatingActionButton.js +69 -0
- package/dist/es/components/FloatingActionButton/FloatingActionButton.js.map +1 -0
- package/dist/es/components/Grid/Grid.js +30 -0
- package/dist/es/components/Grid/Grid.js.map +1 -0
- package/dist/es/components/HeadingText/HeadingText.js +87 -0
- package/dist/es/components/HeadingText/HeadingText.js.map +1 -0
- package/dist/es/components/Icons/ArrowDownAZ.svg.js +23 -0
- package/dist/es/components/Icons/ArrowDownAZ.svg.js.map +1 -0
- package/dist/es/components/Icons/ArrowDownNarrowWide.svg.js +23 -0
- package/dist/es/components/Icons/ArrowDownNarrowWide.svg.js.map +1 -0
- package/dist/es/components/Icons/ArrowDownWideNarrow.svg.js +23 -0
- package/dist/es/components/Icons/ArrowDownWideNarrow.svg.js.map +1 -0
- package/dist/es/components/Icons/ArrowDownZA.svg.js +23 -0
- package/dist/es/components/Icons/ArrowDownZA.svg.js.map +1 -0
- package/dist/es/components/Icons/ArrowUpDown.svg.js +23 -0
- package/dist/es/components/Icons/ArrowUpDown.svg.js.map +1 -0
- package/dist/es/components/Icons/BadgeCheck.svg.js +25 -0
- package/dist/es/components/Icons/BadgeCheck.svg.js.map +1 -0
- package/dist/es/components/Icons/Check.svg.js +23 -0
- package/dist/es/components/Icons/Check.svg.js.map +1 -0
- package/dist/es/components/Icons/ChevronDown.svg.js +23 -0
- package/dist/es/components/Icons/ChevronDown.svg.js.map +1 -0
- package/dist/es/components/Icons/ChevronLeft.svg.js +23 -0
- package/dist/es/components/Icons/ChevronLeft.svg.js.map +1 -0
- package/dist/es/components/Icons/ChevronRight.svg.js +23 -0
- package/dist/es/components/Icons/ChevronRight.svg.js.map +1 -0
- package/dist/es/components/Icons/CircleAlert.svg.js +27 -0
- package/dist/es/components/Icons/CircleAlert.svg.js.map +1 -0
- package/dist/es/components/Icons/CircleCheck.svg.js +27 -0
- package/dist/es/components/Icons/CircleCheck.svg.js.map +1 -0
- package/dist/es/components/Icons/CirclePlus.svg.js +27 -0
- package/dist/es/components/Icons/CirclePlus.svg.js.map +1 -0
- package/dist/es/components/Icons/CircleX.svg.js +27 -0
- package/dist/es/components/Icons/CircleX.svg.js.map +1 -0
- package/dist/es/components/Icons/FolderPlus.svg.js +23 -0
- package/dist/es/components/Icons/FolderPlus.svg.js.map +1 -0
- package/dist/es/components/Icons/Info.svg.js +27 -0
- package/dist/es/components/Icons/Info.svg.js.map +1 -0
- package/dist/es/components/Icons/Search.svg.js +27 -0
- package/dist/es/components/Icons/Search.svg.js.map +1 -0
- package/dist/es/components/Icons/Slash.svg.js +23 -0
- package/dist/es/components/Icons/Slash.svg.js.map +1 -0
- package/dist/es/components/Icons/TriangleAlert.svg.js +23 -0
- package/dist/es/components/Icons/TriangleAlert.svg.js.map +1 -0
- package/dist/es/components/Icons/X.svg.js +23 -0
- package/dist/es/components/Icons/X.svg.js.map +1 -0
- package/dist/es/components/Input/Input.js +82 -0
- package/dist/es/components/Input/Input.js.map +1 -0
- package/dist/es/components/Label/Label.js +12 -0
- package/dist/es/components/Label/Label.js.map +1 -0
- package/dist/es/components/Loader/index.js +16 -0
- package/dist/es/components/Loader/index.js.map +1 -0
- package/dist/es/components/MobileHeader/MobileHeader.js +43 -0
- package/dist/es/components/MobileHeader/MobileHeader.js.map +1 -0
- package/dist/es/components/MobilePicker/MobilePicker.js +366 -0
- package/dist/es/components/MobilePicker/MobilePicker.js.map +1 -0
- package/dist/es/components/MobileStepper/MobileStepper.js +31 -0
- package/dist/es/components/MobileStepper/MobileStepper.js.map +1 -0
- package/dist/es/components/Pagination/Pagination.js +31 -0
- package/dist/es/components/Pagination/Pagination.js.map +1 -0
- package/dist/es/components/Pagination/usePagination.js +30 -0
- package/dist/es/components/Pagination/usePagination.js.map +1 -0
- package/dist/es/components/PasswordInput/PasswordInput.js +51 -0
- package/dist/es/components/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/es/components/PinInput/PinInput.js +96 -0
- package/dist/es/components/PinInput/PinInput.js.map +1 -0
- package/dist/es/components/PullToRefresh/PullToRefresh.js +81 -0
- package/dist/es/components/PullToRefresh/PullToRefresh.js.map +1 -0
- package/dist/es/components/QuantityStepper/QuantityStepper.js +75 -0
- package/dist/es/components/QuantityStepper/QuantityStepper.js.map +1 -0
- package/dist/es/components/Radio/Radio.js +32 -0
- package/dist/es/components/Radio/Radio.js.map +1 -0
- package/dist/es/components/RadioGroup/RadioGroup.js +48 -0
- package/dist/es/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/es/components/RadioSwitch/RadioSwitch.js +114 -0
- package/dist/es/components/RadioSwitch/RadioSwitch.js.map +1 -0
- package/dist/es/components/RangeInput/RangeInput.js +64 -0
- package/dist/es/components/RangeInput/RangeInput.js.map +1 -0
- package/dist/es/components/RangeSlider/RangeSlider.js +165 -0
- package/dist/es/components/RangeSlider/RangeSlider.js.map +1 -0
- package/dist/es/components/SegmentedControl/SegmentedControl.js +62 -0
- package/dist/es/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/es/components/SelectBox/SelectBox.js +303 -0
- package/dist/es/components/SelectBox/SelectBox.js.map +1 -0
- package/dist/es/components/Skeleton/Skeleton.js +34 -0
- package/dist/es/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/es/components/StatusPill/StatusPill.js +44 -0
- package/dist/es/components/StatusPill/StatusPill.js.map +1 -0
- package/dist/es/components/StickyActionBar/StickyActionBar.js +20 -0
- package/dist/es/components/StickyActionBar/StickyActionBar.js.map +1 -0
- package/dist/es/components/SwipeableRow/SwipeableRow.js +185 -0
- package/dist/es/components/SwipeableRow/SwipeableRow.js.map +1 -0
- package/dist/es/components/SwipeableTabs/SwipeableTabs.js +89 -0
- package/dist/es/components/SwipeableTabs/SwipeableTabs.js.map +1 -0
- package/dist/es/components/Table/Table.js +48 -0
- package/dist/es/components/Table/Table.js.map +1 -0
- package/dist/es/components/Tabs/Tabs.js +51 -0
- package/dist/es/components/Tabs/Tabs.js.map +1 -0
- package/dist/es/components/TextContent/TextContent.js +45 -0
- package/dist/es/components/TextContent/TextContent.js.map +1 -0
- package/dist/es/components/Textarea/Textarea.js +62 -0
- package/dist/es/components/Textarea/Textarea.js.map +1 -0
- package/dist/es/components/Toast/Toast.js +94 -0
- package/dist/es/components/Toast/Toast.js.map +1 -0
- package/dist/es/components/Toast/ToastProvider.js +148 -0
- package/dist/es/components/Toast/ToastProvider.js.map +1 -0
- package/dist/es/components/VirtualizedDataTable/VirtualizedDataTable.js +120 -0
- package/dist/es/components/VirtualizedDataTable/VirtualizedDataTable.js.map +1 -0
- package/dist/es/components/VirtualizedDataTable/VirtualizedRow.js +46 -0
- package/dist/es/components/VirtualizedDataTable/VirtualizedRow.js.map +1 -0
- package/dist/es/components/WheelPicker/WheelPicker.js +80 -0
- package/dist/es/components/WheelPicker/WheelPicker.js.map +1 -0
- package/dist/es/components/common-responsive.js +287 -0
- package/dist/es/components/common-responsive.js.map +1 -0
- package/dist/es/hooks/use-debounce.js +28 -0
- package/dist/es/hooks/use-debounce.js.map +1 -0
- package/dist/es/hooks/use-is-mobile.js +22 -0
- package/dist/es/hooks/use-is-mobile.js.map +1 -0
- package/dist/es/hooks/use-is-tablet-or-mobile.js +11 -0
- package/dist/es/hooks/use-is-tablet-or-mobile.js.map +1 -0
- package/dist/es/hooks/use-is-tablet.js +19 -0
- package/dist/es/hooks/use-is-tablet.js.map +1 -0
- package/dist/es/index.js +67 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/react-tailwind.css +2 -0
- package/dist/es/react-tailwind.css.map +1 -0
- package/dist/es/utils/build-classname.js +6 -0
- package/dist/es/utils/build-classname.js.map +1 -0
- package/dist/es/utils/get.js +18 -0
- package/dist/es/utils/get.js.map +1 -0
- package/dist/es/utils/is-array.js +10 -0
- package/dist/es/utils/is-array.js.map +1 -0
- package/dist/es/utils/is-empty.js +24 -0
- package/dist/es/utils/is-empty.js.map +1 -0
- package/dist/react-tailwind.cjs.js +2298 -472
- package/dist/react-tailwind.cjs.js.map +1 -1
- package/dist/react-tailwind.es.js +2284 -474
- package/dist/react-tailwind.es.js.map +1 -1
- package/dist/types/components/ActionSheet/ActionSheet.d.ts +5 -0
- package/dist/types/components/ActionSheet/ActionSheet.test.d.ts +1 -0
- package/dist/types/components/ActionSheet/ActionSheet.types.d.ts +44 -0
- package/dist/types/components/ActionSheet/index.d.ts +2 -0
- package/dist/types/components/Badge/Badge.types.d.ts +1 -1
- package/dist/types/components/BottomNavigation/BottomNavigation.d.ts +5 -0
- package/dist/types/components/BottomNavigation/BottomNavigation.test.d.ts +1 -0
- package/dist/types/components/BottomNavigation/BottomNavigation.types.d.ts +41 -0
- package/dist/types/components/BottomNavigation/index.d.ts +2 -0
- package/dist/types/components/Card/Card.types.d.ts +25 -0
- package/dist/types/components/DataList/DataList.d.ts +5 -0
- package/dist/types/components/DataList/DataList.test.d.ts +1 -0
- package/dist/types/components/DataList/DataList.types.d.ts +81 -0
- package/dist/types/components/DataList/index.d.ts +2 -0
- package/dist/types/components/DataTable/DataTable.d.ts +1 -1
- package/dist/types/components/DataTable/DataTable.types.d.ts +10 -0
- package/dist/types/components/Flex/Flex.d.ts +3 -0
- package/dist/types/components/Flex/Flex.test.d.ts +1 -0
- package/dist/types/components/Flex/Flex.types.d.ts +92 -0
- package/dist/types/components/Flex/index.d.ts +2 -0
- package/dist/types/components/FloatingActionButton/FloatingActionButton.d.ts +5 -0
- package/dist/types/components/FloatingActionButton/FloatingActionButton.test.d.ts +1 -0
- package/dist/types/components/FloatingActionButton/FloatingActionButton.types.d.ts +48 -0
- package/dist/types/components/FloatingActionButton/index.d.ts +2 -0
- package/dist/types/components/Grid/Grid.d.ts +3 -0
- package/dist/types/components/Grid/Grid.test.d.ts +1 -0
- package/dist/types/components/Grid/Grid.types.d.ts +136 -0
- package/dist/types/components/Grid/index.d.ts +2 -0
- package/dist/types/components/Input/Input.types.d.ts +3 -3
- package/dist/types/components/MobileHeader/MobileHeader.d.ts +5 -0
- package/dist/types/components/MobileHeader/MobileHeader.test.d.ts +1 -0
- package/dist/types/components/MobileHeader/MobileHeader.types.d.ts +49 -0
- package/dist/types/components/MobileHeader/index.d.ts +2 -0
- package/dist/types/components/MobilePicker/MobilePicker.d.ts +6 -0
- package/dist/types/components/MobilePicker/MobilePicker.test.d.ts +1 -0
- package/dist/types/components/MobilePicker/MobilePicker.types.d.ts +90 -0
- package/dist/types/components/MobilePicker/index.d.ts +2 -0
- package/dist/types/components/MobileStepper/MobileStepper.d.ts +5 -0
- package/dist/types/components/MobileStepper/MobileStepper.test.d.ts +1 -0
- package/dist/types/components/MobileStepper/MobileStepper.types.d.ts +28 -0
- package/dist/types/components/MobileStepper/index.d.ts +2 -0
- package/dist/types/components/PinInput/PinInput.d.ts +5 -0
- package/dist/types/components/PinInput/PinInput.test.d.ts +1 -0
- package/dist/types/components/PinInput/PinInput.types.d.ts +29 -0
- package/dist/types/components/PinInput/index.d.ts +2 -0
- package/dist/types/components/PullToRefresh/PullToRefresh.d.ts +5 -0
- package/dist/types/components/PullToRefresh/PullToRefresh.test.d.ts +1 -0
- package/dist/types/components/PullToRefresh/PullToRefresh.types.d.ts +23 -0
- package/dist/types/components/PullToRefresh/index.d.ts +2 -0
- package/dist/types/components/QuantityStepper/QuantityStepper.types.d.ts +18 -1
- package/dist/types/components/SelectBox/SelectBox.types.d.ts +9 -0
- package/dist/types/components/SwipeableRow/SwipeableRow.d.ts +3 -0
- package/dist/types/components/SwipeableRow/SwipeableRow.test.d.ts +1 -0
- package/dist/types/components/SwipeableRow/SwipeableRow.types.d.ts +42 -0
- package/dist/types/components/SwipeableRow/index.d.ts +2 -0
- package/dist/types/components/SwipeableTabs/SwipeableTabs.d.ts +5 -0
- package/dist/types/components/SwipeableTabs/SwipeableTabs.test.d.ts +1 -0
- package/dist/types/components/SwipeableTabs/SwipeableTabs.types.d.ts +38 -0
- package/dist/types/components/SwipeableTabs/index.d.ts +2 -0
- package/dist/types/components/WheelPicker/WheelPicker.d.ts +5 -0
- package/dist/types/components/WheelPicker/WheelPicker.test.d.ts +1 -0
- package/dist/types/components/WheelPicker/WheelPicker.types.d.ts +35 -0
- package/dist/types/components/WheelPicker/index.d.ts +2 -0
- package/dist/types/components/common-responsive.d.ts +57 -0
- package/dist/types/index.d.ts +14 -0
- package/package.json +11 -3
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ActionSheetProps } from './ActionSheet.types';
|
|
2
|
+
export declare function ActionSheet({ isOpen, onClose, title, description, actions, showCancelButton, cancelLabel, onCancel, closeOnBackdropClick, dragHandle, panelClass, containerClass, }: ActionSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace ActionSheet {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type ActionSheetItemTheme = 'default' | 'primary' | 'danger';
|
|
3
|
+
export interface ActionSheetItem {
|
|
4
|
+
/** Unique action identifier */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Display label text */
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
/** Optional icon rendered on the left */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
/** Optional secondary description text */
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
/** Visual color theme variant ('default' | 'primary' | 'danger') */
|
|
13
|
+
theme?: ActionSheetItemTheme;
|
|
14
|
+
/** Disables click interaction */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Click handler callback */
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface ActionSheetProps {
|
|
20
|
+
/** Controls if the action sheet is open */
|
|
21
|
+
isOpen: boolean;
|
|
22
|
+
/** Handler called when sheet backdrop is clicked or closed */
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
/** Optional header title */
|
|
25
|
+
title?: ReactNode;
|
|
26
|
+
/** Optional header description/subtext */
|
|
27
|
+
description?: ReactNode;
|
|
28
|
+
/** List of action items */
|
|
29
|
+
actions: ActionSheetItem[];
|
|
30
|
+
/** Displays a separate bottom Cancel button (default: true) */
|
|
31
|
+
showCancelButton?: boolean;
|
|
32
|
+
/** Custom text for Cancel button (default: "Cancel") */
|
|
33
|
+
cancelLabel?: string;
|
|
34
|
+
/** Callback when Cancel button is clicked */
|
|
35
|
+
onCancel?: () => void;
|
|
36
|
+
/** Controls whether clicking backdrop overlay closes the sheet (default: true) */
|
|
37
|
+
closeOnBackdropClick?: boolean;
|
|
38
|
+
/** Shows top drag handle pill (default: true) */
|
|
39
|
+
dragHandle?: boolean;
|
|
40
|
+
/** Custom class for panel */
|
|
41
|
+
panelClass?: string;
|
|
42
|
+
/** Custom class for action items container */
|
|
43
|
+
containerClass?: string;
|
|
44
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type BadgeTheme = 'success' | 'danger' | 'warning' | 'info' | 'secondary';
|
|
2
|
+
export type BadgeTheme = 'success' | 'danger' | 'warning' | 'info' | 'primary' | 'secondary';
|
|
3
3
|
export type BadgeSize = 'sm' | 'md';
|
|
4
4
|
export interface BadgeProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
5
5
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BottomNavigationProps } from './BottomNavigation.types';
|
|
2
|
+
export declare function BottomNavigation({ items, activeId, onChange, fixed, showLabels, theme, activeIndicatorStyle, containerClass, itemClass, }: BottomNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace BottomNavigation {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type BottomNavigationLabelVisibility = 'always' | 'active' | 'never';
|
|
3
|
+
export type BottomNavigationTheme = 'primary' | 'dark' | 'light';
|
|
4
|
+
export interface BottomNavigationItem {
|
|
5
|
+
/** Unique tab identifier */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Display label text */
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
/** Icon rendered in standard state */
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
/** Optional custom icon rendered when active */
|
|
12
|
+
activeIcon?: ReactNode;
|
|
13
|
+
/** Optional notification badge text or number (e.g. 3 or "NEW") */
|
|
14
|
+
badge?: string | number;
|
|
15
|
+
/** Badge color variant ('danger' | 'info' | 'success') */
|
|
16
|
+
badgeVariant?: 'danger' | 'info' | 'success';
|
|
17
|
+
/** Disables tab click */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Custom click handler */
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
}
|
|
22
|
+
export interface BottomNavigationProps {
|
|
23
|
+
/** Array of bottom navigation items (3 to 5 recommended) */
|
|
24
|
+
items: BottomNavigationItem[];
|
|
25
|
+
/** Controlled active tab ID */
|
|
26
|
+
activeId: string;
|
|
27
|
+
/** Callback fired when a tab is selected */
|
|
28
|
+
onChange: (id: string) => void;
|
|
29
|
+
/** Fixed positioning at bottom of viewport (default: true) */
|
|
30
|
+
fixed?: boolean;
|
|
31
|
+
/** Controls when tab labels are visible ('always' | 'active' | 'never', default: 'always') */
|
|
32
|
+
showLabels?: BottomNavigationLabelVisibility;
|
|
33
|
+
/** Theme styling variant ('primary' | 'dark' | 'light', default: 'light') */
|
|
34
|
+
theme?: BottomNavigationTheme;
|
|
35
|
+
/** Active tab indicator visual style ('pill' | 'line' | 'dot' | 'none', default: 'pill') */
|
|
36
|
+
activeIndicatorStyle?: 'pill' | 'line' | 'dot' | 'none';
|
|
37
|
+
/** Outer container class string */
|
|
38
|
+
containerClass?: string;
|
|
39
|
+
/** Tab button item class string */
|
|
40
|
+
itemClass?: string;
|
|
41
|
+
}
|
|
@@ -42,6 +42,31 @@ export type CardBaseProps = {
|
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
44
|
zeroPadding?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Optional primary title node for mobile & web card rows
|
|
47
|
+
*/
|
|
48
|
+
title?: React.ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Optional secondary subtitle node for mobile & web card rows
|
|
51
|
+
*/
|
|
52
|
+
subtitle?: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Leading node (e.g. Avatar, thumbnail image, or icon)
|
|
55
|
+
*/
|
|
56
|
+
leading?: React.ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Trailing detail text or action node
|
|
59
|
+
*/
|
|
60
|
+
trailing?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Optional status badge or count pill
|
|
63
|
+
*/
|
|
64
|
+
badge?: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Render trailing chevron arrow navigation icon
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
showChevron?: boolean;
|
|
45
70
|
};
|
|
46
71
|
export type PolymorphicCardProps<C extends ElementType, Props = {}> = Props & {
|
|
47
72
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DataListProps } from './DataList.types';
|
|
2
|
+
export declare function DataList<T extends Record<string, any> = Record<string, any>>({ items, columns, renderItem, searchable, searchQuery: externalSearchQuery, onSearchChange, searchFields, filterFields, selectedFilters: externalFilters, onFilterChange, sorting: externalSorting, onSortChange, swipeableActions, rowKey, selectable, selectedKeys, onSelectionChange, onItemClick, loading, emptyMessage, pagination, setPagination, containerClass, itemClass, }: DataListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace DataList {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { TPagination } from '../Pagination';
|
|
3
|
+
import type { SwipeableAction } from '../SwipeableRow';
|
|
4
|
+
export type DataListSortDirection = 'asc' | 'desc' | '1' | '-1';
|
|
5
|
+
export interface DataListColumn<T = any> {
|
|
6
|
+
/** Unique key or property path */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Display label text */
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
/** Enables sorting on this field */
|
|
11
|
+
sortable?: boolean;
|
|
12
|
+
/** Data type for sorting logic */
|
|
13
|
+
type?: 'string' | 'number' | 'date';
|
|
14
|
+
/** Custom renderer for item card */
|
|
15
|
+
render?: (item: T) => ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface DataListFilterOption {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string | number;
|
|
20
|
+
}
|
|
21
|
+
export interface DataListFilterField {
|
|
22
|
+
/** Field name string */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Filter display label */
|
|
25
|
+
label: string;
|
|
26
|
+
/** Selectable filter options */
|
|
27
|
+
options: DataListFilterOption[];
|
|
28
|
+
}
|
|
29
|
+
export interface DataListProps<T = any> {
|
|
30
|
+
/** Array of data items */
|
|
31
|
+
items: T[];
|
|
32
|
+
/** Column definitions used for card grid rendering and auto-sorting/filtering */
|
|
33
|
+
columns?: DataListColumn<T>[];
|
|
34
|
+
/** Custom item card renderer */
|
|
35
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
36
|
+
/** Enables top search input */
|
|
37
|
+
searchable?: boolean;
|
|
38
|
+
/** Controlled search query */
|
|
39
|
+
searchQuery?: string;
|
|
40
|
+
/** Search query change handler */
|
|
41
|
+
onSearchChange?: (query: string) => void;
|
|
42
|
+
/** Fields to search across (defaults to string/number column names) */
|
|
43
|
+
searchFields?: string[];
|
|
44
|
+
/** Available filter fields */
|
|
45
|
+
filterFields?: DataListFilterField[];
|
|
46
|
+
/** Controlled filter values keyed by filter field name (supports string, number, or array of selected values) */
|
|
47
|
+
selectedFilters?: Record<string, Array<string | number> | string | number>;
|
|
48
|
+
/** Filter values change handler */
|
|
49
|
+
onFilterChange?: (filters: Record<string, Array<string | number> | string | number>) => void;
|
|
50
|
+
/** Controlled sort state, e.g. `{ status: 'asc' }` */
|
|
51
|
+
sorting?: Record<string, DataListSortDirection>;
|
|
52
|
+
/** Sort change callback handler */
|
|
53
|
+
onSortChange?: (sorting: Record<string, DataListSortDirection>) => void;
|
|
54
|
+
/** Swipe actions callback for card rows */
|
|
55
|
+
swipeableActions?: (item: T) => {
|
|
56
|
+
leftActions?: SwipeableAction[];
|
|
57
|
+
rightActions?: SwipeableAction[];
|
|
58
|
+
};
|
|
59
|
+
/** Unique row key field or function */
|
|
60
|
+
rowKey?: string | ((item: T) => string | number);
|
|
61
|
+
/** Enables touch selection checkboxes */
|
|
62
|
+
selectable?: boolean;
|
|
63
|
+
/** Controlled selected item keys */
|
|
64
|
+
selectedKeys?: Array<string | number>;
|
|
65
|
+
/** Selection change callback */
|
|
66
|
+
onSelectionChange?: (selectedKeys: Array<string | number>, selectedItems: T[]) => void;
|
|
67
|
+
/** Item click callback */
|
|
68
|
+
onItemClick?: (item: T, index: number) => void;
|
|
69
|
+
/** Loading state */
|
|
70
|
+
loading?: boolean;
|
|
71
|
+
/** Empty state message */
|
|
72
|
+
emptyMessage?: ReactNode;
|
|
73
|
+
/** Pagination config */
|
|
74
|
+
pagination?: TPagination;
|
|
75
|
+
/** Pagination setter */
|
|
76
|
+
setPagination?: (pagination: Partial<TPagination>) => void;
|
|
77
|
+
/** Outer container class */
|
|
78
|
+
containerClass?: string;
|
|
79
|
+
/** Item card wrapper class */
|
|
80
|
+
itemClass?: string | ((item: T, index: number) => string);
|
|
81
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DataTableProps } from './DataTable.types';
|
|
2
|
-
export declare function DataTable<T extends Record<string, any> = Record<string, any>>({ items, columns, sorting, onSort, loading, pagination, setPagination, emptyMessage, containerClass, wrapperClass, tableClass, headClass, footerRow, rowKey, onRowClick, rowClass, density, striped, layout, selectable, selectedRowKeys, defaultSelectedRowKeys, onSelectionChange, isRowSelectable, paginationContainerClass, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function DataTable<T extends Record<string, any> = Record<string, any>>({ items, columns, sorting, onSort, loading, pagination, setPagination, emptyMessage, containerClass, wrapperClass, tableClass, headClass, footerRow, rowKey, onRowClick, rowClass, density, striped, layout, selectable, selectedRowKeys, defaultSelectedRowKeys, onSelectionChange, isRowSelectable, stickyHeader, stickyPagination, paginationContainerClass, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare namespace DataTable {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -72,6 +72,16 @@ export interface DataTableProps<T = any> {
|
|
|
72
72
|
setPagination?: (pagination: Partial<TPagination>) => void;
|
|
73
73
|
/** Table layout algorithm */
|
|
74
74
|
layout?: 'fixed' | 'auto';
|
|
75
|
+
/**
|
|
76
|
+
* Pins the table header to the top when scrolling.
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
stickyHeader?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Pins the pagination footer to the bottom when scrolling.
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
stickyPagination?: boolean;
|
|
75
85
|
/**
|
|
76
86
|
* Determines the stable React key for each row.
|
|
77
87
|
* Pass a field name string or a function returning a unique value.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { ResponsiveOrder } from '../common-responsive';
|
|
3
|
+
export type FlexGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export type FlexAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
5
|
+
export type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
6
|
+
export type FlexDirection = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
7
|
+
export type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
8
|
+
export type FlexSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto' | 'full';
|
|
9
|
+
export interface FlexProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Render element tag override
|
|
12
|
+
* @default 'div'
|
|
13
|
+
*/
|
|
14
|
+
as?: ElementType;
|
|
15
|
+
/**
|
|
16
|
+
* Spacing gap between flex items (applies to both axes unless `gapX`/`gapY` are set)
|
|
17
|
+
* @default undefined
|
|
18
|
+
*/
|
|
19
|
+
gap?: FlexGap;
|
|
20
|
+
/**
|
|
21
|
+
* Horizontal gap between flex items, overrides `gap` on the x-axis
|
|
22
|
+
* @default undefined
|
|
23
|
+
*/
|
|
24
|
+
gapX?: FlexGap;
|
|
25
|
+
/**
|
|
26
|
+
* Vertical gap between flex items, overrides `gap` on the y-axis
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
gapY?: FlexGap;
|
|
30
|
+
/**
|
|
31
|
+
* Vertical cross-axis alignment
|
|
32
|
+
* @default 'stretch'
|
|
33
|
+
*/
|
|
34
|
+
align?: FlexAlign;
|
|
35
|
+
/**
|
|
36
|
+
* Horizontal main-axis distribution
|
|
37
|
+
* @default 'start'
|
|
38
|
+
*/
|
|
39
|
+
justify?: FlexJustify;
|
|
40
|
+
/**
|
|
41
|
+
* Flex direction (row, row-reverse, col, col-reverse)
|
|
42
|
+
* @default 'row'
|
|
43
|
+
*/
|
|
44
|
+
direction?: FlexDirection;
|
|
45
|
+
/**
|
|
46
|
+
* Flex wrapping behavior (wrap, nowrap, wrap-reverse)
|
|
47
|
+
* @default 'wrap'
|
|
48
|
+
*/
|
|
49
|
+
wrap?: FlexWrap;
|
|
50
|
+
/**
|
|
51
|
+
* Renders container as inline-flex
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
inline?: boolean;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
export interface FlexItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
58
|
+
/**
|
|
59
|
+
* Render element tag override
|
|
60
|
+
* @default 'div'
|
|
61
|
+
*/
|
|
62
|
+
as?: ElementType;
|
|
63
|
+
/**
|
|
64
|
+
* Width fraction (1-12, 'auto', 'full')
|
|
65
|
+
*/
|
|
66
|
+
span?: FlexSpan;
|
|
67
|
+
/** Responsive width fraction at sm breakpoint (>= 640px) */
|
|
68
|
+
sm?: FlexSpan;
|
|
69
|
+
/** Responsive width fraction at md breakpoint (>= 768px) */
|
|
70
|
+
md?: FlexSpan;
|
|
71
|
+
/** Responsive width fraction at lg breakpoint (>= 1024px) */
|
|
72
|
+
lg?: FlexSpan;
|
|
73
|
+
/** Responsive width fraction at xl breakpoint (>= 1280px) */
|
|
74
|
+
xl?: FlexSpan;
|
|
75
|
+
/** Responsive width fraction at 2xl breakpoint (>= 1536px) */
|
|
76
|
+
xxl?: FlexSpan;
|
|
77
|
+
/** Allows flex item to grow and fill available space */
|
|
78
|
+
grow?: boolean;
|
|
79
|
+
/** Controls flex item shrinking behavior */
|
|
80
|
+
shrink?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Visual order of the flex item. `'first'`/`'last'` map to Tailwind's
|
|
83
|
+
* `order-first`/`order-last` utilities; a numeric value is applied via an
|
|
84
|
+
* inline `order` style so any value is supported.
|
|
85
|
+
*/
|
|
86
|
+
order?: ResponsiveOrder;
|
|
87
|
+
children?: ReactNode;
|
|
88
|
+
}
|
|
89
|
+
export interface FlexComponent extends React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>> {
|
|
90
|
+
Item: React.ForwardRefExoticComponent<FlexItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
Col: React.ForwardRefExoticComponent<FlexItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FloatingActionButtonProps } from './FloatingActionButton.types';
|
|
2
|
+
export declare function FloatingActionButton({ icon, activeIcon, label, variant, size, position, speedDialActions, isOpen: externalIsOpen, onToggle, disabled, onClick, 'aria-label': ariaLabel, containerClass, className, }: FloatingActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace FloatingActionButton {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type FABVariant = 'primary' | 'secondary' | 'danger' | 'dark';
|
|
3
|
+
export type FABSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type FABPosition = 'bottom-right' | 'bottom-left' | 'bottom-center' | 'inline';
|
|
5
|
+
export interface FABSpeedDialAction {
|
|
6
|
+
/** Unique sub-action identifier */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Display label text */
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
/** Icon rendered next to label */
|
|
11
|
+
icon: ReactNode;
|
|
12
|
+
/** Visual color theme ('default' | 'danger' | 'primary') */
|
|
13
|
+
theme?: 'default' | 'danger' | 'primary';
|
|
14
|
+
/** Disables sub-action click */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Click handler callback */
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface FloatingActionButtonProps {
|
|
20
|
+
/** Primary button icon */
|
|
21
|
+
icon: ReactNode;
|
|
22
|
+
/** Optional active icon when speed dial menu is expanded (e.g. X close icon) */
|
|
23
|
+
activeIcon?: ReactNode;
|
|
24
|
+
/** Label text for Extended FAB (Icon + Text layout) */
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
/** Color theme variant (default: 'primary') */
|
|
27
|
+
variant?: FABVariant;
|
|
28
|
+
/** Button size scale (default: 'md') */
|
|
29
|
+
size?: FABSize;
|
|
30
|
+
/** Screen positioning (default: 'bottom-right') */
|
|
31
|
+
position?: FABPosition;
|
|
32
|
+
/** List of expandable speed dial sub-actions */
|
|
33
|
+
speedDialActions?: FABSpeedDialAction[];
|
|
34
|
+
/** Controlled open state for speed dial */
|
|
35
|
+
isOpen?: boolean;
|
|
36
|
+
/** Handler called when speed dial open state changes */
|
|
37
|
+
onToggle?: (open: boolean) => void;
|
|
38
|
+
/** Disables click interaction */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Primary click handler (when speedDialActions is empty) */
|
|
41
|
+
onClick?: () => void;
|
|
42
|
+
/** Accessible label */
|
|
43
|
+
'aria-label'?: string;
|
|
44
|
+
/** Outer container class string */
|
|
45
|
+
containerClass?: string;
|
|
46
|
+
/** Button element class string */
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import type { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { ResponsiveOrder } from '../common-responsive';
|
|
3
|
+
export type GridGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export type GridAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
5
|
+
export type GridJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
6
|
+
export type GridDirection = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
7
|
+
export type GridWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
8
|
+
export type GridColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto' | 'full';
|
|
9
|
+
export type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto';
|
|
10
|
+
export interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* HTML element type to render
|
|
13
|
+
* @default "div"
|
|
14
|
+
*/
|
|
15
|
+
as?: ElementType;
|
|
16
|
+
/**
|
|
17
|
+
* Preset column grid layout (1-12, auto). Ignored when `minColWidth` is set.
|
|
18
|
+
*/
|
|
19
|
+
cols?: GridCols;
|
|
20
|
+
/**
|
|
21
|
+
* Renders a breakpoint-free responsive grid: columns are computed with
|
|
22
|
+
* `repeat(auto-fit|auto-fill, minmax(minColWidth, 1fr))`, so the item count
|
|
23
|
+
* per row adapts continuously to the container width instead of jumping at
|
|
24
|
+
* fixed breakpoints. Accepts any CSS length (e.g. `'12rem'`, `'240px'`).
|
|
25
|
+
* Takes precedence over `cols` when set.
|
|
26
|
+
*/
|
|
27
|
+
minColWidth?: string;
|
|
28
|
+
/**
|
|
29
|
+
* When `minColWidth` is set, controls whether trailing empty tracks are
|
|
30
|
+
* collapsed (`autoFit: true`, columns stretch to fill the row) or kept as
|
|
31
|
+
* empty tracks (`autoFit: false`, uses `auto-fill`).
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
autoFit?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Gap spacing between grid items (applies to both axes unless `gapX`/`gapY` are set)
|
|
37
|
+
* @default "md"
|
|
38
|
+
*/
|
|
39
|
+
gap?: GridGap;
|
|
40
|
+
/**
|
|
41
|
+
* Horizontal gap between grid items, overrides `gap` on the x-axis
|
|
42
|
+
* @default undefined
|
|
43
|
+
*/
|
|
44
|
+
gapX?: GridGap;
|
|
45
|
+
/**
|
|
46
|
+
* Vertical gap between grid items, overrides `gap` on the y-axis
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
gapY?: GridGap;
|
|
50
|
+
/**
|
|
51
|
+
* Alignment along the cross axis (align-items)
|
|
52
|
+
* @default "stretch"
|
|
53
|
+
*/
|
|
54
|
+
align?: GridAlign;
|
|
55
|
+
/**
|
|
56
|
+
* Distribution along the main axis (justify-content)
|
|
57
|
+
* @default "start"
|
|
58
|
+
*/
|
|
59
|
+
justify?: GridJustify;
|
|
60
|
+
/**
|
|
61
|
+
* Flex direction, only applies when `flex` is true
|
|
62
|
+
* @default "row"
|
|
63
|
+
*/
|
|
64
|
+
direction?: GridDirection;
|
|
65
|
+
/**
|
|
66
|
+
* Flex wrap behavior, only applies when `flex` is true
|
|
67
|
+
* @default "wrap"
|
|
68
|
+
*/
|
|
69
|
+
wrap?: GridWrap;
|
|
70
|
+
/**
|
|
71
|
+
* Renders as a flex/inline-flex container instead of CSS grid, reusing the
|
|
72
|
+
* same `gap`/`align`/`justify` props (plus `direction`/`wrap`). Useful when
|
|
73
|
+
* a layout needs to switch between grid and flex without swapping
|
|
74
|
+
* components. Note that `Grid.Col`'s `span`/`sm`/`md`/`lg`/`xl`/`xxl` props
|
|
75
|
+
* are CSS Grid-only and have no effect here — use `grow`/`shrink`/`order`
|
|
76
|
+
* instead, or reach for `Flex`/`Flex.Item` directly.
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
flex?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Renders as an inline container (inline-grid / inline-flex) instead of block
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
inline?: boolean;
|
|
85
|
+
children?: ReactNode;
|
|
86
|
+
}
|
|
87
|
+
export interface GridColProps extends HTMLAttributes<HTMLDivElement> {
|
|
88
|
+
/**
|
|
89
|
+
* HTML element type to render
|
|
90
|
+
* @default "div"
|
|
91
|
+
*/
|
|
92
|
+
as?: ElementType;
|
|
93
|
+
/**
|
|
94
|
+
* Column span (1-12, 'auto', 'full')
|
|
95
|
+
*/
|
|
96
|
+
span?: GridColSpan;
|
|
97
|
+
/**
|
|
98
|
+
* Responsive span on sm viewports (>= 640px)
|
|
99
|
+
*/
|
|
100
|
+
sm?: GridColSpan;
|
|
101
|
+
/**
|
|
102
|
+
* Responsive span on md viewports (>= 768px)
|
|
103
|
+
*/
|
|
104
|
+
md?: GridColSpan;
|
|
105
|
+
/**
|
|
106
|
+
* Responsive span on lg viewports (>= 1024px)
|
|
107
|
+
*/
|
|
108
|
+
lg?: GridColSpan;
|
|
109
|
+
/**
|
|
110
|
+
* Responsive span on xl viewports (>= 1280px)
|
|
111
|
+
*/
|
|
112
|
+
xl?: GridColSpan;
|
|
113
|
+
/**
|
|
114
|
+
* Responsive span on 2xl viewports (>= 1536px)
|
|
115
|
+
*/
|
|
116
|
+
xxl?: GridColSpan;
|
|
117
|
+
/**
|
|
118
|
+
* Flex grow factor (applies when the parent `Grid` is rendered with `flex`)
|
|
119
|
+
*/
|
|
120
|
+
grow?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Flex shrink factor (applies when the parent `Grid` is rendered with `flex`)
|
|
123
|
+
*/
|
|
124
|
+
shrink?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Order priority. `'first'`/`'last'` map to Tailwind's
|
|
127
|
+
* `order-first`/`order-last` utilities; a numeric value is applied via an
|
|
128
|
+
* inline `order` style so any value is supported.
|
|
129
|
+
*/
|
|
130
|
+
order?: ResponsiveOrder;
|
|
131
|
+
children?: ReactNode;
|
|
132
|
+
}
|
|
133
|
+
export interface GridComponent extends React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>> {
|
|
134
|
+
Col: React.ForwardRefExoticComponent<GridColProps & React.RefAttributes<HTMLDivElement>>;
|
|
135
|
+
Item: React.ForwardRefExoticComponent<GridColProps & React.RefAttributes<HTMLDivElement>>;
|
|
136
|
+
}
|
|
@@ -4,9 +4,9 @@ export type InputSize = 'sm' | 'md' | 'lg';
|
|
|
4
4
|
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'>, InputCustomProps {
|
|
5
5
|
/**
|
|
6
6
|
* Size scale of the input component.
|
|
7
|
-
* - `sm` (compact
|
|
8
|
-
* - `md` (standard
|
|
9
|
-
* - `lg` (prominent
|
|
7
|
+
* - `sm` (compact 32px/text-xs)
|
|
8
|
+
* - `md` (standard 40px/text-sm default)
|
|
9
|
+
* - `lg` (prominent 48px/text-base)
|
|
10
10
|
* Defaults to `"md"`.
|
|
11
11
|
*/
|
|
12
12
|
size?: InputSize;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MobileHeaderProps } from './MobileHeader.types';
|
|
2
|
+
export declare function MobileHeader({ title, subtitle, titleAlign, onBack, backLabel, leading, actions, searchable, searchValue: externalSearchValue, onSearchChange, searchPlaceholder, sticky, transparent, bottomSlot, className, }: MobileHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace MobileHeader {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|