@algolia/satellite 1.0.0-beta.179 → 1.0.0-beta.180
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/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +0 -1
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +2 -3
- package/cjs/AnnouncementBadge/index.d.ts +0 -1
- package/cjs/AnnouncementBadge/index.js +2 -13
- package/cjs/AutoComplete/AutoComplete.d.ts +0 -1
- package/cjs/AutoComplete/AutoComplete.js +10 -11
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +0 -1
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +2 -3
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +0 -1
- package/cjs/AutoComplete/components/DefaultOptionItem.js +2 -3
- package/cjs/AutoComplete/index.d.ts +0 -1
- package/cjs/AutoComplete/index.js +2 -11
- package/cjs/AutoComplete/utils.js +3 -4
- package/cjs/Avatars/ApplicationAvatar.d.ts +0 -1
- package/cjs/Avatars/ApplicationAvatar.js +2 -3
- package/cjs/Avatars/UserAvatar.d.ts +0 -1
- package/cjs/Avatars/UserAvatar.js +2 -3
- package/cjs/Avatars/index.d.ts +0 -1
- package/cjs/Avatars/index.js +2 -14
- package/cjs/Avatars/utils.js +3 -3
- package/cjs/Badge/Badge.d.ts +1 -1
- package/cjs/Badge/Badge.js +5 -6
- package/cjs/Badge/index.d.ts +0 -1
- package/cjs/Badge/index.js +2 -13
- package/cjs/Banners/Alert/Alert.d.ts +0 -1
- package/cjs/Banners/Alert/Alert.js +2 -3
- package/cjs/Banners/Alert/index.d.ts +0 -1
- package/cjs/Banners/Alert/index.js +2 -13
- package/cjs/Banners/Promote/Promote.d.ts +1 -1
- package/cjs/Banners/Promote/Promote.js +4 -5
- package/cjs/Banners/Promote/index.d.ts +0 -1
- package/cjs/Banners/Promote/index.js +2 -13
- package/cjs/Banners/SystemNotification/SystemNotification.d.ts +0 -1
- package/cjs/Banners/SystemNotification/SystemNotification.js +2 -3
- package/cjs/Banners/SystemNotification/index.d.ts +0 -1
- package/cjs/Banners/SystemNotification/index.js +2 -13
- package/cjs/Button/Button.d.ts +0 -1
- package/cjs/Button/Button.js +2 -3
- package/cjs/Button/ButtonGroup.d.ts +0 -1
- package/cjs/Button/ButtonGroup.js +2 -3
- package/cjs/Button/IconButton.d.ts +0 -1
- package/cjs/Button/IconButton.js +2 -3
- package/cjs/Button/PolymorphicButton.js +2 -2
- package/cjs/Button/PolymorphicIconButton.js +2 -2
- package/cjs/Button/index.d.ts +0 -1
- package/cjs/Button/index.js +2 -15
- package/cjs/Card/Card.d.ts +3 -3
- package/cjs/Card/Card.js +5 -6
- package/cjs/Card/components/CardHeader.d.ts +0 -1
- package/cjs/Card/components/CardHeader.js +2 -3
- package/cjs/Card/components/CardTitle.d.ts +1 -1
- package/cjs/Card/components/CardTitle.js +2 -3
- package/cjs/Card/index.d.ts +0 -1
- package/cjs/Card/index.js +2 -15
- package/cjs/Checkbox/Checkbox.d.ts +1 -1
- package/cjs/Checkbox/Checkbox.js +4 -5
- package/cjs/Checkbox/index.d.ts +0 -1
- package/cjs/Checkbox/index.js +2 -13
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +2 -3
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +8 -8
- package/cjs/DatePicker/DatePicker/DatePicker.js +15 -16
- package/cjs/DatePicker/DatePicker/index.d.ts +0 -1
- package/cjs/DatePicker/DatePicker/index.js +2 -14
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +15 -16
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +4 -5
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +5 -6
- package/cjs/DatePicker/DateRangePicker/index.d.ts +0 -1
- package/cjs/DatePicker/DateRangePicker/index.js +2 -15
- package/cjs/DatePicker/components/Calendar.d.ts +3 -3
- package/cjs/DatePicker/components/Calendar.js +5 -6
- package/cjs/DatePicker/components/Display.d.ts +2 -3
- package/cjs/DatePicker/components/Display.js +5 -7
- package/cjs/DatePicker/components/Footer.d.ts +2 -3
- package/cjs/DatePicker/components/Footer.js +3 -4
- package/cjs/DatePicker/components/FooterActions.d.ts +2 -3
- package/cjs/DatePicker/components/FooterActions.js +3 -4
- package/cjs/DatePicker/components/Modal.d.ts +2 -3
- package/cjs/DatePicker/components/Modal.js +3 -4
- package/cjs/DatePicker/components/NavBar.d.ts +1 -2
- package/cjs/DatePicker/components/NavBar.js +3 -4
- package/cjs/DatePicker/components/SidePanel.d.ts +2 -3
- package/cjs/DatePicker/components/SidePanel.js +3 -4
- package/cjs/DatePicker/components/index.d.ts +7 -12
- package/cjs/DatePicker/components/index.js +61 -34
- package/cjs/DatePicker/types.d.ts +2 -2
- package/cjs/Dropdown/Dropdown.d.ts +8 -8
- package/cjs/Dropdown/Dropdown.js +21 -22
- package/cjs/Dropdown/DropdownButton.d.ts +0 -1
- package/cjs/Dropdown/DropdownButton.js +6 -7
- package/cjs/Dropdown/DropdownContext.d.ts +0 -1
- package/cjs/Dropdown/DropdownContext.js +2 -3
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownButtonItem.js +4 -5
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +2 -3
- package/cjs/Dropdown/components/DropdownDivider.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownDivider.js +2 -3
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownFooterItem.js +2 -3
- package/cjs/Dropdown/components/DropdownLinkItem.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownLinkItem.js +6 -7
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownRadioItem.js +4 -5
- package/cjs/Dropdown/components/DropdownTitle.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownTitle.js +2 -3
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +0 -1
- package/cjs/Dropdown/components/DropdownToggleItem.js +4 -5
- package/cjs/Dropdown/index.d.ts +0 -1
- package/cjs/Dropdown/index.js +2 -24
- package/cjs/Dropdown/useDropdownItemProps.d.ts +0 -1
- package/cjs/Dropdown/useDropdownItemProps.js +2 -3
- package/cjs/Dropzone/Dropzone.d.ts +0 -1
- package/cjs/Dropzone/Dropzone.js +2 -3
- package/cjs/Dropzone/index.d.ts +0 -1
- package/cjs/Dropzone/index.js +2 -13
- package/cjs/EmptyState/EmptyState.d.ts +0 -1
- package/cjs/EmptyState/EmptyState.js +2 -3
- package/cjs/EmptyState/index.d.ts +0 -1
- package/cjs/EmptyState/index.js +2 -14
- package/cjs/Field/Field.d.ts +0 -1
- package/cjs/Field/Field.js +2 -3
- package/cjs/Field/index.d.ts +0 -1
- package/cjs/Field/index.js +2 -11
- package/cjs/FlexGrid/FlexGrid.d.ts +0 -1
- package/cjs/FlexGrid/FlexGrid.js +4 -5
- package/cjs/FlexGrid/index.d.ts +0 -1
- package/cjs/FlexGrid/index.js +2 -13
- package/cjs/HelpUnderline/HelpUnderline.d.ts +0 -1
- package/cjs/HelpUnderline/HelpUnderline.js +2 -3
- package/cjs/HelpUnderline/index.d.ts +0 -1
- package/cjs/HelpUnderline/index.js +2 -13
- package/cjs/Input/Input.d.ts +0 -1
- package/cjs/Input/Input.js +9 -10
- package/cjs/Input/index.d.ts +0 -1
- package/cjs/Input/index.js +2 -13
- package/cjs/Insert/Insert.d.ts +1 -1
- package/cjs/Insert/Insert.js +6 -7
- package/cjs/Insert/index.d.ts +0 -1
- package/cjs/Insert/index.js +2 -13
- package/cjs/KeyboardKey/index.d.ts +0 -1
- package/cjs/KeyboardKey/index.js +0 -8
- package/cjs/Link/BaseLink.d.ts +0 -1
- package/cjs/Link/BaseLink.js +4 -5
- package/cjs/Link/ButtonLink.d.ts +0 -1
- package/cjs/Link/ButtonLink.js +4 -5
- package/cjs/Link/IconButtonLink.d.ts +0 -1
- package/cjs/Link/IconButtonLink.js +4 -5
- package/cjs/Link/Link.d.ts +0 -1
- package/cjs/Link/Link.js +4 -5
- package/cjs/Link/index.d.ts +0 -1
- package/cjs/Link/index.js +2 -16
- package/cjs/Medallion/Medallion.d.ts +0 -1
- package/cjs/Medallion/Medallion.js +2 -3
- package/cjs/Medallion/index.d.ts +0 -1
- package/cjs/Medallion/index.js +2 -14
- package/cjs/MenuButton/MenuButton.d.ts +0 -1
- package/cjs/MenuButton/MenuButton.js +10 -11
- package/cjs/MenuButton/components/Content.js +2 -2
- package/cjs/MenuButton/components/CustomTrigger.d.ts +0 -1
- package/cjs/MenuButton/components/CustomTrigger.js +2 -3
- package/cjs/MenuButton/components/DefaultTrigger.d.ts +0 -1
- package/cjs/MenuButton/components/DefaultTrigger.js +4 -5
- package/cjs/MenuButton/components/Divider.d.ts +0 -1
- package/cjs/MenuButton/components/Divider.js +2 -3
- package/cjs/MenuButton/components/Label.d.ts +0 -1
- package/cjs/MenuButton/components/Label.js +2 -3
- package/cjs/MenuButton/components/collapsible/CollapsibleItem.d.ts +0 -1
- package/cjs/MenuButton/components/collapsible/CollapsibleItem.js +2 -3
- package/cjs/MenuButton/components/items/Item.d.ts +0 -1
- package/cjs/MenuButton/components/items/Item.js +2 -3
- package/cjs/MenuButton/components/items/LinkItem.d.ts +7 -1
- package/cjs/MenuButton/components/items/LinkItem.js +12 -9
- package/cjs/MenuButton/components/items/RadioItem.d.ts +0 -1
- package/cjs/MenuButton/components/items/RadioItem.js +4 -5
- package/cjs/MenuButton/components/items/ToggleItem.d.ts +0 -1
- package/cjs/MenuButton/components/items/ToggleItem.js +4 -5
- package/cjs/MenuButton/useMenuItemProps.d.ts +0 -1
- package/cjs/MenuButton/useMenuItemProps.js +2 -3
- package/cjs/Modal/Modal.d.ts +3 -3
- package/cjs/Modal/Modal.js +7 -8
- package/cjs/Modal/components/ModalFooter.d.ts +0 -1
- package/cjs/Modal/components/ModalFooter.js +4 -5
- package/cjs/Modal/components/ModalSection.d.ts +0 -1
- package/cjs/Modal/components/ModalSection.js +2 -3
- package/cjs/Modal/index.d.ts +0 -1
- package/cjs/Modal/index.js +2 -15
- package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +1 -1
- package/cjs/Pagination/CompactPagination/CompactPagination.js +2 -3
- package/cjs/Pagination/CompactPagination/index.d.ts +0 -1
- package/cjs/Pagination/CompactPagination/index.js +2 -13
- package/cjs/Pagination/DotPagination/DotPagination.d.ts +0 -1
- package/cjs/Pagination/DotPagination/DotPagination.js +2 -3
- package/cjs/Pagination/DotPagination/index.d.ts +0 -1
- package/cjs/Pagination/DotPagination/index.js +2 -13
- package/cjs/Pagination/Pagination/Pagination.d.ts +0 -1
- package/cjs/Pagination/Pagination/Pagination.js +9 -13
- package/cjs/Pagination/Pagination/index.d.ts +0 -1
- package/cjs/Pagination/Pagination/index.js +2 -13
- package/cjs/Pagination/index.d.ts +0 -1
- package/cjs/Pagination/index.js +2 -15
- package/cjs/Popover/Popover.d.ts +0 -1
- package/cjs/Popover/Popover.js +2 -3
- package/cjs/Popover/index.d.ts +0 -1
- package/cjs/Popover/index.js +2 -11
- package/cjs/ProgressBar/ProgressBar.d.ts +0 -1
- package/cjs/ProgressBar/ProgressBar.js +2 -3
- package/cjs/ProgressBar/index.d.ts +0 -1
- package/cjs/ProgressBar/index.js +2 -13
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +0 -1
- package/cjs/ProgressSpinner/ProgressSpinner.js +2 -3
- package/cjs/ProgressSpinner/index.d.ts +0 -1
- package/cjs/ProgressSpinner/index.js +2 -13
- package/cjs/RadioGroup/RadioButton.d.ts +0 -1
- package/cjs/RadioGroup/RadioButton.js +2 -3
- package/cjs/RadioGroup/RadioGroup.d.ts +1 -1
- package/cjs/RadioGroup/RadioGroup.js +8 -9
- package/cjs/RadioGroup/index.d.ts +0 -1
- package/cjs/RadioGroup/index.js +2 -15
- package/cjs/RangeSlider/RangeSlider.d.ts +1 -1
- package/cjs/RangeSlider/RangeSlider.js +2 -3
- package/cjs/RangeSlider/index.d.ts +0 -1
- package/cjs/RangeSlider/index.js +2 -13
- package/cjs/Satellite/Satellite.d.ts +0 -1
- package/cjs/Satellite/Satellite.js +4 -6
- package/cjs/Satellite/SatelliteContext.d.ts +0 -1
- package/cjs/Satellite/SatelliteContext.js +2 -3
- package/cjs/Satellite/index.d.ts +0 -1
- package/cjs/Satellite/index.js +2 -17
- package/cjs/Satellite/locale.js +2 -3
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +0 -1
- package/cjs/ScrollIndicator/ScrollIndicator.js +2 -3
- package/cjs/ScrollIndicator/index.d.ts +0 -1
- package/cjs/ScrollIndicator/index.js +2 -13
- package/cjs/Select/Select.d.ts +0 -1
- package/cjs/Select/Select.js +2 -3
- package/cjs/Select/index.d.ts +0 -1
- package/cjs/Select/index.js +2 -13
- package/cjs/Separator/Separator.d.ts +0 -1
- package/cjs/Separator/Separator.js +2 -3
- package/cjs/Separator/index.d.ts +0 -1
- package/cjs/Separator/index.js +2 -13
- package/cjs/Sidebar/Sidebar.js +4 -4
- package/cjs/Sidebar/SidebarButtonLink.js +2 -2
- package/cjs/Sidebar/SidebarLink.js +2 -2
- package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +2 -2
- package/cjs/Stepper/Step.d.ts +0 -1
- package/cjs/Stepper/Step.js +2 -3
- package/cjs/Stepper/Stepper.d.ts +0 -1
- package/cjs/Stepper/Stepper.js +2 -3
- package/cjs/Stepper/index.d.ts +0 -1
- package/cjs/Stepper/index.js +2 -15
- package/cjs/Switch/Switch.d.ts +0 -1
- package/cjs/Switch/Switch.js +4 -5
- package/cjs/Switch/SwitchOption.d.ts +0 -1
- package/cjs/Switch/SwitchOption.js +2 -3
- package/cjs/Switch/index.d.ts +0 -1
- package/cjs/Switch/index.js +2 -14
- package/cjs/Tables/DataTable/DataTable.d.ts +1 -1
- package/cjs/Tables/DataTable/DataTable.js +15 -16
- package/cjs/Tables/DataTable/components/Body.d.ts +2 -3
- package/cjs/Tables/DataTable/components/Body.js +6 -7
- package/cjs/Tables/DataTable/components/Footer.d.ts +2 -3
- package/cjs/Tables/DataTable/components/Footer.js +5 -9
- package/cjs/Tables/DataTable/components/Header.d.ts +2 -3
- package/cjs/Tables/DataTable/components/Header.js +5 -6
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +2 -3
- package/cjs/Tables/DataTable/components/HeaderCell.js +3 -4
- package/cjs/Tables/DataTable/components/Loader.d.ts +2 -3
- package/cjs/Tables/DataTable/components/Loader.js +8 -9
- package/cjs/Tables/DataTable/index.d.ts +0 -1
- package/cjs/Tables/DataTable/index.js +2 -14
- package/cjs/Tables/Table/Table.d.ts +0 -1
- package/cjs/Tables/Table/Table.js +4 -5
- package/cjs/Tables/Table/components/TableFooter.d.ts +0 -1
- package/cjs/Tables/Table/components/TableFooter.js +2 -3
- package/cjs/Tables/Table/index.d.ts +0 -1
- package/cjs/Tables/Table/index.js +2 -14
- package/cjs/Tables/index.d.ts +0 -1
- package/cjs/Tables/index.js +2 -14
- package/cjs/Tabs/ContentTabs.d.ts +0 -1
- package/cjs/Tabs/ContentTabs.js +4 -5
- package/cjs/Tabs/LinkTabs.d.ts +0 -1
- package/cjs/Tabs/LinkTabs.js +6 -7
- package/cjs/Tabs/components/LinkTab.d.ts +0 -1
- package/cjs/Tabs/components/LinkTab.js +6 -7
- package/cjs/Tabs/index.d.ts +0 -1
- package/cjs/Tabs/index.js +2 -15
- package/cjs/Tag/Tag.d.ts +0 -1
- package/cjs/Tag/Tag.js +2 -3
- package/cjs/Tag/index.d.ts +0 -1
- package/cjs/Tag/index.js +2 -13
- package/cjs/TextArea/TextArea.d.ts +0 -1
- package/cjs/TextArea/TextArea.js +2 -3
- package/cjs/TextArea/index.d.ts +0 -1
- package/cjs/TextArea/index.js +2 -13
- package/cjs/TextWrap/TextWrap.d.ts +0 -1
- package/cjs/TextWrap/TextWrap.js +4 -5
- package/cjs/TextWrap/index.d.ts +0 -1
- package/cjs/TextWrap/index.js +2 -13
- package/cjs/Toast/Toast.d.ts +0 -1
- package/cjs/Toast/Toast.js +6 -7
- package/cjs/Toast/Toasts.d.ts +0 -1
- package/cjs/Toast/Toasts.js +4 -5
- package/cjs/Toast/index.d.ts +0 -1
- package/cjs/Toast/index.js +2 -15
- package/cjs/Toggle/Toggle.d.ts +0 -1
- package/cjs/Toggle/Toggle.js +2 -3
- package/cjs/Toggle/index.d.ts +0 -1
- package/cjs/Toggle/index.js +2 -13
- package/cjs/Tooltip/OverflowTooltipWrapper.js +2 -2
- package/cjs/Tooltip/Tooltip.d.ts +0 -1
- package/cjs/Tooltip/Tooltip.js +2 -3
- package/cjs/Tooltip/TooltipWrapper.js +2 -2
- package/cjs/Tooltip/index.d.ts +0 -1
- package/cjs/Tooltip/index.js +2 -15
- package/cjs/UserContent/UserContent.d.ts +0 -1
- package/cjs/UserContent/UserContent.js +2 -3
- package/cjs/utils/genericChangeHandler.d.ts +1 -1
- package/cjs/utils/genericChangeHandler.js +1 -3
- package/cjs/utils/hashCode.d.ts +0 -1
- package/cjs/utils/hashCode.js +2 -3
- package/cjs/utils/isCssPropertySupported.d.ts +1 -2
- package/cjs/utils/isCssPropertySupported.js +3 -4
- package/cjs/utils/isNil.d.ts +0 -1
- package/cjs/utils/isNil.js +2 -3
- package/cjs/utils/isRenderedChild.d.ts +1 -2
- package/cjs/utils/isRenderedChild.js +3 -4
- package/cjs/utils/matchLocation.d.ts +1 -2
- package/cjs/utils/matchLocation.js +5 -7
- package/cjs/utils/onlyText.d.ts +1 -2
- package/cjs/utils/onlyText.js +3 -4
- package/cjs/utils/parseUrl.d.ts +0 -1
- package/cjs/utils/parseUrl.js +2 -3
- package/cjs/utils/pluralize.d.ts +1 -1
- package/cjs/utils/pluralize.js +1 -3
- package/cjs/utils/range.d.ts +0 -1
- package/cjs/utils/range.js +1 -3
- package/cjs/utils/toSentenceCase.d.ts +0 -1
- package/cjs/utils/toSentenceCase.js +2 -3
- package/cjs/utils/uniqBy.d.ts +0 -1
- package/cjs/utils/uniqBy.js +1 -3
- package/cjs/utils/uniqueId.d.ts +0 -1
- package/cjs/utils/uniqueId.js +1 -3
- package/cjs/utils/useForwardedRef.d.ts +1 -2
- package/cjs/utils/useForwardedRef.js +2 -3
- package/cjs/utils/useLinkProps.d.ts +0 -1
- package/cjs/utils/useLinkProps.js +4 -6
- package/cjs/utils/useTriggerInputChange.d.ts +2 -2
- package/cjs/utils/useTriggerInputChange.js +3 -4
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +0 -1
- package/esm/AnnouncementBadge/AnnouncementBadge.js +1 -2
- package/esm/AnnouncementBadge/index.d.ts +0 -1
- package/esm/AnnouncementBadge/index.js +1 -2
- package/esm/AutoComplete/AutoComplete.d.ts +0 -1
- package/esm/AutoComplete/AutoComplete.js +5 -6
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +0 -1
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +1 -2
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +0 -1
- package/esm/AutoComplete/components/DefaultOptionItem.js +1 -2
- package/esm/AutoComplete/index.d.ts +0 -1
- package/esm/AutoComplete/index.js +1 -2
- package/esm/AutoComplete/utils.js +1 -1
- package/esm/Avatars/ApplicationAvatar.d.ts +0 -1
- package/esm/Avatars/ApplicationAvatar.js +1 -2
- package/esm/Avatars/UserAvatar.d.ts +0 -1
- package/esm/Avatars/UserAvatar.js +1 -2
- package/esm/Avatars/index.d.ts +0 -1
- package/esm/Avatars/index.js +1 -2
- package/esm/Avatars/utils.js +1 -1
- package/esm/Badge/Badge.d.ts +1 -1
- package/esm/Badge/Badge.js +2 -3
- package/esm/Badge/index.d.ts +0 -1
- package/esm/Badge/index.js +1 -2
- package/esm/Banners/Alert/Alert.d.ts +0 -1
- package/esm/Banners/Alert/Alert.js +1 -2
- package/esm/Banners/Alert/index.d.ts +0 -1
- package/esm/Banners/Alert/index.js +1 -2
- package/esm/Banners/Promote/Promote.d.ts +1 -1
- package/esm/Banners/Promote/Promote.js +2 -3
- package/esm/Banners/Promote/index.d.ts +0 -1
- package/esm/Banners/Promote/index.js +1 -2
- package/esm/Banners/SystemNotification/SystemNotification.d.ts +0 -1
- package/esm/Banners/SystemNotification/SystemNotification.js +1 -2
- package/esm/Banners/SystemNotification/index.d.ts +0 -1
- package/esm/Banners/SystemNotification/index.js +1 -2
- package/esm/Button/Button.d.ts +0 -1
- package/esm/Button/Button.js +1 -2
- package/esm/Button/ButtonGroup.d.ts +0 -1
- package/esm/Button/ButtonGroup.js +1 -2
- package/esm/Button/IconButton.d.ts +0 -1
- package/esm/Button/IconButton.js +1 -2
- package/esm/Button/PolymorphicButton.js +1 -1
- package/esm/Button/PolymorphicIconButton.js +1 -1
- package/esm/Button/index.d.ts +0 -1
- package/esm/Button/index.js +1 -1
- package/esm/Card/Card.d.ts +3 -3
- package/esm/Card/Card.js +3 -4
- package/esm/Card/components/CardHeader.d.ts +0 -1
- package/esm/Card/components/CardHeader.js +1 -2
- package/esm/Card/components/CardTitle.d.ts +1 -1
- package/esm/Card/components/CardTitle.js +1 -2
- package/esm/Card/index.d.ts +0 -1
- package/esm/Card/index.js +1 -2
- package/esm/Checkbox/Checkbox.d.ts +1 -1
- package/esm/Checkbox/Checkbox.js +2 -3
- package/esm/Checkbox/index.d.ts +0 -1
- package/esm/Checkbox/index.js +1 -2
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
- package/esm/ClickAwayContainer/ClickAwayContainer.js +1 -2
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +8 -8
- package/esm/DatePicker/DatePicker/DatePicker.js +14 -15
- package/esm/DatePicker/DatePicker/index.d.ts +0 -1
- package/esm/DatePicker/DatePicker/index.js +1 -2
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +13 -14
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +4 -5
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +4 -5
- package/esm/DatePicker/DateRangePicker/index.d.ts +0 -1
- package/esm/DatePicker/DateRangePicker/index.js +1 -2
- package/esm/DatePicker/components/Calendar.d.ts +3 -3
- package/esm/DatePicker/components/Calendar.js +3 -4
- package/esm/DatePicker/components/Display.d.ts +2 -3
- package/esm/DatePicker/components/Display.js +3 -4
- package/esm/DatePicker/components/Footer.d.ts +2 -3
- package/esm/DatePicker/components/Footer.js +2 -3
- package/esm/DatePicker/components/FooterActions.d.ts +2 -3
- package/esm/DatePicker/components/FooterActions.js +2 -3
- package/esm/DatePicker/components/Modal.d.ts +2 -3
- package/esm/DatePicker/components/Modal.js +2 -3
- package/esm/DatePicker/components/NavBar.d.ts +1 -2
- package/esm/DatePicker/components/NavBar.js +2 -3
- package/esm/DatePicker/components/SidePanel.d.ts +2 -3
- package/esm/DatePicker/components/SidePanel.js +2 -3
- package/esm/DatePicker/components/index.d.ts +7 -12
- package/esm/DatePicker/components/index.js +6 -6
- package/esm/DatePicker/types.d.ts +2 -2
- package/esm/Dropdown/Dropdown.d.ts +8 -8
- package/esm/Dropdown/Dropdown.js +10 -11
- package/esm/Dropdown/DropdownButton.d.ts +0 -1
- package/esm/Dropdown/DropdownButton.js +3 -4
- package/esm/Dropdown/DropdownContext.d.ts +0 -1
- package/esm/Dropdown/DropdownContext.js +1 -2
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +0 -1
- package/esm/Dropdown/components/DropdownButtonItem.js +2 -3
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -1
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -2
- package/esm/Dropdown/components/DropdownDivider.d.ts +0 -1
- package/esm/Dropdown/components/DropdownDivider.js +1 -2
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +1 -1
- package/esm/Dropdown/components/DropdownFooterItem.js +1 -2
- package/esm/Dropdown/components/DropdownLinkItem.d.ts +0 -1
- package/esm/Dropdown/components/DropdownLinkItem.js +3 -4
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +0 -1
- package/esm/Dropdown/components/DropdownRadioItem.js +2 -3
- package/esm/Dropdown/components/DropdownTitle.d.ts +0 -1
- package/esm/Dropdown/components/DropdownTitle.js +1 -2
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +0 -1
- package/esm/Dropdown/components/DropdownToggleItem.js +2 -3
- package/esm/Dropdown/index.d.ts +0 -1
- package/esm/Dropdown/index.js +1 -2
- package/esm/Dropdown/useDropdownItemProps.d.ts +0 -1
- package/esm/Dropdown/useDropdownItemProps.js +1 -2
- package/esm/Dropzone/Dropzone.d.ts +0 -1
- package/esm/Dropzone/Dropzone.js +1 -2
- package/esm/Dropzone/index.d.ts +0 -1
- package/esm/Dropzone/index.js +1 -2
- package/esm/EmptyState/EmptyState.d.ts +0 -1
- package/esm/EmptyState/EmptyState.js +1 -2
- package/esm/EmptyState/index.d.ts +0 -1
- package/esm/EmptyState/index.js +1 -2
- package/esm/Field/Field.d.ts +0 -1
- package/esm/Field/Field.js +1 -2
- package/esm/Field/index.d.ts +0 -1
- package/esm/Field/index.js +1 -2
- package/esm/FlexGrid/FlexGrid.d.ts +0 -1
- package/esm/FlexGrid/FlexGrid.js +2 -3
- package/esm/FlexGrid/index.d.ts +0 -1
- package/esm/FlexGrid/index.js +1 -2
- package/esm/HelpUnderline/HelpUnderline.d.ts +0 -1
- package/esm/HelpUnderline/HelpUnderline.js +1 -2
- package/esm/HelpUnderline/index.d.ts +0 -1
- package/esm/HelpUnderline/index.js +1 -2
- package/esm/Input/Input.d.ts +0 -1
- package/esm/Input/Input.js +4 -5
- package/esm/Input/index.d.ts +0 -1
- package/esm/Input/index.js +1 -2
- package/esm/Insert/Insert.d.ts +1 -1
- package/esm/Insert/Insert.js +3 -4
- package/esm/Insert/index.d.ts +0 -1
- package/esm/Insert/index.js +1 -2
- package/esm/KeyboardKey/index.d.ts +0 -1
- package/esm/KeyboardKey/index.js +1 -2
- package/esm/Link/BaseLink.d.ts +0 -1
- package/esm/Link/BaseLink.js +2 -3
- package/esm/Link/ButtonLink.d.ts +0 -1
- package/esm/Link/ButtonLink.js +2 -3
- package/esm/Link/IconButtonLink.d.ts +0 -1
- package/esm/Link/IconButtonLink.js +2 -3
- package/esm/Link/Link.d.ts +0 -1
- package/esm/Link/Link.js +2 -3
- package/esm/Link/index.d.ts +0 -1
- package/esm/Link/index.js +1 -2
- package/esm/Medallion/Medallion.d.ts +0 -1
- package/esm/Medallion/Medallion.js +1 -2
- package/esm/Medallion/index.d.ts +0 -1
- package/esm/Medallion/index.js +1 -2
- package/esm/MenuButton/MenuButton.d.ts +0 -1
- package/esm/MenuButton/MenuButton.js +5 -6
- package/esm/MenuButton/components/Content.js +1 -1
- package/esm/MenuButton/components/CustomTrigger.d.ts +0 -1
- package/esm/MenuButton/components/CustomTrigger.js +1 -2
- package/esm/MenuButton/components/DefaultTrigger.d.ts +0 -1
- package/esm/MenuButton/components/DefaultTrigger.js +2 -3
- package/esm/MenuButton/components/Divider.d.ts +0 -1
- package/esm/MenuButton/components/Divider.js +1 -2
- package/esm/MenuButton/components/Label.d.ts +0 -1
- package/esm/MenuButton/components/Label.js +1 -2
- package/esm/MenuButton/components/collapsible/CollapsibleItem.d.ts +0 -1
- package/esm/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
- package/esm/MenuButton/components/items/Item.d.ts +0 -1
- package/esm/MenuButton/components/items/Item.js +1 -2
- package/esm/MenuButton/components/items/LinkItem.d.ts +7 -1
- package/esm/MenuButton/components/items/LinkItem.js +10 -7
- package/esm/MenuButton/components/items/RadioItem.d.ts +0 -1
- package/esm/MenuButton/components/items/RadioItem.js +2 -3
- package/esm/MenuButton/components/items/ToggleItem.d.ts +0 -1
- package/esm/MenuButton/components/items/ToggleItem.js +2 -3
- package/esm/MenuButton/useMenuItemProps.d.ts +0 -1
- package/esm/MenuButton/useMenuItemProps.js +1 -2
- package/esm/Modal/Modal.d.ts +3 -3
- package/esm/Modal/Modal.js +4 -5
- package/esm/Modal/components/ModalFooter.d.ts +0 -1
- package/esm/Modal/components/ModalFooter.js +2 -3
- package/esm/Modal/components/ModalSection.d.ts +0 -1
- package/esm/Modal/components/ModalSection.js +1 -2
- package/esm/Modal/index.d.ts +0 -1
- package/esm/Modal/index.js +1 -2
- package/esm/Pagination/CompactPagination/CompactPagination.d.ts +1 -1
- package/esm/Pagination/CompactPagination/CompactPagination.js +1 -2
- package/esm/Pagination/CompactPagination/index.d.ts +0 -1
- package/esm/Pagination/CompactPagination/index.js +1 -2
- package/esm/Pagination/DotPagination/DotPagination.d.ts +0 -1
- package/esm/Pagination/DotPagination/DotPagination.js +1 -2
- package/esm/Pagination/DotPagination/index.d.ts +0 -1
- package/esm/Pagination/DotPagination/index.js +1 -2
- package/esm/Pagination/Pagination/Pagination.d.ts +0 -1
- package/esm/Pagination/Pagination/Pagination.js +3 -4
- package/esm/Pagination/Pagination/index.d.ts +0 -1
- package/esm/Pagination/Pagination/index.js +1 -2
- package/esm/Pagination/index.d.ts +0 -1
- package/esm/Pagination/index.js +1 -2
- package/esm/Popover/Popover.d.ts +0 -1
- package/esm/Popover/Popover.js +1 -2
- package/esm/Popover/index.d.ts +0 -1
- package/esm/Popover/index.js +1 -2
- package/esm/ProgressBar/ProgressBar.d.ts +0 -1
- package/esm/ProgressBar/ProgressBar.js +1 -2
- package/esm/ProgressBar/index.d.ts +0 -1
- package/esm/ProgressBar/index.js +1 -2
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +0 -1
- package/esm/ProgressSpinner/ProgressSpinner.js +1 -2
- package/esm/ProgressSpinner/index.d.ts +0 -1
- package/esm/ProgressSpinner/index.js +1 -2
- package/esm/RadioGroup/RadioButton.d.ts +0 -1
- package/esm/RadioGroup/RadioButton.js +1 -2
- package/esm/RadioGroup/RadioGroup.d.ts +1 -1
- package/esm/RadioGroup/RadioGroup.js +4 -5
- package/esm/RadioGroup/index.d.ts +0 -1
- package/esm/RadioGroup/index.js +1 -2
- package/esm/RangeSlider/RangeSlider.d.ts +1 -1
- package/esm/RangeSlider/RangeSlider.js +1 -2
- package/esm/RangeSlider/index.d.ts +0 -1
- package/esm/RangeSlider/index.js +1 -2
- package/esm/Satellite/Satellite.d.ts +0 -1
- package/esm/Satellite/Satellite.js +2 -3
- package/esm/Satellite/SatelliteContext.d.ts +0 -1
- package/esm/Satellite/SatelliteContext.js +1 -2
- package/esm/Satellite/index.d.ts +0 -1
- package/esm/Satellite/index.js +1 -2
- package/esm/Satellite/locale.js +1 -1
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +0 -1
- package/esm/ScrollIndicator/ScrollIndicator.js +1 -2
- package/esm/ScrollIndicator/index.d.ts +0 -1
- package/esm/ScrollIndicator/index.js +1 -2
- package/esm/Select/Select.d.ts +0 -1
- package/esm/Select/Select.js +1 -2
- package/esm/Select/index.d.ts +0 -1
- package/esm/Select/index.js +1 -2
- package/esm/Separator/Separator.d.ts +0 -1
- package/esm/Separator/Separator.js +1 -2
- package/esm/Separator/index.d.ts +0 -1
- package/esm/Separator/index.js +1 -2
- package/esm/Sidebar/Sidebar.js +2 -2
- package/esm/Sidebar/SidebarButtonLink.js +1 -1
- package/esm/Sidebar/SidebarLink.js +1 -1
- package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +1 -1
- package/esm/Stepper/Step.d.ts +0 -1
- package/esm/Stepper/Step.js +1 -2
- package/esm/Stepper/Stepper.d.ts +0 -1
- package/esm/Stepper/Stepper.js +1 -2
- package/esm/Stepper/index.d.ts +0 -1
- package/esm/Stepper/index.js +1 -2
- package/esm/Switch/Switch.d.ts +0 -1
- package/esm/Switch/Switch.js +2 -3
- package/esm/Switch/SwitchOption.d.ts +0 -1
- package/esm/Switch/SwitchOption.js +1 -2
- package/esm/Switch/index.d.ts +0 -1
- package/esm/Switch/index.js +1 -2
- package/esm/Tables/DataTable/DataTable.d.ts +1 -1
- package/esm/Tables/DataTable/DataTable.js +7 -8
- package/esm/Tables/DataTable/components/Body.d.ts +2 -3
- package/esm/Tables/DataTable/components/Body.js +3 -4
- package/esm/Tables/DataTable/components/Footer.d.ts +2 -3
- package/esm/Tables/DataTable/components/Footer.js +3 -4
- package/esm/Tables/DataTable/components/Header.d.ts +2 -3
- package/esm/Tables/DataTable/components/Header.js +4 -5
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +2 -3
- package/esm/Tables/DataTable/components/HeaderCell.js +2 -3
- package/esm/Tables/DataTable/components/Loader.d.ts +2 -3
- package/esm/Tables/DataTable/components/Loader.js +4 -5
- package/esm/Tables/DataTable/index.d.ts +0 -1
- package/esm/Tables/DataTable/index.js +1 -2
- package/esm/Tables/Table/Table.d.ts +0 -1
- package/esm/Tables/Table/Table.js +2 -3
- package/esm/Tables/Table/components/TableFooter.d.ts +0 -1
- package/esm/Tables/Table/components/TableFooter.js +1 -2
- package/esm/Tables/Table/index.d.ts +0 -1
- package/esm/Tables/Table/index.js +1 -2
- package/esm/Tables/index.d.ts +0 -1
- package/esm/Tables/index.js +1 -2
- package/esm/Tabs/ContentTabs.d.ts +0 -1
- package/esm/Tabs/ContentTabs.js +2 -3
- package/esm/Tabs/LinkTabs.d.ts +0 -1
- package/esm/Tabs/LinkTabs.js +3 -4
- package/esm/Tabs/components/LinkTab.d.ts +0 -1
- package/esm/Tabs/components/LinkTab.js +3 -4
- package/esm/Tabs/index.d.ts +0 -1
- package/esm/Tabs/index.js +1 -2
- package/esm/Tag/Tag.d.ts +0 -1
- package/esm/Tag/Tag.js +1 -2
- package/esm/Tag/index.d.ts +0 -1
- package/esm/Tag/index.js +1 -2
- package/esm/TextArea/TextArea.d.ts +0 -1
- package/esm/TextArea/TextArea.js +1 -2
- package/esm/TextArea/index.d.ts +0 -1
- package/esm/TextArea/index.js +1 -2
- package/esm/TextWrap/TextWrap.d.ts +0 -1
- package/esm/TextWrap/TextWrap.js +2 -3
- package/esm/TextWrap/index.d.ts +0 -1
- package/esm/TextWrap/index.js +1 -2
- package/esm/Toast/Toast.d.ts +0 -1
- package/esm/Toast/Toast.js +3 -4
- package/esm/Toast/Toasts.d.ts +0 -1
- package/esm/Toast/Toasts.js +2 -3
- package/esm/Toast/index.d.ts +0 -1
- package/esm/Toast/index.js +1 -2
- package/esm/Toggle/Toggle.d.ts +0 -1
- package/esm/Toggle/Toggle.js +1 -2
- package/esm/Toggle/index.d.ts +0 -1
- package/esm/Toggle/index.js +1 -2
- package/esm/Tooltip/OverflowTooltipWrapper.js +1 -1
- package/esm/Tooltip/Tooltip.d.ts +0 -1
- package/esm/Tooltip/Tooltip.js +1 -2
- package/esm/Tooltip/TooltipWrapper.js +2 -2
- package/esm/Tooltip/index.d.ts +0 -1
- package/esm/Tooltip/index.js +1 -2
- package/esm/UserContent/UserContent.d.ts +0 -1
- package/esm/UserContent/UserContent.js +1 -2
- package/esm/utils/genericChangeHandler.d.ts +1 -1
- package/esm/utils/genericChangeHandler.js +1 -2
- package/esm/utils/hashCode.d.ts +0 -1
- package/esm/utils/hashCode.js +1 -2
- package/esm/utils/isCssPropertySupported.d.ts +1 -2
- package/esm/utils/isCssPropertySupported.js +2 -3
- package/esm/utils/isNil.d.ts +0 -1
- package/esm/utils/isNil.js +1 -2
- package/esm/utils/isRenderedChild.d.ts +1 -2
- package/esm/utils/isRenderedChild.js +2 -3
- package/esm/utils/matchLocation.d.ts +1 -2
- package/esm/utils/matchLocation.js +3 -4
- package/esm/utils/onlyText.d.ts +1 -2
- package/esm/utils/onlyText.js +2 -3
- package/esm/utils/parseUrl.d.ts +0 -1
- package/esm/utils/parseUrl.js +1 -2
- package/esm/utils/pluralize.d.ts +1 -1
- package/esm/utils/pluralize.js +1 -2
- package/esm/utils/range.d.ts +0 -1
- package/esm/utils/range.js +1 -2
- package/esm/utils/toSentenceCase.d.ts +0 -1
- package/esm/utils/toSentenceCase.js +1 -2
- package/esm/utils/uniqBy.d.ts +0 -1
- package/esm/utils/uniqBy.js +1 -2
- package/esm/utils/uniqueId.d.ts +0 -1
- package/esm/utils/uniqueId.js +1 -2
- package/esm/utils/useForwardedRef.d.ts +1 -2
- package/esm/utils/useForwardedRef.js +2 -3
- package/esm/utils/useLinkProps.d.ts +0 -1
- package/esm/utils/useLinkProps.js +2 -3
- package/esm/utils/useTriggerInputChange.d.ts +2 -2
- package/esm/utils/useTriggerInputChange.js +2 -3
- package/package.json +1 -1
package/cjs/Toggle/Toggle.js
CHANGED
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports
|
7
|
+
exports.Toggle = void 0;
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
@@ -70,5 +70,4 @@ var Toggle = exports.Toggle = /*#__PURE__*/(0, _react.forwardRef)(function (_ref
|
|
70
70
|
})]
|
71
71
|
});
|
72
72
|
});
|
73
|
-
Toggle.displayName = "Toggle";
|
74
|
-
var _default = exports["default"] = Toggle;
|
73
|
+
Toggle.displayName = "Toggle";
|
package/cjs/Toggle/index.d.ts
CHANGED
package/cjs/Toggle/index.js
CHANGED
@@ -1,20 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
var
|
8
|
-
Object.defineProperty(exports, "default", {
|
9
|
-
enumerable: true,
|
10
|
-
get: function get() {
|
11
|
-
return _Toggle["default"];
|
12
|
-
}
|
13
|
-
});
|
14
|
-
var _Toggle = _interopRequireWildcard(require("./Toggle"));
|
6
|
+
var _Toggle = require("./Toggle");
|
15
7
|
Object.keys(_Toggle).forEach(function (key) {
|
16
8
|
if (key === "default" || key === "__esModule") return;
|
17
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
18
9
|
if (key in exports && exports[key] === _Toggle[key]) return;
|
19
10
|
Object.defineProperty(exports, key, {
|
20
11
|
enumerable: true,
|
@@ -22,6 +13,4 @@ Object.keys(_Toggle).forEach(function (key) {
|
|
22
13
|
return _Toggle[key];
|
23
14
|
}
|
24
15
|
});
|
25
|
-
});
|
26
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
16
|
+
});
|
@@ -12,7 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
12
12
|
var _reactSlot = require("@radix-ui/react-slot");
|
13
13
|
var _react = require("react");
|
14
14
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
15
|
-
var _TextWrap =
|
15
|
+
var _TextWrap = require("../TextWrap");
|
16
16
|
var _isReactText = require("../utils/isReactText");
|
17
17
|
var _TooltipWrapper = require("./TooltipWrapper");
|
18
18
|
var _utils = require("./utils");
|
@@ -38,7 +38,7 @@ var OverflowTooltipWrapper = exports.OverflowTooltipWrapper = function OverflowT
|
|
38
38
|
};
|
39
39
|
var Wrapper = (0, _isReactText.isReactText)(children) ? "div" : _reactSlot.Slot;
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TooltipWrapper.TooltipWrapper, _objectSpread(_objectSpread({
|
41
|
-
content: content && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextWrap
|
41
|
+
content: content && /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextWrap.TextWrap, {
|
42
42
|
children: content
|
43
43
|
})
|
44
44
|
}, props), {}, {
|
package/cjs/Tooltip/Tooltip.d.ts
CHANGED
@@ -9,4 +9,3 @@ export interface TooltipProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivEl
|
|
9
9
|
* See the [Tooltip documentation page](https://satellite.algolia.com/components/overlay/tooltip) for more information.
|
10
10
|
*/
|
11
11
|
export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<TooltipProps, "dir" | "slot" | "style" | "title" | "children" | "id" | "variant" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
|
12
|
-
export default Tooltip;
|
package/cjs/Tooltip/Tooltip.js
CHANGED
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports
|
7
|
+
exports.Tooltip = void 0;
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
@@ -36,5 +36,4 @@ var Tooltip = exports.Tooltip = /*#__PURE__*/(0, _react.forwardRef)(function (_r
|
|
36
36
|
ref: ref
|
37
37
|
}));
|
38
38
|
});
|
39
|
-
Tooltip.displayName = "Tooltip";
|
40
|
-
var _default = exports["default"] = Tooltip;
|
39
|
+
Tooltip.displayName = "Tooltip";
|
@@ -13,7 +13,7 @@ var _react = require("react");
|
|
13
13
|
var _Satellite = require("../Satellite");
|
14
14
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
15
15
|
var _isReactText = require("../utils/isReactText");
|
16
|
-
var _Tooltip =
|
16
|
+
var _Tooltip = require("./Tooltip");
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
18
18
|
var _templateObject, _templateObject2, _templateObject3;
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
@@ -73,7 +73,7 @@ var TooltipWrapper = exports.TooltipWrapper = function TooltipWrapper(_ref) {
|
|
73
73
|
align: align,
|
74
74
|
alignOffset: alignOffset,
|
75
75
|
avoidCollisions: avoidCollisions,
|
76
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip
|
76
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
77
77
|
variant: tooltipVariant,
|
78
78
|
children: tooltipContent
|
79
79
|
}), !noArrow && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip.Arrow, {
|
package/cjs/Tooltip/index.d.ts
CHANGED
package/cjs/Tooltip/index.js
CHANGED
@@ -1,20 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
var
|
8
|
-
Object.defineProperty(exports, "default", {
|
9
|
-
enumerable: true,
|
10
|
-
get: function get() {
|
11
|
-
return _Tooltip["default"];
|
12
|
-
}
|
13
|
-
});
|
14
|
-
var _Tooltip = _interopRequireWildcard(require("./Tooltip"));
|
6
|
+
var _Tooltip = require("./Tooltip");
|
15
7
|
Object.keys(_Tooltip).forEach(function (key) {
|
16
8
|
if (key === "default" || key === "__esModule") return;
|
17
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
18
9
|
if (key in exports && exports[key] === _Tooltip[key]) return;
|
19
10
|
Object.defineProperty(exports, key, {
|
20
11
|
enumerable: true,
|
@@ -26,7 +17,6 @@ Object.keys(_Tooltip).forEach(function (key) {
|
|
26
17
|
var _TooltipWrapper = require("./TooltipWrapper");
|
27
18
|
Object.keys(_TooltipWrapper).forEach(function (key) {
|
28
19
|
if (key === "default" || key === "__esModule") return;
|
29
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
30
20
|
if (key in exports && exports[key] === _TooltipWrapper[key]) return;
|
31
21
|
Object.defineProperty(exports, key, {
|
32
22
|
enumerable: true,
|
@@ -38,7 +28,6 @@ Object.keys(_TooltipWrapper).forEach(function (key) {
|
|
38
28
|
var _OverflowTooltipWrapper = require("./OverflowTooltipWrapper");
|
39
29
|
Object.keys(_OverflowTooltipWrapper).forEach(function (key) {
|
40
30
|
if (key === "default" || key === "__esModule") return;
|
41
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
42
31
|
if (key in exports && exports[key] === _OverflowTooltipWrapper[key]) return;
|
43
32
|
Object.defineProperty(exports, key, {
|
44
33
|
enumerable: true,
|
@@ -46,6 +35,4 @@ Object.keys(_OverflowTooltipWrapper).forEach(function (key) {
|
|
46
35
|
return _OverflowTooltipWrapper[key];
|
47
36
|
}
|
48
37
|
});
|
49
|
-
});
|
50
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
51
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
38
|
+
});
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports
|
7
|
+
exports.UserContent = void 0;
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
9
9
|
var _clsx = _interopRequireDefault(require("clsx"));
|
10
10
|
var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
|
@@ -27,5 +27,4 @@ var UserContent = exports.UserContent = function UserContent(_ref) {
|
|
27
27
|
__html: content
|
28
28
|
}
|
29
29
|
});
|
30
|
-
};
|
31
|
-
var _default = exports["default"] = UserContent;
|
30
|
+
};
|
@@ -2,4 +2,4 @@ import type { ChangeEvent, Component } from "react";
|
|
2
2
|
declare type stateUpdater<State> = (state: State, name: string, newValue: any) => Partial<State>;
|
3
3
|
declare type changeHandler = (evt: ChangeEvent<any>) => void;
|
4
4
|
export declare function genericChangeHandler<State>(ctx: Component<any, State>, updater?: stateUpdater<State>): (name: string, attribute?: string) => changeHandler;
|
5
|
-
export
|
5
|
+
export {};
|
@@ -4,7 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports["default"] = void 0;
|
8
7
|
exports.genericChangeHandler = genericChangeHandler;
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
10
9
|
function genericChangeHandler(ctx, updater) {
|
@@ -22,5 +21,4 @@ function genericChangeHandler(ctx, updater) {
|
|
22
21
|
}
|
23
22
|
return memo[key];
|
24
23
|
};
|
25
|
-
}
|
26
|
-
var _default = exports["default"] = genericChangeHandler;
|
24
|
+
}
|
package/cjs/utils/hashCode.d.ts
CHANGED
package/cjs/utils/hashCode.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.hashCode =
|
6
|
+
exports.hashCode = void 0;
|
7
7
|
// https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript?rq=1
|
8
8
|
var hashCode = exports.hashCode = function hashCode(value) {
|
9
9
|
var hash = 0;
|
@@ -17,5 +17,4 @@ var hashCode = exports.hashCode = function hashCode(value) {
|
|
17
17
|
}
|
18
18
|
|
19
19
|
return hash;
|
20
|
-
};
|
21
|
-
var _default = exports["default"] = hashCode;
|
20
|
+
};
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "font" | "clipPath" | "marker" | "mask" | "translate" | "color" | "grid" | "all" | "width" | "height" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "top" | "left" | "right" | "bottom" | "content" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "quotes" | "resize" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
|
2
|
-
export default isCssPropertySupported;
|
1
|
+
export declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "font" | "clipPath" | "marker" | "mask" | "translate" | "color" | "grid" | "all" | "width" | "height" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "top" | "left" | "right" | "bottom" | "content" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "quotes" | "resize" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
|
@@ -3,13 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports
|
7
|
-
var isCssPropertySupported = function isCssPropertySupported(prop, value) {
|
6
|
+
exports.isCssPropertySupported = void 0;
|
7
|
+
var isCssPropertySupported = exports.isCssPropertySupported = function isCssPropertySupported(prop, value) {
|
8
8
|
if (typeof document === "undefined") {
|
9
9
|
return false;
|
10
10
|
}
|
11
11
|
var div = document.createElement("div");
|
12
12
|
div.style[prop] = value;
|
13
13
|
return div.style[prop] === value;
|
14
|
-
};
|
15
|
-
var _default = exports["default"] = isCssPropertySupported;
|
14
|
+
};
|
package/cjs/utils/isNil.d.ts
CHANGED
package/cjs/utils/isNil.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.isNil =
|
6
|
+
exports.isNil = void 0;
|
7
7
|
/**
|
8
8
|
* Checks if `value` is `null` or `undefined`.
|
9
9
|
* (code stolen from lodash)
|
@@ -23,5 +23,4 @@ exports.isNil = exports["default"] = void 0;
|
|
23
23
|
*/
|
24
24
|
var isNil = exports.isNil = function isNil(value) {
|
25
25
|
return value == null;
|
26
|
-
};
|
27
|
-
var _default = exports["default"] = isNil;
|
26
|
+
};
|
@@ -4,5 +4,4 @@ import type { ReactNode } from "react";
|
|
4
4
|
* See https://reactjs.org/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
|
5
5
|
* @param child
|
6
6
|
*/
|
7
|
-
declare const isRenderedChild: (child: ReactNode) => boolean;
|
8
|
-
export default isRenderedChild;
|
7
|
+
export declare const isRenderedChild: (child: ReactNode) => boolean;
|
@@ -3,13 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports
|
6
|
+
exports.isRenderedChild = void 0;
|
7
7
|
/**
|
8
8
|
* Returns whether a React child would be rendered or not.
|
9
9
|
* See https://reactjs.org/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
|
10
10
|
* @param child
|
11
11
|
*/
|
12
|
-
var isRenderedChild = function isRenderedChild(child) {
|
12
|
+
var isRenderedChild = exports.isRenderedChild = function isRenderedChild(child) {
|
13
13
|
return child !== null && typeof child !== "boolean" && typeof child !== "undefined";
|
14
|
-
};
|
15
|
-
var _default = exports["default"] = isRenderedChild;
|
14
|
+
};
|
@@ -1,12 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
exports
|
8
|
-
var _parseUrl =
|
9
|
-
var matchLocation = function matchLocation(href, location) {
|
10
|
-
return (location.pathname || "").startsWith((0, _parseUrl
|
11
|
-
};
|
12
|
-
var _default = exports["default"] = matchLocation;
|
6
|
+
exports.matchLocation = void 0;
|
7
|
+
var _parseUrl = require("./parseUrl");
|
8
|
+
var matchLocation = exports.matchLocation = function matchLocation(href, location) {
|
9
|
+
return (location.pathname || "").startsWith((0, _parseUrl.parseURL)(href).pathname);
|
10
|
+
};
|
package/cjs/utils/onlyText.d.ts
CHANGED
package/cjs/utils/onlyText.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports
|
6
|
+
exports.onlyText = void 0;
|
7
7
|
var _react = require("react");
|
8
8
|
var hasChildren = function hasChildren(element) {
|
9
9
|
return /*#__PURE__*/(0, _react.isValidElement)(element) && Boolean(element.props.children);
|
@@ -20,7 +20,7 @@ var childToString = function childToString(child) {
|
|
20
20
|
|
21
21
|
// Code stolen from `react-children-utils`
|
22
22
|
// @see https://github.com/fernandopasik/react-children-utilities/blob/main/src/lib/onlyText.ts
|
23
|
-
var onlyText = function onlyText(children) {
|
23
|
+
var onlyText = exports.onlyText = function onlyText(children) {
|
24
24
|
if (!(children instanceof Array) && ! /*#__PURE__*/(0, _react.isValidElement)(children)) {
|
25
25
|
return childToString(children);
|
26
26
|
}
|
@@ -35,5 +35,4 @@ var onlyText = function onlyText(children) {
|
|
35
35
|
}
|
36
36
|
return text.concat(newText);
|
37
37
|
}, "");
|
38
|
-
};
|
39
|
-
var _default = exports["default"] = onlyText;
|
38
|
+
};
|
package/cjs/utils/parseUrl.d.ts
CHANGED
package/cjs/utils/parseUrl.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.parseURL =
|
6
|
+
exports.parseURL = void 0;
|
7
7
|
var parseURL = exports.parseURL = function parseURL(url) {
|
8
8
|
var parser = document.createElement("a");
|
9
9
|
// Let the browser do the work
|
@@ -17,5 +17,4 @@ var parseURL = exports.parseURL = function parseURL(url) {
|
|
17
17
|
search: parser.search,
|
18
18
|
hash: parser.hash
|
19
19
|
};
|
20
|
-
};
|
21
|
-
var _default = exports["default"] = parseURL;
|
20
|
+
};
|
package/cjs/utils/pluralize.d.ts
CHANGED
package/cjs/utils/pluralize.js
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = void 0;
|
7
6
|
exports.pluralize = pluralize;
|
8
7
|
var DEFAULT_OPTIONS = {
|
9
8
|
numberFormatter: function numberFormatter(number) {
|
@@ -19,5 +18,4 @@ function pluralize(count, word, options) {
|
|
19
18
|
return "".concat(formattedNumber, " ").concat(word);
|
20
19
|
}
|
21
20
|
return "".concat(formattedNumber, " ").concat(plural || "".concat(word, "s"));
|
22
|
-
}
|
23
|
-
var _default = exports["default"] = pluralize;
|
21
|
+
}
|
package/cjs/utils/range.d.ts
CHANGED
package/cjs/utils/range.js
CHANGED
@@ -3,12 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = void 0;
|
7
6
|
exports.range = range;
|
8
7
|
function range(start, end) {
|
9
8
|
if (start >= end) throw "Start should be greater than end";
|
10
9
|
return Array(Math.abs(end - start)).fill(undefined).map(function (_, idx) {
|
11
10
|
return start + idx;
|
12
11
|
});
|
13
|
-
}
|
14
|
-
var _default = exports["default"] = range;
|
12
|
+
}
|
@@ -4,12 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports.toSentenceCase =
|
7
|
+
exports.toSentenceCase = void 0;
|
8
8
|
var _capitalize = _interopRequireDefault(require("lodash/capitalize"));
|
9
9
|
/** Converts PascalCase and camelCase to Sentence case */
|
10
10
|
var toSentenceCase = exports.toSentenceCase = function toSentenceCase(str) {
|
11
11
|
var firstChar = str.charAt(0);
|
12
12
|
var remainingChars = str.slice(1).replace(/\s/g, "").replace(/([A-Z]+)/g, "$1").replace(/([A-Z][a-z])/g, " $1").trim();
|
13
13
|
return (0, _capitalize["default"])("".concat(firstChar).concat(remainingChars));
|
14
|
-
};
|
15
|
-
var _default = exports["default"] = toSentenceCase;
|
14
|
+
};
|
package/cjs/utils/uniqBy.d.ts
CHANGED
package/cjs/utils/uniqBy.js
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = void 0;
|
7
6
|
exports.uniqBy = uniqBy;
|
8
7
|
function uniqBy(arr, identity) {
|
9
8
|
if (!arr) return arr;
|
@@ -16,5 +15,4 @@ function uniqBy(arr, identity) {
|
|
16
15
|
memo.push(id);
|
17
16
|
return true;
|
18
17
|
});
|
19
|
-
}
|
20
|
-
var _default = exports["default"] = uniqBy;
|
18
|
+
}
|
package/cjs/utils/uniqueId.d.ts
CHANGED
package/cjs/utils/uniqueId.js
CHANGED
@@ -3,12 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports["default"] = void 0;
|
7
6
|
exports.uniqueId = uniqueId;
|
8
7
|
var counters = {};
|
9
8
|
function uniqueId() {
|
10
9
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "id";
|
11
10
|
counters[prefix] = counters[prefix] === undefined ? 0 : counters[prefix] + 1;
|
12
11
|
return prefix + counters[prefix];
|
13
|
-
}
|
14
|
-
var _default = exports["default"] = uniqueId;
|
12
|
+
}
|
@@ -1,3 +1,2 @@
|
|
1
1
|
import type { MutableRefObject, Ref } from "react";
|
2
|
-
declare function useForwardedRef<T>(externalRef: Ref<T | null> | undefined): [(instance: T | null) => void, MutableRefObject<T | null>];
|
3
|
-
export default useForwardedRef;
|
2
|
+
export declare function useForwardedRef<T>(externalRef: Ref<T | null> | undefined): [(instance: T | null) => void, MutableRefObject<T | null>];
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports
|
7
|
+
exports.useForwardedRef = useForwardedRef;
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
9
9
|
var _react = require("react");
|
10
10
|
function useForwardedRef(externalRef) {
|
@@ -20,5 +20,4 @@ function useForwardedRef(externalRef) {
|
|
20
20
|
}
|
21
21
|
}, [externalRef]);
|
22
22
|
return [refCallback, ref];
|
23
|
-
}
|
24
|
-
var _default = exports["default"] = useForwardedRef;
|
23
|
+
}
|
@@ -4,4 +4,3 @@ export declare type UseLinkPropsArgs = Pick<AnchorHTMLAttributes<HTMLAnchorEleme
|
|
4
4
|
};
|
5
5
|
export declare type UseLinkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target" | "rel" | "role" | "tabIndex" | "aria-disabled">;
|
6
6
|
export declare const useLinkProps: (props: UseLinkPropsArgs) => UseLinkProps;
|
7
|
-
export default useLinkProps;
|
@@ -1,13 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
|
-
exports.useLinkProps =
|
6
|
+
exports.useLinkProps = void 0;
|
8
7
|
var _react = require("react");
|
9
8
|
var _SatelliteContext = require("../Satellite/SatelliteContext");
|
10
|
-
var _parseUrl =
|
9
|
+
var _parseUrl = require("./parseUrl");
|
11
10
|
var useLinkProps = exports.useLinkProps = function useLinkProps(props) {
|
12
11
|
var _props$target, _props$rel;
|
13
12
|
var _useSatelliteContext = (0, _SatelliteContext.useSatelliteContext)(),
|
@@ -31,7 +30,7 @@ var useLinkProps = exports.useLinkProps = function useLinkProps(props) {
|
|
31
30
|
};
|
32
31
|
var href = router.transformHref(props.href || "");
|
33
32
|
var parsedLocation = (0, _react.useMemo)(function () {
|
34
|
-
return (0, _parseUrl
|
33
|
+
return (0, _parseUrl.parseURL)(href);
|
35
34
|
}, [href]);
|
36
35
|
var isExternal = router.isExternalLocation(parsedLocation);
|
37
36
|
var target = (_props$target = props.target) !== null && _props$target !== void 0 ? _props$target : router.shouldOpenInNewTab(parsedLocation) ? "_blank" : undefined;
|
@@ -49,5 +48,4 @@ var useLinkProps = exports.useLinkProps = function useLinkProps(props) {
|
|
49
48
|
role: props.role,
|
50
49
|
tabIndex: props.tabIndex
|
51
50
|
};
|
52
|
-
};
|
53
|
-
var _default = exports["default"] = useLinkProps;
|
51
|
+
};
|