@algolia/satellite 1.0.0-beta.17 → 1.0.0-beta.170
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 +51 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +27 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +20 -0
- package/cjs/AutoComplete/AutoComplete.js +455 -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 +35 -0
- package/cjs/AutoComplete/components/AutocompleteContext.d.ts +5 -0
- package/cjs/AutoComplete/components/AutocompleteContext.js +19 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +36 -0
- package/cjs/AutoComplete/index.d.ts +7 -0
- package/cjs/AutoComplete/index.js +84 -0
- package/cjs/AutoComplete/types.d.ts +95 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +8 -0
- package/cjs/AutoComplete/utils.js +82 -0
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +34 -0
- package/cjs/Avatars/UserAvatar.d.ts +20 -0
- package/cjs/Avatars/UserAvatar.js +55 -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 +55 -0
- package/cjs/Badge/Badge.d.ts +33 -0
- package/cjs/Badge/Badge.js +79 -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 +139 -0
- package/cjs/Banners/Alert/index.js +27 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +61 -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 +51 -0
- package/cjs/Banners/Promote/Promote.js +103 -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 +35 -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 +28 -0
- package/cjs/Button/IconButton.d.ts +10 -0
- package/cjs/Button/IconButton.js +26 -0
- package/cjs/Button/PolymorphicButton.d.ts +12 -0
- package/cjs/Button/PolymorphicButton.js +78 -0
- package/cjs/Button/PolymorphicIconButton.d.ts +29 -0
- package/cjs/Button/PolymorphicIconButton.js +86 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +51 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +37 -0
- package/cjs/Button/types.d.ts +33 -0
- package/cjs/Button/types.js +11 -0
- package/cjs/Card/Card.d.ts +32 -0
- package/cjs/Card/Card.js +44 -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 +27 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +27 -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 +70 -0
- package/cjs/Checkbox/index.js +27 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +83 -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 +164 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +50 -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 +35 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +256 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +38 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +99 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +15 -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 +55 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +24 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +19 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +32 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +67 -0
- package/cjs/DatePicker/components/NavBar.d.ts +10 -0
- package/cjs/DatePicker/components/NavBar.js +123 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +22 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +48 -0
- package/cjs/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/index.js +38 -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 +19 -0
- package/cjs/Dropdown/Dropdown.d.ts +49 -0
- package/cjs/Dropdown/Dropdown.js +133 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +47 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +16 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +14 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +44 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +59 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +20 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +15 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +36 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +33 -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 +17 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +8 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +29 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +52 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +8 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +43 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +25 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +11 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +46 -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 +38 -0
- package/cjs/Dropzone/Dropzone.d.ts +21 -0
- package/cjs/Dropzone/Dropzone.js +158 -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 +123 -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 +50 -0
- package/cjs/EmptyState/types.js +5 -0
- package/cjs/Field/Field.d.ts +54 -0
- package/cjs/Field/Field.js +104 -0
- package/cjs/Field/FieldContext.d.ts +16 -0
- package/cjs/Field/FieldContext.js +14 -0
- package/cjs/Field/index.d.ts +5 -0
- package/cjs/Field/index.js +48 -0
- package/cjs/Field/useField.d.ts +2 -0
- package/cjs/Field/useField.js +11 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +116 -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 +90 -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 +40 -0
- package/cjs/FlexGrid/FlexGrid.js +68 -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 +35 -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 +30 -0
- package/cjs/Input/Input.js +215 -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 +77 -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 +36 -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/Input → cjs/KeyboardKey}/index.js +5 -8
- package/cjs/Link/BaseLink.d.ts +8 -0
- package/cjs/Link/BaseLink.js +29 -0
- package/cjs/Link/ButtonLink.d.ts +9 -0
- package/cjs/Link/ButtonLink.js +37 -0
- package/cjs/Link/IconButtonLink.d.ts +9 -0
- package/cjs/Link/IconButtonLink.js +31 -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 +12 -0
- package/cjs/Medallion/Medallion.js +39 -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 +56 -0
- package/cjs/Modal/Modal.js +149 -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 +32 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +23 -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 +82 -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 +46 -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 +122 -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/Popover/Popover.d.ts +5 -0
- package/cjs/Popover/Popover.js +137 -0
- package/cjs/Popover/index.d.ts +3 -0
- package/cjs/Popover/index.js +36 -0
- package/cjs/Popover/types.d.ts +74 -0
- package/cjs/Popover/types.js +5 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +16 -0
- package/cjs/ProgressBar/ProgressBar.js +57 -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 +52 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +44 -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 +29 -0
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/cjs/RadioGroup/RadioButton.tailwind.js +61 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +41 -0
- package/cjs/RadioGroup/RadioGroup.js +103 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +11 -0
- package/cjs/RadioGroup/RadiogroupContext.js +15 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +51 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +38 -0
- package/cjs/RangeSlider/RangeSlider.js +105 -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 +61 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +23 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +47 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +75 -0
- package/cjs/Satellite/locale.d.ts +33 -0
- package/cjs/Satellite/locale.js +14 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +23 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +86 -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 +44 -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 +9 -0
- package/cjs/Separator/Separator.js +39 -0
- package/cjs/Separator/Separator.tailwind.d.ts +5 -0
- package/cjs/Separator/Separator.tailwind.js +54 -0
- package/cjs/Separator/index.d.ts +2 -0
- package/cjs/Separator/index.js +27 -0
- package/cjs/Sidebar/Sidebar.d.ts +36 -0
- package/cjs/Sidebar/Sidebar.js +61 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/cjs/Sidebar/SidebarButtonLink.js +84 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +15 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeader.js +20 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +8 -0
- package/cjs/Sidebar/SidebarHeading.js +25 -0
- package/cjs/Sidebar/SidebarLink.d.ts +9 -0
- package/cjs/Sidebar/SidebarLink.js +50 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +9 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +37 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +36 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +24 -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 +11 -0
- package/cjs/Sidebar/SidebarNav.js +36 -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 +14 -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 +18 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +69 -0
- package/cjs/Tables/DataTable/DataTable.js +264 -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 +119 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +63 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +39 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +58 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +9 -0
- package/cjs/Tables/DataTable/components/Loader.js +47 -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 +63 -0
- package/cjs/Tables/DataTable/types.js +5 -0
- package/cjs/Tables/DataTable/utils.d.ts +4 -0
- package/cjs/Tables/DataTable/utils.js +20 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +60 -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 +26 -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 +60 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +75 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +72 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +84 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +51 -0
- package/cjs/Tabs/types.d.ts +34 -0
- package/cjs/Tabs/types.js +5 -0
- package/cjs/Tabs/utils.d.ts +2 -0
- package/cjs/Tabs/utils.js +18 -0
- package/cjs/Tag/Tag.d.ts +48 -0
- package/cjs/Tag/Tag.js +139 -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 +28 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +42 -0
- package/cjs/TextArea/index.js +27 -0
- package/cjs/TextWrap/TextWrap.d.ts +8 -0
- package/cjs/TextWrap/TextWrap.js +53 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +27 -0
- package/cjs/Toggle/Toggle.d.ts +14 -0
- package/cjs/Toggle/Toggle.js +75 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +84 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +27 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +46 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +52 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +47 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +14 -0
- package/cjs/Tooltip/TooltipWrapper.js +82 -0
- package/{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 +9 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -0
- package/cjs/Typography/Typography.tailwind.js +170 -0
- package/cjs/UserContent/UserContent.d.ts +9 -0
- package/cjs/UserContent/UserContent.js +26 -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 +146 -0
- package/cjs/styles/zIndexes.d.ts +8 -0
- package/cjs/styles/zIndexes.js +15 -0
- package/cjs/types.d.ts +27 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/overlay.tailwind.d.ts +5 -0
- package/cjs/utilities/overlay.tailwind.js +107 -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/clamp.d.ts +1 -0
- package/cjs/utils/clamp.js +9 -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 +2 -9
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +21 -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 +15 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +27 -0
- package/cjs/utils/isReactText.d.ts +2 -0
- package/cjs/utils/isReactText.js +9 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +15 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +12 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +39 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +21 -0
- package/{utils → cjs/utils}/pluralize.js +8 -9
- package/cjs/utils/prefersReducedMotion.d.ts +6 -0
- package/cjs/utils/prefersReducedMotion.js +13 -0
- package/{utils → cjs/utils}/range.js +2 -5
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +15 -0
- package/{utils → cjs/utils}/uniqBy.js +2 -7
- package/{utils → cjs/utils}/uniqueId.js +2 -5
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +24 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +53 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +27 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +44 -0
- package/esm/AnnouncementBadge/index.d.ts +2 -0
- package/esm/AnnouncementBadge/index.js +2 -0
- package/esm/AutoComplete/AutoComplete.d.ts +20 -0
- package/esm/AutoComplete/AutoComplete.js +450 -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/AutocompleteContext.d.ts +5 -0
- package/esm/AutoComplete/components/AutocompleteContext.js +13 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +30 -0
- package/esm/AutoComplete/index.d.ts +7 -0
- package/esm/AutoComplete/index.js +7 -0
- package/esm/AutoComplete/types.d.ts +95 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +8 -0
- package/esm/AutoComplete/utils.js +71 -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 +33 -0
- package/esm/Badge/Badge.js +73 -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 +133 -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 +51 -0
- package/esm/Banners/Promote/Promote.js +97 -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 +10 -0
- package/esm/Button/IconButton.js +19 -0
- package/esm/Button/PolymorphicButton.d.ts +12 -0
- package/esm/Button/PolymorphicButton.js +69 -0
- package/esm/Button/PolymorphicIconButton.d.ts +29 -0
- package/esm/Button/PolymorphicIconButton.js +81 -0
- package/esm/Button/index.d.ts +5 -0
- package/esm/Button/index.js +4 -0
- package/esm/Button/styles.d.ts +5 -0
- package/esm/Button/styles.js +30 -0
- package/esm/Button/types.d.ts +33 -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 +92 -0
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/esm/Checkbox/Checkbox.tailwind.js +70 -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 +35 -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 +3 -0
- package/esm/DatePicker/index.js +3 -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 +49 -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 +14 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +38 -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 +8 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +22 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +46 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +8 -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 +11 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +40 -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 +21 -0
- package/esm/Dropzone/Dropzone.js +152 -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 +50 -0
- package/esm/EmptyState/types.js +1 -0
- package/esm/Field/Field.d.ts +54 -0
- package/esm/Field/Field.js +98 -0
- package/esm/Field/FieldContext.d.ts +16 -0
- package/esm/Field/FieldContext.js +8 -0
- package/esm/Field/index.d.ts +5 -0
- package/esm/Field/index.js +4 -0
- package/esm/Field/useField.d.ts +2 -0
- package/esm/Field/useField.js +5 -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 +83 -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 +40 -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 +30 -0
- package/esm/Input/Input.js +209 -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 +46 -0
- package/esm/Link/index.d.ts +5 -0
- package/esm/Link/index.js +5 -0
- package/esm/Medallion/Medallion.d.ts +12 -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 +56 -0
- package/esm/Modal/Modal.js +140 -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/Popover/Popover.d.ts +5 -0
- package/esm/Popover/Popover.js +129 -0
- package/esm/Popover/index.d.ts +3 -0
- package/esm/Popover/index.js +3 -0
- package/esm/Popover/types.d.ts +74 -0
- package/esm/Popover/types.js +1 -0
- package/esm/ProgressBar/ProgressBar.d.ts +16 -0
- package/esm/ProgressBar/ProgressBar.js +47 -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 +43 -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 +62 -0
- package/esm/RadioGroup/RadioGroup.d.ts +41 -0
- package/esm/RadioGroup/RadioGroup.js +97 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +11 -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 +38 -0
- package/esm/RangeSlider/RangeSlider.js +101 -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 +54 -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 +33 -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 +9 -0
- package/esm/Separator/Separator.js +29 -0
- package/esm/Separator/Separator.tailwind.d.ts +5 -0
- package/esm/Separator/Separator.tailwind.js +53 -0
- package/esm/Separator/index.d.ts +2 -0
- package/esm/Separator/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +36 -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 +7 -0
- package/esm/Sidebar/SidebarHeader.js +13 -0
- package/esm/Sidebar/SidebarHeading.d.ts +8 -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 +9 -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 +24 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +91 -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 +11 -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 +14 -0
- package/esm/Switch/Switch.js +80 -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 +39 -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 +69 -0
- package/esm/Tables/DataTable/DataTable.js +258 -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 +9 -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 +63 -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 +71 -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 +34 -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 +48 -0
- package/esm/Tag/Tag.js +133 -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 +43 -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 +14 -0
- package/esm/Toggle/Toggle.js +69 -0
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
- package/esm/Toggle/Toggle.tailwind.js +84 -0
- package/esm/Toggle/index.d.ts +2 -0
- package/esm/Toggle/index.js +2 -0
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +39 -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 +46 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +14 -0
- package/esm/Tooltip/TooltipWrapper.js +74 -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 +9 -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 +147 -0
- package/esm/styles/zIndexes.d.ts +8 -0
- package/esm/styles/zIndexes.js +13 -0
- package/esm/types.d.ts +27 -0
- package/esm/types.js +1 -0
- package/esm/utilities/overlay.tailwind.d.ts +5 -0
- package/esm/utilities/overlay.tailwind.js +106 -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/clamp.d.ts +1 -0
- package/esm/utils/clamp.js +3 -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/{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/isReactText.d.ts +2 -0
- package/esm/utils/isReactText.js +3 -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/prefersReducedMotion.d.ts +6 -0
- package/esm/utils/prefersReducedMotion.js +7 -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 +89 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +139 -0
- package/scss/variables.scss +8 -0
- package/components/Alert/Alert.d.ts +0 -9
- package/components/Alert/Alert.js +0 -49
- package/components/Alert/index.js +0 -27
- package/components/AutoComplete/AutoComplete.d.ts +0 -66
- package/components/AutoComplete/AutoComplete.js +0 -512
- package/components/AutoComplete/index.d.ts +0 -2
- package/components/AutoComplete/index.js +0 -27
- package/components/AutoComplete/types.d.ts +0 -21
- package/components/AutoComplete/types.js +0 -1
- package/components/AutoComplete/utils.d.ts +0 -3
- package/components/AutoComplete/utils.js +0 -35
- package/components/Button/Button.d.ts +0 -13
- package/components/Button/Button.js +0 -59
- package/components/Button/LinkButton.d.ts +0 -9
- package/components/Button/LinkButton.js +0 -52
- package/components/Button/index.d.ts +0 -3
- package/components/Button/index.js +0 -40
- package/components/Card/Card.d.ts +0 -13
- package/components/Card/Card.js +0 -71
- package/components/Card/components/CardHeader.d.ts +0 -3
- package/components/Card/components/CardHeader.js +0 -25
- package/components/Card/components/CardTitle.d.ts +0 -7
- package/components/Card/components/CardTitle.js +0 -30
- package/components/Card/index.d.ts +0 -3
- package/components/Card/index.js +0 -19
- package/components/Checkbox/Checkbox.d.ts +0 -5
- package/components/Checkbox/Checkbox.js +0 -66
- package/components/Checkbox/index.js +0 -27
- package/components/Chip/Chip.d.ts +0 -9
- package/components/Chip/Chip.js +0 -77
- package/components/Chip/index.d.ts +0 -2
- package/components/Chip/index.js +0 -21
- package/components/Dropdown/Dropdown.d.ts +0 -27
- package/components/Dropdown/Dropdown.js +0 -163
- package/components/Dropdown/DropdownButton.d.ts +0 -12
- package/components/Dropdown/DropdownButton.js +0 -117
- package/components/Dropdown/components/DropdownDivider.d.ts +0 -6
- package/components/Dropdown/components/DropdownDivider.js +0 -24
- package/components/Dropdown/components/DropdownItem.d.ts +0 -10
- package/components/Dropdown/components/DropdownItem.js +0 -46
- package/components/Dropdown/components/DropdownTitle.d.ts +0 -4
- package/components/Dropdown/components/DropdownTitle.js +0 -34
- package/components/Dropdown/index.d.ts +0 -3
- package/components/Dropdown/index.js +0 -29
- package/components/HelpUnderline/HelpUnderline.d.ts +0 -10
- package/components/HelpUnderline/HelpUnderline.js +0 -39
- package/components/HelpUnderline/index.js +0 -27
- package/components/Input/Input.d.ts +0 -25
- package/components/Input/Input.js +0 -134
- package/components/LoaderIcon/LoaderIcon.d.ts +0 -7
- package/components/LoaderIcon/LoaderIcon.js +0 -65
- package/components/LoaderIcon/index.d.ts +0 -2
- package/components/LoaderIcon/index.js +0 -27
- package/components/MaterialIcon/MaterialIcon.d.ts +0 -12
- package/components/MaterialIcon/MaterialIcon.js +0 -48
- package/components/MaterialIcon/index.d.ts +0 -2
- package/components/MaterialIcon/index.js +0 -27
- package/components/Modal/Modal.d.ts +0 -30
- package/components/Modal/Modal.js +0 -207
- package/components/Modal/components/ModalFooter.d.ts +0 -4
- package/components/Modal/components/ModalFooter.js +0 -34
- package/components/Modal/components/ModalSection.d.ts +0 -6
- package/components/Modal/components/ModalSection.js +0 -38
- package/components/Modal/index.d.ts +0 -2
- package/components/Modal/index.js +0 -21
- package/components/Pagination/Pagination.d.ts +0 -12
- package/components/Pagination/Pagination.js +0 -131
- package/components/Pagination/index.js +0 -27
- package/components/RadioGroup/RadioButton.d.ts +0 -4
- package/components/RadioGroup/RadioButton.js +0 -35
- package/components/RadioGroup/RadioGroup.d.ts +0 -20
- package/components/RadioGroup/RadioGroup.js +0 -140
- package/components/RadioGroup/index.d.ts +0 -3
- package/components/RadioGroup/index.js +0 -29
- package/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
- package/components/ScrollIndicator/ScrollIndicator.js +0 -165
- package/components/ScrollIndicator/index.d.ts +0 -2
- package/components/ScrollIndicator/index.js +0 -21
- package/components/Select/Select.d.ts +0 -6
- package/components/Select/Select.js +0 -40
- package/components/Select/index.js +0 -27
- package/components/Table/Table.d.ts +0 -6
- package/components/Table/Table.js +0 -36
- package/components/Table/index.d.ts +0 -3
- package/components/Table/index.js +0 -19
- package/components/TextArea/TextArea.d.ts +0 -5
- package/components/TextArea/TextArea.js +0 -34
- package/components/TextArea/index.js +0 -27
- package/components/Tooltip/Tooltip.d.ts +0 -5
- package/components/Tooltip/Tooltip.js +0 -29
- package/components/Tooltip/TooltipWrapper.d.ts +0 -32
- package/components/Tooltip/TooltipWrapper.js +0 -164
- package/components/Tooltip/index.js +0 -40
- package/index.d.ts +0 -19
- 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/utils/clamp.d.ts +0 -2
- package/utils/clamp.js +0 -20
- package/utils/genericChangeHandler.d.ts +0 -5
- package/utils/omit.d.ts +0 -2
- package/utils/omit.js +0 -25
- /package/{components → cjs/Banners}/Alert/index.d.ts +0 -0
- /package/{components → cjs}/Checkbox/index.d.ts +0 -0
- /package/{components → cjs}/HelpUnderline/index.d.ts +0 -0
- /package/{components → cjs}/Input/index.d.ts +0 -0
- /package/{components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- /package/{components → cjs}/Select/index.d.ts +0 -0
- /package/{components → cjs}/TextArea/index.d.ts +0 -0
- /package/{utils → cjs/utils}/pluralize.d.ts +0 -0
- /package/{utils → cjs/utils}/range.d.ts +0 -0
- /package/{utils → cjs/utils}/uniqBy.d.ts +0 -0
- /package/{utils → cjs/utils}/uniqueId.d.ts +0 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { DataTableLocale } from "../DataTable";
|
3
|
+
export interface LoaderProps {
|
4
|
+
/** @ignore */
|
5
|
+
className?: string;
|
6
|
+
locale: Required<DataTableLocale>;
|
7
|
+
}
|
8
|
+
export declare const Loader: VFC<LoaderProps>;
|
9
|
+
export default Loader;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
var _templateObject;
|
4
|
+
import { useEffect, useState } from "react";
|
5
|
+
import EmptyState from "../../../EmptyState";
|
6
|
+
import ProgressSpinner from "../../../ProgressSpinner";
|
7
|
+
import stl from "../../../styles/helpers/satellitePrefixer";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
export var Loader = function Loader(_ref) {
|
10
|
+
var className = _ref.className,
|
11
|
+
locale = _ref.locale;
|
12
|
+
var _useState = useState(false),
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
14
|
+
showLoadMessage = _useState2[0],
|
15
|
+
setShowLoadMessage = _useState2[1];
|
16
|
+
useEffect(function () {
|
17
|
+
// See https://github.com/algolia/AlgoliaWeb/blob/develop/_client/src/common/components/AsyncWrapper/AsyncWrapper.tsx#L56
|
18
|
+
var loadTimer = setTimeout(function () {
|
19
|
+
return setShowLoadMessage(true);
|
20
|
+
}, 5000);
|
21
|
+
return function () {
|
22
|
+
clearTimeout(loadTimer);
|
23
|
+
setShowLoadMessage(false);
|
24
|
+
};
|
25
|
+
}, []);
|
26
|
+
return /*#__PURE__*/_jsx("div", {
|
27
|
+
className: className,
|
28
|
+
children: showLoadMessage ? /*#__PURE__*/_jsx(EmptyState, {
|
29
|
+
usageContext: "result",
|
30
|
+
leadIllustration: /*#__PURE__*/_jsx("div", {
|
31
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex justify-center"]))),
|
32
|
+
children: /*#__PURE__*/_jsx(ProgressSpinner, {})
|
33
|
+
}),
|
34
|
+
title: locale.loadingTitle,
|
35
|
+
description: locale.loadingDescription,
|
36
|
+
centered: true
|
37
|
+
}) : /*#__PURE__*/_jsx(ProgressSpinner, {})
|
38
|
+
});
|
39
|
+
};
|
40
|
+
export default Loader;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import type { ComponentType } from "react";
|
2
|
+
export declare type Status = "loading" | "error" | "success";
|
3
|
+
export declare type SelectMode = "single" | "multi" | "none";
|
4
|
+
export declare type SortingDirection = "asc" | "desc" | "none";
|
5
|
+
export declare type Sorting = [columnId: string, direction: SortingDirection];
|
6
|
+
export declare type GetItemId<Item> = string | ((item: Item, idx: number) => string);
|
7
|
+
export interface Row<Item> {
|
8
|
+
/** The item for the given row */
|
9
|
+
item: Item;
|
10
|
+
/** The row id */
|
11
|
+
id: string;
|
12
|
+
/** Is the row hovered? */
|
13
|
+
hovered: boolean;
|
14
|
+
/** Is the row selected? */
|
15
|
+
selected: boolean;
|
16
|
+
/** Can the row be selected? */
|
17
|
+
selectable: boolean;
|
18
|
+
}
|
19
|
+
export interface CellProps<Item> {
|
20
|
+
/** The value of the given cell */
|
21
|
+
value: any;
|
22
|
+
/**
|
23
|
+
* The row of the cell, which lets you access other keys
|
24
|
+
* Useful for example when you want to calculate a sum of values in a column
|
25
|
+
*/
|
26
|
+
row: Row<Item>;
|
27
|
+
/** The column of the given cell */
|
28
|
+
column: AdvancedColumnDefinition<Item>;
|
29
|
+
}
|
30
|
+
export interface HeaderProps<Item> {
|
31
|
+
/** The column of the given header */
|
32
|
+
column: AdvancedColumnDefinition<Item>;
|
33
|
+
}
|
34
|
+
export interface AdvancedColumnDefinition<Item> {
|
35
|
+
/** The ID of the column - Should be unique */
|
36
|
+
id: string;
|
37
|
+
/** A string or a function which determines how to get the column data */
|
38
|
+
accessor: string | ((item: Item) => any);
|
39
|
+
sort?: boolean;
|
40
|
+
Header?: ComponentType<HeaderProps<Item>> | string | false;
|
41
|
+
Cell?: ComponentType<CellProps<Item>>;
|
42
|
+
/** @ignore */
|
43
|
+
className?: string;
|
44
|
+
}
|
45
|
+
/** A column can be defined as a `string`, or as an `AdvancedColumnDefinition` in more complex cases */
|
46
|
+
export declare type ColumnDefinition<Item> = string | AdvancedColumnDefinition<Item>;
|
47
|
+
export interface IndeterminatePagination {
|
48
|
+
currentPage: number;
|
49
|
+
itemsPerPage: number;
|
50
|
+
isLastPage?: boolean;
|
51
|
+
}
|
52
|
+
export interface DeterminatePagination {
|
53
|
+
currentPage: number;
|
54
|
+
itemsPerPage: number;
|
55
|
+
totalItemsCount: number;
|
56
|
+
}
|
57
|
+
export declare type PaginationConfiguration = false | IndeterminatePagination | DeterminatePagination;
|
58
|
+
export interface DataConfiguration {
|
59
|
+
/** The current pagination configuration */
|
60
|
+
pagination: PaginationConfiguration;
|
61
|
+
/** The current sorting configuration */
|
62
|
+
sorting: Sorting[];
|
63
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { AdvancedColumnDefinition, DeterminatePagination, IndeterminatePagination, PaginationConfiguration, Row } from "./types";
|
2
|
+
export declare const isDeterminatePagination: (pagination: PaginationConfiguration) => pagination is DeterminatePagination;
|
3
|
+
export declare const isIndeterminatePagination: (pagination: PaginationConfiguration) => pagination is IndeterminatePagination;
|
4
|
+
export declare const getCellValue: <Item extends {}>(column: AdvancedColumnDefinition<Item>, row: Row<Item>) => any;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import get from "lodash/get";
|
2
|
+
export var isDeterminatePagination = function isDeterminatePagination(pagination) {
|
3
|
+
return pagination !== false && "totalItemsCount" in pagination;
|
4
|
+
};
|
5
|
+
export var isIndeterminatePagination = function isIndeterminatePagination(pagination) {
|
6
|
+
return pagination !== false && !("totalItemsCount" in pagination) && "currentPage" in pagination && typeof pagination.currentPage === "number";
|
7
|
+
};
|
8
|
+
export var getCellValue = function getCellValue(column, row) {
|
9
|
+
if (typeof column.accessor === "string") {
|
10
|
+
return get(row.item, column.accessor);
|
11
|
+
}
|
12
|
+
return column.accessor(row.item);
|
13
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { DetailedHTMLProps, ReactNode, TableHTMLAttributes, VFC } from "react";
|
2
|
+
export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
|
3
|
+
footer?: ReactNode;
|
4
|
+
smallFooter?: boolean;
|
5
|
+
hasActions?: boolean;
|
6
|
+
highlight?: boolean;
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
|
10
|
+
*
|
11
|
+
* #### Do
|
12
|
+
*
|
13
|
+
* - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
|
14
|
+
* - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
|
15
|
+
* - Indicate sorting capabilities of a column with a chevron in the cell header
|
16
|
+
* - Start by columns with highest value to the user, and continue with less important ones
|
17
|
+
*
|
18
|
+
* #### Do not
|
19
|
+
*
|
20
|
+
* - Center align text in cells
|
21
|
+
*
|
22
|
+
* ## Best practices
|
23
|
+
*
|
24
|
+
* - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
|
25
|
+
* - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
|
26
|
+
*/
|
27
|
+
export declare const Table: VFC<TableProps>;
|
28
|
+
export default Table;
|
@@ -0,0 +1,54 @@
|
|
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
|
+
var _templateObject, _templateObject2, _templateObject3;
|
5
|
+
var _excluded = ["className", "footer", "smallFooter", "hasActions", "highlight"];
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
8
|
+
import cx from "clsx";
|
9
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
10
|
+
import TableFooter from "./components/TableFooter";
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
/**
|
14
|
+
* Tables are used to structure content in a grid to make it easier to see relationships and to facilitate understanding.
|
15
|
+
*
|
16
|
+
* #### Do
|
17
|
+
*
|
18
|
+
* - Organize columns and rows based on the needs of your users. To help people read the table, order the columns by importance from left to right, with the key pieces of content opening the row
|
19
|
+
* - Include units of measurement symbols in the header so you don't need to repeat them throughout the columns
|
20
|
+
* - Indicate sorting capabilities of a column with a chevron in the cell header
|
21
|
+
* - Start by columns with highest value to the user, and continue with less important ones
|
22
|
+
*
|
23
|
+
* #### Do not
|
24
|
+
*
|
25
|
+
* - Center align text in cells
|
26
|
+
*
|
27
|
+
* ## Best practices
|
28
|
+
*
|
29
|
+
* - If a cell is empty or unavailable, keep the cell empty to reduce noise and help with legibility.
|
30
|
+
* - Truncate long text to make it fit into a cell. However, choose column width wisely based on expected values, and adjust the table accordingly
|
31
|
+
*/
|
32
|
+
export var Table = function Table(_ref) {
|
33
|
+
var className = _ref.className,
|
34
|
+
footer = _ref.footer,
|
35
|
+
_ref$smallFooter = _ref.smallFooter,
|
36
|
+
smallFooter = _ref$smallFooter === void 0 ? false : _ref$smallFooter,
|
37
|
+
hasActions = _ref.hasActions,
|
38
|
+
_ref$highlight = _ref.highlight,
|
39
|
+
highlight = _ref$highlight === void 0 ? true : _ref$highlight,
|
40
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
41
|
+
return /*#__PURE__*/_jsxs("div", {
|
42
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["rounded text-grey-900 bg-white display-body"]))), className),
|
43
|
+
children: [/*#__PURE__*/_jsx("div", {
|
44
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["overflow-x-auto"]))),
|
45
|
+
children: /*#__PURE__*/_jsx("table", _objectSpread(_objectSpread({}, props), {}, {
|
46
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["table ", " ", ""])), hasActions && "table-with-actions", highlight && "table-with-highlight")
|
47
|
+
}))
|
48
|
+
}), !!footer && /*#__PURE__*/_jsx(TableFooter, {
|
49
|
+
size: smallFooter ? "small" : "default",
|
50
|
+
children: footer
|
51
|
+
})]
|
52
|
+
});
|
53
|
+
};
|
54
|
+
export default Table;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import _plugin from "tailwindcss/plugin";
|
2
|
+
// purgecss whitelist: th, td, tr
|
3
|
+
var plugin = _plugin;
|
4
|
+
var tablePlugin = plugin(function (_ref) {
|
5
|
+
var addComponents = _ref.addComponents,
|
6
|
+
theme = _ref.theme;
|
7
|
+
addComponents({
|
8
|
+
".table": {
|
9
|
+
width: "100%",
|
10
|
+
borderCollapse: "collapse",
|
11
|
+
textAlign: "left",
|
12
|
+
"th, td": {
|
13
|
+
padding: "14px 16px"
|
14
|
+
},
|
15
|
+
thead: {
|
16
|
+
backgroundColor: theme("colors.grey.50")
|
17
|
+
},
|
18
|
+
th: {
|
19
|
+
borderBottom: "1px solid ".concat(theme("colors.grey.200")),
|
20
|
+
fontWeight: "normal"
|
21
|
+
},
|
22
|
+
"tr:not(:last-child) td": {
|
23
|
+
borderBottom: "1px solid ".concat(theme("colors.grey.100"))
|
24
|
+
}
|
25
|
+
},
|
26
|
+
".table-with-actions": {
|
27
|
+
"th:last-of-type, td:last-of-type": {
|
28
|
+
textAlign: "right"
|
29
|
+
}
|
30
|
+
},
|
31
|
+
".table-with-highlight": {
|
32
|
+
"tr:hover td": {
|
33
|
+
backgroundColor: theme("colors.grey.50")
|
34
|
+
}
|
35
|
+
}
|
36
|
+
});
|
37
|
+
});
|
38
|
+
export default tablePlugin;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
|
+
export declare type FooterSizes = "default" | "small";
|
3
|
+
export interface FooterProps {
|
4
|
+
size?: FooterSizes;
|
5
|
+
children?: ReactNode;
|
6
|
+
}
|
7
|
+
export declare const TableFooter: VFC<FooterProps>;
|
8
|
+
export default TableFooter;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
3
|
+
import cx from "clsx";
|
4
|
+
import stl from "../../../styles/helpers/satellitePrefixer";
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
+
export var TableFooter = function TableFooter(_ref) {
|
7
|
+
var _ref$size = _ref.size,
|
8
|
+
size = _ref$size === void 0 ? "default" : _ref$size,
|
9
|
+
children = _ref.children;
|
10
|
+
var SIZE_CLASSNAMES = {
|
11
|
+
"default": stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["py-3 px-4"]))),
|
12
|
+
small: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["py-1 px-4"])))
|
13
|
+
};
|
14
|
+
return /*#__PURE__*/_jsx("div", {
|
15
|
+
className: cx(stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-grey-100 border-t border-grey-200 text-grey-600 flex items-center justify-center"]))), SIZE_CLASSNAMES[size]),
|
16
|
+
children: children
|
17
|
+
});
|
18
|
+
};
|
19
|
+
export default TableFooter;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@radix-ui/react-tabs";
|
4
|
+
import cx from "clsx";
|
5
|
+
import Badge from "../Badge";
|
6
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
7
|
+
import { ACTIVE_UNDERLINE_VARIANT_CLASSNAMES } from "./utils";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
+
export var ContentTabs = function ContentTabs(_ref) {
|
11
|
+
var className = _ref.className,
|
12
|
+
tabs = _ref.tabs,
|
13
|
+
tabIndex = _ref.tabIndex,
|
14
|
+
_ref$defaultIndex = _ref.defaultIndex,
|
15
|
+
defaultIndex = _ref$defaultIndex === void 0 ? 0 : _ref$defaultIndex,
|
16
|
+
onChange = _ref.onChange;
|
17
|
+
return /*#__PURE__*/_jsxs(Tabs, {
|
18
|
+
value: typeof tabIndex !== "undefined" ? String(tabIndex) : undefined,
|
19
|
+
defaultValue: typeof defaultIndex !== "undefined" ? String(defaultIndex) : undefined,
|
20
|
+
onValueChange: function onValueChange(value) {
|
21
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(Number(value));
|
22
|
+
},
|
23
|
+
children: [/*#__PURE__*/_jsx(TabsList, {
|
24
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["tabs-tabbar border-b border-grey-200 flex overflow-x-auto whitespace-nowrap space-x-6"]))), className),
|
25
|
+
children: tabs.map(function (_ref2, index) {
|
26
|
+
var _ref2$variant = _ref2.variant,
|
27
|
+
variant = _ref2$variant === void 0 ? "accent" : _ref2$variant,
|
28
|
+
className = _ref2.className,
|
29
|
+
disabled = _ref2.disabled,
|
30
|
+
label = _ref2.label,
|
31
|
+
value = _ref2.value;
|
32
|
+
return /*#__PURE__*/_jsxs(TabsTrigger, {
|
33
|
+
value: String(index),
|
34
|
+
disabled: disabled,
|
35
|
+
className: cx(ACTIVE_UNDERLINE_VARIANT_CLASSNAMES[variant], stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["tab pb-3 text-base leading-sm"]))), className),
|
36
|
+
children: [label, !!value && /*#__PURE__*/_jsx(Badge, {
|
37
|
+
size: "small",
|
38
|
+
variant: variant,
|
39
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["ml-2"]))),
|
40
|
+
children: value
|
41
|
+
})]
|
42
|
+
}, index);
|
43
|
+
})
|
44
|
+
}), tabs.map(function (_ref3, index) {
|
45
|
+
var content = _ref3.content;
|
46
|
+
return /*#__PURE__*/_jsx(TabsContent, {
|
47
|
+
value: String(index),
|
48
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["focus:outline-none"]))),
|
49
|
+
children: content
|
50
|
+
}, index);
|
51
|
+
})]
|
52
|
+
});
|
53
|
+
};
|
54
|
+
export default ContentTabs;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { LinkTabsProps, UrlMatcher } from "./types";
|
3
|
+
export declare const defaultUrlMatcher: UrlMatcher;
|
4
|
+
/**
|
5
|
+
* Tabs are an easy way to organize content by grouping similar information on the same page. Use them to help users navigate between related views within the same context, especially when the number of views may be more than 3.
|
6
|
+
*
|
7
|
+
* #### 3 core elements
|
8
|
+
* - **Selected**: currently active tab
|
9
|
+
* - **Unselected**: other available tabs
|
10
|
+
* - **Divider**: separates the tab navigation and content
|
11
|
+
*
|
12
|
+
* #### With badges
|
13
|
+
* Use when you have to indicate the number of performed actions or operations as well as their status, e.g. success, error, failure
|
14
|
+
*
|
15
|
+
* ## Content guidelines
|
16
|
+
* - Make them clear to help differentiate the sections beneath
|
17
|
+
* - Write short tab labels and use plain language, rather than made-up terms. Tab labels should usually be 1–2 words
|
18
|
+
* - Do not use ALL CAPS for tab labels. ALL CAPS is rarely a good idea because it's harder to read
|
19
|
+
*
|
20
|
+
* ## Usability best practices
|
21
|
+
* #### Do
|
22
|
+
* - Use tabs to alternate between views within the same context
|
23
|
+
* - Logically chunk the content behind the tabs so users can easily predict what they'll find when they select a given tab
|
24
|
+
* - Use tabs only when users don't need to see content from multiple tabs simultaneously or compare the info behind different tabs
|
25
|
+
*
|
26
|
+
* #### Do not
|
27
|
+
* - Use tabs to navigate to different context areas
|
28
|
+
* - Use tabs for primary navigation
|
29
|
+
* - Use more than one row of tabs. Multiple rows create jumping UI elements, which make it impossible for users to remember which tabs they've already visited
|
30
|
+
* - Place the tab on the sides or bottom of the page, where users often overlook them
|
31
|
+
*/
|
32
|
+
export declare const LinkTabs: VFC<LinkTabsProps>;
|
33
|
+
export default LinkTabs;
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject;
|
3
|
+
import cx from "clsx";
|
4
|
+
import useLocation from "react-use/lib/useLocation";
|
5
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
6
|
+
import matchLocation from "../utils/matchLocation";
|
7
|
+
import LinkTab from "./components/LinkTab";
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
+
export var defaultUrlMatcher = function defaultUrlMatcher(tab, location) {
|
10
|
+
return matchLocation(tab.to, {
|
11
|
+
pathname: location.pathname || ""
|
12
|
+
});
|
13
|
+
};
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Tabs are an easy way to organize content by grouping similar information on the same page. Use them to help users navigate between related views within the same context, especially when the number of views may be more than 3.
|
17
|
+
*
|
18
|
+
* #### 3 core elements
|
19
|
+
* - **Selected**: currently active tab
|
20
|
+
* - **Unselected**: other available tabs
|
21
|
+
* - **Divider**: separates the tab navigation and content
|
22
|
+
*
|
23
|
+
* #### With badges
|
24
|
+
* Use when you have to indicate the number of performed actions or operations as well as their status, e.g. success, error, failure
|
25
|
+
*
|
26
|
+
* ## Content guidelines
|
27
|
+
* - Make them clear to help differentiate the sections beneath
|
28
|
+
* - Write short tab labels and use plain language, rather than made-up terms. Tab labels should usually be 1–2 words
|
29
|
+
* - Do not use ALL CAPS for tab labels. ALL CAPS is rarely a good idea because it's harder to read
|
30
|
+
*
|
31
|
+
* ## Usability best practices
|
32
|
+
* #### Do
|
33
|
+
* - Use tabs to alternate between views within the same context
|
34
|
+
* - Logically chunk the content behind the tabs so users can easily predict what they'll find when they select a given tab
|
35
|
+
* - Use tabs only when users don't need to see content from multiple tabs simultaneously or compare the info behind different tabs
|
36
|
+
*
|
37
|
+
* #### Do not
|
38
|
+
* - Use tabs to navigate to different context areas
|
39
|
+
* - Use tabs for primary navigation
|
40
|
+
* - Use more than one row of tabs. Multiple rows create jumping UI elements, which make it impossible for users to remember which tabs they've already visited
|
41
|
+
* - Place the tab on the sides or bottom of the page, where users often overlook them
|
42
|
+
*/
|
43
|
+
export var LinkTabs = function LinkTabs(_ref) {
|
44
|
+
var className = _ref.className,
|
45
|
+
tabs = _ref.tabs,
|
46
|
+
onTabClick = _ref.onTabClick,
|
47
|
+
_ref$urlMatcher = _ref.urlMatcher,
|
48
|
+
urlMatcher = _ref$urlMatcher === void 0 ? defaultUrlMatcher : _ref$urlMatcher;
|
49
|
+
var location = useLocation();
|
50
|
+
var tabIndex = tabs.findIndex(function (tab) {
|
51
|
+
return urlMatcher(tab, location);
|
52
|
+
});
|
53
|
+
tabIndex = tabIndex === -1 ? 0 : tabIndex;
|
54
|
+
return /*#__PURE__*/_jsx("nav", {
|
55
|
+
role: "tablist",
|
56
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["tabs-tabbar border-b border-grey-200 flex overflow-x-auto whitespace-nowrap space-x-6"]))), className),
|
57
|
+
children: tabs.map(function (tab, index) {
|
58
|
+
return /*#__PURE__*/_jsx(LinkTab, {
|
59
|
+
tab: tab,
|
60
|
+
selected: index === tabIndex,
|
61
|
+
onClick: function onClick(evt) {
|
62
|
+
return onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(evt, tab);
|
63
|
+
}
|
64
|
+
}, tab.to);
|
65
|
+
})
|
66
|
+
});
|
67
|
+
};
|
68
|
+
export default LinkTabs;
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import _plugin from "tailwindcss/plugin";
|
2
|
+
// @ts-check
|
3
|
+
var plugin = _plugin;
|
4
|
+
var tabsPlugin = plugin(function (_ref) {
|
5
|
+
var addComponents = _ref.addComponents,
|
6
|
+
theme = _ref.theme;
|
7
|
+
addComponents({
|
8
|
+
".tabs-tabbar": {
|
9
|
+
scrollBehavior: "smooth",
|
10
|
+
padding: "0 3px",
|
11
|
+
"&:is(nav)": {
|
12
|
+
padding: "0 4px"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
".tab[aria-selected=true]": {
|
16
|
+
color: theme("colors.grey.900")
|
17
|
+
},
|
18
|
+
".tab-grey[aria-selected=true], .tab-grey:hover, .tab-grey:focus": {
|
19
|
+
borderBottomColor: theme("colors.grey.300")
|
20
|
+
},
|
21
|
+
".tab-accent[aria-selected=true], .tab-accent:hover, .tab-accent:focus": {
|
22
|
+
borderBottomColor: theme("colors.accent.600")
|
23
|
+
},
|
24
|
+
".tab-blue[aria-selected=true], .tab-blue:hover, .tab-blue:focus": {
|
25
|
+
borderBottomColor: theme("colors.blue.600")
|
26
|
+
},
|
27
|
+
".tab-green[aria-selected=true], .tab-green:hover, .tab-green:focus": {
|
28
|
+
borderBottomColor: theme("colors.green.600")
|
29
|
+
},
|
30
|
+
".tab-orange[aria-selected=true], .tab-orange:hover, .tab-orange:focus": {
|
31
|
+
borderBottomColor: theme("colors.orange.600")
|
32
|
+
},
|
33
|
+
".tab-red[aria-selected=true], .tab-red:hover, .tab-red:focus": {
|
34
|
+
borderBottomColor: theme("colors.red.600")
|
35
|
+
},
|
36
|
+
".tab": {
|
37
|
+
flexShrink: "0",
|
38
|
+
padding: "3px",
|
39
|
+
marginTop: "3px",
|
40
|
+
borderBottomWidth: "3px",
|
41
|
+
borderBottomColor: "transparent",
|
42
|
+
color: theme("colors.grey.600"),
|
43
|
+
cursor: "pointer",
|
44
|
+
display: "inline-flex",
|
45
|
+
justifyContent: "center",
|
46
|
+
minWidth: theme("spacing.12"),
|
47
|
+
"&[disabled], &[aria-disabled=true]": {
|
48
|
+
color: theme("colors.grey.400"),
|
49
|
+
borderBottomColor: "transparent",
|
50
|
+
cursor: "not-allowed"
|
51
|
+
},
|
52
|
+
"&:focus": {
|
53
|
+
outline: "none"
|
54
|
+
},
|
55
|
+
"&:focus-visible": {
|
56
|
+
outline: "3px solid ".concat(theme("colors.accent.600")),
|
57
|
+
marginBottom: "3px",
|
58
|
+
borderBottom: "transparent"
|
59
|
+
},
|
60
|
+
"&:is(a)": {
|
61
|
+
marginTop: "5px",
|
62
|
+
"&:focus-visible": {
|
63
|
+
margin: "4px 0",
|
64
|
+
paddingTop: "4px",
|
65
|
+
paddingBottom: "3px"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
});
|
70
|
+
});
|
71
|
+
export default tabsPlugin;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { MouseEventHandler, VFC } from "react";
|
2
|
+
import type { LinkTab as LinkTabType } from "../types";
|
3
|
+
export interface LinkTabProps {
|
4
|
+
tab: LinkTabType;
|
5
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
6
|
+
selected: boolean;
|
7
|
+
}
|
8
|
+
export declare const LinkTab: VFC<LinkTabProps>;
|
9
|
+
export default LinkTab;
|