@veeqo/ui 0.1.18 → 0.1.19
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/components/Accordion/Accordion.d.ts +13 -0
- package/dist/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/styled.d.ts +14 -0
- package/dist/components/ActionList/ActionList.d.ts +3 -0
- package/dist/components/ActionList/ActionList.test.d.ts +1 -0
- package/dist/components/ActionList/index.d.ts +1 -0
- package/dist/components/ActionList/styled.d.ts +36 -0
- package/dist/components/ActionList/types.d.ts +19 -0
- package/dist/components/Anchor/Anchor.d.ts +9 -0
- package/dist/components/Anchor/Anchor.test.d.ts +1 -0
- package/dist/components/Anchor/index.d.ts +1 -0
- package/dist/components/Anchor/styled.d.ts +1 -0
- package/dist/components/AnimatedDropdown/AnimatedDropdown.d.ts +3 -0
- package/dist/components/AnimatedDropdown/AnimatedDropdown.test.d.ts +1 -0
- package/dist/components/AnimatedDropdown/components/BasicDropdown.d.ts +5 -0
- package/dist/components/AnimatedDropdown/components/BasicDropdown.test.d.ts +1 -0
- package/dist/components/AnimatedDropdown/components/styled.d.ts +1 -0
- package/dist/components/AnimatedDropdown/hooks/useClickAway.d.ts +2 -0
- package/dist/components/AnimatedDropdown/index.d.ts +1 -0
- package/dist/components/AnimatedDropdown/styled.d.ts +10 -0
- package/dist/components/AnimatedDropdown/types.d.ts +14 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/styled.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts +11 -0
- package/dist/components/Badge/Badge.d.ts +3 -0
- package/dist/components/Badge/Badge.test.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/styled.d.ts +7 -0
- package/dist/components/Badge/types.d.ts +35 -0
- package/dist/components/Banner/Banner.d.ts +17 -0
- package/dist/components/Banner/Banner.test.d.ts +1 -0
- package/dist/components/Banner/index.d.ts +1 -0
- package/dist/components/Banner/styled.d.ts +16 -0
- package/dist/components/Banner/types.d.ts +8 -0
- package/dist/components/BaseContainer/BaseContainer.d.ts +1 -0
- package/dist/components/BaseContainer/BaseContainer.test.d.ts +1 -0
- package/dist/components/BaseContainer/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/dist/components/Breadcrumbs/components/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumbs/components/styled.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/types.d.ts +22 -0
- package/dist/components/Button/Button.d.ts +9 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Button/components/styled.d.ts +20 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/types.d.ts +18 -0
- package/dist/components/Card/Card.d.ts +28 -0
- package/dist/components/Card/Card.test.d.ts +1 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/styled.d.ts +16 -0
- package/dist/components/CardHeader/CardHeader.d.ts +19 -0
- package/dist/components/CardHeader/CardHeader.test.d.ts +1 -0
- package/dist/components/CardHeader/index.d.ts +1 -0
- package/dist/components/CardHeader/styled.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/styled.d.ts +1 -0
- package/dist/components/Choice/Choice.d.ts +17 -0
- package/dist/components/Choice/components/styled.d.ts +17 -0
- package/dist/components/Choice/index.d.ts +1 -0
- package/dist/components/ChoiceList/ChoiceList.d.ts +29 -0
- package/dist/components/ChoiceList/ChoiceList.test.d.ts +1 -0
- package/dist/components/ChoiceList/index.d.ts +1 -0
- package/dist/components/ChoiceList/styled.d.ts +2 -0
- package/dist/components/CopyToClipboard/CopyToClipboard.d.ts +10 -0
- package/dist/components/CopyToClipboard/CopyToClipboard.test.d.ts +1 -0
- package/dist/components/CopyToClipboard/index.d.ts +1 -0
- package/dist/components/DataTable/DataTable.d.ts +21 -0
- package/dist/components/DataTable/DataTable.test.d.ts +1 -0
- package/dist/components/DataTable/SkeletonContent/SkeletonContent.d.ts +7 -0
- package/dist/components/DataTable/SkeletonContent/index.d.ts +1 -0
- package/dist/components/DataTable/SpecificState/SpecificState.d.ts +7 -0
- package/dist/components/DataTable/SpecificState/index.d.ts +1 -0
- package/dist/components/DataTable/SpecificState/styled.d.ts +8 -0
- package/dist/components/DataTable/StickyHeader.d.ts +10 -0
- package/dist/components/DataTable/cells/ClickableCell.d.ts +7 -0
- package/dist/components/DataTable/cells/EditableCell.d.ts +7 -0
- package/dist/components/DataTable/cells/SkeletonCell.d.ts +11 -0
- package/dist/components/DataTable/cells/SkeletonHeaderCell.d.ts +8 -0
- package/dist/components/DataTable/cells/index.d.ts +3 -0
- package/dist/components/DataTable/cells/styled.d.ts +1 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/styled.d.ts +46 -0
- package/dist/components/DataTable/utils/constants.d.ts +9 -0
- package/dist/components/DataTable/utils/hooks.d.ts +4 -0
- package/dist/components/DataTable/utils/index.d.ts +2 -0
- package/dist/components/DataTable/utils/types.d.ts +106 -0
- package/dist/components/DataTableExp/DataTable.d.ts +22 -0
- package/dist/components/DataTableExp/DataTable.test.d.ts +1 -0
- package/dist/components/DataTableExp/components/ActionBar.d.ts +9 -0
- package/dist/components/DataTableExp/components/Cell.d.ts +7 -0
- package/dist/components/DataTableExp/components/ColumnHeader.d.ts +6 -0
- package/dist/components/DataTableExp/components/ColumnMenu.d.ts +8 -0
- package/dist/components/DataTableExp/components/EmptyBodyContent.d.ts +5 -0
- package/dist/components/DataTableExp/components/Header.d.ts +2 -0
- package/dist/components/DataTableExp/components/LoadingCellContent.d.ts +1 -0
- package/dist/components/DataTableExp/components/NoWrap.d.ts +1 -0
- package/dist/components/DataTableExp/components/Row.d.ts +7 -0
- package/dist/components/DataTableExp/components/ScrollContainer.d.ts +1 -0
- package/dist/components/DataTableExp/components/SelectionCell.d.ts +11 -0
- package/dist/components/DataTableExp/components/SelectionHeader.d.ts +3 -0
- package/dist/components/DataTableExp/components/StickyHead.d.ts +9 -0
- package/dist/components/DataTableExp/components/TableGrid.d.ts +4 -0
- package/dist/components/DataTableExp/components/Truncate.d.ts +1 -0
- package/dist/components/DataTableExp/components/Wrapper.d.ts +5 -0
- package/dist/components/DataTableExp/constants.d.ts +3 -0
- package/dist/components/DataTableExp/hooks/index.d.ts +6 -0
- package/dist/components/DataTableExp/hooks/useCellWidths.d.ts +2 -0
- package/dist/components/DataTableExp/hooks/useColumns.d.ts +6 -0
- package/dist/components/DataTableExp/hooks/useDragToScroll.d.ts +2 -0
- package/dist/components/DataTableExp/hooks/useNested.d.ts +7 -0
- package/dist/components/DataTableExp/hooks/useScrollPosition.d.ts +6 -0
- package/dist/components/DataTableExp/hooks/useSelection.d.ts +12 -0
- package/dist/components/DataTableExp/index.d.ts +2 -0
- package/dist/components/DataTableExp/renderers/index.d.ts +5 -0
- package/dist/components/DataTableExp/renderers/renderCell.d.ts +10 -0
- package/dist/components/DataTableExp/renderers/renderFooter.d.ts +13 -0
- package/dist/components/DataTableExp/renderers/renderHeader.d.ts +15 -0
- package/dist/components/DataTableExp/renderers/renderLoadingCell.d.ts +9 -0
- package/dist/components/DataTableExp/renderers/renderNestedCell.d.ts +10 -0
- package/dist/components/DataTableExp/types.d.ts +116 -0
- package/dist/components/DataTableExp/utils/GetSortIcon.d.ts +9 -0
- package/dist/components/DataTableExp/utils/alignmentToFlex.d.ts +2 -0
- package/dist/components/DataTableExp/utils/generateTableCss.d.ts +10 -0
- package/dist/components/DataTableExp/utils/getNextSortState.d.ts +7 -0
- package/dist/components/DataTableExp/utils/getRowState.d.ts +10 -0
- package/dist/components/DataTableExp/utils/getRowState.test.d.ts +10 -0
- package/dist/components/DataTableExp/utils/index.d.ts +6 -0
- package/dist/components/DataTableExp/utils/parseWidth.d.ts +1 -0
- package/dist/components/DataTableExp/utils/sumAll.d.ts +2 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +11 -0
- package/dist/components/DescriptionList/DescriptionList.test.d.ts +1 -0
- package/dist/components/DescriptionList/index.d.ts +1 -0
- package/dist/components/DetailPage/DetailPage.d.ts +6 -0
- package/dist/components/DetailPage/DetailPage.test.d.ts +1 -0
- package/dist/components/DetailPage/index.d.ts +1 -0
- package/dist/components/DetailPage/styled.d.ts +2 -0
- package/dist/components/DimensionsInput/DimensionsInput.d.ts +3 -0
- package/dist/components/DimensionsInput/DimensionsInput.test.d.ts +1 -0
- package/dist/components/DimensionsInput/index.d.ts +1 -0
- package/dist/components/DimensionsInput/styled.d.ts +34 -0
- package/dist/components/DimensionsInput/types.d.ts +15 -0
- package/dist/components/FilterTag/FilterTag.d.ts +8 -0
- package/dist/components/FilterTag/FilterTag.test.d.ts +1 -0
- package/dist/components/FilterTag/index.d.ts +1 -0
- package/dist/components/FilterTag/styled.d.ts +14 -0
- package/dist/components/FilterTag/types.d.ts +14 -0
- package/dist/components/Grid/Grid.test.d.ts +1 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/types.d.ts +8 -0
- package/dist/components/Image/Image.d.ts +20 -0
- package/dist/components/Image/Image.test.d.ts +1 -0
- package/dist/components/Image/components/PlaceholderImage.d.ts +2 -0
- package/dist/components/Image/components/styled.d.ts +6 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Image/types.d.ts +6 -0
- package/dist/components/Image/utils.d.ts +2 -0
- package/dist/components/InputGroup/InputGroup.test.d.ts +1 -0
- package/dist/components/InputGroup/index.d.ts +1 -0
- package/dist/components/Loader/Grid.d.ts +9 -0
- package/dist/components/Loader/Loader.d.ts +3 -0
- package/dist/components/Loader/Loader.test.d.ts +1 -0
- package/dist/components/Loader/TailSpin.d.ts +9 -0
- package/dist/components/Loader/ThreeDots.d.ts +9 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Loader/loaderTypes.d.ts +8 -0
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.d.ts +7 -0
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.test.d.ts +1 -0
- package/dist/components/LoginWithAmazonButton/index.d.ts +1 -0
- package/dist/components/LoginWithAmazonButton/styled.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.test.d.ts +1 -0
- package/dist/components/Modal/components/Dialog/Dialog.d.ts +8 -0
- package/dist/components/Modal/components/Dialog/constants.d.ts +44 -0
- package/dist/components/Modal/components/Dialog/styled.d.ts +24 -0
- package/dist/components/Modal/components/styled.d.ts +5 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/types.d.ts +40 -0
- package/dist/components/PageHeader/PageHeader.d.ts +29 -0
- package/dist/components/PageHeader/PageHeader.test.d.ts +1 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PageHeader/styled.d.ts +23 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/Pagination.test.d.ts +1 -0
- package/dist/components/Pagination/components.d.ts +4 -0
- package/dist/components/Pagination/hooks/usePagination.d.ts +13 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/styled.d.ts +29 -0
- package/dist/components/Pagination/types.d.ts +8 -0
- package/dist/components/PaginationRange/Items/Item/Item.d.ts +3 -0
- package/dist/components/PaginationRange/Items/Item/index.d.ts +1 -0
- package/dist/components/PaginationRange/Items/Item/styled.d.ts +3 -0
- package/dist/components/PaginationRange/Items/Item/types.d.ts +5 -0
- package/dist/components/PaginationRange/Items/Items.d.ts +7 -0
- package/dist/components/PaginationRange/Items/index.d.ts +1 -0
- package/dist/components/PaginationRange/PaginationRange.d.ts +9 -0
- package/dist/components/PaginationRange/PaginationRange.test.d.ts +1 -0
- package/dist/components/PaginationRange/index.d.ts +1 -0
- package/dist/components/PaginationRange/styled.d.ts +6 -0
- package/dist/components/PaginationRange/types.d.ts +15 -0
- package/dist/components/Popover/Popover.d.ts +15 -0
- package/dist/components/Popover/Popover.test.d.ts +1 -0
- package/dist/components/Popover/PopoverDemo.d.ts +3 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Portal/Portal.d.ts +20 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/PriceInput/PriceInput.d.ts +3 -0
- package/dist/components/PriceInput/PriceInput.test.d.ts +1 -0
- package/dist/components/PriceInput/index.d.ts +1 -0
- package/dist/components/PriceInput/styled.d.ts +29 -0
- package/dist/components/PriceInput/types.d.ts +12 -0
- package/dist/components/Radio/Radio.d.ts +12 -0
- package/dist/components/Radio/Radio.test.d.ts +1 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/styled.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +3 -0
- package/dist/components/Search/Search.test.d.ts +1 -0
- package/dist/components/Search/index.d.ts +1 -0
- package/dist/components/Search/styled.d.ts +26 -0
- package/dist/components/Search/types.d.ts +9 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +3 -0
- package/dist/components/SegmentedControl/SegmentedControl.test.d.ts +1 -0
- package/dist/components/SegmentedControl/index.d.ts +1 -0
- package/dist/components/SegmentedControl/styled.d.ts +1 -0
- package/dist/components/SegmentedControl/types.d.ts +13 -0
- package/dist/components/Select/Select.d.ts +17 -0
- package/dist/components/Select/Select.test.d.ts +1 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/styled.d.ts +1 -0
- package/dist/components/SimpleTable/SimpleTable.d.ts +15 -0
- package/dist/components/SimpleTable/SimpleTable.test.d.ts +1 -0
- package/dist/components/SimpleTable/index.d.ts +1 -0
- package/dist/components/SimpleTable/styled.d.ts +15 -0
- package/dist/components/SimpleTable/types.d.ts +6 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.test.d.ts +1 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/styled.d.ts +8 -0
- package/dist/components/Slider/types.d.ts +26 -0
- package/dist/components/Stack/Alignments.d.ts +8 -0
- package/dist/components/Stack/Stack.d.ts +5 -0
- package/dist/components/Stack/Stack.test.d.ts +1 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/types.d.ts +38 -0
- package/dist/components/Stepper/Stepper.d.ts +9 -0
- package/dist/components/Stepper/Stepper.test.d.ts +1 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Stepper/styled.d.ts +5 -0
- package/dist/components/Tag/Tag.d.ts +5 -0
- package/dist/components/Tag/Tag.test.d.ts +1 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Text/Text.d.ts +2 -0
- package/dist/components/Text/Text.test.d.ts +1 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/textVariants.d.ts +4 -0
- package/dist/components/Text/types.d.ts +14 -0
- package/dist/components/Text/utils.d.ts +2 -0
- package/dist/components/TextField/TextField.d.ts +3 -0
- package/dist/components/TextField/TextField.test.d.ts +1 -0
- package/dist/components/TextField/index.d.ts +20 -0
- package/dist/components/TextField/styled.d.ts +2 -0
- package/dist/components/TextField/types.d.ts +26 -0
- package/dist/components/ToastsLayout/ToastsLayout.d.ts +3 -0
- package/dist/components/ToastsLayout/components/Toast.d.ts +3 -0
- package/dist/components/ToastsLayout/components/styled.d.ts +10 -0
- package/dist/components/ToastsLayout/index.d.ts +1 -0
- package/dist/components/ToastsLayout/types.d.ts +38 -0
- package/dist/components/Toggle/Toggle.d.ts +6 -0
- package/dist/components/Toggle/Toggle.test.d.ts +1 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/styled.d.ts +11 -0
- package/dist/components/Toggle/types.d.ts +9 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +9 -0
- package/dist/components/ToggleButton/ToggleButton.test.d.ts +1 -0
- package/dist/components/ToggleButton/index.d.ts +1 -0
- package/dist/components/ToggleButton/styled.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/styled.d.ts +8 -0
- package/dist/components/Tooltip/types.d.ts +36 -0
- package/dist/components/VideoModal/VideoModal.d.ts +3 -0
- package/dist/components/VideoModal/VideoModal.test.d.ts +1 -0
- package/dist/components/VideoModal/VideoModalDemo.d.ts +2 -0
- package/dist/components/VideoModal/components/Popup.d.ts +8 -0
- package/dist/components/VideoModal/components/styled.d.ts +7 -0
- package/dist/components/VideoModal/index.d.ts +2 -0
- package/dist/components/VideoModal/styled.d.ts +11 -0
- package/dist/components/VideoModal/types.d.ts +9 -0
- package/dist/components/View/View.d.ts +11 -0
- package/dist/components/View/View.test.d.ts +1 -0
- package/dist/components/View/index.d.ts +1 -0
- package/dist/components/View/styled.d.ts +13 -0
- package/dist/components/View/types.d.ts +30 -0
- package/dist/components/WeightInput/WeightInput.d.ts +3 -0
- package/dist/components/WeightInput/WeightInput.test.d.ts +1 -0
- package/dist/components/WeightInput/index.d.ts +1 -0
- package/dist/components/WeightInput/styled.d.ts +33 -0
- package/dist/components/WeightInput/types.d.ts +21 -0
- package/dist/components/index.d.ts +52 -0
- package/dist/components/types.d.ts +18 -0
- package/dist/hoc/index.d.ts +2 -0
- package/dist/hoc/withDeprecated.d.ts +2 -0
- package/dist/hoc/withLabels/index.d.ts +1 -0
- package/dist/hoc/withLabels/styled.d.ts +5 -0
- package/dist/hoc/withLabels/withLabels.d.ts +8 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useClickOutside.d.ts +5 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useDropdown.d.ts +6 -0
- package/dist/hooks/useFocusVisible.d.ts +11 -0
- package/dist/hooks/useHover.d.ts +1 -0
- package/dist/hooks/useIsOverflowing.d.ts +9 -0
- package/dist/hooks/useTabs.d.ts +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/tempIcons/ArrowDownIcon.d.ts +2 -0
- package/dist/tempIcons/ArrowUpIcon.d.ts +2 -0
- package/dist/tempIcons/AttentionIcon.d.ts +2 -0
- package/dist/tempIcons/CalendarIcon.d.ts +2 -0
- package/dist/tempIcons/ClipboardIcon.d.ts +2 -0
- package/dist/tempIcons/CrossIcon.d.ts +2 -0
- package/dist/tempIcons/DoubleArrowAscIcon.d.ts +2 -0
- package/dist/tempIcons/DoubleArrowDescIcon.d.ts +2 -0
- package/dist/tempIcons/DoubleArrowIcon.d.ts +2 -0
- package/dist/tempIcons/DoubleArrowIconIcon.d.ts +2 -0
- package/dist/tempIcons/DownArrowIcon.d.ts +2 -0
- package/dist/tempIcons/DropdownIcon.d.ts +2 -0
- package/dist/tempIcons/EditIcon.d.ts +2 -0
- package/dist/tempIcons/EndArrowIcon.d.ts +2 -0
- package/dist/tempIcons/FailIcon.d.ts +2 -0
- package/dist/tempIcons/HelpIcon.d.ts +2 -0
- package/dist/tempIcons/InfoIcon.d.ts +2 -0
- package/dist/tempIcons/LeftArrowIcon.d.ts +2 -0
- package/dist/tempIcons/MergeIcon.d.ts +2 -0
- package/dist/tempIcons/MoreHorizIcon.d.ts +2 -0
- package/dist/tempIcons/ReorderIcon.d.ts +2 -0
- package/dist/tempIcons/RightArrowIcon.d.ts +2 -0
- package/dist/tempIcons/SearchIcon.d.ts +2 -0
- package/dist/tempIcons/StartArrowIcon.d.ts +2 -0
- package/dist/tempIcons/SuccessIcon.d.ts +2 -0
- package/dist/tempIcons/UpArrowIcon.d.ts +2 -0
- package/dist/tempIcons/VisibilityIcon.d.ts +2 -0
- package/dist/tempIcons/VisibilityOffIcon.d.ts +2 -0
- package/dist/theme/index.d.ts +454 -0
- package/dist/theme/modules/breakpoints.d.ts +7 -0
- package/dist/theme/modules/colors.d.ts +116 -0
- package/dist/theme/modules/layers.d.ts +6 -0
- package/dist/theme/modules/radius.d.ts +7 -0
- package/dist/theme/modules/shadows.d.ts +6 -0
- package/dist/theme/modules/sizes.d.ts +20 -0
- package/dist/theme/modules/text.d.ts +315 -0
- package/dist/theme/storybook/components.d.ts +2 -0
- package/dist/utils/buildClassnames.d.ts +1 -0
- package/dist/utils/color.d.ts +13 -0
- package/dist/utils/generateId.d.ts +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/paginationList.d.ts +4 -0
- package/dist/utils/setupIntersectionObserverMock.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Size } from '../Stack/types';
|
|
3
|
+
export type BorderType = 'all' | 'vertical' | 'none';
|
|
4
|
+
export type ScrollPosition = 'none' | 'start' | 'middle' | 'end';
|
|
5
|
+
export type RowState = {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ColumnId = string | number;
|
|
11
|
+
export type ColumnAlignment = 'left' | 'center' | 'right';
|
|
12
|
+
export type ColumnOverflow = 'none' | 'wrap' | 'truncate';
|
|
13
|
+
export type ColumnPinned = 'left' | 'right' | 'none';
|
|
14
|
+
export type ColumnSpacing = Size;
|
|
15
|
+
export type ColumnWidth = number | string;
|
|
16
|
+
export type ColumnWidthFixed = ColumnWidth;
|
|
17
|
+
export type ColumnWidthBounded = {
|
|
18
|
+
min?: ColumnWidth;
|
|
19
|
+
max?: ColumnWidth;
|
|
20
|
+
};
|
|
21
|
+
export type ColumnConfig = {
|
|
22
|
+
id: ColumnId;
|
|
23
|
+
align?: ColumnAlignment;
|
|
24
|
+
hidden?: boolean;
|
|
25
|
+
icon?: ReactElement;
|
|
26
|
+
pinned?: ColumnPinned;
|
|
27
|
+
sortable?: boolean;
|
|
28
|
+
spacing?: ColumnSpacing;
|
|
29
|
+
span?: number;
|
|
30
|
+
title?: string;
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
width?: ColumnWidthFixed | ColumnWidthBounded;
|
|
33
|
+
renderCell: CellRenderer;
|
|
34
|
+
renderFooter?: FooterRenderer;
|
|
35
|
+
renderHeader?: HeaderRenderer;
|
|
36
|
+
renderNestedCell?: NestedCellRenderer;
|
|
37
|
+
};
|
|
38
|
+
export type ColumnConfigs = Array<ColumnConfig>;
|
|
39
|
+
export declare enum SortDirection {
|
|
40
|
+
ascending = "ascending",
|
|
41
|
+
descending = "descending"
|
|
42
|
+
}
|
|
43
|
+
export type SortDirectionType = keyof typeof SortDirection;
|
|
44
|
+
export type SortState = {
|
|
45
|
+
columnId: ColumnId;
|
|
46
|
+
direction: SortDirection;
|
|
47
|
+
};
|
|
48
|
+
export type SortChangeHandler = (sortState: SortState) => void;
|
|
49
|
+
export type RowId = number | string;
|
|
50
|
+
export interface NestedTableRow {
|
|
51
|
+
id: RowId;
|
|
52
|
+
data: any;
|
|
53
|
+
}
|
|
54
|
+
export type NestedTableRows = Array<NestedTableRow>;
|
|
55
|
+
export interface TableRow {
|
|
56
|
+
id: RowId;
|
|
57
|
+
data: any;
|
|
58
|
+
nestedRows?: NestedTableRows;
|
|
59
|
+
accentColor?: string;
|
|
60
|
+
e2eClassName?: string;
|
|
61
|
+
}
|
|
62
|
+
export type TableRows = Array<TableRow>;
|
|
63
|
+
export interface HeaderProps extends React.HtmlHTMLAttributes<HTMLTableCellElement> {
|
|
64
|
+
id: string;
|
|
65
|
+
align?: ColumnAlignment;
|
|
66
|
+
spacing?: ColumnSpacing;
|
|
67
|
+
span?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface RendererHeaderProps extends HeaderProps {
|
|
70
|
+
key: string;
|
|
71
|
+
}
|
|
72
|
+
export interface SelectionHeaderProps extends Omit<HeaderProps, 'onChange'> {
|
|
73
|
+
selected: boolean;
|
|
74
|
+
indeterminate: boolean;
|
|
75
|
+
onChange: (selected: boolean, value: RowId | undefined) => void;
|
|
76
|
+
selectionMode: SelectionMode;
|
|
77
|
+
}
|
|
78
|
+
export type HeaderRenderer = (column: ColumnConfig, headerProps: RendererHeaderProps) => ReactNode;
|
|
79
|
+
export type FooterRenderer = (column: ColumnConfig, footerProps: object) => ReactNode;
|
|
80
|
+
export type CellRenderer = (row: TableRow, cellProps: object, actions: TableActions, rowState: RowState) => ReactNode;
|
|
81
|
+
type ParentRowState = RowState;
|
|
82
|
+
export type NestedCellRenderer = (nestedRow: NestedTableRow, cellProps: object, parentRowState: ParentRowState) => ReactNode;
|
|
83
|
+
export type SetSelectedAction = (selected: boolean, rowId: RowId | undefined) => void;
|
|
84
|
+
export type SetExpandedAction = (expanded: boolean, rowId: RowId | undefined) => void;
|
|
85
|
+
export type TableActions = {
|
|
86
|
+
setSelected: SetSelectedAction;
|
|
87
|
+
setExpanded: SetExpandedAction;
|
|
88
|
+
};
|
|
89
|
+
export type BorderMode = 'full' | 'vertical' | 'none';
|
|
90
|
+
export type CustomState = {
|
|
91
|
+
icon: ReactElement;
|
|
92
|
+
heading: string;
|
|
93
|
+
subheading?: string;
|
|
94
|
+
};
|
|
95
|
+
export type SelectionMode = 'single' | 'multiple';
|
|
96
|
+
export type SelectionState = [RowId[], (rowIds: RowId[]) => void];
|
|
97
|
+
export type StripingMode = 'row' | 'nested';
|
|
98
|
+
export interface DataTableProps {
|
|
99
|
+
ActionBarSlot?: ReactNode;
|
|
100
|
+
borderMode?: BorderMode;
|
|
101
|
+
columns: ColumnConfigs;
|
|
102
|
+
disabledRowIds?: Array<RowId>;
|
|
103
|
+
enableStickyHeader?: boolean;
|
|
104
|
+
emptyState?: CustomState;
|
|
105
|
+
expandedRowIds?: Array<RowId>;
|
|
106
|
+
loading?: boolean;
|
|
107
|
+
loadingRowCount?: number;
|
|
108
|
+
onChangeSort?: SortChangeHandler;
|
|
109
|
+
rows: TableRows;
|
|
110
|
+
selectionMode?: SelectionMode;
|
|
111
|
+
selectionState?: SelectionState;
|
|
112
|
+
setExpanded?: SetExpandedAction;
|
|
113
|
+
sortState?: SortState;
|
|
114
|
+
stripingMode?: StripingMode;
|
|
115
|
+
}
|
|
116
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColumnId, SortState } from '../types';
|
|
3
|
+
type GetSortIconPropsParameters = {
|
|
4
|
+
sortState?: SortState;
|
|
5
|
+
columnId: ColumnId;
|
|
6
|
+
size: string | number;
|
|
7
|
+
};
|
|
8
|
+
export declare const GetSortIcon: ({ sortState, columnId, size }: GetSortIconPropsParameters) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnConfigs, ScrollPosition, StripingMode } from '../types';
|
|
2
|
+
export type GenerateTableCssArgs = {
|
|
3
|
+
pinnedLeft: ColumnConfigs;
|
|
4
|
+
pinnedRight: ColumnConfigs;
|
|
5
|
+
cellWidths: Array<number>;
|
|
6
|
+
scrollPosition: ScrollPosition;
|
|
7
|
+
visible: ColumnConfigs;
|
|
8
|
+
stripingMode?: StripingMode;
|
|
9
|
+
};
|
|
10
|
+
export declare function generateTableCss({ pinnedLeft, pinnedRight, cellWidths, scrollPosition, visible, stripingMode, }: GenerateTableCssArgs): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RowId } from '../types';
|
|
2
|
+
export declare const getRowState: (rowId: RowId, { selectedRowIds, expandedRowIds, disabledRowIds, }: Partial<{
|
|
3
|
+
selectedRowIds: RowId[];
|
|
4
|
+
expandedRowIds: RowId[];
|
|
5
|
+
disabledRowIds: RowId[];
|
|
6
|
+
}>) => {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RowId } from '../types';
|
|
2
|
+
export declare const getRowState: (rowId: RowId, { selectedRowIds, expandedRowIds, disabledRowIds, }: Partial<{
|
|
3
|
+
selectedRowIds: RowId[];
|
|
4
|
+
expandedRowIds: RowId[];
|
|
5
|
+
disabledRowIds: RowId[];
|
|
6
|
+
}>) => {
|
|
7
|
+
selected: boolean;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseWidth(width: any, fallback?: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type DescriptionListItem = {
|
|
3
|
+
term: string;
|
|
4
|
+
description: string | string[];
|
|
5
|
+
};
|
|
6
|
+
export interface DescriptionListProps {
|
|
7
|
+
items: DescriptionListItem[];
|
|
8
|
+
horizontal?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DescriptionList: ({ items, horizontal }: DescriptionListProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DescriptionList } from './DescriptionList';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface PageHeaderProps {
|
|
3
|
+
renderHeader: (toggleSidebar: () => void, shouldShowSidebar?: boolean) => ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const DetailPage: ({ renderHeader, children }: PageHeaderProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DetailPage } from './DetailPage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DimensionsInput } from './DimensionsInput';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
declare const Row: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
type?: import("../TextField/types").TextFieldType | undefined;
|
|
7
|
+
value: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
placeholder?: string | undefined;
|
|
10
|
+
step?: string | undefined;
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
min?: string | undefined;
|
|
13
|
+
max?: string | undefined;
|
|
14
|
+
pattern?: string | undefined;
|
|
15
|
+
hasError?: boolean | undefined;
|
|
16
|
+
size?: "base" | "sm" | undefined;
|
|
17
|
+
multiline?: boolean | undefined;
|
|
18
|
+
rows?: string | undefined;
|
|
19
|
+
invalid?: boolean | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
spellCheck?: boolean | undefined;
|
|
22
|
+
} & import("../../hoc/withLabels/withLabels").WithLabelsProps>, any, {}, never>;
|
|
23
|
+
declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
24
|
+
children?: import("react").ReactNode;
|
|
25
|
+
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
26
|
+
size?: "base" | "sm" | undefined;
|
|
27
|
+
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
28
|
+
dropdown?: boolean | undefined;
|
|
29
|
+
loading?: boolean | undefined;
|
|
30
|
+
} & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
31
|
+
declare const Label: import("styled-components").StyledComponent<"span", any, {} & import("../Text/types").TextProps, never>;
|
|
32
|
+
declare const Error: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
33
|
+
declare const Hint: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
34
|
+
export { Container, Row, Error, Hint, StyledTextField as TextField, StyledButton as Button, Label };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentSize } from '../types';
|
|
2
|
+
export interface DimensionsProps {
|
|
3
|
+
size?: ComponentSize;
|
|
4
|
+
handleChangeHeight: (value: string) => void;
|
|
5
|
+
handleChangeWidth: (value: string) => void;
|
|
6
|
+
handleChangeLength: (value: string) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
hint?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
height: string;
|
|
11
|
+
width: string;
|
|
12
|
+
length: string;
|
|
13
|
+
unit?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterTagProps } from './types';
|
|
3
|
+
export interface ClassNamesReturnPayload {
|
|
4
|
+
filterTagDropdown?: string;
|
|
5
|
+
container?: string;
|
|
6
|
+
cross?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const FilterTag: ({ className, e2eClassName, label, text, iconSlot, fill, content, footer, onClickAway, onClick, shouldCloseOnClickAway, }: FilterTagProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FilterTag } from './FilterTag';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Text } from '../Text';
|
|
3
|
+
import { AnimatedDropdown } from '../AnimatedDropdown';
|
|
4
|
+
declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
declare const GroupLabel: import("styled-components").StyledComponent<"span", any, {} & import("../Text/types").TextProps, never>;
|
|
6
|
+
declare const MainIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {
|
|
7
|
+
shouldShow?: boolean | undefined;
|
|
8
|
+
}, never>;
|
|
9
|
+
declare const StyledCrossIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {}, never>;
|
|
10
|
+
declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
declare const Header: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
+
color: string;
|
|
13
|
+
}, never>;
|
|
14
|
+
export { Container, Text, AnimatedDropdown as Dropdown, GroupLabel, Content, Header, MainIcon, StyledCrossIcon as CrossIcon, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode, ReactElement } from 'react';
|
|
2
|
+
export interface FilterTagProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
e2eClassName?: string;
|
|
5
|
+
iconSlot?: ReactElement;
|
|
6
|
+
label?: string;
|
|
7
|
+
text: string;
|
|
8
|
+
fill?: string;
|
|
9
|
+
content?: ReactNode;
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
onClickAway?: (event: Event, closeDropdown?: () => void) => void;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
shouldCloseOnClickAway?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Placement } from '@popperjs/core';
|
|
3
|
+
type ImageProps = {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
e2eClassName?: string;
|
|
8
|
+
width?: string;
|
|
9
|
+
height?: string;
|
|
10
|
+
previewWidth?: string;
|
|
11
|
+
previewHeight?: string;
|
|
12
|
+
previewPlacement?: Placement;
|
|
13
|
+
previewEnabled?: boolean;
|
|
14
|
+
placeholder?: React.ReactNode;
|
|
15
|
+
placeholderWidth?: string;
|
|
16
|
+
placeholderHeight?: string;
|
|
17
|
+
disablePlaceholder?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const Image: ({ src, alt, className, e2eClassName, width, height, previewWidth, previewHeight, previewPlacement, previewEnabled, placeholder, placeholderWidth, placeholderHeight, disablePlaceholder, }: ImageProps) => React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const CommonImage: import("styled-components").StyledComponent<"img", any, {
|
|
3
|
+
previewEnabled?: boolean | undefined;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const PreviewImageContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const PreviewImage: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Image } from './Image';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InputGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TailSpinProps {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TailSpin: ({ width, height, className, color, label }: TailSpinProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ThreeDotsProps {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ThreeDots: ({ width, height, className, color, label }: ThreeDotsProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Loader } from './Loader';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const buttonDescription = "Log in with Amazon";
|
|
3
|
+
/**
|
|
4
|
+
* Image used in this button is to comply with official
|
|
5
|
+
* Amazon button guidelines (https://developer.amazon.com/docs/login-with-amazon/button.html#android-images).
|
|
6
|
+
*/
|
|
7
|
+
export declare const LoginWithAmazonButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LoginWithAmazonButton } from './LoginWithAmazonButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LoginButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyledDialog } from './styled';
|
|
3
|
+
import { ModalVariants } from '../../types';
|
|
4
|
+
type ModifiedDialogProps = {
|
|
5
|
+
variant: ModalVariants;
|
|
6
|
+
} & React.ComponentProps<typeof StyledDialog>;
|
|
7
|
+
export declare const Dialog: React.ForwardRefExoticComponent<Omit<ModifiedDialogProps, "ref"> & React.RefAttributes<HTMLDialogElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const heightMap: {
|
|
2
|
+
readonly xs: "84vh";
|
|
3
|
+
readonly sm: "72vh";
|
|
4
|
+
readonly base: "84vh";
|
|
5
|
+
readonly lg: "96vh";
|
|
6
|
+
};
|
|
7
|
+
export declare const widthMap: {
|
|
8
|
+
readonly "640px": {
|
|
9
|
+
readonly xs: "60vw";
|
|
10
|
+
readonly sm: "72vw";
|
|
11
|
+
readonly base: "100vw";
|
|
12
|
+
readonly lg: "100vw";
|
|
13
|
+
};
|
|
14
|
+
readonly "720px": {
|
|
15
|
+
readonly xs: "60vw";
|
|
16
|
+
readonly sm: "72vw";
|
|
17
|
+
readonly base: "100vw";
|
|
18
|
+
readonly lg: "100vw";
|
|
19
|
+
};
|
|
20
|
+
readonly "960px": {
|
|
21
|
+
readonly xs: "48vw";
|
|
22
|
+
readonly sm: "56vw";
|
|
23
|
+
readonly base: "88vw";
|
|
24
|
+
readonly lg: "100vw";
|
|
25
|
+
};
|
|
26
|
+
readonly "1280px": {
|
|
27
|
+
readonly xs: "36vw";
|
|
28
|
+
readonly sm: "44vw";
|
|
29
|
+
readonly base: "72vw";
|
|
30
|
+
readonly lg: "88vw";
|
|
31
|
+
};
|
|
32
|
+
readonly "1440px": {
|
|
33
|
+
readonly xs: "32vw";
|
|
34
|
+
readonly sm: "40vw";
|
|
35
|
+
readonly base: "52vw";
|
|
36
|
+
readonly lg: "80vw";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const fullScreenBreakpointMap: {
|
|
40
|
+
readonly xs: "640px";
|
|
41
|
+
readonly sm: "640px";
|
|
42
|
+
readonly base: "720px";
|
|
43
|
+
readonly lg: "960px";
|
|
44
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ModalVariants } from '../../types';
|
|
2
|
+
export declare const StyledDialog: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLDialogElement, import("framer-motion").HTMLMotionProps<"dialog">>, any, {
|
|
3
|
+
initial: {
|
|
4
|
+
opacity: number;
|
|
5
|
+
y: number;
|
|
6
|
+
bounce: number;
|
|
7
|
+
};
|
|
8
|
+
exit: {
|
|
9
|
+
opacity: number;
|
|
10
|
+
y: number;
|
|
11
|
+
bounce: number;
|
|
12
|
+
};
|
|
13
|
+
animate: {
|
|
14
|
+
opacity: number;
|
|
15
|
+
y: number;
|
|
16
|
+
bounce: number;
|
|
17
|
+
};
|
|
18
|
+
transition: {
|
|
19
|
+
type: "tween";
|
|
20
|
+
duration: number;
|
|
21
|
+
};
|
|
22
|
+
} & {
|
|
23
|
+
variant: ModalVariants;
|
|
24
|
+
}, "animate" | "initial" | "exit" | "transition">;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const NonScrollableBody: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
|
+
export declare const MainSection: import("styled-components").StyledComponent<"section", any, {
|
|
3
|
+
isScrollable: boolean;
|
|
4
|
+
fullBleed: boolean;
|
|
5
|
+
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Modal } from './Modal';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../Button/types';
|
|
3
|
+
export type ModalVariants = 'xs' | 'sm' | 'base' | 'lg';
|
|
4
|
+
type BaseModalProps = {
|
|
5
|
+
shouldShow: boolean;
|
|
6
|
+
showHeaderCloseButton?: boolean;
|
|
7
|
+
fullBleed?: boolean;
|
|
8
|
+
variant?: ModalVariants;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
type WithHeaderSlot = {
|
|
13
|
+
headerSlot: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
type WithFooterSlot = {
|
|
16
|
+
footerSlot: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
type DefaultHeaderOptions = {
|
|
19
|
+
headerTitle: string;
|
|
20
|
+
headerSubtitle?: string;
|
|
21
|
+
};
|
|
22
|
+
type ModalAction = {
|
|
23
|
+
label: string;
|
|
24
|
+
} & ButtonProps;
|
|
25
|
+
type DefaultFooterOptions = {
|
|
26
|
+
leftActions?: ModalAction[];
|
|
27
|
+
rightActions?: ModalAction[];
|
|
28
|
+
};
|
|
29
|
+
type HeaderOptions = WithHeaderSlot | DefaultHeaderOptions;
|
|
30
|
+
type FooterOptions = WithFooterSlot | DefaultFooterOptions;
|
|
31
|
+
export type ModalProps = BaseModalProps & HeaderOptions & FooterOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Type guard to check if a header slot has been passed to the component.
|
|
34
|
+
*/
|
|
35
|
+
export declare const hasHeaderSlot: (props: ModalProps) => props is BaseModalProps & WithHeaderSlot & FooterOptions;
|
|
36
|
+
/**
|
|
37
|
+
* Type guard to check if a footer slot has been passed to the component.
|
|
38
|
+
*/
|
|
39
|
+
export declare const hasFooterSlot: (props: ModalProps) => props is BaseModalProps & HeaderOptions & WithFooterSlot;
|
|
40
|
+
export {};
|