@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import type { CheckboxSize, CheckboxVariant } from '../Checkbox/Checkbox.types';
|
|
2
3
|
export type CheckboxGroupItem<T = any> = {
|
|
3
4
|
/**
|
|
4
5
|
* Checkbox item label
|
|
@@ -8,6 +9,14 @@ export type CheckboxGroupItem<T = any> = {
|
|
|
8
9
|
* Checkbox item value
|
|
9
10
|
*/
|
|
10
11
|
value: T;
|
|
12
|
+
/**
|
|
13
|
+
* Optional subtext description beneath label
|
|
14
|
+
*/
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Whether this individual option is disabled
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
11
20
|
};
|
|
12
21
|
export interface CheckboxGroupProps<T = any> {
|
|
13
22
|
/**
|
|
@@ -15,9 +24,13 @@ export interface CheckboxGroupProps<T = any> {
|
|
|
15
24
|
*/
|
|
16
25
|
name?: string;
|
|
17
26
|
/**
|
|
18
|
-
* Currently selected values
|
|
27
|
+
* Currently selected values (Controlled Mode).
|
|
19
28
|
*/
|
|
20
29
|
value?: T[];
|
|
30
|
+
/**
|
|
31
|
+
* Default selected values (Uncontrolled Mode).
|
|
32
|
+
*/
|
|
33
|
+
defaultValue?: T[];
|
|
21
34
|
/**
|
|
22
35
|
* Label displayed above the group
|
|
23
36
|
*/
|
|
@@ -52,4 +65,43 @@ export interface CheckboxGroupProps<T = any> {
|
|
|
52
65
|
* Whether to arrange checkboxes inline
|
|
53
66
|
*/
|
|
54
67
|
inline?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Multi-column grid layout (1, 2, 3, or 4 columns).
|
|
70
|
+
* Takes precedence over `inline`.
|
|
71
|
+
*/
|
|
72
|
+
columns?: 1 | 2 | 3 | 4;
|
|
73
|
+
/**
|
|
74
|
+
* Size scale passed to all checkboxes in the group.
|
|
75
|
+
* Defaults to `"md"`.
|
|
76
|
+
*/
|
|
77
|
+
size?: CheckboxSize;
|
|
78
|
+
/**
|
|
79
|
+
* Visual variant passed to all checkboxes in the group.
|
|
80
|
+
* - `default` — standard inline checkboxes
|
|
81
|
+
* - `card` — enclosed interactive card containers
|
|
82
|
+
* Defaults to `"default"`.
|
|
83
|
+
*/
|
|
84
|
+
variant?: CheckboxVariant;
|
|
85
|
+
/**
|
|
86
|
+
* Automatically renders a "Select All" parent checkbox header with indeterminate state!
|
|
87
|
+
* Defaults to `false`.
|
|
88
|
+
*/
|
|
89
|
+
showSelectAll?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Label for the "Select All" checkbox.
|
|
92
|
+
* Defaults to `"Select All"`.
|
|
93
|
+
*/
|
|
94
|
+
selectAllLabel?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Group-level error message.
|
|
97
|
+
*/
|
|
98
|
+
error?: string | ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* Group-level helper text.
|
|
101
|
+
*/
|
|
102
|
+
helperText?: ReactNode;
|
|
103
|
+
/**
|
|
104
|
+
* Disable all checkboxes in the group.
|
|
105
|
+
*/
|
|
106
|
+
disabled?: boolean;
|
|
55
107
|
}
|
|
@@ -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.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DetailedInformationProps } from './DetailedInformation.types';
|
|
1
|
+
import type { DetailedInformationProps } from './DetailedInformation.types';
|
|
2
2
|
export declare const DetailedInformation: import("react").ForwardRefExoticComponent<DetailedInformationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type Detail = {
|
|
3
3
|
/**
|
|
4
4
|
* Label of the information to be displayed
|
|
@@ -8,16 +8,36 @@ export type Detail = {
|
|
|
8
8
|
* Information to be displayed
|
|
9
9
|
*/
|
|
10
10
|
value?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Optional icon displayed next to the label
|
|
13
|
+
*/
|
|
14
|
+
icon?: ReactNode;
|
|
11
15
|
/**
|
|
12
16
|
* Classname of the value content sections
|
|
13
17
|
*/
|
|
14
18
|
contentClass?: string;
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* Classname of the label section
|
|
21
|
+
*/
|
|
22
|
+
labelClass?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Enables hover-to-copy button next to the value
|
|
25
|
+
*/
|
|
26
|
+
copyable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Custom tooltip / help text to display next to the label
|
|
29
|
+
*/
|
|
30
|
+
helpText?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom fallback value when value is empty or undefined
|
|
33
|
+
*/
|
|
34
|
+
emptyValue?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Defines if the item should be hidden.
|
|
17
37
|
*/
|
|
18
38
|
hidden?: boolean;
|
|
19
39
|
};
|
|
20
|
-
export interface DetailedInformationProps {
|
|
40
|
+
export interface DetailedInformationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
21
41
|
className?: string;
|
|
22
42
|
/**
|
|
23
43
|
* Title for the information section
|
|
@@ -27,10 +47,26 @@ export interface DetailedInformationProps {
|
|
|
27
47
|
* Subtitle for the information section
|
|
28
48
|
*/
|
|
29
49
|
subTitle?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Action element rendered at the top-right of the header area
|
|
52
|
+
*/
|
|
53
|
+
action?: ReactNode;
|
|
30
54
|
/**
|
|
31
55
|
* List of details / information to be displayed
|
|
32
56
|
*/
|
|
33
57
|
details: Detail[];
|
|
58
|
+
/**
|
|
59
|
+
* Number of grid columns for details layout (1, 2, 3, or 4). Default is 1
|
|
60
|
+
*/
|
|
61
|
+
columns?: 1 | 2 | 3 | 4;
|
|
62
|
+
/**
|
|
63
|
+
* Direction of label vs value. 'horizontal' (side-by-side) or 'vertical' (stacked). Default is 'horizontal'
|
|
64
|
+
*/
|
|
65
|
+
layout?: 'horizontal' | 'vertical';
|
|
66
|
+
/**
|
|
67
|
+
* Visual presentation variant. Default is 'flat'
|
|
68
|
+
*/
|
|
69
|
+
variant?: 'flat' | 'bordered' | 'card';
|
|
34
70
|
/**
|
|
35
71
|
* Defines if the layout should be compact
|
|
36
72
|
*/
|
|
@@ -43,6 +79,10 @@ export interface DetailedInformationProps {
|
|
|
43
79
|
* Defines if each item in section should have divider
|
|
44
80
|
*/
|
|
45
81
|
divider?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Default fallback when value is missing or empty. Default is '- -'
|
|
84
|
+
*/
|
|
85
|
+
emptyValue?: ReactNode;
|
|
46
86
|
/**
|
|
47
87
|
* Classname for title element
|
|
48
88
|
*/
|
|
@@ -51,4 +91,8 @@ export interface DetailedInformationProps {
|
|
|
51
91
|
* Classname for details section
|
|
52
92
|
*/
|
|
53
93
|
detailsClass?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Classname for label elements
|
|
96
|
+
*/
|
|
97
|
+
labelClass?: string;
|
|
54
98
|
}
|
|
@@ -8,40 +8,68 @@ export interface DrawerProps {
|
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Handler method that invokes on close attempt
|
|
11
|
-
* @returns void
|
|
12
11
|
*/
|
|
13
12
|
onClose?: () => void;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* Controls whether clicking outside / backdrop closes the drawer.
|
|
15
|
+
* Set to false to prevent accidental dismissal.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
closeOnOutsideClick?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Drawer alignment on the page ('start' | 'end' | 'top' | 'bottom' | 'center')
|
|
16
21
|
* @default "end"
|
|
17
22
|
*/
|
|
18
23
|
align?: DrawerAlignment;
|
|
19
24
|
/**
|
|
20
|
-
* Whether to add backdrop
|
|
21
|
-
* @default
|
|
25
|
+
* Whether to add backdrop overlay
|
|
26
|
+
* @default true
|
|
22
27
|
*/
|
|
23
28
|
backdrop?: boolean;
|
|
24
29
|
/**
|
|
25
|
-
* Drawer title
|
|
30
|
+
* Optional Drawer title
|
|
26
31
|
*/
|
|
27
|
-
title
|
|
32
|
+
title?: ReactNode;
|
|
28
33
|
/**
|
|
29
34
|
* Controls if the title should be sticky on top
|
|
30
35
|
*/
|
|
31
36
|
titleSticky?: boolean;
|
|
32
37
|
/**
|
|
33
|
-
* Drawer description
|
|
38
|
+
* Drawer description text
|
|
34
39
|
*/
|
|
35
40
|
description?: ReactNode;
|
|
36
41
|
/**
|
|
37
|
-
*
|
|
42
|
+
* Main content of the drawer
|
|
38
43
|
*/
|
|
39
44
|
children?: ReactNode;
|
|
40
45
|
/**
|
|
41
|
-
*
|
|
46
|
+
* Optional drawer footer action bar (e.g. action buttons)
|
|
47
|
+
*/
|
|
48
|
+
footer?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Keeps the footer sticky at the bottom of the drawer
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
footerSticky?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Drawer size ('xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full')
|
|
42
56
|
* @default "md"
|
|
43
57
|
*/
|
|
44
58
|
size?: DrawerSize;
|
|
59
|
+
/**
|
|
60
|
+
* Shows top-right ✕ close button
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
showCloseButton?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Shows left ← back button in header
|
|
66
|
+
*/
|
|
67
|
+
showBackButton?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Displays top drag handle pill (especially for mobile bottom sheets)
|
|
70
|
+
* Defaults to true when align="bottom"
|
|
71
|
+
*/
|
|
72
|
+
dragHandle?: boolean;
|
|
45
73
|
/**
|
|
46
74
|
* Dialog Panel class
|
|
47
75
|
*/
|
|
@@ -58,10 +86,6 @@ export interface DrawerProps {
|
|
|
58
86
|
* Drawer description class
|
|
59
87
|
*/
|
|
60
88
|
descriptionClass?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Should show back button on Drawer
|
|
63
|
-
*/
|
|
64
|
-
showBackButton?: boolean;
|
|
65
89
|
}
|
|
66
90
|
export type AlignmentMap = {
|
|
67
91
|
[key in DrawerAlignment]: string;
|
|
@@ -36,16 +36,32 @@ export type DropdownItem = {
|
|
|
36
36
|
/** Unique ID for the item. */
|
|
37
37
|
id: string;
|
|
38
38
|
/** Display label (optional if using custom render). */
|
|
39
|
-
label?:
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/** Subtitle description text displayed underneath the label. */
|
|
41
|
+
description?: ReactNode;
|
|
42
|
+
/** Icon displayed on the left side of the item. */
|
|
43
|
+
icon?: ReactNode;
|
|
44
|
+
/** Keyboard shortcut key badge on the right side (e.g. '⌘K'). */
|
|
45
|
+
shortcut?: string;
|
|
46
|
+
/** Marks item as destructive action (renders in red styling). */
|
|
47
|
+
danger?: boolean;
|
|
48
|
+
/** Group or section title header displayed above this item. */
|
|
49
|
+
groupTitle?: string;
|
|
40
50
|
/** If true, renders a horizontal divider instead of an item. */
|
|
41
51
|
divider?: boolean;
|
|
42
52
|
/** Optional: mark item as disabled. */
|
|
43
53
|
disabled?: boolean;
|
|
54
|
+
/** Custom click handler for this item. */
|
|
55
|
+
onClick?: (item: DropdownItem) => void;
|
|
44
56
|
/** Allow additional arbitrary metadata. */
|
|
45
57
|
[key: string]: any;
|
|
46
58
|
};
|
|
47
59
|
/** Base props shared between both trigger modes. */
|
|
48
60
|
type DropdownBaseProps = {
|
|
61
|
+
/** Outer container / trigger class name */
|
|
62
|
+
className?: string;
|
|
63
|
+
/** Width size variant or custom width ('auto' | 'sm' | 'md' | 'lg' | 'xl' | string). Default is 'md' (w-56) */
|
|
64
|
+
width?: 'auto' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
49
65
|
/** Additional classes for the menu container. */
|
|
50
66
|
itemsContainerClass?: string;
|
|
51
67
|
/** Enables menu transition animations. Default: true */
|
|
@@ -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 {};
|