@algolia/satellite 1.0.0-beta.14 → 1.0.0-beta.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +66 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +32 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +67 -0
- package/cjs/AutoComplete/AutoComplete.js +677 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.js +96 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +46 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +46 -0
- package/cjs/AutoComplete/index.d.ts +5 -0
- package/cjs/AutoComplete/index.js +74 -0
- package/cjs/AutoComplete/types.d.ts +86 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +5 -0
- package/{components → cjs}/AutoComplete/utils.js +27 -2
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +46 -0
- package/cjs/Avatars/UserAvatar.d.ts +13 -0
- package/cjs/Avatars/UserAvatar.js +71 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +46 -0
- package/cjs/Avatars/types.d.ts +17 -0
- package/cjs/Avatars/types.js +5 -0
- package/cjs/Avatars/utils.d.ts +6 -0
- package/cjs/Avatars/utils.js +90 -0
- package/cjs/Badge/Badge.d.ts +35 -0
- package/cjs/Badge/Badge.js +98 -0
- package/cjs/Badge/index.d.ts +2 -0
- package/cjs/Badge/index.js +32 -0
- package/cjs/Banners/Alert/Alert.d.ts +74 -0
- package/cjs/Banners/Alert/Alert.js +150 -0
- package/{types/components → cjs/Banners}/Alert/index.d.ts +0 -0
- package/cjs/Banners/Alert/index.js +32 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +70 -0
- package/cjs/Banners/BigBertha/index.d.ts +2 -0
- package/cjs/Banners/BigBertha/index.js +32 -0
- package/cjs/Banners/Promote/Promote.d.ts +57 -0
- package/cjs/Banners/Promote/Promote.js +122 -0
- package/cjs/Banners/Promote/index.d.ts +2 -0
- package/cjs/Banners/Promote/index.js +32 -0
- package/cjs/Banners/index.d.ts +3 -0
- package/cjs/Banners/index.js +44 -0
- package/cjs/Button/Button.d.ts +21 -0
- package/cjs/Button/Button.js +100 -0
- package/cjs/Button/Button.tailwind.d.ts +5 -0
- package/cjs/Button/Button.tailwind.js +157 -0
- package/cjs/Button/ButtonGroup.d.ts +17 -0
- package/cjs/Button/ButtonGroup.js +38 -0
- package/cjs/Button/IconButton.d.ts +17 -0
- package/cjs/Button/IconButton.js +100 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +74 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +47 -0
- package/cjs/Button/types.d.ts +27 -0
- package/cjs/Button/types.js +10 -0
- package/cjs/Card/Card.d.ts +32 -0
- package/cjs/Card/Card.js +61 -0
- package/cjs/Card/Card.tailwind.d.ts +5 -0
- package/cjs/Card/Card.tailwind.js +37 -0
- package/cjs/Card/components/CardHeader.d.ts +4 -0
- package/cjs/Card/components/CardHeader.js +40 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +42 -0
- package/cjs/Card/index.d.ts +4 -0
- package/cjs/Card/index.js +60 -0
- package/cjs/Checkbox/Checkbox.d.ts +24 -0
- package/cjs/Checkbox/Checkbox.js +121 -0
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/cjs/Checkbox/Checkbox.tailwind.js +67 -0
- package/{types/components → cjs}/Checkbox/index.d.ts +0 -0
- package/cjs/Checkbox/index.js +32 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +99 -0
- package/cjs/ClickAwayContainer/index.d.ts +1 -0
- package/cjs/ClickAwayContainer/index.js +18 -0
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +197 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +68 -0
- package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/DatePicker/index.js +46 -0
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.tailwind.js +194 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +299 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +49 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +126 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +24 -0
- package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/cjs/DatePicker/DateRangePicker/index.js +60 -0
- package/cjs/DatePicker/components/Calendar.d.ts +17 -0
- package/cjs/DatePicker/components/Calendar.js +72 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +31 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +27 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +41 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +91 -0
- package/cjs/DatePicker/components/NavBar.d.ts +10 -0
- package/cjs/DatePicker/components/NavBar.js +136 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +30 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +55 -0
- package/cjs/DatePicker/index.d.ts +5 -0
- package/cjs/DatePicker/index.js +69 -0
- package/cjs/DatePicker/types.d.ts +30 -0
- package/cjs/DatePicker/types.js +5 -0
- package/cjs/DatePicker/utils.d.ts +10 -0
- package/cjs/DatePicker/utils.js +52 -0
- package/cjs/Dropdown/Dropdown.d.ts +64 -0
- package/cjs/Dropdown/Dropdown.js +171 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +63 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +25 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +60 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +76 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +25 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +23 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +47 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +43 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +72 -0
- package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/cjs/Dropdown/components/DropdownDivider.js +26 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +44 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +14 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +64 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +60 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +40 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +63 -0
- package/cjs/Dropdown/index.d.ts +13 -0
- package/cjs/Dropdown/index.js +186 -0
- package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/cjs/Dropdown/useDropdownItemProps.js +53 -0
- package/cjs/Dropzone/Dropzone.d.ts +20 -0
- package/cjs/Dropzone/Dropzone.js +194 -0
- package/cjs/Dropzone/index.d.ts +2 -0
- package/cjs/Dropzone/index.js +32 -0
- package/cjs/EmptyState/EmptyState.d.ts +28 -0
- package/cjs/EmptyState/EmptyState.js +136 -0
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/cjs/EmptyState/EmptyState.tailwind.js +16 -0
- package/cjs/EmptyState/index.d.ts +3 -0
- package/cjs/EmptyState/index.js +46 -0
- package/cjs/EmptyState/types.d.ts +65 -0
- package/cjs/EmptyState/types.js +5 -0
- package/cjs/Field/Field.d.ts +54 -0
- package/cjs/Field/Field.js +109 -0
- package/cjs/Field/FieldStateContext.d.ts +12 -0
- package/cjs/Field/FieldStateContext.js +17 -0
- package/cjs/Field/index.d.ts +4 -0
- package/cjs/Field/index.js +60 -0
- package/cjs/Field/useFieldState.d.ts +2 -0
- package/cjs/Field/useFieldState.js +24 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +138 -0
- package/cjs/Flag/Flag.tailwind.d.ts +5 -0
- package/cjs/Flag/Flag.tailwind.js +35 -0
- package/cjs/Flag/Flags.d.ts +48 -0
- package/cjs/Flag/Flags.js +106 -0
- package/cjs/Flag/index.d.ts +4 -0
- package/cjs/Flag/index.js +60 -0
- package/cjs/Flag/types.d.ts +22 -0
- package/cjs/Flag/types.js +5 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +17 -0
- package/cjs/FlexGrid/FlexGrid.js +81 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.js +78 -0
- package/cjs/FlexGrid/index.d.ts +2 -0
- package/cjs/FlexGrid/index.js +32 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/cjs/HelpUnderline/HelpUnderline.js +43 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +22 -0
- package/{types/components → cjs}/HelpUnderline/index.d.ts +0 -0
- package/cjs/HelpUnderline/index.js +32 -0
- package/cjs/Input/Input.d.ts +26 -0
- package/cjs/Input/Input.js +256 -0
- package/cjs/Input/Input.tailwind.d.ts +5 -0
- package/cjs/Input/Input.tailwind.js +102 -0
- package/{types/components → cjs}/Input/index.d.ts +0 -0
- package/cjs/Input/index.js +32 -0
- package/cjs/Insert/Insert.d.ts +45 -0
- package/cjs/Insert/Insert.js +89 -0
- package/cjs/Insert/index.d.ts +2 -0
- package/cjs/Insert/index.js +32 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.js +382 -0
- package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/cjs/KeyboardKey/KeyboardKey.js +48 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +30 -0
- package/cjs/KeyboardKey/index.d.ts +2 -0
- package/{components/Alert → cjs/KeyboardKey}/index.js +5 -6
- package/cjs/Link/BaseLink.d.ts +4 -0
- package/cjs/Link/BaseLink.js +41 -0
- package/cjs/Link/ButtonLink.d.ts +5 -0
- package/cjs/Link/ButtonLink.js +50 -0
- package/cjs/Link/IconButtonLink.d.ts +6 -0
- package/cjs/Link/IconButtonLink.js +41 -0
- package/cjs/Link/Link.d.ts +11 -0
- package/cjs/Link/Link.js +69 -0
- package/cjs/Link/index.d.ts +5 -0
- package/cjs/Link/index.js +74 -0
- package/cjs/Medallion/Medallion.d.ts +11 -0
- package/cjs/Medallion/Medallion.js +50 -0
- package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
- package/cjs/Medallion/Medallion.tailwind.js +34 -0
- package/cjs/Medallion/index.d.ts +3 -0
- package/cjs/Medallion/index.js +46 -0
- package/cjs/Medallion/types.d.ts +2 -0
- package/cjs/Medallion/types.js +5 -0
- package/cjs/Modal/Modal.d.ts +23 -0
- package/cjs/Modal/Modal.js +194 -0
- package/cjs/Modal/Modal.tailwind.d.ts +5 -0
- package/cjs/Modal/Modal.tailwind.js +45 -0
- package/cjs/Modal/components/ModalFooter.d.ts +6 -0
- package/cjs/Modal/components/ModalFooter.js +48 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +33 -0
- package/cjs/Modal/index.d.ts +4 -0
- package/cjs/Modal/index.js +60 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +104 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +32 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +14 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +62 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +32 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
- package/cjs/Pagination/Pagination/Pagination.js +149 -0
- package/{types/components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- package/cjs/Pagination/Pagination/index.js +32 -0
- package/cjs/Pagination/index.d.ts +4 -0
- package/cjs/Pagination/index.js +60 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +13 -0
- package/cjs/ProgressBar/ProgressBar.js +59 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.js +27 -0
- package/cjs/ProgressBar/index.d.ts +2 -0
- package/cjs/ProgressBar/index.js +32 -0
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +66 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +37 -0
- package/cjs/ProgressSpinner/index.d.ts +2 -0
- package/cjs/ProgressSpinner/index.js +32 -0
- package/cjs/RadioGroup/RadioButton.d.ts +4 -0
- package/cjs/RadioGroup/RadioButton.js +44 -0
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/cjs/RadioGroup/RadioButton.tailwind.js +58 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +40 -0
- package/cjs/RadioGroup/RadioGroup.js +125 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/cjs/RadioGroup/RadiogroupContext.js +23 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +60 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +18 -0
- package/cjs/RangeSlider/RangeSlider.js +129 -0
- package/cjs/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
- package/cjs/RangeSlider/RangeSlider.tailwind.js +75 -0
- package/cjs/RangeSlider/index.d.ts +2 -0
- package/cjs/RangeSlider/index.js +32 -0
- package/cjs/Satellite/Satellite.d.ts +11 -0
- package/cjs/Satellite/Satellite.js +34 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +34 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +56 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +88 -0
- package/cjs/Satellite/locale.d.ts +29 -0
- package/cjs/Satellite/locale.js +21 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +29 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +111 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +52 -0
- package/cjs/ScrollIndicator/index.d.ts +2 -0
- package/cjs/ScrollIndicator/index.js +32 -0
- package/cjs/Select/Select.d.ts +15 -0
- package/cjs/Select/Select.js +59 -0
- package/cjs/Select/Select.tailwind.d.ts +5 -0
- package/cjs/Select/Select.tailwind.js +79 -0
- package/{types/components → cjs}/Select/index.d.ts +0 -0
- package/cjs/Select/index.js +32 -0
- package/cjs/Sidebar/Sidebar.d.ts +35 -0
- package/cjs/Sidebar/Sidebar.js +81 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/cjs/Sidebar/SidebarButtonLink.js +110 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +23 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
- package/cjs/Sidebar/SidebarHeader.js +29 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeading.js +37 -0
- package/cjs/Sidebar/SidebarLink.d.ts +8 -0
- package/cjs/Sidebar/SidebarLink.js +58 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +47 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +40 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +120 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +18 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
- package/cjs/Sidebar/SidebarNav.d.ts +10 -0
- package/cjs/Sidebar/SidebarNav.js +48 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +128 -0
- package/cjs/Sidebar/types.d.ts +6 -0
- package/cjs/Sidebar/types.js +5 -0
- package/cjs/Switch/Switch.d.ts +13 -0
- package/cjs/Switch/Switch.js +107 -0
- package/cjs/Switch/Switch.tailwind.d.ts +5 -0
- package/cjs/Switch/Switch.tailwind.js +26 -0
- package/cjs/Switch/SwitchOption.d.ts +8 -0
- package/cjs/Switch/SwitchOption.js +58 -0
- package/cjs/Switch/index.d.ts +3 -0
- package/cjs/Switch/index.js +46 -0
- package/cjs/Switch/types.d.ts +7 -0
- package/cjs/Switch/types.js +5 -0
- package/cjs/Switch/utils.d.ts +6 -0
- package/cjs/Switch/utils.js +31 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +60 -0
- package/cjs/Tables/DataTable/DataTable.js +303 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
- package/cjs/Tables/DataTable/components/Body.d.ts +15 -0
- package/cjs/Tables/DataTable/components/Body.js +140 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +81 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +48 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +77 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Loader.js +62 -0
- package/cjs/Tables/DataTable/components/index.d.ts +5 -0
- package/cjs/Tables/DataTable/components/index.js +70 -0
- package/cjs/Tables/DataTable/index.d.ts +3 -0
- package/cjs/Tables/DataTable/index.js +46 -0
- package/cjs/Tables/DataTable/types.d.ts +49 -0
- package/cjs/Tables/DataTable/types.js +5 -0
- package/cjs/Tables/DataTable/utils.d.ts +4 -0
- package/cjs/Tables/DataTable/utils.js +32 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +76 -0
- package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
- package/cjs/Tables/Table/Table.tailwind.js +40 -0
- package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
- package/cjs/Tables/Table/components/TableFooter.js +36 -0
- package/cjs/Tables/Table/index.d.ts +3 -0
- package/cjs/Tables/Table/index.js +46 -0
- package/cjs/Tables/index.d.ts +3 -0
- package/cjs/Tables/index.js +46 -0
- package/cjs/Tabs/ContentTabs.d.ts +4 -0
- package/cjs/Tabs/ContentTabs.js +96 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +91 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +54 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +111 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +60 -0
- package/cjs/Tabs/types.d.ts +35 -0
- package/cjs/Tabs/types.js +5 -0
- package/cjs/Tabs/utils.d.ts +2 -0
- package/cjs/Tabs/utils.js +24 -0
- package/cjs/Tag/Tag.d.ts +38 -0
- package/cjs/Tag/Tag.js +122 -0
- package/cjs/Tag/Tag.tailwind.d.ts +5 -0
- package/cjs/Tag/Tag.tailwind.js +39 -0
- package/cjs/Tag/index.d.ts +2 -0
- package/cjs/Tag/index.js +32 -0
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +43 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +42 -0
- package/{types/components → cjs}/TextArea/index.d.ts +0 -0
- package/cjs/TextArea/index.js +32 -0
- package/cjs/TextWrap/TextWrap.d.ts +7 -0
- package/cjs/TextWrap/TextWrap.js +70 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +32 -0
- package/cjs/Toggle/Toggle.d.ts +10 -0
- package/cjs/Toggle/Toggle.js +93 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +68 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +32 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +131 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +67 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +115 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +28 -0
- package/cjs/Tooltip/TooltipWrapper.js +219 -0
- package/{types/components → cjs}/Tooltip/index.d.ts +1 -0
- package/cjs/Tooltip/index.js +60 -0
- package/cjs/Tooltip/types.d.ts +14 -0
- package/cjs/Tooltip/types.js +5 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -0
- package/cjs/Typography/Typography.tailwind.js +176 -0
- package/cjs/UserContent/UserContent.d.ts +8 -0
- package/cjs/UserContent/UserContent.js +37 -0
- package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
- package/cjs/UserContent/UserContent.tailwind.js +150 -0
- package/cjs/index.d.ts +46 -0
- package/cjs/index.js +633 -0
- package/cjs/package.json +3 -0
- package/cjs/styles/base.tailwind.d.ts +5 -0
- package/cjs/styles/base.tailwind.js +46 -0
- package/cjs/styles/brandColors.d.ts +42 -0
- package/cjs/styles/brandColors.js +48 -0
- package/cjs/styles/colors.d.ts +81 -0
- package/cjs/styles/colors.js +87 -0
- package/cjs/styles/disabledColor.d.ts +6 -0
- package/cjs/styles/disabledColor.js +17 -0
- package/cjs/styles/helpers/icons.d.ts +15 -0
- package/cjs/styles/helpers/icons.js +45 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.js +62 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.js +44 -0
- package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
- package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/cjs/styles/helpers/satellitePrefixer.js +9 -0
- package/cjs/styles/rgba.d.ts +8 -0
- package/cjs/styles/rgba.js +17 -0
- package/cjs/styles/tailwind.config.d.ts +2 -0
- package/cjs/styles/tailwind.config.js +151 -0
- package/cjs/styles/zIndexes.d.ts +7 -0
- package/cjs/styles/zIndexes.js +13 -0
- package/cjs/types.d.ts +19 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/utilities.tailwind.d.ts +5 -0
- package/cjs/utilities/utilities.tailwind.js +30 -0
- package/cjs/utils/event-polyfill.d.ts +0 -0
- package/cjs/utils/event-polyfill.js +27 -0
- package/cjs/utils/formatters.d.ts +25 -0
- package/cjs/utils/formatters.js +51 -0
- package/cjs/utils/genericChangeHandler.d.ts +5 -0
- package/{utils → cjs/utils}/genericChangeHandler.js +1 -1
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +28 -0
- package/cjs/utils/index.d.ts +8 -0
- package/{utils → cjs/utils}/index.js +13 -13
- package/cjs/utils/isCssPropertySupported.d.ts +2 -0
- package/cjs/utils/isCssPropertySupported.js +19 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +31 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +18 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +17 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +49 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +25 -0
- package/{types → cjs}/utils/pluralize.d.ts +0 -0
- package/{utils → cjs/utils}/pluralize.js +7 -2
- package/{types → cjs}/utils/range.d.ts +0 -0
- package/{utils → cjs/utils}/range.js +1 -1
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +21 -0
- package/{types → cjs}/utils/uniqBy.d.ts +0 -0
- package/{utils → cjs/utils}/uniqBy.js +1 -1
- package/{types → cjs}/utils/uniqueId.d.ts +0 -0
- package/{utils → cjs/utils}/uniqueId.js +1 -1
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +31 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +67 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +30 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +47 -0
- package/esm/AnnouncementBadge/index.d.ts +2 -0
- package/esm/AnnouncementBadge/index.js +2 -0
- package/esm/AutoComplete/AutoComplete.d.ts +67 -0
- package/esm/AutoComplete/AutoComplete.js +664 -0
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/esm/AutoComplete/AutoComplete.tailwind.js +94 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +31 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +36 -0
- package/esm/AutoComplete/index.d.ts +5 -0
- package/esm/AutoComplete/index.js +5 -0
- package/esm/AutoComplete/types.d.ts +86 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +5 -0
- package/esm/AutoComplete/utils.js +43 -0
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +30 -0
- package/esm/Avatars/UserAvatar.d.ts +13 -0
- package/esm/Avatars/UserAvatar.js +55 -0
- package/esm/Avatars/index.d.ts +3 -0
- package/esm/Avatars/index.js +3 -0
- package/esm/Avatars/types.d.ts +17 -0
- package/esm/Avatars/types.js +1 -0
- package/esm/Avatars/utils.d.ts +6 -0
- package/esm/Avatars/utils.js +64 -0
- package/esm/Badge/Badge.d.ts +35 -0
- package/esm/Badge/Badge.js +82 -0
- package/esm/Badge/index.d.ts +2 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Banners/Alert/Alert.d.ts +74 -0
- package/esm/Banners/Alert/Alert.js +134 -0
- package/esm/Banners/Alert/index.d.ts +2 -0
- package/esm/Banners/Alert/index.js +2 -0
- package/esm/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/esm/Banners/BigBertha/BigBertha.js +57 -0
- package/esm/Banners/BigBertha/index.d.ts +2 -0
- package/esm/Banners/BigBertha/index.js +2 -0
- package/esm/Banners/Promote/Promote.d.ts +57 -0
- package/esm/Banners/Promote/Promote.js +105 -0
- package/esm/Banners/Promote/index.d.ts +2 -0
- package/esm/Banners/Promote/index.js +2 -0
- package/esm/Banners/index.d.ts +3 -0
- package/esm/Banners/index.js +3 -0
- package/esm/Button/Button.d.ts +21 -0
- package/esm/Button/Button.js +80 -0
- package/esm/Button/Button.tailwind.d.ts +5 -0
- package/esm/Button/Button.tailwind.js +155 -0
- package/esm/Button/ButtonGroup.d.ts +17 -0
- package/esm/Button/ButtonGroup.js +24 -0
- package/esm/Button/IconButton.d.ts +17 -0
- package/esm/Button/IconButton.js +80 -0
- package/esm/Button/index.d.ts +5 -0
- package/esm/Button/index.js +5 -0
- package/esm/Button/styles.d.ts +5 -0
- package/esm/Button/styles.js +31 -0
- package/esm/Button/types.d.ts +27 -0
- package/esm/Button/types.js +3 -0
- package/esm/Card/Card.d.ts +32 -0
- package/esm/Card/Card.js +43 -0
- package/esm/Card/Card.tailwind.d.ts +5 -0
- package/esm/Card/Card.tailwind.js +35 -0
- package/esm/Card/components/CardHeader.d.ts +4 -0
- package/esm/Card/components/CardHeader.js +24 -0
- package/esm/Card/components/CardTitle.d.ts +6 -0
- package/esm/Card/components/CardTitle.js +26 -0
- package/esm/Card/index.d.ts +4 -0
- package/esm/Card/index.js +4 -0
- package/esm/Checkbox/Checkbox.d.ts +24 -0
- package/esm/Checkbox/Checkbox.js +103 -0
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/esm/Checkbox/Checkbox.tailwind.js +65 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +2 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.js +78 -0
- package/esm/ClickAwayContainer/index.d.ts +1 -0
- package/esm/ClickAwayContainer/index.js +1 -0
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/esm/DatePicker/DatePicker/DatePicker.js +176 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.js +52 -0
- package/esm/DatePicker/DatePicker/index.d.ts +3 -0
- package/esm/DatePicker/DatePicker/index.js +3 -0
- package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/esm/DatePicker/DatePicker.tailwind.js +189 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +277 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +37 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +104 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
- package/esm/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/esm/DatePicker/DateRangePicker/index.js +4 -0
- package/esm/DatePicker/components/Calendar.d.ts +17 -0
- package/esm/DatePicker/components/Calendar.js +57 -0
- package/esm/DatePicker/components/Display.d.ts +10 -0
- package/esm/DatePicker/components/Display.js +19 -0
- package/esm/DatePicker/components/Footer.d.ts +6 -0
- package/esm/DatePicker/components/Footer.js +16 -0
- package/esm/DatePicker/components/FooterActions.d.ts +12 -0
- package/esm/DatePicker/components/FooterActions.js +30 -0
- package/esm/DatePicker/components/Modal.d.ts +16 -0
- package/esm/DatePicker/components/Modal.js +70 -0
- package/esm/DatePicker/components/NavBar.d.ts +10 -0
- package/esm/DatePicker/components/NavBar.js +118 -0
- package/esm/DatePicker/components/SidePanel.d.ts +6 -0
- package/esm/DatePicker/components/SidePanel.js +19 -0
- package/esm/DatePicker/components/index.d.ts +12 -0
- package/esm/DatePicker/components/index.js +6 -0
- package/esm/DatePicker/index.d.ts +5 -0
- package/esm/DatePicker/index.js +5 -0
- package/esm/DatePicker/types.d.ts +30 -0
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.d.ts +10 -0
- package/esm/DatePicker/utils.js +30 -0
- package/esm/Dropdown/Dropdown.d.ts +64 -0
- package/esm/Dropdown/Dropdown.js +138 -0
- package/esm/Dropdown/DropdownButton.d.ts +11 -0
- package/esm/Dropdown/DropdownButton.js +45 -0
- package/esm/Dropdown/DropdownContext.d.ts +7 -0
- package/esm/Dropdown/DropdownContext.js +12 -0
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +43 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +58 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +14 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +11 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +32 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +29 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
- package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/esm/Dropdown/components/DropdownDivider.js +12 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +28 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +14 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +46 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/esm/Dropdown/components/DropdownRadioItem.js +43 -0
- package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/esm/Dropdown/components/DropdownTitle.js +24 -0
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +45 -0
- package/esm/Dropdown/index.d.ts +13 -0
- package/esm/Dropdown/index.js +13 -0
- package/esm/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/esm/Dropdown/useDropdownItemProps.js +37 -0
- package/esm/Dropzone/Dropzone.d.ts +20 -0
- package/esm/Dropzone/Dropzone.js +169 -0
- package/esm/Dropzone/index.d.ts +2 -0
- package/esm/Dropzone/index.js +2 -0
- package/esm/EmptyState/EmptyState.d.ts +28 -0
- package/esm/EmptyState/EmptyState.js +121 -0
- package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/esm/EmptyState/EmptyState.tailwind.js +14 -0
- package/esm/EmptyState/index.d.ts +3 -0
- package/esm/EmptyState/index.js +3 -0
- package/esm/EmptyState/types.d.ts +65 -0
- package/esm/EmptyState/types.js +1 -0
- package/esm/Field/Field.d.ts +54 -0
- package/esm/Field/Field.js +88 -0
- package/esm/Field/FieldStateContext.d.ts +12 -0
- package/esm/Field/FieldStateContext.js +6 -0
- package/esm/Field/index.d.ts +4 -0
- package/esm/Field/index.js +4 -0
- package/esm/Field/useFieldState.d.ts +2 -0
- package/esm/Field/useFieldState.js +6 -0
- package/esm/Flag/Flag.d.ts +6 -0
- package/esm/Flag/Flag.js +115 -0
- package/esm/Flag/Flag.tailwind.d.ts +5 -0
- package/esm/Flag/Flag.tailwind.js +33 -0
- package/esm/Flag/Flags.d.ts +48 -0
- package/esm/Flag/Flags.js +87 -0
- package/esm/Flag/index.d.ts +4 -0
- package/esm/Flag/index.js +4 -0
- package/esm/Flag/types.d.ts +22 -0
- package/esm/Flag/types.js +1 -0
- package/esm/FlexGrid/FlexGrid.d.ts +17 -0
- package/esm/FlexGrid/FlexGrid.js +64 -0
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/esm/FlexGrid/FlexGrid.tailwind.js +74 -0
- package/esm/FlexGrid/index.d.ts +2 -0
- package/esm/FlexGrid/index.js +2 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/esm/HelpUnderline/HelpUnderline.js +27 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
- package/esm/HelpUnderline/index.d.ts +2 -0
- package/esm/HelpUnderline/index.js +2 -0
- package/esm/Input/Input.d.ts +26 -0
- package/esm/Input/Input.js +232 -0
- package/esm/Input/Input.tailwind.d.ts +5 -0
- package/esm/Input/Input.tailwind.js +100 -0
- package/esm/Input/index.d.ts +2 -0
- package/esm/Input/index.js +2 -0
- package/esm/Insert/Insert.d.ts +45 -0
- package/esm/Insert/Insert.js +75 -0
- package/esm/Insert/index.d.ts +2 -0
- package/esm/Insert/index.js +2 -0
- package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
- package/esm/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/esm/KeyboardKey/KeyboardKey.js +31 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
- package/esm/KeyboardKey/index.d.ts +2 -0
- package/esm/KeyboardKey/index.js +2 -0
- package/esm/Link/BaseLink.d.ts +4 -0
- package/esm/Link/BaseLink.js +26 -0
- package/esm/Link/ButtonLink.d.ts +5 -0
- package/esm/Link/ButtonLink.js +33 -0
- package/esm/Link/IconButtonLink.d.ts +6 -0
- package/esm/Link/IconButtonLink.js +25 -0
- package/esm/Link/Link.d.ts +11 -0
- package/esm/Link/Link.js +52 -0
- package/esm/Link/index.d.ts +5 -0
- package/esm/Link/index.js +5 -0
- package/esm/Medallion/Medallion.d.ts +11 -0
- package/esm/Medallion/Medallion.js +34 -0
- package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
- package/esm/Medallion/Medallion.tailwind.js +29 -0
- package/esm/Medallion/index.d.ts +3 -0
- package/esm/Medallion/index.js +3 -0
- package/esm/Medallion/types.d.ts +2 -0
- package/esm/Medallion/types.js +1 -0
- package/esm/Modal/Modal.d.ts +23 -0
- package/esm/Modal/Modal.js +168 -0
- package/esm/Modal/Modal.tailwind.d.ts +5 -0
- package/esm/Modal/Modal.tailwind.js +43 -0
- package/esm/Modal/components/ModalFooter.d.ts +6 -0
- package/esm/Modal/components/ModalFooter.js +31 -0
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +18 -0
- package/esm/Modal/index.d.ts +4 -0
- package/esm/Modal/index.js +4 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +80 -0
- package/esm/Pagination/CompactPagination/index.d.ts +2 -0
- package/esm/Pagination/CompactPagination/index.js +2 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +14 -0
- package/esm/Pagination/DotPagination/DotPagination.js +45 -0
- package/esm/Pagination/DotPagination/index.d.ts +2 -0
- package/esm/Pagination/DotPagination/index.js +2 -0
- package/esm/Pagination/Pagination/Pagination.d.ts +22 -0
- package/esm/Pagination/Pagination/Pagination.js +126 -0
- package/esm/Pagination/Pagination/index.d.ts +2 -0
- package/esm/Pagination/Pagination/index.js +2 -0
- package/esm/Pagination/index.d.ts +4 -0
- package/esm/Pagination/index.js +4 -0
- package/esm/ProgressBar/ProgressBar.d.ts +13 -0
- package/esm/ProgressBar/ProgressBar.js +44 -0
- package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/esm/ProgressBar/index.d.ts +2 -0
- package/esm/ProgressBar/index.js +2 -0
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/esm/ProgressSpinner/ProgressSpinner.js +50 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +35 -0
- package/esm/ProgressSpinner/index.d.ts +2 -0
- package/esm/ProgressSpinner/index.js +2 -0
- package/esm/RadioGroup/RadioButton.d.ts +4 -0
- package/esm/RadioGroup/RadioButton.js +28 -0
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/esm/RadioGroup/RadioButton.tailwind.js +56 -0
- package/esm/RadioGroup/RadioGroup.d.ts +40 -0
- package/esm/RadioGroup/RadioGroup.js +103 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/esm/RadioGroup/RadiogroupContext.js +11 -0
- package/esm/RadioGroup/index.d.ts +4 -0
- package/esm/RadioGroup/index.js +4 -0
- package/esm/RangeSlider/RangeSlider.d.ts +18 -0
- package/esm/RangeSlider/RangeSlider.js +113 -0
- package/esm/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
- package/esm/RangeSlider/RangeSlider.tailwind.js +73 -0
- package/esm/RangeSlider/index.d.ts +2 -0
- package/esm/RangeSlider/index.js +2 -0
- package/esm/Satellite/Satellite.d.ts +11 -0
- package/esm/Satellite/Satellite.js +19 -0
- package/esm/Satellite/SatelliteContext.d.ts +11 -0
- package/esm/Satellite/SatelliteContext.js +18 -0
- package/esm/Satellite/SatelliteRouter.d.ts +21 -0
- package/esm/Satellite/SatelliteRouter.js +42 -0
- package/esm/Satellite/index.d.ts +6 -0
- package/esm/Satellite/index.js +6 -0
- package/esm/Satellite/locale.d.ts +29 -0
- package/esm/Satellite/locale.js +8 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +16 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +92 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/esm/ScrollIndicator/index.d.ts +2 -0
- package/esm/ScrollIndicator/index.js +2 -0
- package/esm/Select/Select.d.ts +15 -0
- package/esm/Select/Select.js +42 -0
- package/esm/Select/Select.tailwind.d.ts +5 -0
- package/esm/Select/Select.tailwind.js +77 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +35 -0
- package/esm/Sidebar/Sidebar.js +60 -0
- package/esm/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/esm/Sidebar/SidebarButtonLink.js +92 -0
- package/esm/Sidebar/SidebarContext.d.ts +9 -0
- package/esm/Sidebar/SidebarContext.js +11 -0
- package/esm/Sidebar/SidebarHeader.d.ts +6 -0
- package/esm/Sidebar/SidebarHeader.js +15 -0
- package/esm/Sidebar/SidebarHeading.d.ts +7 -0
- package/esm/Sidebar/SidebarHeading.js +22 -0
- package/esm/Sidebar/SidebarLink.d.ts +8 -0
- package/esm/Sidebar/SidebarLink.js +42 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +32 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +25 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +100 -0
- package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
- package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
- package/esm/Sidebar/SidebarNav.d.ts +10 -0
- package/esm/Sidebar/SidebarNav.js +33 -0
- package/esm/Sidebar/index.d.ts +9 -0
- package/esm/Sidebar/index.js +9 -0
- package/esm/Sidebar/types.d.ts +6 -0
- package/esm/Sidebar/types.js +1 -0
- package/esm/Switch/Switch.d.ts +13 -0
- package/esm/Switch/Switch.js +87 -0
- package/esm/Switch/Switch.tailwind.d.ts +5 -0
- package/esm/Switch/Switch.tailwind.js +24 -0
- package/esm/Switch/SwitchOption.d.ts +8 -0
- package/esm/Switch/SwitchOption.js +41 -0
- package/esm/Switch/index.d.ts +3 -0
- package/esm/Switch/index.js +3 -0
- package/esm/Switch/types.d.ts +7 -0
- package/esm/Switch/types.js +1 -0
- package/esm/Switch/utils.d.ts +6 -0
- package/esm/Switch/utils.js +11 -0
- package/esm/Tables/DataTable/DataTable.d.ts +60 -0
- package/esm/Tables/DataTable/DataTable.js +274 -0
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/esm/Tables/DataTable/DataTable.tailwind.js +21 -0
- package/esm/Tables/DataTable/components/Body.d.ts +15 -0
- package/esm/Tables/DataTable/components/Body.js +121 -0
- package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
- package/esm/Tables/DataTable/components/Footer.js +60 -0
- package/esm/Tables/DataTable/components/Header.d.ts +10 -0
- package/esm/Tables/DataTable/components/Header.js +33 -0
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/esm/Tables/DataTable/components/HeaderCell.js +59 -0
- package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
- package/esm/Tables/DataTable/components/Loader.js +44 -0
- package/esm/Tables/DataTable/components/index.d.ts +5 -0
- package/esm/Tables/DataTable/components/index.js +5 -0
- package/esm/Tables/DataTable/index.d.ts +3 -0
- package/esm/Tables/DataTable/index.js +3 -0
- package/esm/Tables/DataTable/types.d.ts +49 -0
- package/esm/Tables/DataTable/types.js +1 -0
- package/esm/Tables/DataTable/utils.d.ts +4 -0
- package/esm/Tables/DataTable/utils.js +14 -0
- package/esm/Tables/Table/Table.d.ts +28 -0
- package/esm/Tables/Table/Table.js +61 -0
- package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
- package/esm/Tables/Table/Table.tailwind.js +38 -0
- package/esm/Tables/Table/components/TableFooter.d.ts +8 -0
- package/esm/Tables/Table/components/TableFooter.js +21 -0
- package/esm/Tables/Table/index.d.ts +3 -0
- package/esm/Tables/Table/index.js +3 -0
- package/esm/Tables/index.d.ts +3 -0
- package/esm/Tables/index.js +3 -0
- package/esm/Tabs/ContentTabs.d.ts +4 -0
- package/esm/Tabs/ContentTabs.js +77 -0
- package/esm/Tabs/LinkTabs.d.ts +33 -0
- package/esm/Tabs/LinkTabs.js +70 -0
- package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
- package/esm/Tabs/Tabs.tailwind.js +52 -0
- package/esm/Tabs/components/LinkTab.d.ts +9 -0
- package/esm/Tabs/components/LinkTab.js +94 -0
- package/esm/Tabs/index.d.ts +4 -0
- package/esm/Tabs/index.js +4 -0
- package/esm/Tabs/types.d.ts +35 -0
- package/esm/Tabs/types.js +1 -0
- package/esm/Tabs/utils.d.ts +2 -0
- package/esm/Tabs/utils.js +13 -0
- package/esm/Tag/Tag.d.ts +38 -0
- package/esm/Tag/Tag.js +104 -0
- package/esm/Tag/Tag.tailwind.d.ts +5 -0
- package/esm/Tag/Tag.tailwind.js +37 -0
- package/esm/Tag/index.d.ts +2 -0
- package/esm/Tag/index.js +2 -0
- package/esm/TextArea/TextArea.d.ts +5 -0
- package/esm/TextArea/TextArea.js +27 -0
- package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
- package/esm/TextArea/TextArea.tailwind.js +40 -0
- package/esm/TextArea/index.d.ts +2 -0
- package/esm/TextArea/index.js +2 -0
- package/esm/TextWrap/TextWrap.d.ts +7 -0
- package/esm/TextWrap/TextWrap.js +55 -0
- package/esm/TextWrap/index.d.ts +2 -0
- package/esm/TextWrap/index.js +2 -0
- package/esm/Toggle/Toggle.d.ts +10 -0
- package/esm/Toggle/Toggle.js +77 -0
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
- package/esm/Toggle/Toggle.tailwind.js +66 -0
- package/esm/Toggle/index.d.ts +2 -0
- package/esm/Toggle/index.js +2 -0
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +107 -0
- package/esm/Tooltip/Tooltip.d.ts +24 -0
- package/esm/Tooltip/Tooltip.js +50 -0
- package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/esm/Tooltip/Tooltip.tailwind.js +113 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +28 -0
- package/esm/Tooltip/TooltipWrapper.js +196 -0
- package/esm/Tooltip/index.d.ts +4 -0
- package/esm/Tooltip/index.js +4 -0
- package/esm/Tooltip/types.d.ts +14 -0
- package/esm/Tooltip/types.js +1 -0
- package/esm/Typography/Typography.tailwind.d.ts +5 -0
- package/esm/Typography/Typography.tailwind.js +172 -0
- package/esm/UserContent/UserContent.d.ts +8 -0
- package/esm/UserContent/UserContent.js +21 -0
- package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
- package/esm/UserContent/UserContent.tailwind.js +146 -0
- package/esm/index.d.ts +46 -0
- package/esm/index.js +46 -0
- package/esm/styles/base.tailwind.d.ts +5 -0
- package/esm/styles/base.tailwind.js +44 -0
- package/esm/styles/brandColors.d.ts +42 -0
- package/esm/styles/brandColors.js +46 -0
- package/esm/styles/colors.d.ts +81 -0
- package/esm/styles/colors.js +85 -0
- package/esm/styles/disabledColor.d.ts +6 -0
- package/esm/styles/disabledColor.js +15 -0
- package/esm/styles/helpers/icons.d.ts +15 -0
- package/esm/styles/helpers/icons.js +43 -0
- package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/esm/styles/helpers/makePurgeCssExtractor.js +60 -0
- package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/esm/styles/helpers/makeTailwindPrefixer.js +39 -0
- package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
- package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/esm/styles/helpers/satellitePrefixer.js +7 -0
- package/esm/styles/rgba.d.ts +8 -0
- package/esm/styles/rgba.js +15 -0
- package/esm/styles/tailwind.config.d.ts +2 -0
- package/esm/styles/tailwind.config.js +147 -0
- package/esm/styles/zIndexes.d.ts +7 -0
- package/esm/styles/zIndexes.js +11 -0
- package/esm/types.d.ts +19 -0
- package/esm/types.js +1 -0
- package/esm/utilities/utilities.tailwind.d.ts +5 -0
- package/esm/utilities/utilities.tailwind.js +25 -0
- package/esm/utils/event-polyfill.d.ts +0 -0
- package/esm/utils/event-polyfill.js +25 -0
- package/esm/utils/formatters.d.ts +25 -0
- package/esm/utils/formatters.js +40 -0
- package/esm/utils/genericChangeHandler.d.ts +5 -0
- package/esm/utils/genericChangeHandler.js +20 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +18 -0
- package/esm/utils/index.d.ts +8 -0
- package/{types/utils/index.d.ts → esm/utils/index.js} +2 -2
- package/esm/utils/isCssPropertySupported.d.ts +2 -0
- package/esm/utils/isCssPropertySupported.js +11 -0
- package/esm/utils/isNil.d.ts +19 -0
- package/esm/utils/isNil.js +21 -0
- package/esm/utils/isRenderedChild.d.ts +8 -0
- package/esm/utils/isRenderedChild.js +10 -0
- package/esm/utils/matchLocation.d.ts +3 -0
- package/esm/utils/matchLocation.js +7 -0
- package/esm/utils/onlyText.d.ts +3 -0
- package/esm/utils/onlyText.js +41 -0
- package/esm/utils/parseUrl.d.ts +11 -0
- package/esm/utils/parseUrl.js +15 -0
- package/esm/utils/pluralize.d.ts +6 -0
- package/esm/utils/pluralize.js +19 -0
- package/esm/utils/range.d.ts +2 -0
- package/esm/utils/range.js +7 -0
- package/esm/utils/toSentenceCase.d.ts +3 -0
- package/esm/utils/toSentenceCase.js +9 -0
- package/esm/utils/uniqBy.d.ts +2 -0
- package/esm/utils/uniqBy.js +15 -0
- package/esm/utils/uniqueId.d.ts +2 -0
- package/esm/utils/uniqueId.js +7 -0
- package/esm/utils/useForwardedRef.d.ts +3 -0
- package/esm/utils/useForwardedRef.js +20 -0
- package/esm/utils/useLinkProps.d.ts +7 -0
- package/esm/utils/useLinkProps.js +52 -0
- package/esm/utils/useTriggerInputChange.d.ts +8 -0
- package/esm/utils/useTriggerInputChange.js +22 -0
- package/package.json +76 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +113 -0
- package/scss/variables.scss +7 -0
- package/algolia-satellite-1.0.0-beta.14.tgz +0 -0
- package/components/Alert/Alert.js +0 -49
- package/components/AutoComplete/AutoComplete.js +0 -512
- package/components/AutoComplete/index.js +0 -27
- package/components/AutoComplete/types.js +0 -1
- package/components/Button/Button.js +0 -59
- package/components/Button/LinkButton.js +0 -52
- package/components/Button/index.js +0 -40
- package/components/Card/Card.js +0 -71
- package/components/Card/components/CardHeader.js +0 -25
- package/components/Card/components/CardTitle.js +0 -30
- package/components/Card/index.js +0 -19
- package/components/Checkbox/Checkbox.js +0 -66
- package/components/Checkbox/index.js +0 -27
- package/components/Chip/Chip.js +0 -77
- package/components/Chip/index.js +0 -21
- package/components/Dropdown/Dropdown.js +0 -163
- package/components/Dropdown/DropdownButton.js +0 -117
- package/components/Dropdown/components/DropdownDivider.js +0 -24
- package/components/Dropdown/components/DropdownItem.js +0 -46
- package/components/Dropdown/components/DropdownTitle.js +0 -34
- package/components/Dropdown/index.js +0 -29
- package/components/HelpUnderline/HelpUnderline.js +0 -39
- package/components/HelpUnderline/index.js +0 -27
- package/components/Input/Input.js +0 -134
- package/components/Input/index.js +0 -27
- package/components/LoaderIcon/LoaderIcon.js +0 -65
- package/components/LoaderIcon/index.js +0 -27
- package/components/MaterialIcon/MaterialIcon.js +0 -48
- package/components/MaterialIcon/index.js +0 -27
- package/components/Modal/Modal.js +0 -207
- package/components/Modal/components/ModalFooter.js +0 -34
- package/components/Modal/components/ModalSection.js +0 -38
- package/components/Modal/index.js +0 -21
- package/components/Pagination/Pagination.js +0 -131
- package/components/Pagination/index.js +0 -27
- package/components/RadioGroup/RadioButton.js +0 -35
- package/components/RadioGroup/RadioGroup.js +0 -140
- package/components/RadioGroup/index.js +0 -29
- package/components/ScrollIndicator/ScrollIndicator.js +0 -165
- package/components/ScrollIndicator/index.js +0 -21
- package/components/Select/Select.js +0 -40
- package/components/Select/index.js +0 -27
- package/components/Table/Table.js +0 -36
- package/components/Table/index.js +0 -19
- package/components/TextArea/TextArea.js +0 -34
- package/components/TextArea/index.js +0 -27
- package/components/Tooltip/Tooltip.js +0 -29
- package/components/Tooltip/TooltipWrapper.js +0 -164
- package/components/Tooltip/index.js +0 -40
- package/index.js +0 -173
- package/satellite.css +0 -32
- package/satellite.css.map +0 -1
- package/styles/_colors.scss +0 -147
- package/styles/_mixins.scss +0 -72
- package/styles/_variables.scss +0 -71
- package/types/components/Alert/Alert.d.ts +0 -9
- package/types/components/AutoComplete/AutoComplete.d.ts +0 -66
- package/types/components/AutoComplete/index.d.ts +0 -2
- package/types/components/AutoComplete/types.d.ts +0 -21
- package/types/components/AutoComplete/utils.d.ts +0 -3
- package/types/components/Button/Button.d.ts +0 -13
- package/types/components/Button/LinkButton.d.ts +0 -9
- package/types/components/Button/index.d.ts +0 -3
- package/types/components/Card/Card.d.ts +0 -13
- package/types/components/Card/components/CardHeader.d.ts +0 -3
- package/types/components/Card/components/CardTitle.d.ts +0 -7
- package/types/components/Card/index.d.ts +0 -3
- package/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/types/components/Chip/Chip.d.ts +0 -9
- package/types/components/Chip/index.d.ts +0 -2
- package/types/components/Dropdown/Dropdown.d.ts +0 -27
- package/types/components/Dropdown/DropdownButton.d.ts +0 -12
- package/types/components/Dropdown/components/DropdownDivider.d.ts +0 -6
- package/types/components/Dropdown/components/DropdownItem.d.ts +0 -10
- package/types/components/Dropdown/components/DropdownTitle.d.ts +0 -4
- package/types/components/Dropdown/index.d.ts +0 -3
- package/types/components/HelpUnderline/HelpUnderline.d.ts +0 -10
- package/types/components/Input/Input.d.ts +0 -25
- package/types/components/LoaderIcon/LoaderIcon.d.ts +0 -7
- package/types/components/LoaderIcon/index.d.ts +0 -2
- package/types/components/MaterialIcon/MaterialIcon.d.ts +0 -12
- package/types/components/MaterialIcon/index.d.ts +0 -2
- package/types/components/Modal/Modal.d.ts +0 -30
- package/types/components/Modal/components/ModalFooter.d.ts +0 -4
- package/types/components/Modal/components/ModalSection.d.ts +0 -6
- package/types/components/Modal/index.d.ts +0 -2
- package/types/components/Pagination/Pagination.d.ts +0 -12
- package/types/components/RadioGroup/RadioButton.d.ts +0 -4
- package/types/components/RadioGroup/RadioGroup.d.ts +0 -20
- package/types/components/RadioGroup/index.d.ts +0 -3
- package/types/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
- package/types/components/ScrollIndicator/index.d.ts +0 -2
- package/types/components/Select/Select.d.ts +0 -6
- package/types/components/Table/Table.d.ts +0 -6
- package/types/components/Table/index.d.ts +0 -3
- package/types/components/TextArea/TextArea.d.ts +0 -5
- package/types/components/Tooltip/Tooltip.d.ts +0 -5
- package/types/components/Tooltip/TooltipWrapper.d.ts +0 -32
- package/types/index.d.ts +0 -19
- package/types/utils/clamp.d.ts +0 -2
- package/types/utils/genericChangeHandler.d.ts +0 -5
- package/types/utils/omit.d.ts +0 -2
- package/utils/clamp.js +0 -20
- package/utils/omit.js +0 -25
@@ -0,0 +1,29 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type CompactPaginationLabel = "complete" | "compact" | "none";
|
3
|
+
export declare type CompactPaginationLocale = {
|
4
|
+
goToFirstPage?: string;
|
5
|
+
goToLastPage?: string;
|
6
|
+
goToNextPage?: string;
|
7
|
+
goToPreviousPage?: string;
|
8
|
+
label?(page: number, nbPages?: number): string;
|
9
|
+
};
|
10
|
+
declare type BaseCompactPaginationProps = {
|
11
|
+
/** Currently selected page (1 based index) */
|
12
|
+
currentPage: number;
|
13
|
+
onChange: (page: number) => void;
|
14
|
+
showGoToFirstPage?: boolean;
|
15
|
+
label?: CompactPaginationLabel;
|
16
|
+
locale?: CompactPaginationLocale;
|
17
|
+
};
|
18
|
+
export declare type DeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
19
|
+
nbPages: number;
|
20
|
+
showGoToLastPage?: boolean;
|
21
|
+
};
|
22
|
+
export declare type IndeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
23
|
+
nextDisabled?: boolean;
|
24
|
+
};
|
25
|
+
export declare type CompactPaginationProps = DeterminateCompactPaginationProps | IndeterminateCompactPaginationProps;
|
26
|
+
export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps;
|
27
|
+
export declare const isIndeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is IndeterminateCompactPaginationProps;
|
28
|
+
export declare const CompactPagination: (props: CompactPaginationProps) => JSX.Element;
|
29
|
+
export default CompactPagination;
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
+
|
4
|
+
var _templateObject, _templateObject2;
|
5
|
+
|
6
|
+
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; }
|
7
|
+
|
8
|
+
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) { _defineProperty(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; }
|
9
|
+
|
10
|
+
import { ArrowLeft, ArrowRight, ChevronsLeft, ChevronsRight } from "react-feather";
|
11
|
+
import { IconButton } from "../../Button";
|
12
|
+
import { useLocale } from "../../Satellite";
|
13
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var DEFAULT_COMPACT_PAGINATION_LOCALE = {
|
17
|
+
goToFirstPage: "Go to first page",
|
18
|
+
goToPreviousPage: "Go to previous page",
|
19
|
+
goToNextPage: "Go to next page",
|
20
|
+
goToLastPage: "Go to last page",
|
21
|
+
label: function label(page, nbPages) {
|
22
|
+
return typeof nbPages === "number" ? "Page ".concat(page, " of ").concat(nbPages) : "Page ".concat(page, " of many");
|
23
|
+
}
|
24
|
+
};
|
25
|
+
export var isDeterminateCompactPaginationProps = function isDeterminateCompactPaginationProps(props) {
|
26
|
+
return "nbPages" in props;
|
27
|
+
};
|
28
|
+
export var isIndeterminateCompactPaginationProps = function isIndeterminateCompactPaginationProps(props) {
|
29
|
+
return !isDeterminateCompactPaginationProps(props);
|
30
|
+
};
|
31
|
+
export var CompactPagination = function CompactPagination(props) {
|
32
|
+
var _props$label;
|
33
|
+
|
34
|
+
var contextLocale = useLocale("compactPagination");
|
35
|
+
|
36
|
+
var locale = _objectSpread(_objectSpread({}, DEFAULT_COMPACT_PAGINATION_LOCALE), {}, {
|
37
|
+
contextLocale: contextLocale
|
38
|
+
}, props.locale);
|
39
|
+
|
40
|
+
var labelType = (_props$label = props.label) !== null && _props$label !== void 0 ? _props$label : isDeterminateCompactPaginationProps(props) ? "complete" : "compact";
|
41
|
+
var label = labelType === "none" ? null : labelType === "compact" ? "".concat(props.currentPage) : isDeterminateCompactPaginationProps(props) ? locale.label(props.currentPage, props.nbPages) : locale.label(props.currentPage);
|
42
|
+
var isFirstPage = props.currentPage === 1;
|
43
|
+
var isLastPage = isDeterminateCompactPaginationProps(props) ? props.currentPage === props.nbPages : !!props.nextDisabled;
|
44
|
+
return /*#__PURE__*/_jsxs("div", {
|
45
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex items-center space-x-2"]))),
|
46
|
+
children: [props.showGoToFirstPage && /*#__PURE__*/_jsx(IconButton, {
|
47
|
+
icon: ChevronsLeft,
|
48
|
+
title: locale.goToFirstPage,
|
49
|
+
onClick: function onClick() {
|
50
|
+
return props.onChange(1);
|
51
|
+
},
|
52
|
+
disabled: isFirstPage
|
53
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
54
|
+
icon: ArrowLeft,
|
55
|
+
title: locale.goToPreviousPage,
|
56
|
+
onClick: function onClick() {
|
57
|
+
return props.onChange(props.currentPage - 1);
|
58
|
+
},
|
59
|
+
disabled: isFirstPage
|
60
|
+
}), label && /*#__PURE__*/_jsx("span", {
|
61
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["inline-block text-center tabular-nums px-2"]))),
|
62
|
+
children: label
|
63
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
64
|
+
icon: ArrowRight,
|
65
|
+
title: locale.goToNextPage,
|
66
|
+
onClick: function onClick() {
|
67
|
+
return props.onChange(props.currentPage + 1);
|
68
|
+
},
|
69
|
+
disabled: isLastPage
|
70
|
+
}), isDeterminateCompactPaginationProps(props) && props.showGoToLastPage && /*#__PURE__*/_jsx(IconButton, {
|
71
|
+
icon: ChevronsRight,
|
72
|
+
title: locale.goToLastPage,
|
73
|
+
onClick: function onClick() {
|
74
|
+
return props.onChange(props.nbPages);
|
75
|
+
},
|
76
|
+
disabled: isLastPage
|
77
|
+
})]
|
78
|
+
});
|
79
|
+
};
|
80
|
+
export default CompactPagination;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type DotPaginationLocale = {
|
3
|
+
goToPageText?(page: number): string;
|
4
|
+
};
|
5
|
+
export declare type DotPaginationProps = {
|
6
|
+
/** Currently selected page (1 based index) */
|
7
|
+
currentPage: number;
|
8
|
+
onChange: (page: number) => void;
|
9
|
+
nbPages: number;
|
10
|
+
size?: "small" | "medium";
|
11
|
+
locale?: DotPaginationLocale;
|
12
|
+
};
|
13
|
+
export declare const DotPagination: ({ currentPage, onChange, nbPages, size, locale: propsLocale, }: DotPaginationProps) => JSX.Element;
|
14
|
+
export default DotPagination;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
+
|
4
|
+
var _templateObject, _templateObject2;
|
5
|
+
|
6
|
+
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; }
|
7
|
+
|
8
|
+
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) { _defineProperty(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; }
|
9
|
+
|
10
|
+
import { useLocale } from "../../Satellite";
|
11
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
var DEFAULT_DOT_PAGINATION_LOCALE = {
|
14
|
+
goToPageText: function goToPageText(pageIdx) {
|
15
|
+
return "Go to page ".concat(pageIdx);
|
16
|
+
}
|
17
|
+
};
|
18
|
+
export var DotPagination = function DotPagination(_ref) {
|
19
|
+
var currentPage = _ref.currentPage,
|
20
|
+
onChange = _ref.onChange,
|
21
|
+
nbPages = _ref.nbPages,
|
22
|
+
_ref$size = _ref.size,
|
23
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
24
|
+
propsLocale = _ref.locale;
|
25
|
+
var contextLocale = useLocale("dotPagination");
|
26
|
+
|
27
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_DOT_PAGINATION_LOCALE), contextLocale), propsLocale);
|
28
|
+
|
29
|
+
return /*#__PURE__*/_jsx("ul", {
|
30
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex"]))),
|
31
|
+
children: new Array(nbPages).fill(undefined).map(function (_, idx) {
|
32
|
+
var pageIdx = idx + 1;
|
33
|
+
return /*#__PURE__*/_jsx("li", {
|
34
|
+
children: /*#__PURE__*/_jsx("button", {
|
35
|
+
"aria-label": locale.goToPageText(pageIdx),
|
36
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n rounded-full mx-1\n ", "\n ", "\n "])), currentPage === pageIdx ? "bg-accent-600" : "bg-grey-200", size === "medium" ? "h-3 w-3" : "h-2 w-2"),
|
37
|
+
onClick: function onClick() {
|
38
|
+
return onChange(pageIdx);
|
39
|
+
}
|
40
|
+
})
|
41
|
+
}, idx);
|
42
|
+
})
|
43
|
+
});
|
44
|
+
};
|
45
|
+
export default DotPagination;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare type PaginationLocale = {
|
3
|
+
goToPage?(page: number): string;
|
4
|
+
goToNextPage?: string;
|
5
|
+
goToPreviousPage?: string;
|
6
|
+
};
|
7
|
+
export interface PaginationProps {
|
8
|
+
nbPages: number;
|
9
|
+
currentPage: number;
|
10
|
+
maxButtons?: number;
|
11
|
+
onChange: (page: number) => void;
|
12
|
+
locale?: PaginationLocale;
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Use pagination to help our users to move through an ordered collection of items.
|
16
|
+
*
|
17
|
+
* ## Best practices
|
18
|
+
* - Don't use on list with less than 20 items
|
19
|
+
* - Place the pagination at the bottom of the split item
|
20
|
+
*/
|
21
|
+
export declare const Pagination: ({ currentPage, nbPages, onChange, maxButtons: maxButtonsParam, locale: propsLocale, }: PaginationProps) => JSX.Element;
|
22
|
+
export default Pagination;
|
@@ -0,0 +1,126 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
3
|
+
|
4
|
+
var _templateObject;
|
5
|
+
|
6
|
+
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; }
|
7
|
+
|
8
|
+
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) { _defineProperty(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; }
|
9
|
+
|
10
|
+
import { ArrowLeft, ArrowRight } from "react-feather";
|
11
|
+
import Button, { ButtonGroup } from "../../Button";
|
12
|
+
import { useLocale } from "../../Satellite";
|
13
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
14
|
+
import range from "../../utils/range";
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
18
|
+
var DEFAULT_PAGINATION_LOCALE = {
|
19
|
+
goToPage: function goToPage(index) {
|
20
|
+
return "Go to page ".concat(index);
|
21
|
+
},
|
22
|
+
goToPreviousPage: "Go to previous page",
|
23
|
+
goToNextPage: "Go to next page"
|
24
|
+
};
|
25
|
+
var DEFAULT_MAX_BUTTONS = 10;
|
26
|
+
|
27
|
+
var Ellipsis = function Ellipsis() {
|
28
|
+
return /*#__PURE__*/_jsx(Button, {
|
29
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["pointer-events-none"]))),
|
30
|
+
tabIndex: -1,
|
31
|
+
"aria-disabled": true,
|
32
|
+
children: "\u2026"
|
33
|
+
});
|
34
|
+
};
|
35
|
+
|
36
|
+
var Group = function Group(_ref) {
|
37
|
+
var group = _ref.group,
|
38
|
+
currentPage = _ref.currentPage,
|
39
|
+
onChange = _ref.onChange,
|
40
|
+
goToPage = _ref.goToPage;
|
41
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
42
|
+
children: group.map(function (index) {
|
43
|
+
return /*#__PURE__*/_jsx(Button, {
|
44
|
+
"aria-label": goToPage(index),
|
45
|
+
variant: index === currentPage ? "primary" : "neutral",
|
46
|
+
onClick: function onClick() {
|
47
|
+
return onChange(index);
|
48
|
+
},
|
49
|
+
children: index
|
50
|
+
}, index);
|
51
|
+
})
|
52
|
+
});
|
53
|
+
};
|
54
|
+
/**
|
55
|
+
* Use pagination to help our users to move through an ordered collection of items.
|
56
|
+
*
|
57
|
+
* ## Best practices
|
58
|
+
* - Don't use on list with less than 20 items
|
59
|
+
* - Place the pagination at the bottom of the split item
|
60
|
+
*/
|
61
|
+
|
62
|
+
|
63
|
+
export var Pagination = function Pagination(_ref2) {
|
64
|
+
var currentPage = _ref2.currentPage,
|
65
|
+
nbPages = _ref2.nbPages,
|
66
|
+
onChange = _ref2.onChange,
|
67
|
+
_ref2$maxButtons = _ref2.maxButtons,
|
68
|
+
maxButtonsParam = _ref2$maxButtons === void 0 ? DEFAULT_MAX_BUTTONS : _ref2$maxButtons,
|
69
|
+
propsLocale = _ref2.locale;
|
70
|
+
var contextLocale = useLocale("pagination");
|
71
|
+
|
72
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_PAGINATION_LOCALE), contextLocale), propsLocale);
|
73
|
+
|
74
|
+
var padding = Math.floor((Math.min(nbPages, maxButtonsParam) - 1) / 2);
|
75
|
+
var maxButtons = 2 * padding + 1;
|
76
|
+
var currentPageGroupStart = Math.max(1, Math.min(currentPage - padding, nbPages - maxButtons));
|
77
|
+
var currentPageGroupEnd = Math.min(currentPageGroupStart + maxButtons, nbPages);
|
78
|
+
var groups = [[], range(currentPageGroupStart, currentPageGroupEnd + 1), []];
|
79
|
+
|
80
|
+
if (currentPageGroupStart > 1) {
|
81
|
+
groups[0].push(1);
|
82
|
+
}
|
83
|
+
|
84
|
+
if (currentPageGroupEnd < nbPages) {
|
85
|
+
groups[2].push(nbPages);
|
86
|
+
}
|
87
|
+
|
88
|
+
return /*#__PURE__*/_jsxs(ButtonGroup, {
|
89
|
+
as: "nav",
|
90
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
91
|
+
"aria-label": locale.goToPreviousPage,
|
92
|
+
disabled: currentPage === 1,
|
93
|
+
onClick: function onClick() {
|
94
|
+
return onChange(currentPage - 1);
|
95
|
+
},
|
96
|
+
children: /*#__PURE__*/_jsx(ArrowLeft, {
|
97
|
+
size: "1em"
|
98
|
+
})
|
99
|
+
}), /*#__PURE__*/_jsx(Group, {
|
100
|
+
currentPage: currentPage,
|
101
|
+
onChange: onChange,
|
102
|
+
group: groups[0],
|
103
|
+
goToPage: locale.goToPage
|
104
|
+
}), groups[0].length !== 0 && groups[1][0] - groups[0][0] > 1 && /*#__PURE__*/_jsx(Ellipsis, {}), /*#__PURE__*/_jsx(Group, {
|
105
|
+
currentPage: currentPage,
|
106
|
+
onChange: onChange,
|
107
|
+
group: groups[1],
|
108
|
+
goToPage: locale.goToPage
|
109
|
+
}), groups[2].length !== 0 && groups[2][0] - groups[1][groups[1].length - 1] > 1 && /*#__PURE__*/_jsx(Ellipsis, {}), /*#__PURE__*/_jsx(Group, {
|
110
|
+
currentPage: currentPage,
|
111
|
+
onChange: onChange,
|
112
|
+
group: groups[2],
|
113
|
+
goToPage: locale.goToPage
|
114
|
+
}), /*#__PURE__*/_jsx(Button, {
|
115
|
+
"aria-label": locale.goToNextPage,
|
116
|
+
disabled: currentPage === nbPages,
|
117
|
+
onClick: function onClick() {
|
118
|
+
return onChange(currentPage + 1);
|
119
|
+
},
|
120
|
+
children: /*#__PURE__*/_jsx(ArrowRight, {
|
121
|
+
size: "1em"
|
122
|
+
})
|
123
|
+
})]
|
124
|
+
});
|
125
|
+
};
|
126
|
+
export default Pagination;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
2
|
+
export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
3
|
+
barClassName?: string;
|
4
|
+
value: number;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* Progress bars visually represent the completion of a task or operation.
|
8
|
+
*
|
9
|
+
* - Progress bars show an indication of how much of the task has been completed and how much is still left.
|
10
|
+
* - You should indicate either a percentage or other numeric values (such as - 234/4092 queries processed)
|
11
|
+
*/
|
12
|
+
export declare const ProgressBar: ({ value, className, barClassName, ...props }: ProgressBarProps) => JSX.Element;
|
13
|
+
export default ProgressBar;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
+
|
5
|
+
var _templateObject, _templateObject2;
|
6
|
+
|
7
|
+
var _excluded = ["value", "className", "barClassName"];
|
8
|
+
|
9
|
+
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; }
|
10
|
+
|
11
|
+
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) { _defineProperty(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; }
|
12
|
+
|
13
|
+
import cx from "clsx";
|
14
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Progress bars visually represent the completion of a task or operation.
|
19
|
+
*
|
20
|
+
* - Progress bars show an indication of how much of the task has been completed and how much is still left.
|
21
|
+
* - You should indicate either a percentage or other numeric values (such as - 234/4092 queries processed)
|
22
|
+
*/
|
23
|
+
export var ProgressBar = function ProgressBar(_ref) {
|
24
|
+
var value = _ref.value,
|
25
|
+
className = _ref.className,
|
26
|
+
barClassName = _ref.barClassName,
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
28
|
+
|
29
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
30
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["progress-bar"]))), className),
|
31
|
+
role: "progressbar",
|
32
|
+
"aria-valuenow": value,
|
33
|
+
"aria-valuemin": 0,
|
34
|
+
"aria-valuemax": 100,
|
35
|
+
children: /*#__PURE__*/_jsx("div", {
|
36
|
+
className: cx(stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["progress-bar-progress"]))), barClassName),
|
37
|
+
style: {
|
38
|
+
width: "".concat(value, "%"),
|
39
|
+
transition: "all 150ms ease-in-out"
|
40
|
+
}
|
41
|
+
})
|
42
|
+
}));
|
43
|
+
};
|
44
|
+
export default ProgressBar;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import _rgba from "../styles/rgba";
|
2
|
+
import _plugin from "tailwindcss/plugin";
|
3
|
+
// @ts-check
|
4
|
+
var plugin = _plugin;
|
5
|
+
var rgba = _rgba;
|
6
|
+
var progressBarPlugin = plugin(function (_ref) {
|
7
|
+
var addComponents = _ref.addComponents,
|
8
|
+
theme = _ref.theme;
|
9
|
+
addComponents({
|
10
|
+
".progress-bar": {
|
11
|
+
height: "4px",
|
12
|
+
width: "100%",
|
13
|
+
display: "block",
|
14
|
+
overflow: "hidden",
|
15
|
+
background: theme("colors.grey.100"),
|
16
|
+
boxShadow: "\n inset 0px 1px 3px 0px ".concat(rgba(theme("colors.black"), 0.1), ",\n 0px 0.5px 0px 0px ").concat(rgba(theme("colors.white"), 0.05), "\n "),
|
17
|
+
borderRadius: "4px"
|
18
|
+
},
|
19
|
+
".progress-bar-progress": {
|
20
|
+
height: "100%",
|
21
|
+
background: theme("colors.accent.600")
|
22
|
+
}
|
23
|
+
});
|
24
|
+
});
|
25
|
+
export default progressBarPlugin;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { SVGAttributes } from "react";
|
2
|
+
export declare type ProgressSpinnerAlign = "left" | "center" | "right";
|
3
|
+
export interface ProgressSpinnerProps extends SVGAttributes<SVGSVGElement> {
|
4
|
+
size?: number;
|
5
|
+
thickness?: number;
|
6
|
+
align?: ProgressSpinnerAlign;
|
7
|
+
}
|
8
|
+
export declare const ProgressSpinner: ({ className, size, thickness, align, ...svgProps }: ProgressSpinnerProps) => JSX.Element;
|
9
|
+
export default ProgressSpinner;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
4
|
+
var _excluded = ["className", "size", "thickness", "align"];
|
5
|
+
|
6
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
7
|
+
|
8
|
+
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; }
|
9
|
+
|
10
|
+
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) { _defineProperty(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; }
|
11
|
+
|
12
|
+
import cx from "clsx";
|
13
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
16
|
+
var ALIGN_CLASSNAMES = {
|
17
|
+
left: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["mr-auto"]))),
|
18
|
+
center: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["m-auto"]))),
|
19
|
+
right: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["ml-auto"])))
|
20
|
+
}; // Took heavy inspiration from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/CircularProgress/CircularProgress.js
|
21
|
+
|
22
|
+
export var ProgressSpinner = function ProgressSpinner(_ref) {
|
23
|
+
var className = _ref.className,
|
24
|
+
_ref$size = _ref.size,
|
25
|
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
26
|
+
_ref$thickness = _ref.thickness,
|
27
|
+
thickness = _ref$thickness === void 0 ? 2 : _ref$thickness,
|
28
|
+
align = _ref.align,
|
29
|
+
svgProps = _objectWithoutProperties(_ref, _excluded);
|
30
|
+
|
31
|
+
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
|
32
|
+
className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["progress-spinner"]))), align && ALIGN_CLASSNAMES[align], className),
|
33
|
+
viewBox: "".concat(size / 2, " ").concat(size / 2, " ").concat(size, " ").concat(size),
|
34
|
+
width: size,
|
35
|
+
height: size,
|
36
|
+
role: "status",
|
37
|
+
"aria-busy": true,
|
38
|
+
"aria-live": "polite",
|
39
|
+
children: [/*#__PURE__*/_jsx("title", {
|
40
|
+
children: "Loading spinner"
|
41
|
+
}), /*#__PURE__*/_jsx("circle", {
|
42
|
+
cx: size,
|
43
|
+
cy: size,
|
44
|
+
r: (size - thickness) / 2,
|
45
|
+
fill: "none",
|
46
|
+
strokeWidth: thickness
|
47
|
+
})]
|
48
|
+
}));
|
49
|
+
};
|
50
|
+
export default ProgressSpinner;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import _plugin from "tailwindcss/plugin";
|
2
|
+
// @ts-check
|
3
|
+
var plugin = _plugin;
|
4
|
+
var progressSpinnerPlugin = plugin(function (_ref) {
|
5
|
+
var addComponents = _ref.addComponents,
|
6
|
+
theme = _ref.theme;
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @param {string} color
|
10
|
+
*/
|
11
|
+
addComponents({
|
12
|
+
".progress-spinner": {
|
13
|
+
color: theme("colors.accent.600"),
|
14
|
+
stroke: "currentColor",
|
15
|
+
animation: "stl-spinner 1.4s linear infinite"
|
16
|
+
},
|
17
|
+
"@keyframes stl-spinner": {
|
18
|
+
"0%": {
|
19
|
+
transform: "rotate(0deg)",
|
20
|
+
strokeDasharray: "1px, 200px",
|
21
|
+
strokeDashoffset: "0px"
|
22
|
+
},
|
23
|
+
"50%": {
|
24
|
+
strokeDasharray: "100px, 200px",
|
25
|
+
strokeDashoffset: "-15px"
|
26
|
+
},
|
27
|
+
"100%": {
|
28
|
+
transform: "rotate(360deg)",
|
29
|
+
strokeDasharray: "100px, 200px",
|
30
|
+
strokeDashoffset: "-125px"
|
31
|
+
}
|
32
|
+
}
|
33
|
+
});
|
34
|
+
});
|
35
|
+
export default progressSpinnerPlugin;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { HTMLAttributes, InputHTMLAttributes } from "react";
|
2
|
+
export declare type RadioButtonProps = HTMLAttributes<HTMLInputElement> & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "name" | "checked" | "defaultChecked" | "onChange" | "required" | "autoFocus" | "disabled">;
|
3
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & Pick<InputHTMLAttributes<HTMLInputElement>, "required" | "name" | "value" | "disabled" | "autoFocus" | "checked" | "defaultChecked" | "onChange"> & import("react").RefAttributes<HTMLInputElement>>;
|
4
|
+
export default RadioButton;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
+
|
5
|
+
var _templateObject;
|
6
|
+
|
7
|
+
var _excluded = ["className"];
|
8
|
+
|
9
|
+
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; }
|
10
|
+
|
11
|
+
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) { _defineProperty(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; }
|
12
|
+
|
13
|
+
import cx from "clsx";
|
14
|
+
import { forwardRef } from "react";
|
15
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
17
|
+
export var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
18
|
+
var className = _ref.className,
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
20
|
+
|
21
|
+
return /*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({}, props), {}, {
|
22
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["radio-button"]))), className),
|
23
|
+
type: "radio",
|
24
|
+
ref: ref
|
25
|
+
}));
|
26
|
+
});
|
27
|
+
RadioButton.displayName = "RadioButton";
|
28
|
+
export default RadioButton;
|