@algolia/satellite 1.0.0-beta.14 → 1.0.0-beta.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +66 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +32 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +66 -0
- package/cjs/AutoComplete/AutoComplete.js +668 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.js +96 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +46 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +46 -0
- package/cjs/AutoComplete/index.d.ts +5 -0
- package/cjs/AutoComplete/index.js +74 -0
- package/cjs/AutoComplete/types.d.ts +86 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +5 -0
- package/{components → cjs}/AutoComplete/utils.js +27 -2
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +46 -0
- package/cjs/Avatars/UserAvatar.d.ts +13 -0
- package/cjs/Avatars/UserAvatar.js +71 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +46 -0
- package/cjs/Avatars/types.d.ts +17 -0
- package/cjs/Avatars/types.js +5 -0
- package/cjs/Avatars/utils.d.ts +6 -0
- package/cjs/Avatars/utils.js +90 -0
- package/cjs/Badge/Badge.d.ts +35 -0
- package/cjs/Badge/Badge.js +98 -0
- package/cjs/Badge/index.d.ts +2 -0
- package/cjs/Badge/index.js +32 -0
- package/cjs/Banners/Alert/Alert.d.ts +74 -0
- package/cjs/Banners/Alert/Alert.js +150 -0
- package/{types/components → cjs/Banners}/Alert/index.d.ts +0 -0
- package/cjs/Banners/Alert/index.js +32 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +70 -0
- package/cjs/Banners/BigBertha/index.d.ts +2 -0
- package/cjs/Banners/BigBertha/index.js +32 -0
- package/cjs/Banners/Promote/Promote.d.ts +57 -0
- package/cjs/Banners/Promote/Promote.js +121 -0
- package/cjs/Banners/Promote/index.d.ts +2 -0
- package/cjs/Banners/Promote/index.js +32 -0
- package/cjs/Banners/index.d.ts +3 -0
- package/cjs/Banners/index.js +44 -0
- package/cjs/Button/Button.d.ts +21 -0
- package/cjs/Button/Button.js +100 -0
- package/cjs/Button/Button.tailwind.d.ts +5 -0
- package/cjs/Button/Button.tailwind.js +157 -0
- package/cjs/Button/ButtonGroup.d.ts +13 -0
- package/cjs/Button/ButtonGroup.js +38 -0
- package/cjs/Button/IconButton.d.ts +17 -0
- package/cjs/Button/IconButton.js +100 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +74 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +47 -0
- package/cjs/Button/types.d.ts +27 -0
- package/cjs/Button/types.js +10 -0
- package/cjs/Card/Card.d.ts +26 -0
- package/cjs/Card/Card.js +56 -0
- package/cjs/Card/Card.tailwind.d.ts +5 -0
- package/cjs/Card/Card.tailwind.js +37 -0
- package/cjs/Card/components/CardHeader.d.ts +4 -0
- package/cjs/Card/components/CardHeader.js +40 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +42 -0
- package/cjs/Card/index.d.ts +4 -0
- package/cjs/Card/index.js +60 -0
- package/cjs/Checkbox/Checkbox.d.ts +24 -0
- package/cjs/Checkbox/Checkbox.js +121 -0
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/cjs/Checkbox/Checkbox.tailwind.js +67 -0
- package/{types/components → cjs}/Checkbox/index.d.ts +0 -0
- package/cjs/Checkbox/index.js +32 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +99 -0
- package/cjs/ClickAwayContainer/index.d.ts +1 -0
- package/cjs/ClickAwayContainer/index.js +18 -0
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +195 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +68 -0
- package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/DatePicker/index.js +46 -0
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.tailwind.js +136 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +282 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +49 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +126 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +24 -0
- package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/cjs/DatePicker/DateRangePicker/index.js +60 -0
- package/cjs/DatePicker/components/Calendar.d.ts +17 -0
- package/cjs/DatePicker/components/Calendar.js +89 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +31 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +27 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +41 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +91 -0
- package/cjs/DatePicker/components/NavBar.d.ts +16 -0
- package/cjs/DatePicker/components/NavBar.js +93 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +30 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +55 -0
- package/cjs/DatePicker/index.d.ts +5 -0
- package/cjs/DatePicker/index.js +69 -0
- package/cjs/DatePicker/types.d.ts +17 -0
- package/cjs/DatePicker/types.js +5 -0
- package/cjs/DatePicker/utils.d.ts +3 -0
- package/cjs/DatePicker/utils.js +24 -0
- package/cjs/Dropdown/Dropdown.d.ts +64 -0
- package/cjs/Dropdown/Dropdown.js +171 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +63 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +25 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +60 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +76 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +25 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +23 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +47 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +43 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +72 -0
- package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/cjs/Dropdown/components/DropdownDivider.js +26 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +44 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +14 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +64 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +60 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +40 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +63 -0
- package/cjs/Dropdown/index.d.ts +13 -0
- package/cjs/Dropdown/index.js +186 -0
- package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/cjs/Dropdown/useDropdownItemProps.js +53 -0
- package/cjs/Dropzone/Dropzone.d.ts +20 -0
- package/cjs/Dropzone/Dropzone.js +194 -0
- package/cjs/Dropzone/index.d.ts +2 -0
- package/cjs/Dropzone/index.js +32 -0
- package/cjs/EmptyState/EmptyState.d.ts +28 -0
- package/cjs/EmptyState/EmptyState.js +136 -0
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/cjs/EmptyState/EmptyState.tailwind.js +16 -0
- package/cjs/EmptyState/index.d.ts +3 -0
- package/cjs/EmptyState/index.js +46 -0
- package/cjs/EmptyState/types.d.ts +65 -0
- package/cjs/EmptyState/types.js +5 -0
- package/cjs/Field/Field.d.ts +54 -0
- package/cjs/Field/Field.js +109 -0
- package/cjs/Field/FieldStateContext.d.ts +12 -0
- package/cjs/Field/FieldStateContext.js +17 -0
- package/cjs/Field/index.d.ts +4 -0
- package/cjs/Field/index.js +60 -0
- package/cjs/Field/useFieldState.d.ts +2 -0
- package/cjs/Field/useFieldState.js +24 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +138 -0
- package/cjs/Flag/Flag.tailwind.d.ts +5 -0
- package/cjs/Flag/Flag.tailwind.js +35 -0
- package/cjs/Flag/Flags.d.ts +48 -0
- package/cjs/Flag/Flags.js +106 -0
- package/cjs/Flag/index.d.ts +4 -0
- package/cjs/Flag/index.js +60 -0
- package/cjs/Flag/types.d.ts +22 -0
- package/cjs/Flag/types.js +5 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +17 -0
- package/cjs/FlexGrid/FlexGrid.js +81 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.js +78 -0
- package/cjs/FlexGrid/index.d.ts +2 -0
- package/cjs/FlexGrid/index.js +32 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/cjs/HelpUnderline/HelpUnderline.js +43 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +22 -0
- package/{types/components → cjs}/HelpUnderline/index.d.ts +0 -0
- package/cjs/HelpUnderline/index.js +32 -0
- package/cjs/Input/Input.d.ts +26 -0
- package/cjs/Input/Input.js +256 -0
- package/cjs/Input/Input.tailwind.d.ts +5 -0
- package/cjs/Input/Input.tailwind.js +102 -0
- package/{types/components → cjs}/Input/index.d.ts +0 -0
- package/cjs/Input/index.js +32 -0
- package/cjs/Insert/Insert.d.ts +45 -0
- package/cjs/Insert/Insert.js +89 -0
- package/cjs/Insert/index.d.ts +2 -0
- package/cjs/Insert/index.js +32 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.js +382 -0
- package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/cjs/KeyboardKey/KeyboardKey.js +48 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +30 -0
- package/cjs/KeyboardKey/index.d.ts +2 -0
- package/{components/Alert → cjs/KeyboardKey}/index.js +5 -6
- package/cjs/Link/BaseLink.d.ts +4 -0
- package/cjs/Link/BaseLink.js +41 -0
- package/cjs/Link/ButtonLink.d.ts +5 -0
- package/cjs/Link/ButtonLink.js +50 -0
- package/cjs/Link/IconButtonLink.d.ts +6 -0
- package/cjs/Link/IconButtonLink.js +41 -0
- package/cjs/Link/Link.d.ts +11 -0
- package/cjs/Link/Link.js +69 -0
- package/cjs/Link/index.d.ts +5 -0
- package/cjs/Link/index.js +74 -0
- package/cjs/Medallion/Medallion.d.ts +11 -0
- package/cjs/Medallion/Medallion.js +50 -0
- package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
- package/cjs/Medallion/Medallion.tailwind.js +34 -0
- package/cjs/Medallion/index.d.ts +3 -0
- package/cjs/Medallion/index.js +46 -0
- package/cjs/Medallion/types.d.ts +2 -0
- package/cjs/Medallion/types.js +5 -0
- package/cjs/Modal/Modal.d.ts +23 -0
- package/cjs/Modal/Modal.js +192 -0
- package/cjs/Modal/Modal.tailwind.d.ts +5 -0
- package/cjs/Modal/Modal.tailwind.js +45 -0
- package/cjs/Modal/components/ModalFooter.d.ts +6 -0
- package/cjs/Modal/components/ModalFooter.js +48 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +33 -0
- package/cjs/Modal/index.d.ts +4 -0
- package/cjs/Modal/index.js +60 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +104 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +32 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +14 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +62 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +32 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
- package/cjs/Pagination/Pagination/Pagination.js +149 -0
- package/{types/components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- package/cjs/Pagination/Pagination/index.js +32 -0
- package/cjs/Pagination/index.d.ts +4 -0
- package/cjs/Pagination/index.js +60 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +13 -0
- package/cjs/ProgressBar/ProgressBar.js +59 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.js +27 -0
- package/cjs/ProgressBar/index.d.ts +2 -0
- package/cjs/ProgressBar/index.js +32 -0
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +66 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +37 -0
- package/cjs/ProgressSpinner/index.d.ts +2 -0
- package/cjs/ProgressSpinner/index.js +32 -0
- package/cjs/RadioGroup/RadioButton.d.ts +4 -0
- package/cjs/RadioGroup/RadioButton.js +44 -0
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/cjs/RadioGroup/RadioButton.tailwind.js +58 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +40 -0
- package/cjs/RadioGroup/RadioGroup.js +125 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/cjs/RadioGroup/RadiogroupContext.js +23 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +60 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +18 -0
- package/cjs/RangeSlider/RangeSlider.js +129 -0
- package/cjs/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
- package/cjs/RangeSlider/RangeSlider.tailwind.js +75 -0
- package/cjs/RangeSlider/index.d.ts +2 -0
- package/cjs/RangeSlider/index.js +32 -0
- package/cjs/Satellite/Satellite.d.ts +11 -0
- package/cjs/Satellite/Satellite.js +34 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +34 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +56 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +88 -0
- package/cjs/Satellite/locale.d.ts +29 -0
- package/cjs/Satellite/locale.js +21 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +29 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +111 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +52 -0
- package/cjs/ScrollIndicator/index.d.ts +2 -0
- package/cjs/ScrollIndicator/index.js +32 -0
- package/cjs/Select/Select.d.ts +15 -0
- package/cjs/Select/Select.js +59 -0
- package/cjs/Select/Select.tailwind.d.ts +5 -0
- package/cjs/Select/Select.tailwind.js +79 -0
- package/{types/components → cjs}/Select/index.d.ts +0 -0
- package/cjs/Select/index.js +32 -0
- package/cjs/Sidebar/Sidebar.d.ts +35 -0
- package/cjs/Sidebar/Sidebar.js +81 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/cjs/Sidebar/SidebarButtonLink.js +110 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +23 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
- package/cjs/Sidebar/SidebarHeader.js +29 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeading.js +37 -0
- package/cjs/Sidebar/SidebarLink.d.ts +8 -0
- package/cjs/Sidebar/SidebarLink.js +58 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +47 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +40 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +120 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +18 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
- package/cjs/Sidebar/SidebarNav.d.ts +10 -0
- package/cjs/Sidebar/SidebarNav.js +48 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +128 -0
- package/cjs/Sidebar/types.d.ts +6 -0
- package/cjs/Sidebar/types.js +5 -0
- package/cjs/Switch/Switch.d.ts +13 -0
- package/cjs/Switch/Switch.js +107 -0
- package/cjs/Switch/Switch.tailwind.d.ts +5 -0
- package/cjs/Switch/Switch.tailwind.js +26 -0
- package/cjs/Switch/SwitchOption.d.ts +8 -0
- package/cjs/Switch/SwitchOption.js +58 -0
- package/cjs/Switch/index.d.ts +3 -0
- package/cjs/Switch/index.js +46 -0
- package/cjs/Switch/types.d.ts +7 -0
- package/cjs/Switch/types.js +5 -0
- package/cjs/Switch/utils.d.ts +6 -0
- package/cjs/Switch/utils.js +31 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +60 -0
- package/cjs/Tables/DataTable/DataTable.js +303 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
- package/cjs/Tables/DataTable/components/Body.d.ts +15 -0
- package/cjs/Tables/DataTable/components/Body.js +140 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +81 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +48 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +77 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Loader.js +62 -0
- package/cjs/Tables/DataTable/components/index.d.ts +5 -0
- package/cjs/Tables/DataTable/components/index.js +70 -0
- package/cjs/Tables/DataTable/index.d.ts +3 -0
- package/cjs/Tables/DataTable/index.js +46 -0
- package/cjs/Tables/DataTable/types.d.ts +49 -0
- package/cjs/Tables/DataTable/types.js +5 -0
- package/cjs/Tables/DataTable/utils.d.ts +4 -0
- package/cjs/Tables/DataTable/utils.js +32 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +76 -0
- package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
- package/cjs/Tables/Table/Table.tailwind.js +40 -0
- package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
- package/cjs/Tables/Table/components/TableFooter.js +36 -0
- package/cjs/Tables/Table/index.d.ts +3 -0
- package/cjs/Tables/Table/index.js +46 -0
- package/cjs/Tables/index.d.ts +3 -0
- package/cjs/Tables/index.js +46 -0
- package/cjs/Tabs/ContentTabs.d.ts +4 -0
- package/cjs/Tabs/ContentTabs.js +96 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +91 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +54 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +111 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +60 -0
- package/cjs/Tabs/types.d.ts +35 -0
- package/cjs/Tabs/types.js +5 -0
- package/cjs/Tabs/utils.d.ts +2 -0
- package/cjs/Tabs/utils.js +24 -0
- package/cjs/Tag/Tag.d.ts +38 -0
- package/cjs/Tag/Tag.js +122 -0
- package/cjs/Tag/Tag.tailwind.d.ts +5 -0
- package/cjs/Tag/Tag.tailwind.js +39 -0
- package/cjs/Tag/index.d.ts +2 -0
- package/cjs/Tag/index.js +32 -0
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +43 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +42 -0
- package/{types/components → cjs}/TextArea/index.d.ts +0 -0
- package/cjs/TextArea/index.js +32 -0
- package/cjs/TextWrap/TextWrap.d.ts +7 -0
- package/cjs/TextWrap/TextWrap.js +70 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +32 -0
- package/cjs/Toggle/Toggle.d.ts +10 -0
- package/cjs/Toggle/Toggle.js +93 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +68 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +32 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +131 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +67 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +115 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +28 -0
- package/cjs/Tooltip/TooltipWrapper.js +219 -0
- package/{types/components → cjs}/Tooltip/index.d.ts +1 -0
- package/cjs/Tooltip/index.js +60 -0
- package/cjs/Tooltip/types.d.ts +14 -0
- package/cjs/Tooltip/types.js +5 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -0
- package/cjs/Typography/Typography.tailwind.js +176 -0
- package/cjs/UserContent/UserContent.d.ts +8 -0
- package/cjs/UserContent/UserContent.js +37 -0
- package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
- package/cjs/UserContent/UserContent.tailwind.js +150 -0
- package/cjs/index.d.ts +46 -0
- package/cjs/index.js +633 -0
- package/cjs/package.json +3 -0
- package/cjs/styles/base.tailwind.d.ts +5 -0
- package/cjs/styles/base.tailwind.js +41 -0
- package/cjs/styles/brandColors.d.ts +42 -0
- package/cjs/styles/brandColors.js +48 -0
- package/cjs/styles/colors.d.ts +81 -0
- package/cjs/styles/colors.js +87 -0
- package/cjs/styles/disabledColor.d.ts +6 -0
- package/cjs/styles/disabledColor.js +17 -0
- package/cjs/styles/helpers/icons.d.ts +15 -0
- package/cjs/styles/helpers/icons.js +45 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.js +62 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.js +44 -0
- package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
- package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/cjs/styles/helpers/satellitePrefixer.js +9 -0
- package/cjs/styles/rgba.d.ts +8 -0
- package/cjs/styles/rgba.js +17 -0
- package/cjs/styles/tailwind.config.d.ts +2 -0
- package/cjs/styles/tailwind.config.js +151 -0
- package/cjs/styles/zIndexes.d.ts +7 -0
- package/cjs/styles/zIndexes.js +13 -0
- package/cjs/types.d.ts +19 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/utilities.tailwind.d.ts +5 -0
- package/cjs/utilities/utilities.tailwind.js +30 -0
- package/cjs/utils/event-polyfill.d.ts +0 -0
- package/cjs/utils/event-polyfill.js +27 -0
- package/cjs/utils/formatters.d.ts +25 -0
- package/cjs/utils/formatters.js +51 -0
- package/cjs/utils/genericChangeHandler.d.ts +5 -0
- package/{utils → cjs/utils}/genericChangeHandler.js +1 -1
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +28 -0
- package/cjs/utils/index.d.ts +8 -0
- package/{utils → cjs/utils}/index.js +13 -13
- package/cjs/utils/isCssPropertySupported.d.ts +2 -0
- package/cjs/utils/isCssPropertySupported.js +19 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +31 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +18 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +17 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +49 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +25 -0
- package/{types → cjs}/utils/pluralize.d.ts +0 -0
- package/{utils → cjs/utils}/pluralize.js +7 -2
- package/{types → cjs}/utils/range.d.ts +0 -0
- package/{utils → cjs/utils}/range.js +1 -1
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +21 -0
- package/{types → cjs}/utils/uniqBy.d.ts +0 -0
- package/{utils → cjs/utils}/uniqBy.js +1 -1
- package/{types → cjs}/utils/uniqueId.d.ts +0 -0
- package/{utils → cjs/utils}/uniqueId.js +1 -1
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +31 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +67 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +30 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +47 -0
- package/esm/AnnouncementBadge/index.d.ts +2 -0
- package/esm/AnnouncementBadge/index.js +2 -0
- package/esm/AutoComplete/AutoComplete.d.ts +66 -0
- package/esm/AutoComplete/AutoComplete.js +655 -0
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/esm/AutoComplete/AutoComplete.tailwind.js +94 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +31 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +36 -0
- package/esm/AutoComplete/index.d.ts +5 -0
- package/esm/AutoComplete/index.js +5 -0
- package/esm/AutoComplete/types.d.ts +86 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +5 -0
- package/esm/AutoComplete/utils.js +43 -0
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +30 -0
- package/esm/Avatars/UserAvatar.d.ts +13 -0
- package/esm/Avatars/UserAvatar.js +55 -0
- package/esm/Avatars/index.d.ts +3 -0
- package/esm/Avatars/index.js +3 -0
- package/esm/Avatars/types.d.ts +17 -0
- package/esm/Avatars/types.js +1 -0
- package/esm/Avatars/utils.d.ts +6 -0
- package/esm/Avatars/utils.js +64 -0
- package/esm/Badge/Badge.d.ts +35 -0
- package/esm/Badge/Badge.js +82 -0
- package/esm/Badge/index.d.ts +2 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Banners/Alert/Alert.d.ts +74 -0
- package/esm/Banners/Alert/Alert.js +134 -0
- package/esm/Banners/Alert/index.d.ts +2 -0
- package/esm/Banners/Alert/index.js +2 -0
- package/esm/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/esm/Banners/BigBertha/BigBertha.js +57 -0
- package/esm/Banners/BigBertha/index.d.ts +2 -0
- package/esm/Banners/BigBertha/index.js +2 -0
- package/esm/Banners/Promote/Promote.d.ts +57 -0
- package/esm/Banners/Promote/Promote.js +104 -0
- package/esm/Banners/Promote/index.d.ts +2 -0
- package/esm/Banners/Promote/index.js +2 -0
- package/esm/Banners/index.d.ts +3 -0
- package/esm/Banners/index.js +3 -0
- package/esm/Button/Button.d.ts +21 -0
- package/esm/Button/Button.js +80 -0
- package/esm/Button/Button.tailwind.d.ts +5 -0
- package/esm/Button/Button.tailwind.js +155 -0
- package/esm/Button/ButtonGroup.d.ts +13 -0
- package/esm/Button/ButtonGroup.js +24 -0
- package/esm/Button/IconButton.d.ts +17 -0
- package/esm/Button/IconButton.js +80 -0
- package/esm/Button/index.d.ts +5 -0
- package/esm/Button/index.js +5 -0
- package/esm/Button/styles.d.ts +5 -0
- package/esm/Button/styles.js +31 -0
- package/esm/Button/types.d.ts +27 -0
- package/esm/Button/types.js +3 -0
- package/esm/Card/Card.d.ts +26 -0
- package/esm/Card/Card.js +39 -0
- package/esm/Card/Card.tailwind.d.ts +5 -0
- package/esm/Card/Card.tailwind.js +35 -0
- package/esm/Card/components/CardHeader.d.ts +4 -0
- package/esm/Card/components/CardHeader.js +24 -0
- package/esm/Card/components/CardTitle.d.ts +6 -0
- package/esm/Card/components/CardTitle.js +26 -0
- package/esm/Card/index.d.ts +4 -0
- package/esm/Card/index.js +4 -0
- package/esm/Checkbox/Checkbox.d.ts +24 -0
- package/esm/Checkbox/Checkbox.js +103 -0
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/esm/Checkbox/Checkbox.tailwind.js +65 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +2 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.js +78 -0
- package/esm/ClickAwayContainer/index.d.ts +1 -0
- package/esm/ClickAwayContainer/index.js +1 -0
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/esm/DatePicker/DatePicker/DatePicker.js +174 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.js +52 -0
- package/esm/DatePicker/DatePicker/index.d.ts +3 -0
- package/esm/DatePicker/DatePicker/index.js +3 -0
- package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/esm/DatePicker/DatePicker.tailwind.js +131 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +260 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +37 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +104 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
- package/esm/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/esm/DatePicker/DateRangePicker/index.js +4 -0
- package/esm/DatePicker/components/Calendar.d.ts +17 -0
- package/esm/DatePicker/components/Calendar.js +73 -0
- package/esm/DatePicker/components/Display.d.ts +10 -0
- package/esm/DatePicker/components/Display.js +19 -0
- package/esm/DatePicker/components/Footer.d.ts +6 -0
- package/esm/DatePicker/components/Footer.js +16 -0
- package/esm/DatePicker/components/FooterActions.d.ts +12 -0
- package/esm/DatePicker/components/FooterActions.js +30 -0
- package/esm/DatePicker/components/Modal.d.ts +16 -0
- package/esm/DatePicker/components/Modal.js +70 -0
- package/esm/DatePicker/components/NavBar.d.ts +16 -0
- package/esm/DatePicker/components/NavBar.js +77 -0
- package/esm/DatePicker/components/SidePanel.d.ts +6 -0
- package/esm/DatePicker/components/SidePanel.js +19 -0
- package/esm/DatePicker/components/index.d.ts +12 -0
- package/esm/DatePicker/components/index.js +6 -0
- package/esm/DatePicker/index.d.ts +5 -0
- package/esm/DatePicker/index.js +5 -0
- package/esm/DatePicker/types.d.ts +17 -0
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.d.ts +3 -0
- package/esm/DatePicker/utils.js +11 -0
- package/esm/Dropdown/Dropdown.d.ts +64 -0
- package/esm/Dropdown/Dropdown.js +138 -0
- package/esm/Dropdown/DropdownButton.d.ts +11 -0
- package/esm/Dropdown/DropdownButton.js +45 -0
- package/esm/Dropdown/DropdownContext.d.ts +7 -0
- package/esm/Dropdown/DropdownContext.js +12 -0
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +43 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +58 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +14 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +11 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +32 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +29 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
- package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/esm/Dropdown/components/DropdownDivider.js +12 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +28 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +14 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +46 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/esm/Dropdown/components/DropdownRadioItem.js +43 -0
- package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/esm/Dropdown/components/DropdownTitle.js +24 -0
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +45 -0
- package/esm/Dropdown/index.d.ts +13 -0
- package/esm/Dropdown/index.js +13 -0
- package/esm/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/esm/Dropdown/useDropdownItemProps.js +37 -0
- package/esm/Dropzone/Dropzone.d.ts +20 -0
- package/esm/Dropzone/Dropzone.js +169 -0
- package/esm/Dropzone/index.d.ts +2 -0
- package/esm/Dropzone/index.js +2 -0
- package/esm/EmptyState/EmptyState.d.ts +28 -0
- package/esm/EmptyState/EmptyState.js +121 -0
- package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/esm/EmptyState/EmptyState.tailwind.js +14 -0
- package/esm/EmptyState/index.d.ts +3 -0
- package/esm/EmptyState/index.js +3 -0
- package/esm/EmptyState/types.d.ts +65 -0
- package/esm/EmptyState/types.js +1 -0
- package/esm/Field/Field.d.ts +54 -0
- package/esm/Field/Field.js +88 -0
- package/esm/Field/FieldStateContext.d.ts +12 -0
- package/esm/Field/FieldStateContext.js +6 -0
- package/esm/Field/index.d.ts +4 -0
- package/esm/Field/index.js +4 -0
- package/esm/Field/useFieldState.d.ts +2 -0
- package/esm/Field/useFieldState.js +6 -0
- package/esm/Flag/Flag.d.ts +6 -0
- package/esm/Flag/Flag.js +115 -0
- package/esm/Flag/Flag.tailwind.d.ts +5 -0
- package/esm/Flag/Flag.tailwind.js +33 -0
- package/esm/Flag/Flags.d.ts +48 -0
- package/esm/Flag/Flags.js +87 -0
- package/esm/Flag/index.d.ts +4 -0
- package/esm/Flag/index.js +4 -0
- package/esm/Flag/types.d.ts +22 -0
- package/esm/Flag/types.js +1 -0
- package/esm/FlexGrid/FlexGrid.d.ts +17 -0
- package/esm/FlexGrid/FlexGrid.js +64 -0
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/esm/FlexGrid/FlexGrid.tailwind.js +74 -0
- package/esm/FlexGrid/index.d.ts +2 -0
- package/esm/FlexGrid/index.js +2 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/esm/HelpUnderline/HelpUnderline.js +27 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
- package/esm/HelpUnderline/index.d.ts +2 -0
- package/esm/HelpUnderline/index.js +2 -0
- package/esm/Input/Input.d.ts +26 -0
- package/esm/Input/Input.js +232 -0
- package/esm/Input/Input.tailwind.d.ts +5 -0
- package/esm/Input/Input.tailwind.js +100 -0
- package/esm/Input/index.d.ts +2 -0
- package/esm/Input/index.js +2 -0
- package/esm/Insert/Insert.d.ts +45 -0
- package/esm/Insert/Insert.js +75 -0
- package/esm/Insert/index.d.ts +2 -0
- package/esm/Insert/index.js +2 -0
- package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
- package/esm/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/esm/KeyboardKey/KeyboardKey.js +31 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
- package/esm/KeyboardKey/index.d.ts +2 -0
- package/esm/KeyboardKey/index.js +2 -0
- package/esm/Link/BaseLink.d.ts +4 -0
- package/esm/Link/BaseLink.js +26 -0
- package/esm/Link/ButtonLink.d.ts +5 -0
- package/esm/Link/ButtonLink.js +33 -0
- package/esm/Link/IconButtonLink.d.ts +6 -0
- package/esm/Link/IconButtonLink.js +25 -0
- package/esm/Link/Link.d.ts +11 -0
- package/esm/Link/Link.js +52 -0
- package/esm/Link/index.d.ts +5 -0
- package/esm/Link/index.js +5 -0
- package/esm/Medallion/Medallion.d.ts +11 -0
- package/esm/Medallion/Medallion.js +34 -0
- package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
- package/esm/Medallion/Medallion.tailwind.js +29 -0
- package/esm/Medallion/index.d.ts +3 -0
- package/esm/Medallion/index.js +3 -0
- package/esm/Medallion/types.d.ts +2 -0
- package/esm/Medallion/types.js +1 -0
- package/esm/Modal/Modal.d.ts +23 -0
- package/esm/Modal/Modal.js +166 -0
- package/esm/Modal/Modal.tailwind.d.ts +5 -0
- package/esm/Modal/Modal.tailwind.js +43 -0
- package/esm/Modal/components/ModalFooter.d.ts +6 -0
- package/esm/Modal/components/ModalFooter.js +31 -0
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +18 -0
- package/esm/Modal/index.d.ts +4 -0
- package/esm/Modal/index.js +4 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +80 -0
- package/esm/Pagination/CompactPagination/index.d.ts +2 -0
- package/esm/Pagination/CompactPagination/index.js +2 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +14 -0
- package/esm/Pagination/DotPagination/DotPagination.js +45 -0
- package/esm/Pagination/DotPagination/index.d.ts +2 -0
- package/esm/Pagination/DotPagination/index.js +2 -0
- package/esm/Pagination/Pagination/Pagination.d.ts +22 -0
- package/esm/Pagination/Pagination/Pagination.js +126 -0
- package/esm/Pagination/Pagination/index.d.ts +2 -0
- package/esm/Pagination/Pagination/index.js +2 -0
- package/esm/Pagination/index.d.ts +4 -0
- package/esm/Pagination/index.js +4 -0
- package/esm/ProgressBar/ProgressBar.d.ts +13 -0
- package/esm/ProgressBar/ProgressBar.js +44 -0
- package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/esm/ProgressBar/index.d.ts +2 -0
- package/esm/ProgressBar/index.js +2 -0
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/esm/ProgressSpinner/ProgressSpinner.js +50 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +35 -0
- package/esm/ProgressSpinner/index.d.ts +2 -0
- package/esm/ProgressSpinner/index.js +2 -0
- package/esm/RadioGroup/RadioButton.d.ts +4 -0
- package/esm/RadioGroup/RadioButton.js +28 -0
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/esm/RadioGroup/RadioButton.tailwind.js +56 -0
- package/esm/RadioGroup/RadioGroup.d.ts +40 -0
- package/esm/RadioGroup/RadioGroup.js +103 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/esm/RadioGroup/RadiogroupContext.js +11 -0
- package/esm/RadioGroup/index.d.ts +4 -0
- package/esm/RadioGroup/index.js +4 -0
- package/esm/RangeSlider/RangeSlider.d.ts +18 -0
- package/esm/RangeSlider/RangeSlider.js +113 -0
- package/esm/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
- package/esm/RangeSlider/RangeSlider.tailwind.js +73 -0
- package/esm/RangeSlider/index.d.ts +2 -0
- package/esm/RangeSlider/index.js +2 -0
- package/esm/Satellite/Satellite.d.ts +11 -0
- package/esm/Satellite/Satellite.js +19 -0
- package/esm/Satellite/SatelliteContext.d.ts +11 -0
- package/esm/Satellite/SatelliteContext.js +18 -0
- package/esm/Satellite/SatelliteRouter.d.ts +21 -0
- package/esm/Satellite/SatelliteRouter.js +42 -0
- package/esm/Satellite/index.d.ts +6 -0
- package/esm/Satellite/index.js +6 -0
- package/esm/Satellite/locale.d.ts +29 -0
- package/esm/Satellite/locale.js +8 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +16 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +92 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/esm/ScrollIndicator/index.d.ts +2 -0
- package/esm/ScrollIndicator/index.js +2 -0
- package/esm/Select/Select.d.ts +15 -0
- package/esm/Select/Select.js +42 -0
- package/esm/Select/Select.tailwind.d.ts +5 -0
- package/esm/Select/Select.tailwind.js +77 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +35 -0
- package/esm/Sidebar/Sidebar.js +60 -0
- package/esm/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/esm/Sidebar/SidebarButtonLink.js +92 -0
- package/esm/Sidebar/SidebarContext.d.ts +9 -0
- package/esm/Sidebar/SidebarContext.js +11 -0
- package/esm/Sidebar/SidebarHeader.d.ts +6 -0
- package/esm/Sidebar/SidebarHeader.js +15 -0
- package/esm/Sidebar/SidebarHeading.d.ts +7 -0
- package/esm/Sidebar/SidebarHeading.js +22 -0
- package/esm/Sidebar/SidebarLink.d.ts +8 -0
- package/esm/Sidebar/SidebarLink.js +42 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +32 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +25 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +100 -0
- package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
- package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
- package/esm/Sidebar/SidebarNav.d.ts +10 -0
- package/esm/Sidebar/SidebarNav.js +33 -0
- package/esm/Sidebar/index.d.ts +9 -0
- package/esm/Sidebar/index.js +9 -0
- package/esm/Sidebar/types.d.ts +6 -0
- package/esm/Sidebar/types.js +1 -0
- package/esm/Switch/Switch.d.ts +13 -0
- package/esm/Switch/Switch.js +87 -0
- package/esm/Switch/Switch.tailwind.d.ts +5 -0
- package/esm/Switch/Switch.tailwind.js +24 -0
- package/esm/Switch/SwitchOption.d.ts +8 -0
- package/esm/Switch/SwitchOption.js +41 -0
- package/esm/Switch/index.d.ts +3 -0
- package/esm/Switch/index.js +3 -0
- package/esm/Switch/types.d.ts +7 -0
- package/esm/Switch/types.js +1 -0
- package/esm/Switch/utils.d.ts +6 -0
- package/esm/Switch/utils.js +11 -0
- package/esm/Tables/DataTable/DataTable.d.ts +60 -0
- package/esm/Tables/DataTable/DataTable.js +274 -0
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/esm/Tables/DataTable/DataTable.tailwind.js +21 -0
- package/esm/Tables/DataTable/components/Body.d.ts +15 -0
- package/esm/Tables/DataTable/components/Body.js +121 -0
- package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
- package/esm/Tables/DataTable/components/Footer.js +60 -0
- package/esm/Tables/DataTable/components/Header.d.ts +10 -0
- package/esm/Tables/DataTable/components/Header.js +33 -0
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/esm/Tables/DataTable/components/HeaderCell.js +59 -0
- package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
- package/esm/Tables/DataTable/components/Loader.js +44 -0
- package/esm/Tables/DataTable/components/index.d.ts +5 -0
- package/esm/Tables/DataTable/components/index.js +5 -0
- package/esm/Tables/DataTable/index.d.ts +3 -0
- package/esm/Tables/DataTable/index.js +3 -0
- package/esm/Tables/DataTable/types.d.ts +49 -0
- package/esm/Tables/DataTable/types.js +1 -0
- package/esm/Tables/DataTable/utils.d.ts +4 -0
- package/esm/Tables/DataTable/utils.js +14 -0
- package/esm/Tables/Table/Table.d.ts +28 -0
- package/esm/Tables/Table/Table.js +61 -0
- package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
- package/esm/Tables/Table/Table.tailwind.js +38 -0
- package/esm/Tables/Table/components/TableFooter.d.ts +8 -0
- package/esm/Tables/Table/components/TableFooter.js +21 -0
- package/esm/Tables/Table/index.d.ts +3 -0
- package/esm/Tables/Table/index.js +3 -0
- package/esm/Tables/index.d.ts +3 -0
- package/esm/Tables/index.js +3 -0
- package/esm/Tabs/ContentTabs.d.ts +4 -0
- package/esm/Tabs/ContentTabs.js +77 -0
- package/esm/Tabs/LinkTabs.d.ts +33 -0
- package/esm/Tabs/LinkTabs.js +70 -0
- package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
- package/esm/Tabs/Tabs.tailwind.js +52 -0
- package/esm/Tabs/components/LinkTab.d.ts +9 -0
- package/esm/Tabs/components/LinkTab.js +94 -0
- package/esm/Tabs/index.d.ts +4 -0
- package/esm/Tabs/index.js +4 -0
- package/esm/Tabs/types.d.ts +35 -0
- package/esm/Tabs/types.js +1 -0
- package/esm/Tabs/utils.d.ts +2 -0
- package/esm/Tabs/utils.js +13 -0
- package/esm/Tag/Tag.d.ts +38 -0
- package/esm/Tag/Tag.js +104 -0
- package/esm/Tag/Tag.tailwind.d.ts +5 -0
- package/esm/Tag/Tag.tailwind.js +37 -0
- package/esm/Tag/index.d.ts +2 -0
- package/esm/Tag/index.js +2 -0
- package/esm/TextArea/TextArea.d.ts +5 -0
- package/esm/TextArea/TextArea.js +27 -0
- package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
- package/esm/TextArea/TextArea.tailwind.js +40 -0
- package/esm/TextArea/index.d.ts +2 -0
- package/esm/TextArea/index.js +2 -0
- package/esm/TextWrap/TextWrap.d.ts +7 -0
- package/esm/TextWrap/TextWrap.js +55 -0
- package/esm/TextWrap/index.d.ts +2 -0
- package/esm/TextWrap/index.js +2 -0
- package/esm/Toggle/Toggle.d.ts +10 -0
- package/esm/Toggle/Toggle.js +77 -0
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
- package/esm/Toggle/Toggle.tailwind.js +66 -0
- package/esm/Toggle/index.d.ts +2 -0
- package/esm/Toggle/index.js +2 -0
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +107 -0
- package/esm/Tooltip/Tooltip.d.ts +24 -0
- package/esm/Tooltip/Tooltip.js +50 -0
- package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/esm/Tooltip/Tooltip.tailwind.js +113 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +28 -0
- package/esm/Tooltip/TooltipWrapper.js +196 -0
- package/esm/Tooltip/index.d.ts +4 -0
- package/esm/Tooltip/index.js +4 -0
- package/esm/Tooltip/types.d.ts +14 -0
- package/esm/Tooltip/types.js +1 -0
- package/esm/Typography/Typography.tailwind.d.ts +5 -0
- package/esm/Typography/Typography.tailwind.js +172 -0
- package/esm/UserContent/UserContent.d.ts +8 -0
- package/esm/UserContent/UserContent.js +21 -0
- package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
- package/esm/UserContent/UserContent.tailwind.js +146 -0
- package/esm/index.d.ts +46 -0
- package/esm/index.js +46 -0
- package/esm/styles/base.tailwind.d.ts +5 -0
- package/esm/styles/base.tailwind.js +39 -0
- package/esm/styles/brandColors.d.ts +42 -0
- package/esm/styles/brandColors.js +46 -0
- package/esm/styles/colors.d.ts +81 -0
- package/esm/styles/colors.js +85 -0
- package/esm/styles/disabledColor.d.ts +6 -0
- package/esm/styles/disabledColor.js +15 -0
- package/esm/styles/helpers/icons.d.ts +15 -0
- package/esm/styles/helpers/icons.js +43 -0
- package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/esm/styles/helpers/makePurgeCssExtractor.js +60 -0
- package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/esm/styles/helpers/makeTailwindPrefixer.js +39 -0
- package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
- package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/esm/styles/helpers/satellitePrefixer.js +7 -0
- package/esm/styles/rgba.d.ts +8 -0
- package/esm/styles/rgba.js +15 -0
- package/esm/styles/tailwind.config.d.ts +2 -0
- package/esm/styles/tailwind.config.js +147 -0
- package/esm/styles/zIndexes.d.ts +7 -0
- package/esm/styles/zIndexes.js +11 -0
- package/esm/types.d.ts +19 -0
- package/esm/types.js +1 -0
- package/esm/utilities/utilities.tailwind.d.ts +5 -0
- package/esm/utilities/utilities.tailwind.js +25 -0
- package/esm/utils/event-polyfill.d.ts +0 -0
- package/esm/utils/event-polyfill.js +25 -0
- package/esm/utils/formatters.d.ts +25 -0
- package/esm/utils/formatters.js +40 -0
- package/esm/utils/genericChangeHandler.d.ts +5 -0
- package/esm/utils/genericChangeHandler.js +20 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +18 -0
- package/esm/utils/index.d.ts +8 -0
- package/{types/utils/index.d.ts → esm/utils/index.js} +2 -2
- package/esm/utils/isCssPropertySupported.d.ts +2 -0
- package/esm/utils/isCssPropertySupported.js +11 -0
- package/esm/utils/isNil.d.ts +19 -0
- package/esm/utils/isNil.js +21 -0
- package/esm/utils/isRenderedChild.d.ts +8 -0
- package/esm/utils/isRenderedChild.js +10 -0
- package/esm/utils/matchLocation.d.ts +3 -0
- package/esm/utils/matchLocation.js +7 -0
- package/esm/utils/onlyText.d.ts +3 -0
- package/esm/utils/onlyText.js +41 -0
- package/esm/utils/parseUrl.d.ts +11 -0
- package/esm/utils/parseUrl.js +15 -0
- package/esm/utils/pluralize.d.ts +6 -0
- package/esm/utils/pluralize.js +19 -0
- package/esm/utils/range.d.ts +2 -0
- package/esm/utils/range.js +7 -0
- package/esm/utils/toSentenceCase.d.ts +3 -0
- package/esm/utils/toSentenceCase.js +9 -0
- package/esm/utils/uniqBy.d.ts +2 -0
- package/esm/utils/uniqBy.js +15 -0
- package/esm/utils/uniqueId.d.ts +2 -0
- package/esm/utils/uniqueId.js +7 -0
- package/esm/utils/useForwardedRef.d.ts +3 -0
- package/esm/utils/useForwardedRef.js +20 -0
- package/esm/utils/useLinkProps.d.ts +7 -0
- package/esm/utils/useLinkProps.js +52 -0
- package/esm/utils/useTriggerInputChange.d.ts +8 -0
- package/esm/utils/useTriggerInputChange.js +22 -0
- package/package.json +76 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +113 -0
- package/scss/variables.scss +7 -0
- package/algolia-satellite-1.0.0-beta.14.tgz +0 -0
- package/components/Alert/Alert.js +0 -49
- package/components/AutoComplete/AutoComplete.js +0 -512
- package/components/AutoComplete/index.js +0 -27
- package/components/AutoComplete/types.js +0 -1
- package/components/Button/Button.js +0 -59
- package/components/Button/LinkButton.js +0 -52
- package/components/Button/index.js +0 -40
- package/components/Card/Card.js +0 -71
- package/components/Card/components/CardHeader.js +0 -25
- package/components/Card/components/CardTitle.js +0 -30
- package/components/Card/index.js +0 -19
- package/components/Checkbox/Checkbox.js +0 -66
- package/components/Checkbox/index.js +0 -27
- package/components/Chip/Chip.js +0 -77
- package/components/Chip/index.js +0 -21
- package/components/Dropdown/Dropdown.js +0 -163
- package/components/Dropdown/DropdownButton.js +0 -117
- package/components/Dropdown/components/DropdownDivider.js +0 -24
- package/components/Dropdown/components/DropdownItem.js +0 -46
- package/components/Dropdown/components/DropdownTitle.js +0 -34
- package/components/Dropdown/index.js +0 -29
- package/components/HelpUnderline/HelpUnderline.js +0 -39
- package/components/HelpUnderline/index.js +0 -27
- package/components/Input/Input.js +0 -134
- package/components/Input/index.js +0 -27
- package/components/LoaderIcon/LoaderIcon.js +0 -65
- package/components/LoaderIcon/index.js +0 -27
- package/components/MaterialIcon/MaterialIcon.js +0 -48
- package/components/MaterialIcon/index.js +0 -27
- package/components/Modal/Modal.js +0 -207
- package/components/Modal/components/ModalFooter.js +0 -34
- package/components/Modal/components/ModalSection.js +0 -38
- package/components/Modal/index.js +0 -21
- package/components/Pagination/Pagination.js +0 -131
- package/components/Pagination/index.js +0 -27
- package/components/RadioGroup/RadioButton.js +0 -35
- package/components/RadioGroup/RadioGroup.js +0 -140
- package/components/RadioGroup/index.js +0 -29
- package/components/ScrollIndicator/ScrollIndicator.js +0 -165
- package/components/ScrollIndicator/index.js +0 -21
- package/components/Select/Select.js +0 -40
- package/components/Select/index.js +0 -27
- package/components/Table/Table.js +0 -36
- package/components/Table/index.js +0 -19
- package/components/TextArea/TextArea.js +0 -34
- package/components/TextArea/index.js +0 -27
- package/components/Tooltip/Tooltip.js +0 -29
- package/components/Tooltip/TooltipWrapper.js +0 -164
- package/components/Tooltip/index.js +0 -40
- package/index.js +0 -173
- package/satellite.css +0 -32
- package/satellite.css.map +0 -1
- package/styles/_colors.scss +0 -147
- package/styles/_mixins.scss +0 -72
- package/styles/_variables.scss +0 -71
- package/types/components/Alert/Alert.d.ts +0 -9
- package/types/components/AutoComplete/AutoComplete.d.ts +0 -66
- package/types/components/AutoComplete/index.d.ts +0 -2
- package/types/components/AutoComplete/types.d.ts +0 -21
- package/types/components/AutoComplete/utils.d.ts +0 -3
- package/types/components/Button/Button.d.ts +0 -13
- package/types/components/Button/LinkButton.d.ts +0 -9
- package/types/components/Button/index.d.ts +0 -3
- package/types/components/Card/Card.d.ts +0 -13
- package/types/components/Card/components/CardHeader.d.ts +0 -3
- package/types/components/Card/components/CardTitle.d.ts +0 -7
- package/types/components/Card/index.d.ts +0 -3
- package/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/types/components/Chip/Chip.d.ts +0 -9
- package/types/components/Chip/index.d.ts +0 -2
- package/types/components/Dropdown/Dropdown.d.ts +0 -27
- package/types/components/Dropdown/DropdownButton.d.ts +0 -12
- package/types/components/Dropdown/components/DropdownDivider.d.ts +0 -6
- package/types/components/Dropdown/components/DropdownItem.d.ts +0 -10
- package/types/components/Dropdown/components/DropdownTitle.d.ts +0 -4
- package/types/components/Dropdown/index.d.ts +0 -3
- package/types/components/HelpUnderline/HelpUnderline.d.ts +0 -10
- package/types/components/Input/Input.d.ts +0 -25
- package/types/components/LoaderIcon/LoaderIcon.d.ts +0 -7
- package/types/components/LoaderIcon/index.d.ts +0 -2
- package/types/components/MaterialIcon/MaterialIcon.d.ts +0 -12
- package/types/components/MaterialIcon/index.d.ts +0 -2
- package/types/components/Modal/Modal.d.ts +0 -30
- package/types/components/Modal/components/ModalFooter.d.ts +0 -4
- package/types/components/Modal/components/ModalSection.d.ts +0 -6
- package/types/components/Modal/index.d.ts +0 -2
- package/types/components/Pagination/Pagination.d.ts +0 -12
- package/types/components/RadioGroup/RadioButton.d.ts +0 -4
- package/types/components/RadioGroup/RadioGroup.d.ts +0 -20
- package/types/components/RadioGroup/index.d.ts +0 -3
- package/types/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
- package/types/components/ScrollIndicator/index.d.ts +0 -2
- package/types/components/Select/Select.d.ts +0 -6
- package/types/components/Table/Table.d.ts +0 -6
- package/types/components/Table/index.d.ts +0 -3
- package/types/components/TextArea/TextArea.d.ts +0 -5
- package/types/components/Tooltip/Tooltip.d.ts +0 -5
- package/types/components/Tooltip/TooltipWrapper.d.ts +0 -32
- package/types/index.d.ts +0 -19
- package/types/utils/clamp.d.ts +0 -2
- package/types/utils/genericChangeHandler.d.ts +0 -5
- package/types/utils/omit.d.ts +0 -2
- package/utils/clamp.js +0 -20
- package/utils/omit.js +0 -25
@@ -0,0 +1,282 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
11
|
+
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
13
|
+
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
15
|
+
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
17
|
+
|
18
|
+
var _react = require("react");
|
19
|
+
|
20
|
+
var _Satellite = require("../../Satellite");
|
21
|
+
|
22
|
+
var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
|
23
|
+
|
24
|
+
var _Calendar = _interopRequireDefault(require("../components/Calendar"));
|
25
|
+
|
26
|
+
var _Footer = _interopRequireDefault(require("../components/Footer"));
|
27
|
+
|
28
|
+
var _FooterActions = _interopRequireDefault(require("../components/FooterActions"));
|
29
|
+
|
30
|
+
var _Modal = _interopRequireDefault(require("../components/Modal"));
|
31
|
+
|
32
|
+
var _SidePanel = _interopRequireDefault(require("../components/SidePanel"));
|
33
|
+
|
34
|
+
var _utils = require("../utils");
|
35
|
+
|
36
|
+
var _DateRangePickerDisplay = _interopRequireDefault(require("./DateRangePickerDisplay"));
|
37
|
+
|
38
|
+
var _dateRangePickerReducer = require("./dateRangePickerReducer");
|
39
|
+
|
40
|
+
var _dateRangePickerTimeRange = require("./dateRangePickerTimeRange");
|
41
|
+
|
42
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
43
|
+
|
44
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
45
|
+
|
46
|
+
var _excluded = ["id", "range", "displayOnlyRanges", "calendarProps", "initialState", "stateReducer", "onAction", "validate", "renderTarget", "renderLeftFooter", "renderRightPanel", "buttonSize", "modalPlacement", "locale"];
|
47
|
+
|
48
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
49
|
+
|
50
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
51
|
+
|
52
|
+
var defaultValidator = function defaultValidator(_ref) {
|
53
|
+
var candidateRange = _ref.candidateRange;
|
54
|
+
return (0, _dateRangePickerTimeRange.isCompleteTimeRange)(candidateRange) ? null : [new Error("Invalid time range")];
|
55
|
+
};
|
56
|
+
|
57
|
+
var DEFAULT_DATE_RANGE_PICKER_LOCALE = _objectSpread(_objectSpread({}, _utils.DEFAULT_DATE_PICKER_LOCALE), {}, {
|
58
|
+
openButton: "Enter a date period..."
|
59
|
+
});
|
60
|
+
|
61
|
+
var DateRangePicker = function DateRangePicker(_ref2) {
|
62
|
+
var _validate, _displayedRange$start, _displayedRange$start2, _displayedRange$end, _displayOnlyRanges$ma, _state$hovered;
|
63
|
+
|
64
|
+
var id = _ref2.id,
|
65
|
+
range = _ref2.range,
|
66
|
+
displayOnlyRanges = _ref2.displayOnlyRanges,
|
67
|
+
_ref2$calendarProps = _ref2.calendarProps,
|
68
|
+
calendarProps = _ref2$calendarProps === void 0 ? {} : _ref2$calendarProps,
|
69
|
+
_ref2$initialState = _ref2.initialState,
|
70
|
+
initialState = _ref2$initialState === void 0 ? {} : _ref2$initialState,
|
71
|
+
_ref2$stateReducer = _ref2.stateReducer,
|
72
|
+
stateReducer = _ref2$stateReducer === void 0 ? _dateRangePickerReducer.dateRangePickerReducer : _ref2$stateReducer,
|
73
|
+
onAction = _ref2.onAction,
|
74
|
+
_ref2$validate = _ref2.validate,
|
75
|
+
validate = _ref2$validate === void 0 ? defaultValidator : _ref2$validate,
|
76
|
+
renderTarget = _ref2.renderTarget,
|
77
|
+
renderLeftFooter = _ref2.renderLeftFooter,
|
78
|
+
renderRightPanel = _ref2.renderRightPanel,
|
79
|
+
buttonSize = _ref2.buttonSize,
|
80
|
+
modalPlacement = _ref2.modalPlacement,
|
81
|
+
propsLocale = _ref2.locale,
|
82
|
+
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
83
|
+
var contextLocale = (0, _Satellite.useLocale)("datePicker");
|
84
|
+
|
85
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_DATE_RANGE_PICKER_LOCALE), contextLocale), propsLocale);
|
86
|
+
|
87
|
+
var _useState = (0, _react.useState)(null),
|
88
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
89
|
+
targetElement = _useState2[0],
|
90
|
+
setTargetElement = _useState2[1];
|
91
|
+
|
92
|
+
var _useReducer = (0, _react.useReducer)(function (state, action) {
|
93
|
+
return stateReducer(state, action, _dateRangePickerReducer.dateRangePickerReducer);
|
94
|
+
}, initialState, _dateRangePickerReducer.initDateRangePickerReducer),
|
95
|
+
_useReducer2 = (0, _slicedToArray2["default"])(_useReducer, 2),
|
96
|
+
state = _useReducer2[0],
|
97
|
+
baseDispatch = _useReducer2[1]; // Computed properties
|
98
|
+
|
99
|
+
|
100
|
+
var isValid = !((_validate = validate(state)) !== null && _validate !== void 0 && _validate.length);
|
101
|
+
var displayedRange = (0, _dateRangePickerTimeRange.isEmptyTimeRange)(state.candidateRange) ? range !== null && range !== void 0 ? range : {
|
102
|
+
start: null,
|
103
|
+
end: null
|
104
|
+
} : state.candidateRange; // Event handlers
|
105
|
+
|
106
|
+
var dispatch = function dispatch(action) {
|
107
|
+
onAction === null || onAction === void 0 ? void 0 : onAction(action, state);
|
108
|
+
baseDispatch(action);
|
109
|
+
};
|
110
|
+
|
111
|
+
var handleOpen = function handleOpen() {
|
112
|
+
dispatch({
|
113
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.show,
|
114
|
+
payload: true
|
115
|
+
});
|
116
|
+
};
|
117
|
+
|
118
|
+
var handleClose = function handleClose() {
|
119
|
+
dispatch({
|
120
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.show,
|
121
|
+
payload: false
|
122
|
+
});
|
123
|
+
};
|
124
|
+
|
125
|
+
var handleCancel = function handleCancel() {
|
126
|
+
dispatch({
|
127
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.cancel
|
128
|
+
});
|
129
|
+
};
|
130
|
+
|
131
|
+
var handleApply = function handleApply() {
|
132
|
+
dispatch({
|
133
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.apply
|
134
|
+
});
|
135
|
+
};
|
136
|
+
|
137
|
+
var handleMouseEnter = function handleMouseEnter(payload, _a, event) {
|
138
|
+
dispatch({
|
139
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.mouseDayEnter,
|
140
|
+
payload: payload,
|
141
|
+
meta: {
|
142
|
+
event: event
|
143
|
+
}
|
144
|
+
});
|
145
|
+
};
|
146
|
+
|
147
|
+
var handleMouseLeave = function handleMouseLeave(_a, _b, event) {
|
148
|
+
dispatch({
|
149
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.mouseDayLeave,
|
150
|
+
meta: {
|
151
|
+
event: event
|
152
|
+
}
|
153
|
+
});
|
154
|
+
};
|
155
|
+
|
156
|
+
var handleDayClick = function handleDayClick(payload, modifiers) {
|
157
|
+
if (!modifiers.disabled) {
|
158
|
+
dispatch({
|
159
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.dateSelect,
|
160
|
+
payload: payload
|
161
|
+
});
|
162
|
+
}
|
163
|
+
};
|
164
|
+
|
165
|
+
var selectedDays = [displayedRange.start && displayedRange.end ? {
|
166
|
+
from: displayedRange.start,
|
167
|
+
to: displayedRange.end
|
168
|
+
} : displayedRange.start && state.hovered ? {
|
169
|
+
from: displayedRange.start,
|
170
|
+
to: state.hovered
|
171
|
+
} : (_displayedRange$start = displayedRange.start) !== null && _displayedRange$start !== void 0 ? _displayedRange$start : undefined];
|
172
|
+
var modifiers = {
|
173
|
+
start: (_displayedRange$start2 = displayedRange.start) !== null && _displayedRange$start2 !== void 0 ? _displayedRange$start2 : undefined,
|
174
|
+
end: (_displayedRange$end = displayedRange.end) !== null && _displayedRange$end !== void 0 ? _displayedRange$end : undefined,
|
175
|
+
displayedRanges: (_displayOnlyRanges$ma = displayOnlyRanges === null || displayOnlyRanges === void 0 ? void 0 : displayOnlyRanges.map(function (range) {
|
176
|
+
return !range.start || !range.end ? undefined : {
|
177
|
+
from: range.start,
|
178
|
+
to: range.end
|
179
|
+
};
|
180
|
+
})) !== null && _displayOnlyRanges$ma !== void 0 ? _displayOnlyRanges$ma : undefined,
|
181
|
+
displayedRangesStart: displayOnlyRanges === null || displayOnlyRanges === void 0 ? void 0 : displayOnlyRanges.map(function (range) {
|
182
|
+
var _range$start;
|
183
|
+
|
184
|
+
return (_range$start = range.start) !== null && _range$start !== void 0 ? _range$start : undefined;
|
185
|
+
}),
|
186
|
+
displayedRangesEnd: displayOnlyRanges === null || displayOnlyRanges === void 0 ? void 0 : displayOnlyRanges.map(function (range) {
|
187
|
+
var _range$end;
|
188
|
+
|
189
|
+
return (_range$end = range.end) !== null && _range$end !== void 0 ? _range$end : undefined;
|
190
|
+
}),
|
191
|
+
hoveredTo: (_state$hovered = state.hovered) !== null && _state$hovered !== void 0 ? _state$hovered : undefined
|
192
|
+
};
|
193
|
+
var yearProps = (0, _react.useMemo)(function () {
|
194
|
+
var _ref3, _displayedRange$start3;
|
195
|
+
|
196
|
+
return props.editableYear ? {
|
197
|
+
editableYear: true,
|
198
|
+
initialDate: (_ref3 = (_displayedRange$start3 = displayedRange.start) !== null && _displayedRange$start3 !== void 0 ? _displayedRange$start3 : displayedRange.end) !== null && _ref3 !== void 0 ? _ref3 : undefined,
|
199
|
+
years: props.years
|
200
|
+
} : {
|
201
|
+
editableYear: false
|
202
|
+
};
|
203
|
+
}, [props, displayedRange]);
|
204
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
205
|
+
className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["date-range-picker"]))),
|
206
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
207
|
+
ref: setTargetElement,
|
208
|
+
className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["inline-block"]))),
|
209
|
+
children: renderTarget ? renderTarget({
|
210
|
+
toggle: state.show ? handleClose : handleOpen,
|
211
|
+
isOpen: state.show
|
212
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateRangePickerDisplay["default"], {
|
213
|
+
id: id,
|
214
|
+
onClick: state.show ? handleClose : handleOpen,
|
215
|
+
range: range !== null && range !== void 0 ? range : {
|
216
|
+
start: null,
|
217
|
+
end: null
|
218
|
+
},
|
219
|
+
buttonSize: buttonSize,
|
220
|
+
locale: locale
|
221
|
+
})
|
222
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal["default"], {
|
223
|
+
className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["date-range-picker"]))),
|
224
|
+
show: state.show,
|
225
|
+
onClickAway: function onClickAway(evt) {
|
226
|
+
if (!(targetElement !== null && targetElement !== void 0 && targetElement.contains(evt.target))) {
|
227
|
+
dispatch({
|
228
|
+
type: _dateRangePickerReducer.DateRangePickerActionTypes.show,
|
229
|
+
payload: false
|
230
|
+
});
|
231
|
+
}
|
232
|
+
},
|
233
|
+
targetElement: targetElement,
|
234
|
+
placement: modalPlacement,
|
235
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
236
|
+
className: (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["flex"]))),
|
237
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
238
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Calendar["default"], _objectSpread(_objectSpread(_objectSpread({
|
239
|
+
numberOfMonths: 2
|
240
|
+
}, calendarProps), {}, {
|
241
|
+
selectedDays: selectedDays,
|
242
|
+
modifiers: modifiers,
|
243
|
+
onDayClick: handleDayClick,
|
244
|
+
onDayMouseEnter: handleMouseEnter,
|
245
|
+
onDayMouseLeave: handleMouseLeave
|
246
|
+
}, yearProps), {}, {
|
247
|
+
locale: locale
|
248
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Footer["default"], {
|
249
|
+
children: [renderLeftFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
250
|
+
children: renderLeftFooter({
|
251
|
+
state: state,
|
252
|
+
dispatch: dispatch
|
253
|
+
})
|
254
|
+
}), !renderRightPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FooterActions["default"], {
|
255
|
+
onCancel: handleCancel,
|
256
|
+
onApply: handleApply,
|
257
|
+
disableApply: !isValid,
|
258
|
+
locale: locale
|
259
|
+
})]
|
260
|
+
})]
|
261
|
+
}), renderRightPanel && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
262
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
263
|
+
className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["h-full w-px bg-red-800"])))
|
264
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SidePanel["default"], {
|
265
|
+
children: [renderRightPanel({
|
266
|
+
state: state,
|
267
|
+
dispatch: dispatch
|
268
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FooterActions["default"], {
|
269
|
+
onCancel: handleCancel,
|
270
|
+
onApply: handleApply,
|
271
|
+
disableApply: !isValid,
|
272
|
+
locale: locale
|
273
|
+
})]
|
274
|
+
})]
|
275
|
+
})]
|
276
|
+
})
|
277
|
+
})]
|
278
|
+
});
|
279
|
+
};
|
280
|
+
|
281
|
+
var _default = DateRangePicker;
|
282
|
+
exports["default"] = _default;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { FunctionComponent } from "react";
|
2
|
+
import type { WithRequiredProperty } from "../../types";
|
3
|
+
import { DisplayProps } from "../components/Display";
|
4
|
+
import type { DatePickerLocale } from "../types";
|
5
|
+
import { DateRangePickerTimeRange } from "./dateRangePickerTimeRange";
|
6
|
+
export interface DateRangePickerDisplayProps {
|
7
|
+
id?: string;
|
8
|
+
onClick: DisplayProps["onClick"];
|
9
|
+
range: DateRangePickerTimeRange;
|
10
|
+
buttonSize?: DisplayProps["size"];
|
11
|
+
locale: WithRequiredProperty<DatePickerLocale, "openButton">;
|
12
|
+
}
|
13
|
+
declare const DateRangePickerDisplay: FunctionComponent<DateRangePickerDisplayProps>;
|
14
|
+
export default DateRangePickerDisplay;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
11
|
+
|
12
|
+
var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
|
13
|
+
|
14
|
+
var _Display = _interopRequireDefault(require("../components/Display"));
|
15
|
+
|
16
|
+
var _utils = require("../utils");
|
17
|
+
|
18
|
+
var _dateRangePickerTimeRange = require("./dateRangePickerTimeRange");
|
19
|
+
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
21
|
+
|
22
|
+
var _templateObject;
|
23
|
+
|
24
|
+
var DateRangePickerDisplay = function DateRangePickerDisplay(_ref) {
|
25
|
+
var id = _ref.id,
|
26
|
+
onClick = _ref.onClick,
|
27
|
+
range = _ref.range,
|
28
|
+
buttonSize = _ref.buttonSize,
|
29
|
+
locale = _ref.locale;
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Display["default"], {
|
31
|
+
id: id,
|
32
|
+
onClick: onClick,
|
33
|
+
size: buttonSize,
|
34
|
+
children: (0, _dateRangePickerTimeRange.isCompleteTimeRange)(range) ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
35
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("time", {
|
36
|
+
dateTime: range.start.toISOString(),
|
37
|
+
children: (0, _utils.formatDate)(range.start)
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
39
|
+
className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n relative inline-block\n top-px w-px h-3 m-1 mb-0\n bg-grey-200\n "])))
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("time", {
|
41
|
+
dateTime: range.end.toISOString(),
|
42
|
+
children: (0, _utils.formatDate)(range.end)
|
43
|
+
})]
|
44
|
+
}) : locale.openButton
|
45
|
+
});
|
46
|
+
};
|
47
|
+
|
48
|
+
var _default = DateRangePickerDisplay;
|
49
|
+
exports["default"] = _default;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import type { MouseEvent, Reducer } from "react";
|
2
|
+
import { DateRangePickerCompleteTimeRange, DateRangePickerTimeRange } from "./dateRangePickerTimeRange";
|
3
|
+
export declare enum DateRangePickerActionTypes {
|
4
|
+
show = "show",
|
5
|
+
dateSelect = "date select",
|
6
|
+
rangeSelect = "range select",
|
7
|
+
mouseDayEnter = "mouse day enter",
|
8
|
+
mouseDayLeave = "mouse day leave",
|
9
|
+
apply = "apply",
|
10
|
+
cancel = "cancel",
|
11
|
+
reset = "reset"
|
12
|
+
}
|
13
|
+
export interface DateRangePickerShowAction {
|
14
|
+
type: DateRangePickerActionTypes.show;
|
15
|
+
payload: boolean;
|
16
|
+
}
|
17
|
+
export interface DateRangePickerDateSelectAction {
|
18
|
+
type: DateRangePickerActionTypes.dateSelect;
|
19
|
+
payload: Date;
|
20
|
+
}
|
21
|
+
export interface DateRangePickerRangeSelectAction {
|
22
|
+
type: DateRangePickerActionTypes.rangeSelect;
|
23
|
+
payload: DateRangePickerCompleteTimeRange;
|
24
|
+
}
|
25
|
+
export interface DateRangePickerMouseEnterAction {
|
26
|
+
type: DateRangePickerActionTypes.mouseDayEnter;
|
27
|
+
payload: Date;
|
28
|
+
meta: {
|
29
|
+
event: MouseEvent<HTMLDivElement>;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
export interface DateRangePickerMouseLeaveAction {
|
33
|
+
type: DateRangePickerActionTypes.mouseDayLeave;
|
34
|
+
meta: {
|
35
|
+
event: MouseEvent<HTMLDivElement>;
|
36
|
+
};
|
37
|
+
}
|
38
|
+
export interface DateRangePickerApplyAction {
|
39
|
+
type: DateRangePickerActionTypes.apply;
|
40
|
+
}
|
41
|
+
export interface DateRangePickerCancelAction {
|
42
|
+
type: DateRangePickerActionTypes.cancel;
|
43
|
+
}
|
44
|
+
export interface DateRangePickerResetAction {
|
45
|
+
type: DateRangePickerActionTypes.reset;
|
46
|
+
}
|
47
|
+
export declare type DateRangePickerReducerAction = DateRangePickerShowAction | DateRangePickerDateSelectAction | DateRangePickerRangeSelectAction | DateRangePickerMouseEnterAction | DateRangePickerMouseLeaveAction | DateRangePickerApplyAction | DateRangePickerCancelAction | DateRangePickerResetAction;
|
48
|
+
export interface DateRangePickerReducerState {
|
49
|
+
show: boolean;
|
50
|
+
candidateRange: DateRangePickerTimeRange;
|
51
|
+
hovered: Date | null;
|
52
|
+
}
|
53
|
+
export declare const initDateRangePickerReducer: (state: Partial<DateRangePickerReducerState>) => DateRangePickerReducerState;
|
54
|
+
export declare const dateRangePickerReducer: Reducer<DateRangePickerReducerState, DateRangePickerReducerAction>;
|
@@ -0,0 +1,126 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.initDateRangePickerReducer = exports.dateRangePickerReducer = exports.DateRangePickerActionTypes = void 0;
|
9
|
+
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
11
|
+
|
12
|
+
var _endOfDay = _interopRequireDefault(require("date-fns/endOfDay"));
|
13
|
+
|
14
|
+
var _isAfter = _interopRequireDefault(require("date-fns/isAfter"));
|
15
|
+
|
16
|
+
var _isBefore = _interopRequireDefault(require("date-fns/isBefore"));
|
17
|
+
|
18
|
+
var _isSameDay = _interopRequireDefault(require("date-fns/isSameDay"));
|
19
|
+
|
20
|
+
var _startOfDay = _interopRequireDefault(require("date-fns/startOfDay"));
|
21
|
+
|
22
|
+
var _dateRangePickerTimeRange = require("./dateRangePickerTimeRange");
|
23
|
+
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
25
|
+
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
27
|
+
|
28
|
+
var DateRangePickerActionTypes;
|
29
|
+
exports.DateRangePickerActionTypes = DateRangePickerActionTypes;
|
30
|
+
|
31
|
+
(function (DateRangePickerActionTypes) {
|
32
|
+
DateRangePickerActionTypes["show"] = "show";
|
33
|
+
DateRangePickerActionTypes["dateSelect"] = "date select";
|
34
|
+
DateRangePickerActionTypes["rangeSelect"] = "range select";
|
35
|
+
DateRangePickerActionTypes["mouseDayEnter"] = "mouse day enter";
|
36
|
+
DateRangePickerActionTypes["mouseDayLeave"] = "mouse day leave";
|
37
|
+
DateRangePickerActionTypes["apply"] = "apply";
|
38
|
+
DateRangePickerActionTypes["cancel"] = "cancel";
|
39
|
+
DateRangePickerActionTypes["reset"] = "reset";
|
40
|
+
})(DateRangePickerActionTypes || (exports.DateRangePickerActionTypes = DateRangePickerActionTypes = {}));
|
41
|
+
|
42
|
+
var initialState = {
|
43
|
+
show: false,
|
44
|
+
candidateRange: {
|
45
|
+
start: null,
|
46
|
+
end: null
|
47
|
+
},
|
48
|
+
hovered: null
|
49
|
+
};
|
50
|
+
|
51
|
+
var initDateRangePickerReducer = function initDateRangePickerReducer(state) {
|
52
|
+
var _state$candidateRange;
|
53
|
+
|
54
|
+
var _ref = (_state$candidateRange = state.candidateRange) !== null && _state$candidateRange !== void 0 ? _state$candidateRange : initialState.candidateRange,
|
55
|
+
start = _ref.start,
|
56
|
+
end = _ref.end;
|
57
|
+
|
58
|
+
return _objectSpread(_objectSpread(_objectSpread({}, initialState), state), {}, {
|
59
|
+
candidateRange: {
|
60
|
+
start: start && (0, _startOfDay["default"])(start),
|
61
|
+
end: start && end && (0, _endOfDay["default"])(end)
|
62
|
+
}
|
63
|
+
});
|
64
|
+
};
|
65
|
+
|
66
|
+
exports.initDateRangePickerReducer = initDateRangePickerReducer;
|
67
|
+
|
68
|
+
var dateRangePickerReducer = function dateRangePickerReducer(state, action) {
|
69
|
+
switch (action.type) {
|
70
|
+
case DateRangePickerActionTypes.show:
|
71
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
72
|
+
show: action.payload
|
73
|
+
});
|
74
|
+
|
75
|
+
case DateRangePickerActionTypes.dateSelect:
|
76
|
+
{
|
77
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
78
|
+
candidateRange: (0, _dateRangePickerTimeRange.isPartialTimeRange)(state.candidateRange) && ((0, _isSameDay["default"])(action.payload, state.candidateRange.start) || (0, _isAfter["default"])(action.payload, state.candidateRange.start)) ? {
|
79
|
+
start: state.candidateRange.start,
|
80
|
+
end: (0, _endOfDay["default"])(action.payload)
|
81
|
+
} : {
|
82
|
+
start: (0, _startOfDay["default"])(action.payload),
|
83
|
+
end: null
|
84
|
+
}
|
85
|
+
});
|
86
|
+
}
|
87
|
+
|
88
|
+
case DateRangePickerActionTypes.rangeSelect:
|
89
|
+
{
|
90
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
91
|
+
candidateRange: action.payload
|
92
|
+
});
|
93
|
+
}
|
94
|
+
|
95
|
+
case DateRangePickerActionTypes.mouseDayEnter:
|
96
|
+
var shouldStoreHover = state.candidateRange.start && (0, _isBefore["default"])(state.candidateRange.start, action.payload);
|
97
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
98
|
+
hovered: shouldStoreHover ? action.payload : null
|
99
|
+
});
|
100
|
+
|
101
|
+
case DateRangePickerActionTypes.mouseDayLeave:
|
102
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
103
|
+
hovered: null
|
104
|
+
});
|
105
|
+
|
106
|
+
case DateRangePickerActionTypes.apply:
|
107
|
+
case DateRangePickerActionTypes.cancel:
|
108
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
109
|
+
candidateRange: {
|
110
|
+
start: null,
|
111
|
+
end: null
|
112
|
+
},
|
113
|
+
show: false
|
114
|
+
});
|
115
|
+
|
116
|
+
case DateRangePickerActionTypes.reset:
|
117
|
+
return _objectSpread(_objectSpread({}, initialState), {}, {
|
118
|
+
show: state.show
|
119
|
+
});
|
120
|
+
|
121
|
+
default:
|
122
|
+
return state;
|
123
|
+
}
|
124
|
+
};
|
125
|
+
|
126
|
+
exports.dateRangePickerReducer = dateRangePickerReducer;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export interface DateRangePickerEmptyTimeRange {
|
2
|
+
start: null;
|
3
|
+
end: null;
|
4
|
+
}
|
5
|
+
export interface DateRangePickerPartialTimeRange {
|
6
|
+
start: Date;
|
7
|
+
end: null;
|
8
|
+
}
|
9
|
+
export interface DateRangePickerCompleteTimeRange {
|
10
|
+
start: Date;
|
11
|
+
end: Date;
|
12
|
+
}
|
13
|
+
export declare type DateRangePickerTimeRange = DateRangePickerEmptyTimeRange | DateRangePickerPartialTimeRange | DateRangePickerCompleteTimeRange;
|
14
|
+
export declare const isEmptyTimeRange: (range: any) => range is DateRangePickerEmptyTimeRange;
|
15
|
+
export declare const isCompleteTimeRange: (range: any) => range is DateRangePickerCompleteTimeRange;
|
16
|
+
export declare const isPartialTimeRange: (range: any) => range is DateRangePickerPartialTimeRange;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.isPartialTimeRange = exports.isEmptyTimeRange = exports.isCompleteTimeRange = void 0;
|
7
|
+
|
8
|
+
var isEmptyTimeRange = function isEmptyTimeRange(range) {
|
9
|
+
return Boolean(range && !(range.start || range.end));
|
10
|
+
};
|
11
|
+
|
12
|
+
exports.isEmptyTimeRange = isEmptyTimeRange;
|
13
|
+
|
14
|
+
var isCompleteTimeRange = function isCompleteTimeRange(range) {
|
15
|
+
return (range === null || range === void 0 ? void 0 : range.start) instanceof Date && (range === null || range === void 0 ? void 0 : range.end) instanceof Date;
|
16
|
+
};
|
17
|
+
|
18
|
+
exports.isCompleteTimeRange = isCompleteTimeRange;
|
19
|
+
|
20
|
+
var isPartialTimeRange = function isPartialTimeRange(range) {
|
21
|
+
return (range === null || range === void 0 ? void 0 : range.start) instanceof Date && !(range !== null && range !== void 0 && range.end);
|
22
|
+
};
|
23
|
+
|
24
|
+
exports.isPartialTimeRange = isPartialTimeRange;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
var _exportNames = {};
|
9
|
+
Object.defineProperty(exports, "default", {
|
10
|
+
enumerable: true,
|
11
|
+
get: function get() {
|
12
|
+
return _DateRangePicker["default"];
|
13
|
+
}
|
14
|
+
});
|
15
|
+
|
16
|
+
var _dateRangePickerReducer = require("./dateRangePickerReducer");
|
17
|
+
|
18
|
+
Object.keys(_dateRangePickerReducer).forEach(function (key) {
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
20
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
21
|
+
if (key in exports && exports[key] === _dateRangePickerReducer[key]) return;
|
22
|
+
Object.defineProperty(exports, key, {
|
23
|
+
enumerable: true,
|
24
|
+
get: function get() {
|
25
|
+
return _dateRangePickerReducer[key];
|
26
|
+
}
|
27
|
+
});
|
28
|
+
});
|
29
|
+
|
30
|
+
var _dateRangePickerTimeRange = require("./dateRangePickerTimeRange");
|
31
|
+
|
32
|
+
Object.keys(_dateRangePickerTimeRange).forEach(function (key) {
|
33
|
+
if (key === "default" || key === "__esModule") return;
|
34
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
35
|
+
if (key in exports && exports[key] === _dateRangePickerTimeRange[key]) return;
|
36
|
+
Object.defineProperty(exports, key, {
|
37
|
+
enumerable: true,
|
38
|
+
get: function get() {
|
39
|
+
return _dateRangePickerTimeRange[key];
|
40
|
+
}
|
41
|
+
});
|
42
|
+
});
|
43
|
+
|
44
|
+
var _DateRangePicker = _interopRequireWildcard(require("./DateRangePicker"));
|
45
|
+
|
46
|
+
Object.keys(_DateRangePicker).forEach(function (key) {
|
47
|
+
if (key === "default" || key === "__esModule") return;
|
48
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
49
|
+
if (key in exports && exports[key] === _DateRangePicker[key]) return;
|
50
|
+
Object.defineProperty(exports, key, {
|
51
|
+
enumerable: true,
|
52
|
+
get: function get() {
|
53
|
+
return _DateRangePicker[key];
|
54
|
+
}
|
55
|
+
});
|
56
|
+
});
|
57
|
+
|
58
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
59
|
+
|
60
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { FunctionComponent } from "react";
|
2
|
+
import { DayPickerProps } from "react-day-picker";
|
3
|
+
import type { WithRequiredProperty } from "../../types";
|
4
|
+
import type { DatePickerLocale } from "../types";
|
5
|
+
declare type ExcludedDayPickerProps = "captionElement" | "showOutsideDays" | "enableOutsideDaysClick" | "fixedWeeks" | "labels" | "navbarElement" | "onTodayButtonClick" | "pagedNavigation" | "renderDay" | "renderWeek" | "reverseMonths" | "showWeekNumbers" | "showWeekDays" | "todayButton" | "weekdayElement" | "weekdaysLong" | "weekdaysShort";
|
6
|
+
export declare type EditableYearProps = {
|
7
|
+
editableYear?: false;
|
8
|
+
} | {
|
9
|
+
editableYear: true;
|
10
|
+
years?: number[];
|
11
|
+
initialDate?: Date;
|
12
|
+
};
|
13
|
+
export declare type CalendarProps = Omit<Omit<DayPickerProps, "locale">, ExcludedDayPickerProps> & EditableYearProps & {
|
14
|
+
locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
|
15
|
+
};
|
16
|
+
declare const Calendar: FunctionComponent<CalendarProps>;
|
17
|
+
export default Calendar;
|