@algolia/satellite 1.0.0-beta.131 → 1.0.0-beta.132
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 +2 -2
- package/cjs/AnnouncementBadge/AnnouncementBadge.js +11 -6
- package/cjs/AutoComplete/AutoComplete.d.ts +7 -6
- package/cjs/AutoComplete/AutoComplete.js +131 -120
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +4 -4
- package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +16 -13
- package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
- package/cjs/AutoComplete/components/DefaultOptionItem.js +20 -16
- package/cjs/AutoComplete/types.d.ts +8 -8
- package/cjs/AutoComplete/utils.d.ts +1 -1
- package/cjs/Avatars/ApplicationAvatar.js +6 -5
- package/cjs/Avatars/UserAvatar.js +19 -20
- package/cjs/Avatars/utils.d.ts +1 -1
- package/cjs/Badge/Badge.d.ts +5 -5
- package/cjs/Badge/Badge.js +21 -12
- package/cjs/Banner/Banner.d.ts +4 -4
- package/cjs/Banner/Banner.js +30 -25
- package/cjs/Banners/Alert/Alert.d.ts +4 -4
- package/cjs/Banners/Alert/Alert.js +29 -23
- package/cjs/Banners/BigBertha/BigBertha.d.ts +2 -2
- package/cjs/Banners/BigBertha/BigBertha.js +11 -9
- package/cjs/Banners/Promote/Promote.d.ts +5 -5
- package/cjs/Banners/Promote/Promote.js +38 -30
- package/cjs/Button/Button.js +23 -17
- package/cjs/Button/ButtonGroup.d.ts +1 -1
- package/cjs/Button/ButtonGroup.js +6 -5
- package/cjs/Button/IconButton.d.ts +2 -2
- package/cjs/Button/IconButton.js +24 -22
- package/cjs/Button/styles.d.ts +1 -1
- package/cjs/Button/types.d.ts +5 -5
- package/cjs/Card/Card.d.ts +3 -3
- package/cjs/Card/Card.js +8 -11
- package/cjs/Card/components/CardHeader.js +8 -4
- package/cjs/Card/components/CardTitle.d.ts +1 -1
- package/cjs/Card/components/CardTitle.js +11 -6
- package/cjs/Checkbox/Checkbox.d.ts +3 -3
- package/cjs/Checkbox/Checkbox.js +33 -30
- package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
- package/cjs/ClickAwayContainer/ClickAwayContainer.js +6 -9
- package/cjs/DatePicker/DatePicker/DatePicker.d.ts +10 -10
- package/cjs/DatePicker/DatePicker/DatePicker.js +79 -62
- package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +2 -2
- package/cjs/DatePicker/DatePicker/datePickerReducer.js +2 -2
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +7 -7
- package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +82 -68
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +1 -1
- package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +16 -11
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +3 -3
- package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +5 -5
- package/cjs/DatePicker/components/Calendar.d.ts +1 -1
- package/cjs/DatePicker/components/Calendar.js +10 -10
- package/cjs/DatePicker/components/Display.d.ts +2 -2
- package/cjs/DatePicker/components/Display.js +6 -5
- package/cjs/DatePicker/components/Footer.d.ts +2 -2
- package/cjs/DatePicker/components/Footer.js +6 -5
- package/cjs/DatePicker/components/FooterActions.d.ts +1 -1
- package/cjs/DatePicker/components/FooterActions.js +15 -12
- package/cjs/DatePicker/components/Modal.d.ts +3 -3
- package/cjs/DatePicker/components/Modal.js +18 -16
- package/cjs/DatePicker/components/NavBar.d.ts +2 -2
- package/cjs/DatePicker/components/NavBar.js +40 -40
- package/cjs/DatePicker/components/SidePanel.d.ts +2 -2
- package/cjs/DatePicker/components/SidePanel.js +9 -7
- package/cjs/Dropdown/Dropdown.d.ts +8 -8
- package/cjs/Dropdown/Dropdown.js +49 -40
- package/cjs/Dropdown/DropdownButton.d.ts +3 -3
- package/cjs/Dropdown/DropdownButton.js +15 -9
- package/cjs/Dropdown/DropdownContext.d.ts +2 -2
- package/cjs/Dropdown/DropdownContext.js +2 -9
- package/cjs/Dropdown/components/DropdownButtonItem.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownButtonItem.js +14 -14
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +4 -4
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +30 -29
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +6 -7
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +6 -9
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +6 -9
- package/cjs/Dropdown/components/DropdownDivider.js +3 -3
- package/cjs/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownFooterItem.js +11 -5
- package/cjs/Dropdown/components/DropdownLinkItem.js +14 -13
- package/cjs/Dropdown/components/DropdownRadioItem.d.ts +2 -2
- package/cjs/Dropdown/components/DropdownRadioItem.js +17 -16
- package/cjs/Dropdown/components/DropdownTitle.d.ts +1 -1
- package/cjs/Dropdown/components/DropdownTitle.js +8 -4
- package/cjs/Dropdown/components/DropdownToggleItem.d.ts +3 -3
- package/cjs/Dropdown/components/DropdownToggleItem.js +16 -16
- package/cjs/Dropdown/useDropdownItemProps.d.ts +3 -3
- package/cjs/Dropzone/Dropzone.d.ts +2 -2
- package/cjs/Dropzone/Dropzone.js +58 -53
- package/cjs/EmptyState/EmptyState.d.ts +1 -1
- package/cjs/EmptyState/EmptyState.js +29 -22
- package/cjs/EmptyState/types.d.ts +7 -7
- package/cjs/Field/Field.d.ts +3 -3
- package/cjs/Field/Field.js +33 -26
- package/cjs/Flag/Flag.d.ts +2 -2
- package/cjs/Flag/Flag.js +45 -40
- package/cjs/Flag/Flags.d.ts +3 -3
- package/cjs/Flag/Flags.js +32 -22
- package/cjs/Flag/types.d.ts +4 -4
- package/cjs/FlexGrid/FlexGrid.d.ts +1 -1
- package/cjs/FlexGrid/FlexGrid.js +15 -9
- package/cjs/FlexGrid/FlexGrid.tailwind.js +2 -2
- package/cjs/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/cjs/HelpUnderline/HelpUnderline.js +9 -7
- package/cjs/Input/Input.d.ts +5 -5
- package/cjs/Input/Input.js +119 -114
- package/cjs/Insert/Insert.d.ts +2 -2
- package/cjs/Insert/Insert.js +29 -23
- package/cjs/KeyboardKey/KeyboardKey.d.ts +1 -1
- package/cjs/KeyboardKey/KeyboardKey.js +9 -12
- package/cjs/Link/BaseLink.d.ts +3 -3
- package/cjs/Link/BaseLink.js +7 -7
- package/cjs/Link/ButtonLink.d.ts +1 -1
- package/cjs/Link/ButtonLink.js +9 -5
- package/cjs/Link/IconButtonLink.d.ts +1 -1
- package/cjs/Link/IconButtonLink.js +8 -4
- package/cjs/Link/Link.d.ts +5 -5
- package/cjs/Link/Link.js +16 -15
- package/cjs/Medallion/Medallion.d.ts +2 -2
- package/cjs/Medallion/Medallion.js +8 -7
- package/cjs/Modal/Modal.d.ts +4 -4
- package/cjs/Modal/Modal.js +51 -46
- package/cjs/Modal/components/ModalFooter.d.ts +2 -2
- package/cjs/Modal/components/ModalFooter.js +16 -10
- package/cjs/Modal/components/ModalSection.d.ts +1 -1
- package/cjs/Modal/components/ModalSection.js +6 -5
- package/cjs/Pagination/CompactPagination/CompactPagination.js +38 -36
- package/cjs/Pagination/DotPagination/DotPagination.js +17 -16
- package/cjs/Pagination/Pagination/Pagination.js +53 -47
- package/cjs/ProgressBar/ProgressBar.d.ts +2 -2
- package/cjs/ProgressBar/ProgressBar.js +16 -11
- package/cjs/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/cjs/ProgressSpinner/ProgressSpinner.js +18 -11
- package/cjs/RadioGroup/RadioButton.d.ts +3 -3
- package/cjs/RadioGroup/RadioButton.js +8 -8
- package/cjs/RadioGroup/RadioGroup.d.ts +3 -3
- package/cjs/RadioGroup/RadioGroup.js +36 -34
- package/cjs/RangeSlider/RangeSlider.d.ts +3 -3
- package/cjs/RangeSlider/RangeSlider.js +37 -36
- package/cjs/Satellite/Satellite.d.ts +2 -2
- package/cjs/Satellite/Satellite.js +6 -5
- package/cjs/Satellite/SatelliteContext.js +2 -2
- package/cjs/Satellite/SatelliteRouter.d.ts +1 -1
- package/cjs/ScrollIndicator/ScrollIndicator.d.ts +3 -3
- package/cjs/ScrollIndicator/ScrollIndicator.js +13 -16
- package/cjs/Select/Select.d.ts +3 -3
- package/cjs/Select/Select.js +8 -8
- package/cjs/Sidebar/Sidebar.d.ts +4 -4
- package/cjs/Sidebar/Sidebar.js +18 -10
- package/cjs/Sidebar/SidebarContext.d.ts +1 -1
- package/cjs/Sidebar/components/SidebarHeader.d.ts +2 -2
- package/cjs/Sidebar/components/SidebarHeader.js +11 -6
- package/cjs/Sidebar/components/SidebarLink.d.ts +3 -3
- package/cjs/Sidebar/components/SidebarLink.js +32 -22
- package/cjs/Switch/Switch.d.ts +3 -3
- package/cjs/Switch/Switch.js +17 -19
- package/cjs/Switch/SwitchOption.d.ts +1 -1
- package/cjs/Switch/SwitchOption.js +24 -16
- package/cjs/Tables/DataTable/DataTable.d.ts +4 -4
- package/cjs/Tables/DataTable/DataTable.js +59 -58
- package/cjs/Tables/DataTable/components/Body.d.ts +4 -4
- package/cjs/Tables/DataTable/components/Body.js +60 -46
- package/cjs/Tables/DataTable/components/Footer.d.ts +1 -1
- package/cjs/Tables/DataTable/components/Footer.js +6 -6
- package/cjs/Tables/DataTable/components/Header.js +24 -20
- package/cjs/Tables/DataTable/components/HeaderCell.d.ts +3 -3
- package/cjs/Tables/DataTable/components/HeaderCell.js +20 -14
- package/cjs/Tables/DataTable/components/Loader.js +17 -19
- package/cjs/Tables/DataTable/types.d.ts +3 -3
- package/cjs/Tables/DataTable/utils.d.ts +1 -1
- package/cjs/Tables/Table/Table.d.ts +3 -3
- package/cjs/Tables/Table/Table.js +19 -12
- package/cjs/Tables/Table/components/Footer.d.ts +2 -2
- package/cjs/Tables/Table/components/Footer.js +6 -5
- package/cjs/Tabs/ContentTabs.d.ts +1 -1
- package/cjs/Tabs/ContentTabs.js +39 -38
- package/cjs/Tabs/LinkTabs.d.ts +1 -1
- package/cjs/Tabs/LinkTabs.js +16 -16
- package/cjs/Tabs/components/LinkTab.d.ts +3 -3
- package/cjs/Tabs/components/LinkTab.js +18 -12
- package/cjs/Tabs/types.d.ts +6 -6
- package/cjs/Tabs/utils.d.ts +1 -1
- package/cjs/Tag/Tag.d.ts +4 -4
- package/cjs/Tag/Tag.js +22 -19
- package/cjs/TextArea/TextArea.d.ts +3 -3
- package/cjs/TextArea/TextArea.js +8 -8
- package/cjs/TextWrap/TextWrap.js +20 -20
- package/cjs/Toggle/Toggle.d.ts +3 -3
- package/cjs/Toggle/Toggle.js +23 -21
- package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
- package/cjs/Tooltip/OverflowTooltipWrapper.js +31 -24
- package/cjs/Tooltip/Tooltip.d.ts +3 -3
- package/cjs/Tooltip/Tooltip.js +8 -8
- package/cjs/Tooltip/TooltipWrapper.d.ts +3 -3
- package/cjs/Tooltip/TooltipWrapper.js +47 -39
- package/cjs/Tooltip/types.d.ts +2 -2
- package/cjs/Typography/Typography.tailwind.js +2 -2
- package/cjs/UserContent/UserContent.js +3 -3
- package/cjs/UserContent/UserContent.tailwind.js +2 -4
- package/cjs/styles/tailwind.config.js +2 -2
- package/cjs/tailwind-types.d.ts +1 -1
- package/cjs/types.d.ts +3 -3
- package/cjs/utils/genericChangeHandler.d.ts +3 -3
- package/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/cjs/utils/isRenderedChild.d.ts +2 -2
- package/cjs/utils/useForwardedRef.d.ts +2 -2
- package/cjs/utils/useLinkProps.d.ts +2 -2
- package/cjs/utils/useTriggerInputChange.d.ts +2 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +2 -2
- package/esm/AnnouncementBadge/AnnouncementBadge.js +10 -5
- package/esm/AutoComplete/AutoComplete.d.ts +7 -6
- package/esm/AutoComplete/AutoComplete.js +130 -108
- package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +4 -4
- package/esm/AutoComplete/components/AutoCompleteEmptyState.js +16 -12
- package/esm/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
- package/esm/AutoComplete/components/DefaultOptionItem.js +21 -15
- package/esm/AutoComplete/types.d.ts +8 -8
- package/esm/AutoComplete/utils.d.ts +1 -1
- package/esm/Avatars/ApplicationAvatar.js +5 -4
- package/esm/Avatars/UserAvatar.js +19 -14
- package/esm/Avatars/utils.d.ts +1 -1
- package/esm/Badge/Badge.d.ts +5 -5
- package/esm/Badge/Badge.js +21 -11
- package/esm/Banner/Banner.d.ts +4 -4
- package/esm/Banner/Banner.js +31 -25
- package/esm/Banners/Alert/Alert.d.ts +4 -4
- package/esm/Banners/Alert/Alert.js +30 -23
- package/esm/Banners/BigBertha/BigBertha.d.ts +2 -2
- package/esm/Banners/BigBertha/BigBertha.js +11 -8
- package/esm/Banners/Promote/Promote.d.ts +5 -5
- package/esm/Banners/Promote/Promote.js +37 -28
- package/esm/Button/Button.js +23 -16
- package/esm/Button/ButtonGroup.d.ts +1 -1
- package/esm/Button/ButtonGroup.js +5 -4
- package/esm/Button/IconButton.d.ts +2 -2
- package/esm/Button/IconButton.js +24 -19
- package/esm/Button/styles.d.ts +1 -1
- package/esm/Button/types.d.ts +5 -5
- package/esm/Card/Card.d.ts +3 -3
- package/esm/Card/Card.js +6 -4
- package/esm/Card/components/CardHeader.js +8 -3
- package/esm/Card/components/CardTitle.d.ts +1 -1
- package/esm/Card/components/CardTitle.js +11 -5
- package/esm/Checkbox/Checkbox.d.ts +3 -3
- package/esm/Checkbox/Checkbox.js +35 -26
- package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +2 -2
- package/esm/ClickAwayContainer/ClickAwayContainer.js +6 -4
- package/esm/DatePicker/DatePicker/DatePicker.d.ts +10 -10
- package/esm/DatePicker/DatePicker/DatePicker.js +82 -58
- package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +2 -2
- package/esm/DatePicker/DatePicker/datePickerReducer.js +2 -2
- package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +7 -7
- package/esm/DatePicker/DateRangePicker/DateRangePicker.js +88 -66
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +1 -1
- package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +17 -10
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +3 -3
- package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +4 -4
- package/esm/DatePicker/components/Calendar.d.ts +1 -1
- package/esm/DatePicker/components/Calendar.js +11 -5
- package/esm/DatePicker/components/Display.d.ts +2 -2
- package/esm/DatePicker/components/Display.js +5 -4
- package/esm/DatePicker/components/Footer.d.ts +2 -2
- package/esm/DatePicker/components/Footer.js +5 -4
- package/esm/DatePicker/components/FooterActions.d.ts +1 -1
- package/esm/DatePicker/components/FooterActions.js +16 -12
- package/esm/DatePicker/components/Modal.d.ts +3 -3
- package/esm/DatePicker/components/Modal.js +19 -12
- package/esm/DatePicker/components/NavBar.d.ts +2 -2
- package/esm/DatePicker/components/NavBar.js +40 -34
- package/esm/DatePicker/components/SidePanel.d.ts +2 -2
- package/esm/DatePicker/components/SidePanel.js +8 -6
- package/esm/Dropdown/Dropdown.d.ts +8 -8
- package/esm/Dropdown/Dropdown.js +45 -30
- package/esm/Dropdown/DropdownButton.d.ts +3 -3
- package/esm/Dropdown/DropdownButton.js +15 -8
- package/esm/Dropdown/DropdownContext.d.ts +2 -2
- package/esm/Dropdown/DropdownContext.js +2 -2
- package/esm/Dropdown/components/DropdownButtonItem.d.ts +1 -1
- package/esm/Dropdown/components/DropdownButtonItem.js +14 -12
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +4 -4
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +29 -22
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +1 -1
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +5 -4
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +1 -1
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +6 -4
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +1 -1
- package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +6 -4
- package/esm/Dropdown/components/DropdownDivider.js +2 -2
- package/esm/Dropdown/components/DropdownFooterItem.d.ts +2 -2
- package/esm/Dropdown/components/DropdownFooterItem.js +11 -4
- package/esm/Dropdown/components/DropdownLinkItem.js +14 -11
- package/esm/Dropdown/components/DropdownRadioItem.d.ts +2 -2
- package/esm/Dropdown/components/DropdownRadioItem.js +17 -14
- package/esm/Dropdown/components/DropdownTitle.d.ts +1 -1
- package/esm/Dropdown/components/DropdownTitle.js +8 -3
- package/esm/Dropdown/components/DropdownToggleItem.d.ts +3 -3
- package/esm/Dropdown/components/DropdownToggleItem.js +16 -14
- package/esm/Dropdown/useDropdownItemProps.d.ts +3 -3
- package/esm/Dropzone/Dropzone.d.ts +2 -2
- package/esm/Dropzone/Dropzone.js +58 -47
- package/esm/EmptyState/EmptyState.d.ts +1 -1
- package/esm/EmptyState/EmptyState.js +29 -21
- package/esm/EmptyState/types.d.ts +7 -7
- package/esm/Field/Field.d.ts +3 -3
- package/esm/Field/Field.js +33 -25
- package/esm/Flag/Flag.d.ts +2 -2
- package/esm/Flag/Flag.js +44 -33
- package/esm/Flag/Flags.d.ts +3 -3
- package/esm/Flag/Flags.js +30 -21
- package/esm/Flag/types.d.ts +4 -4
- package/esm/FlexGrid/FlexGrid.d.ts +1 -1
- package/esm/FlexGrid/FlexGrid.js +13 -8
- package/esm/FlexGrid/FlexGrid.tailwind.js +2 -2
- package/esm/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/esm/HelpUnderline/HelpUnderline.js +8 -6
- package/esm/Input/Input.d.ts +5 -5
- package/esm/Input/Input.js +119 -108
- package/esm/Insert/Insert.d.ts +2 -2
- package/esm/Insert/Insert.js +28 -21
- package/esm/KeyboardKey/KeyboardKey.d.ts +1 -1
- package/esm/KeyboardKey/KeyboardKey.js +7 -5
- package/esm/Link/BaseLink.d.ts +3 -3
- package/esm/Link/BaseLink.js +9 -3
- package/esm/Link/ButtonLink.d.ts +1 -1
- package/esm/Link/ButtonLink.js +9 -4
- package/esm/Link/IconButtonLink.d.ts +1 -1
- package/esm/Link/IconButtonLink.js +9 -4
- package/esm/Link/Link.d.ts +5 -5
- package/esm/Link/Link.js +18 -10
- package/esm/Medallion/Medallion.d.ts +2 -2
- package/esm/Medallion/Medallion.js +7 -6
- package/esm/Modal/Modal.d.ts +4 -4
- package/esm/Modal/Modal.js +50 -37
- package/esm/Modal/components/ModalFooter.d.ts +2 -2
- package/esm/Modal/components/ModalFooter.js +16 -9
- package/esm/Modal/components/ModalSection.d.ts +1 -1
- package/esm/Modal/components/ModalSection.js +5 -4
- package/esm/Pagination/CompactPagination/CompactPagination.js +39 -36
- package/esm/Pagination/DotPagination/DotPagination.js +16 -15
- package/esm/Pagination/Pagination/Pagination.js +54 -46
- package/esm/ProgressBar/ProgressBar.d.ts +2 -2
- package/esm/ProgressBar/ProgressBar.js +16 -10
- package/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
- package/esm/ProgressSpinner/ProgressSpinner.js +18 -10
- package/esm/RadioGroup/RadioButton.d.ts +3 -3
- package/esm/RadioGroup/RadioButton.js +9 -3
- package/esm/RadioGroup/RadioGroup.d.ts +3 -3
- package/esm/RadioGroup/RadioGroup.js +36 -28
- package/esm/RangeSlider/RangeSlider.d.ts +3 -3
- package/esm/RangeSlider/RangeSlider.js +39 -31
- package/esm/Satellite/Satellite.d.ts +2 -2
- package/esm/Satellite/Satellite.js +5 -4
- package/esm/Satellite/SatelliteContext.js +2 -2
- package/esm/Satellite/SatelliteRouter.d.ts +1 -1
- package/esm/ScrollIndicator/ScrollIndicator.d.ts +3 -3
- package/esm/ScrollIndicator/ScrollIndicator.js +12 -10
- package/esm/Select/Select.d.ts +3 -3
- package/esm/Select/Select.js +8 -3
- package/esm/Sidebar/Sidebar.d.ts +4 -4
- package/esm/Sidebar/Sidebar.js +16 -8
- package/esm/Sidebar/SidebarContext.d.ts +1 -1
- package/esm/Sidebar/components/SidebarHeader.d.ts +2 -2
- package/esm/Sidebar/components/SidebarHeader.js +11 -5
- package/esm/Sidebar/components/SidebarLink.d.ts +3 -3
- package/esm/Sidebar/components/SidebarLink.js +34 -21
- package/esm/Switch/Switch.d.ts +3 -3
- package/esm/Switch/Switch.js +16 -12
- package/esm/Switch/SwitchOption.d.ts +1 -1
- package/esm/Switch/SwitchOption.js +24 -15
- package/esm/Tables/DataTable/DataTable.d.ts +4 -4
- package/esm/Tables/DataTable/DataTable.js +58 -51
- package/esm/Tables/DataTable/components/Body.d.ts +4 -4
- package/esm/Tables/DataTable/components/Body.js +58 -44
- package/esm/Tables/DataTable/components/Footer.d.ts +1 -1
- package/esm/Tables/DataTable/components/Footer.js +5 -5
- package/esm/Tables/DataTable/components/Header.js +22 -18
- package/esm/Tables/DataTable/components/HeaderCell.d.ts +3 -3
- package/esm/Tables/DataTable/components/HeaderCell.js +20 -13
- package/esm/Tables/DataTable/components/Loader.js +16 -13
- package/esm/Tables/DataTable/types.d.ts +3 -3
- package/esm/Tables/DataTable/utils.d.ts +1 -1
- package/esm/Tables/Table/Table.d.ts +3 -3
- package/esm/Tables/Table/Table.js +20 -11
- package/esm/Tables/Table/components/Footer.d.ts +2 -2
- package/esm/Tables/Table/components/Footer.js +5 -4
- package/esm/Tabs/ContentTabs.d.ts +1 -1
- package/esm/Tabs/ContentTabs.js +38 -31
- package/esm/Tabs/LinkTabs.d.ts +1 -1
- package/esm/Tabs/LinkTabs.js +14 -14
- package/esm/Tabs/components/LinkTab.d.ts +3 -3
- package/esm/Tabs/components/LinkTab.js +18 -11
- package/esm/Tabs/types.d.ts +6 -6
- package/esm/Tabs/utils.d.ts +1 -1
- package/esm/Tag/Tag.d.ts +4 -4
- package/esm/Tag/Tag.js +23 -14
- package/esm/TextArea/TextArea.d.ts +3 -3
- package/esm/TextArea/TextArea.js +9 -3
- package/esm/TextWrap/TextWrap.js +22 -17
- package/esm/Toggle/Toggle.d.ts +3 -3
- package/esm/Toggle/Toggle.js +25 -16
- package/esm/Tooltip/OverflowTooltipWrapper.d.ts +2 -2
- package/esm/Tooltip/OverflowTooltipWrapper.js +33 -19
- package/esm/Tooltip/Tooltip.d.ts +3 -3
- package/esm/Tooltip/Tooltip.js +8 -3
- package/esm/Tooltip/TooltipWrapper.d.ts +3 -3
- package/esm/Tooltip/TooltipWrapper.js +48 -33
- package/esm/Tooltip/types.d.ts +2 -2
- package/esm/Typography/Typography.tailwind.js +2 -2
- package/esm/UserContent/UserContent.js +2 -2
- package/esm/UserContent/UserContent.tailwind.js +2 -4
- package/esm/styles/tailwind.config.js +2 -2
- package/esm/tailwind-types.d.ts +1 -1
- package/esm/types.d.ts +3 -3
- package/esm/utils/genericChangeHandler.d.ts +3 -3
- package/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/esm/utils/isRenderedChild.d.ts +2 -2
- package/esm/utils/useForwardedRef.d.ts +2 -2
- package/esm/utils/useForwardedRef.js +1 -1
- package/esm/utils/useLinkProps.d.ts +2 -2
- package/esm/utils/useTriggerInputChange.d.ts +2 -2
- package/package.json +4 -4
package/esm/Insert/Insert.js
CHANGED
|
@@ -2,9 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
4
|
|
|
5
|
-
import React from "react";
|
|
6
5
|
import Badge from "../Badge";
|
|
7
6
|
import stl from "../styles/helpers/satellitePrefixer";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Put more emphasis on side content.
|
|
@@ -41,26 +42,32 @@ export var Insert = function Insert(_ref) {
|
|
|
41
42
|
var title = _ref.title,
|
|
42
43
|
contexts = _ref.contexts,
|
|
43
44
|
children = _ref.children;
|
|
44
|
-
return /*#__PURE__*/
|
|
45
|
-
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["inline-flex flex-col self-start p-4 bg-grey-100 rounded"])))
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
return /*#__PURE__*/_jsxs("aside", {
|
|
46
|
+
className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["inline-flex flex-col self-start p-4 bg-grey-100 rounded"]))),
|
|
47
|
+
children: [contexts ? /*#__PURE__*/_jsx("span", {
|
|
48
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["block space-x-2 mb-4"]))),
|
|
49
|
+
children: contexts.map(function (context, idx) {
|
|
50
|
+
var _ref2 = typeof context === "string" ? {
|
|
51
|
+
label: context
|
|
52
|
+
} : context,
|
|
53
|
+
label = _ref2.label,
|
|
54
|
+
_ref2$variant = _ref2.variant,
|
|
55
|
+
variant = _ref2$variant === void 0 ? "grey" : _ref2$variant;
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
return /*#__PURE__*/_jsx(Badge, {
|
|
58
|
+
variant: variant,
|
|
59
|
+
children: label
|
|
60
|
+
}, idx);
|
|
61
|
+
})
|
|
62
|
+
}) : null, /*#__PURE__*/_jsxs("div", {
|
|
63
|
+
children: [/*#__PURE__*/_jsx("p", {
|
|
64
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["display-heading mb-2"]))),
|
|
65
|
+
children: title
|
|
66
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
67
|
+
className: stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["display-body typo-subdued"]))),
|
|
68
|
+
children: children
|
|
69
|
+
})]
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
65
72
|
};
|
|
66
73
|
export default Insert;
|
|
@@ -2,10 +2,11 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
import React, { createElement } from "react";
|
|
6
|
-
import { ArrowUp, ArrowDown, ArrowLeft, ArrowRight, CornerDownLeft } from "react-feather";
|
|
7
5
|
import cx from "classnames";
|
|
6
|
+
import { createElement } from "react";
|
|
7
|
+
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, CornerDownLeft } from "react-feather";
|
|
8
8
|
import stl from "../styles/helpers/satellitePrefixer";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
var KEY_MAPPINGS = {
|
|
10
11
|
up: ArrowUp,
|
|
11
12
|
down: ArrowDown,
|
|
@@ -22,7 +23,8 @@ export var KeyboardKey = function KeyboardKey(_ref) {
|
|
|
22
23
|
width: "1em",
|
|
23
24
|
height: "1em"
|
|
24
25
|
});
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["keyboard-key "]))), className)
|
|
27
|
-
|
|
26
|
+
return /*#__PURE__*/_jsx("kbd", {
|
|
27
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["keyboard-key "]))), className),
|
|
28
|
+
children: mappedValue
|
|
29
|
+
});
|
|
28
30
|
};
|
package/esm/Link/BaseLink.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type BaseLinkProps =
|
|
3
|
-
export declare const BaseLink:
|
|
1
|
+
import type { AnchorHTMLAttributes } from "react";
|
|
2
|
+
export declare type BaseLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
3
|
+
export declare const BaseLink: import("react").ForwardRefExoticComponent<BaseLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
4
4
|
export default BaseLink;
|
package/esm/Link/BaseLink.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
7
|
+
import { forwardRef } from "react";
|
|
3
8
|
import useLinkProps from "../utils/useLinkProps";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
10
|
export var BaseLink = /*#__PURE__*/forwardRef(function (anchorProps, ref) {
|
|
5
11
|
var linkProps = useLinkProps(anchorProps);
|
|
6
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/_jsx("a", _objectSpread(_objectSpread(_objectSpread({}, anchorProps), linkProps), {}, {
|
|
7
13
|
ref: ref
|
|
8
14
|
}));
|
|
9
15
|
});
|
package/esm/Link/ButtonLink.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonBaseProps, ExtractProps } from "../Button/types";
|
|
2
|
+
import type { ButtonBaseProps, ExtractProps } from "../Button/types";
|
|
3
3
|
export declare type ButtonLinkProps = ButtonBaseProps & ExtractProps<"a">;
|
|
4
4
|
export declare const ButtonLink: ({ endIcon: EndIcon, ...props }: ButtonLinkProps) => JSX.Element;
|
|
5
5
|
export default ButtonLink;
|
package/esm/Link/ButtonLink.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["endIcon"];
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
|
+
|
|
5
9
|
import { ExternalLink } from "react-feather";
|
|
6
|
-
import useLinkProps from "../utils/useLinkProps";
|
|
7
10
|
import Button from "../Button/Button";
|
|
11
|
+
import useLinkProps from "../utils/useLinkProps";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
13
|
export var ButtonLink = function ButtonLink(_ref) {
|
|
9
14
|
var EndIcon = _ref.endIcon,
|
|
10
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -15,7 +20,7 @@ export var ButtonLink = function ButtonLink(_ref) {
|
|
|
15
20
|
EndIcon = ExternalLink;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread(_objectSpread({}, props), linkProps), {}, {
|
|
19
24
|
endIcon: EndIcon,
|
|
20
25
|
as: "a",
|
|
21
26
|
onClick: function onClick(evt) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconButtonBaseProps } from "../Button/IconButton";
|
|
3
|
-
import { ExtractProps } from "../Button/types";
|
|
3
|
+
import type { ExtractProps } from "../Button/types";
|
|
4
4
|
export declare type IconButtonLinkProps = IconButtonBaseProps & ExtractProps<"a">;
|
|
5
5
|
export declare const IconButtonLink: (props: IconButtonLinkProps) => JSX.Element;
|
|
6
6
|
export default IconButtonLink;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
|
|
4
7
|
import IconButton from "../Button/IconButton";
|
|
8
|
+
import useLinkProps from "../utils/useLinkProps";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
10
|
export var IconButtonLink = function IconButtonLink(props) {
|
|
6
11
|
var linkProps = useLinkProps(props);
|
|
7
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/_jsx(IconButton, _objectSpread(_objectSpread(_objectSpread({}, props), linkProps), {}, {
|
|
8
13
|
as: "a"
|
|
9
14
|
}));
|
|
10
15
|
};
|
package/esm/Link/Link.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { IconComponentType } from "../types";
|
|
1
|
+
import type { AnchorHTMLAttributes } from "react";
|
|
2
|
+
import type { IconComponentType } from "../types";
|
|
3
3
|
export declare type LinkProps = {
|
|
4
4
|
startIcon?: IconComponentType;
|
|
5
5
|
endIcon?: IconComponentType;
|
|
6
|
-
} &
|
|
7
|
-
export declare const Link:
|
|
6
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
7
|
+
export declare const Link: import("react").ForwardRefExoticComponent<{
|
|
8
8
|
startIcon?: IconComponentType | undefined;
|
|
9
9
|
endIcon?: IconComponentType | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
export default Link;
|
package/esm/Link/Link.js
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
|
|
5
5
|
var _templateObject, _templateObject2, _templateObject3;
|
|
6
6
|
|
|
7
7
|
var _excluded = ["className", "children", "startIcon", "endIcon"];
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
|
|
9
13
|
import cx from "classnames";
|
|
14
|
+
import { forwardRef } from "react";
|
|
10
15
|
import { ExternalLink } from "react-feather";
|
|
11
16
|
import stl from "../styles/helpers/satellitePrefixer";
|
|
12
17
|
import useLinkProps from "../utils/useLinkProps";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
20
|
export var Link = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
21
|
var className = _ref.className,
|
|
15
22
|
children = _ref.children,
|
|
@@ -24,15 +31,16 @@ export var Link = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
24
31
|
EndIcon = ExternalLink;
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread(_objectSpread({}, anchorProps), linkProps), {}, {
|
|
28
35
|
ref: ref,
|
|
29
|
-
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["typo-link inline-flex items-center"]))), className)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["typo-link inline-flex items-center"]))), className),
|
|
37
|
+
children: [StartIcon && /*#__PURE__*/_jsx(StartIcon, {
|
|
38
|
+
className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["mr-1"]))),
|
|
39
|
+
size: "1em"
|
|
40
|
+
}), children, EndIcon && /*#__PURE__*/_jsx(EndIcon, {
|
|
41
|
+
className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["ml-1"]))),
|
|
42
|
+
size: "1em"
|
|
43
|
+
})]
|
|
36
44
|
}));
|
|
37
45
|
});
|
|
38
46
|
Link.displayName = "Link";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IconComponentType } from "../types";
|
|
3
|
-
import { MedallionSize, MedallionVariant } from "./types";
|
|
2
|
+
import type { IconComponentType } from "../types";
|
|
3
|
+
import type { MedallionSize, MedallionVariant } from "./types";
|
|
4
4
|
export interface MedallionProps {
|
|
5
5
|
icon: IconComponentType;
|
|
6
6
|
variant?: MedallionVariant;
|
|
@@ -2,9 +2,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
4
4
|
|
|
5
|
-
import React from "react";
|
|
6
5
|
import cx from "classnames";
|
|
7
6
|
import stl from "../styles/helpers/satellitePrefixer";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var VARIANT_CLASSNAMES = {
|
|
9
9
|
grey: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["medallion-grey text-grey-600"]))),
|
|
10
10
|
pink: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["medallion-pink text-pink-600"]))),
|
|
@@ -23,10 +23,11 @@ export var Medallion = function Medallion(_ref) {
|
|
|
23
23
|
size = _ref$size === void 0 ? "default" : _ref$size,
|
|
24
24
|
className = _ref.className;
|
|
25
25
|
var medallionClassName = VARIANT_CLASSNAMES[variant];
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
-
className: cx(stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["medallion inline-flex items-center justify-center rounded-full ", ""])), size === "large" && "medallion-large"), medallionClassName, className)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
return /*#__PURE__*/_jsx("div", {
|
|
27
|
+
className: cx(stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["medallion inline-flex items-center justify-center rounded-full ", ""])), size === "large" && "medallion-large"), medallionClassName, className),
|
|
28
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
29
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["p-1 ", ""])), size === "large" && "w-10 h-10")
|
|
30
|
+
})
|
|
31
|
+
});
|
|
31
32
|
};
|
|
32
33
|
export default Medallion;
|
package/esm/Modal/Modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
export declare type ModalSizeVariant = "medium" | "large";
|
|
3
3
|
export interface ModalProps {
|
|
4
4
|
open?: boolean;
|
|
@@ -10,11 +10,11 @@ export interface ModalProps {
|
|
|
10
10
|
hideCloseIcon?: boolean;
|
|
11
11
|
centerY?: boolean;
|
|
12
12
|
onDismiss?: () => void;
|
|
13
|
-
children:
|
|
13
|
+
children: ReactNode;
|
|
14
14
|
closeIconText?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const Modal: {
|
|
17
|
-
({ title, className, children, open, fullBleed, onDismiss, animate, hideCloseIcon, size, centerY, closeIconText, }: ModalProps):
|
|
18
|
-
Footer:
|
|
17
|
+
({ title, className, children, open, fullBleed, onDismiss, animate, hideCloseIcon, size, centerY, closeIconText, }: ModalProps): import("react").ReactPortal;
|
|
18
|
+
Footer: import("react").FunctionComponent<import("./components/ModalFooter").ModalFooterProps>;
|
|
19
19
|
};
|
|
20
20
|
export default Modal;
|
package/esm/Modal/Modal.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
4
|
|
|
6
5
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
7
6
|
|
|
8
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
8
|
|
|
10
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
10
|
|
|
12
|
-
import
|
|
11
|
+
import cx from "classnames";
|
|
12
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
13
13
|
import { createPortal } from "react-dom";
|
|
14
|
+
import { X } from "react-feather";
|
|
14
15
|
import { CSSTransition } from "react-transition-group";
|
|
15
16
|
import useKeyPressEvent from "react-use/lib/useKeyPressEvent";
|
|
16
17
|
import useLockBodyScroll from "react-use/lib/useLockBodyScroll";
|
|
17
|
-
import cx from "classnames";
|
|
18
|
-
import { X } from "react-feather";
|
|
19
|
-
import stl from "../styles/helpers/satellitePrefixer";
|
|
20
|
-
import Card from "../Card";
|
|
21
18
|
import { IconButton } from "../Button";
|
|
19
|
+
import Card from "../Card";
|
|
20
|
+
import stl from "../styles/helpers/satellitePrefixer";
|
|
22
21
|
import uniqueId from "../utils/uniqueId";
|
|
23
22
|
import ModalFooter from "./components/ModalFooter";
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
26
|
|
|
25
27
|
var ModalAnimation = function ModalAnimation(props) {
|
|
26
28
|
return (
|
|
27
29
|
/*#__PURE__*/
|
|
28
30
|
|
|
29
31
|
/* eslint-disable-next-line @algolia/satellite/invalid-classnames */
|
|
30
|
-
|
|
32
|
+
_jsx(CSSTransition, _objectSpread(_objectSpread({}, props), {}, {
|
|
31
33
|
classNames: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["satellite-modal"]))),
|
|
32
34
|
timeout: 200,
|
|
33
35
|
appear: true,
|
|
@@ -37,7 +39,9 @@ var ModalAnimation = function ModalAnimation(props) {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
var ModalNoAnimation = function ModalNoAnimation(props) {
|
|
40
|
-
return props["in"] ? /*#__PURE__*/
|
|
42
|
+
return props["in"] ? /*#__PURE__*/_jsx(_Fragment, {
|
|
43
|
+
children: props.children
|
|
44
|
+
}) : null;
|
|
41
45
|
};
|
|
42
46
|
|
|
43
47
|
var SIZE_CLASSNAMES = {
|
|
@@ -116,32 +120,41 @@ export var Modal = function Modal(_ref) {
|
|
|
116
120
|
"aria-label": "Modal"
|
|
117
121
|
});
|
|
118
122
|
|
|
119
|
-
return /*#__PURE__*/createPortal( /*#__PURE__*/
|
|
120
|
-
"in": open
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
123
|
+
return /*#__PURE__*/createPortal( /*#__PURE__*/_jsx(ModalContainer, {
|
|
124
|
+
"in": open,
|
|
125
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
126
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
127
|
+
className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["bg-grey-900 bg-opacity-30 z-modalOverlay inset-x-0 inset-y-0 fixed w-full h-full"]))))
|
|
128
|
+
}), /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
129
|
+
className: cx(stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["modal-container inset-x-0 inset-y-0 fixed w-full h-full p-4 overflow-x-hidden overflow-y-auto"]))), centerY && stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["flex items-center"])))),
|
|
130
|
+
ref: setModalWrapperRef
|
|
131
|
+
}, modalAccessibilityProps), {}, {
|
|
132
|
+
children: /*#__PURE__*/_jsxs(Card, {
|
|
133
|
+
ref: dialogRef,
|
|
134
|
+
elevation: "500",
|
|
135
|
+
className: cx(stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["my-6 mx-auto"]))), SIZE_CLASSNAMES[size], className),
|
|
136
|
+
fullBleed: true,
|
|
137
|
+
children: [/*#__PURE__*/_jsxs("header", {
|
|
138
|
+
className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n px-8 min-h-14\n flex items-center justify-between space-x-2\n ", "\n ", "\n "])), title ? "border-b border-grey-100" : "justify-end", !title && hideCloseIcon && "hidden"),
|
|
139
|
+
children: [title && /*#__PURE__*/_jsx("h2", {
|
|
140
|
+
id: modalTitleId,
|
|
141
|
+
className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["flex-1 display-heading truncate"]))),
|
|
142
|
+
children: title
|
|
143
|
+
}), !hideCloseIcon && /*#__PURE__*/_jsx(IconButton, {
|
|
144
|
+
icon: X,
|
|
145
|
+
title: closeIconText,
|
|
146
|
+
variant: "subtle",
|
|
147
|
+
onClick: onDismiss,
|
|
148
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["flex-shrink-0 -mr-2"])))
|
|
149
|
+
})]
|
|
150
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
151
|
+
className: fullBleed ? undefined : stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["p-10"]))),
|
|
152
|
+
children: children
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
}))]
|
|
156
|
+
})
|
|
157
|
+
}), document.body);
|
|
145
158
|
};
|
|
146
159
|
Modal.Footer = ModalFooter;
|
|
147
160
|
export default Modal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare type ModalFooterProps =
|
|
1
|
+
import type { FunctionComponent, HTMLAttributes } from "react";
|
|
2
|
+
export declare type ModalFooterProps = HTMLAttributes<HTMLElement>;
|
|
3
3
|
export declare const ModalFooter: FunctionComponent<ModalFooterProps>;
|
|
4
4
|
export default ModalFooter;
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
|
|
5
5
|
var _templateObject;
|
|
6
6
|
|
|
7
7
|
var _excluded = ["className", "children"];
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
|
|
9
13
|
import cx from "classnames";
|
|
10
|
-
import stl from "../../styles/helpers/satellitePrefixer";
|
|
11
14
|
import FlexGrid from "../../FlexGrid";
|
|
15
|
+
import stl from "../../styles/helpers/satellitePrefixer";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
17
|
export var ModalFooter = function ModalFooter(_ref) {
|
|
13
18
|
var className = _ref.className,
|
|
14
19
|
children = _ref.children,
|
|
15
20
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
21
|
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["mt-8"]))), className)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
23
|
+
className: cx(stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["mt-8"]))), className),
|
|
24
|
+
children: /*#__PURE__*/_jsx(FlexGrid, {
|
|
25
|
+
spacing: "md",
|
|
26
|
+
alignment: "center",
|
|
27
|
+
children: children
|
|
28
|
+
})
|
|
29
|
+
}));
|
|
23
30
|
};
|
|
24
31
|
export default ModalFooter;
|
|
@@ -2,16 +2,17 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
import React from "react";
|
|
6
5
|
import cx from "classnames";
|
|
7
6
|
import stl from "../../styles/helpers/satellitePrefixer";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export var ModalSection = function ModalSection(_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
className = _ref.className,
|
|
11
11
|
_ref$fullBleed = _ref.fullBleed,
|
|
12
12
|
fullBleed = _ref$fullBleed === void 0 ? false : _ref$fullBleed;
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
-
className: cx(fullBleed && stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["-mx-10"]))), className)
|
|
15
|
-
|
|
13
|
+
return /*#__PURE__*/_jsx("section", {
|
|
14
|
+
className: cx(fullBleed && stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["-mx-10"]))), className),
|
|
15
|
+
children: children
|
|
16
|
+
});
|
|
16
17
|
};
|
|
17
18
|
export default ModalSection;
|