@algolia/satellite 1.0.0-beta.16 → 1.0.0-beta.161
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 +154 -8
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +49 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +27 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +66 -0
- package/cjs/AutoComplete/AutoComplete.js +593 -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 +37 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +37 -0
- package/cjs/AutoComplete/index.d.ts +5 -0
- package/cjs/AutoComplete/index.js +63 -0
- package/cjs/AutoComplete/types.d.ts +85 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +5 -0
- package/{components → cjs}/AutoComplete/utils.js +24 -7
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +36 -0
- package/cjs/Avatars/UserAvatar.d.ts +20 -0
- package/cjs/Avatars/UserAvatar.js +57 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +39 -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 +59 -0
- package/cjs/Badge/Badge.d.ts +35 -0
- package/cjs/Badge/Badge.js +77 -0
- package/cjs/Badge/index.d.ts +2 -0
- package/cjs/Badge/index.js +27 -0
- package/cjs/Banners/Alert/Alert.d.ts +78 -0
- package/cjs/Banners/Alert/Alert.js +140 -0
- package/cjs/Banners/Alert/index.js +27 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +63 -0
- package/cjs/Banners/BigBertha/index.d.ts +2 -0
- package/cjs/Banners/BigBertha/index.js +27 -0
- package/cjs/Banners/Promote/Promote.d.ts +57 -0
- package/cjs/Banners/Promote/Promote.js +111 -0
- package/cjs/Banners/Promote/index.d.ts +2 -0
- package/cjs/Banners/Promote/index.js +27 -0
- package/cjs/Banners/index.d.ts +3 -0
- package/cjs/Banners/index.js +38 -0
- package/cjs/Button/Button.d.ts +19 -0
- package/cjs/Button/Button.js +37 -0
- package/cjs/Button/Button.tailwind.d.ts +5 -0
- package/cjs/Button/Button.tailwind.js +153 -0
- package/cjs/Button/ButtonGroup.d.ts +18 -0
- package/cjs/Button/ButtonGroup.js +30 -0
- package/cjs/Button/IconButton.d.ts +5 -0
- package/cjs/Button/IconButton.js +23 -0
- package/cjs/Button/PolymorphicButton.d.ts +11 -0
- package/cjs/Button/PolymorphicButton.js +76 -0
- package/cjs/Button/PolymorphicIconButton.d.ts +24 -0
- package/cjs/Button/PolymorphicIconButton.js +84 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +67 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +38 -0
- package/cjs/Button/types.d.ts +32 -0
- package/cjs/Button/types.js +11 -0
- package/cjs/Card/Card.d.ts +32 -0
- package/cjs/Card/Card.js +46 -0
- package/cjs/Card/Card.tailwind.d.ts +5 -0
- package/cjs/Card/Card.tailwind.js +36 -0
- package/cjs/Card/components/CardHeader.d.ts +6 -0
- package/cjs/Card/components/CardHeader.js +29 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +29 -0
- package/cjs/Card/index.d.ts +4 -0
- package/cjs/Card/index.js +51 -0
- package/cjs/Checkbox/Checkbox.d.ts +24 -0
- package/cjs/Checkbox/Checkbox.js +98 -0
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/cjs/Checkbox/Checkbox.tailwind.js +65 -0
- package/cjs/Checkbox/index.js +27 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +87 -0
- package/cjs/ClickAwayContainer/index.d.ts +1 -0
- package/cjs/ClickAwayContainer/index.js +16 -0
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +165 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +53 -0
- package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/DatePicker/index.js +39 -0
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.tailwind.js +184 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +258 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +39 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +102 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +18 -0
- package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/cjs/DatePicker/DateRangePicker/index.js +51 -0
- package/cjs/DatePicker/components/Calendar.d.ts +17 -0
- package/cjs/DatePicker/components/Calendar.js +56 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +25 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +20 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +33 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +69 -0
- package/cjs/DatePicker/components/NavBar.d.ts +10 -0
- package/cjs/DatePicker/components/NavBar.js +124 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +23 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +48 -0
- package/cjs/DatePicker/index.d.ts +4 -0
- package/cjs/DatePicker/index.js +53 -0
- package/cjs/DatePicker/types.d.ts +26 -0
- package/cjs/DatePicker/types.js +5 -0
- package/cjs/DatePicker/utils.d.ts +3 -0
- package/cjs/DatePicker/utils.js +21 -0
- package/cjs/Dropdown/Dropdown.d.ts +64 -0
- package/cjs/Dropdown/Dropdown.js +136 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +49 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +45 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +61 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +21 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +17 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +37 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +34 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +63 -0
- package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/cjs/Dropdown/components/DropdownDivider.js +19 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +31 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +15 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +48 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +45 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +27 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +47 -0
- package/cjs/Dropdown/index.d.ts +13 -0
- package/cjs/Dropdown/index.js +159 -0
- package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/cjs/Dropdown/useDropdownItemProps.js +40 -0
- package/cjs/Dropzone/Dropzone.d.ts +20 -0
- package/cjs/Dropzone/Dropzone.js +159 -0
- package/cjs/Dropzone/index.d.ts +2 -0
- package/cjs/Dropzone/index.js +27 -0
- package/cjs/EmptyState/EmptyState.d.ts +28 -0
- package/cjs/EmptyState/EmptyState.js +125 -0
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/cjs/EmptyState/EmptyState.tailwind.js +15 -0
- package/cjs/EmptyState/index.d.ts +3 -0
- package/cjs/EmptyState/index.js +39 -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 +96 -0
- package/cjs/Field/FieldStateContext.d.ts +12 -0
- package/cjs/Field/FieldStateContext.js +15 -0
- package/cjs/Field/index.d.ts +4 -0
- package/cjs/Field/index.js +51 -0
- package/cjs/Field/useFieldState.d.ts +2 -0
- package/cjs/Field/useFieldState.js +17 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +118 -0
- package/cjs/Flag/Flag.tailwind.d.ts +5 -0
- package/cjs/Flag/Flag.tailwind.js +34 -0
- package/cjs/Flag/Flags.d.ts +48 -0
- package/cjs/Flag/Flags.js +91 -0
- package/cjs/Flag/index.d.ts +4 -0
- package/cjs/Flag/index.js +51 -0
- package/cjs/Flag/types.d.ts +27 -0
- package/cjs/Flag/types.js +5 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +51 -0
- package/cjs/FlexGrid/FlexGrid.js +70 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.js +71 -0
- package/cjs/FlexGrid/index.d.ts +2 -0
- package/cjs/FlexGrid/index.js +27 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +11 -0
- package/cjs/HelpUnderline/HelpUnderline.js +37 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +21 -0
- package/cjs/HelpUnderline/index.js +27 -0
- package/cjs/Input/Input.d.ts +27 -0
- package/cjs/Input/Input.js +213 -0
- package/cjs/Input/Input.tailwind.d.ts +5 -0
- package/cjs/Input/Input.tailwind.js +123 -0
- package/cjs/Input/index.js +27 -0
- package/cjs/Insert/Insert.d.ts +45 -0
- package/cjs/Insert/Insert.js +79 -0
- package/cjs/Insert/index.d.ts +2 -0
- package/cjs/Insert/index.js +27 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.js +376 -0
- package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/cjs/KeyboardKey/KeyboardKey.js +37 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +29 -0
- package/cjs/KeyboardKey/index.d.ts +2 -0
- package/{components/Alert → cjs/KeyboardKey}/index.js +5 -8
- package/cjs/Link/BaseLink.d.ts +8 -0
- package/cjs/Link/BaseLink.js +31 -0
- package/cjs/Link/ButtonLink.d.ts +9 -0
- package/cjs/Link/ButtonLink.js +39 -0
- package/cjs/Link/IconButtonLink.d.ts +9 -0
- package/cjs/Link/IconButtonLink.js +33 -0
- package/cjs/Link/Link.d.ts +13 -0
- package/cjs/Link/Link.js +52 -0
- package/cjs/Link/index.d.ts +5 -0
- package/cjs/Link/index.js +63 -0
- package/cjs/Medallion/Medallion.d.ts +11 -0
- package/cjs/Medallion/Medallion.js +41 -0
- package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
- package/cjs/Medallion/Medallion.tailwind.js +31 -0
- package/cjs/Medallion/index.d.ts +3 -0
- package/cjs/Medallion/index.js +39 -0
- package/cjs/Medallion/types.d.ts +2 -0
- package/cjs/Medallion/types.js +5 -0
- package/cjs/Modal/Modal.d.ts +54 -0
- package/cjs/Modal/Modal.js +150 -0
- package/cjs/Modal/Modal.tailwind.d.ts +5 -0
- package/cjs/Modal/Modal.tailwind.js +81 -0
- package/cjs/Modal/components/ModalFooter.d.ts +6 -0
- package/cjs/Modal/components/ModalFooter.js +34 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +25 -0
- package/cjs/Modal/index.d.ts +4 -0
- package/cjs/Modal/index.js +51 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +86 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +27 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +15 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +48 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +27 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
- package/cjs/Pagination/Pagination/Pagination.js +124 -0
- package/cjs/Pagination/Pagination/index.js +27 -0
- package/cjs/Pagination/index.d.ts +4 -0
- package/cjs/Pagination/index.js +51 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +13 -0
- package/cjs/ProgressBar/ProgressBar.js +46 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/cjs/ProgressBar/index.d.ts +2 -0
- package/cjs/ProgressBar/index.js +27 -0
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +54 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +36 -0
- package/cjs/ProgressSpinner/index.d.ts +2 -0
- package/cjs/ProgressSpinner/index.js +27 -0
- package/cjs/RadioGroup/RadioButton.d.ts +4 -0
- package/cjs/RadioGroup/RadioButton.js +31 -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 +106 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/cjs/RadioGroup/RadiogroupContext.js +17 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +51 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +34 -0
- package/cjs/RangeSlider/RangeSlider.js +103 -0
- package/cjs/RangeSlider/index.d.ts +2 -0
- package/cjs/RangeSlider/index.js +27 -0
- package/cjs/Satellite/Satellite.d.ts +11 -0
- package/cjs/Satellite/Satellite.js +47 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +26 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +49 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +75 -0
- package/cjs/Satellite/locale.d.ts +31 -0
- package/cjs/Satellite/locale.js +15 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +24 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +88 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/cjs/ScrollIndicator/index.d.ts +2 -0
- package/cjs/ScrollIndicator/index.js +27 -0
- package/cjs/Select/Select.d.ts +15 -0
- package/cjs/Select/Select.js +46 -0
- package/cjs/Select/Select.tailwind.d.ts +5 -0
- package/cjs/Select/Select.tailwind.js +76 -0
- package/cjs/Select/index.js +27 -0
- package/cjs/Separator/Separator.d.ts +8 -0
- package/cjs/Separator/Separator.js +29 -0
- package/cjs/Separator/Separator.tailwind.d.ts +5 -0
- package/cjs/Separator/Separator.tailwind.js +25 -0
- package/cjs/Separator/index.d.ts +2 -0
- package/cjs/Separator/index.js +27 -0
- package/cjs/Sidebar/Sidebar.d.ts +35 -0
- package/cjs/Sidebar/Sidebar.js +62 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/cjs/Sidebar/SidebarButtonLink.js +85 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +17 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
- package/cjs/Sidebar/SidebarHeader.js +21 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeading.js +26 -0
- package/cjs/Sidebar/SidebarLink.d.ts +9 -0
- package/cjs/Sidebar/SidebarLink.js +51 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +38 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +37 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +97 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +16 -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 +37 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +111 -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 +86 -0
- package/cjs/Switch/Switch.tailwind.d.ts +5 -0
- package/cjs/Switch/Switch.tailwind.js +25 -0
- package/cjs/Switch/SwitchOption.d.ts +8 -0
- package/cjs/Switch/SwitchOption.js +45 -0
- package/cjs/Switch/index.d.ts +3 -0
- package/cjs/Switch/index.js +39 -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 +22 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +60 -0
- package/cjs/Tables/DataTable/DataTable.js +261 -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 +121 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +65 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +41 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +60 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Loader.js +49 -0
- package/cjs/Tables/DataTable/components/index.d.ts +5 -0
- package/cjs/Tables/DataTable/components/index.js +60 -0
- package/cjs/Tables/DataTable/index.d.ts +3 -0
- package/cjs/Tables/DataTable/index.js +39 -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 +23 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +62 -0
- package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
- package/cjs/Tables/Table/Table.tailwind.js +39 -0
- package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
- package/cjs/Tables/Table/components/TableFooter.js +28 -0
- package/cjs/Tables/Table/index.d.ts +3 -0
- package/cjs/Tables/Table/index.js +39 -0
- package/cjs/Tables/index.d.ts +3 -0
- package/cjs/Tables/index.js +39 -0
- package/cjs/Tabs/ContentTabs.d.ts +4 -0
- package/cjs/Tabs/ContentTabs.js +62 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +78 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +53 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +86 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +51 -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 +19 -0
- package/cjs/Tag/Tag.d.ts +58 -0
- package/cjs/Tag/Tag.js +135 -0
- package/cjs/Tag/Tag.tailwind.d.ts +5 -0
- package/cjs/Tag/Tag.tailwind.js +54 -0
- package/cjs/Tag/index.d.ts +2 -0
- package/cjs/Tag/index.js +27 -0
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +30 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +39 -0
- package/cjs/TextArea/index.js +27 -0
- package/cjs/TextWrap/TextWrap.d.ts +8 -0
- package/cjs/TextWrap/TextWrap.js +55 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +27 -0
- package/cjs/Toggle/Toggle.d.ts +10 -0
- package/cjs/Toggle/Toggle.js +62 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +72 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +27 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +3 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +44 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +54 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +137 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +15 -0
- package/cjs/Tooltip/TooltipWrapper.js +82 -0
- package/{types/components → cjs}/Tooltip/index.d.ts +1 -0
- package/cjs/Tooltip/index.js +51 -0
- package/cjs/Tooltip/types.d.ts +65 -0
- package/cjs/Tooltip/types.js +5 -0
- package/cjs/Tooltip/utils.d.ts +1 -0
- package/cjs/Tooltip/utils.js +10 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -0
- package/cjs/Typography/Typography.tailwind.js +170 -0
- package/cjs/UserContent/UserContent.d.ts +8 -0
- package/cjs/UserContent/UserContent.js +28 -0
- package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
- package/cjs/UserContent/UserContent.tailwind.js +141 -0
- package/cjs/index.d.ts +49 -0
- package/cjs/index.js +580 -0
- package/cjs/package.json +3 -0
- package/cjs/styles/base.tailwind.d.ts +5 -0
- package/cjs/styles/base.tailwind.js +46 -0
- package/cjs/styles/brandColors.d.ts +42 -0
- package/cjs/styles/brandColors.js +48 -0
- package/cjs/styles/colors.d.ts +110 -0
- package/cjs/styles/colors.js +116 -0
- package/cjs/styles/disabledColor.d.ts +6 -0
- package/cjs/styles/disabledColor.js +14 -0
- package/cjs/styles/helpers/icons.d.ts +15 -0
- package/cjs/styles/helpers/icons.js +39 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.js +50 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.js +36 -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 +8 -0
- package/cjs/styles/rgba.d.ts +8 -0
- package/cjs/styles/rgba.js +15 -0
- package/cjs/styles/tailwind.config.d.ts +2 -0
- package/cjs/styles/tailwind.config.js +144 -0
- package/cjs/styles/zIndexes.d.ts +7 -0
- package/cjs/styles/zIndexes.js +14 -0
- package/cjs/types.d.ts +28 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/utilities.tailwind.d.ts +5 -0
- package/cjs/utilities/utilities.tailwind.js +27 -0
- package/cjs/utils/NumberUnion.d.ts +5 -0
- package/cjs/utils/NumberUnion.js +5 -0
- package/cjs/utils/event-polyfill.d.ts +0 -0
- package/cjs/utils/event-polyfill.js +25 -0
- package/cjs/utils/formatters.d.ts +25 -0
- package/cjs/utils/formatters.js +44 -0
- package/cjs/utils/genericChangeHandler.d.ts +5 -0
- package/{utils → cjs/utils}/genericChangeHandler.js +1 -7
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +23 -0
- package/cjs/utils/index.d.ts +7 -0
- package/{utils → cjs/utils}/index.js +11 -18
- package/cjs/utils/isCssPropertySupported.d.ts +2 -0
- package/cjs/utils/isCssPropertySupported.js +16 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +29 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +16 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +13 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +40 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +23 -0
- package/{utils → cjs/utils}/pluralize.js +7 -7
- package/{utils → cjs/utils}/range.js +1 -3
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +17 -0
- package/{utils → cjs/utils}/uniqBy.js +1 -5
- package/{utils → cjs/utils}/uniqueId.js +1 -3
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +25 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +55 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +28 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +40 -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 +585 -0
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/esm/AutoComplete/AutoComplete.tailwind.js +97 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +29 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +30 -0
- package/esm/AutoComplete/index.d.ts +5 -0
- package/esm/AutoComplete/index.js +5 -0
- package/esm/AutoComplete/types.d.ts +85 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +5 -0
- package/esm/AutoComplete/utils.js +41 -0
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +27 -0
- package/esm/Avatars/UserAvatar.d.ts +20 -0
- package/esm/Avatars/UserAvatar.js +49 -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 +48 -0
- package/esm/Badge/Badge.d.ts +35 -0
- package/esm/Badge/Badge.js +69 -0
- package/esm/Badge/index.d.ts +2 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Banners/Alert/Alert.d.ts +78 -0
- package/esm/Banners/Alert/Alert.js +132 -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 +55 -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 +103 -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 +19 -0
- package/esm/Button/Button.js +28 -0
- package/esm/Button/Button.tailwind.d.ts +5 -0
- package/esm/Button/Button.tailwind.js +154 -0
- package/esm/Button/ButtonGroup.d.ts +18 -0
- package/esm/Button/ButtonGroup.js +21 -0
- package/esm/Button/IconButton.d.ts +5 -0
- package/esm/Button/IconButton.js +14 -0
- package/esm/Button/PolymorphicButton.d.ts +11 -0
- package/esm/Button/PolymorphicButton.js +66 -0
- package/esm/Button/PolymorphicIconButton.d.ts +24 -0
- package/esm/Button/PolymorphicIconButton.js +78 -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 +27 -0
- package/esm/Button/types.d.ts +32 -0
- package/esm/Button/types.js +5 -0
- package/esm/Card/Card.d.ts +32 -0
- package/esm/Card/Card.js +37 -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 +6 -0
- package/esm/Card/components/CardHeader.js +20 -0
- package/esm/Card/components/CardTitle.d.ts +6 -0
- package/esm/Card/components/CardTitle.js +20 -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 +90 -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 +76 -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 +159 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.js +43 -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 +182 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +251 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +33 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +92 -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 +48 -0
- package/esm/DatePicker/components/Display.d.ts +10 -0
- package/esm/DatePicker/components/Display.js +17 -0
- package/esm/DatePicker/components/Footer.d.ts +6 -0
- package/esm/DatePicker/components/Footer.js +12 -0
- package/esm/DatePicker/components/FooterActions.d.ts +12 -0
- package/esm/DatePicker/components/FooterActions.js +26 -0
- package/esm/DatePicker/components/Modal.d.ts +16 -0
- package/esm/DatePicker/components/Modal.js +60 -0
- package/esm/DatePicker/components/NavBar.d.ts +10 -0
- package/esm/DatePicker/components/NavBar.js +117 -0
- package/esm/DatePicker/components/SidePanel.d.ts +6 -0
- package/esm/DatePicker/components/SidePanel.js +15 -0
- package/esm/DatePicker/components/index.d.ts +12 -0
- package/esm/DatePicker/components/index.js +6 -0
- package/esm/DatePicker/index.d.ts +4 -0
- package/esm/DatePicker/index.js +4 -0
- package/esm/DatePicker/types.d.ts +26 -0
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.d.ts +3 -0
- package/esm/DatePicker/utils.js +12 -0
- package/esm/Dropdown/Dropdown.d.ts +64 -0
- package/esm/Dropdown/Dropdown.js +127 -0
- package/esm/Dropdown/DropdownButton.d.ts +11 -0
- package/esm/Dropdown/DropdownButton.js +40 -0
- package/esm/Dropdown/DropdownContext.d.ts +7 -0
- package/esm/Dropdown/DropdownContext.js +10 -0
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +37 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +53 -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 +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +29 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +26 -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 +10 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +22 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +15 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +40 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/esm/Dropdown/components/DropdownRadioItem.js +37 -0
- package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/esm/Dropdown/components/DropdownTitle.js +18 -0
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +39 -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 +31 -0
- package/esm/Dropzone/Dropzone.d.ts +20 -0
- package/esm/Dropzone/Dropzone.js +151 -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 +117 -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 +85 -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 +110 -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 +82 -0
- package/esm/Flag/index.d.ts +4 -0
- package/esm/Flag/index.js +4 -0
- package/esm/Flag/types.d.ts +27 -0
- package/esm/Flag/types.js +1 -0
- package/esm/FlexGrid/FlexGrid.d.ts +51 -0
- package/esm/FlexGrid/FlexGrid.js +62 -0
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/esm/FlexGrid/FlexGrid.tailwind.js +69 -0
- package/esm/FlexGrid/index.d.ts +2 -0
- package/esm/FlexGrid/index.js +2 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +11 -0
- package/esm/HelpUnderline/HelpUnderline.js +28 -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 +27 -0
- package/esm/Input/Input.js +205 -0
- package/esm/Input/Input.tailwind.d.ts +5 -0
- package/esm/Input/Input.tailwind.js +124 -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 +71 -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 +29 -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 +8 -0
- package/esm/Link/BaseLink.js +22 -0
- package/esm/Link/ButtonLink.d.ts +9 -0
- package/esm/Link/ButtonLink.js +30 -0
- package/esm/Link/IconButtonLink.d.ts +9 -0
- package/esm/Link/IconButtonLink.js +24 -0
- package/esm/Link/Link.d.ts +13 -0
- package/esm/Link/Link.js +44 -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 +32 -0
- package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
- package/esm/Medallion/Medallion.tailwind.js +30 -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 +54 -0
- package/esm/Modal/Modal.js +139 -0
- package/esm/Modal/Modal.tailwind.d.ts +5 -0
- package/esm/Modal/Modal.tailwind.js +79 -0
- package/esm/Modal/components/ModalFooter.d.ts +6 -0
- package/esm/Modal/components/ModalFooter.js +25 -0
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +16 -0
- package/esm/Modal/index.d.ts +4 -0
- package/esm/Modal/index.js +4 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +76 -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 +15 -0
- package/esm/Pagination/DotPagination/DotPagination.js +39 -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 +114 -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 +37 -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 +46 -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 +22 -0
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/esm/RadioGroup/RadioButton.tailwind.js +59 -0
- package/esm/RadioGroup/RadioGroup.d.ts +40 -0
- package/esm/RadioGroup/RadioGroup.js +97 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/esm/RadioGroup/RadiogroupContext.js +9 -0
- package/esm/RadioGroup/index.d.ts +4 -0
- package/esm/RadioGroup/index.js +4 -0
- package/esm/RangeSlider/RangeSlider.d.ts +34 -0
- package/esm/RangeSlider/RangeSlider.js +97 -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 +39 -0
- package/esm/Satellite/SatelliteContext.d.ts +11 -0
- package/esm/Satellite/SatelliteContext.js +16 -0
- package/esm/Satellite/SatelliteRouter.d.ts +21 -0
- package/esm/Satellite/SatelliteRouter.js +40 -0
- package/esm/Satellite/index.d.ts +6 -0
- package/esm/Satellite/index.js +6 -0
- package/esm/Satellite/locale.d.ts +31 -0
- package/esm/Satellite/locale.js +7 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +17 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +79 -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 +37 -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/Separator/Separator.d.ts +8 -0
- package/esm/Separator/Separator.js +17 -0
- package/esm/Separator/Separator.tailwind.d.ts +5 -0
- package/esm/Separator/Separator.tailwind.js +24 -0
- package/esm/Separator/index.d.ts +2 -0
- package/esm/Separator/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +35 -0
- package/esm/Sidebar/Sidebar.js +54 -0
- package/esm/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/esm/Sidebar/SidebarButtonLink.js +78 -0
- package/esm/Sidebar/SidebarContext.d.ts +9 -0
- package/esm/Sidebar/SidebarContext.js +9 -0
- package/esm/Sidebar/SidebarHeader.d.ts +6 -0
- package/esm/Sidebar/SidebarHeader.js +13 -0
- package/esm/Sidebar/SidebarHeading.d.ts +7 -0
- package/esm/Sidebar/SidebarHeading.js +18 -0
- package/esm/Sidebar/SidebarLink.d.ts +9 -0
- package/esm/Sidebar/SidebarLink.js +44 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +90 -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 +29 -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 +78 -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 +37 -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 +253 -0
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/esm/Tables/DataTable/DataTable.tailwind.js +22 -0
- package/esm/Tables/DataTable/components/Body.d.ts +15 -0
- package/esm/Tables/DataTable/components/Body.js +112 -0
- package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
- package/esm/Tables/DataTable/components/Footer.js +53 -0
- package/esm/Tables/DataTable/components/Header.d.ts +10 -0
- package/esm/Tables/DataTable/components/Header.js +32 -0
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/esm/Tables/DataTable/components/HeaderCell.js +52 -0
- package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
- package/esm/Tables/DataTable/components/Loader.js +40 -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 +13 -0
- package/esm/Tables/Table/Table.d.ts +28 -0
- package/esm/Tables/Table/Table.js +54 -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 +19 -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 +54 -0
- package/esm/Tabs/LinkTabs.d.ts +33 -0
- package/esm/Tabs/LinkTabs.js +68 -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 +78 -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 +11 -0
- package/esm/Tag/Tag.d.ts +58 -0
- package/esm/Tag/Tag.js +127 -0
- package/esm/Tag/Tag.tailwind.d.ts +5 -0
- package/esm/Tag/Tag.tailwind.js +53 -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 +21 -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 +8 -0
- package/esm/TextWrap/TextWrap.js +47 -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 +54 -0
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
- package/esm/Toggle/Toggle.tailwind.js +72 -0
- package/esm/Toggle/index.d.ts +2 -0
- package/esm/Toggle/index.js +2 -0
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +3 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +36 -0
- package/esm/Tooltip/Tooltip.d.ts +24 -0
- package/esm/Tooltip/Tooltip.js +45 -0
- package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/esm/Tooltip/Tooltip.tailwind.js +135 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +15 -0
- package/esm/Tooltip/TooltipWrapper.js +73 -0
- package/esm/Tooltip/index.d.ts +4 -0
- package/esm/Tooltip/index.js +4 -0
- package/esm/Tooltip/types.d.ts +65 -0
- package/esm/Tooltip/types.js +1 -0
- package/esm/Tooltip/utils.d.ts +1 -0
- package/esm/Tooltip/utils.js +3 -0
- package/esm/Typography/Typography.tailwind.d.ts +5 -0
- package/esm/Typography/Typography.tailwind.js +169 -0
- package/esm/UserContent/UserContent.d.ts +8 -0
- package/esm/UserContent/UserContent.js +19 -0
- package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
- package/esm/UserContent/UserContent.tailwind.js +141 -0
- package/esm/index.d.ts +49 -0
- package/esm/index.js +49 -0
- package/esm/styles/base.tailwind.d.ts +5 -0
- package/esm/styles/base.tailwind.js +45 -0
- package/esm/styles/brandColors.d.ts +42 -0
- package/esm/styles/brandColors.js +46 -0
- package/esm/styles/colors.d.ts +110 -0
- package/esm/styles/colors.js +114 -0
- package/esm/styles/disabledColor.d.ts +6 -0
- package/esm/styles/disabledColor.js +14 -0
- package/esm/styles/helpers/icons.d.ts +15 -0
- package/esm/styles/helpers/icons.js +40 -0
- package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/esm/styles/helpers/makePurgeCssExtractor.js +49 -0
- package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/esm/styles/helpers/makeTailwindPrefixer.js +34 -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 +14 -0
- package/esm/styles/tailwind.config.d.ts +2 -0
- package/esm/styles/tailwind.config.js +145 -0
- package/esm/styles/zIndexes.d.ts +7 -0
- package/esm/styles/zIndexes.js +12 -0
- package/esm/types.d.ts +28 -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/NumberUnion.d.ts +5 -0
- package/esm/utils/NumberUnion.js +1 -0
- package/esm/utils/event-polyfill.d.ts +0 -0
- package/esm/utils/event-polyfill.js +23 -0
- package/esm/utils/formatters.d.ts +25 -0
- package/esm/utils/formatters.js +36 -0
- package/esm/utils/genericChangeHandler.d.ts +5 -0
- package/esm/utils/genericChangeHandler.js +18 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +15 -0
- package/esm/utils/index.d.ts +7 -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 +9 -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 +9 -0
- package/esm/utils/matchLocation.d.ts +3 -0
- package/esm/utils/matchLocation.js +5 -0
- package/esm/utils/onlyText.d.ts +3 -0
- package/esm/utils/onlyText.js +33 -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 +16 -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 +13 -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 +17 -0
- package/esm/utils/useLinkProps.d.ts +7 -0
- package/esm/utils/useLinkProps.js +46 -0
- package/esm/utils/useTriggerInputChange.d.ts +8 -0
- package/esm/utils/useTriggerInputChange.js +21 -0
- package/package.json +84 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +139 -0
- package/scss/variables.scss +7 -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/nothing-to-see-here.gif +0 -0
- 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
- /package/{types/components → cjs/Banners}/Alert/index.d.ts +0 -0
- /package/{types/components → cjs}/Checkbox/index.d.ts +0 -0
- /package/{types/components → cjs}/HelpUnderline/index.d.ts +0 -0
- /package/{types/components → cjs}/Input/index.d.ts +0 -0
- /package/{types/components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- /package/{types/components → cjs}/Select/index.d.ts +0 -0
- /package/{types/components → cjs}/TextArea/index.d.ts +0 -0
- /package/{types → cjs}/utils/pluralize.d.ts +0 -0
- /package/{types → cjs}/utils/range.d.ts +0 -0
- /package/{types → cjs}/utils/uniqBy.d.ts +0 -0
- /package/{types → cjs}/utils/uniqueId.d.ts +0 -0
@@ -0,0 +1,593 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = exports.AutoComplete = void 0;
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
13
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
14
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
15
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
16
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
17
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
18
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
19
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
20
|
+
var _downshift = _interopRequireDefault(require("downshift"));
|
21
|
+
var _react = require("react");
|
22
|
+
var _reactDom = require("react-dom");
|
23
|
+
var _reactFeather = require("react-feather");
|
24
|
+
var _reactPopper = require("react-popper");
|
25
|
+
var _Button = _interopRequireDefault(require("../Button"));
|
26
|
+
var _Card = _interopRequireDefault(require("../Card"));
|
27
|
+
var _ClickAwayContainer = require("../ClickAwayContainer");
|
28
|
+
var _FieldStateContext = require("../Field/FieldStateContext");
|
29
|
+
var _Satellite = require("../Satellite");
|
30
|
+
var _ScrollIndicator = _interopRequireDefault(require("../ScrollIndicator"));
|
31
|
+
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
32
|
+
var _Tag = _interopRequireDefault(require("../Tag"));
|
33
|
+
var _uniqBy = _interopRequireDefault(require("../utils/uniqBy"));
|
34
|
+
var _AutoCompleteEmptyState = _interopRequireDefault(require("./components/AutoCompleteEmptyState"));
|
35
|
+
var _DefaultOptionItem = _interopRequireDefault(require("./components/DefaultOptionItem"));
|
36
|
+
var _utils = require("./utils");
|
37
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
38
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
|
39
|
+
var _excluded = ["optionItemPrefix"],
|
40
|
+
_excluded2 = ["ref"];
|
41
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
42
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
43
|
+
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; }
|
44
|
+
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; }
|
45
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
46
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
47
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
48
|
+
function optionToString(option) {
|
49
|
+
return option ? option.label : "";
|
50
|
+
}
|
51
|
+
function makeNeedles(itemValue) {
|
52
|
+
return itemValue.toLowerCase().trim().split(/\s+/);
|
53
|
+
}
|
54
|
+
function needlesMatch(needles, option) {
|
55
|
+
var labels = (option.metadata || []).concat(option.label);
|
56
|
+
return needles.every(function (needle) {
|
57
|
+
return labels.some(function (label) {
|
58
|
+
return String(label || "").trim().toLowerCase().includes(needle);
|
59
|
+
});
|
60
|
+
});
|
61
|
+
}
|
62
|
+
function filter(options, selectedItems, itemValue) {
|
63
|
+
var needles = makeNeedles(itemValue);
|
64
|
+
var selectedValues = selectedItems.map(function (option) {
|
65
|
+
return option.value;
|
66
|
+
});
|
67
|
+
var results = [];
|
68
|
+
var _iterator = _createForOfIteratorHelper(options),
|
69
|
+
_step;
|
70
|
+
try {
|
71
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
72
|
+
var option = _step.value;
|
73
|
+
if (selectedValues.includes(option.value)) {
|
74
|
+
continue;
|
75
|
+
} else if (option.bypassNeedleMatch || needlesMatch(needles, option)) {
|
76
|
+
results.push(option);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
} catch (err) {
|
80
|
+
_iterator.e(err);
|
81
|
+
} finally {
|
82
|
+
_iterator.f();
|
83
|
+
}
|
84
|
+
return results;
|
85
|
+
}
|
86
|
+
function inputValueFromProps(props) {
|
87
|
+
if (props.inputValue !== undefined) {
|
88
|
+
return props.inputValue;
|
89
|
+
}
|
90
|
+
return !(0, _utils.isAutoCompleteMultiProps)(props) && props.value ? optionToString(props.value) : "";
|
91
|
+
}
|
92
|
+
var MENU_POPPER_MODFIERS = [{
|
93
|
+
name: "offset",
|
94
|
+
options: {
|
95
|
+
offset: [0, 8]
|
96
|
+
}
|
97
|
+
}];
|
98
|
+
/** @ignore */
|
99
|
+
var DefaultEmptyState = function DefaultEmptyState(_ref) {
|
100
|
+
var emptyStateTitle = _ref.emptyStateTitle;
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoCompleteEmptyState["default"], {
|
102
|
+
title: emptyStateTitle
|
103
|
+
});
|
104
|
+
};
|
105
|
+
var DefaultOption = function DefaultOption(_ref2) {
|
106
|
+
var optionItemPrefix = _ref2.optionItemPrefix,
|
107
|
+
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultOptionItem["default"], _objectSpread(_objectSpread({}, props), {}, {
|
109
|
+
locale: {
|
110
|
+
optionItemPrefix: optionItemPrefix !== null && optionItemPrefix !== void 0 ? optionItemPrefix : _utils.DEFAULT_AUTOCOMPLETE_LOCALE.optionItemPrefix
|
111
|
+
}
|
112
|
+
}));
|
113
|
+
};
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Autocomplete is a search-as-you-type function that matches what a person types, usually the beginning of a word, or a prefix, with a word list. Not to be confused with auto-suggestion that predicts the end of a query.
|
117
|
+
*
|
118
|
+
* Use this component when the user needs to search through a long list of results.
|
119
|
+
*
|
120
|
+
* ## Menu Size Variations
|
121
|
+
* - **Medium (default)**: the standard dropdown menu height for most use cases
|
122
|
+
* - **Large**: when numerous results should be displayed in the dropdown to ease selection
|
123
|
+
*
|
124
|
+
* ## Best practices
|
125
|
+
*
|
126
|
+
* - Provide an empty state if there is no result
|
127
|
+
* - Highlight letters in results matching the query
|
128
|
+
* - Provide matching results quickly
|
129
|
+
* - Style different data
|
130
|
+
*/
|
131
|
+
var AutoComplete = /*#__PURE__*/function (_Component) {
|
132
|
+
(0, _inherits2["default"])(AutoComplete, _Component);
|
133
|
+
var _super = _createSuper(AutoComplete);
|
134
|
+
function AutoComplete() {
|
135
|
+
var _this;
|
136
|
+
(0, _classCallCheck2["default"])(this, AutoComplete);
|
137
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
138
|
+
args[_key] = arguments[_key];
|
139
|
+
}
|
140
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
141
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
142
|
+
inputFocused: false,
|
143
|
+
inputValue: inputValueFromProps(_this.props),
|
144
|
+
showAllResults: false
|
145
|
+
});
|
146
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "inputContainerRef", null);
|
147
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "inputRef", null);
|
148
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "menuWrapperRef", null);
|
149
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClearClick", function () {
|
150
|
+
return _this.setState({
|
151
|
+
inputValue: ""
|
152
|
+
}, function () {
|
153
|
+
return _this.props.onChange(null);
|
154
|
+
});
|
155
|
+
});
|
156
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleFakeInputClick", function () {
|
157
|
+
return _this.inputRef && _this.inputRef.focus();
|
158
|
+
});
|
159
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleInputBlur", function (state) {
|
160
|
+
return function (evt) {
|
161
|
+
var _this$props = _this.props,
|
162
|
+
selectOnBlur = _this$props.selectOnBlur,
|
163
|
+
onBlur = _this$props.onBlur;
|
164
|
+
var inputValue = state.inputValue,
|
165
|
+
highlightedIndex = state.highlightedIndex,
|
166
|
+
selectItemAtIndex = state.selectItemAtIndex;
|
167
|
+
var newInputValue;
|
168
|
+
if (selectOnBlur && inputValue && highlightedIndex !== null) {
|
169
|
+
newInputValue = (0, _utils.isAutoCompleteMultiProps)(_this.props) ? "" : optionToString(_this.props.value);
|
170
|
+
selectItemAtIndex(highlightedIndex);
|
171
|
+
} else if ((0, _utils.isAutoCompleteMultiProps)(_this.props)) {
|
172
|
+
newInputValue = inputValue;
|
173
|
+
} else {
|
174
|
+
newInputValue = optionToString(_this.props.value);
|
175
|
+
}
|
176
|
+
if (onBlur) {
|
177
|
+
onBlur(evt);
|
178
|
+
}
|
179
|
+
_this.setState({
|
180
|
+
inputValue: newInputValue || "",
|
181
|
+
inputFocused: false,
|
182
|
+
showAllResults: false
|
183
|
+
});
|
184
|
+
};
|
185
|
+
});
|
186
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleInputChange", function (evt) {
|
187
|
+
var inputValue = evt.target.value;
|
188
|
+
_this.setState({
|
189
|
+
inputValue: inputValue
|
190
|
+
});
|
191
|
+
if (_this.props.onTextChange) {
|
192
|
+
_this.props.onTextChange(inputValue);
|
193
|
+
}
|
194
|
+
if (!_this.props.multiple && _this.props.value && !inputValue) {
|
195
|
+
_this.props.onChange(null);
|
196
|
+
}
|
197
|
+
});
|
198
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleInputContainerRefUpdate", function (el) {
|
199
|
+
_this.inputContainerRef = el;
|
200
|
+
if (el) {
|
201
|
+
_this.updateInputWidth();
|
202
|
+
}
|
203
|
+
});
|
204
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "updateInputWidth", function () {
|
205
|
+
var _this$inputContainerR, _this$inputContainerR2;
|
206
|
+
var inputWidth = _this.state.inputWidth;
|
207
|
+
var newInputWidth = (_this$inputContainerR = (_this$inputContainerR2 = _this.inputContainerRef) === null || _this$inputContainerR2 === void 0 ? void 0 : _this$inputContainerR2.getBoundingClientRect().width) !== null && _this$inputContainerR !== void 0 ? _this$inputContainerR : inputWidth;
|
208
|
+
if (newInputWidth !== inputWidth) {
|
209
|
+
_this.setState({
|
210
|
+
inputWidth: newInputWidth
|
211
|
+
});
|
212
|
+
}
|
213
|
+
});
|
214
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleKeyDown", function (state) {
|
215
|
+
return function (evt) {
|
216
|
+
if (!(0, _utils.isAutoCompleteMultiProps)(_this.props)) return;
|
217
|
+
var _this$props2 = _this.props,
|
218
|
+
_this$props2$value = _this$props2.value,
|
219
|
+
value = _this$props2$value === void 0 ? [] : _this$props2$value,
|
220
|
+
_this$props2$separato = _this$props2.separatorKeys,
|
221
|
+
separatorKeys = _this$props2$separato === void 0 ? AutoComplete.defaultProps.separatorKeys : _this$props2$separato,
|
222
|
+
creatable = _this$props2.creatable,
|
223
|
+
_this$props2$createFr = _this$props2.createFromInputValue,
|
224
|
+
createFromInputValue = _this$props2$createFr === void 0 ? AutoComplete.defaultProps.createFromInputValue : _this$props2$createFr,
|
225
|
+
options = _this$props2.options,
|
226
|
+
onChange = _this$props2.onChange;
|
227
|
+
var inputValue = state.inputValue || "";
|
228
|
+
var canCreate = creatable && inputValue.trim().length > 0;
|
229
|
+
if (evt.key === "Backspace" && !inputValue.length) {
|
230
|
+
onChange(value.slice(0, -1));
|
231
|
+
} else if (canCreate && separatorKeys.includes(evt.key)) {
|
232
|
+
evt.preventDefault();
|
233
|
+
var _createFromInputValue = createFromInputValue(options, inputValue),
|
234
|
+
_createFromInputValue2 = (0, _slicedToArray2["default"])(_createFromInputValue, 1),
|
235
|
+
newOption = _createFromInputValue2[0];
|
236
|
+
if (newOption && !newOption.disabled) {
|
237
|
+
state.selectItem(newOption);
|
238
|
+
}
|
239
|
+
}
|
240
|
+
};
|
241
|
+
});
|
242
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleChange", function (option) {
|
243
|
+
if (option.disabled) return;
|
244
|
+
option = option ? _objectSpread(_objectSpread({}, option), {}, {
|
245
|
+
"new": undefined
|
246
|
+
}) : option;
|
247
|
+
if ((0, _utils.isAutoCompleteMultiProps)(_this.props)) {
|
248
|
+
var arrayValue = Array.isArray(_this.props.value) ? _this.props.value : [];
|
249
|
+
var newValue = (0, _uniqBy["default"])([].concat((0, _toConsumableArray2["default"])(arrayValue), [option]), function (o) {
|
250
|
+
return o.value;
|
251
|
+
});
|
252
|
+
_this.props.onChange(newValue);
|
253
|
+
_this.setState({
|
254
|
+
inputValue: "",
|
255
|
+
showAllResults: false
|
256
|
+
});
|
257
|
+
} else {
|
258
|
+
_this.props.onChange(option);
|
259
|
+
_this.setState({
|
260
|
+
inputValue: option ? option.label : "",
|
261
|
+
showAllResults: false
|
262
|
+
});
|
263
|
+
}
|
264
|
+
});
|
265
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleShowAllResults", function (evt) {
|
266
|
+
evt.preventDefault();
|
267
|
+
evt.stopPropagation();
|
268
|
+
_this.setState({
|
269
|
+
showAllResults: true
|
270
|
+
});
|
271
|
+
});
|
272
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "removeValue", function (removedOption) {
|
273
|
+
if (!(0, _utils.isAutoCompleteMultiProps)(_this.props)) return;
|
274
|
+
var currentOptions = _this.props.value || [];
|
275
|
+
var newOptions = currentOptions.filter(function (option) {
|
276
|
+
return option.value !== removedOption.value;
|
277
|
+
});
|
278
|
+
_this.props.onChange(newOptions);
|
279
|
+
});
|
280
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getA11yStatusMessage", function (options) {
|
281
|
+
if (!options.isOpen) {
|
282
|
+
return "";
|
283
|
+
}
|
284
|
+
if (!options.resultCount) {
|
285
|
+
return _this.locale.emptyStateTitle;
|
286
|
+
}
|
287
|
+
if (options.resultCount > 0) {
|
288
|
+
return _this.locale.itemsAvailable(options.resultCount);
|
289
|
+
}
|
290
|
+
return "";
|
291
|
+
});
|
292
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderInput", function (autocompleteHelpers, fieldState) {
|
293
|
+
var _this$props3 = _this.props,
|
294
|
+
id = _this$props3.id,
|
295
|
+
placeholder = _this$props3.placeholder,
|
296
|
+
name = _this$props3.name,
|
297
|
+
valuesClassName = _this$props3.valuesClassName,
|
298
|
+
disabled = _this$props3.disabled,
|
299
|
+
autoFocus = _this$props3.autoFocus,
|
300
|
+
clearable = _this$props3.clearable,
|
301
|
+
value = _this$props3.value,
|
302
|
+
multiple = _this$props3.multiple,
|
303
|
+
_this$props3$variant = _this$props3.variant,
|
304
|
+
variant = _this$props3$variant === void 0 ? "medium" : _this$props3$variant,
|
305
|
+
renderValueTemplate = _this$props3.renderValueTemplate,
|
306
|
+
Icon = _this$props3.icon,
|
307
|
+
_this$props3$noWrap = _this$props3.noWrap,
|
308
|
+
noWrap = _this$props3$noWrap === void 0 ? false : _this$props3$noWrap,
|
309
|
+
endItem = _this$props3.endItem,
|
310
|
+
_onFocus = _this$props3.onFocus;
|
311
|
+
var inputFocused = _this.state.inputFocused;
|
312
|
+
var getInputProps = autocompleteHelpers.getInputProps;
|
313
|
+
var hasValue = Boolean(value && (!Array.isArray(value) || value.length > 0));
|
314
|
+
var showClearButton = !disabled && clearable && hasValue;
|
315
|
+
var shouldRenderCustomTemplate = Boolean(!multiple && !inputFocused && value && renderValueTemplate);
|
316
|
+
var status = fieldState.status;
|
317
|
+
var inputContainerClassName = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n autocomplete-container\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), variant === "large" && "autocomplete-large py-1", inputFocused && "autocomplete-focused", disabled && "autocomplete-disabled", status === "invalid" && "autocomplete-invalid", noWrap && "autocomplete-nowrap");
|
318
|
+
var inputClassName = (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n autocomplete-input py-1.5\n ", "\n ", "\n "])), multiple && "ml-1", shouldRenderCustomTemplate && hasValue && "h-0 w-0 opacity-0");
|
319
|
+
var inputProps = getInputProps({
|
320
|
+
id: id,
|
321
|
+
name: name,
|
322
|
+
disabled: disabled,
|
323
|
+
className: inputClassName,
|
324
|
+
type: "text",
|
325
|
+
placeholder: hasValue ? undefined : placeholder,
|
326
|
+
ref: function ref(input) {
|
327
|
+
return _this.inputRef = input;
|
328
|
+
},
|
329
|
+
onChange: _this.handleInputChange,
|
330
|
+
onFocus: function onFocus(evt) {
|
331
|
+
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(evt);
|
332
|
+
if (evt.defaultPrevented) {
|
333
|
+
return;
|
334
|
+
}
|
335
|
+
_this.setState({
|
336
|
+
inputFocused: true
|
337
|
+
});
|
338
|
+
|
339
|
+
// Doesn't work without the setTimeout :/
|
340
|
+
setTimeout(function () {
|
341
|
+
_this.updateInputWidth();
|
342
|
+
autocompleteHelpers.openMenu();
|
343
|
+
});
|
344
|
+
},
|
345
|
+
onBlur: _this.handleInputBlur(autocompleteHelpers),
|
346
|
+
onKeyDown: _this.handleKeyDown(autocompleteHelpers),
|
347
|
+
autoComplete: "off",
|
348
|
+
autoFocus: autoFocus
|
349
|
+
});
|
350
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
351
|
+
className: inputContainerClassName,
|
352
|
+
onClick: _this.handleFakeInputClick,
|
353
|
+
ref: _this.handleInputContainerRefUpdate,
|
354
|
+
children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
355
|
+
className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["mr-4 shrink-0 ", ""])), disabled ? "text-grey-200" : inputFocused ? "text-accent-600" : "text-grey-500"),
|
356
|
+
size: "1rem"
|
357
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
358
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["flex items-center flex-1 max-h-full ", " ", ""])), !noWrap && "flex-wrap overflow-y-scroll no-scrollbar", multiple && "-ml-1"), valuesClassName),
|
359
|
+
children: [multiple && Array.isArray(value) && value.map(function (option) {
|
360
|
+
return renderValueTemplate ? renderValueTemplate({
|
361
|
+
option: option,
|
362
|
+
key: String(option.value),
|
363
|
+
editable: !disabled
|
364
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tag["default"], {
|
365
|
+
onRemove: disabled ? undefined : function () {
|
366
|
+
return _this.removeValue(option);
|
367
|
+
},
|
368
|
+
className: (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["m-1 max-w-48 ", ""])), disabled && "opacity-50"),
|
369
|
+
children: option.label
|
370
|
+
}, String(option.value));
|
371
|
+
}), shouldRenderCustomTemplate && renderValueTemplate({
|
372
|
+
option: value,
|
373
|
+
key: String(value),
|
374
|
+
editable: !disabled
|
375
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({}, inputProps), {}, {
|
376
|
+
"data-lpignore": true
|
377
|
+
}))]
|
378
|
+
}), (showClearButton || !!endItem) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
379
|
+
className: (0, _clsx["default"])(showClearButton && endItem && (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["my-2 flex self-end space-x-4"])))),
|
380
|
+
children: [!!endItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
381
|
+
className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["text-grey-700 my-auto"]))),
|
382
|
+
children: endItem
|
383
|
+
}), showClearButton && /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
384
|
+
type: "button",
|
385
|
+
className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["w-6 flex items-center justify-center text-grey-500"]))),
|
386
|
+
onClick: _this.handleClearClick,
|
387
|
+
"aria-label": _this.locale.clearInputButton,
|
388
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.X, {
|
389
|
+
size: ".75rem"
|
390
|
+
})
|
391
|
+
})]
|
392
|
+
})]
|
393
|
+
});
|
394
|
+
});
|
395
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderMenu", function (results, autocompleteHelpers) {
|
396
|
+
var _this$inputContainerR3;
|
397
|
+
var getItemProps = autocompleteHelpers.getItemProps,
|
398
|
+
getMenuProps = autocompleteHelpers.getMenuProps,
|
399
|
+
highlightedIndex = autocompleteHelpers.highlightedIndex,
|
400
|
+
inputValue = autocompleteHelpers.inputValue,
|
401
|
+
isOpen = autocompleteHelpers.isOpen;
|
402
|
+
var defaultEmptyState = /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultEmptyState, {
|
403
|
+
emptyStateTitle: _this.locale.emptyStateTitle
|
404
|
+
});
|
405
|
+
var _this$props4 = _this.props,
|
406
|
+
menuClassName = _this$props4.menuClassName,
|
407
|
+
menuSize = _this$props4.menuSize,
|
408
|
+
menuFooter = _this$props4.menuFooter,
|
409
|
+
_this$props4$emptySta = _this$props4.emptyState,
|
410
|
+
emptyState = _this$props4$emptySta === void 0 ? defaultEmptyState : _this$props4$emptySta,
|
411
|
+
_this$props4$maxResul = _this$props4.maxResults,
|
412
|
+
maxResults = _this$props4$maxResul === void 0 ? AutoComplete.defaultProps.maxResults : _this$props4$maxResul,
|
413
|
+
_this$props4$multiple = _this$props4.multiple,
|
414
|
+
multiple = _this$props4$multiple === void 0 ? AutoComplete.defaultProps.multiple : _this$props4$multiple,
|
415
|
+
_this$props4$optionIt = _this$props4.optionItemComponent,
|
416
|
+
OptionItem = _this$props4$optionIt === void 0 ? AutoComplete.defaultProps.optionItemComponent : _this$props4$optionIt;
|
417
|
+
var _this$state = _this.state,
|
418
|
+
inputWidth = _this$state.inputWidth,
|
419
|
+
showAllResults = _this$state.showAllResults;
|
420
|
+
var dropdownStyle = inputWidth ? {
|
421
|
+
minWidth: inputWidth,
|
422
|
+
maxWidth: "42vw"
|
423
|
+
} : undefined;
|
424
|
+
var optionItemProps = {
|
425
|
+
multiple: multiple,
|
426
|
+
inputValue: inputValue || ""
|
427
|
+
};
|
428
|
+
var extraResults = results.length - maxResults;
|
429
|
+
var shouldShowDefaultEmptyState = emptyState === defaultEmptyState && results.length === 0 && !!(inputValue !== null && inputValue !== void 0 && inputValue.length);
|
430
|
+
var shouldShowEmptyState = emptyState !== defaultEmptyState && !!emptyState && results.length === 0;
|
431
|
+
var showResults = results.length > 0;
|
432
|
+
if (!isOpen || !showResults && !shouldShowEmptyState && !shouldShowDefaultEmptyState) {
|
433
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", _objectSpread(_objectSpread({}, getMenuProps()), {}, {
|
434
|
+
className: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["hidden h-0"])))
|
435
|
+
}));
|
436
|
+
}
|
437
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactPopper.Popper, {
|
438
|
+
placement: "bottom-start",
|
439
|
+
strategy: "fixed",
|
440
|
+
referenceElement: (_this$inputContainerR3 = _this.inputContainerRef) !== null && _this$inputContainerR3 !== void 0 ? _this$inputContainerR3 : undefined,
|
441
|
+
modifiers: MENU_POPPER_MODFIERS,
|
442
|
+
innerRef: function innerRef(wrapperEl) {
|
443
|
+
return _this.menuWrapperRef = wrapperEl;
|
444
|
+
},
|
445
|
+
children: function children(popper) {
|
446
|
+
var _getMenuProps = getMenuProps({
|
447
|
+
ref: popper.ref
|
448
|
+
}),
|
449
|
+
menuRef = _getMenuProps.ref,
|
450
|
+
menuProps = (0, _objectWithoutProperties2["default"])(_getMenuProps, _excluded2);
|
451
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickAwayContainer.ClickAwayContainer, {
|
452
|
+
element: _this.menuWrapperRef,
|
453
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
454
|
+
/**
|
455
|
+
* We put the `menuRef` on a different element than the menu props so that Downshift correctly includes
|
456
|
+
* the entire Popper element when identifying a click outside. We keep the rest of the`menuProps` on the
|
457
|
+
* `ul` itself for accessibility reasons (it needs to be the direct parent of menu item elements).
|
458
|
+
* While a bit hackish, we made sure that Downshift only uses the ref to compute click outside and not
|
459
|
+
* anything else:
|
460
|
+
* https://github.com/downshift-js/downshift/blob/3fb0ed21278c5f1d0a077ed9b1d0dfd55a75c71b/src/downshift.js#L951
|
461
|
+
*/
|
462
|
+
ref: menuRef,
|
463
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["z-dropdown"]))), menuClassName),
|
464
|
+
style: _objectSpread(_objectSpread({}, popper.style), dropdownStyle),
|
465
|
+
"data-popper-placement": popper.placement,
|
466
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card["default"], {
|
467
|
+
fullBleed: true,
|
468
|
+
elevation: "300",
|
469
|
+
children: [results.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, menuProps), {}, {
|
470
|
+
className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["min-h-10"]))),
|
471
|
+
children: emptyState
|
472
|
+
})) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScrollIndicator["default"], {
|
473
|
+
className: menuSize === "large" ? (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["max-h-96"]))) : (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["max-h-64"]))),
|
474
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", _objectSpread(_objectSpread({}, menuProps), {}, {
|
475
|
+
children: [results.slice(0, showAllResults ? Number.MAX_SAFE_INTEGER : maxResults).map(function (result, index) {
|
476
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", _objectSpread(_objectSpread({}, getItemProps({
|
477
|
+
item: result,
|
478
|
+
disabled: result.disabled,
|
479
|
+
className: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["\n autocomplete-result\n flex items-center min-h-10 px-4 cursor-pointer\n ", "\n ", "\n "])), index === highlightedIndex && "bg-grey-100", result.disabled && "cursor-not-allowed")
|
480
|
+
})), {}, {
|
481
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionItem, _objectSpread(_objectSpread({}, optionItemProps), {}, {
|
482
|
+
highlighted: index === highlightedIndex,
|
483
|
+
option: result,
|
484
|
+
optionItemPrefix: _this.locale.optionItemPrefix
|
485
|
+
}))
|
486
|
+
}), result.value);
|
487
|
+
}), extraResults > 0 && !showAllResults && /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
488
|
+
className: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["p-2 text-right"]))),
|
489
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button["default"], {
|
490
|
+
variant: "subtle",
|
491
|
+
size: "small",
|
492
|
+
onMouseDown: _this.handleShowAllResults,
|
493
|
+
children: _this.locale.showMoreButton(extraResults)
|
494
|
+
})
|
495
|
+
})]
|
496
|
+
}))
|
497
|
+
}), !!menuFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("footer", {
|
498
|
+
className: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["flex items-center justify-center min-h-12 p-4 bg-grey-100 border-t border-grey-200 text-grey-600"]))),
|
499
|
+
children: menuFooter
|
500
|
+
})]
|
501
|
+
})
|
502
|
+
})
|
503
|
+
});
|
504
|
+
}
|
505
|
+
});
|
506
|
+
});
|
507
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderSelect", function (autocompleteHelpers, fieldState) {
|
508
|
+
var _this$context$portalT;
|
509
|
+
var _this$props5 = _this.props,
|
510
|
+
className = _this$props5.className,
|
511
|
+
options = _this$props5.options,
|
512
|
+
value = _this$props5.value,
|
513
|
+
creatable = _this$props5.creatable,
|
514
|
+
_this$props5$createFr = _this$props5.createFromInputValue,
|
515
|
+
createFromInputValue = _this$props5$createFr === void 0 ? AutoComplete.defaultProps.createFromInputValue : _this$props5$createFr;
|
516
|
+
var inputValue = autocompleteHelpers.inputValue || "";
|
517
|
+
var results = options ? filter(options, Array.isArray(value) ? value : [], inputValue) : [];
|
518
|
+
var emptyInputValue = !inputValue || inputValue.trim().length === 0;
|
519
|
+
if (creatable && !emptyInputValue) {
|
520
|
+
results.unshift.apply(results, (0, _toConsumableArray2["default"])(createFromInputValue(options, inputValue)));
|
521
|
+
}
|
522
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
523
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["flex"]))), className),
|
524
|
+
children: [_this.renderInput(autocompleteHelpers, fieldState), _this.inputContainerRef && /*#__PURE__*/(0, _reactDom.createPortal)(_this.renderMenu(results, autocompleteHelpers), (_this$context$portalT = _this.context["portalTarget"]) !== null && _this$context$portalT !== void 0 ? _this$context$portalT : document.body)]
|
525
|
+
});
|
526
|
+
});
|
527
|
+
return _this;
|
528
|
+
}
|
529
|
+
(0, _createClass2["default"])(AutoComplete, [{
|
530
|
+
key: "componentDidUpdate",
|
531
|
+
value: function componentDidUpdate(prevProps) {
|
532
|
+
// Only interested in updating inputValue from props for now
|
533
|
+
// (which should only happen when this.props.multiple === false)
|
534
|
+
if (this.props.multiple) return;
|
535
|
+
var prevPropsInputValue = inputValueFromProps(prevProps);
|
536
|
+
var propsInputValue = inputValueFromProps(this.props);
|
537
|
+
var shouldUpdateInputValueFromProps = prevPropsInputValue !== propsInputValue && this.state.inputValue !== propsInputValue;
|
538
|
+
if (shouldUpdateInputValueFromProps) {
|
539
|
+
this.setState({
|
540
|
+
inputValue: propsInputValue
|
541
|
+
});
|
542
|
+
}
|
543
|
+
}
|
544
|
+
}, {
|
545
|
+
key: "locale",
|
546
|
+
get: function get() {
|
547
|
+
return _objectSpread(_objectSpread(_objectSpread({}, _utils.DEFAULT_AUTOCOMPLETE_LOCALE), this.context["locales"]), this.props.locale);
|
548
|
+
}
|
549
|
+
}, {
|
550
|
+
key: "render",
|
551
|
+
value: function render() {
|
552
|
+
var _this2 = this;
|
553
|
+
var inputValue = (this.props.inputValue !== undefined ? this.props.inputValue : this.state.inputValue) || "";
|
554
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FieldStateContext.FieldStateContext.Consumer, {
|
555
|
+
children: function children(fieldState) {
|
556
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_downshift["default"], {
|
557
|
+
inputValue: inputValue
|
558
|
+
/*
|
559
|
+
* See https://github.com/algolia/AlgoliaWeb/issues/9045
|
560
|
+
* See multi-select example
|
561
|
+
* https://github.com/downshift-js/downshift#examples
|
562
|
+
* https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=/src/ordered-examples/04-multi-select.js&moduleview=1&file=/src/ordered-examples/04-multi-select.js:2482-2509
|
563
|
+
*/,
|
564
|
+
selectedItem: null,
|
565
|
+
getA11yStatusMessage: _this2.getA11yStatusMessage,
|
566
|
+
onChange: _this2.handleChange,
|
567
|
+
itemToString: optionToString,
|
568
|
+
defaultHighlightedIndex: 0,
|
569
|
+
children: function children(autocompleteHelpers) {
|
570
|
+
return _this2.renderSelect(autocompleteHelpers, fieldState);
|
571
|
+
}
|
572
|
+
});
|
573
|
+
}
|
574
|
+
});
|
575
|
+
}
|
576
|
+
}]);
|
577
|
+
return AutoComplete;
|
578
|
+
}(_react.Component);
|
579
|
+
exports.AutoComplete = AutoComplete;
|
580
|
+
(0, _defineProperty2["default"])(AutoComplete, "contextType", _Satellite.SatelliteContext);
|
581
|
+
(0, _defineProperty2["default"])(AutoComplete, "defaultProps", {
|
582
|
+
clearable: false,
|
583
|
+
creatable: false,
|
584
|
+
multiple: false,
|
585
|
+
maxResults: 7,
|
586
|
+
createFromInputValue: _utils.defaultCreateFromInputValue,
|
587
|
+
options: [],
|
588
|
+
separatorKeys: [],
|
589
|
+
optionItemComponent: DefaultOption,
|
590
|
+
noWrap: false
|
591
|
+
});
|
592
|
+
var _default = AutoComplete;
|
593
|
+
exports["default"] = _default;
|