@algolia/satellite 1.0.0-beta.16 → 1.0.0-beta.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +154 -8
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +49 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +27 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +66 -0
- package/cjs/AutoComplete/AutoComplete.js +593 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.js +93 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +37 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +37 -0
- package/cjs/AutoComplete/index.d.ts +5 -0
- package/cjs/AutoComplete/index.js +63 -0
- package/cjs/AutoComplete/types.d.ts +85 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +5 -0
- package/{components → cjs}/AutoComplete/utils.js +24 -7
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +36 -0
- package/cjs/Avatars/UserAvatar.d.ts +20 -0
- package/cjs/Avatars/UserAvatar.js +57 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +39 -0
- package/cjs/Avatars/types.d.ts +17 -0
- package/cjs/Avatars/types.js +5 -0
- package/cjs/Avatars/utils.d.ts +6 -0
- package/cjs/Avatars/utils.js +59 -0
- package/cjs/Badge/Badge.d.ts +35 -0
- package/cjs/Badge/Badge.js +77 -0
- package/cjs/Badge/index.d.ts +2 -0
- package/cjs/Badge/index.js +27 -0
- package/cjs/Banners/Alert/Alert.d.ts +78 -0
- package/cjs/Banners/Alert/Alert.js +140 -0
- package/cjs/Banners/Alert/index.js +27 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +63 -0
- package/cjs/Banners/BigBertha/index.d.ts +2 -0
- package/cjs/Banners/BigBertha/index.js +27 -0
- package/cjs/Banners/Promote/Promote.d.ts +57 -0
- package/cjs/Banners/Promote/Promote.js +111 -0
- package/cjs/Banners/Promote/index.d.ts +2 -0
- package/cjs/Banners/Promote/index.js +27 -0
- package/cjs/Banners/index.d.ts +3 -0
- package/cjs/Banners/index.js +38 -0
- package/cjs/Button/Button.d.ts +19 -0
- package/cjs/Button/Button.js +37 -0
- package/cjs/Button/Button.tailwind.d.ts +5 -0
- package/cjs/Button/Button.tailwind.js +153 -0
- package/cjs/Button/ButtonGroup.d.ts +18 -0
- package/cjs/Button/ButtonGroup.js +30 -0
- package/cjs/Button/IconButton.d.ts +5 -0
- package/cjs/Button/IconButton.js +23 -0
- package/cjs/Button/PolymorphicButton.d.ts +11 -0
- package/cjs/Button/PolymorphicButton.js +76 -0
- package/cjs/Button/PolymorphicIconButton.d.ts +24 -0
- package/cjs/Button/PolymorphicIconButton.js +84 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +67 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +38 -0
- package/cjs/Button/types.d.ts +32 -0
- package/cjs/Button/types.js +11 -0
- package/cjs/Card/Card.d.ts +32 -0
- package/cjs/Card/Card.js +46 -0
- package/cjs/Card/Card.tailwind.d.ts +5 -0
- package/cjs/Card/Card.tailwind.js +36 -0
- package/cjs/Card/components/CardHeader.d.ts +6 -0
- package/cjs/Card/components/CardHeader.js +29 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +29 -0
- package/cjs/Card/index.d.ts +4 -0
- package/cjs/Card/index.js +51 -0
- package/cjs/Checkbox/Checkbox.d.ts +24 -0
- package/cjs/Checkbox/Checkbox.js +98 -0
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/cjs/Checkbox/Checkbox.tailwind.js +65 -0
- package/cjs/Checkbox/index.js +27 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +87 -0
- package/cjs/ClickAwayContainer/index.d.ts +1 -0
- package/cjs/ClickAwayContainer/index.js +16 -0
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +165 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +53 -0
- package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/DatePicker/index.js +39 -0
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.tailwind.js +184 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +258 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +39 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +102 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +18 -0
- package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/cjs/DatePicker/DateRangePicker/index.js +51 -0
- package/cjs/DatePicker/components/Calendar.d.ts +17 -0
- package/cjs/DatePicker/components/Calendar.js +56 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +25 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +20 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +33 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +69 -0
- package/cjs/DatePicker/components/NavBar.d.ts +10 -0
- package/cjs/DatePicker/components/NavBar.js +124 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +23 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +48 -0
- package/cjs/DatePicker/index.d.ts +4 -0
- package/cjs/DatePicker/index.js +53 -0
- package/cjs/DatePicker/types.d.ts +26 -0
- package/cjs/DatePicker/types.js +5 -0
- package/cjs/DatePicker/utils.d.ts +3 -0
- package/cjs/DatePicker/utils.js +21 -0
- package/cjs/Dropdown/Dropdown.d.ts +64 -0
- package/cjs/Dropdown/Dropdown.js +136 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +49 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +45 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +61 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +21 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +17 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +37 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +34 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +63 -0
- package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/cjs/Dropdown/components/DropdownDivider.js +19 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +31 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +15 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +48 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +45 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +27 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +47 -0
- package/cjs/Dropdown/index.d.ts +13 -0
- package/cjs/Dropdown/index.js +159 -0
- package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/cjs/Dropdown/useDropdownItemProps.js +40 -0
- package/cjs/Dropzone/Dropzone.d.ts +20 -0
- package/cjs/Dropzone/Dropzone.js +159 -0
- package/cjs/Dropzone/index.d.ts +2 -0
- package/cjs/Dropzone/index.js +27 -0
- package/cjs/EmptyState/EmptyState.d.ts +28 -0
- package/cjs/EmptyState/EmptyState.js +125 -0
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/cjs/EmptyState/EmptyState.tailwind.js +15 -0
- package/cjs/EmptyState/index.d.ts +3 -0
- package/cjs/EmptyState/index.js +39 -0
- package/cjs/EmptyState/types.d.ts +65 -0
- package/cjs/EmptyState/types.js +5 -0
- package/cjs/Field/Field.d.ts +54 -0
- package/cjs/Field/Field.js +96 -0
- package/cjs/Field/FieldStateContext.d.ts +12 -0
- package/cjs/Field/FieldStateContext.js +15 -0
- package/cjs/Field/index.d.ts +4 -0
- package/cjs/Field/index.js +51 -0
- package/cjs/Field/useFieldState.d.ts +2 -0
- package/cjs/Field/useFieldState.js +17 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +118 -0
- package/cjs/Flag/Flag.tailwind.d.ts +5 -0
- package/cjs/Flag/Flag.tailwind.js +34 -0
- package/cjs/Flag/Flags.d.ts +48 -0
- package/cjs/Flag/Flags.js +91 -0
- package/cjs/Flag/index.d.ts +4 -0
- package/cjs/Flag/index.js +51 -0
- package/cjs/Flag/types.d.ts +27 -0
- package/cjs/Flag/types.js +5 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +51 -0
- package/cjs/FlexGrid/FlexGrid.js +70 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.js +71 -0
- package/cjs/FlexGrid/index.d.ts +2 -0
- package/cjs/FlexGrid/index.js +27 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/cjs/HelpUnderline/HelpUnderline.js +34 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +21 -0
- package/cjs/HelpUnderline/index.js +27 -0
- package/cjs/Input/Input.d.ts +27 -0
- package/cjs/Input/Input.js +213 -0
- package/cjs/Input/Input.tailwind.d.ts +5 -0
- package/cjs/Input/Input.tailwind.js +99 -0
- package/cjs/Input/index.js +27 -0
- package/cjs/Insert/Insert.d.ts +45 -0
- package/cjs/Insert/Insert.js +79 -0
- package/cjs/Insert/index.d.ts +2 -0
- package/cjs/Insert/index.js +27 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.js +376 -0
- package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/cjs/KeyboardKey/KeyboardKey.js +37 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +29 -0
- package/cjs/KeyboardKey/index.d.ts +2 -0
- package/{components/Alert → cjs/KeyboardKey}/index.js +5 -8
- package/cjs/Link/BaseLink.d.ts +8 -0
- package/cjs/Link/BaseLink.js +31 -0
- package/cjs/Link/ButtonLink.d.ts +9 -0
- package/cjs/Link/ButtonLink.js +39 -0
- package/cjs/Link/IconButtonLink.d.ts +9 -0
- package/cjs/Link/IconButtonLink.js +33 -0
- package/cjs/Link/Link.d.ts +13 -0
- package/cjs/Link/Link.js +52 -0
- package/cjs/Link/index.d.ts +5 -0
- package/cjs/Link/index.js +63 -0
- package/cjs/Medallion/Medallion.d.ts +11 -0
- package/cjs/Medallion/Medallion.js +41 -0
- package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
- package/cjs/Medallion/Medallion.tailwind.js +31 -0
- package/cjs/Medallion/index.d.ts +3 -0
- package/cjs/Medallion/index.js +39 -0
- package/cjs/Medallion/types.d.ts +2 -0
- package/cjs/Medallion/types.js +5 -0
- package/cjs/Modal/Modal.d.ts +54 -0
- package/cjs/Modal/Modal.js +150 -0
- package/cjs/Modal/Modal.tailwind.d.ts +5 -0
- package/cjs/Modal/Modal.tailwind.js +81 -0
- package/cjs/Modal/components/ModalFooter.d.ts +6 -0
- package/cjs/Modal/components/ModalFooter.js +34 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +25 -0
- package/cjs/Modal/index.d.ts +4 -0
- package/cjs/Modal/index.js +51 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +86 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +27 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +15 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +48 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +27 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
- package/cjs/Pagination/Pagination/Pagination.js +124 -0
- package/cjs/Pagination/Pagination/index.js +27 -0
- package/cjs/Pagination/index.d.ts +4 -0
- package/cjs/Pagination/index.js +51 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +13 -0
- package/cjs/ProgressBar/ProgressBar.js +46 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/cjs/ProgressBar/index.d.ts +2 -0
- package/cjs/ProgressBar/index.js +27 -0
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +54 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +36 -0
- package/cjs/ProgressSpinner/index.d.ts +2 -0
- package/cjs/ProgressSpinner/index.js +27 -0
- package/cjs/RadioGroup/RadioButton.d.ts +4 -0
- package/cjs/RadioGroup/RadioButton.js +31 -0
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/cjs/RadioGroup/RadioButton.tailwind.js +55 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +40 -0
- package/cjs/RadioGroup/RadioGroup.js +106 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/cjs/RadioGroup/RadiogroupContext.js +17 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +51 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +34 -0
- package/cjs/RangeSlider/RangeSlider.js +103 -0
- package/cjs/RangeSlider/index.d.ts +2 -0
- package/cjs/RangeSlider/index.js +27 -0
- package/cjs/Satellite/Satellite.d.ts +12 -0
- package/cjs/Satellite/Satellite.js +52 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +25 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +49 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +75 -0
- package/cjs/Satellite/locale.d.ts +31 -0
- package/cjs/Satellite/locale.js +15 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +24 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +88 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/cjs/ScrollIndicator/index.d.ts +2 -0
- package/cjs/ScrollIndicator/index.js +27 -0
- package/cjs/Select/Select.d.ts +15 -0
- package/cjs/Select/Select.js +46 -0
- package/cjs/Select/Select.tailwind.d.ts +5 -0
- package/cjs/Select/Select.tailwind.js +76 -0
- package/cjs/Select/index.js +27 -0
- package/cjs/Sidebar/Sidebar.d.ts +35 -0
- package/cjs/Sidebar/Sidebar.js +62 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/cjs/Sidebar/SidebarButtonLink.js +91 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +17 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
- package/cjs/Sidebar/SidebarHeader.js +21 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeading.js +26 -0
- package/cjs/Sidebar/SidebarLink.d.ts +9 -0
- package/cjs/Sidebar/SidebarLink.js +51 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +38 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +37 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +97 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +16 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
- package/cjs/Sidebar/SidebarNav.d.ts +10 -0
- package/cjs/Sidebar/SidebarNav.js +37 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +111 -0
- package/cjs/Sidebar/types.d.ts +6 -0
- package/cjs/Sidebar/types.js +5 -0
- package/cjs/Switch/Switch.d.ts +13 -0
- package/cjs/Switch/Switch.js +86 -0
- package/cjs/Switch/Switch.tailwind.d.ts +5 -0
- package/cjs/Switch/Switch.tailwind.js +25 -0
- package/cjs/Switch/SwitchOption.d.ts +8 -0
- package/cjs/Switch/SwitchOption.js +45 -0
- package/cjs/Switch/index.d.ts +3 -0
- package/cjs/Switch/index.js +39 -0
- package/cjs/Switch/types.d.ts +7 -0
- package/cjs/Switch/types.js +5 -0
- package/cjs/Switch/utils.d.ts +6 -0
- package/cjs/Switch/utils.js +22 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +60 -0
- package/cjs/Tables/DataTable/DataTable.js +261 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
- package/cjs/Tables/DataTable/components/Body.d.ts +15 -0
- package/cjs/Tables/DataTable/components/Body.js +121 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +65 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +41 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +60 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Loader.js +49 -0
- package/cjs/Tables/DataTable/components/index.d.ts +5 -0
- package/cjs/Tables/DataTable/components/index.js +60 -0
- package/cjs/Tables/DataTable/index.d.ts +3 -0
- package/cjs/Tables/DataTable/index.js +39 -0
- package/cjs/Tables/DataTable/types.d.ts +49 -0
- package/cjs/Tables/DataTable/types.js +5 -0
- package/cjs/Tables/DataTable/utils.d.ts +4 -0
- package/cjs/Tables/DataTable/utils.js +23 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +62 -0
- package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
- package/cjs/Tables/Table/Table.tailwind.js +39 -0
- package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
- package/cjs/Tables/Table/components/TableFooter.js +28 -0
- package/cjs/Tables/Table/index.d.ts +3 -0
- package/cjs/Tables/Table/index.js +39 -0
- package/cjs/Tables/index.d.ts +3 -0
- package/cjs/Tables/index.js +39 -0
- package/cjs/Tabs/ContentTabs.d.ts +4 -0
- package/cjs/Tabs/ContentTabs.js +62 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +78 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +53 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +86 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +51 -0
- package/cjs/Tabs/types.d.ts +35 -0
- package/cjs/Tabs/types.js +5 -0
- package/cjs/Tabs/utils.d.ts +2 -0
- package/cjs/Tabs/utils.js +19 -0
- package/cjs/Tag/Tag.d.ts +58 -0
- package/cjs/Tag/Tag.js +135 -0
- package/cjs/Tag/Tag.tailwind.d.ts +5 -0
- package/cjs/Tag/Tag.tailwind.js +54 -0
- package/cjs/Tag/index.d.ts +2 -0
- package/cjs/Tag/index.js +27 -0
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +30 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +39 -0
- package/cjs/TextArea/index.js +27 -0
- package/cjs/TextWrap/TextWrap.d.ts +8 -0
- package/cjs/TextWrap/TextWrap.js +55 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +27 -0
- package/cjs/Toggle/Toggle.d.ts +10 -0
- package/cjs/Toggle/Toggle.js +72 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +66 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +27 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +102 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +54 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +114 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +28 -0
- package/cjs/Tooltip/TooltipWrapper.js +191 -0
- package/{types/components → cjs}/Tooltip/index.d.ts +1 -0
- package/cjs/Tooltip/index.js +51 -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 +170 -0
- package/cjs/UserContent/UserContent.d.ts +8 -0
- package/cjs/UserContent/UserContent.js +28 -0
- package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
- package/cjs/UserContent/UserContent.tailwind.js +141 -0
- package/cjs/index.d.ts +48 -0
- package/cjs/index.js +568 -0
- package/cjs/package.json +3 -0
- package/cjs/styles/base.tailwind.d.ts +5 -0
- package/cjs/styles/base.tailwind.js +46 -0
- package/cjs/styles/brandColors.d.ts +42 -0
- package/cjs/styles/brandColors.js +48 -0
- package/cjs/styles/colors.d.ts +110 -0
- package/cjs/styles/colors.js +116 -0
- package/cjs/styles/disabledColor.d.ts +6 -0
- package/cjs/styles/disabledColor.js +14 -0
- package/cjs/styles/helpers/icons.d.ts +15 -0
- package/cjs/styles/helpers/icons.js +39 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.js +50 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.js +36 -0
- package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
- package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/cjs/styles/helpers/satellitePrefixer.js +8 -0
- package/cjs/styles/rgba.d.ts +8 -0
- package/cjs/styles/rgba.js +15 -0
- package/cjs/styles/tailwind.config.d.ts +2 -0
- package/cjs/styles/tailwind.config.js +144 -0
- package/cjs/styles/zIndexes.d.ts +7 -0
- package/cjs/styles/zIndexes.js +14 -0
- package/cjs/types.d.ts +28 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/utilities.tailwind.d.ts +5 -0
- package/cjs/utilities/utilities.tailwind.js +27 -0
- package/cjs/utils/NumberUnion.d.ts +5 -0
- package/cjs/utils/NumberUnion.js +5 -0
- package/cjs/utils/event-polyfill.d.ts +0 -0
- package/cjs/utils/event-polyfill.js +25 -0
- package/cjs/utils/formatters.d.ts +25 -0
- package/cjs/utils/formatters.js +44 -0
- package/cjs/utils/genericChangeHandler.d.ts +5 -0
- package/{utils → cjs/utils}/genericChangeHandler.js +1 -7
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +23 -0
- package/cjs/utils/index.d.ts +7 -0
- package/{utils → cjs/utils}/index.js +11 -18
- package/cjs/utils/isCssPropertySupported.d.ts +2 -0
- package/cjs/utils/isCssPropertySupported.js +16 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +29 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +16 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +13 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +40 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +23 -0
- package/{utils → cjs/utils}/pluralize.js +7 -7
- package/{utils → cjs/utils}/range.js +1 -3
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +17 -0
- package/{utils → cjs/utils}/uniqBy.js +1 -5
- package/{utils → cjs/utils}/uniqueId.js +1 -3
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +25 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +55 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +28 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +40 -0
- package/esm/AnnouncementBadge/index.d.ts +2 -0
- package/esm/AnnouncementBadge/index.js +2 -0
- package/esm/AutoComplete/AutoComplete.d.ts +66 -0
- package/esm/AutoComplete/AutoComplete.js +585 -0
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/esm/AutoComplete/AutoComplete.tailwind.js +94 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +29 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +30 -0
- package/esm/AutoComplete/index.d.ts +5 -0
- package/esm/AutoComplete/index.js +5 -0
- package/esm/AutoComplete/types.d.ts +85 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +5 -0
- package/esm/AutoComplete/utils.js +41 -0
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +27 -0
- package/esm/Avatars/UserAvatar.d.ts +20 -0
- package/esm/Avatars/UserAvatar.js +49 -0
- package/esm/Avatars/index.d.ts +3 -0
- package/esm/Avatars/index.js +3 -0
- package/esm/Avatars/types.d.ts +17 -0
- package/esm/Avatars/types.js +1 -0
- package/esm/Avatars/utils.d.ts +6 -0
- package/esm/Avatars/utils.js +48 -0
- package/esm/Badge/Badge.d.ts +35 -0
- package/esm/Badge/Badge.js +69 -0
- package/esm/Badge/index.d.ts +2 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Banners/Alert/Alert.d.ts +78 -0
- package/esm/Banners/Alert/Alert.js +132 -0
- package/esm/Banners/Alert/index.d.ts +2 -0
- package/esm/Banners/Alert/index.js +2 -0
- package/esm/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/esm/Banners/BigBertha/BigBertha.js +55 -0
- package/esm/Banners/BigBertha/index.d.ts +2 -0
- package/esm/Banners/BigBertha/index.js +2 -0
- package/esm/Banners/Promote/Promote.d.ts +57 -0
- package/esm/Banners/Promote/Promote.js +103 -0
- package/esm/Banners/Promote/index.d.ts +2 -0
- package/esm/Banners/Promote/index.js +2 -0
- package/esm/Banners/index.d.ts +3 -0
- package/esm/Banners/index.js +3 -0
- package/esm/Button/Button.d.ts +19 -0
- package/esm/Button/Button.js +28 -0
- package/esm/Button/Button.tailwind.d.ts +5 -0
- package/esm/Button/Button.tailwind.js +154 -0
- package/esm/Button/ButtonGroup.d.ts +18 -0
- package/esm/Button/ButtonGroup.js +21 -0
- package/esm/Button/IconButton.d.ts +5 -0
- package/esm/Button/IconButton.js +14 -0
- package/esm/Button/PolymorphicButton.d.ts +11 -0
- package/esm/Button/PolymorphicButton.js +66 -0
- package/esm/Button/PolymorphicIconButton.d.ts +24 -0
- package/esm/Button/PolymorphicIconButton.js +78 -0
- package/esm/Button/index.d.ts +5 -0
- package/esm/Button/index.js +5 -0
- package/esm/Button/styles.d.ts +5 -0
- package/esm/Button/styles.js +27 -0
- package/esm/Button/types.d.ts +32 -0
- package/esm/Button/types.js +5 -0
- package/esm/Card/Card.d.ts +32 -0
- package/esm/Card/Card.js +37 -0
- package/esm/Card/Card.tailwind.d.ts +5 -0
- package/esm/Card/Card.tailwind.js +35 -0
- package/esm/Card/components/CardHeader.d.ts +6 -0
- package/esm/Card/components/CardHeader.js +20 -0
- package/esm/Card/components/CardTitle.d.ts +6 -0
- package/esm/Card/components/CardTitle.js +20 -0
- package/esm/Card/index.d.ts +4 -0
- package/esm/Card/index.js +4 -0
- package/esm/Checkbox/Checkbox.d.ts +24 -0
- package/esm/Checkbox/Checkbox.js +90 -0
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/esm/Checkbox/Checkbox.tailwind.js +65 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +2 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.js +76 -0
- package/esm/ClickAwayContainer/index.d.ts +1 -0
- package/esm/ClickAwayContainer/index.js +1 -0
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/esm/DatePicker/DatePicker/DatePicker.js +159 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.js +43 -0
- package/esm/DatePicker/DatePicker/index.d.ts +3 -0
- package/esm/DatePicker/DatePicker/index.js +3 -0
- package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/esm/DatePicker/DatePicker.tailwind.js +182 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +251 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +33 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +92 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
- package/esm/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/esm/DatePicker/DateRangePicker/index.js +4 -0
- package/esm/DatePicker/components/Calendar.d.ts +17 -0
- package/esm/DatePicker/components/Calendar.js +48 -0
- package/esm/DatePicker/components/Display.d.ts +10 -0
- package/esm/DatePicker/components/Display.js +17 -0
- package/esm/DatePicker/components/Footer.d.ts +6 -0
- package/esm/DatePicker/components/Footer.js +12 -0
- package/esm/DatePicker/components/FooterActions.d.ts +12 -0
- package/esm/DatePicker/components/FooterActions.js +26 -0
- package/esm/DatePicker/components/Modal.d.ts +16 -0
- package/esm/DatePicker/components/Modal.js +60 -0
- package/esm/DatePicker/components/NavBar.d.ts +10 -0
- package/esm/DatePicker/components/NavBar.js +117 -0
- package/esm/DatePicker/components/SidePanel.d.ts +6 -0
- package/esm/DatePicker/components/SidePanel.js +15 -0
- package/esm/DatePicker/components/index.d.ts +12 -0
- package/esm/DatePicker/components/index.js +6 -0
- package/esm/DatePicker/index.d.ts +4 -0
- package/esm/DatePicker/index.js +4 -0
- package/esm/DatePicker/types.d.ts +26 -0
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.d.ts +3 -0
- package/esm/DatePicker/utils.js +12 -0
- package/esm/Dropdown/Dropdown.d.ts +64 -0
- package/esm/Dropdown/Dropdown.js +127 -0
- package/esm/Dropdown/DropdownButton.d.ts +11 -0
- package/esm/Dropdown/DropdownButton.js +40 -0
- package/esm/Dropdown/DropdownContext.d.ts +7 -0
- package/esm/Dropdown/DropdownContext.js +10 -0
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +19 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +37 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +53 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +14 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +29 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +26 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
- package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/esm/Dropdown/components/DropdownDivider.js +10 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +22 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +15 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +40 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +13 -0
- package/esm/Dropdown/components/DropdownRadioItem.js +37 -0
- package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/esm/Dropdown/components/DropdownTitle.js +18 -0
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +16 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +39 -0
- package/esm/Dropdown/index.d.ts +13 -0
- package/esm/Dropdown/index.js +13 -0
- package/esm/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/esm/Dropdown/useDropdownItemProps.js +31 -0
- package/esm/Dropzone/Dropzone.d.ts +20 -0
- package/esm/Dropzone/Dropzone.js +151 -0
- package/esm/Dropzone/index.d.ts +2 -0
- package/esm/Dropzone/index.js +2 -0
- package/esm/EmptyState/EmptyState.d.ts +28 -0
- package/esm/EmptyState/EmptyState.js +117 -0
- package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/esm/EmptyState/EmptyState.tailwind.js +14 -0
- package/esm/EmptyState/index.d.ts +3 -0
- package/esm/EmptyState/index.js +3 -0
- package/esm/EmptyState/types.d.ts +65 -0
- package/esm/EmptyState/types.js +1 -0
- package/esm/Field/Field.d.ts +54 -0
- package/esm/Field/Field.js +85 -0
- package/esm/Field/FieldStateContext.d.ts +12 -0
- package/esm/Field/FieldStateContext.js +6 -0
- package/esm/Field/index.d.ts +4 -0
- package/esm/Field/index.js +4 -0
- package/esm/Field/useFieldState.d.ts +2 -0
- package/esm/Field/useFieldState.js +6 -0
- package/esm/Flag/Flag.d.ts +6 -0
- package/esm/Flag/Flag.js +110 -0
- package/esm/Flag/Flag.tailwind.d.ts +5 -0
- package/esm/Flag/Flag.tailwind.js +33 -0
- package/esm/Flag/Flags.d.ts +48 -0
- package/esm/Flag/Flags.js +82 -0
- package/esm/Flag/index.d.ts +4 -0
- package/esm/Flag/index.js +4 -0
- package/esm/Flag/types.d.ts +27 -0
- package/esm/Flag/types.js +1 -0
- package/esm/FlexGrid/FlexGrid.d.ts +51 -0
- package/esm/FlexGrid/FlexGrid.js +62 -0
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/esm/FlexGrid/FlexGrid.tailwind.js +69 -0
- package/esm/FlexGrid/index.d.ts +2 -0
- package/esm/FlexGrid/index.js +2 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +12 -0
- package/esm/HelpUnderline/HelpUnderline.js +25 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
- package/esm/HelpUnderline/index.d.ts +2 -0
- package/esm/HelpUnderline/index.js +2 -0
- package/esm/Input/Input.d.ts +27 -0
- package/esm/Input/Input.js +205 -0
- package/esm/Input/Input.tailwind.d.ts +5 -0
- package/esm/Input/Input.tailwind.js +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 +71 -0
- package/esm/Insert/index.d.ts +2 -0
- package/esm/Insert/index.js +2 -0
- package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
- package/esm/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/esm/KeyboardKey/KeyboardKey.js +29 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
- package/esm/KeyboardKey/index.d.ts +2 -0
- package/esm/KeyboardKey/index.js +2 -0
- package/esm/Link/BaseLink.d.ts +8 -0
- package/esm/Link/BaseLink.js +22 -0
- package/esm/Link/ButtonLink.d.ts +9 -0
- package/esm/Link/ButtonLink.js +30 -0
- package/esm/Link/IconButtonLink.d.ts +9 -0
- package/esm/Link/IconButtonLink.js +24 -0
- package/esm/Link/Link.d.ts +13 -0
- package/esm/Link/Link.js +44 -0
- package/esm/Link/index.d.ts +5 -0
- package/esm/Link/index.js +5 -0
- package/esm/Medallion/Medallion.d.ts +11 -0
- package/esm/Medallion/Medallion.js +32 -0
- package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
- package/esm/Medallion/Medallion.tailwind.js +30 -0
- package/esm/Medallion/index.d.ts +3 -0
- package/esm/Medallion/index.js +3 -0
- package/esm/Medallion/types.d.ts +2 -0
- package/esm/Medallion/types.js +1 -0
- package/esm/Modal/Modal.d.ts +54 -0
- package/esm/Modal/Modal.js +139 -0
- package/esm/Modal/Modal.tailwind.d.ts +5 -0
- package/esm/Modal/Modal.tailwind.js +79 -0
- package/esm/Modal/components/ModalFooter.d.ts +6 -0
- package/esm/Modal/components/ModalFooter.js +25 -0
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +16 -0
- package/esm/Modal/index.d.ts +4 -0
- package/esm/Modal/index.js +4 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +76 -0
- package/esm/Pagination/CompactPagination/index.d.ts +2 -0
- package/esm/Pagination/CompactPagination/index.js +2 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +15 -0
- package/esm/Pagination/DotPagination/DotPagination.js +39 -0
- package/esm/Pagination/DotPagination/index.d.ts +2 -0
- package/esm/Pagination/DotPagination/index.js +2 -0
- package/esm/Pagination/Pagination/Pagination.d.ts +22 -0
- package/esm/Pagination/Pagination/Pagination.js +114 -0
- package/esm/Pagination/Pagination/index.d.ts +2 -0
- package/esm/Pagination/Pagination/index.js +2 -0
- package/esm/Pagination/index.d.ts +4 -0
- package/esm/Pagination/index.js +4 -0
- package/esm/ProgressBar/ProgressBar.d.ts +13 -0
- package/esm/ProgressBar/ProgressBar.js +37 -0
- package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/esm/ProgressBar/index.d.ts +2 -0
- package/esm/ProgressBar/index.js +2 -0
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/esm/ProgressSpinner/ProgressSpinner.js +46 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +35 -0
- package/esm/ProgressSpinner/index.d.ts +2 -0
- package/esm/ProgressSpinner/index.js +2 -0
- package/esm/RadioGroup/RadioButton.d.ts +4 -0
- package/esm/RadioGroup/RadioButton.js +22 -0
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/esm/RadioGroup/RadioButton.tailwind.js +56 -0
- package/esm/RadioGroup/RadioGroup.d.ts +40 -0
- package/esm/RadioGroup/RadioGroup.js +97 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +14 -0
- package/esm/RadioGroup/RadiogroupContext.js +9 -0
- package/esm/RadioGroup/index.d.ts +4 -0
- package/esm/RadioGroup/index.js +4 -0
- package/esm/RangeSlider/RangeSlider.d.ts +34 -0
- package/esm/RangeSlider/RangeSlider.js +97 -0
- package/esm/RangeSlider/index.d.ts +2 -0
- package/esm/RangeSlider/index.js +2 -0
- package/esm/Satellite/Satellite.d.ts +12 -0
- package/esm/Satellite/Satellite.js +42 -0
- package/esm/Satellite/SatelliteContext.d.ts +11 -0
- package/esm/Satellite/SatelliteContext.js +15 -0
- package/esm/Satellite/SatelliteRouter.d.ts +21 -0
- package/esm/Satellite/SatelliteRouter.js +40 -0
- package/esm/Satellite/index.d.ts +6 -0
- package/esm/Satellite/index.js +6 -0
- package/esm/Satellite/locale.d.ts +31 -0
- package/esm/Satellite/locale.js +7 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +17 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +79 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/esm/ScrollIndicator/index.d.ts +2 -0
- package/esm/ScrollIndicator/index.js +2 -0
- package/esm/Select/Select.d.ts +15 -0
- package/esm/Select/Select.js +37 -0
- package/esm/Select/Select.tailwind.d.ts +5 -0
- package/esm/Select/Select.tailwind.js +77 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +35 -0
- package/esm/Sidebar/Sidebar.js +54 -0
- package/esm/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/esm/Sidebar/SidebarButtonLink.js +84 -0
- package/esm/Sidebar/SidebarContext.d.ts +9 -0
- package/esm/Sidebar/SidebarContext.js +9 -0
- package/esm/Sidebar/SidebarHeader.d.ts +6 -0
- package/esm/Sidebar/SidebarHeader.js +13 -0
- package/esm/Sidebar/SidebarHeading.d.ts +7 -0
- package/esm/Sidebar/SidebarHeading.js +18 -0
- package/esm/Sidebar/SidebarLink.d.ts +9 -0
- package/esm/Sidebar/SidebarLink.js +44 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +90 -0
- package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
- package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
- package/esm/Sidebar/SidebarNav.d.ts +10 -0
- package/esm/Sidebar/SidebarNav.js +29 -0
- package/esm/Sidebar/index.d.ts +9 -0
- package/esm/Sidebar/index.js +9 -0
- package/esm/Sidebar/types.d.ts +6 -0
- package/esm/Sidebar/types.js +1 -0
- package/esm/Switch/Switch.d.ts +13 -0
- package/esm/Switch/Switch.js +78 -0
- package/esm/Switch/Switch.tailwind.d.ts +5 -0
- package/esm/Switch/Switch.tailwind.js +24 -0
- package/esm/Switch/SwitchOption.d.ts +8 -0
- package/esm/Switch/SwitchOption.js +37 -0
- package/esm/Switch/index.d.ts +3 -0
- package/esm/Switch/index.js +3 -0
- package/esm/Switch/types.d.ts +7 -0
- package/esm/Switch/types.js +1 -0
- package/esm/Switch/utils.d.ts +6 -0
- package/esm/Switch/utils.js +11 -0
- package/esm/Tables/DataTable/DataTable.d.ts +60 -0
- package/esm/Tables/DataTable/DataTable.js +253 -0
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/esm/Tables/DataTable/DataTable.tailwind.js +22 -0
- package/esm/Tables/DataTable/components/Body.d.ts +15 -0
- package/esm/Tables/DataTable/components/Body.js +112 -0
- package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
- package/esm/Tables/DataTable/components/Footer.js +53 -0
- package/esm/Tables/DataTable/components/Header.d.ts +10 -0
- package/esm/Tables/DataTable/components/Header.js +32 -0
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/esm/Tables/DataTable/components/HeaderCell.js +52 -0
- package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
- package/esm/Tables/DataTable/components/Loader.js +40 -0
- package/esm/Tables/DataTable/components/index.d.ts +5 -0
- package/esm/Tables/DataTable/components/index.js +5 -0
- package/esm/Tables/DataTable/index.d.ts +3 -0
- package/esm/Tables/DataTable/index.js +3 -0
- package/esm/Tables/DataTable/types.d.ts +49 -0
- package/esm/Tables/DataTable/types.js +1 -0
- package/esm/Tables/DataTable/utils.d.ts +4 -0
- package/esm/Tables/DataTable/utils.js +13 -0
- package/esm/Tables/Table/Table.d.ts +28 -0
- package/esm/Tables/Table/Table.js +54 -0
- package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
- package/esm/Tables/Table/Table.tailwind.js +38 -0
- package/esm/Tables/Table/components/TableFooter.d.ts +8 -0
- package/esm/Tables/Table/components/TableFooter.js +19 -0
- package/esm/Tables/Table/index.d.ts +3 -0
- package/esm/Tables/Table/index.js +3 -0
- package/esm/Tables/index.d.ts +3 -0
- package/esm/Tables/index.js +3 -0
- package/esm/Tabs/ContentTabs.d.ts +4 -0
- package/esm/Tabs/ContentTabs.js +54 -0
- package/esm/Tabs/LinkTabs.d.ts +33 -0
- package/esm/Tabs/LinkTabs.js +68 -0
- package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
- package/esm/Tabs/Tabs.tailwind.js +52 -0
- package/esm/Tabs/components/LinkTab.d.ts +9 -0
- package/esm/Tabs/components/LinkTab.js +78 -0
- package/esm/Tabs/index.d.ts +4 -0
- package/esm/Tabs/index.js +4 -0
- package/esm/Tabs/types.d.ts +35 -0
- package/esm/Tabs/types.js +1 -0
- package/esm/Tabs/utils.d.ts +2 -0
- package/esm/Tabs/utils.js +11 -0
- package/esm/Tag/Tag.d.ts +58 -0
- package/esm/Tag/Tag.js +127 -0
- package/esm/Tag/Tag.tailwind.d.ts +5 -0
- package/esm/Tag/Tag.tailwind.js +53 -0
- package/esm/Tag/index.d.ts +2 -0
- package/esm/Tag/index.js +2 -0
- package/esm/TextArea/TextArea.d.ts +5 -0
- package/esm/TextArea/TextArea.js +21 -0
- package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
- package/esm/TextArea/TextArea.tailwind.js +40 -0
- package/esm/TextArea/index.d.ts +2 -0
- package/esm/TextArea/index.js +2 -0
- package/esm/TextWrap/TextWrap.d.ts +8 -0
- package/esm/TextWrap/TextWrap.js +47 -0
- package/esm/TextWrap/index.d.ts +2 -0
- package/esm/TextWrap/index.js +2 -0
- package/esm/Toggle/Toggle.d.ts +10 -0
- package/esm/Toggle/Toggle.js +64 -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 +94 -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 +113 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +28 -0
- package/esm/Tooltip/TooltipWrapper.js +183 -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 +169 -0
- package/esm/UserContent/UserContent.d.ts +8 -0
- package/esm/UserContent/UserContent.js +19 -0
- package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
- package/esm/UserContent/UserContent.tailwind.js +141 -0
- package/esm/index.d.ts +48 -0
- package/esm/index.js +48 -0
- package/esm/styles/base.tailwind.d.ts +5 -0
- package/esm/styles/base.tailwind.js +45 -0
- package/esm/styles/brandColors.d.ts +42 -0
- package/esm/styles/brandColors.js +46 -0
- package/esm/styles/colors.d.ts +110 -0
- package/esm/styles/colors.js +114 -0
- package/esm/styles/disabledColor.d.ts +6 -0
- package/esm/styles/disabledColor.js +14 -0
- package/esm/styles/helpers/icons.d.ts +15 -0
- package/esm/styles/helpers/icons.js +40 -0
- package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/esm/styles/helpers/makePurgeCssExtractor.js +49 -0
- package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/esm/styles/helpers/makeTailwindPrefixer.js +34 -0
- package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
- package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/esm/styles/helpers/satellitePrefixer.js +7 -0
- package/esm/styles/rgba.d.ts +8 -0
- package/esm/styles/rgba.js +14 -0
- package/esm/styles/tailwind.config.d.ts +2 -0
- package/esm/styles/tailwind.config.js +145 -0
- package/esm/styles/zIndexes.d.ts +7 -0
- package/esm/styles/zIndexes.js +12 -0
- package/esm/types.d.ts +28 -0
- package/esm/types.js +1 -0
- package/esm/utilities/utilities.tailwind.d.ts +5 -0
- package/esm/utilities/utilities.tailwind.js +25 -0
- package/esm/utils/NumberUnion.d.ts +5 -0
- package/esm/utils/NumberUnion.js +1 -0
- package/esm/utils/event-polyfill.d.ts +0 -0
- package/esm/utils/event-polyfill.js +23 -0
- package/esm/utils/formatters.d.ts +25 -0
- package/esm/utils/formatters.js +36 -0
- package/esm/utils/genericChangeHandler.d.ts +5 -0
- package/esm/utils/genericChangeHandler.js +18 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +15 -0
- package/esm/utils/index.d.ts +7 -0
- package/{types/utils/index.d.ts → esm/utils/index.js} +2 -2
- package/esm/utils/isCssPropertySupported.d.ts +2 -0
- package/esm/utils/isCssPropertySupported.js +9 -0
- package/esm/utils/isNil.d.ts +19 -0
- package/esm/utils/isNil.js +21 -0
- package/esm/utils/isRenderedChild.d.ts +8 -0
- package/esm/utils/isRenderedChild.js +9 -0
- package/esm/utils/matchLocation.d.ts +3 -0
- package/esm/utils/matchLocation.js +5 -0
- package/esm/utils/onlyText.d.ts +3 -0
- package/esm/utils/onlyText.js +33 -0
- package/esm/utils/parseUrl.d.ts +11 -0
- package/esm/utils/parseUrl.js +15 -0
- package/esm/utils/pluralize.d.ts +6 -0
- package/esm/utils/pluralize.js +16 -0
- package/esm/utils/range.d.ts +2 -0
- package/esm/utils/range.js +7 -0
- package/esm/utils/toSentenceCase.d.ts +3 -0
- package/esm/utils/toSentenceCase.js +9 -0
- package/esm/utils/uniqBy.d.ts +2 -0
- package/esm/utils/uniqBy.js +13 -0
- package/esm/utils/uniqueId.d.ts +2 -0
- package/esm/utils/uniqueId.js +7 -0
- package/esm/utils/useForwardedRef.d.ts +3 -0
- package/esm/utils/useForwardedRef.js +17 -0
- package/esm/utils/useLinkProps.d.ts +7 -0
- package/esm/utils/useLinkProps.js +46 -0
- package/esm/utils/useTriggerInputChange.d.ts +8 -0
- package/esm/utils/useTriggerInputChange.js +21 -0
- package/package.json +82 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +139 -0
- package/scss/variables.scss +7 -0
- package/components/Alert/Alert.js +0 -49
- package/components/AutoComplete/AutoComplete.js +0 -512
- package/components/AutoComplete/index.js +0 -27
- package/components/AutoComplete/types.js +0 -1
- package/components/Button/Button.js +0 -59
- package/components/Button/LinkButton.js +0 -52
- package/components/Button/index.js +0 -40
- package/components/Card/Card.js +0 -71
- package/components/Card/components/CardHeader.js +0 -25
- package/components/Card/components/CardTitle.js +0 -30
- package/components/Card/index.js +0 -19
- package/components/Checkbox/Checkbox.js +0 -66
- package/components/Checkbox/index.js +0 -27
- package/components/Chip/Chip.js +0 -77
- package/components/Chip/index.js +0 -21
- package/components/Dropdown/Dropdown.js +0 -163
- package/components/Dropdown/DropdownButton.js +0 -117
- package/components/Dropdown/components/DropdownDivider.js +0 -24
- package/components/Dropdown/components/DropdownItem.js +0 -46
- package/components/Dropdown/components/DropdownTitle.js +0 -34
- package/components/Dropdown/index.js +0 -29
- package/components/HelpUnderline/HelpUnderline.js +0 -39
- package/components/HelpUnderline/index.js +0 -27
- package/components/Input/Input.js +0 -134
- package/components/Input/index.js +0 -27
- package/components/LoaderIcon/LoaderIcon.js +0 -65
- package/components/LoaderIcon/index.js +0 -27
- package/components/MaterialIcon/MaterialIcon.js +0 -48
- package/components/MaterialIcon/index.js +0 -27
- package/components/Modal/Modal.js +0 -207
- package/components/Modal/components/ModalFooter.js +0 -34
- package/components/Modal/components/ModalSection.js +0 -38
- package/components/Modal/index.js +0 -21
- package/components/Pagination/Pagination.js +0 -131
- package/components/Pagination/index.js +0 -27
- package/components/RadioGroup/RadioButton.js +0 -35
- package/components/RadioGroup/RadioGroup.js +0 -140
- package/components/RadioGroup/index.js +0 -29
- package/components/ScrollIndicator/ScrollIndicator.js +0 -165
- package/components/ScrollIndicator/index.js +0 -21
- package/components/Select/Select.js +0 -40
- package/components/Select/index.js +0 -27
- package/components/Table/Table.js +0 -36
- package/components/Table/index.js +0 -19
- package/components/TextArea/TextArea.js +0 -34
- package/components/TextArea/index.js +0 -27
- package/components/Tooltip/Tooltip.js +0 -29
- package/components/Tooltip/TooltipWrapper.js +0 -164
- package/components/Tooltip/index.js +0 -40
- package/index.js +0 -173
- package/nothing-to-see-here.gif +0 -0
- package/satellite.css +0 -32
- package/satellite.css.map +0 -1
- package/styles/_colors.scss +0 -147
- package/styles/_mixins.scss +0 -72
- package/styles/_variables.scss +0 -71
- package/types/components/Alert/Alert.d.ts +0 -9
- package/types/components/AutoComplete/AutoComplete.d.ts +0 -66
- package/types/components/AutoComplete/index.d.ts +0 -2
- package/types/components/AutoComplete/types.d.ts +0 -21
- package/types/components/AutoComplete/utils.d.ts +0 -3
- package/types/components/Button/Button.d.ts +0 -13
- package/types/components/Button/LinkButton.d.ts +0 -9
- package/types/components/Button/index.d.ts +0 -3
- package/types/components/Card/Card.d.ts +0 -13
- package/types/components/Card/components/CardHeader.d.ts +0 -3
- package/types/components/Card/components/CardTitle.d.ts +0 -7
- package/types/components/Card/index.d.ts +0 -3
- package/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/types/components/Chip/Chip.d.ts +0 -9
- package/types/components/Chip/index.d.ts +0 -2
- package/types/components/Dropdown/Dropdown.d.ts +0 -27
- package/types/components/Dropdown/DropdownButton.d.ts +0 -12
- package/types/components/Dropdown/components/DropdownDivider.d.ts +0 -6
- package/types/components/Dropdown/components/DropdownItem.d.ts +0 -10
- package/types/components/Dropdown/components/DropdownTitle.d.ts +0 -4
- package/types/components/Dropdown/index.d.ts +0 -3
- package/types/components/HelpUnderline/HelpUnderline.d.ts +0 -10
- package/types/components/Input/Input.d.ts +0 -25
- package/types/components/LoaderIcon/LoaderIcon.d.ts +0 -7
- package/types/components/LoaderIcon/index.d.ts +0 -2
- package/types/components/MaterialIcon/MaterialIcon.d.ts +0 -12
- package/types/components/MaterialIcon/index.d.ts +0 -2
- package/types/components/Modal/Modal.d.ts +0 -30
- package/types/components/Modal/components/ModalFooter.d.ts +0 -4
- package/types/components/Modal/components/ModalSection.d.ts +0 -6
- package/types/components/Modal/index.d.ts +0 -2
- package/types/components/Pagination/Pagination.d.ts +0 -12
- package/types/components/RadioGroup/RadioButton.d.ts +0 -4
- package/types/components/RadioGroup/RadioGroup.d.ts +0 -20
- package/types/components/RadioGroup/index.d.ts +0 -3
- package/types/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
- package/types/components/ScrollIndicator/index.d.ts +0 -2
- package/types/components/Select/Select.d.ts +0 -6
- package/types/components/Table/Table.d.ts +0 -6
- package/types/components/Table/index.d.ts +0 -3
- package/types/components/TextArea/TextArea.d.ts +0 -5
- package/types/components/Tooltip/Tooltip.d.ts +0 -5
- package/types/components/Tooltip/TooltipWrapper.d.ts +0 -32
- package/types/index.d.ts +0 -19
- package/types/utils/clamp.d.ts +0 -2
- package/types/utils/genericChangeHandler.d.ts +0 -5
- package/types/utils/omit.d.ts +0 -2
- package/utils/clamp.js +0 -20
- package/utils/omit.js +0 -25
- /package/{types/components → cjs/Banners}/Alert/index.d.ts +0 -0
- /package/{types/components → cjs}/Checkbox/index.d.ts +0 -0
- /package/{types/components → cjs}/HelpUnderline/index.d.ts +0 -0
- /package/{types/components → cjs}/Input/index.d.ts +0 -0
- /package/{types/components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- /package/{types/components → cjs}/Select/index.d.ts +0 -0
- /package/{types/components → cjs}/TextArea/index.d.ts +0 -0
- /package/{types → cjs}/utils/pluralize.d.ts +0 -0
- /package/{types → cjs}/utils/range.d.ts +0 -0
- /package/{types → cjs}/utils/uniqBy.d.ts +0 -0
- /package/{types → cjs}/utils/uniqueId.d.ts +0 -0
@@ -0,0 +1,94 @@
|
|
1
|
+
import _rgba from "../styles/rgba";
|
2
|
+
import _disabledColor from "../styles/disabledColor";
|
3
|
+
import _plugin from "tailwindcss/plugin";
|
4
|
+
// @ts-check
|
5
|
+
var plugin = _plugin;
|
6
|
+
var disabledColor = _disabledColor;
|
7
|
+
var rgba = _rgba;
|
8
|
+
var autoCompletePlugin = plugin(function (_ref) {
|
9
|
+
var addComponents = _ref.addComponents,
|
10
|
+
theme = _ref.theme;
|
11
|
+
addComponents({
|
12
|
+
".autocomplete-container": {
|
13
|
+
display: "flex",
|
14
|
+
alignItems: "center",
|
15
|
+
width: "100%",
|
16
|
+
minHeight: "2.5rem",
|
17
|
+
padding: "0 ".concat(theme("spacing.4")),
|
18
|
+
overflow: "hidden",
|
19
|
+
fontSize: theme("fontSize.base"),
|
20
|
+
lineHeight: theme("lineHeight.base"),
|
21
|
+
cursor: "text",
|
22
|
+
backgroundColor: theme("colors.white"),
|
23
|
+
borderRadius: theme("borderRadius.DEFAULT"),
|
24
|
+
border: "1px solid ".concat(theme("colors.grey.200")),
|
25
|
+
boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
|
26
|
+
transition: "all 100ms ease-in-out",
|
27
|
+
// Workaround for ie
|
28
|
+
"&::after": {
|
29
|
+
content: '" "',
|
30
|
+
display: "block",
|
31
|
+
minHeight: "30px",
|
32
|
+
// don't ask me why 30
|
33
|
+
fontSize: "0px"
|
34
|
+
},
|
35
|
+
"&.autocomplete-large": {
|
36
|
+
minHeight: "3rem",
|
37
|
+
"&::after": {
|
38
|
+
minHeight: "38px" // don't ask me why 38
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
|
43
|
+
".autocomplete-focused, .autocomplete-container:focus-within": {
|
44
|
+
borderColor: theme("colors.accent.600"),
|
45
|
+
boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5"))
|
46
|
+
},
|
47
|
+
".autocomplete-disabled": {
|
48
|
+
cursor: "not-allowed",
|
49
|
+
backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
|
50
|
+
borderColor: disabledColor(theme("colors.grey.200")),
|
51
|
+
boxShadow: "none",
|
52
|
+
".autocomplete-input, .autocomplete-input::placeholder": {
|
53
|
+
color: theme("colors.grey.300"),
|
54
|
+
pointerEvents: "none"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
".autocomplete-invalid:not(.autocomplete-disabled)": {
|
58
|
+
backgroundColor: theme("colors.red.100"),
|
59
|
+
borderColor: theme("colors.red.700")
|
60
|
+
},
|
61
|
+
".autocomplete-nowrap": {
|
62
|
+
overflowX: "scroll",
|
63
|
+
WebkitOverflowScrolling: "touch",
|
64
|
+
// Remove scrollbars
|
65
|
+
scrollbarWidth: "none",
|
66
|
+
msOverflowStyle: "-ms-autohiding-scrollbar",
|
67
|
+
"&::-webkit-scrollbar": {
|
68
|
+
width: "0px",
|
69
|
+
height: "0px"
|
70
|
+
}
|
71
|
+
},
|
72
|
+
".autocomplete-input": {
|
73
|
+
flex: "1",
|
74
|
+
backgroundColor: "transparent",
|
75
|
+
caretColor: theme("colors.grey.600"),
|
76
|
+
color: theme("colors.grey.900"),
|
77
|
+
minWidth: "10ch",
|
78
|
+
"&:focus": {
|
79
|
+
outline: "none"
|
80
|
+
},
|
81
|
+
"&::placeholder": {
|
82
|
+
color: theme("colors.grey.600")
|
83
|
+
}
|
84
|
+
},
|
85
|
+
".autocomplete-result": {
|
86
|
+
// Search highlight
|
87
|
+
"&:not([disabled]) em": {
|
88
|
+
fontStyle: "normal",
|
89
|
+
background: theme("colors.accent.300")
|
90
|
+
}
|
91
|
+
}
|
92
|
+
});
|
93
|
+
});
|
94
|
+
export default autoCompletePlugin;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { ReactNode } from "react";
|
2
|
+
import { MedallionVariant } from "../../Medallion";
|
3
|
+
import type { IconComponentType } from "../../types";
|
4
|
+
export interface AutoCompleteEmptyStateProps {
|
5
|
+
icon?: IconComponentType;
|
6
|
+
variant?: MedallionVariant;
|
7
|
+
/** Descriptive title for state */
|
8
|
+
title: ReactNode;
|
9
|
+
/** Optional description to explain why the screen is empty or define next steps */
|
10
|
+
description?: ReactNode;
|
11
|
+
}
|
12
|
+
export declare const AutoCompleteEmptyState: ({ icon, variant, title, description, }: AutoCompleteEmptyStateProps) => JSX.Element;
|
13
|
+
export default AutoCompleteEmptyState;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
3
|
+
import { X } from "react-feather";
|
4
|
+
import { Medallion } from "../../Medallion";
|
5
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
export var AutoCompleteEmptyState = function AutoCompleteEmptyState(_ref) {
|
9
|
+
var _ref$icon = _ref.icon,
|
10
|
+
icon = _ref$icon === void 0 ? X : _ref$icon,
|
11
|
+
_ref$variant = _ref.variant,
|
12
|
+
variant = _ref$variant === void 0 ? "grey" : _ref$variant,
|
13
|
+
title = _ref.title,
|
14
|
+
description = _ref.description;
|
15
|
+
return /*#__PURE__*/_jsxs("div", {
|
16
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col items-center p-6"]))),
|
17
|
+
children: [/*#__PURE__*/_jsx(Medallion, {
|
18
|
+
icon: icon,
|
19
|
+
variant: variant
|
20
|
+
}), /*#__PURE__*/_jsx("span", {
|
21
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["font-semibold pt-4"]))),
|
22
|
+
children: title
|
23
|
+
}), !!description && /*#__PURE__*/_jsx("p", {
|
24
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["display-caption typo-subdued pt-4"]))),
|
25
|
+
children: description
|
26
|
+
})]
|
27
|
+
});
|
28
|
+
};
|
29
|
+
export default AutoCompleteEmptyState;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { AutoCompleteLocale, OptionItemProps } from "../types";
|
3
|
+
declare type DefaultOptionItemProps = OptionItemProps & {
|
4
|
+
locale?: AutoCompleteLocale;
|
5
|
+
};
|
6
|
+
declare const DefaultOptionItem: ({ option, multiple, locale }: DefaultOptionItemProps) => JSX.Element;
|
7
|
+
export default DefaultOptionItem;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
3
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
+
var metadataSpacer = /*#__PURE__*/_jsx("span", {
|
7
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["px-1"]))),
|
8
|
+
children: "\xB7"
|
9
|
+
});
|
10
|
+
var DefaultOptionItem = function DefaultOptionItem(_ref) {
|
11
|
+
var _locale$optionItemPre;
|
12
|
+
var option = _ref.option,
|
13
|
+
multiple = _ref.multiple,
|
14
|
+
locale = _ref.locale;
|
15
|
+
return /*#__PURE__*/_jsxs("div", {
|
16
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["truncate py-2"]))),
|
17
|
+
children: [/*#__PURE__*/_jsx("span", {
|
18
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["font-semibold text-md text-grey-900"]))),
|
19
|
+
children: option["new"] ? "".concat(locale === null || locale === void 0 ? void 0 : (_locale$optionItemPre = locale.optionItemPrefix) === null || _locale$optionItemPre === void 0 ? void 0 : _locale$optionItemPre.call(locale, multiple), " ").concat(option.label) : option.label
|
20
|
+
}), option.metadata && option.metadata.length > 0 && /*#__PURE__*/_jsx("ul", {
|
21
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["flex text-grey-600"]))),
|
22
|
+
children: option.metadata.map(function (metadata, idx) {
|
23
|
+
return /*#__PURE__*/_jsxs("li", {
|
24
|
+
children: [metadata, idx !== option.metadata.length - 1 && metadataSpacer]
|
25
|
+
}, metadata);
|
26
|
+
})
|
27
|
+
})]
|
28
|
+
});
|
29
|
+
};
|
30
|
+
export default DefaultOptionItem;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { ComponentType, FocusEventHandler, ReactNode } from "react";
|
2
|
+
import type { IconComponentType } from "../types";
|
3
|
+
export declare type AutoCompleteVariant = "medium" | "large";
|
4
|
+
export declare type AutoCompleteLocale = {
|
5
|
+
emptyStateTitle?: string;
|
6
|
+
clearInputButton?: string;
|
7
|
+
itemsAvailable?: (resultCount: number) => string;
|
8
|
+
showMoreButton?: (extraResults: number) => string;
|
9
|
+
optionItemPrefix?: (multiple: boolean) => string;
|
10
|
+
};
|
11
|
+
export interface AutoCompleteBaseProps<T extends Option = Option> {
|
12
|
+
id?: string;
|
13
|
+
icon?: IconComponentType;
|
14
|
+
name?: string;
|
15
|
+
className?: string;
|
16
|
+
valuesClassName?: string;
|
17
|
+
menuClassName?: string;
|
18
|
+
variant?: AutoCompleteVariant;
|
19
|
+
placeholder?: string;
|
20
|
+
disabled?: boolean;
|
21
|
+
autoFocus?: boolean;
|
22
|
+
options?: T[];
|
23
|
+
inputValue?: string;
|
24
|
+
onTextChange?: (text: string) => any;
|
25
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
26
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
27
|
+
creatable?: boolean;
|
28
|
+
clearable?: boolean;
|
29
|
+
selectOnBlur?: boolean;
|
30
|
+
maxResults?: number;
|
31
|
+
createFromInputValue?: CreateFromInputValue<T>;
|
32
|
+
separatorKeys?: string[];
|
33
|
+
renderValueTemplate?: (args: RenderValueTemplateArgs<T>) => JSX.Element;
|
34
|
+
emptyState?: ReactNode;
|
35
|
+
menuFooter?: ReactNode;
|
36
|
+
optionItemComponent?: OptionItemComponentType<T>;
|
37
|
+
/** Keep the input on a single line */
|
38
|
+
noWrap?: boolean;
|
39
|
+
endItem?: ReactNode;
|
40
|
+
/**
|
41
|
+
* `medium` will display about 5 results in the dropdown; use `large` variant to display more
|
42
|
+
* @default "medium"
|
43
|
+
*/
|
44
|
+
menuSize?: "medium" | "large";
|
45
|
+
locale?: AutoCompleteLocale;
|
46
|
+
}
|
47
|
+
export interface AutoCompleteSingleProps<T extends Option = Option> extends AutoCompleteBaseProps<T> {
|
48
|
+
multiple?: false;
|
49
|
+
value?: T;
|
50
|
+
onChange: (option: T | null) => void;
|
51
|
+
}
|
52
|
+
export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoCompleteBaseProps<T> {
|
53
|
+
multiple: true;
|
54
|
+
value?: T[];
|
55
|
+
onChange: (option: T[] | null) => void;
|
56
|
+
}
|
57
|
+
export declare type AutoCompleteProps<T extends Option = Option> = AutoCompleteMultiProps<T> | AutoCompleteSingleProps<T>;
|
58
|
+
declare type OptionsValue = string | number | boolean;
|
59
|
+
export interface Option {
|
60
|
+
value: OptionsValue;
|
61
|
+
label: string;
|
62
|
+
metadata?: string[];
|
63
|
+
new?: boolean;
|
64
|
+
disabled?: boolean;
|
65
|
+
bypassNeedleMatch?: boolean;
|
66
|
+
}
|
67
|
+
export interface OptionItemProps<T extends Option = Option> {
|
68
|
+
option: T;
|
69
|
+
multiple: boolean;
|
70
|
+
inputValue: string;
|
71
|
+
highlighted: boolean;
|
72
|
+
}
|
73
|
+
export declare type OptionItemComponentType<T extends Option = Option> = ComponentType<OptionItemProps<T>>;
|
74
|
+
export interface OptionRendererParams {
|
75
|
+
multiple: boolean;
|
76
|
+
inputValue: string;
|
77
|
+
highlighted: boolean;
|
78
|
+
}
|
79
|
+
export interface RenderValueTemplateArgs<T extends Option = Option> {
|
80
|
+
option: T;
|
81
|
+
key: string;
|
82
|
+
editable: boolean;
|
83
|
+
}
|
84
|
+
export declare type CreateFromInputValue<T extends Option = Option> = (options: T[] | undefined, inputValue: string) => Option[];
|
85
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { AutoCompleteLocale, AutoCompleteMultiProps, AutoCompleteProps, Option } from "./types";
|
2
|
+
export declare function isAutoCompleteMultiProps<T extends Option = Option>(props: AutoCompleteProps<T>): props is AutoCompleteMultiProps<T>;
|
3
|
+
export declare const defaultCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
4
|
+
export declare const caseInsensitiveCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
5
|
+
export declare const DEFAULT_AUTOCOMPLETE_LOCALE: Required<AutoCompleteLocale>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import pluralize from "../utils/pluralize";
|
2
|
+
export function isAutoCompleteMultiProps(props) {
|
3
|
+
return Boolean(props.multiple);
|
4
|
+
}
|
5
|
+
function createFromInputValue() {
|
6
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
7
|
+
var inputValue = arguments.length > 1 ? arguments[1] : undefined;
|
8
|
+
var matchingPredicate = arguments.length > 2 ? arguments[2] : undefined;
|
9
|
+
return options.some(function (option) {
|
10
|
+
return matchingPredicate(option, inputValue);
|
11
|
+
}) ? [] : [{
|
12
|
+
value: inputValue,
|
13
|
+
label: inputValue,
|
14
|
+
"new": true
|
15
|
+
}];
|
16
|
+
}
|
17
|
+
export var defaultCreateFromInputValue = function defaultCreateFromInputValue(options, inputValue) {
|
18
|
+
return createFromInputValue(options, inputValue, function (option) {
|
19
|
+
return option.value === inputValue;
|
20
|
+
});
|
21
|
+
};
|
22
|
+
export var caseInsensitiveCreateFromInputValue = function caseInsensitiveCreateFromInputValue(options, inputValue) {
|
23
|
+
return createFromInputValue(options, inputValue, function (option) {
|
24
|
+
return option.value.toString().toLowerCase() === inputValue.toLowerCase();
|
25
|
+
});
|
26
|
+
};
|
27
|
+
export var DEFAULT_AUTOCOMPLETE_LOCALE = {
|
28
|
+
clearInputButton: "Clear input value",
|
29
|
+
emptyStateTitle: "No matches found",
|
30
|
+
itemsAvailable: function itemsAvailable(count) {
|
31
|
+
return "".concat(pluralize(count, "item is", {
|
32
|
+
plural: "items are"
|
33
|
+
}), " available");
|
34
|
+
},
|
35
|
+
optionItemPrefix: function optionItemPrefix(multiple) {
|
36
|
+
return multiple ? "Add" : "Use";
|
37
|
+
},
|
38
|
+
showMoreButton: function showMoreButton(extraResults) {
|
39
|
+
return "Show ".concat(pluralize(extraResults, "result"), " more");
|
40
|
+
}
|
41
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ApplicationAvatarSize, MinimalApplication } from "./types";
|
3
|
+
export interface ApplicationAvatarProps {
|
4
|
+
/** A minimal application object containing `applicationID` and `name`. */
|
5
|
+
application: MinimalApplication;
|
6
|
+
/** @default "medium" */
|
7
|
+
size?: ApplicationAvatarSize;
|
8
|
+
/** @ignore */
|
9
|
+
className?: string;
|
10
|
+
}
|
11
|
+
/** The `ApplicationAvatar` is used as a visual representation of an application. */
|
12
|
+
export declare const ApplicationAvatar: ({ className, application, size }: ApplicationAvatarProps) => JSX.Element;
|
13
|
+
export default ApplicationAvatar;
|
@@ -0,0 +1,27 @@
|
|
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 { getApplicationInitials, pickApplicationColors } from "./utils";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
var SIZE_CLASSNAMES = {
|
8
|
+
small: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["w-4 h-4"]))),
|
9
|
+
medium: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["w-8 h-8"])))
|
10
|
+
};
|
11
|
+
/** The `ApplicationAvatar` is used as a visual representation of an application. */
|
12
|
+
export var ApplicationAvatar = function ApplicationAvatar(_ref) {
|
13
|
+
var className = _ref.className,
|
14
|
+
application = _ref.application,
|
15
|
+
_ref$size = _ref.size,
|
16
|
+
size = _ref$size === void 0 ? "medium" : _ref$size;
|
17
|
+
return /*#__PURE__*/_jsx("div", {
|
18
|
+
role: "img",
|
19
|
+
"aria-label": application.name || "Application's avatar",
|
20
|
+
className: cx(stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["rounded inline-flex shrink-0 items-center justify-center uppercase"]))), pickApplicationColors(application.applicationId), SIZE_CLASSNAMES[size], className),
|
21
|
+
style: size === "small" ? {
|
22
|
+
fontSize: "8px"
|
23
|
+
} : {},
|
24
|
+
children: getApplicationInitials(application)
|
25
|
+
});
|
26
|
+
};
|
27
|
+
export default ApplicationAvatar;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { MinimalUser } from "./types";
|
3
|
+
export declare type UserAvatarLocale = {
|
4
|
+
fallbackText?: string;
|
5
|
+
};
|
6
|
+
export interface UserAvatarProps {
|
7
|
+
/** A minimal user object containing `name`, `email` and `avatar`. */
|
8
|
+
user: MinimalUser;
|
9
|
+
/**
|
10
|
+
* in px
|
11
|
+
* @default 32
|
12
|
+
* */
|
13
|
+
size?: number;
|
14
|
+
/** @ignore */
|
15
|
+
className?: string;
|
16
|
+
locale?: UserAvatarLocale;
|
17
|
+
}
|
18
|
+
/** The `UserAvatar` is used as a visual representation of a user. */
|
19
|
+
export declare const UserAvatar: ({ className, user, size, locale: propsLocale }: UserAvatarProps) => JSX.Element;
|
20
|
+
export default UserAvatar;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
4
|
+
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; }
|
5
|
+
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; }
|
6
|
+
import { AvatarFallback, Image as AvatarImage, Root as AvatarRoot } from "@radix-ui/react-avatar";
|
7
|
+
import cx from "clsx";
|
8
|
+
import { useLocale } from "../Satellite";
|
9
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
10
|
+
import { getUserBackgroundClassName, getUserInitials } from "./utils";
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
var DEFAULT_LOCALE = {
|
14
|
+
fallbackText: "User's avatar"
|
15
|
+
};
|
16
|
+
/** The `UserAvatar` is used as a visual representation of a user. */
|
17
|
+
export var UserAvatar = function UserAvatar(_ref) {
|
18
|
+
var _user$email;
|
19
|
+
var className = _ref.className,
|
20
|
+
user = _ref.user,
|
21
|
+
_ref$size = _ref.size,
|
22
|
+
size = _ref$size === void 0 ? 32 : _ref$size,
|
23
|
+
propsLocale = _ref.locale;
|
24
|
+
var contextLocale = useLocale("userAvatar");
|
25
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_LOCALE), contextLocale), propsLocale);
|
26
|
+
var fallbackName = user.name || user.email || locale.fallbackText;
|
27
|
+
return /*#__PURE__*/_jsxs(AvatarRoot, {
|
28
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["overflow-hidden flex justify-center items-center rounded-full"]))), getUserBackgroundClassName((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
|
29
|
+
style: {
|
30
|
+
width: size,
|
31
|
+
height: size
|
32
|
+
},
|
33
|
+
children: [/*#__PURE__*/_jsx(AvatarImage, {
|
34
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["h-full w-full object-cover"]))),
|
35
|
+
src: user.avatar,
|
36
|
+
alt: fallbackName
|
37
|
+
}), /*#__PURE__*/_jsxs(AvatarFallback, {
|
38
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex h-full w-full items-center justify-center uppercase"]))),
|
39
|
+
children: [/*#__PURE__*/_jsx("span", {
|
40
|
+
"aria-hidden": true,
|
41
|
+
children: getUserInitials(user)
|
42
|
+
}), /*#__PURE__*/_jsx("span", {
|
43
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["sr-only"]))),
|
44
|
+
children: fallbackName
|
45
|
+
})]
|
46
|
+
})]
|
47
|
+
});
|
48
|
+
};
|
49
|
+
export default UserAvatar;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare type ApplicationAvatarSize = "small" | "medium";
|
2
|
+
export declare type MinimalApplication = {
|
3
|
+
applicationId: string;
|
4
|
+
name?: string;
|
5
|
+
};
|
6
|
+
declare type UserAvatarWithName = {
|
7
|
+
name: string;
|
8
|
+
email?: string;
|
9
|
+
};
|
10
|
+
declare type UserAvatarWithEmail = {
|
11
|
+
email: string;
|
12
|
+
name?: string;
|
13
|
+
};
|
14
|
+
export declare type MinimalUser = (UserAvatarWithName | UserAvatarWithEmail) & {
|
15
|
+
avatar?: string;
|
16
|
+
};
|
17
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { MinimalApplication, MinimalUser } from "./types";
|
2
|
+
export declare const pickApplicationColors: (applicationId: string) => string;
|
3
|
+
export declare const getApplicationIdInitial: (applicationId: string) => string;
|
4
|
+
export declare const getApplicationInitials: ({ name, applicationId }: MinimalApplication) => string;
|
5
|
+
export declare const getUserBackgroundClassName: (email: string) => string;
|
6
|
+
export declare const getUserInitials: (user: MinimalUser) => string;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
|
3
|
+
import { remove as removeDiacritics } from "diacritics";
|
4
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
5
|
+
import hashCode from "../utils/hashCode";
|
6
|
+
/** APPLICATION */
|
7
|
+
|
8
|
+
var APPLICATION_COLORS_CLASSNAMES = [/* eslint-disable @algolia/satellite/prefer-accent */stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["bg-grey-200 text-grey-800"]))), stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-nebula-200 text-nebula-800"]))), stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-blue-200 text-blue-900"]))), stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-green-200 text-green-900"]))), stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-pink-200 text-pink-800"]))), stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["bg-red-200 text-red-800"]))), stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["bg-orange-200 text-orange-900"]))), // Darker variants
|
9
|
+
stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["bg-grey-300 text-grey-900"]))), stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["bg-nebula-300 text-nebula-900"]))), stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["bg-blue-300 text-blue-900"]))), stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["bg-green-300 text-green-900"]))), stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["bg-pink-300 text-pink-900"]))), stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["bg-red-300 text-red-900"]))), stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["bg-orange-300 text-orange-900"]))) /* eslint-enable @algolia/satellite/prefer-accent */];
|
10
|
+
export var pickApplicationColors = function pickApplicationColors(applicationId) {
|
11
|
+
var _APPLICATION_COLORS_C;
|
12
|
+
return (_APPLICATION_COLORS_C = APPLICATION_COLORS_CLASSNAMES[Math.abs(hashCode(applicationId)) % APPLICATION_COLORS_CLASSNAMES.length]) !== null && _APPLICATION_COLORS_C !== void 0 ? _APPLICATION_COLORS_C : APPLICATION_COLORS_CLASSNAMES[0];
|
13
|
+
};
|
14
|
+
export var getApplicationIdInitial = function getApplicationIdInitial(applicationId) {
|
15
|
+
return applicationId.startsWith("beta") ? applicationId.slice(4, 6) : applicationId.slice(0, 2);
|
16
|
+
};
|
17
|
+
export var getApplicationInitials = function getApplicationInitials(_ref) {
|
18
|
+
var name = _ref.name,
|
19
|
+
applicationId = _ref.applicationId;
|
20
|
+
if (!name) {
|
21
|
+
return getApplicationIdInitial(applicationId);
|
22
|
+
}
|
23
|
+
var words = removeDiacritics(name.trim()).toLocaleUpperCase().split(/\W+/).filter(function (word) {
|
24
|
+
return word.length >= 1;
|
25
|
+
});
|
26
|
+
if (words.length === 0 || words.length === 1 && words[0].length < 2) {
|
27
|
+
return getApplicationIdInitial(applicationId);
|
28
|
+
} else if (words.length === 1) {
|
29
|
+
return words[0].slice(0, 2);
|
30
|
+
}
|
31
|
+
return "".concat(words[0][0]).concat(words[1][0]);
|
32
|
+
};
|
33
|
+
|
34
|
+
/** USER */
|
35
|
+
|
36
|
+
var USER_COLORS_CLASSNAMES = [/* eslint-disable @algolia/satellite/prefer-accent */stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["bg-grey-400 text-grey-900"]))), stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["bg-nebula-400 text-grey-900"]))), stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["bg-blue-400 text-grey-900"]))), stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["bg-green-400 text-grey-900"]))), stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["bg-pink-400 text-grey-900"]))), stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["bg-red-400 text-grey-900"]))), stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["bg-orange-400 text-grey-900"]))), // Darker variants
|
37
|
+
stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["bg-grey-700 text-white"]))), stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["bg-nebula-700 text-white"]))), stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["bg-blue-700 text-grey-900"]))), stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["bg-green-700 text-grey-900"]))), stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["bg-pink-700 text-white"]))), stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["bg-red-700 text-white"]))), stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["bg-orange-600 text-grey-900"]))) /* eslint-enable @algolia/satellite/prefer-accent */];
|
38
|
+
export var getUserBackgroundClassName = function getUserBackgroundClassName(email) {
|
39
|
+
var _USER_COLORS_CLASSNAM;
|
40
|
+
return (_USER_COLORS_CLASSNAM = USER_COLORS_CLASSNAMES[Math.abs(hashCode(email)) % USER_COLORS_CLASSNAMES.length]) !== null && _USER_COLORS_CLASSNAM !== void 0 ? _USER_COLORS_CLASSNAM : USER_COLORS_CLASSNAMES[0];
|
41
|
+
};
|
42
|
+
export var getUserInitials = function getUserInitials(user) {
|
43
|
+
var _user$email, _user$email$match;
|
44
|
+
var words = user.name ? user.name.trim().split(/\s+/) : (_user$email = user.email) === null || _user$email === void 0 ? void 0 : (_user$email$match = _user$email.match(/^(.+)(?:\+.+?)?@.+$/)) === null || _user$email$match === void 0 ? void 0 : _user$email$match[1].split(".");
|
45
|
+
return words ? words.slice(0, 2).map(function (w) {
|
46
|
+
return w.toLocaleLowerCase()[0];
|
47
|
+
}).join("") : "??";
|
48
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import type { FunctionComponent, HTMLAttributes, ReactNode } from "react";
|
2
|
+
import type { AtLeastOne, ColorVariant, IconComponentType } from "../types";
|
3
|
+
export declare type BadgeSizes = "small" | "medium" | "large";
|
4
|
+
export declare type BadgeVariants = ColorVariant | "pink";
|
5
|
+
interface BaseBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
6
|
+
/** @default "grey" */
|
7
|
+
variant?: BadgeVariants;
|
8
|
+
/** @default "default" */
|
9
|
+
size?: BadgeSizes;
|
10
|
+
}
|
11
|
+
declare type BadgeContentProps = {
|
12
|
+
children: ReactNode;
|
13
|
+
/** An additional value to accompany the `Badge` */
|
14
|
+
value: ReactNode;
|
15
|
+
/** Left aligned icon */
|
16
|
+
icon: IconComponentType;
|
17
|
+
};
|
18
|
+
export declare type BadgeProps = BaseBadgeProps & AtLeastOne<BadgeContentProps>;
|
19
|
+
/**
|
20
|
+
* Badges are used to inform a user about a status of an item or a process. They can also contain a numeric value. Badges come with a set of colours that are easily identified. Green colour implies success or completion, while orange suggests a warning, on hold, or a problem. Red coloured badges mean error or failure.
|
21
|
+
*
|
22
|
+
* - Stay consistent with badge content (text), don't vary your vocabulary
|
23
|
+
* - Bages usually come after a textual information or explanation
|
24
|
+
* - Don't use badges where traditional error messages (such as form validation) can be used instead
|
25
|
+
* - Don't use badges with combination of buttons
|
26
|
+
* - Badges are not interactive
|
27
|
+
*
|
28
|
+
* Do use
|
29
|
+
*
|
30
|
+
* - To indicate progress of an A/B test
|
31
|
+
* - To indicate problem with an index
|
32
|
+
* - To display numeric values for multiple items (similar to a "tag cloud")
|
33
|
+
*/
|
34
|
+
export declare const Badge: FunctionComponent<BadgeProps>;
|
35
|
+
export default Badge;
|
@@ -0,0 +1,69 @@
|
|
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 = ["children", "value", "icon", "variant", "size", "className"];
|
5
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
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
|
+
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; }
|
8
|
+
import cx from "clsx";
|
9
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
10
|
+
import isRenderedChild from "../utils/isRenderedChild";
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
13
|
+
var BASE_CLASSNAMES = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n inline-flex items-center justify-center\n rounded-full border\n overflow-hidden\n"])));
|
14
|
+
var VARIANT_CLASSNAMES = {
|
15
|
+
grey: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["bg-grey-100 border-grey-200 text-grey-700"]))),
|
16
|
+
accent: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["bg-accent-100 border-accent-200 text-accent-700"]))),
|
17
|
+
blue: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-blue-100 border-blue-200 text-blue-800"]))),
|
18
|
+
green: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["bg-green-100 border-green-300 text-green-900"]))),
|
19
|
+
orange: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["bg-orange-100 border-orange-300 text-orange-800"]))),
|
20
|
+
red: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["bg-red-100 border-red-200 text-red-700"]))),
|
21
|
+
pink: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["bg-pink-100 border-pink-200 text-pink-700"])))
|
22
|
+
};
|
23
|
+
var SIZE_CLASSNAMES = {
|
24
|
+
small: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["h-4 display-caption px-1 space-x-1"]))),
|
25
|
+
medium: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["h-5 display-body px-2 space-x-2"]))),
|
26
|
+
large: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["h-6 display-body px-2 space-x-2"])))
|
27
|
+
};
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Badges are used to inform a user about a status of an item or a process. They can also contain a numeric value. Badges come with a set of colours that are easily identified. Green colour implies success or completion, while orange suggests a warning, on hold, or a problem. Red coloured badges mean error or failure.
|
31
|
+
*
|
32
|
+
* - Stay consistent with badge content (text), don't vary your vocabulary
|
33
|
+
* - Bages usually come after a textual information or explanation
|
34
|
+
* - Don't use badges where traditional error messages (such as form validation) can be used instead
|
35
|
+
* - Don't use badges with combination of buttons
|
36
|
+
* - Badges are not interactive
|
37
|
+
*
|
38
|
+
* Do use
|
39
|
+
*
|
40
|
+
* - To indicate progress of an A/B test
|
41
|
+
* - To indicate problem with an index
|
42
|
+
* - To display numeric values for multiple items (similar to a "tag cloud")
|
43
|
+
*/
|
44
|
+
export var Badge = function Badge(_ref) {
|
45
|
+
var children = _ref.children,
|
46
|
+
value = _ref.value,
|
47
|
+
Icon = _ref.icon,
|
48
|
+
_ref$variant = _ref.variant,
|
49
|
+
variant = _ref$variant === void 0 ? "grey" : _ref$variant,
|
50
|
+
_ref$size = _ref.size,
|
51
|
+
size = _ref$size === void 0 ? "large" : _ref$size,
|
52
|
+
className = _ref.className,
|
53
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
54
|
+
var badgeClassName = cx(BASE_CLASSNAMES, VARIANT_CLASSNAMES[variant], SIZE_CLASSNAMES[size], className);
|
55
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, props), {}, {
|
56
|
+
className: badgeClassName,
|
57
|
+
children: [Icon && /*#__PURE__*/_jsx("span", {
|
58
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
59
|
+
size: ".8em"
|
60
|
+
})
|
61
|
+
}), isRenderedChild(children) && /*#__PURE__*/_jsx("span", {
|
62
|
+
className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["truncate"]))),
|
63
|
+
children: children
|
64
|
+
}), isRenderedChild(value) && /*#__PURE__*/_jsx("span", {
|
65
|
+
children: value
|
66
|
+
})]
|
67
|
+
}));
|
68
|
+
};
|
69
|
+
export default Badge;
|