@pk-design/react-tailwind 1.5.4 → 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 +3596 -630
- package/dist/react-tailwind.cjs.js.map +1 -1
- package/dist/react-tailwind.es.js +3561 -623
- 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/BodyText/BodyText.d.ts +1 -1
- package/dist/types/components/BodyText/BodyText.types.d.ts +47 -8
- 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/Breadcrumb/Breadcrumb.d.ts +2 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.types.d.ts +43 -10
- package/dist/types/components/Button/Button.types.d.ts +17 -63
- package/dist/types/components/ButtonGroup/ButtonGroup.types.d.ts +16 -0
- package/dist/types/components/Card/Card.d.ts +7 -1
- package/dist/types/components/Card/Card.types.d.ts +73 -42
- package/dist/types/components/Checkbox/Checkbox.types.d.ts +28 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.types.d.ts +53 -1
- 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/DetailedInformation/DetailedInformation.d.ts +1 -1
- package/dist/types/components/DetailedInformation/DetailedInformation.types.d.ts +47 -3
- package/dist/types/components/Drawer/Drawer.types.d.ts +37 -13
- package/dist/types/components/Dropdown/Dropdown.types.d.ts +17 -1
- 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/HeadingText/HeadingText.d.ts +7 -7
- package/dist/types/components/HeadingText/HeadingText.test.d.ts +1 -0
- package/dist/types/components/HeadingText/HeadingText.types.d.ts +56 -3
- package/dist/types/components/Input/Input.d.ts +4 -2
- package/dist/types/components/Input/Input.types.d.ts +36 -3
- package/dist/types/components/Loader/index.d.ts +1 -1
- 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/PasswordInput/PasswordInput.d.ts +8 -4
- package/dist/types/components/PasswordInput/PasswordInput.types.d.ts +8 -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.d.ts +3 -0
- package/dist/types/components/QuantityStepper/QuantityStepper.test.d.ts +1 -0
- package/dist/types/components/QuantityStepper/QuantityStepper.types.d.ts +66 -0
- package/dist/types/components/QuantityStepper/index.d.ts +2 -0
- package/dist/types/components/Radio/Radio.d.ts +1 -1
- package/dist/types/components/Radio/Radio.types.d.ts +12 -2
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/types/components/RadioGroup/RadioGroup.types.d.ts +41 -13
- package/dist/types/components/RadioSwitch/RadioSwitch.d.ts +0 -4
- package/dist/types/components/RadioSwitch/RadioSwitch.types.d.ts +6 -31
- package/dist/types/components/RangeInput/RangeInput.d.ts +1 -1
- package/dist/types/components/RangeInput/RangeInput.types.d.ts +14 -1
- package/dist/types/components/RangeSlider/RangeSlider.d.ts +1 -1
- package/dist/types/components/RangeSlider/RangeSlider.types.d.ts +28 -13
- package/dist/types/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/dist/types/components/SegmentedControl/SegmentedControl.test.d.ts +1 -0
- package/dist/types/components/SegmentedControl/SegmentedControl.types.d.ts +53 -0
- package/dist/types/components/SegmentedControl/index.d.ts +2 -0
- package/dist/types/components/SelectBox/SelectBox.types.d.ts +32 -14
- package/dist/types/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/types/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/types/components/Skeleton/Skeleton.types.d.ts +38 -0
- package/dist/types/components/Skeleton/index.d.ts +2 -0
- package/dist/types/components/StatusPill/StatusPill.d.ts +2 -0
- package/dist/types/components/StatusPill/StatusPill.test.d.ts +1 -0
- package/dist/types/components/StatusPill/StatusPill.types.d.ts +29 -0
- package/dist/types/components/StatusPill/index.d.ts +2 -0
- package/dist/types/components/StickyActionBar/StickyActionBar.d.ts +2 -0
- package/dist/types/components/StickyActionBar/StickyActionBar.test.d.ts +1 -0
- package/dist/types/components/StickyActionBar/StickyActionBar.types.d.ts +30 -0
- package/dist/types/components/StickyActionBar/index.d.ts +2 -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/TextContent/TextContent.d.ts +2 -2
- package/dist/types/components/TextContent/TextContent.types.d.ts +47 -7
- package/dist/types/components/Textarea/Textarea.types.d.ts +37 -3
- package/dist/types/components/Toast/Toast.d.ts +1 -1
- package/dist/types/components/Toast/Toast.types.d.ts +117 -43
- package/dist/types/components/Toast/ToastProvider.d.ts +3 -6
- 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 +19 -0
- package/package.json +11 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface StickyActionBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Primary summary content rendered on the left/start side (e.g. Total amount, item count)
|
|
5
|
+
*/
|
|
6
|
+
summaryContent?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Action buttons rendered on the right/end side (e.g. Save, Cancel buttons)
|
|
9
|
+
*/
|
|
10
|
+
actionsContent?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Optional expandable drawer content triggered when clicking summary
|
|
13
|
+
*/
|
|
14
|
+
drawerContent?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Title for the expandable summary drawer
|
|
17
|
+
* @default "Summary Details"
|
|
18
|
+
*/
|
|
19
|
+
drawerTitle?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Positioning mode for the bar
|
|
22
|
+
* @default "fixed"
|
|
23
|
+
*/
|
|
24
|
+
position?: 'fixed' | 'sticky' | 'relative';
|
|
25
|
+
/**
|
|
26
|
+
* Custom maximum width container class
|
|
27
|
+
* @default "max-w-5xl"
|
|
28
|
+
*/
|
|
29
|
+
containerMaxWidth?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SwipeableActionTheme = 'primary' | 'secondary' | 'danger' | 'warning' | 'info' | 'success' | 'gray';
|
|
3
|
+
export interface SwipeableAction {
|
|
4
|
+
/** Unique identifier for the action */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Text label displayed on the action button */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Icon component or node */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
/** Color theme for the action button */
|
|
11
|
+
theme?: SwipeableActionTheme;
|
|
12
|
+
/** Custom class overrides for the action button */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Click handler triggered when action button is tapped */
|
|
15
|
+
onClick: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface SwipeableRowProps {
|
|
18
|
+
/** The main content node rendered inside the swipeable row */
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
/** Action buttons revealed when swiping right (from left edge) */
|
|
21
|
+
leftActions?: SwipeableAction[];
|
|
22
|
+
/** Action buttons revealed when swiping left (from right edge) */
|
|
23
|
+
rightActions?: SwipeableAction[];
|
|
24
|
+
/** Action button width in pixels (defaults to 76px per action button) */
|
|
25
|
+
actionWidth?: number;
|
|
26
|
+
/** Minimum drag threshold in pixels to trigger row expansion (defaults to 40px) */
|
|
27
|
+
threshold?: number;
|
|
28
|
+
/** Execute the primary action automatically when full swipe threshold is reached */
|
|
29
|
+
fullSwipeToExecute?: boolean;
|
|
30
|
+
/** Full swipe threshold in pixels or percentage of width (defaults to 180px) */
|
|
31
|
+
fullSwipeThreshold?: number;
|
|
32
|
+
/** Disabled state to lock swipe interactions */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/** Outer container wrapper class */
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Inner content wrapper class */
|
|
37
|
+
contentClassName?: string;
|
|
38
|
+
/** Callback fired when row snaps open */
|
|
39
|
+
onOpen?: (direction: 'left' | 'right') => void;
|
|
40
|
+
/** Callback fired when row returns to closed state */
|
|
41
|
+
onClose?: () => void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SwipeableTabsProps } from './SwipeableTabs.types';
|
|
2
|
+
export declare function SwipeableTabs({ items, activeId: externalActiveId, defaultActiveId, onChange, swipeable, threshold, headerVariant, containerClass, headerClass, contentClass, }: SwipeableTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace SwipeableTabs {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface SwipeableTabItem {
|
|
3
|
+
/** Unique tab identifier */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Tab header label */
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
/** Tab panel content element */
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
/** Icon rendered next to label */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/** Notification badge text or number */
|
|
12
|
+
badge?: string | number;
|
|
13
|
+
/** Disables tab selection */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type SwipeableTabsHeaderVariant = 'default' | 'pills' | 'segmented';
|
|
17
|
+
export interface SwipeableTabsProps {
|
|
18
|
+
/** Array of tab items */
|
|
19
|
+
items: SwipeableTabItem[];
|
|
20
|
+
/** Controlled active tab ID */
|
|
21
|
+
activeId?: string;
|
|
22
|
+
/** Default active tab ID (uncontrolled mode) */
|
|
23
|
+
defaultActiveId?: string;
|
|
24
|
+
/** Callback fired when active tab changes */
|
|
25
|
+
onChange?: (id: string) => void;
|
|
26
|
+
/** Enables touch swipe navigation (default: true) */
|
|
27
|
+
swipeable?: boolean;
|
|
28
|
+
/** Minimum horizontal swipe distance threshold in px (default: 50) */
|
|
29
|
+
threshold?: number;
|
|
30
|
+
/** Visual tab header variant ('default' | 'pills' | 'segmented', default: 'default') */
|
|
31
|
+
headerVariant?: SwipeableTabsHeaderVariant;
|
|
32
|
+
/** Outer container class string */
|
|
33
|
+
containerClass?: string;
|
|
34
|
+
/** Tab header row class string */
|
|
35
|
+
headerClass?: string;
|
|
36
|
+
/** Tab panel view container class string */
|
|
37
|
+
contentClass?: string;
|
|
38
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextContentProps } from './TextContent.types';
|
|
3
|
-
export declare const TextContent: React.ForwardRefExoticComponent<TextContentProps & React.RefAttributes<
|
|
2
|
+
import type { TextContentProps } from './TextContent.types';
|
|
3
|
+
export declare const TextContent: React.ForwardRefExoticComponent<TextContentProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,23 +1,63 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
1
|
+
import type { HTMLAttributes, JSX, ReactNode } from 'react';
|
|
2
|
+
export type TextContentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type TextContentWeight = 'light' | 'normal' | 'medium' | 'semibold' | 'bold';
|
|
4
|
+
export interface TextContentProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
children?: ReactNode;
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
7
|
+
* HTML element to render (e.g. `span`, `code`, `mark`, `label`, `b`, `i`, `div`, `time`).
|
|
8
|
+
* Defaults to `span`.
|
|
9
|
+
*/
|
|
10
|
+
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
/**
|
|
12
|
+
* Font size variant (`xs`, `sm`, `md`, `lg`, `xl`).
|
|
13
|
+
*/
|
|
14
|
+
size?: TextContentSize;
|
|
15
|
+
/**
|
|
16
|
+
* Font weight variant (`light`, `normal`, `medium`, `semibold`, `bold`).
|
|
17
|
+
*/
|
|
18
|
+
weight?: TextContentWeight;
|
|
19
|
+
/**
|
|
20
|
+
* Shortcut for extra-small text (`text-xs/5`). Retained for backward compatibility.
|
|
5
21
|
*/
|
|
6
22
|
xsmall?: boolean;
|
|
7
23
|
/**
|
|
8
|
-
*
|
|
24
|
+
* Shortcut for small text (`text-sm/6`). Retained for backward compatibility.
|
|
9
25
|
*/
|
|
10
26
|
small?: boolean;
|
|
11
27
|
/**
|
|
12
|
-
*
|
|
28
|
+
* Shortcut for semibold text (`font-semibold`). Retained for backward compatibility.
|
|
13
29
|
*/
|
|
14
30
|
strong?: boolean;
|
|
15
31
|
/**
|
|
16
|
-
* Apply muted gray tone
|
|
32
|
+
* Apply muted gray tone.
|
|
17
33
|
*/
|
|
18
34
|
muted?: boolean;
|
|
19
35
|
/**
|
|
20
|
-
* Apply error
|
|
36
|
+
* Apply error red text color.
|
|
21
37
|
*/
|
|
22
38
|
error?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Apply success green text color.
|
|
41
|
+
*/
|
|
42
|
+
success?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Apply warning amber text color.
|
|
45
|
+
*/
|
|
46
|
+
warning?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Apply info blue text color.
|
|
49
|
+
*/
|
|
50
|
+
info?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Inverted text color for dark background contexts.
|
|
53
|
+
*/
|
|
54
|
+
invert?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Monospace font family (`font-mono`) for code snippets or numbers.
|
|
57
|
+
*/
|
|
58
|
+
monospace?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Truncate single line text with ellipsis.
|
|
61
|
+
*/
|
|
62
|
+
truncate?: boolean;
|
|
23
63
|
}
|
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TextareaHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { InputCustomProps } from '../common-type';
|
|
3
|
+
export type TextareaSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
|
|
3
5
|
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, InputCustomProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Space for right icon / control
|
|
8
|
+
*/
|
|
9
|
+
rightGroup?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Space for left icon / control
|
|
12
|
+
*/
|
|
13
|
+
leftGroup?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Size scale of the textarea.
|
|
16
|
+
* - `sm` (compact padding/text-xs)
|
|
17
|
+
* - `md` (standard padding/text-sm default)
|
|
18
|
+
* - `lg` (prominent padding/text-base)
|
|
19
|
+
* Defaults to `"md"`.
|
|
20
|
+
*/
|
|
21
|
+
size?: TextareaSize;
|
|
22
|
+
/**
|
|
23
|
+
* Automatically expands textarea height as text lines are typed.
|
|
24
|
+
* Defaults to `false`.
|
|
25
|
+
*/
|
|
26
|
+
autoSize?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Renders a live character count (`140 / 500`) below the textarea.
|
|
29
|
+
*/
|
|
30
|
+
showCount?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Helper guidance text rendered below the textarea.
|
|
33
|
+
*/
|
|
34
|
+
helperText?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* CSS resize control behavior.
|
|
37
|
+
* Defaults to `"vertical"`.
|
|
38
|
+
*/
|
|
39
|
+
resize?: TextareaResize;
|
|
6
40
|
}
|
|
@@ -1,55 +1,100 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Visual style variant of the toast container.
|
|
4
|
+
* - `accent` — default clean container with top/left accent bar
|
|
5
|
+
* - `filled` — solid vibrant color tile with high contrast
|
|
6
|
+
* - `outlined` — subtle border with badge icon
|
|
7
|
+
* - `glass` — modern glassmorphism with backdrop blur
|
|
8
|
+
*/
|
|
9
|
+
export type ToastVariant = 'accent' | 'filled' | 'outlined' | 'glass';
|
|
10
|
+
/**
|
|
11
|
+
* Utility type mapping the 4 possible toast types.
|
|
12
|
+
*/
|
|
13
|
+
export type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
1
14
|
/**
|
|
2
15
|
* Props passed to the Toast UI component.
|
|
3
|
-
*
|
|
16
|
+
* Managed internally by ToastProvider.
|
|
4
17
|
*/
|
|
5
18
|
export interface ToastProps {
|
|
6
19
|
/**
|
|
7
20
|
* Unique identifier of the toast instance.
|
|
8
|
-
* Generated internally by ToastProvider.
|
|
9
21
|
*/
|
|
10
22
|
id: number;
|
|
11
23
|
/**
|
|
12
|
-
*
|
|
24
|
+
* Optional headline title displayed above message.
|
|
25
|
+
*/
|
|
26
|
+
title?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Main text message displayed inside the toast.
|
|
29
|
+
*/
|
|
30
|
+
message: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Visual intent style of the toast.
|
|
33
|
+
*/
|
|
34
|
+
type: ToastType;
|
|
35
|
+
/**
|
|
36
|
+
* Container variant style.
|
|
37
|
+
* Defaults to `"accent"`.
|
|
38
|
+
*/
|
|
39
|
+
variant?: ToastVariant;
|
|
40
|
+
/**
|
|
41
|
+
* Optional action button.
|
|
13
42
|
*/
|
|
14
|
-
|
|
43
|
+
action?: {
|
|
44
|
+
label: string;
|
|
45
|
+
onClick: () => void;
|
|
46
|
+
};
|
|
15
47
|
/**
|
|
16
|
-
*
|
|
17
|
-
* - `success` — positive confirmations
|
|
18
|
-
* - `error` — failures or critical issues
|
|
19
|
-
* - `info` — general helpful information
|
|
20
|
-
* - `warning` — caution or attention required
|
|
48
|
+
* Optional custom icon override slot.
|
|
21
49
|
*/
|
|
22
|
-
|
|
50
|
+
icon?: ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Controls whether an animated auto-close progress bar is displayed.
|
|
53
|
+
* Defaults to `true` when autoClose is enabled.
|
|
54
|
+
*/
|
|
55
|
+
showProgressBar?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Total duration in milliseconds for progress bar countdown.
|
|
58
|
+
*/
|
|
59
|
+
duration?: number;
|
|
60
|
+
/**
|
|
61
|
+
* State indicating whether auto-close countdown is paused (e.g. on hover).
|
|
62
|
+
*/
|
|
63
|
+
isPaused?: boolean;
|
|
23
64
|
/**
|
|
24
65
|
* Triggers removal of the toast.
|
|
25
|
-
* Managed internally by the ToastProvider.
|
|
26
66
|
*/
|
|
27
67
|
onClose: () => void;
|
|
28
68
|
/**
|
|
29
|
-
* Optional additional class names
|
|
69
|
+
* Optional additional class names.
|
|
30
70
|
*/
|
|
31
71
|
className?: string;
|
|
32
72
|
}
|
|
33
73
|
/**
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export type ToastType = ToastProps['type'];
|
|
37
|
-
/**
|
|
38
|
-
* Options passed when calling `showToast()`.
|
|
74
|
+
* Options passed when calling `showToast()` or `toast.success()`.
|
|
39
75
|
*/
|
|
40
76
|
export interface ToastOptions {
|
|
41
77
|
/**
|
|
42
|
-
*
|
|
43
|
-
|
|
78
|
+
* Optional headline title above message.
|
|
79
|
+
*/
|
|
80
|
+
title?: ReactNode;
|
|
81
|
+
/**
|
|
82
|
+
* The toast visual intent type.
|
|
83
|
+
* Defaults to `"info"`.
|
|
44
84
|
*/
|
|
45
85
|
type?: ToastType;
|
|
86
|
+
/**
|
|
87
|
+
* Container variant style (`accent`, `filled`, `outlined`, `glass`).
|
|
88
|
+
* Defaults to `"accent"`.
|
|
89
|
+
*/
|
|
90
|
+
variant?: ToastVariant;
|
|
46
91
|
/**
|
|
47
92
|
* Duration the toast stays visible (in milliseconds).
|
|
48
|
-
* Defaults to
|
|
93
|
+
* Defaults to 4000 ms.
|
|
49
94
|
*/
|
|
50
95
|
duration?: number;
|
|
51
96
|
/**
|
|
52
|
-
* Should the toast automatically close after
|
|
97
|
+
* Should the toast automatically close after duration?
|
|
53
98
|
* Defaults to `true`.
|
|
54
99
|
*/
|
|
55
100
|
autoClose?: boolean;
|
|
@@ -58,24 +103,41 @@ export interface ToastOptions {
|
|
|
58
103
|
* Defaults to `true`.
|
|
59
104
|
*/
|
|
60
105
|
pauseOnHover?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Controls whether the auto-close progress bar is shown.
|
|
108
|
+
* Defaults to `true`.
|
|
109
|
+
*/
|
|
110
|
+
showProgressBar?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Optional action button inside toast (e.g. `{ label: "Undo", onClick: ... }`).
|
|
113
|
+
*/
|
|
114
|
+
action?: {
|
|
115
|
+
label: string;
|
|
116
|
+
onClick: () => void;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Optional custom icon element.
|
|
120
|
+
*/
|
|
121
|
+
icon?: ReactNode;
|
|
61
122
|
}
|
|
62
123
|
/**
|
|
63
124
|
* Internal structure stored inside the ToastProvider state.
|
|
64
|
-
* This is NOT exposed publicly.
|
|
65
125
|
*/
|
|
66
126
|
export interface IToast {
|
|
67
|
-
/** Unique toast ID */
|
|
68
127
|
id: number;
|
|
69
|
-
|
|
70
|
-
message:
|
|
71
|
-
/** Toast type variant */
|
|
128
|
+
title?: ReactNode;
|
|
129
|
+
message: ReactNode;
|
|
72
130
|
type: ToastType;
|
|
73
|
-
|
|
131
|
+
variant: ToastVariant;
|
|
74
132
|
duration: number;
|
|
75
|
-
/** Whether the toast will auto-close */
|
|
76
133
|
autoClose: boolean;
|
|
77
|
-
/** Whether hover pauses auto closing */
|
|
78
134
|
pauseOnHover: boolean;
|
|
135
|
+
showProgressBar: boolean;
|
|
136
|
+
action?: {
|
|
137
|
+
label: string;
|
|
138
|
+
onClick: () => void;
|
|
139
|
+
};
|
|
140
|
+
icon?: ReactNode;
|
|
79
141
|
}
|
|
80
142
|
/**
|
|
81
143
|
* The methods exposed by the ToastProvider context.
|
|
@@ -83,35 +145,47 @@ export interface IToast {
|
|
|
83
145
|
*/
|
|
84
146
|
export interface ToastContextType {
|
|
85
147
|
/**
|
|
86
|
-
* Imperatively show a toast
|
|
87
|
-
*
|
|
88
|
-
* @example
|
|
89
|
-
* showToast("Saved!", { type: "success" })
|
|
148
|
+
* Imperatively show a toast notification.
|
|
90
149
|
*/
|
|
91
|
-
showToast: (message:
|
|
150
|
+
showToast: (message: ReactNode, options?: ToastOptions) => number;
|
|
92
151
|
/**
|
|
93
152
|
* Manually closes a toast by ID.
|
|
94
|
-
* Normally handled internally.
|
|
95
153
|
*/
|
|
96
154
|
closeToast: (id: number) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Shorthand object providing `toast.success()`, `toast.error()`, `toast.info()`, `toast.warning()`, `toast.dismiss()`, `toast.dismissAll()`.
|
|
157
|
+
*/
|
|
158
|
+
toast: {
|
|
159
|
+
show: (message: ReactNode, options?: ToastOptions) => number;
|
|
160
|
+
success: (message: ReactNode, options?: ToastOptions) => number;
|
|
161
|
+
error: (message: ReactNode, options?: ToastOptions) => number;
|
|
162
|
+
info: (message: ReactNode, options?: ToastOptions) => number;
|
|
163
|
+
warning: (message: ReactNode, options?: ToastOptions) => number;
|
|
164
|
+
dismiss: (id: number) => void;
|
|
165
|
+
dismissAll: () => void;
|
|
166
|
+
};
|
|
97
167
|
}
|
|
98
168
|
/**
|
|
99
|
-
* All supported toast placements.
|
|
100
|
-
* Used by `<ToastProvider placement=\"...\"/>`
|
|
169
|
+
* All supported toast placements on screen.
|
|
101
170
|
*/
|
|
102
171
|
export type ToastPlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
103
172
|
/**
|
|
104
173
|
* Props for the ToastProvider.
|
|
105
|
-
* Wrap your application with this provider to enable toast notifications.
|
|
106
174
|
*/
|
|
107
175
|
export interface ToastProviderProps {
|
|
176
|
+
children: ReactNode;
|
|
108
177
|
/**
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
children: React.ReactNode;
|
|
112
|
-
/**
|
|
113
|
-
* Controls where toasts appear on the screen.
|
|
178
|
+
* Position on screen where toasts appear.
|
|
114
179
|
* Defaults to `"top-right"`.
|
|
115
180
|
*/
|
|
116
181
|
placement?: ToastPlacement;
|
|
182
|
+
/**
|
|
183
|
+
* Maximum number of toasts visible simultaneously.
|
|
184
|
+
* Defaults to `5`.
|
|
185
|
+
*/
|
|
186
|
+
maxToasts?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Optional extra container class name override.
|
|
189
|
+
*/
|
|
190
|
+
className?: string;
|
|
117
191
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import type { ToastContextType,
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ToastContextType, ToastProviderProps } from './Toast.types';
|
|
3
3
|
export declare const useToast: () => ToastContextType;
|
|
4
|
-
export declare const ToastProvider: React.FC<
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
placement?: ToastPlacement;
|
|
7
|
-
}>;
|
|
4
|
+
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WheelPickerProps } from './WheelPicker.types';
|
|
2
|
+
export declare function WheelPicker({ columns, height, itemHeight, onChange, disabled, containerClass, }: WheelPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare namespace WheelPicker {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface WheelPickerOption {
|
|
3
|
+
/** Value identifier */
|
|
4
|
+
value: string | number;
|
|
5
|
+
/** Display label or element */
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
/** Disables option selection */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface WheelPickerColumn {
|
|
11
|
+
/** Unique column identifier */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Column options list */
|
|
14
|
+
options: WheelPickerOption[];
|
|
15
|
+
/** Controlled active value for column */
|
|
16
|
+
value?: string | number;
|
|
17
|
+
/** Default active value for column */
|
|
18
|
+
defaultValue?: string | number;
|
|
19
|
+
/** Callback fired when column value changes */
|
|
20
|
+
onChange?: (val: string | number) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface WheelPickerProps {
|
|
23
|
+
/** Array of column configurations */
|
|
24
|
+
columns: WheelPickerColumn[];
|
|
25
|
+
/** Height of wheel container in px (default: 200) */
|
|
26
|
+
height?: number;
|
|
27
|
+
/** Height of each item row in px (default: 40) */
|
|
28
|
+
itemHeight?: number;
|
|
29
|
+
/** Combined change callback fired when any column updates */
|
|
30
|
+
onChange?: (values: Record<string, string | number>) => void;
|
|
31
|
+
/** Disables interaction across all columns */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/** Custom container class string */
|
|
34
|
+
containerClass?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Shared class-name lookup tables for `Flex`/`Grid` (and their `.Item`/`.Col`
|
|
4
|
+
* sub-components).
|
|
5
|
+
*
|
|
6
|
+
* These are intentionally plain object literals with fully spelled-out class
|
|
7
|
+
* names (e.g. `'sm:col-span-6'`) rather than strings built with template
|
|
8
|
+
* interpolation (e.g. `` `sm:col-span-${n}` ``). Tailwind's JIT compiler
|
|
9
|
+
* discovers classes by statically scanning file text for literal substrings —
|
|
10
|
+
* it does not execute this code — so any class name assembled at runtime
|
|
11
|
+
* would never be generated into the final stylesheet. Keep every entry here
|
|
12
|
+
* fully literal.
|
|
13
|
+
*/
|
|
14
|
+
export type ResponsiveGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
15
|
+
export type ResponsiveAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
16
|
+
export type ResponsiveJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
17
|
+
export type ResponsiveDirection = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
18
|
+
export type ResponsiveWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
19
|
+
export type ResponsiveOrder = 'first' | 'last' | number;
|
|
20
|
+
export declare const GAP_MAP: Record<ResponsiveGap, string>;
|
|
21
|
+
export declare const GAP_X_MAP: Record<ResponsiveGap, string>;
|
|
22
|
+
export declare const GAP_Y_MAP: Record<ResponsiveGap, string>;
|
|
23
|
+
export declare const ALIGN_MAP: Record<ResponsiveAlign, string>;
|
|
24
|
+
export declare const JUSTIFY_MAP: Record<ResponsiveJustify, string>;
|
|
25
|
+
export declare const DIRECTION_MAP: Record<ResponsiveDirection, string>;
|
|
26
|
+
export declare const WRAP_MAP: Record<ResponsiveWrap, string>;
|
|
27
|
+
/**
|
|
28
|
+
* Resolves the `order` prop to inline styles when it's a raw number.
|
|
29
|
+
*
|
|
30
|
+
* `'first'` / `'last'` map to the static `order-first`/`order-last` Tailwind
|
|
31
|
+
* utilities (safe, since those exact class names are literal elsewhere).
|
|
32
|
+
* Arbitrary numeric orders can't be expressed as a safe literal class (the
|
|
33
|
+
* value is unbounded), so they're applied as an inline `order` style instead
|
|
34
|
+
* — that works regardless of what the consuming app's Tailwind build scans.
|
|
35
|
+
*/
|
|
36
|
+
export declare const resolveOrderStyle: (order?: ResponsiveOrder) => CSSProperties | undefined;
|
|
37
|
+
export declare const resolveOrderClassName: (order?: ResponsiveOrder) => string | undefined;
|
|
38
|
+
/** Width-fraction span classes used by `Flex.Item` (unprefixed / base breakpoint). */
|
|
39
|
+
export declare const FLEX_SPAN_MAP: Record<string, string>;
|
|
40
|
+
export declare const FLEX_SM_SPAN_MAP: Record<string, string>;
|
|
41
|
+
export declare const FLEX_MD_SPAN_MAP: Record<string, string>;
|
|
42
|
+
export declare const FLEX_LG_SPAN_MAP: Record<string, string>;
|
|
43
|
+
export declare const FLEX_XL_SPAN_MAP: Record<string, string>;
|
|
44
|
+
export declare const FLEX_XXL_SPAN_MAP: Record<string, string>;
|
|
45
|
+
/** `col-span-*` classes used by `Grid.Col` (unprefixed / base breakpoint). */
|
|
46
|
+
export declare const GRID_SPAN_MAP: Record<string, string>;
|
|
47
|
+
export declare const GRID_SM_SPAN_MAP: Record<string, string>;
|
|
48
|
+
export declare const GRID_MD_SPAN_MAP: Record<string, string>;
|
|
49
|
+
export declare const GRID_LG_SPAN_MAP: Record<string, string>;
|
|
50
|
+
export declare const GRID_XL_SPAN_MAP: Record<string, string>;
|
|
51
|
+
export declare const GRID_XXL_SPAN_MAP: Record<string, string>;
|
|
52
|
+
/**
|
|
53
|
+
* Preset track-count classes for `Grid`'s `cols` prop. Each preset
|
|
54
|
+
* progressively reveals more columns at wider breakpoints so a grid is
|
|
55
|
+
* responsive out of the box without the caller specifying per-item spans.
|
|
56
|
+
*/
|
|
57
|
+
export declare const GRID_COLS_MAP: Record<string, string>;
|