@algolia/satellite 1.0.0-beta.17 → 1.0.0-beta.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +154 -8
- package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +51 -0
- package/cjs/AnnouncementBadge/index.d.ts +2 -0
- package/cjs/AnnouncementBadge/index.js +27 -0
- package/cjs/AutoComplete/AutoComplete.d.ts +20 -0
- package/cjs/AutoComplete/AutoComplete.js +455 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/cjs/AutoComplete/AutoComplete.tailwind.js +96 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +35 -0
- package/cjs/AutoComplete/components/AutocompleteContext.d.ts +5 -0
- package/cjs/AutoComplete/components/AutocompleteContext.js +19 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/cjs/AutoComplete/components/DefaultOptionItem.js +36 -0
- package/cjs/AutoComplete/index.d.ts +7 -0
- package/cjs/AutoComplete/index.js +84 -0
- package/cjs/AutoComplete/types.d.ts +95 -0
- package/cjs/AutoComplete/types.js +5 -0
- package/cjs/AutoComplete/utils.d.ts +8 -0
- package/cjs/AutoComplete/utils.js +82 -0
- package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
- package/cjs/Avatars/ApplicationAvatar.js +34 -0
- package/cjs/Avatars/UserAvatar.d.ts +20 -0
- package/cjs/Avatars/UserAvatar.js +55 -0
- package/cjs/Avatars/index.d.ts +3 -0
- package/cjs/Avatars/index.js +39 -0
- package/cjs/Avatars/types.d.ts +17 -0
- package/cjs/Avatars/types.js +5 -0
- package/cjs/Avatars/utils.d.ts +6 -0
- package/cjs/Avatars/utils.js +55 -0
- package/cjs/Badge/Badge.d.ts +33 -0
- package/cjs/Badge/Badge.js +79 -0
- package/cjs/Badge/index.d.ts +2 -0
- package/cjs/Badge/index.js +27 -0
- package/cjs/Banners/Alert/Alert.d.ts +78 -0
- package/cjs/Banners/Alert/Alert.js +139 -0
- package/cjs/Banners/Alert/index.js +27 -0
- package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/cjs/Banners/BigBertha/BigBertha.js +61 -0
- package/cjs/Banners/BigBertha/index.d.ts +2 -0
- package/cjs/Banners/BigBertha/index.js +27 -0
- package/cjs/Banners/Promote/Promote.d.ts +51 -0
- package/cjs/Banners/Promote/Promote.js +103 -0
- package/cjs/Banners/Promote/index.d.ts +2 -0
- package/cjs/Banners/Promote/index.js +27 -0
- package/cjs/Banners/index.d.ts +3 -0
- package/cjs/Banners/index.js +38 -0
- package/cjs/Button/Button.d.ts +19 -0
- package/cjs/Button/Button.js +35 -0
- package/cjs/Button/Button.tailwind.d.ts +5 -0
- package/cjs/Button/Button.tailwind.js +153 -0
- package/cjs/Button/ButtonGroup.d.ts +18 -0
- package/cjs/Button/ButtonGroup.js +28 -0
- package/cjs/Button/IconButton.d.ts +10 -0
- package/cjs/Button/IconButton.js +26 -0
- package/cjs/Button/PolymorphicButton.d.ts +12 -0
- package/cjs/Button/PolymorphicButton.js +78 -0
- package/cjs/Button/PolymorphicIconButton.d.ts +29 -0
- package/cjs/Button/PolymorphicIconButton.js +86 -0
- package/cjs/Button/index.d.ts +5 -0
- package/cjs/Button/index.js +51 -0
- package/cjs/Button/styles.d.ts +5 -0
- package/cjs/Button/styles.js +37 -0
- package/cjs/Button/types.d.ts +33 -0
- package/cjs/Button/types.js +11 -0
- package/cjs/Card/Card.d.ts +32 -0
- package/cjs/Card/Card.js +44 -0
- package/cjs/Card/Card.tailwind.d.ts +5 -0
- package/cjs/Card/Card.tailwind.js +36 -0
- package/cjs/Card/components/CardHeader.d.ts +6 -0
- package/cjs/Card/components/CardHeader.js +27 -0
- package/cjs/Card/components/CardTitle.d.ts +6 -0
- package/cjs/Card/components/CardTitle.js +27 -0
- package/cjs/Card/index.d.ts +4 -0
- package/cjs/Card/index.js +51 -0
- package/cjs/Checkbox/Checkbox.d.ts +24 -0
- package/cjs/Checkbox/Checkbox.js +98 -0
- package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/cjs/Checkbox/Checkbox.tailwind.js +70 -0
- package/cjs/Checkbox/index.js +27 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +83 -0
- package/cjs/ClickAwayContainer/index.d.ts +1 -0
- package/cjs/ClickAwayContainer/index.js +16 -0
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/cjs/DatePicker/DatePicker/DatePicker.js +164 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +50 -0
- package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/DatePicker/index.js +39 -0
- package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/cjs/DatePicker/DatePicker.tailwind.js +184 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +35 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +256 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +38 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +99 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +15 -0
- package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/cjs/DatePicker/DateRangePicker/index.js +51 -0
- package/cjs/DatePicker/components/Calendar.d.ts +17 -0
- package/cjs/DatePicker/components/Calendar.js +55 -0
- package/cjs/DatePicker/components/Display.d.ts +10 -0
- package/cjs/DatePicker/components/Display.js +24 -0
- package/cjs/DatePicker/components/Footer.d.ts +6 -0
- package/cjs/DatePicker/components/Footer.js +19 -0
- package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
- package/cjs/DatePicker/components/FooterActions.js +32 -0
- package/cjs/DatePicker/components/Modal.d.ts +16 -0
- package/cjs/DatePicker/components/Modal.js +67 -0
- package/cjs/DatePicker/components/NavBar.d.ts +10 -0
- package/cjs/DatePicker/components/NavBar.js +123 -0
- package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
- package/cjs/DatePicker/components/SidePanel.js +22 -0
- package/cjs/DatePicker/components/index.d.ts +12 -0
- package/cjs/DatePicker/components/index.js +48 -0
- package/cjs/DatePicker/index.d.ts +3 -0
- package/cjs/DatePicker/index.js +38 -0
- package/cjs/DatePicker/types.d.ts +26 -0
- package/cjs/DatePicker/types.js +5 -0
- package/cjs/DatePicker/utils.d.ts +3 -0
- package/cjs/DatePicker/utils.js +19 -0
- package/cjs/Dropdown/Dropdown.d.ts +49 -0
- package/cjs/Dropdown/Dropdown.js +133 -0
- package/cjs/Dropdown/DropdownButton.d.ts +11 -0
- package/cjs/Dropdown/DropdownButton.js +47 -0
- package/cjs/Dropdown/DropdownContext.d.ts +7 -0
- package/cjs/Dropdown/DropdownContext.js +16 -0
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +14 -0
- package/cjs/Dropdown/components/DropdownButtonItem.js +44 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +59 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +20 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +15 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +36 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +33 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +63 -0
- package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/cjs/Dropdown/components/DropdownDivider.js +17 -0
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +8 -0
- package/cjs/Dropdown/components/DropdownFooterItem.js +29 -0
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +10 -0
- package/cjs/Dropdown/components/DropdownLinkItem.js +52 -0
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +8 -0
- package/cjs/Dropdown/components/DropdownRadioItem.js +43 -0
- package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/cjs/Dropdown/components/DropdownTitle.js +25 -0
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +11 -0
- package/cjs/Dropdown/components/DropdownToggleItem.js +46 -0
- package/cjs/Dropdown/index.d.ts +13 -0
- package/cjs/Dropdown/index.js +159 -0
- package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/cjs/Dropdown/useDropdownItemProps.js +38 -0
- package/cjs/Dropzone/Dropzone.d.ts +21 -0
- package/cjs/Dropzone/Dropzone.js +158 -0
- package/cjs/Dropzone/index.d.ts +2 -0
- package/cjs/Dropzone/index.js +27 -0
- package/cjs/EmptyState/EmptyState.d.ts +28 -0
- package/cjs/EmptyState/EmptyState.js +123 -0
- package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/cjs/EmptyState/EmptyState.tailwind.js +15 -0
- package/cjs/EmptyState/index.d.ts +3 -0
- package/cjs/EmptyState/index.js +39 -0
- package/cjs/EmptyState/types.d.ts +50 -0
- package/cjs/EmptyState/types.js +5 -0
- package/cjs/Field/Field.d.ts +54 -0
- package/cjs/Field/Field.js +104 -0
- package/cjs/Field/FieldContext.d.ts +16 -0
- package/cjs/Field/FieldContext.js +14 -0
- package/cjs/Field/index.d.ts +5 -0
- package/cjs/Field/index.js +48 -0
- package/cjs/Field/useField.d.ts +2 -0
- package/cjs/Field/useField.js +11 -0
- package/cjs/Flag/Flag.d.ts +6 -0
- package/cjs/Flag/Flag.js +116 -0
- package/cjs/Flag/Flag.tailwind.d.ts +5 -0
- package/cjs/Flag/Flag.tailwind.js +34 -0
- package/cjs/Flag/Flags.d.ts +48 -0
- package/cjs/Flag/Flags.js +90 -0
- package/cjs/Flag/index.d.ts +4 -0
- package/cjs/Flag/index.js +51 -0
- package/cjs/Flag/types.d.ts +27 -0
- package/cjs/Flag/types.js +5 -0
- package/cjs/FlexGrid/FlexGrid.d.ts +40 -0
- package/cjs/FlexGrid/FlexGrid.js +68 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/cjs/FlexGrid/FlexGrid.tailwind.js +71 -0
- package/cjs/FlexGrid/index.d.ts +2 -0
- package/cjs/FlexGrid/index.js +27 -0
- package/cjs/HelpUnderline/HelpUnderline.d.ts +11 -0
- package/cjs/HelpUnderline/HelpUnderline.js +35 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/cjs/HelpUnderline/HelpUnderline.tailwind.js +21 -0
- package/cjs/HelpUnderline/index.js +27 -0
- package/cjs/Input/Input.d.ts +30 -0
- package/cjs/Input/Input.js +215 -0
- package/cjs/Input/Input.tailwind.d.ts +5 -0
- package/cjs/Input/Input.tailwind.js +123 -0
- package/cjs/Input/index.js +27 -0
- package/cjs/Insert/Insert.d.ts +45 -0
- package/cjs/Insert/Insert.js +77 -0
- package/cjs/Insert/index.d.ts +2 -0
- package/cjs/Insert/index.js +27 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/cjs/InstantSearch/InstantSearch.tailwind.js +376 -0
- package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/cjs/KeyboardKey/KeyboardKey.js +36 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/cjs/KeyboardKey/KeyboardKey.tailwind.js +29 -0
- package/cjs/KeyboardKey/index.d.ts +2 -0
- package/{components/Input → cjs/KeyboardKey}/index.js +5 -8
- package/cjs/Link/BaseLink.d.ts +8 -0
- package/cjs/Link/BaseLink.js +29 -0
- package/cjs/Link/ButtonLink.d.ts +9 -0
- package/cjs/Link/ButtonLink.js +37 -0
- package/cjs/Link/IconButtonLink.d.ts +9 -0
- package/cjs/Link/IconButtonLink.js +31 -0
- package/cjs/Link/Link.d.ts +13 -0
- package/cjs/Link/Link.js +52 -0
- package/cjs/Link/index.d.ts +5 -0
- package/cjs/Link/index.js +63 -0
- package/cjs/Medallion/Medallion.d.ts +12 -0
- package/cjs/Medallion/Medallion.js +39 -0
- package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
- package/cjs/Medallion/Medallion.tailwind.js +31 -0
- package/cjs/Medallion/index.d.ts +3 -0
- package/cjs/Medallion/index.js +39 -0
- package/cjs/Medallion/types.d.ts +2 -0
- package/cjs/Medallion/types.js +5 -0
- package/cjs/Modal/Modal.d.ts +56 -0
- package/cjs/Modal/Modal.js +149 -0
- package/cjs/Modal/Modal.tailwind.d.ts +5 -0
- package/cjs/Modal/Modal.tailwind.js +81 -0
- package/cjs/Modal/components/ModalFooter.d.ts +6 -0
- package/cjs/Modal/components/ModalFooter.js +32 -0
- package/cjs/Modal/components/ModalSection.d.ts +10 -0
- package/cjs/Modal/components/ModalSection.js +23 -0
- package/cjs/Modal/index.d.ts +4 -0
- package/cjs/Modal/index.js +51 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/cjs/Pagination/CompactPagination/CompactPagination.js +82 -0
- package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
- package/cjs/Pagination/CompactPagination/index.js +27 -0
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +15 -0
- package/cjs/Pagination/DotPagination/DotPagination.js +46 -0
- package/cjs/Pagination/DotPagination/index.d.ts +2 -0
- package/cjs/Pagination/DotPagination/index.js +27 -0
- package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
- package/cjs/Pagination/Pagination/Pagination.js +122 -0
- package/cjs/Pagination/Pagination/index.js +27 -0
- package/cjs/Pagination/index.d.ts +4 -0
- package/cjs/Pagination/index.js +51 -0
- package/cjs/Popover/Popover.d.ts +5 -0
- package/cjs/Popover/Popover.js +137 -0
- package/cjs/Popover/index.d.ts +3 -0
- package/cjs/Popover/index.js +36 -0
- package/cjs/Popover/types.d.ts +74 -0
- package/cjs/Popover/types.js +5 -0
- package/cjs/ProgressBar/ProgressBar.d.ts +16 -0
- package/cjs/ProgressBar/ProgressBar.js +57 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/cjs/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/cjs/ProgressBar/index.d.ts +2 -0
- package/cjs/ProgressBar/index.js +27 -0
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/cjs/ProgressSpinner/ProgressSpinner.js +52 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +44 -0
- package/cjs/ProgressSpinner/index.d.ts +2 -0
- package/cjs/ProgressSpinner/index.js +27 -0
- package/cjs/RadioGroup/RadioButton.d.ts +4 -0
- package/cjs/RadioGroup/RadioButton.js +29 -0
- package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/cjs/RadioGroup/RadioButton.tailwind.js +61 -0
- package/cjs/RadioGroup/RadioGroup.d.ts +41 -0
- package/cjs/RadioGroup/RadioGroup.js +103 -0
- package/cjs/RadioGroup/RadiogroupContext.d.ts +11 -0
- package/cjs/RadioGroup/RadiogroupContext.js +15 -0
- package/cjs/RadioGroup/index.d.ts +4 -0
- package/cjs/RadioGroup/index.js +51 -0
- package/cjs/RangeSlider/RangeSlider.d.ts +38 -0
- package/cjs/RangeSlider/RangeSlider.js +105 -0
- package/cjs/RangeSlider/index.d.ts +2 -0
- package/cjs/RangeSlider/index.js +27 -0
- package/cjs/Satellite/Satellite.d.ts +11 -0
- package/cjs/Satellite/Satellite.js +61 -0
- package/cjs/Satellite/SatelliteContext.d.ts +11 -0
- package/cjs/Satellite/SatelliteContext.js +23 -0
- package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
- package/cjs/Satellite/SatelliteRouter.js +47 -0
- package/cjs/Satellite/index.d.ts +6 -0
- package/cjs/Satellite/index.js +75 -0
- package/cjs/Satellite/locale.d.ts +33 -0
- package/cjs/Satellite/locale.js +14 -0
- package/cjs/Satellite/useCreatePortal.d.ts +4 -0
- package/cjs/Satellite/useCreatePortal.js +23 -0
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/cjs/ScrollIndicator/ScrollIndicator.js +86 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/cjs/ScrollIndicator/index.d.ts +2 -0
- package/cjs/ScrollIndicator/index.js +27 -0
- package/cjs/Select/Select.d.ts +15 -0
- package/cjs/Select/Select.js +44 -0
- package/cjs/Select/Select.tailwind.d.ts +5 -0
- package/cjs/Select/Select.tailwind.js +76 -0
- package/cjs/Select/index.js +27 -0
- package/cjs/Separator/Separator.d.ts +9 -0
- package/cjs/Separator/Separator.js +39 -0
- package/cjs/Separator/Separator.tailwind.d.ts +5 -0
- package/cjs/Separator/Separator.tailwind.js +54 -0
- package/cjs/Separator/index.d.ts +2 -0
- package/cjs/Separator/index.js +27 -0
- package/cjs/Sidebar/Sidebar.d.ts +36 -0
- package/cjs/Sidebar/Sidebar.js +61 -0
- package/cjs/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/cjs/Sidebar/SidebarButtonLink.js +84 -0
- package/cjs/Sidebar/SidebarContext.d.ts +9 -0
- package/cjs/Sidebar/SidebarContext.js +15 -0
- package/cjs/Sidebar/SidebarHeader.d.ts +7 -0
- package/cjs/Sidebar/SidebarHeader.js +20 -0
- package/cjs/Sidebar/SidebarHeading.d.ts +8 -0
- package/cjs/Sidebar/SidebarHeading.js +25 -0
- package/cjs/Sidebar/SidebarLink.d.ts +9 -0
- package/cjs/Sidebar/SidebarLink.js +50 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +9 -0
- package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +37 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +36 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +24 -0
- package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +97 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/cjs/Sidebar/SidebarLinksGroup/index.js +16 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
- package/cjs/Sidebar/SidebarNav.d.ts +11 -0
- package/cjs/Sidebar/SidebarNav.js +36 -0
- package/cjs/Sidebar/index.d.ts +9 -0
- package/cjs/Sidebar/index.js +111 -0
- package/cjs/Sidebar/types.d.ts +6 -0
- package/cjs/Sidebar/types.js +5 -0
- package/cjs/Switch/Switch.d.ts +14 -0
- package/cjs/Switch/Switch.js +86 -0
- package/cjs/Switch/Switch.tailwind.d.ts +5 -0
- package/cjs/Switch/Switch.tailwind.js +25 -0
- package/cjs/Switch/SwitchOption.d.ts +8 -0
- package/cjs/Switch/SwitchOption.js +45 -0
- package/cjs/Switch/index.d.ts +3 -0
- package/cjs/Switch/index.js +39 -0
- package/cjs/Switch/types.d.ts +7 -0
- package/cjs/Switch/types.js +5 -0
- package/cjs/Switch/utils.d.ts +6 -0
- package/cjs/Switch/utils.js +18 -0
- package/cjs/Tables/DataTable/DataTable.d.ts +69 -0
- package/cjs/Tables/DataTable/DataTable.js +264 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
- package/cjs/Tables/DataTable/components/Body.d.ts +15 -0
- package/cjs/Tables/DataTable/components/Body.js +119 -0
- package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
- package/cjs/Tables/DataTable/components/Footer.js +63 -0
- package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
- package/cjs/Tables/DataTable/components/Header.js +39 -0
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/cjs/Tables/DataTable/components/HeaderCell.js +58 -0
- package/cjs/Tables/DataTable/components/Loader.d.ts +9 -0
- package/cjs/Tables/DataTable/components/Loader.js +47 -0
- package/cjs/Tables/DataTable/components/index.d.ts +5 -0
- package/cjs/Tables/DataTable/components/index.js +60 -0
- package/cjs/Tables/DataTable/index.d.ts +3 -0
- package/cjs/Tables/DataTable/index.js +39 -0
- package/cjs/Tables/DataTable/types.d.ts +63 -0
- package/cjs/Tables/DataTable/types.js +5 -0
- package/cjs/Tables/DataTable/utils.d.ts +4 -0
- package/cjs/Tables/DataTable/utils.js +20 -0
- package/cjs/Tables/Table/Table.d.ts +28 -0
- package/cjs/Tables/Table/Table.js +60 -0
- package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
- package/cjs/Tables/Table/Table.tailwind.js +39 -0
- package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
- package/cjs/Tables/Table/components/TableFooter.js +26 -0
- package/cjs/Tables/Table/index.d.ts +3 -0
- package/cjs/Tables/Table/index.js +39 -0
- package/cjs/Tables/index.d.ts +3 -0
- package/cjs/Tables/index.js +39 -0
- package/cjs/Tabs/ContentTabs.d.ts +4 -0
- package/cjs/Tabs/ContentTabs.js +60 -0
- package/cjs/Tabs/LinkTabs.d.ts +33 -0
- package/cjs/Tabs/LinkTabs.js +75 -0
- package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
- package/cjs/Tabs/Tabs.tailwind.js +72 -0
- package/cjs/Tabs/components/LinkTab.d.ts +9 -0
- package/cjs/Tabs/components/LinkTab.js +84 -0
- package/cjs/Tabs/index.d.ts +4 -0
- package/cjs/Tabs/index.js +51 -0
- package/cjs/Tabs/types.d.ts +34 -0
- package/cjs/Tabs/types.js +5 -0
- package/cjs/Tabs/utils.d.ts +2 -0
- package/cjs/Tabs/utils.js +18 -0
- package/cjs/Tag/Tag.d.ts +48 -0
- package/cjs/Tag/Tag.js +139 -0
- package/cjs/Tag/Tag.tailwind.d.ts +5 -0
- package/cjs/Tag/Tag.tailwind.js +54 -0
- package/cjs/Tag/index.d.ts +2 -0
- package/cjs/Tag/index.js +27 -0
- package/cjs/TextArea/TextArea.d.ts +5 -0
- package/cjs/TextArea/TextArea.js +28 -0
- package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
- package/cjs/TextArea/TextArea.tailwind.js +42 -0
- package/cjs/TextArea/index.js +27 -0
- package/cjs/TextWrap/TextWrap.d.ts +8 -0
- package/cjs/TextWrap/TextWrap.js +53 -0
- package/cjs/TextWrap/index.d.ts +2 -0
- package/cjs/TextWrap/index.js +27 -0
- package/cjs/Toggle/Toggle.d.ts +14 -0
- package/cjs/Toggle/Toggle.js +75 -0
- package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
- package/cjs/Toggle/Toggle.tailwind.js +84 -0
- package/cjs/Toggle/index.d.ts +2 -0
- package/cjs/Toggle/index.js +27 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/cjs/Tooltip/OverflowTooltipWrapper.js +46 -0
- package/cjs/Tooltip/Tooltip.d.ts +24 -0
- package/cjs/Tooltip/Tooltip.js +52 -0
- package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/cjs/Tooltip/Tooltip.tailwind.js +47 -0
- package/cjs/Tooltip/TooltipWrapper.d.ts +14 -0
- package/cjs/Tooltip/TooltipWrapper.js +82 -0
- package/{components → cjs}/Tooltip/index.d.ts +1 -0
- package/cjs/Tooltip/index.js +51 -0
- package/cjs/Tooltip/types.d.ts +65 -0
- package/cjs/Tooltip/types.js +5 -0
- package/cjs/Tooltip/utils.d.ts +1 -0
- package/cjs/Tooltip/utils.js +9 -0
- package/cjs/Typography/Typography.tailwind.d.ts +5 -0
- package/cjs/Typography/Typography.tailwind.js +170 -0
- package/cjs/UserContent/UserContent.d.ts +9 -0
- package/cjs/UserContent/UserContent.js +26 -0
- package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
- package/cjs/UserContent/UserContent.tailwind.js +141 -0
- package/cjs/index.d.ts +49 -0
- package/cjs/index.js +580 -0
- package/cjs/package.json +3 -0
- package/cjs/styles/base.tailwind.d.ts +5 -0
- package/cjs/styles/base.tailwind.js +46 -0
- package/cjs/styles/brandColors.d.ts +42 -0
- package/cjs/styles/brandColors.js +48 -0
- package/cjs/styles/colors.d.ts +110 -0
- package/cjs/styles/colors.js +116 -0
- package/cjs/styles/disabledColor.d.ts +6 -0
- package/cjs/styles/disabledColor.js +14 -0
- package/cjs/styles/helpers/icons.d.ts +15 -0
- package/cjs/styles/helpers/icons.js +39 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/cjs/styles/helpers/makePurgeCssExtractor.js +50 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/cjs/styles/helpers/makeTailwindPrefixer.js +36 -0
- package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
- package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/cjs/styles/helpers/satellitePrefixer.js +8 -0
- package/cjs/styles/rgba.d.ts +8 -0
- package/cjs/styles/rgba.js +15 -0
- package/cjs/styles/tailwind.config.d.ts +2 -0
- package/cjs/styles/tailwind.config.js +146 -0
- package/cjs/styles/zIndexes.d.ts +8 -0
- package/cjs/styles/zIndexes.js +15 -0
- package/cjs/types.d.ts +27 -0
- package/cjs/types.js +5 -0
- package/cjs/utilities/overlay.tailwind.d.ts +5 -0
- package/cjs/utilities/overlay.tailwind.js +107 -0
- package/cjs/utilities/utilities.tailwind.d.ts +5 -0
- package/cjs/utilities/utilities.tailwind.js +27 -0
- package/cjs/utils/NumberUnion.d.ts +5 -0
- package/cjs/utils/NumberUnion.js +5 -0
- package/cjs/utils/clamp.d.ts +1 -0
- package/cjs/utils/clamp.js +9 -0
- package/cjs/utils/event-polyfill.d.ts +0 -0
- package/cjs/utils/event-polyfill.js +25 -0
- package/cjs/utils/formatters.d.ts +25 -0
- package/cjs/utils/formatters.js +44 -0
- package/cjs/utils/genericChangeHandler.d.ts +5 -0
- package/{utils → cjs/utils}/genericChangeHandler.js +2 -9
- package/cjs/utils/hashCode.d.ts +2 -0
- package/cjs/utils/hashCode.js +21 -0
- package/cjs/utils/index.d.ts +7 -0
- package/{utils → cjs/utils}/index.js +11 -18
- package/cjs/utils/isCssPropertySupported.d.ts +2 -0
- package/cjs/utils/isCssPropertySupported.js +15 -0
- package/cjs/utils/isNil.d.ts +19 -0
- package/cjs/utils/isNil.js +27 -0
- package/cjs/utils/isReactText.d.ts +2 -0
- package/cjs/utils/isReactText.js +9 -0
- package/cjs/utils/isRenderedChild.d.ts +8 -0
- package/cjs/utils/isRenderedChild.js +15 -0
- package/cjs/utils/matchLocation.d.ts +3 -0
- package/cjs/utils/matchLocation.js +12 -0
- package/cjs/utils/onlyText.d.ts +3 -0
- package/cjs/utils/onlyText.js +39 -0
- package/cjs/utils/parseUrl.d.ts +11 -0
- package/cjs/utils/parseUrl.js +21 -0
- package/{utils → cjs/utils}/pluralize.js +8 -9
- package/cjs/utils/prefersReducedMotion.d.ts +6 -0
- package/cjs/utils/prefersReducedMotion.js +13 -0
- package/{utils → cjs/utils}/range.js +2 -5
- package/cjs/utils/toSentenceCase.d.ts +3 -0
- package/cjs/utils/toSentenceCase.js +15 -0
- package/{utils → cjs/utils}/uniqBy.js +2 -7
- package/{utils → cjs/utils}/uniqueId.js +2 -5
- package/cjs/utils/useForwardedRef.d.ts +3 -0
- package/cjs/utils/useForwardedRef.js +24 -0
- package/cjs/utils/useLinkProps.d.ts +7 -0
- package/cjs/utils/useLinkProps.js +53 -0
- package/cjs/utils/useTriggerInputChange.d.ts +8 -0
- package/cjs/utils/useTriggerInputChange.js +27 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +21 -0
- package/esm/AnnouncementBadge/AnnouncementBadge.js +44 -0
- package/esm/AnnouncementBadge/index.d.ts +2 -0
- package/esm/AnnouncementBadge/index.js +2 -0
- package/esm/AutoComplete/AutoComplete.d.ts +20 -0
- package/esm/AutoComplete/AutoComplete.js +450 -0
- package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
- package/esm/AutoComplete/AutoComplete.tailwind.js +97 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +29 -0
- package/esm/AutoComplete/components/AutocompleteContext.d.ts +5 -0
- package/esm/AutoComplete/components/AutocompleteContext.js +13 -0
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
- package/esm/AutoComplete/components/DefaultOptionItem.js +30 -0
- package/esm/AutoComplete/index.d.ts +7 -0
- package/esm/AutoComplete/index.js +7 -0
- package/esm/AutoComplete/types.d.ts +95 -0
- package/esm/AutoComplete/types.js +1 -0
- package/esm/AutoComplete/utils.d.ts +8 -0
- package/esm/AutoComplete/utils.js +71 -0
- package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
- package/esm/Avatars/ApplicationAvatar.js +27 -0
- package/esm/Avatars/UserAvatar.d.ts +20 -0
- package/esm/Avatars/UserAvatar.js +49 -0
- package/esm/Avatars/index.d.ts +3 -0
- package/esm/Avatars/index.js +3 -0
- package/esm/Avatars/types.d.ts +17 -0
- package/esm/Avatars/types.js +1 -0
- package/esm/Avatars/utils.d.ts +6 -0
- package/esm/Avatars/utils.js +48 -0
- package/esm/Badge/Badge.d.ts +33 -0
- package/esm/Badge/Badge.js +73 -0
- package/esm/Badge/index.d.ts +2 -0
- package/esm/Badge/index.js +2 -0
- package/esm/Banners/Alert/Alert.d.ts +78 -0
- package/esm/Banners/Alert/Alert.js +133 -0
- package/esm/Banners/Alert/index.d.ts +2 -0
- package/esm/Banners/Alert/index.js +2 -0
- package/esm/Banners/BigBertha/BigBertha.d.ts +41 -0
- package/esm/Banners/BigBertha/BigBertha.js +55 -0
- package/esm/Banners/BigBertha/index.d.ts +2 -0
- package/esm/Banners/BigBertha/index.js +2 -0
- package/esm/Banners/Promote/Promote.d.ts +51 -0
- package/esm/Banners/Promote/Promote.js +97 -0
- package/esm/Banners/Promote/index.d.ts +2 -0
- package/esm/Banners/Promote/index.js +2 -0
- package/esm/Banners/index.d.ts +3 -0
- package/esm/Banners/index.js +3 -0
- package/esm/Button/Button.d.ts +19 -0
- package/esm/Button/Button.js +28 -0
- package/esm/Button/Button.tailwind.d.ts +5 -0
- package/esm/Button/Button.tailwind.js +154 -0
- package/esm/Button/ButtonGroup.d.ts +18 -0
- package/esm/Button/ButtonGroup.js +21 -0
- package/esm/Button/IconButton.d.ts +10 -0
- package/esm/Button/IconButton.js +19 -0
- package/esm/Button/PolymorphicButton.d.ts +12 -0
- package/esm/Button/PolymorphicButton.js +69 -0
- package/esm/Button/PolymorphicIconButton.d.ts +29 -0
- package/esm/Button/PolymorphicIconButton.js +81 -0
- package/esm/Button/index.d.ts +5 -0
- package/esm/Button/index.js +4 -0
- package/esm/Button/styles.d.ts +5 -0
- package/esm/Button/styles.js +30 -0
- package/esm/Button/types.d.ts +33 -0
- package/esm/Button/types.js +5 -0
- package/esm/Card/Card.d.ts +32 -0
- package/esm/Card/Card.js +37 -0
- package/esm/Card/Card.tailwind.d.ts +5 -0
- package/esm/Card/Card.tailwind.js +35 -0
- package/esm/Card/components/CardHeader.d.ts +6 -0
- package/esm/Card/components/CardHeader.js +20 -0
- package/esm/Card/components/CardTitle.d.ts +6 -0
- package/esm/Card/components/CardTitle.js +20 -0
- package/esm/Card/index.d.ts +4 -0
- package/esm/Card/index.js +4 -0
- package/esm/Checkbox/Checkbox.d.ts +24 -0
- package/esm/Checkbox/Checkbox.js +92 -0
- package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
- package/esm/Checkbox/Checkbox.tailwind.js +70 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +2 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
- package/esm/ClickAwayContainer/ClickAwayContainer.js +76 -0
- package/esm/ClickAwayContainer/index.d.ts +1 -0
- package/esm/ClickAwayContainer/index.js +1 -0
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +34 -0
- package/esm/DatePicker/DatePicker/DatePicker.js +159 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
- package/esm/DatePicker/DatePicker/datePickerReducer.js +43 -0
- package/esm/DatePicker/DatePicker/index.d.ts +3 -0
- package/esm/DatePicker/DatePicker/index.js +3 -0
- package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
- package/esm/DatePicker/DatePicker.tailwind.js +182 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +35 -0
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +251 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +33 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +92 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
- package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
- package/esm/DatePicker/DateRangePicker/index.d.ts +4 -0
- package/esm/DatePicker/DateRangePicker/index.js +4 -0
- package/esm/DatePicker/components/Calendar.d.ts +17 -0
- package/esm/DatePicker/components/Calendar.js +48 -0
- package/esm/DatePicker/components/Display.d.ts +10 -0
- package/esm/DatePicker/components/Display.js +17 -0
- package/esm/DatePicker/components/Footer.d.ts +6 -0
- package/esm/DatePicker/components/Footer.js +12 -0
- package/esm/DatePicker/components/FooterActions.d.ts +12 -0
- package/esm/DatePicker/components/FooterActions.js +26 -0
- package/esm/DatePicker/components/Modal.d.ts +16 -0
- package/esm/DatePicker/components/Modal.js +60 -0
- package/esm/DatePicker/components/NavBar.d.ts +10 -0
- package/esm/DatePicker/components/NavBar.js +117 -0
- package/esm/DatePicker/components/SidePanel.d.ts +6 -0
- package/esm/DatePicker/components/SidePanel.js +15 -0
- package/esm/DatePicker/components/index.d.ts +12 -0
- package/esm/DatePicker/components/index.js +6 -0
- package/esm/DatePicker/index.d.ts +3 -0
- package/esm/DatePicker/index.js +3 -0
- package/esm/DatePicker/types.d.ts +26 -0
- package/esm/DatePicker/types.js +1 -0
- package/esm/DatePicker/utils.d.ts +3 -0
- package/esm/DatePicker/utils.js +12 -0
- package/esm/Dropdown/Dropdown.d.ts +49 -0
- package/esm/Dropdown/Dropdown.js +127 -0
- package/esm/Dropdown/DropdownButton.d.ts +11 -0
- package/esm/Dropdown/DropdownButton.js +40 -0
- package/esm/Dropdown/DropdownContext.d.ts +7 -0
- package/esm/Dropdown/DropdownContext.js +10 -0
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +14 -0
- package/esm/Dropdown/components/DropdownButtonItem.js +38 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +53 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +14 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +29 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +26 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
- package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
- package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
- package/esm/Dropdown/components/DropdownDivider.js +10 -0
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +8 -0
- package/esm/Dropdown/components/DropdownFooterItem.js +22 -0
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +10 -0
- package/esm/Dropdown/components/DropdownLinkItem.js +46 -0
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +8 -0
- package/esm/Dropdown/components/DropdownRadioItem.js +37 -0
- package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
- package/esm/Dropdown/components/DropdownTitle.js +18 -0
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +11 -0
- package/esm/Dropdown/components/DropdownToggleItem.js +40 -0
- package/esm/Dropdown/index.d.ts +13 -0
- package/esm/Dropdown/index.js +13 -0
- package/esm/Dropdown/useDropdownItemProps.d.ts +21 -0
- package/esm/Dropdown/useDropdownItemProps.js +31 -0
- package/esm/Dropzone/Dropzone.d.ts +21 -0
- package/esm/Dropzone/Dropzone.js +152 -0
- package/esm/Dropzone/index.d.ts +2 -0
- package/esm/Dropzone/index.js +2 -0
- package/esm/EmptyState/EmptyState.d.ts +28 -0
- package/esm/EmptyState/EmptyState.js +117 -0
- package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
- package/esm/EmptyState/EmptyState.tailwind.js +14 -0
- package/esm/EmptyState/index.d.ts +3 -0
- package/esm/EmptyState/index.js +3 -0
- package/esm/EmptyState/types.d.ts +50 -0
- package/esm/EmptyState/types.js +1 -0
- package/esm/Field/Field.d.ts +54 -0
- package/esm/Field/Field.js +98 -0
- package/esm/Field/FieldContext.d.ts +16 -0
- package/esm/Field/FieldContext.js +8 -0
- package/esm/Field/index.d.ts +5 -0
- package/esm/Field/index.js +4 -0
- package/esm/Field/useField.d.ts +2 -0
- package/esm/Field/useField.js +5 -0
- package/esm/Flag/Flag.d.ts +6 -0
- package/esm/Flag/Flag.js +110 -0
- package/esm/Flag/Flag.tailwind.d.ts +5 -0
- package/esm/Flag/Flag.tailwind.js +33 -0
- package/esm/Flag/Flags.d.ts +48 -0
- package/esm/Flag/Flags.js +83 -0
- package/esm/Flag/index.d.ts +4 -0
- package/esm/Flag/index.js +4 -0
- package/esm/Flag/types.d.ts +27 -0
- package/esm/Flag/types.js +1 -0
- package/esm/FlexGrid/FlexGrid.d.ts +40 -0
- package/esm/FlexGrid/FlexGrid.js +62 -0
- package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
- package/esm/FlexGrid/FlexGrid.tailwind.js +69 -0
- package/esm/FlexGrid/index.d.ts +2 -0
- package/esm/FlexGrid/index.js +2 -0
- package/esm/HelpUnderline/HelpUnderline.d.ts +11 -0
- package/esm/HelpUnderline/HelpUnderline.js +28 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
- package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
- package/esm/HelpUnderline/index.d.ts +2 -0
- package/esm/HelpUnderline/index.js +2 -0
- package/esm/Input/Input.d.ts +30 -0
- package/esm/Input/Input.js +209 -0
- package/esm/Input/Input.tailwind.d.ts +5 -0
- package/esm/Input/Input.tailwind.js +124 -0
- package/esm/Input/index.d.ts +2 -0
- package/esm/Input/index.js +2 -0
- package/esm/Insert/Insert.d.ts +45 -0
- package/esm/Insert/Insert.js +71 -0
- package/esm/Insert/index.d.ts +2 -0
- package/esm/Insert/index.js +2 -0
- package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
- package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
- package/esm/KeyboardKey/KeyboardKey.d.ts +7 -0
- package/esm/KeyboardKey/KeyboardKey.js +29 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
- package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
- package/esm/KeyboardKey/index.d.ts +2 -0
- package/esm/KeyboardKey/index.js +2 -0
- package/esm/Link/BaseLink.d.ts +8 -0
- package/esm/Link/BaseLink.js +22 -0
- package/esm/Link/ButtonLink.d.ts +9 -0
- package/esm/Link/ButtonLink.js +30 -0
- package/esm/Link/IconButtonLink.d.ts +9 -0
- package/esm/Link/IconButtonLink.js +24 -0
- package/esm/Link/Link.d.ts +13 -0
- package/esm/Link/Link.js +46 -0
- package/esm/Link/index.d.ts +5 -0
- package/esm/Link/index.js +5 -0
- package/esm/Medallion/Medallion.d.ts +12 -0
- package/esm/Medallion/Medallion.js +32 -0
- package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
- package/esm/Medallion/Medallion.tailwind.js +30 -0
- package/esm/Medallion/index.d.ts +3 -0
- package/esm/Medallion/index.js +3 -0
- package/esm/Medallion/types.d.ts +2 -0
- package/esm/Medallion/types.js +1 -0
- package/esm/Modal/Modal.d.ts +56 -0
- package/esm/Modal/Modal.js +140 -0
- package/esm/Modal/Modal.tailwind.d.ts +5 -0
- package/esm/Modal/Modal.tailwind.js +79 -0
- package/esm/Modal/components/ModalFooter.d.ts +6 -0
- package/esm/Modal/components/ModalFooter.js +25 -0
- package/esm/Modal/components/ModalSection.d.ts +10 -0
- package/esm/Modal/components/ModalSection.js +16 -0
- package/esm/Modal/index.d.ts +4 -0
- package/esm/Modal/index.js +4 -0
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +31 -0
- package/esm/Pagination/CompactPagination/CompactPagination.js +76 -0
- package/esm/Pagination/CompactPagination/index.d.ts +2 -0
- package/esm/Pagination/CompactPagination/index.js +2 -0
- package/esm/Pagination/DotPagination/DotPagination.d.ts +15 -0
- package/esm/Pagination/DotPagination/DotPagination.js +39 -0
- package/esm/Pagination/DotPagination/index.d.ts +2 -0
- package/esm/Pagination/DotPagination/index.js +2 -0
- package/esm/Pagination/Pagination/Pagination.d.ts +22 -0
- package/esm/Pagination/Pagination/Pagination.js +114 -0
- package/esm/Pagination/Pagination/index.d.ts +2 -0
- package/esm/Pagination/Pagination/index.js +2 -0
- package/esm/Pagination/index.d.ts +4 -0
- package/esm/Pagination/index.js +4 -0
- package/esm/Popover/Popover.d.ts +5 -0
- package/esm/Popover/Popover.js +129 -0
- package/esm/Popover/index.d.ts +3 -0
- package/esm/Popover/index.js +3 -0
- package/esm/Popover/types.d.ts +74 -0
- package/esm/Popover/types.js +1 -0
- package/esm/ProgressBar/ProgressBar.d.ts +16 -0
- package/esm/ProgressBar/ProgressBar.js +47 -0
- package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
- package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
- package/esm/ProgressBar/index.d.ts +2 -0
- package/esm/ProgressBar/index.js +2 -0
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/esm/ProgressSpinner/ProgressSpinner.js +46 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
- package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +43 -0
- package/esm/ProgressSpinner/index.d.ts +2 -0
- package/esm/ProgressSpinner/index.js +2 -0
- package/esm/RadioGroup/RadioButton.d.ts +4 -0
- package/esm/RadioGroup/RadioButton.js +22 -0
- package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
- package/esm/RadioGroup/RadioButton.tailwind.js +62 -0
- package/esm/RadioGroup/RadioGroup.d.ts +41 -0
- package/esm/RadioGroup/RadioGroup.js +97 -0
- package/esm/RadioGroup/RadiogroupContext.d.ts +11 -0
- package/esm/RadioGroup/RadiogroupContext.js +9 -0
- package/esm/RadioGroup/index.d.ts +4 -0
- package/esm/RadioGroup/index.js +4 -0
- package/esm/RangeSlider/RangeSlider.d.ts +38 -0
- package/esm/RangeSlider/RangeSlider.js +101 -0
- package/esm/RangeSlider/index.d.ts +2 -0
- package/esm/RangeSlider/index.js +2 -0
- package/esm/Satellite/Satellite.d.ts +11 -0
- package/esm/Satellite/Satellite.js +54 -0
- package/esm/Satellite/SatelliteContext.d.ts +11 -0
- package/esm/Satellite/SatelliteContext.js +16 -0
- package/esm/Satellite/SatelliteRouter.d.ts +21 -0
- package/esm/Satellite/SatelliteRouter.js +40 -0
- package/esm/Satellite/index.d.ts +6 -0
- package/esm/Satellite/index.js +6 -0
- package/esm/Satellite/locale.d.ts +33 -0
- package/esm/Satellite/locale.js +7 -0
- package/esm/Satellite/useCreatePortal.d.ts +4 -0
- package/esm/Satellite/useCreatePortal.js +17 -0
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
- package/esm/ScrollIndicator/ScrollIndicator.js +79 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
- package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
- package/esm/ScrollIndicator/index.d.ts +2 -0
- package/esm/ScrollIndicator/index.js +2 -0
- package/esm/Select/Select.d.ts +15 -0
- package/esm/Select/Select.js +37 -0
- package/esm/Select/Select.tailwind.d.ts +5 -0
- package/esm/Select/Select.tailwind.js +77 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +2 -0
- package/esm/Separator/Separator.d.ts +9 -0
- package/esm/Separator/Separator.js +29 -0
- package/esm/Separator/Separator.tailwind.d.ts +5 -0
- package/esm/Separator/Separator.tailwind.js +53 -0
- package/esm/Separator/index.d.ts +2 -0
- package/esm/Separator/index.js +2 -0
- package/esm/Sidebar/Sidebar.d.ts +36 -0
- package/esm/Sidebar/Sidebar.js +54 -0
- package/esm/Sidebar/SidebarButtonLink.d.ts +20 -0
- package/esm/Sidebar/SidebarButtonLink.js +78 -0
- package/esm/Sidebar/SidebarContext.d.ts +9 -0
- package/esm/Sidebar/SidebarContext.js +9 -0
- package/esm/Sidebar/SidebarHeader.d.ts +7 -0
- package/esm/Sidebar/SidebarHeader.js +13 -0
- package/esm/Sidebar/SidebarHeading.d.ts +8 -0
- package/esm/Sidebar/SidebarHeading.js +18 -0
- package/esm/Sidebar/SidebarLink.d.ts +9 -0
- package/esm/Sidebar/SidebarLink.js +44 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +9 -0
- package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +30 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +24 -0
- package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +91 -0
- package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
- package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
- package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
- package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
- package/esm/Sidebar/SidebarNav.d.ts +11 -0
- package/esm/Sidebar/SidebarNav.js +29 -0
- package/esm/Sidebar/index.d.ts +9 -0
- package/esm/Sidebar/index.js +9 -0
- package/esm/Sidebar/types.d.ts +6 -0
- package/esm/Sidebar/types.js +1 -0
- package/esm/Switch/Switch.d.ts +14 -0
- package/esm/Switch/Switch.js +80 -0
- package/esm/Switch/Switch.tailwind.d.ts +5 -0
- package/esm/Switch/Switch.tailwind.js +24 -0
- package/esm/Switch/SwitchOption.d.ts +8 -0
- package/esm/Switch/SwitchOption.js +39 -0
- package/esm/Switch/index.d.ts +3 -0
- package/esm/Switch/index.js +3 -0
- package/esm/Switch/types.d.ts +7 -0
- package/esm/Switch/types.js +1 -0
- package/esm/Switch/utils.d.ts +6 -0
- package/esm/Switch/utils.js +11 -0
- package/esm/Tables/DataTable/DataTable.d.ts +69 -0
- package/esm/Tables/DataTable/DataTable.js +258 -0
- package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
- package/esm/Tables/DataTable/DataTable.tailwind.js +22 -0
- package/esm/Tables/DataTable/components/Body.d.ts +15 -0
- package/esm/Tables/DataTable/components/Body.js +112 -0
- package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
- package/esm/Tables/DataTable/components/Footer.js +53 -0
- package/esm/Tables/DataTable/components/Header.d.ts +10 -0
- package/esm/Tables/DataTable/components/Header.js +32 -0
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
- package/esm/Tables/DataTable/components/HeaderCell.js +52 -0
- package/esm/Tables/DataTable/components/Loader.d.ts +9 -0
- package/esm/Tables/DataTable/components/Loader.js +40 -0
- package/esm/Tables/DataTable/components/index.d.ts +5 -0
- package/esm/Tables/DataTable/components/index.js +5 -0
- package/esm/Tables/DataTable/index.d.ts +3 -0
- package/esm/Tables/DataTable/index.js +3 -0
- package/esm/Tables/DataTable/types.d.ts +63 -0
- package/esm/Tables/DataTable/types.js +1 -0
- package/esm/Tables/DataTable/utils.d.ts +4 -0
- package/esm/Tables/DataTable/utils.js +13 -0
- package/esm/Tables/Table/Table.d.ts +28 -0
- package/esm/Tables/Table/Table.js +54 -0
- package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
- package/esm/Tables/Table/Table.tailwind.js +38 -0
- package/esm/Tables/Table/components/TableFooter.d.ts +8 -0
- package/esm/Tables/Table/components/TableFooter.js +19 -0
- package/esm/Tables/Table/index.d.ts +3 -0
- package/esm/Tables/Table/index.js +3 -0
- package/esm/Tables/index.d.ts +3 -0
- package/esm/Tables/index.js +3 -0
- package/esm/Tabs/ContentTabs.d.ts +4 -0
- package/esm/Tabs/ContentTabs.js +54 -0
- package/esm/Tabs/LinkTabs.d.ts +33 -0
- package/esm/Tabs/LinkTabs.js +68 -0
- package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
- package/esm/Tabs/Tabs.tailwind.js +71 -0
- package/esm/Tabs/components/LinkTab.d.ts +9 -0
- package/esm/Tabs/components/LinkTab.js +78 -0
- package/esm/Tabs/index.d.ts +4 -0
- package/esm/Tabs/index.js +4 -0
- package/esm/Tabs/types.d.ts +34 -0
- package/esm/Tabs/types.js +1 -0
- package/esm/Tabs/utils.d.ts +2 -0
- package/esm/Tabs/utils.js +11 -0
- package/esm/Tag/Tag.d.ts +48 -0
- package/esm/Tag/Tag.js +133 -0
- package/esm/Tag/Tag.tailwind.d.ts +5 -0
- package/esm/Tag/Tag.tailwind.js +53 -0
- package/esm/Tag/index.d.ts +2 -0
- package/esm/Tag/index.js +2 -0
- package/esm/TextArea/TextArea.d.ts +5 -0
- package/esm/TextArea/TextArea.js +21 -0
- package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
- package/esm/TextArea/TextArea.tailwind.js +43 -0
- package/esm/TextArea/index.d.ts +2 -0
- package/esm/TextArea/index.js +2 -0
- package/esm/TextWrap/TextWrap.d.ts +8 -0
- package/esm/TextWrap/TextWrap.js +47 -0
- package/esm/TextWrap/index.d.ts +2 -0
- package/esm/TextWrap/index.js +2 -0
- package/esm/Toggle/Toggle.d.ts +14 -0
- package/esm/Toggle/Toggle.js +69 -0
- package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
- package/esm/Toggle/Toggle.tailwind.js +84 -0
- package/esm/Toggle/index.d.ts +2 -0
- package/esm/Toggle/index.js +2 -0
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +5 -0
- package/esm/Tooltip/OverflowTooltipWrapper.js +39 -0
- package/esm/Tooltip/Tooltip.d.ts +24 -0
- package/esm/Tooltip/Tooltip.js +45 -0
- package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
- package/esm/Tooltip/Tooltip.tailwind.js +46 -0
- package/esm/Tooltip/TooltipWrapper.d.ts +14 -0
- package/esm/Tooltip/TooltipWrapper.js +74 -0
- package/esm/Tooltip/index.d.ts +4 -0
- package/esm/Tooltip/index.js +4 -0
- package/esm/Tooltip/types.d.ts +65 -0
- package/esm/Tooltip/types.js +1 -0
- package/esm/Tooltip/utils.d.ts +1 -0
- package/esm/Tooltip/utils.js +3 -0
- package/esm/Typography/Typography.tailwind.d.ts +5 -0
- package/esm/Typography/Typography.tailwind.js +169 -0
- package/esm/UserContent/UserContent.d.ts +9 -0
- package/esm/UserContent/UserContent.js +19 -0
- package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
- package/esm/UserContent/UserContent.tailwind.js +141 -0
- package/esm/index.d.ts +49 -0
- package/esm/index.js +49 -0
- package/esm/styles/base.tailwind.d.ts +5 -0
- package/esm/styles/base.tailwind.js +45 -0
- package/esm/styles/brandColors.d.ts +42 -0
- package/esm/styles/brandColors.js +46 -0
- package/esm/styles/colors.d.ts +110 -0
- package/esm/styles/colors.js +114 -0
- package/esm/styles/disabledColor.d.ts +6 -0
- package/esm/styles/disabledColor.js +14 -0
- package/esm/styles/helpers/icons.d.ts +15 -0
- package/esm/styles/helpers/icons.js +40 -0
- package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
- package/esm/styles/helpers/makePurgeCssExtractor.js +49 -0
- package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
- package/esm/styles/helpers/makeTailwindPrefixer.js +34 -0
- package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
- package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
- package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
- package/esm/styles/helpers/satellitePrefixer.js +7 -0
- package/esm/styles/rgba.d.ts +8 -0
- package/esm/styles/rgba.js +14 -0
- package/esm/styles/tailwind.config.d.ts +2 -0
- package/esm/styles/tailwind.config.js +147 -0
- package/esm/styles/zIndexes.d.ts +8 -0
- package/esm/styles/zIndexes.js +13 -0
- package/esm/types.d.ts +27 -0
- package/esm/types.js +1 -0
- package/esm/utilities/overlay.tailwind.d.ts +5 -0
- package/esm/utilities/overlay.tailwind.js +106 -0
- package/esm/utilities/utilities.tailwind.d.ts +5 -0
- package/esm/utilities/utilities.tailwind.js +25 -0
- package/esm/utils/NumberUnion.d.ts +5 -0
- package/esm/utils/NumberUnion.js +1 -0
- package/esm/utils/clamp.d.ts +1 -0
- package/esm/utils/clamp.js +3 -0
- package/esm/utils/event-polyfill.d.ts +0 -0
- package/esm/utils/event-polyfill.js +23 -0
- package/esm/utils/formatters.d.ts +25 -0
- package/esm/utils/formatters.js +36 -0
- package/esm/utils/genericChangeHandler.d.ts +5 -0
- package/esm/utils/genericChangeHandler.js +18 -0
- package/esm/utils/hashCode.d.ts +2 -0
- package/esm/utils/hashCode.js +15 -0
- package/esm/utils/index.d.ts +7 -0
- package/{utils/index.d.ts → esm/utils/index.js} +2 -2
- package/esm/utils/isCssPropertySupported.d.ts +2 -0
- package/esm/utils/isCssPropertySupported.js +9 -0
- package/esm/utils/isNil.d.ts +19 -0
- package/esm/utils/isNil.js +21 -0
- package/esm/utils/isReactText.d.ts +2 -0
- package/esm/utils/isReactText.js +3 -0
- package/esm/utils/isRenderedChild.d.ts +8 -0
- package/esm/utils/isRenderedChild.js +9 -0
- package/esm/utils/matchLocation.d.ts +3 -0
- package/esm/utils/matchLocation.js +5 -0
- package/esm/utils/onlyText.d.ts +3 -0
- package/esm/utils/onlyText.js +33 -0
- package/esm/utils/parseUrl.d.ts +11 -0
- package/esm/utils/parseUrl.js +15 -0
- package/esm/utils/pluralize.d.ts +6 -0
- package/esm/utils/pluralize.js +16 -0
- package/esm/utils/prefersReducedMotion.d.ts +6 -0
- package/esm/utils/prefersReducedMotion.js +7 -0
- package/esm/utils/range.d.ts +2 -0
- package/esm/utils/range.js +7 -0
- package/esm/utils/toSentenceCase.d.ts +3 -0
- package/esm/utils/toSentenceCase.js +9 -0
- package/esm/utils/uniqBy.d.ts +2 -0
- package/esm/utils/uniqBy.js +13 -0
- package/esm/utils/uniqueId.d.ts +2 -0
- package/esm/utils/uniqueId.js +7 -0
- package/esm/utils/useForwardedRef.d.ts +3 -0
- package/esm/utils/useForwardedRef.js +17 -0
- package/esm/utils/useLinkProps.d.ts +7 -0
- package/esm/utils/useLinkProps.js +46 -0
- package/esm/utils/useTriggerInputChange.d.ts +8 -0
- package/esm/utils/useTriggerInputChange.js +21 -0
- package/package.json +89 -49
- package/satellite.min.css +3 -0
- package/scss/colors.scss +139 -0
- package/scss/variables.scss +8 -0
- package/components/Alert/Alert.d.ts +0 -9
- package/components/Alert/Alert.js +0 -49
- package/components/Alert/index.js +0 -27
- package/components/AutoComplete/AutoComplete.d.ts +0 -66
- package/components/AutoComplete/AutoComplete.js +0 -512
- package/components/AutoComplete/index.d.ts +0 -2
- package/components/AutoComplete/index.js +0 -27
- package/components/AutoComplete/types.d.ts +0 -21
- package/components/AutoComplete/types.js +0 -1
- package/components/AutoComplete/utils.d.ts +0 -3
- package/components/AutoComplete/utils.js +0 -35
- package/components/Button/Button.d.ts +0 -13
- package/components/Button/Button.js +0 -59
- package/components/Button/LinkButton.d.ts +0 -9
- package/components/Button/LinkButton.js +0 -52
- package/components/Button/index.d.ts +0 -3
- package/components/Button/index.js +0 -40
- package/components/Card/Card.d.ts +0 -13
- package/components/Card/Card.js +0 -71
- package/components/Card/components/CardHeader.d.ts +0 -3
- package/components/Card/components/CardHeader.js +0 -25
- package/components/Card/components/CardTitle.d.ts +0 -7
- package/components/Card/components/CardTitle.js +0 -30
- package/components/Card/index.d.ts +0 -3
- package/components/Card/index.js +0 -19
- package/components/Checkbox/Checkbox.d.ts +0 -5
- package/components/Checkbox/Checkbox.js +0 -66
- package/components/Checkbox/index.js +0 -27
- package/components/Chip/Chip.d.ts +0 -9
- package/components/Chip/Chip.js +0 -77
- package/components/Chip/index.d.ts +0 -2
- package/components/Chip/index.js +0 -21
- package/components/Dropdown/Dropdown.d.ts +0 -27
- package/components/Dropdown/Dropdown.js +0 -163
- package/components/Dropdown/DropdownButton.d.ts +0 -12
- package/components/Dropdown/DropdownButton.js +0 -117
- package/components/Dropdown/components/DropdownDivider.d.ts +0 -6
- package/components/Dropdown/components/DropdownDivider.js +0 -24
- package/components/Dropdown/components/DropdownItem.d.ts +0 -10
- package/components/Dropdown/components/DropdownItem.js +0 -46
- package/components/Dropdown/components/DropdownTitle.d.ts +0 -4
- package/components/Dropdown/components/DropdownTitle.js +0 -34
- package/components/Dropdown/index.d.ts +0 -3
- package/components/Dropdown/index.js +0 -29
- package/components/HelpUnderline/HelpUnderline.d.ts +0 -10
- package/components/HelpUnderline/HelpUnderline.js +0 -39
- package/components/HelpUnderline/index.js +0 -27
- package/components/Input/Input.d.ts +0 -25
- package/components/Input/Input.js +0 -134
- package/components/LoaderIcon/LoaderIcon.d.ts +0 -7
- package/components/LoaderIcon/LoaderIcon.js +0 -65
- package/components/LoaderIcon/index.d.ts +0 -2
- package/components/LoaderIcon/index.js +0 -27
- package/components/MaterialIcon/MaterialIcon.d.ts +0 -12
- package/components/MaterialIcon/MaterialIcon.js +0 -48
- package/components/MaterialIcon/index.d.ts +0 -2
- package/components/MaterialIcon/index.js +0 -27
- package/components/Modal/Modal.d.ts +0 -30
- package/components/Modal/Modal.js +0 -207
- package/components/Modal/components/ModalFooter.d.ts +0 -4
- package/components/Modal/components/ModalFooter.js +0 -34
- package/components/Modal/components/ModalSection.d.ts +0 -6
- package/components/Modal/components/ModalSection.js +0 -38
- package/components/Modal/index.d.ts +0 -2
- package/components/Modal/index.js +0 -21
- package/components/Pagination/Pagination.d.ts +0 -12
- package/components/Pagination/Pagination.js +0 -131
- package/components/Pagination/index.js +0 -27
- package/components/RadioGroup/RadioButton.d.ts +0 -4
- package/components/RadioGroup/RadioButton.js +0 -35
- package/components/RadioGroup/RadioGroup.d.ts +0 -20
- package/components/RadioGroup/RadioGroup.js +0 -140
- package/components/RadioGroup/index.d.ts +0 -3
- package/components/RadioGroup/index.js +0 -29
- package/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
- package/components/ScrollIndicator/ScrollIndicator.js +0 -165
- package/components/ScrollIndicator/index.d.ts +0 -2
- package/components/ScrollIndicator/index.js +0 -21
- package/components/Select/Select.d.ts +0 -6
- package/components/Select/Select.js +0 -40
- package/components/Select/index.js +0 -27
- package/components/Table/Table.d.ts +0 -6
- package/components/Table/Table.js +0 -36
- package/components/Table/index.d.ts +0 -3
- package/components/Table/index.js +0 -19
- package/components/TextArea/TextArea.d.ts +0 -5
- package/components/TextArea/TextArea.js +0 -34
- package/components/TextArea/index.js +0 -27
- package/components/Tooltip/Tooltip.d.ts +0 -5
- package/components/Tooltip/Tooltip.js +0 -29
- package/components/Tooltip/TooltipWrapper.d.ts +0 -32
- package/components/Tooltip/TooltipWrapper.js +0 -164
- package/components/Tooltip/index.js +0 -40
- package/index.d.ts +0 -19
- package/index.js +0 -173
- package/nothing-to-see-here.gif +0 -0
- package/satellite.css +0 -32
- package/satellite.css.map +0 -1
- package/styles/_colors.scss +0 -147
- package/styles/_mixins.scss +0 -72
- package/styles/_variables.scss +0 -71
- package/utils/clamp.d.ts +0 -2
- package/utils/clamp.js +0 -20
- package/utils/genericChangeHandler.d.ts +0 -5
- package/utils/omit.d.ts +0 -2
- package/utils/omit.js +0 -25
- /package/{components → cjs/Banners}/Alert/index.d.ts +0 -0
- /package/{components → cjs}/Checkbox/index.d.ts +0 -0
- /package/{components → cjs}/HelpUnderline/index.d.ts +0 -0
- /package/{components → cjs}/Input/index.d.ts +0 -0
- /package/{components → cjs/Pagination}/Pagination/index.d.ts +0 -0
- /package/{components → cjs}/Select/index.d.ts +0 -0
- /package/{components → cjs}/TextArea/index.d.ts +0 -0
- /package/{utils → cjs/utils}/pluralize.d.ts +0 -0
- /package/{utils → cjs/utils}/range.d.ts +0 -0
- /package/{utils → cjs/utils}/uniqBy.d.ts +0 -0
- /package/{utils → cjs/utils}/uniqueId.d.ts +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
+
var _templateObject;
|
5
|
+
var _excluded = ["className"];
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
8
|
+
import cx from "clsx";
|
9
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
export var DropdownTitle = function DropdownTitle(_ref) {
|
12
|
+
var className = _ref.className,
|
13
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
14
|
+
return /*#__PURE__*/_jsx("h4", _objectSpread(_objectSpread({}, props), {}, {
|
15
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex items-center h-10 px-4\n border-grey-100 border-b border-t first:border-t-0\n display-subheading"]))), className)
|
16
|
+
}));
|
17
|
+
};
|
18
|
+
export default DropdownTitle;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { ReactNode, VFC } from "react";
|
2
|
+
import type { ToggleProps } from "../../Toggle";
|
3
|
+
import type { IconComponentType } from "../../types";
|
4
|
+
import type { DropdownBaseItemProps } from "../useDropdownItemProps";
|
5
|
+
export interface DropdownToggleItemProps extends ToggleProps, DropdownBaseItemProps<HTMLInputElement> {
|
6
|
+
/** Left aligned icon */
|
7
|
+
startIcon?: IconComponentType;
|
8
|
+
children?: ReactNode;
|
9
|
+
}
|
10
|
+
export declare const DropdownToggleItem: VFC<DropdownToggleItemProps>;
|
11
|
+
export default DropdownToggleItem;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
5
|
+
var _excluded = ["className", "toggle", "startIcon", "children"];
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
8
|
+
import cx from "clsx";
|
9
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
10
|
+
import { Toggle } from "../../Toggle";
|
11
|
+
import useDropdownItemProps from "../useDropdownItemProps";
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
+
export var DropdownToggleItem = function DropdownToggleItem(props) {
|
15
|
+
var dropdownItemProps = useDropdownItemProps(props);
|
16
|
+
// `toggle` is destructured here because we don't want it passed to the `Toggle`
|
17
|
+
var _props$dropdownItemPr = _objectSpread(_objectSpread({}, props), dropdownItemProps),
|
18
|
+
className = _props$dropdownItemPr.className,
|
19
|
+
toggle = _props$dropdownItemPr.toggle,
|
20
|
+
StartIcon = _props$dropdownItemPr.startIcon,
|
21
|
+
children = _props$dropdownItemPr.children,
|
22
|
+
toggleProps = _objectWithoutProperties(_props$dropdownItemPr, _excluded);
|
23
|
+
return /*#__PURE__*/_jsxs("label", {
|
24
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex items-center"]))), className),
|
25
|
+
children: [StartIcon && /*#__PURE__*/_jsx(StartIcon, {
|
26
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-2 shrink-0 text-grey-500"]))),
|
27
|
+
width: "1rem",
|
28
|
+
height: "1rem"
|
29
|
+
}), /*#__PURE__*/_jsx("span", {
|
30
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex-1 truncate mr-4"]))),
|
31
|
+
children: children
|
32
|
+
}), /*#__PURE__*/_jsx(Toggle, _objectSpread({
|
33
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["shrink-0"])))
|
34
|
+
}, toggleProps))]
|
35
|
+
});
|
36
|
+
};
|
37
|
+
DropdownToggleItem.defaultProps = {
|
38
|
+
toggle: false
|
39
|
+
};
|
40
|
+
export default DropdownToggleItem;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from "./Dropdown";
|
2
|
+
export * from "./DropdownButton";
|
3
|
+
export * from "./components/DropdownRadioItem";
|
4
|
+
export * from "./components/DropdownToggleItem";
|
5
|
+
export * from "./components/DropdownLinkItem";
|
6
|
+
export * from "./components/DropdownButtonItem";
|
7
|
+
export * from "./components/DropdownFooterItem";
|
8
|
+
export * from "./components/DropdownCollapsibleItem";
|
9
|
+
export * from "./components/DropdownDivider";
|
10
|
+
export * from "./components/DropdownTitle";
|
11
|
+
export * from "./useDropdownItemProps";
|
12
|
+
export * from "./DropdownContext";
|
13
|
+
export { default } from "./Dropdown";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from "./Dropdown";
|
2
|
+
export * from "./DropdownButton";
|
3
|
+
export * from "./components/DropdownRadioItem";
|
4
|
+
export * from "./components/DropdownToggleItem";
|
5
|
+
export * from "./components/DropdownLinkItem";
|
6
|
+
export * from "./components/DropdownButtonItem";
|
7
|
+
export * from "./components/DropdownFooterItem";
|
8
|
+
export * from "./components/DropdownCollapsibleItem";
|
9
|
+
export * from "./components/DropdownDivider";
|
10
|
+
export * from "./components/DropdownTitle";
|
11
|
+
export * from "./useDropdownItemProps";
|
12
|
+
export * from "./DropdownContext";
|
13
|
+
export { default } from "./Dropdown";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { EventHandler, MouseEvent } from "react";
|
2
|
+
export interface DropdownBaseItemProps<T extends HTMLElement = HTMLElement> {
|
3
|
+
className?: string;
|
4
|
+
toggle?: boolean;
|
5
|
+
disabled?: boolean;
|
6
|
+
onClick?: EventHandler<MouseEvent<T>>;
|
7
|
+
}
|
8
|
+
export declare const useDropdownItemProps: <T extends HTMLElement = HTMLElement>(props: DropdownBaseItemProps<T>) => {
|
9
|
+
disabled: boolean;
|
10
|
+
"aria-disabled": boolean;
|
11
|
+
tabIndex: number;
|
12
|
+
onClick: undefined;
|
13
|
+
className: string;
|
14
|
+
} | {
|
15
|
+
disabled?: undefined;
|
16
|
+
"aria-disabled"?: undefined;
|
17
|
+
tabIndex?: undefined;
|
18
|
+
onClick: (evt: MouseEvent<T, globalThis.MouseEvent>) => void;
|
19
|
+
className: string;
|
20
|
+
};
|
21
|
+
export default useDropdownItemProps;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
3
|
+
var _templateObject;
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
6
|
+
import cx from "clsx";
|
7
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
8
|
+
import { useDropdownContext } from "./DropdownContext";
|
9
|
+
export var useDropdownItemProps = function useDropdownItemProps(props) {
|
10
|
+
var _useDropdownContext = useDropdownContext(),
|
11
|
+
showMenu = _useDropdownContext.showMenu;
|
12
|
+
var className = cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex items-center\n min-h-10 px-4 text-left\n focus:no-underline hover:no-underline\n ", "\n "])), props.disabled ? "text-grey-300 cursor-not-allowed" : "text-inherit hover:bg-grey-100 focus:bg-grey-100 focus:outline-none cursor-pointer"), props.className);
|
13
|
+
var disabledProps = props.disabled ? {
|
14
|
+
disabled: true,
|
15
|
+
"aria-disabled": true,
|
16
|
+
tabIndex: -1,
|
17
|
+
onClick: undefined
|
18
|
+
} : {};
|
19
|
+
return _objectSpread({
|
20
|
+
className: className,
|
21
|
+
onClick: function onClick(evt) {
|
22
|
+
if (props.onClick) {
|
23
|
+
props.onClick(evt);
|
24
|
+
}
|
25
|
+
if (!evt.defaultPrevented && props.toggle) {
|
26
|
+
showMenu(false);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}, disabledProps);
|
30
|
+
};
|
31
|
+
export default useDropdownItemProps;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { FileRejection, DropzoneProps as ReactDropZoneProps } from "react-dropzone";
|
3
|
+
export declare type DropzoneLocale = {
|
4
|
+
clearInput?: string;
|
5
|
+
placeholder?: (multiple: boolean) => string;
|
6
|
+
};
|
7
|
+
export interface DropzoneBaseProps {
|
8
|
+
id?: string;
|
9
|
+
onChange?(acceptedFiles: File[], fileRejections: FileRejection[]): void;
|
10
|
+
placeholder?: string;
|
11
|
+
/** @default false */
|
12
|
+
clearable?: boolean;
|
13
|
+
/** @ignore */
|
14
|
+
className?: string;
|
15
|
+
/** @default false */
|
16
|
+
multiple?: boolean;
|
17
|
+
locale?: DropzoneLocale;
|
18
|
+
}
|
19
|
+
export declare type DropzoneProps = DropzoneBaseProps & Omit<ReactDropZoneProps, "onDrop" | "onDropAccepted" | "onDropRejected" | "multiple">;
|
20
|
+
export declare const Dropzone: VFC<DropzoneProps>;
|
21
|
+
export default Dropzone;
|
@@ -0,0 +1,152 @@
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
5
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
6
|
+
var _excluded = ["id", "placeholder", "disabled", "multiple", "clearable", "onChange", "className", "locale"];
|
7
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
10
|
+
import cx from "clsx";
|
11
|
+
import { Fragment, useCallback, useMemo, useState } from "react";
|
12
|
+
import { useDropzone } from "react-dropzone";
|
13
|
+
import { Check, UploadCloud, X } from "react-feather";
|
14
|
+
import { IconButton } from "../Button";
|
15
|
+
import { useField } from "../Field";
|
16
|
+
import { useLocale } from "../Satellite";
|
17
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
18
|
+
import { formatHumanSize } from "../utils/formatters";
|
19
|
+
import { uniqueId } from "../utils/uniqueId";
|
20
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
22
|
+
var DropzoneFileItem = function DropzoneFileItem(_ref) {
|
23
|
+
var file = _ref.file;
|
24
|
+
return /*#__PURE__*/_jsxs("span", {
|
25
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["truncate text-grey-900"]))),
|
26
|
+
children: [file.name, " - ", formatHumanSize(file.size)]
|
27
|
+
});
|
28
|
+
};
|
29
|
+
var DEFAULT_DROPZONE_LOCALE = {
|
30
|
+
clearInput: "Clear input",
|
31
|
+
placeholder: function placeholder(multiple) {
|
32
|
+
return "Drop ".concat(multiple ? "files" : "file", " here or click to select.");
|
33
|
+
}
|
34
|
+
};
|
35
|
+
var InvalidIcon = function InvalidIcon() {
|
36
|
+
return /*#__PURE__*/_jsx(X, {
|
37
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-4 h-4 w-4 text-white bg-red-700 p-px rounded-full"])))
|
38
|
+
});
|
39
|
+
};
|
40
|
+
var ValidatedIcon = function ValidatedIcon() {
|
41
|
+
return /*#__PURE__*/_jsx(Check, {
|
42
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mr-4 h-4 w-4 text-white bg-accent-600 p-px rounded-full"])))
|
43
|
+
});
|
44
|
+
};
|
45
|
+
export var Dropzone = function Dropzone(_ref2) {
|
46
|
+
var id = _ref2.id,
|
47
|
+
placeholder = _ref2.placeholder,
|
48
|
+
disabled = _ref2.disabled,
|
49
|
+
_ref2$multiple = _ref2.multiple,
|
50
|
+
multiple = _ref2$multiple === void 0 ? false : _ref2$multiple,
|
51
|
+
_ref2$clearable = _ref2.clearable,
|
52
|
+
clearable = _ref2$clearable === void 0 ? false : _ref2$clearable,
|
53
|
+
onChange = _ref2.onChange,
|
54
|
+
className = _ref2.className,
|
55
|
+
propsLocale = _ref2.locale,
|
56
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
57
|
+
var contextLocale = useLocale("dropzone");
|
58
|
+
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_DROPZONE_LOCALE), contextLocale), propsLocale);
|
59
|
+
var _useState = useState([]),
|
60
|
+
_useState2 = _slicedToArray(_useState, 2),
|
61
|
+
files = _useState2[0],
|
62
|
+
setFiles = _useState2[1];
|
63
|
+
var _useState3 = useState(false),
|
64
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
65
|
+
focused = _useState4[0],
|
66
|
+
setFocused = _useState4[1];
|
67
|
+
var _useField = useField(),
|
68
|
+
status = _useField.state.status,
|
69
|
+
labelId = _useField.labelId;
|
70
|
+
var onDrop = useCallback(function (acceptedFiles, fileRejections) {
|
71
|
+
var updatedFiles = multiple ? [].concat(_toConsumableArray(files), _toConsumableArray(acceptedFiles)) : acceptedFiles;
|
72
|
+
setFiles(updatedFiles);
|
73
|
+
onChange === null || onChange === void 0 || onChange(updatedFiles, fileRejections);
|
74
|
+
}, [multiple, files, onChange]);
|
75
|
+
var handleClear = function handleClear(evt) {
|
76
|
+
evt.stopPropagation();
|
77
|
+
setFiles([]);
|
78
|
+
onChange === null || onChange === void 0 || onChange([], []);
|
79
|
+
};
|
80
|
+
var _useDropzone = useDropzone(_objectSpread(_objectSpread({
|
81
|
+
disabled: disabled,
|
82
|
+
multiple: multiple
|
83
|
+
}, props), {}, {
|
84
|
+
onDrop: onDrop
|
85
|
+
})),
|
86
|
+
getRootProps = _useDropzone.getRootProps,
|
87
|
+
getInputProps = _useDropzone.getInputProps,
|
88
|
+
isDragActive = _useDropzone.isDragActive,
|
89
|
+
isDragReject = _useDropzone.isDragReject;
|
90
|
+
var dropzoneId = useMemo(function () {
|
91
|
+
return id !== null && id !== void 0 ? id : uniqueId("dropzone");
|
92
|
+
}, [id]);
|
93
|
+
var isValueEmpty = files.length === 0;
|
94
|
+
var isInvalid = status === "invalid";
|
95
|
+
var StatusIcon = isInvalid ? InvalidIcon : status === "validated" ? ValidatedIcon : Fragment;
|
96
|
+
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({}, getRootProps({
|
97
|
+
"aria-controls": dropzoneId,
|
98
|
+
className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n relative flex items-center group/dropzone\n border border-grey-500 rounded\n shadow-field\n overflow-hidden transition-all ease-in-out delay-100\n focus-within:border-accent-600 focus-within:shadow-field-focused\n min-h-16\n ", "\n ", "\n ", "\n ", ""])), focused && "border-accent-600 shadow-field-focused", disabled ? "cursor-not-allowed border-grey-200/30 shadow-none bg-gradient-to-b from-white to-grey-100" : "cursor-pointer", isDragReject && !disabled ? "border-red-200 cursor-not-allowed" : isDragActive ? "border-accent-500 cursor-pointer" : null, isInvalid ? "bg-red-100 border-red-700 hover:bg-red-50" : "bg-white hover:bg-grey-50"), className),
|
99
|
+
onClick: function onClick(evt) {
|
100
|
+
// Helps with https://github.com/react-dropzone/react-dropzone/issues/182
|
101
|
+
if (evt.target.closest("label")) {
|
102
|
+
evt.stopPropagation();
|
103
|
+
}
|
104
|
+
}
|
105
|
+
})), {}, {
|
106
|
+
children: [/*#__PURE__*/_jsx("input", _objectSpread({}, getInputProps({
|
107
|
+
id: dropzoneId,
|
108
|
+
"aria-labelledby": labelId,
|
109
|
+
onFocus: function onFocus() {
|
110
|
+
return setFocused(true);
|
111
|
+
},
|
112
|
+
onBlur: function onBlur() {
|
113
|
+
return setFocused(false);
|
114
|
+
}
|
115
|
+
}))), /*#__PURE__*/_jsx("div", {
|
116
|
+
className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["flex-1 flex items-center justify-center space-x-2 display-body"]))),
|
117
|
+
children: files.length > 0 ? files.length > 1 ? /*#__PURE__*/_jsx("ul", {
|
118
|
+
children: files.map(function (file) {
|
119
|
+
return /*#__PURE__*/_jsx("li", {
|
120
|
+
children: /*#__PURE__*/_jsx(DropzoneFileItem, {
|
121
|
+
file: file
|
122
|
+
})
|
123
|
+
}, file.name);
|
124
|
+
})
|
125
|
+
}) : /*#__PURE__*/_jsx(DropzoneFileItem, {
|
126
|
+
file: files[0]
|
127
|
+
}) : /*#__PURE__*/_jsxs("div", {
|
128
|
+
className: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center justify-center space-x-2 display-body"]))),
|
129
|
+
children: [/*#__PURE__*/_jsx(UploadCloud, {
|
130
|
+
size: "1rem",
|
131
|
+
className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["", ""])), disabled ? "text-grey-200" : "text-grey-500")
|
132
|
+
}), /*#__PURE__*/_jsx("p", {
|
133
|
+
className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["", ""])), disabled ? "text-grey-300" : "typo-subdued"),
|
134
|
+
children: placeholder || locale.placeholder(multiple)
|
135
|
+
})]
|
136
|
+
})
|
137
|
+
}), clearable && !disabled && !isValueEmpty && /*#__PURE__*/_jsx("span", {
|
138
|
+
className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([""]))),
|
139
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
140
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover/dropzone:visible"),
|
141
|
+
title: locale.clearInput,
|
142
|
+
icon: X,
|
143
|
+
variant: "subtle",
|
144
|
+
size: "small",
|
145
|
+
tabIndex: -1,
|
146
|
+
"aria-hidden": true,
|
147
|
+
onClick: handleClear
|
148
|
+
})
|
149
|
+
}), /*#__PURE__*/_jsx(StatusIcon, {})]
|
150
|
+
}));
|
151
|
+
};
|
152
|
+
export default Dropzone;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import type { VFC } from "react";
|
2
|
+
import type { EmptyStateProps } from "./types";
|
3
|
+
/**
|
4
|
+
* Empty states are used when a list, table, chart or page has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. This can also be shown when a features hasn't been enable.
|
5
|
+
*
|
6
|
+
* #### Features empty state
|
7
|
+
* - Use when the CTA will unlock a key feature in the dashboard. The copy and the illustration need to sell the feature and be clear on the value for the user
|
8
|
+
*
|
9
|
+
* #### Cards empty state
|
10
|
+
* - Use when the CTA will unlock a new set of features inside an already activated feature. Use the context of the interface to help users understand the value of these features and the copy to give further informations
|
11
|
+
*
|
12
|
+
* #### Results/Data empty states
|
13
|
+
* - Use when the query lead to no result or when there is no data to show based on the user filters. Always make sure to give the user suggestions to fix it in the copy
|
14
|
+
*
|
15
|
+
* ## Best practices
|
16
|
+
*
|
17
|
+
* Empty states should:
|
18
|
+
*
|
19
|
+
* - Orient users by clearly explaining the benefit and utility of a product or feature
|
20
|
+
* - Simplify a complicated experience by focusing on a few key features and benefits
|
21
|
+
* - Use simple and clear language that empowers users to move their business forward
|
22
|
+
* - Be encouraging and never make users feel unsuccessful or guilty because they haven't used a product or feature
|
23
|
+
* - Explain the steps users need to take to activate a product or feature
|
24
|
+
* - Use illustrations thoughtfully
|
25
|
+
* - Use only one primary call-to-action button
|
26
|
+
*/
|
27
|
+
export declare const EmptyState: VFC<EmptyStateProps>;
|
28
|
+
export default EmptyState;
|
@@ -0,0 +1,117 @@
|
|
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;
|
3
|
+
import cx from "clsx";
|
4
|
+
import FlexGrid from "../FlexGrid";
|
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
|
+
var CONTAINER_CONTEXT_CLASSNAMES = {
|
9
|
+
result: {
|
10
|
+
medium: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["max-w-xs"]))),
|
11
|
+
large: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["max-w-md"]))),
|
12
|
+
xlarge: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["max-w-xl"])))
|
13
|
+
},
|
14
|
+
feature: {
|
15
|
+
medium: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["max-w-sm"]))),
|
16
|
+
large: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["max-w-lg"]))),
|
17
|
+
xlarge: stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["max-w-2xl"])))
|
18
|
+
},
|
19
|
+
page: {
|
20
|
+
medium: "",
|
21
|
+
large: "",
|
22
|
+
xlarge: ""
|
23
|
+
}
|
24
|
+
};
|
25
|
+
var LEAD_ILLUS_CONTEXT_CLASSNAMES = {
|
26
|
+
result: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["mb-4"]))),
|
27
|
+
feature: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["mb-6"]))),
|
28
|
+
page: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["mb-6"])))
|
29
|
+
};
|
30
|
+
var TITLE_CONTEXT_CLASSNAMES = {
|
31
|
+
result: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["display-body"]))),
|
32
|
+
feature: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["display-medium"]))),
|
33
|
+
page: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["display-xlarge"])))
|
34
|
+
};
|
35
|
+
var DESCRIPTION_CONTEXT_CLASSNAMES = {
|
36
|
+
result: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["display-caption mt-2"]))),
|
37
|
+
feature: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["display-body mt-2"]))),
|
38
|
+
page: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["display-small mt-6"])))
|
39
|
+
};
|
40
|
+
var ACTIONS_CONTEXT_CLASSNAMES = {
|
41
|
+
result: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["mt-1"]))),
|
42
|
+
feature: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["mt-3"]))),
|
43
|
+
page: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["mt-6 md:flex-row"])))
|
44
|
+
};
|
45
|
+
var renderEmptyState = function renderEmptyState(_ref) {
|
46
|
+
var title = _ref.title,
|
47
|
+
description = _ref.description,
|
48
|
+
actions = _ref.actions,
|
49
|
+
actionsDirection = _ref.actionsDirection,
|
50
|
+
leadIllustration = _ref.leadIllustration,
|
51
|
+
pageIllustration = _ref.pageIllustration,
|
52
|
+
_ref$usageContext = _ref.usageContext,
|
53
|
+
usageContext = _ref$usageContext === void 0 ? "feature" : _ref$usageContext,
|
54
|
+
_ref$width = _ref.width,
|
55
|
+
width = _ref$width === void 0 ? "medium" : _ref$width,
|
56
|
+
_ref$centered = _ref.centered,
|
57
|
+
centered = _ref$centered === void 0 ? false : _ref$centered;
|
58
|
+
var containerClassNames = cx(stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["flex items-center"]))), CONTAINER_CONTEXT_CLASSNAMES[usageContext][width], centered ? stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["justify-center text-center lg:flex-col"]))) : stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["justify-between flex-col lg:flex-row"]))));
|
59
|
+
var titleClassNames = cx(stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["text-grey-900"]))), TITLE_CONTEXT_CLASSNAMES[usageContext]);
|
60
|
+
var descriptionClassNames = cx(stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["text-grey-600"]))), DESCRIPTION_CONTEXT_CLASSNAMES[usageContext]);
|
61
|
+
var actionsClassNames = cx(ACTIONS_CONTEXT_CLASSNAMES[usageContext]);
|
62
|
+
return /*#__PURE__*/_jsxs("div", {
|
63
|
+
className: containerClassNames,
|
64
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
65
|
+
className: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["min-w-2/5"]))),
|
66
|
+
children: [centered && !!leadIllustration && /*#__PURE__*/_jsx("div", {
|
67
|
+
className: LEAD_ILLUS_CONTEXT_CLASSNAMES[usageContext],
|
68
|
+
children: leadIllustration
|
69
|
+
}), /*#__PURE__*/_jsx("h2", {
|
70
|
+
className: titleClassNames,
|
71
|
+
children: title
|
72
|
+
}), !!description && /*#__PURE__*/_jsx("div", {
|
73
|
+
className: descriptionClassNames,
|
74
|
+
children: description
|
75
|
+
}), !!actions && /*#__PURE__*/_jsx(FlexGrid, {
|
76
|
+
className: actionsClassNames,
|
77
|
+
alignment: centered ? "center" : "leading",
|
78
|
+
distribution: centered ? "center" : "leading",
|
79
|
+
direction: actionsDirection !== null && actionsDirection !== void 0 ? actionsDirection : centered ? "column" : "row",
|
80
|
+
spacing: "sm",
|
81
|
+
children: actions
|
82
|
+
})]
|
83
|
+
}), !centered && usageContext === "page" && /*#__PURE__*/_jsx("div", {
|
84
|
+
className: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["empty-state-illustration ml-16 hidden lg:flex items-center justify-center"]))),
|
85
|
+
children: pageIllustration
|
86
|
+
})]
|
87
|
+
});
|
88
|
+
};
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Empty states are used when a list, table, chart or page has no items or data to show. This is an opportunity to provide explanation or guidance to help users progress. This can also be shown when a features hasn't been enable.
|
92
|
+
*
|
93
|
+
* #### Features empty state
|
94
|
+
* - Use when the CTA will unlock a key feature in the dashboard. The copy and the illustration need to sell the feature and be clear on the value for the user
|
95
|
+
*
|
96
|
+
* #### Cards empty state
|
97
|
+
* - Use when the CTA will unlock a new set of features inside an already activated feature. Use the context of the interface to help users understand the value of these features and the copy to give further informations
|
98
|
+
*
|
99
|
+
* #### Results/Data empty states
|
100
|
+
* - Use when the query lead to no result or when there is no data to show based on the user filters. Always make sure to give the user suggestions to fix it in the copy
|
101
|
+
*
|
102
|
+
* ## Best practices
|
103
|
+
*
|
104
|
+
* Empty states should:
|
105
|
+
*
|
106
|
+
* - Orient users by clearly explaining the benefit and utility of a product or feature
|
107
|
+
* - Simplify a complicated experience by focusing on a few key features and benefits
|
108
|
+
* - Use simple and clear language that empowers users to move their business forward
|
109
|
+
* - Be encouraging and never make users feel unsuccessful or guilty because they haven't used a product or feature
|
110
|
+
* - Explain the steps users need to take to activate a product or feature
|
111
|
+
* - Use illustrations thoughtfully
|
112
|
+
* - Use only one primary call-to-action button
|
113
|
+
*/
|
114
|
+
export var EmptyState = function EmptyState(props) {
|
115
|
+
return renderEmptyState(props);
|
116
|
+
};
|
117
|
+
export default EmptyState;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import _plugin from "tailwindcss/plugin";
|
2
|
+
// @ts-check
|
3
|
+
var plugin = _plugin;
|
4
|
+
var emptyStatePlugin = plugin(function (_ref) {
|
5
|
+
var addComponents = _ref.addComponents;
|
6
|
+
// Empty State illustration
|
7
|
+
addComponents({
|
8
|
+
".empty-state-illustration": {
|
9
|
+
minWidth: "500px",
|
10
|
+
minHeight: "500px"
|
11
|
+
}
|
12
|
+
});
|
13
|
+
});
|
14
|
+
export default emptyStatePlugin;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import type { ReactNode } from "react";
|
2
|
+
import type { FlexGridDirection } from "../FlexGrid";
|
3
|
+
export declare type EmptyStateUsageContexts = "result" | "feature" | "page";
|
4
|
+
export declare type EmptyStateWidths = "medium" | "large" | "xlarge";
|
5
|
+
export interface EmptyStatePropsAll {
|
6
|
+
/** Descriptive title for the state */
|
7
|
+
title: ReactNode;
|
8
|
+
/** Optional description to explain why the screen is empty or define next steps */
|
9
|
+
description?: ReactNode;
|
10
|
+
/** Buttons */
|
11
|
+
actions?: ReactNode;
|
12
|
+
/** Direction overwrite for the buttons */
|
13
|
+
actionsDirection?: FlexGridDirection;
|
14
|
+
/** Add a `<Medallion />`, an `img` element or `svg` in there */
|
15
|
+
leadIllustration?: ReactNode;
|
16
|
+
/** Plop in an `img` element or `svg` here */
|
17
|
+
pageIllustration?: ReactNode;
|
18
|
+
/**
|
19
|
+
* UsageContext of the component
|
20
|
+
* @default feature
|
21
|
+
*/
|
22
|
+
usageContext?: EmptyStateUsageContexts;
|
23
|
+
/**
|
24
|
+
* Define whether or not content should be centered
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
centered?: boolean;
|
28
|
+
/**
|
29
|
+
* Defines how wide the EmptyState can expand
|
30
|
+
* @default medium
|
31
|
+
*/
|
32
|
+
width?: EmptyStateWidths;
|
33
|
+
}
|
34
|
+
interface EmptyStatePropsUsageContextResult extends Omit<EmptyStatePropsAll, "usageContext" | "illustration"> {
|
35
|
+
usageContext: "result";
|
36
|
+
pageIllustration?: never;
|
37
|
+
}
|
38
|
+
interface EmptyStatePropsUsageContextFeature extends Omit<EmptyStatePropsAll, "usageContext" | "illustration"> {
|
39
|
+
usageContext: "feature";
|
40
|
+
illustration?: never;
|
41
|
+
}
|
42
|
+
interface EmptyStatePropsUsageContextPage extends Omit<EmptyStatePropsAll, "usageContext" | "centered"> {
|
43
|
+
usageContext: "page";
|
44
|
+
centered?: boolean;
|
45
|
+
}
|
46
|
+
interface EmptyStatePropsUsageContextDefault extends Omit<EmptyStatePropsUsageContextFeature, "usageContext"> {
|
47
|
+
usageContext?: undefined;
|
48
|
+
}
|
49
|
+
export declare type EmptyStateProps = EmptyStatePropsUsageContextDefault | EmptyStatePropsUsageContextResult | EmptyStatePropsUsageContextFeature | EmptyStatePropsUsageContextPage;
|
50
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { type ReactChild, type ReactNode, type VFC } from "react";
|
2
|
+
import type { FieldState } from "./FieldContext";
|
3
|
+
export interface FieldProps {
|
4
|
+
/** @ignore */
|
5
|
+
className?: string;
|
6
|
+
/** Label to display above the nested input */
|
7
|
+
label?: ReactChild;
|
8
|
+
labelId?: string;
|
9
|
+
labelFor?: string;
|
10
|
+
/** Helpful description to show below the `Field` */
|
11
|
+
description?: ReactNode;
|
12
|
+
/**
|
13
|
+
* An object to handle state
|
14
|
+
*/
|
15
|
+
state?: FieldState;
|
16
|
+
inline?: boolean;
|
17
|
+
children: ReactNode;
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Use text fields to help users enter, select, and search for text. Text fields are normally found within a form but can also be part of a modal, search, or card
|
21
|
+
*
|
22
|
+
* ## Structure
|
23
|
+
* - **Label**: Use the label to provide instructions critical to using the text field. Labels should indicate what sort of information the field requires, be concise and actionable. Consider starting with action verbs (e.g. enter; fill; select). Put labels directly above their input and align them to the left
|
24
|
+
* - **Placeholder text**: Use to provide additional, non-critical instructions around how they should use the field. Try using examples over instructions whenever possible
|
25
|
+
* - **Helper text**: Use to give additional context or extra guidance. Only use this where clarification is required, and try not to overuse it
|
26
|
+
* - When you provide help text via the helpText prop or an inline error message via the error prop, the help or error content is conveyed to screen reader users with the aria-describedby attribute. This attribute causes the content to be read along with the label, either immediately or after a short delay
|
27
|
+
*
|
28
|
+
* ## Validation behavior
|
29
|
+
* - **Validation icon**: helps indicate what state the field has. This can manifest as validation (error, success) or utility (show/hide password, clear)
|
30
|
+
* - **Error text**: is activated after the input is deselected and communicates more information signified by the input icon. This typically displays an error message related to the field. Keep this text as short as possible and make sure it helps the user to recover from an error
|
31
|
+
*
|
32
|
+
* ## Content guidelines
|
33
|
+
* #### Field label
|
34
|
+
* - Place above the form field
|
35
|
+
* - Keep it short and succinct (1–3 words)
|
36
|
+
* - Write in sentence case (the first word capitalized, the rest lowercase)
|
37
|
+
*
|
38
|
+
* #### Field placeholder
|
39
|
+
* - Mandatory to use, however is supplementary in terms of information importance (because the text has low contrast and is not visible when text is entered)
|
40
|
+
* - Use examples instead of instructions whenever possible
|
41
|
+
* - Include “E.g.:” before an example
|
42
|
+
*
|
43
|
+
* #### Help / error text
|
44
|
+
* - Clearly explain what is expected (help) or what went wrong and how to fix it (error)
|
45
|
+
* - Be short and concise, no more than a single sentence
|
46
|
+
* - Use passive voice so users don't feel like they're being blamed for the error
|
47
|
+
*
|
48
|
+
* #### Designating optional fields
|
49
|
+
* - Try to only ask for information that's required
|
50
|
+
* - If you need to ask users to provide optional information, mark the field optional by placing the text “(optional)” at the end of the field's label
|
51
|
+
* - Don't mark required fields with asterisks
|
52
|
+
*/
|
53
|
+
export declare const Field: VFC<FieldProps>;
|
54
|
+
export default Field;
|