@algolia/satellite 1.0.0-beta.133 → 1.0.0-beta.136
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 +33 -28
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +6 -2
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +16 -4
- package/cjs/AutoComplete/AutoComplete.d.ts +5 -10
- package/cjs/AutoComplete/AutoComplete.js +28 -50
- package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +4 -4
- package/cjs/AutoComplete/AutoComplete.tailwind.js +10 -13
- package/cjs/AutoComplete/utils.d.ts +2 -1
- package/cjs/AutoComplete/utils.js +22 -2
- package/cjs/Avatars/ApplicationAvatar.js +2 -2
- package/cjs/Avatars/UserAvatar.js +2 -2
- package/cjs/Avatars/utils.js +12 -4
- package/cjs/Badge/Badge.js +2 -2
- package/cjs/Banners/Alert/Alert.d.ts +1 -0
- package/cjs/Banners/Alert/Alert.js +3 -3
- package/cjs/Banners/BigBertha/BigBertha.d.ts +2 -1
- package/cjs/Banners/Promote/Promote.d.ts +1 -0
- package/cjs/Banners/Promote/Promote.js +2 -2
- package/cjs/Button/Button.js +7 -7
- package/cjs/Button/Button.tailwind.d.ts +4 -4
- package/cjs/Button/Button.tailwind.js +11 -14
- package/cjs/Button/ButtonGroup.d.ts +2 -1
- package/cjs/Button/ButtonGroup.js +2 -2
- package/cjs/Button/IconButton.js +3 -3
- package/cjs/Card/Card.js +2 -2
- package/cjs/Card/Card.tailwind.d.ts +4 -4
- package/cjs/Card/Card.tailwind.js +5 -8
- package/cjs/Card/components/CardHeader.js +2 -2
- package/cjs/Card/components/CardTitle.d.ts +4 -2
- package/cjs/Card/components/CardTitle.js +2 -2
- package/cjs/Checkbox/Checkbox.d.ts +2 -2
- package/cjs/Checkbox/Checkbox.js +3 -3
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -5
- package/cjs/Checkbox/Checkbox.tailwind.js +11 -14
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +2 -1
- package/cjs/DatePicker/DatePicker/DatePicker.js +13 -7
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +4 -4
- package/cjs/DatePicker/DatePicker.tailwind.js +32 -27
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +14 -3
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -1
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +1 -1
- package/cjs/DatePicker/components/Calendar.d.ts +2 -1
- package/cjs/DatePicker/components/FooterActions.d.ts +2 -1
- package/cjs/DatePicker/components/FooterActions.js +2 -2
- package/cjs/DatePicker/components/Modal.js +7 -6
- package/cjs/DatePicker/components/NavBar.d.ts +2 -1
- package/cjs/DatePicker/components/NavBar.js +5 -5
- package/cjs/DatePicker/utils.d.ts +2 -0
- package/cjs/DatePicker/utils.js +10 -2
- package/cjs/Dropdown/Dropdown.d.ts +1 -1
- package/cjs/Dropdown/Dropdown.js +7 -6
- package/cjs/Dropdown/DropdownButton.d.ts +1 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +4 -4
- package/cjs/Dropdown/components/DropdownFooterItem.js +2 -2
- package/cjs/Dropdown/components/DropdownLinkItem.js +3 -4
- package/cjs/Dropdown/components/DropdownTitle.d.ts +4 -2
- package/cjs/Dropdown/components/DropdownTitle.js +2 -2
- package/cjs/Dropdown/components/DropdownToggleItem.js +4 -4
- package/cjs/Dropdown/useDropdownItemProps.d.ts +9 -1
- package/cjs/Dropdown/useDropdownItemProps.js +18 -9
- package/cjs/Dropzone/Dropzone.d.ts +5 -1
- package/cjs/Dropzone/Dropzone.js +16 -7
- package/cjs/EmptyState/EmptyState.js +5 -5
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +4 -4
- package/cjs/EmptyState/EmptyState.tailwind.js +5 -8
- package/cjs/Field/Field.d.ts +1 -0
- package/cjs/Field/Field.js +3 -3
- package/cjs/Flag/Flag.d.ts +1 -0
- package/cjs/Flag/Flag.js +19 -4
- package/cjs/Flag/Flag.tailwind.d.ts +4 -4
- package/cjs/Flag/Flag.tailwind.js +8 -15
- package/cjs/Flag/Flags.d.ts +1 -1
- package/cjs/Flag/Flags.js +5 -4
- package/cjs/Flag/types.d.ts +4 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +2 -1
- package/cjs/FlexGrid/FlexGrid.js +3 -3
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +6 -3
- package/cjs/FlexGrid/FlexGrid.tailwind.js +8 -11
- package/cjs/HelpUnderline/HelpUnderline.js +3 -3
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +4 -4
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +3 -6
- package/cjs/Input/Input.d.ts +6 -0
- package/cjs/Input/Input.js +17 -6
- package/cjs/Input/Input.tailwind.d.ts +4 -4
- package/cjs/Input/Input.tailwind.js +12 -15
- package/cjs/Insert/Insert.d.ts +1 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +4 -5
- package/cjs/InstantSearch/InstantSearch.tailwind.js +34 -32
- package/cjs/KeyboardKey/KeyboardKey.js +5 -4
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +4 -4
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +5 -8
- package/cjs/Link/ButtonLink.js +1 -10
- package/cjs/Link/Link.js +2 -2
- package/cjs/Medallion/Medallion.js +3 -2
- package/cjs/Medallion/Medallion.tailwind.d.ts +4 -4
- package/cjs/Medallion/Medallion.tailwind.js +8 -11
- package/cjs/Modal/Modal.d.ts +5 -4
- package/cjs/Modal/Modal.js +19 -11
- package/cjs/Modal/Modal.tailwind.d.ts +4 -4
- package/cjs/Modal/Modal.tailwind.js +9 -18
- package/cjs/Modal/components/ModalFooter.d.ts +4 -2
- package/cjs/Modal/components/ModalFooter.js +2 -2
- package/cjs/Modal/components/ModalSection.js +2 -2
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +3 -7
- package/cjs/Pagination/CompactPagination/CompactPagination.js +30 -6
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +5 -4
- package/cjs/Pagination/DotPagination/DotPagination.js +20 -4
- package/cjs/Pagination/Pagination/Pagination.d.ts +1 -1
- package/cjs/Pagination/Pagination/Pagination.js +27 -10
- package/cjs/ProgressBar/ProgressBar.js +3 -3
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -5
- package/cjs/ProgressBar/ProgressBar.tailwind.js +7 -10
- package/cjs/ProgressSpinner/ProgressSpinner.js +2 -2
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -5
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +4 -7
- package/cjs/RadioGroup/RadioButton.d.ts +1 -1
- package/cjs/RadioGroup/RadioButton.js +2 -2
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +4 -4
- package/cjs/RadioGroup/RadioButton.tailwind.js +11 -14
- package/cjs/RadioGroup/RadioGroup.d.ts +1 -0
- package/cjs/RadioGroup/RadioGroup.js +1 -1
- package/cjs/RangeSlider/RangeSlider.d.ts +1 -1
- package/cjs/RangeSlider/RangeSlider.js +2 -2
- package/cjs/RangeSlider/RangeSlider.tailwind.d.ts +4 -4
- package/cjs/RangeSlider/RangeSlider.tailwind.js +21 -24
- package/cjs/Satellite/Satellite.d.ts +5 -1
- package/cjs/Satellite/Satellite.js +9 -2
- package/cjs/Satellite/SatelliteContext.d.ts +4 -1
- package/cjs/Satellite/SatelliteContext.js +2 -1
- package/cjs/Satellite/index.d.ts +2 -0
- package/cjs/Satellite/index.js +28 -0
- package/cjs/Satellite/locale.d.ts +29 -0
- package/cjs/Satellite/locale.js +21 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +29 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +2 -1
- package/cjs/ScrollIndicator/ScrollIndicator.js +5 -4
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +4 -4
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +8 -11
- package/cjs/Select/Select.js +2 -2
- package/cjs/Select/Select.tailwind.d.ts +5 -5
- package/cjs/Select/Select.tailwind.js +5 -8
- package/cjs/Sidebar/Sidebar.d.ts +33 -12
- package/cjs/Sidebar/Sidebar.js +49 -39
- package/cjs/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/cjs/Sidebar/SidebarButtonLink.js +110 -0
- package/cjs/Sidebar/SidebarContext.d.ts +7 -8
- package/cjs/Sidebar/SidebarContext.js +10 -11
- package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
- package/cjs/Sidebar/SidebarHeader.js +29 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeading.js +37 -0
- package/cjs/Sidebar/SidebarLink.d.ts +8 -0
- package/cjs/Sidebar/SidebarLink.js +58 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +47 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/{components/SidebarHeader.js → SidebarLinksGroup/SidebarGroupLink.js} +14 -23
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +120 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +18 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/cjs/{tailwind-types.js → Sidebar/SidebarLinksGroup/types.js} +0 -0
- package/cjs/Sidebar/SidebarNav.d.ts +10 -0
- package/cjs/Sidebar/SidebarNav.js +48 -0
- package/cjs/Sidebar/index.d.ts +7 -4
- package/cjs/Sidebar/index.js +61 -21
- package/cjs/Sidebar/types.d.ts +6 -2
- package/cjs/Switch/Switch.js +2 -2
- package/cjs/Switch/Switch.tailwind.d.ts +5 -5
- package/cjs/Switch/Switch.tailwind.js +7 -8
- package/cjs/Switch/SwitchOption.d.ts +2 -1
- package/cjs/Switch/SwitchOption.js +1 -1
- package/cjs/Tables/DataTable/DataTable.d.ts +1 -1
- package/cjs/Tables/DataTable/DataTable.js +24 -7
- package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +4 -4
- package/cjs/Tables/DataTable/DataTable.tailwind.js +3 -6
- package/cjs/Tables/DataTable/components/Body.d.ts +3 -2
- package/cjs/Tables/DataTable/components/Body.js +4 -4
- package/cjs/Tables/DataTable/components/HeaderCell.js +3 -3
- package/cjs/Tables/DataTable/components/Loader.d.ts +1 -1
- package/cjs/Tables/DataTable/components/Loader.js +2 -2
- package/cjs/Tables/Table/Table.js +2 -2
- package/cjs/Tables/Table/Table.tailwind.d.ts +4 -4
- package/cjs/Tables/Table/Table.tailwind.js +3 -6
- package/cjs/Tables/Table/components/Footer.js +2 -2
- package/cjs/Tabs/ContentTabs.js +3 -3
- package/cjs/Tabs/LinkTabs.js +2 -2
- package/cjs/Tabs/Tabs.tailwind.d.ts +4 -4
- package/cjs/Tabs/Tabs.tailwind.js +13 -16
- package/cjs/Tabs/components/LinkTab.js +9 -11
- package/cjs/Tag/Tag.d.ts +5 -4
- package/cjs/Tag/Tag.js +17 -9
- package/cjs/Tag/Tag.tailwind.d.ts +4 -4
- package/cjs/Tag/Tag.tailwind.js +6 -9
- package/cjs/TextArea/TextArea.js +2 -2
- package/cjs/TextArea/TextArea.tailwind.d.ts +4 -4
- package/cjs/TextArea/TextArea.tailwind.js +4 -7
- package/cjs/Toggle/Toggle.d.ts +1 -1
- package/cjs/Toggle/Toggle.js +2 -2
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -5
- package/cjs/Toggle/Toggle.tailwind.js +19 -22
- package/cjs/Tooltip/OverflowTooltipWrapper.js +8 -7
- package/cjs/Tooltip/Tooltip.d.ts +1 -1
- package/cjs/Tooltip/Tooltip.js +2 -2
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +4 -4
- package/cjs/Tooltip/Tooltip.tailwind.js +19 -18
- package/cjs/Tooltip/TooltipWrapper.d.ts +1 -0
- package/cjs/Tooltip/TooltipWrapper.js +8 -7
- package/cjs/Tooltip/types.d.ts +2 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -17
- package/cjs/Typography/Typography.tailwind.js +123 -133
- package/cjs/UserContent/UserContent.js +2 -2
- package/cjs/UserContent/UserContent.tailwind.d.ts +4 -1
- package/cjs/UserContent/UserContent.tailwind.js +12 -10
- package/cjs/index.d.ts +0 -1
- package/cjs/index.js +0 -14
- package/cjs/styles/base.tailwind.d.ts +4 -4
- package/cjs/styles/base.tailwind.js +3 -6
- package/cjs/styles/tailwind.config.d.ts +2 -198
- package/cjs/styles/tailwind.config.js +25 -29
- package/cjs/types.d.ts +7 -0
- package/cjs/utilities/utilities.tailwind.d.ts +4 -1
- package/cjs/utilities/utilities.tailwind.js +4 -6
- package/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/cjs/utils/useLinkProps.d.ts +5 -2
- package/cjs/utils/useLinkProps.js +9 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +6 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.js +14 -3
- package/esm/AutoComplete/AutoComplete.d.ts +5 -10
- package/esm/AutoComplete/AutoComplete.js +26 -47
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +4 -4
- package/esm/AutoComplete/AutoComplete.tailwind.js +10 -13
- package/esm/AutoComplete/utils.d.ts +2 -1
- package/esm/AutoComplete/utils.js +16 -0
- package/esm/Avatars/ApplicationAvatar.js +2 -2
- package/esm/Avatars/UserAvatar.js +1 -1
- package/esm/Avatars/utils.js +12 -4
- package/esm/Badge/Badge.js +1 -1
- package/esm/Banners/Alert/Alert.d.ts +1 -0
- package/esm/Banners/Alert/Alert.js +2 -2
- package/esm/Banners/BigBertha/BigBertha.d.ts +2 -1
- package/esm/Banners/Promote/Promote.d.ts +1 -0
- package/esm/Banners/Promote/Promote.js +1 -1
- package/esm/Button/Button.js +3 -3
- package/esm/Button/Button.tailwind.d.ts +4 -4
- package/esm/Button/Button.tailwind.js +13 -16
- package/esm/Button/ButtonGroup.d.ts +2 -1
- package/esm/Button/ButtonGroup.js +1 -1
- package/esm/Button/IconButton.js +1 -1
- package/esm/Card/Card.js +1 -1
- package/esm/Card/Card.tailwind.d.ts +4 -4
- package/esm/Card/Card.tailwind.js +6 -9
- package/esm/Card/components/CardHeader.js +1 -1
- package/esm/Card/components/CardTitle.d.ts +4 -2
- package/esm/Card/components/CardTitle.js +1 -1
- package/esm/Checkbox/Checkbox.d.ts +2 -2
- package/esm/Checkbox/Checkbox.js +1 -1
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -5
- package/esm/Checkbox/Checkbox.tailwind.js +11 -14
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +2 -1
- package/esm/DatePicker/DatePicker/DatePicker.js +12 -7
- package/esm/DatePicker/DatePicker.tailwind.d.ts +4 -4
- package/esm/DatePicker/DatePicker.tailwind.js +32 -28
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +12 -2
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +2 -1
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +1 -1
- package/esm/DatePicker/components/Calendar.d.ts +2 -1
- package/esm/DatePicker/components/FooterActions.d.ts +2 -1
- package/esm/DatePicker/components/FooterActions.js +2 -2
- package/esm/DatePicker/components/Modal.js +5 -4
- package/esm/DatePicker/components/NavBar.d.ts +2 -1
- package/esm/DatePicker/components/NavBar.js +4 -4
- package/esm/DatePicker/utils.d.ts +2 -0
- package/esm/DatePicker/utils.js +7 -0
- package/esm/Dropdown/Dropdown.d.ts +1 -1
- package/esm/Dropdown/Dropdown.js +5 -4
- package/esm/Dropdown/DropdownButton.d.ts +1 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +3 -3
- package/esm/Dropdown/components/DropdownFooterItem.js +1 -1
- package/esm/Dropdown/components/DropdownLinkItem.js +2 -3
- package/esm/Dropdown/components/DropdownTitle.d.ts +4 -2
- package/esm/Dropdown/components/DropdownTitle.js +1 -1
- package/esm/Dropdown/components/DropdownToggleItem.js +3 -3
- package/esm/Dropdown/useDropdownItemProps.d.ts +9 -1
- package/esm/Dropdown/useDropdownItemProps.js +16 -8
- package/esm/Dropzone/Dropzone.d.ts +5 -1
- package/esm/Dropzone/Dropzone.js +15 -6
- package/esm/EmptyState/EmptyState.js +1 -1
- package/esm/EmptyState/EmptyState.tailwind.d.ts +4 -4
- package/esm/EmptyState/EmptyState.tailwind.js +6 -9
- package/esm/Field/Field.d.ts +1 -0
- package/esm/Field/Field.js +1 -1
- package/esm/Flag/Flag.d.ts +1 -0
- package/esm/Flag/Flag.js +16 -3
- package/esm/Flag/Flag.tailwind.d.ts +4 -4
- package/esm/Flag/Flag.tailwind.js +9 -16
- package/esm/Flag/Flags.d.ts +1 -1
- package/esm/Flag/Flags.js +4 -3
- package/esm/Flag/types.d.ts +4 -0
- package/esm/FlexGrid/FlexGrid.d.ts +2 -1
- package/esm/FlexGrid/FlexGrid.js +1 -1
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +6 -3
- package/esm/FlexGrid/FlexGrid.tailwind.js +8 -11
- package/esm/HelpUnderline/HelpUnderline.js +1 -1
- package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +4 -4
- package/esm/HelpUnderline/HelpUnderline.tailwind.js +4 -7
- package/esm/Input/Input.d.ts +6 -0
- package/esm/Input/Input.js +16 -5
- package/esm/Input/Input.tailwind.d.ts +4 -4
- package/esm/Input/Input.tailwind.js +14 -17
- package/esm/Insert/Insert.d.ts +1 -0
- package/esm/InstantSearch/InstantSearch.tailwind.d.ts +4 -5
- package/esm/InstantSearch/InstantSearch.tailwind.js +35 -33
- package/esm/KeyboardKey/KeyboardKey.js +4 -3
- package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +4 -4
- package/esm/KeyboardKey/KeyboardKey.tailwind.js +6 -9
- package/esm/Link/ButtonLink.js +1 -10
- package/esm/Link/Link.js +1 -1
- package/esm/Medallion/Medallion.js +2 -1
- package/esm/Medallion/Medallion.tailwind.d.ts +4 -4
- package/esm/Medallion/Medallion.tailwind.js +8 -11
- package/esm/Modal/Modal.d.ts +5 -4
- package/esm/Modal/Modal.js +15 -8
- package/esm/Modal/Modal.tailwind.d.ts +4 -4
- package/esm/Modal/Modal.tailwind.js +10 -19
- package/esm/Modal/components/ModalFooter.d.ts +4 -2
- package/esm/Modal/components/ModalFooter.js +1 -1
- package/esm/Modal/components/ModalSection.js +1 -1
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +3 -7
- package/esm/Pagination/CompactPagination/CompactPagination.js +27 -6
- package/esm/Pagination/DotPagination/DotPagination.d.ts +5 -4
- package/esm/Pagination/DotPagination/DotPagination.js +17 -4
- package/esm/Pagination/Pagination/Pagination.d.ts +1 -1
- package/esm/Pagination/Pagination/Pagination.js +25 -10
- package/esm/ProgressBar/ProgressBar.js +1 -1
- package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -5
- package/esm/ProgressBar/ProgressBar.tailwind.js +7 -10
- package/esm/ProgressSpinner/ProgressSpinner.js +1 -1
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -5
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +5 -8
- package/esm/RadioGroup/RadioButton.d.ts +1 -1
- package/esm/RadioGroup/RadioButton.js +1 -1
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +4 -4
- package/esm/RadioGroup/RadioButton.tailwind.js +13 -16
- package/esm/RadioGroup/RadioGroup.d.ts +1 -0
- package/esm/RadioGroup/RadioGroup.js +1 -1
- package/esm/RangeSlider/RangeSlider.d.ts +1 -1
- package/esm/RangeSlider/RangeSlider.js +1 -1
- package/esm/RangeSlider/RangeSlider.tailwind.d.ts +4 -4
- package/esm/RangeSlider/RangeSlider.tailwind.js +21 -24
- package/esm/Satellite/Satellite.d.ts +5 -1
- package/esm/Satellite/Satellite.js +8 -2
- package/esm/Satellite/SatelliteContext.d.ts +4 -1
- package/esm/Satellite/SatelliteContext.js +2 -1
- package/esm/Satellite/index.d.ts +2 -0
- package/esm/Satellite/index.js +2 -0
- package/esm/Satellite/locale.d.ts +29 -0
- package/esm/Satellite/locale.js +8 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +16 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +2 -1
- package/esm/ScrollIndicator/ScrollIndicator.js +3 -2
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +4 -4
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +8 -11
- package/esm/Select/Select.js +1 -1
- package/esm/Select/Select.tailwind.d.ts +5 -5
- package/esm/Select/Select.tailwind.js +5 -8
- package/esm/Sidebar/Sidebar.d.ts +33 -12
- package/esm/Sidebar/Sidebar.js +45 -30
- package/esm/Sidebar/SidebarButtonLink.d.ts +14 -0
- package/esm/Sidebar/SidebarButtonLink.js +92 -0
- package/esm/Sidebar/SidebarContext.d.ts +7 -8
- package/esm/Sidebar/SidebarContext.js +9 -8
- package/esm/Sidebar/SidebarHeader.d.ts +6 -0
- package/esm/Sidebar/SidebarHeader.js +15 -0
- package/esm/Sidebar/SidebarHeading.d.ts +7 -0
- package/esm/Sidebar/SidebarHeading.js +22 -0
- package/esm/Sidebar/SidebarLink.d.ts +8 -0
- package/esm/Sidebar/SidebarLink.js +42 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +32 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/{components/SidebarHeader.js → SidebarLinksGroup/SidebarGroupLink.js} +13 -19
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +100 -0
- package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
- package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/esm/{tailwind-types.js → Sidebar/SidebarLinksGroup/types.js} +0 -0
- package/esm/Sidebar/SidebarNav.d.ts +10 -0
- package/esm/Sidebar/SidebarNav.js +33 -0
- package/esm/Sidebar/index.d.ts +7 -4
- package/esm/Sidebar/index.js +7 -4
- package/esm/Sidebar/types.d.ts +6 -2
- package/esm/Switch/Switch.js +1 -1
- package/esm/Switch/Switch.tailwind.d.ts +5 -5
- package/esm/Switch/Switch.tailwind.js +7 -8
- package/esm/Switch/SwitchOption.d.ts +2 -1
- package/esm/Switch/SwitchOption.js +1 -1
- package/esm/Tables/DataTable/DataTable.d.ts +1 -1
- package/esm/Tables/DataTable/DataTable.js +21 -6
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +4 -4
- package/esm/Tables/DataTable/DataTable.tailwind.js +4 -7
- package/esm/Tables/DataTable/components/Body.d.ts +3 -2
- package/esm/Tables/DataTable/components/Body.js +4 -4
- package/esm/Tables/DataTable/components/HeaderCell.js +1 -1
- package/esm/Tables/DataTable/components/Loader.d.ts +1 -1
- package/esm/Tables/DataTable/components/Loader.js +2 -2
- package/esm/Tables/Table/Table.js +1 -1
- package/esm/Tables/Table/Table.tailwind.d.ts +4 -4
- package/esm/Tables/Table/Table.tailwind.js +4 -7
- package/esm/Tables/Table/components/Footer.js +1 -1
- package/esm/Tabs/ContentTabs.js +1 -1
- package/esm/Tabs/LinkTabs.js +1 -1
- package/esm/Tabs/Tabs.tailwind.d.ts +4 -4
- package/esm/Tabs/Tabs.tailwind.js +14 -17
- package/esm/Tabs/components/LinkTab.js +8 -10
- package/esm/Tag/Tag.d.ts +5 -4
- package/esm/Tag/Tag.js +14 -7
- package/esm/Tag/Tag.tailwind.d.ts +4 -4
- package/esm/Tag/Tag.tailwind.js +7 -10
- package/esm/TextArea/TextArea.js +1 -1
- package/esm/TextArea/TextArea.tailwind.d.ts +4 -4
- package/esm/TextArea/TextArea.tailwind.js +6 -9
- package/esm/Toggle/Toggle.d.ts +1 -1
- package/esm/Toggle/Toggle.js +1 -1
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -5
- package/esm/Toggle/Toggle.tailwind.js +19 -22
- package/esm/Tooltip/OverflowTooltipWrapper.js +5 -4
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +1 -1
- package/esm/Tooltip/Tooltip.tailwind.d.ts +4 -4
- package/esm/Tooltip/Tooltip.tailwind.js +20 -19
- package/esm/Tooltip/TooltipWrapper.d.ts +1 -0
- package/esm/Tooltip/TooltipWrapper.js +5 -4
- package/esm/Tooltip/types.d.ts +2 -0
- package/esm/Typography/Typography.tailwind.d.ts +5 -17
- package/esm/Typography/Typography.tailwind.js +124 -134
- package/esm/UserContent/UserContent.js +1 -1
- package/esm/UserContent/UserContent.tailwind.d.ts +4 -1
- package/esm/UserContent/UserContent.tailwind.js +13 -11
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/styles/base.tailwind.d.ts +4 -4
- package/esm/styles/base.tailwind.js +4 -7
- package/esm/styles/tailwind.config.d.ts +2 -198
- package/esm/styles/tailwind.config.js +27 -30
- package/esm/types.d.ts +7 -0
- package/esm/utilities/utilities.tailwind.d.ts +4 -1
- package/esm/utilities/utilities.tailwind.js +4 -6
- package/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/esm/utils/useLinkProps.d.ts +5 -2
- package/esm/utils/useLinkProps.js +9 -2
- package/package.json +9 -12
- package/satellite.min.css +2 -4
- package/scss/colors.scss +1 -0
- package/cjs/Banner/Banner.d.ts +0 -85
- package/cjs/Banner/Banner.js +0 -176
- package/cjs/Banner/index.d.ts +0 -2
- package/cjs/Banner/index.js +0 -32
- package/cjs/Sidebar/Sidebar.tailwind.d.ts +0 -5
- package/cjs/Sidebar/Sidebar.tailwind.js +0 -69
- package/cjs/Sidebar/components/SidebarHeader.d.ts +0 -5
- package/cjs/Sidebar/components/SidebarLink.d.ts +0 -9
- package/cjs/Sidebar/components/SidebarLink.js +0 -98
- package/cjs/tailwind-types.d.ts +0 -52
- package/esm/Banner/Banner.d.ts +0 -85
- package/esm/Banner/Banner.js +0 -161
- package/esm/Banner/index.d.ts +0 -2
- package/esm/Banner/index.js +0 -2
- package/esm/Sidebar/Sidebar.tailwind.d.ts +0 -5
- package/esm/Sidebar/Sidebar.tailwind.js +0 -67
- package/esm/Sidebar/components/SidebarHeader.d.ts +0 -5
- package/esm/Sidebar/components/SidebarLink.d.ts +0 -9
- package/esm/Sidebar/components/SidebarLink.js +0 -78
- package/esm/tailwind-types.d.ts +0 -52
- package/satellite.css +0 -196852
package/README.md
CHANGED
@@ -82,39 +82,24 @@ yarn add -D tailwindcss
|
|
82
82
|
Example `main.css`
|
83
83
|
|
84
84
|
```css
|
85
|
-
@
|
85
|
+
@tailwind base;
|
86
|
+
@tailwind components;
|
87
|
+
@tailwind utilities;
|
86
88
|
|
87
|
-
@
|
88
|
-
|
89
|
-
|
89
|
+
@layer components {
|
90
|
+
/* your custom components */
|
91
|
+
}
|
90
92
|
```
|
91
93
|
|
92
94
|
Example `postcss.config.js`
|
93
95
|
|
94
96
|
```js
|
95
|
-
|
96
|
-
const cssnano = require("cssnano");
|
97
|
-
|
98
|
-
// Feel free to customize it
|
99
|
-
const tailwindConfig = require("@algolia/satellite/cjs/styles/tailwind.config.js");
|
100
|
-
|
101
|
-
// If you're gonna use purge css, you need to configure a custom extractor to avoid removing classes used in the Satellite components.
|
102
|
-
const { makePurgeCssExtractor } = require("@algolia/satellite");
|
103
|
-
const PurgeCssExtractor = makePurgeCssExtractor(tailwindConfig.prefix);
|
97
|
+
// ...
|
104
98
|
|
105
99
|
const plugins = [
|
106
100
|
require("postcss-import"),
|
107
101
|
require("tailwindcss")(tailwindConfig),
|
108
102
|
require("autoprefixer"),
|
109
|
-
purgecss({
|
110
|
-
content: ["./dist/**/*.{js,html}"],
|
111
|
-
defaultExtractor: PurgeCssExtractor,
|
112
|
-
// This entry will allow you to safelist some prefix in order to avoid some classnames to be wiped out.
|
113
|
-
// Here, it will keep all the classnames starting with:
|
114
|
-
// - 'ais-*' to preserve the instant-search widgets style
|
115
|
-
// - 'DayPicker*' to preserve all the DatePicker styles (used in the DatePicker and DateRangePicker)
|
116
|
-
whitelistPatterns: [/^ais-/, /^DayPicker/],
|
117
|
-
}),
|
118
103
|
cssnano({ preset: "default" }),
|
119
104
|
];
|
120
105
|
|
@@ -124,11 +109,31 @@ module.exports = { plugins };
|
|
124
109
|
Example `tailwind.config.js`
|
125
110
|
|
126
111
|
```js
|
127
|
-
const
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
112
|
+
const { makePurgeCssExtractor } = require('@algolia/satellite');
|
113
|
+
const satelliteConfig = require("@algolia/satellite/cjs/styles/tailwind.config.js");
|
114
|
+
|
115
|
+
module.exports = {
|
116
|
+
presets: [satellite],
|
117
|
+
content: [
|
118
|
+
files: [
|
119
|
+
`node_modules/@algolia/satellite/**/*.js`,
|
120
|
+
`node_modules/react-day-picker/lib/style.css`,
|
121
|
+
`node_modules/react-day-picker/src/**/*.js`,
|
122
|
+
|
123
|
+
`src/**/*.{ts,tsx,js,jsx}`,
|
124
|
+
// Any other sources files
|
125
|
+
],
|
126
|
+
extract: makePurgeCssExtractor(prefix),
|
127
|
+
],
|
128
|
+
theme: {
|
129
|
+
extend: {
|
130
|
+
// any colors, fonts... you want to add
|
131
|
+
}
|
132
|
+
},
|
133
|
+
plugins: [
|
134
|
+
// extra plugins you want to add
|
135
|
+
]
|
136
|
+
};
|
132
137
|
```
|
133
138
|
|
134
139
|
Example `index.jsx`
|
@@ -139,7 +144,7 @@ import ReactDOM from "react-dom";
|
|
139
144
|
|
140
145
|
import "./main.css";
|
141
146
|
|
142
|
-
import { Button, stl } from "@algolia/satellite
|
147
|
+
import { Button, stl } from "@algolia/satellite";
|
143
148
|
|
144
149
|
const loading = true;
|
145
150
|
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import type { FunctionComponent, HTMLAttributes } from "react";
|
2
2
|
export declare type AnnouncementBadgeSizes = "default" | "small";
|
3
|
+
export declare type AnnouncementBadgeTexts = "new" | "beta" | "internal" | "pilot";
|
4
|
+
export declare type AnnouncementBadgeLocale = {
|
5
|
+
[key in AnnouncementBadgeTexts]?: string;
|
6
|
+
};
|
3
7
|
export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
4
8
|
size?: AnnouncementBadgeSizes;
|
5
|
-
text?:
|
9
|
+
text?: AnnouncementBadgeTexts;
|
6
10
|
variant?: "accent" | "red";
|
7
|
-
locale?:
|
11
|
+
locale?: AnnouncementBadgeLocale;
|
8
12
|
children?: never;
|
9
13
|
}
|
10
14
|
export declare const AnnouncementBadge: FunctionComponent<AnnouncementBadgeProps>;
|
@@ -13,7 +13,9 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
13
13
|
|
14
14
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
15
15
|
|
16
|
-
var
|
16
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
17
|
+
|
18
|
+
var _Satellite = require("../Satellite");
|
17
19
|
|
18
20
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
19
21
|
|
@@ -27,6 +29,12 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
27
29
|
|
28
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
29
31
|
|
32
|
+
var DEFAULT_LOCALE = {
|
33
|
+
beta: "beta",
|
34
|
+
internal: "internal",
|
35
|
+
"new": "new",
|
36
|
+
pilot: "pilot"
|
37
|
+
};
|
30
38
|
var DEFAULT_CLASSNAME = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["capitalize inline-block rounded-full text-white select-none"])));
|
31
39
|
var SIZE_CLASSNAMES = {
|
32
40
|
"default": (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["display-body h-6 leading-md px-2"]))),
|
@@ -40,12 +48,16 @@ var AnnouncementBadge = function AnnouncementBadge(_ref) {
|
|
40
48
|
text = _ref$text === void 0 ? "new" : _ref$text,
|
41
49
|
variantProp = _ref.variant,
|
42
50
|
className = _ref.className,
|
43
|
-
|
51
|
+
propsLocale = _ref.locale,
|
44
52
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
53
|
+
var contextLocale = (0, _Satellite.useLocale)("announcementBadge");
|
54
|
+
|
55
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_LOCALE), contextLocale), propsLocale);
|
56
|
+
|
45
57
|
var variant = typeof variantProp === "string" ? variantProp : text === "internal" ? "red" : "accent";
|
46
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _objectSpread(_objectSpread({}, props), {}, {
|
47
|
-
className: (0,
|
48
|
-
children: locale
|
59
|
+
className: (0, _clsx["default"])(DEFAULT_CLASSNAME, variant === "red" ? (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-red-600"]))) : (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-accent-600"]))), SIZE_CLASSNAMES[size], className),
|
60
|
+
children: locale[text]
|
49
61
|
}));
|
50
62
|
};
|
51
63
|
|
@@ -10,7 +10,7 @@ interface State {
|
|
10
10
|
showAllResults: boolean;
|
11
11
|
}
|
12
12
|
declare type DefaultOptionProps = OptionItemProps & {
|
13
|
-
|
13
|
+
optionItemPrefix?: AutoCompleteLocale["optionItemPrefix"];
|
14
14
|
};
|
15
15
|
/**
|
16
16
|
* Autocomplete is a search-as-you-type function that matches what a person types, usually the beginning of a word, or a prefix, with a word list. Not to be confused with auto-suggestion that predicts the end of a query.
|
@@ -29,6 +29,7 @@ declare type DefaultOptionProps = OptionItemProps & {
|
|
29
29
|
* - Style different data
|
30
30
|
*/
|
31
31
|
export declare class AutoComplete<T extends Option = Option> extends Component<AutoCompleteProps<T>, State> {
|
32
|
+
static contextType: import("react").Context<import("../Satellite").SatelliteContextType>;
|
32
33
|
static defaultProps: {
|
33
34
|
clearable: boolean;
|
34
35
|
creatable: boolean;
|
@@ -38,15 +39,8 @@ export declare class AutoComplete<T extends Option = Option> extends Component<A
|
|
38
39
|
options: never[];
|
39
40
|
separatorKeyCodes: never[];
|
40
41
|
separatorKeys: never[];
|
41
|
-
optionItemComponent: ({
|
42
|
+
optionItemComponent: ({ optionItemPrefix, ...props }: DefaultOptionProps) => JSX.Element;
|
42
43
|
noWrap: boolean;
|
43
|
-
locale: {
|
44
|
-
clearInputButton: string;
|
45
|
-
emptyStateTitle: string;
|
46
|
-
itemsAvailable: (resultCount: number) => string;
|
47
|
-
showMoreButton: (extraResults: number) => string;
|
48
|
-
optionItemPrefix: (multiple: boolean) => "Add" | "Use";
|
49
|
-
};
|
50
44
|
};
|
51
45
|
state: State;
|
52
46
|
inputContainerRef: HTMLDivElement | null;
|
@@ -62,10 +56,11 @@ export declare class AutoComplete<T extends Option = Option> extends Component<A
|
|
62
56
|
handleChange: (option: T) => void;
|
63
57
|
handleShowAllResults: (evt: MouseEvent<HTMLButtonElement>) => void;
|
64
58
|
removeValue: (removedOption: T) => void;
|
65
|
-
getA11yStatusMessage: (options: A11yStatusMessageOptions<
|
59
|
+
getA11yStatusMessage: (options: A11yStatusMessageOptions<Option>) => any;
|
66
60
|
renderInput: (results: T[], autocompleteHelpers: ControllerStateAndHelpers<T | Option>, fieldState: FieldState) => JSX.Element;
|
67
61
|
renderMenu: (results: T[], autocompleteHelpers: ControllerStateAndHelpers<T | Option>) => JSX.Element;
|
68
62
|
renderSelect: (autocompleteHelpers: ControllerStateAndHelpers<T | Option>, fieldState: FieldState) => JSX.Element;
|
63
|
+
private get locale();
|
69
64
|
render(): JSX.Element;
|
70
65
|
}
|
71
66
|
export default AutoComplete;
|
@@ -29,7 +29,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
29
29
|
|
30
30
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
31
31
|
|
32
|
-
var
|
32
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
33
33
|
|
34
34
|
var _downshift = _interopRequireDefault(require("downshift"));
|
35
35
|
|
@@ -47,14 +47,14 @@ var _Card = _interopRequireDefault(require("../Card"));
|
|
47
47
|
|
48
48
|
var _FieldStateContext = require("../Field/FieldStateContext");
|
49
49
|
|
50
|
+
var _Satellite = require("../Satellite");
|
51
|
+
|
50
52
|
var _ScrollIndicator = _interopRequireDefault(require("../ScrollIndicator"));
|
51
53
|
|
52
54
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
53
55
|
|
54
56
|
var _Tag = _interopRequireDefault(require("../Tag"));
|
55
57
|
|
56
|
-
var _pluralize = _interopRequireDefault(require("../utils/pluralize"));
|
57
|
-
|
58
58
|
var _uniqBy = _interopRequireDefault(require("../utils/uniqBy"));
|
59
59
|
|
60
60
|
var _AutoCompleteEmptyState = _interopRequireDefault(require("./components/AutoCompleteEmptyState"));
|
@@ -67,7 +67,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
67
67
|
|
68
68
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
69
69
|
|
70
|
-
var _excluded = ["
|
70
|
+
var _excluded = ["optionItemPrefix"];
|
71
71
|
|
72
72
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
73
73
|
|
@@ -147,25 +147,18 @@ var BACKSPACE_KEY_CODE = 8;
|
|
147
147
|
|
148
148
|
/** @ignore */
|
149
149
|
var DefaultEmptyState = function DefaultEmptyState(_ref) {
|
150
|
-
var
|
151
|
-
|
152
|
-
var locale = _ref.locale;
|
150
|
+
var emptyStateTitle = _ref.emptyStateTitle;
|
153
151
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoCompleteEmptyState["default"], {
|
154
|
-
title:
|
152
|
+
title: emptyStateTitle
|
155
153
|
});
|
156
154
|
};
|
157
155
|
|
158
|
-
/** @ignore */
|
159
156
|
var DefaultOption = function DefaultOption(_ref2) {
|
160
|
-
var
|
157
|
+
var optionItemPrefix = _ref2.optionItemPrefix,
|
161
158
|
props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
|
162
159
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DefaultOptionItem["default"], _objectSpread(_objectSpread({}, props), {}, {
|
163
160
|
locale: {
|
164
|
-
optionItemPrefix:
|
165
|
-
var _locale$optionItemPre, _locale$optionItemPre2;
|
166
|
-
|
167
|
-
return (_locale$optionItemPre = locale === null || locale === void 0 ? void 0 : (_locale$optionItemPre2 = locale.optionItemPrefix) === null || _locale$optionItemPre2 === void 0 ? void 0 : _locale$optionItemPre2.call(locale, multiple)) !== null && _locale$optionItemPre !== void 0 ? _locale$optionItemPre : AutoComplete.defaultProps.locale.optionItemPrefix(multiple);
|
168
|
-
}
|
161
|
+
optionItemPrefix: optionItemPrefix !== null && optionItemPrefix !== void 0 ? optionItemPrefix : _utils.DEFAULT_AUTOCOMPLETE_LOCALE.optionItemPrefix
|
169
162
|
}
|
170
163
|
}));
|
171
164
|
};
|
@@ -366,22 +359,16 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
366
359
|
}
|
367
360
|
|
368
361
|
if (!options.resultCount) {
|
369
|
-
|
370
|
-
|
371
|
-
return (_this$props$locale$em = (_this$props$locale = _this.props.locale) === null || _this$props$locale === void 0 ? void 0 : _this$props$locale.emptyStateTitle) !== null && _this$props$locale$em !== void 0 ? _this$props$locale$em : "";
|
362
|
+
return _this.locale.emptyStateTitle;
|
372
363
|
}
|
373
364
|
|
374
365
|
if (options.resultCount > 0) {
|
375
|
-
|
376
|
-
|
377
|
-
return (_this$props$locale$it = (_this$props$locale2 = _this.props.locale) === null || _this$props$locale2 === void 0 ? void 0 : (_this$props$locale2$i = _this$props$locale2.itemsAvailable) === null || _this$props$locale2$i === void 0 ? void 0 : _this$props$locale2$i.call(_this$props$locale2, options.resultCount)) !== null && _this$props$locale$it !== void 0 ? _this$props$locale$it : "";
|
366
|
+
return _this.locale.itemsAvailable(options.resultCount);
|
378
367
|
}
|
379
368
|
|
380
369
|
return "";
|
381
370
|
});
|
382
371
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderInput", function (results, autocompleteHelpers, fieldState) {
|
383
|
-
var _this$props$locale3;
|
384
|
-
|
385
372
|
var _this$props3 = _this.props,
|
386
373
|
id = _this$props3.id,
|
387
374
|
placeholder = _this$props3.placeholder,
|
@@ -447,10 +434,10 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
447
434
|
onClick: _this.handleFakeInputClick,
|
448
435
|
ref: _this.handleInputContainerRefUpdate,
|
449
436
|
children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
450
|
-
className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["mr-4
|
437
|
+
className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["mr-4 shrink-0 ", ""])), disabled ? "text-grey-200" : inputFocused ? "text-accent-600" : "text-grey-500"),
|
451
438
|
size: "1rem"
|
452
439
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
453
|
-
className: (0,
|
440
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["flex items-center flex-1 ", " ", ""])), !noWrap && "flex-wrap", multiple && "-ml-1"), valuesClassName),
|
454
441
|
children: [multiple && Array.isArray(value) && value.map(function (option) {
|
455
442
|
return renderValueTemplate ? renderValueTemplate({
|
456
443
|
option: option,
|
@@ -471,7 +458,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
471
458
|
"data-lpignore": true
|
472
459
|
}))]
|
473
460
|
}), (showClearButton || endItem) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
474
|
-
className: (0,
|
461
|
+
className: (0, _clsx["default"])(showClearButton && endItem && (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["my-2 flex self-end space-x-4"])))),
|
475
462
|
children: [endItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
476
463
|
className: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["text-grey-700 my-auto"]))),
|
477
464
|
children: endItem
|
@@ -479,7 +466,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
479
466
|
type: "button",
|
480
467
|
className: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["w-6 flex items-center justify-center text-grey-500"]))),
|
481
468
|
onClick: _this.handleClearClick,
|
482
|
-
"aria-label":
|
469
|
+
"aria-label": _this.locale.clearInputButton,
|
483
470
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFeather.X, {
|
484
471
|
size: ".75rem"
|
485
472
|
})
|
@@ -496,7 +483,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
496
483
|
inputValue = autocompleteHelpers.inputValue,
|
497
484
|
isOpen = autocompleteHelpers.isOpen;
|
498
485
|
var defaultEmptyState = /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultEmptyState, {
|
499
|
-
|
486
|
+
emptyStateTitle: _this.locale.emptyStateTitle
|
500
487
|
});
|
501
488
|
var _this$props4 = _this.props,
|
502
489
|
menuClassName = _this$props4.menuClassName,
|
@@ -538,10 +525,8 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
538
525
|
referenceElement: (_this$inputContainerR3 = _this.inputContainerRef) !== null && _this$inputContainerR3 !== void 0 ? _this$inputContainerR3 : undefined,
|
539
526
|
modifiers: MENU_POPPER_MODFIERS,
|
540
527
|
children: function children(popper) {
|
541
|
-
var _this$props$locale4, _this$props$locale4$s;
|
542
|
-
|
543
528
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
544
|
-
className: (0,
|
529
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["z-dropdown"]))), menuClassName),
|
545
530
|
style: _objectSpread(_objectSpread({}, popper.style), dropdownStyle),
|
546
531
|
"data-popper-placement": popper.placement,
|
547
532
|
ref: popper.ref,
|
@@ -563,7 +548,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
563
548
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionItem, _objectSpread(_objectSpread({}, optionItemProps), {}, {
|
564
549
|
highlighted: index === highlightedIndex,
|
565
550
|
option: result,
|
566
|
-
|
551
|
+
optionItemPrefix: _this.locale.optionItemPrefix
|
567
552
|
}))
|
568
553
|
}), result.value);
|
569
554
|
}), extraResults > 0 && !showAllResults && /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
@@ -572,7 +557,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
572
557
|
variant: "subtle",
|
573
558
|
size: "small",
|
574
559
|
onMouseDown: _this.handleShowAllResults,
|
575
|
-
children:
|
560
|
+
children: _this.locale.showMoreButton(extraResults)
|
576
561
|
})
|
577
562
|
})]
|
578
563
|
}))
|
@@ -586,6 +571,8 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
586
571
|
});
|
587
572
|
});
|
588
573
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderSelect", function (autocompleteHelpers, fieldState) {
|
574
|
+
var _this$context$portalT;
|
575
|
+
|
589
576
|
var _this$props5 = _this.props,
|
590
577
|
className = _this$props5.className,
|
591
578
|
options = _this$props5.options,
|
@@ -603,7 +590,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
603
590
|
|
604
591
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
605
592
|
className: className,
|
606
|
-
children: [_this.renderInput(results, autocompleteHelpers, fieldState), _this.inputContainerRef && /*#__PURE__*/(0, _reactDom.createPortal)(_this.renderMenu(results, autocompleteHelpers), document.body)]
|
593
|
+
children: [_this.renderInput(results, autocompleteHelpers, fieldState), _this.inputContainerRef && /*#__PURE__*/(0, _reactDom.createPortal)(_this.renderMenu(results, autocompleteHelpers), (_this$context$portalT = _this.context["portalTarget"]) !== null && _this$context$portalT !== void 0 ? _this$context$portalT : document.body)]
|
607
594
|
});
|
608
595
|
});
|
609
596
|
return _this;
|
@@ -625,6 +612,11 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
625
612
|
});
|
626
613
|
}
|
627
614
|
}
|
615
|
+
}, {
|
616
|
+
key: "locale",
|
617
|
+
get: function get() {
|
618
|
+
return _objectSpread(_objectSpread(_objectSpread({}, _utils.DEFAULT_AUTOCOMPLETE_LOCALE), this.context["locales"]), this.props.locale);
|
619
|
+
}
|
628
620
|
}, {
|
629
621
|
key: "render",
|
630
622
|
value: function render() {
|
@@ -659,6 +651,7 @@ var AutoComplete = /*#__PURE__*/function (_Component) {
|
|
659
651
|
}(_react.Component);
|
660
652
|
|
661
653
|
exports.AutoComplete = AutoComplete;
|
654
|
+
(0, _defineProperty2["default"])(AutoComplete, "contextType", _Satellite.SatelliteContext);
|
662
655
|
(0, _defineProperty2["default"])(AutoComplete, "defaultProps", {
|
663
656
|
clearable: false,
|
664
657
|
creatable: false,
|
@@ -669,22 +662,7 @@ exports.AutoComplete = AutoComplete;
|
|
669
662
|
separatorKeyCodes: [],
|
670
663
|
separatorKeys: [],
|
671
664
|
optionItemComponent: DefaultOption,
|
672
|
-
noWrap: false
|
673
|
-
locale: {
|
674
|
-
clearInputButton: "Clear input value",
|
675
|
-
emptyStateTitle: "No matches found",
|
676
|
-
itemsAvailable: function itemsAvailable(resultCount) {
|
677
|
-
return "".concat((0, _pluralize["default"])(resultCount, "item is", {
|
678
|
-
plural: "items are"
|
679
|
-
}), " available");
|
680
|
-
},
|
681
|
-
showMoreButton: function showMoreButton(extraResults) {
|
682
|
-
return "Show ".concat((0, _pluralize["default"])(extraResults, "result"), " more");
|
683
|
-
},
|
684
|
-
optionItemPrefix: function optionItemPrefix(multiple) {
|
685
|
-
return multiple ? "Add" : "Use";
|
686
|
-
}
|
687
|
-
}
|
665
|
+
noWrap: false
|
688
666
|
});
|
689
667
|
var _default = AutoComplete;
|
690
668
|
exports["default"] = _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export = autoCompletePlugin;
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
declare const autoCompletePlugin: {
|
3
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
4
|
+
config?: import("tailwindcss").Config | undefined;
|
5
|
+
};
|
@@ -1,15 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
// @ts-check
|
4
|
+
var plugin = require("tailwindcss/plugin");
|
5
|
+
|
4
6
|
var disabledColor = require("../styles/disabledColor");
|
5
7
|
|
6
8
|
var rgba = require("../styles/rgba");
|
7
|
-
/**
|
8
|
-
* @type {import('../tailwind-types').TailwindPlugin}
|
9
|
-
*/
|
10
|
-
|
11
9
|
|
12
|
-
var autoCompletePlugin = function
|
10
|
+
var autoCompletePlugin = plugin(function (_ref) {
|
13
11
|
var addComponents = _ref.addComponents,
|
14
12
|
theme = _ref.theme;
|
15
13
|
addComponents({
|
@@ -32,14 +30,14 @@ var autoCompletePlugin = function autoCompletePlugin(_ref) {
|
|
32
30
|
"&::after": {
|
33
31
|
content: '" "',
|
34
32
|
display: "block",
|
35
|
-
minHeight:
|
33
|
+
minHeight: "30px",
|
36
34
|
// don't ask me why 30
|
37
|
-
fontSize:
|
35
|
+
fontSize: "0px"
|
38
36
|
},
|
39
37
|
"&.autocomplete-large": {
|
40
38
|
minHeight: "3rem",
|
41
39
|
"&::after": {
|
42
|
-
minHeight:
|
40
|
+
minHeight: "38px" // don't ask me why 38
|
43
41
|
|
44
42
|
}
|
45
43
|
}
|
@@ -69,12 +67,12 @@ var autoCompletePlugin = function autoCompletePlugin(_ref) {
|
|
69
67
|
scrollbarWidth: "none",
|
70
68
|
msOverflowStyle: "-ms-autohiding-scrollbar",
|
71
69
|
"&::-webkit-scrollbar": {
|
72
|
-
width:
|
73
|
-
height:
|
70
|
+
width: "0px",
|
71
|
+
height: "0px"
|
74
72
|
}
|
75
73
|
},
|
76
74
|
".autocomplete-input": {
|
77
|
-
flex: 1,
|
75
|
+
flex: "1",
|
78
76
|
backgroundColor: "transparent",
|
79
77
|
caretColor: theme("colors.grey.600"),
|
80
78
|
color: theme("colors.grey.900"),
|
@@ -94,6 +92,5 @@ var autoCompletePlugin = function autoCompletePlugin(_ref) {
|
|
94
92
|
}
|
95
93
|
}
|
96
94
|
});
|
97
|
-
};
|
98
|
-
|
95
|
+
});
|
99
96
|
module.exports = autoCompletePlugin;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import type { AutoCompleteMultiProps, AutoCompleteProps, Option } from "./types";
|
1
|
+
import type { AutoCompleteLocale, AutoCompleteMultiProps, AutoCompleteProps, Option } from "./types";
|
2
2
|
export declare function isAutoCompleteMultiProps<T extends Option = Option>(props: AutoCompleteProps<T>): props is AutoCompleteMultiProps<T>;
|
3
3
|
export declare const defaultCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
4
4
|
export declare const caseInsensitiveCreateFromInputValue: <T extends Option = Option>(options: T[] | undefined, inputValue: string) => Option[];
|
5
|
+
export declare const DEFAULT_AUTOCOMPLETE_LOCALE: Required<AutoCompleteLocale>;
|
@@ -1,11 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
4
6
|
value: true
|
5
7
|
});
|
6
|
-
exports.defaultCreateFromInputValue = exports.caseInsensitiveCreateFromInputValue = void 0;
|
8
|
+
exports.defaultCreateFromInputValue = exports.caseInsensitiveCreateFromInputValue = exports.DEFAULT_AUTOCOMPLETE_LOCALE = void 0;
|
7
9
|
exports.isAutoCompleteMultiProps = isAutoCompleteMultiProps;
|
8
10
|
|
11
|
+
var _pluralize = _interopRequireDefault(require("../utils/pluralize"));
|
12
|
+
|
9
13
|
function isAutoCompleteMultiProps(props) {
|
10
14
|
return Boolean(props.multiple);
|
11
15
|
}
|
@@ -37,4 +41,20 @@ var caseInsensitiveCreateFromInputValue = function caseInsensitiveCreateFromInpu
|
|
37
41
|
});
|
38
42
|
};
|
39
43
|
|
40
|
-
exports.caseInsensitiveCreateFromInputValue = caseInsensitiveCreateFromInputValue;
|
44
|
+
exports.caseInsensitiveCreateFromInputValue = caseInsensitiveCreateFromInputValue;
|
45
|
+
var DEFAULT_AUTOCOMPLETE_LOCALE = {
|
46
|
+
clearInputButton: "Clear input value",
|
47
|
+
emptyStateTitle: "No matches found",
|
48
|
+
itemsAvailable: function itemsAvailable(count) {
|
49
|
+
return "".concat((0, _pluralize["default"])(count, "item is", {
|
50
|
+
plural: "items are"
|
51
|
+
}), " available");
|
52
|
+
},
|
53
|
+
optionItemPrefix: function optionItemPrefix(multiple) {
|
54
|
+
return multiple ? "Add" : "Use";
|
55
|
+
},
|
56
|
+
showMoreButton: function showMoreButton(extraResults) {
|
57
|
+
return "Show ".concat((0, _pluralize["default"])(extraResults, "result"), " more");
|
58
|
+
}
|
59
|
+
};
|
60
|
+
exports.DEFAULT_AUTOCOMPLETE_LOCALE = DEFAULT_AUTOCOMPLETE_LOCALE;
|
@@ -9,7 +9,7 @@ exports["default"] = exports.ApplicationAvatar = void 0;
|
|
9
9
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
13
13
|
|
14
14
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
15
15
|
|
@@ -31,7 +31,7 @@ var ApplicationAvatar = function ApplicationAvatar(_ref) {
|
|
31
31
|
_ref$size = _ref.size,
|
32
32
|
size = _ref$size === void 0 ? "medium" : _ref$size;
|
33
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
34
|
-
className: (0,
|
34
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["rounded inline-flex shrink-0 items-center justify-center uppercase"]))), (0, _utils.pickApplicationColors)(application.applicationId), SIZE_CLASSNAMES[size], className),
|
35
35
|
style: size === "small" ? {
|
36
36
|
fontSize: "8px"
|
37
37
|
} : {},
|
@@ -11,7 +11,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
11
11
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
15
15
|
|
16
16
|
var _react = require("react");
|
17
17
|
|
@@ -42,7 +42,7 @@ var UserAvatar = function UserAvatar(_ref) {
|
|
42
42
|
return setImageLoaded(false);
|
43
43
|
}, [user.avatar]);
|
44
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
45
|
-
className: (0,
|
45
|
+
className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative overflow-hidden flex justify-center items-center rounded-full text-white uppercase transition-colors"]))), imageLoaded ? (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-white"]))) : (0, _utils.getUserBackgroundClassName)((_user$email = user.email) !== null && _user$email !== void 0 ? _user$email : "no-email"), className),
|
46
46
|
style: {
|
47
47
|
width: size,
|
48
48
|
height: size
|
package/cjs/Avatars/utils.js
CHANGED
@@ -18,8 +18,12 @@ var _hashCode = _interopRequireDefault(require("../utils/hashCode"));
|
|
18
18
|
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;
|
19
19
|
|
20
20
|
/** APPLICATION */
|
21
|
-
var APPLICATION_COLORS_CLASSNAMES = [
|
22
|
-
|
21
|
+
var APPLICATION_COLORS_CLASSNAMES = [
|
22
|
+
/* eslint-disable @algolia/satellite/prefer-accent */
|
23
|
+
(0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-grey-200 text-grey-800"]))), (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-200 text-nebula-800"]))), (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-200 text-blue-800"]))), (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-200 text-green-800"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-200 text-pink-800"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-200 text-red-800"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-200 text-orange-800"]))), // Darker variants
|
24
|
+
(0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-300 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-300 text-nebula-900"]))), (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-300 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["bg-green-300 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-300 text-pink-900"]))), (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["bg-red-300 text-red-900"]))), (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-300 text-orange-900"])))
|
25
|
+
/* eslint-enable @algolia/satellite/prefer-accent */
|
26
|
+
];
|
23
27
|
|
24
28
|
var pickApplicationColors = function pickApplicationColors(applicationId) {
|
25
29
|
var _APPLICATION_COLORS_C;
|
@@ -59,8 +63,12 @@ var getApplicationInitials = function getApplicationInitials(_ref) {
|
|
59
63
|
|
60
64
|
|
61
65
|
exports.getApplicationInitials = getApplicationInitials;
|
62
|
-
var USER_COLORS_CLASSNAMES = [
|
63
|
-
|
66
|
+
var USER_COLORS_CLASSNAMES = [
|
67
|
+
/* eslint-disable @algolia/satellite/prefer-accent */
|
68
|
+
(0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-400"]))), (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-400"]))), (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-400"]))), (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["bg-green-400"]))), (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-400"]))), (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["bg-red-400"]))), (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-400"]))), // Darker variants
|
69
|
+
(0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-700"]))), (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-700"]))), (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-700"]))), (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-green-700"]))), (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-700"]))), (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["bg-red-700"]))), (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-700"])))
|
70
|
+
/* eslint-enable @algolia/satellite/prefer-accent */
|
71
|
+
];
|
64
72
|
|
65
73
|
var getUserBackgroundClassName = function getUserBackgroundClassName(email) {
|
66
74
|
var _USER_COLORS_CLASSNAM;
|