@algolia/satellite 2.0.0-rc.1 → 2.0.0-rc.3
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/dist/cjs/Actions/Button/PolymorphicIconButton.d.ts +1 -1
- package/dist/cjs/Actions/{Switch/Switch.d.ts → SegmentedControl/SegmentedControl.d.ts} +6 -6
- package/dist/cjs/Actions/{Switch/Switch.js → SegmentedControl/SegmentedControl.js} +6 -6
- package/dist/cjs/{Fields/Toggle/Toggle.tailwind.d.ts → Actions/SegmentedControl/SegmentedControl.tailwind.d.ts} +2 -2
- package/dist/cjs/Actions/{Switch/Switch.tailwind.js → SegmentedControl/SegmentedControl.tailwind.js} +4 -4
- package/dist/cjs/Actions/{Switch/SwitchOption.d.ts → SegmentedControl/SegmentedControlOption.d.ts} +2 -2
- package/dist/cjs/Actions/{Switch/SwitchOption.js → SegmentedControl/SegmentedControlOption.js} +2 -2
- package/dist/cjs/Actions/SegmentedControl/index.d.ts +2 -0
- package/dist/cjs/Actions/SegmentedControl/index.js +27 -0
- package/dist/cjs/Actions/SegmentedControl/types.d.ts +7 -0
- package/dist/cjs/Actions/{Switch → SegmentedControl}/utils.d.ts +2 -2
- package/dist/cjs/Actions/{Switch → SegmentedControl}/utils.js +4 -4
- package/dist/cjs/Actions/index.d.ts +1 -1
- package/dist/cjs/Actions/index.js +4 -4
- package/dist/cjs/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +4 -2
- package/dist/cjs/Avatars/ApplicationAvatar/ApplicationAvatar.js +7 -8
- package/dist/cjs/Avatars/UserAvatar/UserAvatar.d.ts +7 -4
- package/dist/cjs/Avatars/UserAvatar/UserAvatar.js +14 -8
- package/dist/cjs/Avatars/types.d.ts +3 -2
- package/dist/cjs/Avatars/types.js +6 -2
- package/dist/cjs/Fields/AutoComplete/AutoComplete.js +6 -5
- package/dist/cjs/Fields/DateInput/DateInput.js +2 -1
- package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.js +2 -1
- package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.js +5 -3
- package/dist/cjs/Fields/DatePicker/components/Popover.d.ts +2 -1
- package/dist/cjs/Fields/DatePicker/components/Popover.js +4 -7
- package/dist/cjs/Fields/DatePicker/types.d.ts +5 -2
- package/dist/cjs/Fields/Dropzone/Dropzone.d.ts +13 -2
- package/dist/cjs/Fields/Dropzone/Dropzone.js +78 -30
- package/dist/cjs/Fields/Field/Field.js +62 -46
- package/dist/cjs/Fields/FilePicker/FilePicker.d.ts +16 -0
- package/dist/cjs/Fields/FilePicker/FilePicker.js +141 -0
- package/dist/cjs/Fields/FilePicker/index.d.ts +1 -0
- package/dist/cjs/Fields/FilePicker/index.js +16 -0
- package/dist/cjs/Fields/Form/Form.d.ts +3 -0
- package/dist/cjs/Fields/Form/Form.js +7 -2
- package/dist/cjs/Fields/Form/FormContext.d.ts +3 -0
- package/dist/cjs/Fields/Form/index.d.ts +1 -1
- package/dist/cjs/Fields/Form/stories/Complex.js +3 -7
- package/dist/cjs/Fields/Form/stories/InlineFields.js +62 -0
- package/dist/cjs/Fields/Form/stories/JSONForms.js +2 -2
- package/dist/cjs/Fields/{Toggle/Toggle.d.ts → Switch/Switch.d.ts} +4 -4
- package/dist/cjs/Fields/{Toggle/Toggle.js → Switch/Switch.js} +8 -8
- package/dist/cjs/Fields/{Toggle/Toggle.tailwind.js → Switch/Switch.tailwind.js} +14 -14
- package/dist/cjs/Fields/Switch/index.d.ts +1 -0
- package/dist/cjs/Fields/{Toggle → Switch}/index.js +4 -4
- package/dist/cjs/Fields/index.d.ts +2 -1
- package/dist/cjs/Fields/index.js +15 -4
- package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/dist/cjs/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +11 -2
- package/dist/cjs/Indicators/Badge/Badge.d.ts +13 -2
- package/dist/cjs/Indicators/Banners/Alert/Alert.d.ts +25 -8
- package/dist/cjs/Indicators/Banners/Promote/Promote.d.ts +30 -4
- package/dist/cjs/Indicators/Banners/SystemNotification/SystemNotification.d.ts +6 -0
- package/dist/cjs/Indicators/EmptyState/types.d.ts +21 -9
- package/dist/cjs/Indicators/KeyboardKey/KeyboardKey.d.ts +3 -0
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.d.ts +9 -3
- package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.d.ts +12 -0
- package/dist/cjs/Indicators/Skeleton/Skeleton.d.ts +12 -0
- package/dist/cjs/Indicators/Tag/Tag.d.ts +19 -5
- package/dist/cjs/Layout/Card/Card.d.ts +6 -0
- package/dist/cjs/Layout/FlexGrid/FlexGrid.d.ts +18 -4
- package/dist/cjs/Layout/Insert/Insert.d.ts +9 -1
- package/dist/cjs/Layout/Sidebar/Sidebar.d.ts +14 -2
- package/dist/cjs/Layout/Sidebar/SidebarButtonLink.d.ts +18 -0
- package/dist/cjs/Layout/Sidebar/SidebarHeading.d.ts +6 -0
- package/dist/cjs/Layout/Sidebar/SidebarLink.d.ts +12 -0
- package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +18 -0
- package/dist/cjs/Layout/Sidebar/SidebarNav.d.ts +12 -0
- package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +16 -1
- package/dist/cjs/Layout/Tables/DataTable/components/Body.d.ts +8 -0
- package/dist/cjs/Layout/Tables/DataTable/components/Footer.d.ts +2 -0
- package/dist/cjs/Layout/Tables/DataTable/components/Header.d.ts +4 -0
- package/dist/cjs/Layout/Tables/DataTable/components/HeaderCell.d.ts +6 -0
- package/dist/cjs/Layout/Tables/DataTable/components/Loader.d.ts +1 -0
- package/dist/cjs/Layout/Tables/Table/Table.d.ts +15 -0
- package/dist/cjs/Layout/Tables/Table/components/TableFooter.d.ts +3 -0
- package/dist/cjs/Navigation/Link/Link.d.ts +18 -0
- package/dist/cjs/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +24 -1
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +15 -1
- package/dist/cjs/Navigation/Pagination/Pagination/Pagination.d.ts +15 -0
- package/dist/cjs/Navigation/Tabs/types.d.ts +21 -0
- package/dist/cjs/Overlay/Dropdown/components/DropdownToggleItem.d.ts +0 -10
- package/dist/cjs/Overlay/Dropdown/components/DropdownToggleItem.js +1 -46
- package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -1
- package/dist/{esm/Overlay/Tooltip → cjs/Overlay/OverflowTooltipWrapper}/OverflowTooltipWrapper.d.ts +1 -1
- package/dist/cjs/Overlay/{Tooltip → OverflowTooltipWrapper}/OverflowTooltipWrapper.js +1 -1
- package/dist/cjs/Overlay/OverflowTooltipWrapper/index.d.ts +1 -0
- package/dist/cjs/Overlay/OverflowTooltipWrapper/index.js +16 -0
- package/dist/cjs/Overlay/Tooltip/index.d.ts +0 -2
- package/dist/cjs/Overlay/Tooltip/index.js +0 -22
- package/dist/cjs/Overlay/{Tooltip → TooltipWrapper}/TooltipWrapper.js +1 -1
- package/dist/cjs/Overlay/TooltipWrapper/index.d.ts +1 -0
- package/dist/cjs/Overlay/TooltipWrapper/index.js +16 -0
- package/dist/{esm/Overlay/Tooltip → cjs/Overlay/TooltipWrapper}/types.d.ts +1 -1
- package/dist/cjs/Overlay/TooltipWrapper/types.js +5 -0
- package/dist/cjs/Overlay/index.d.ts +2 -1
- package/dist/cjs/Overlay/index.js +22 -11
- package/dist/cjs/Satellite/locale.d.ts +3 -2
- package/dist/cjs/styles/tailwind.config.js +1 -1
- package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/esm/Actions/Button/PolymorphicIconButton.d.ts +1 -1
- package/dist/esm/Actions/{Switch/Switch.d.ts → SegmentedControl/SegmentedControl.d.ts} +6 -6
- package/dist/esm/Actions/{Switch/Switch.js → SegmentedControl/SegmentedControl.js} +5 -5
- package/dist/esm/{Fields/Toggle/Toggle.tailwind.d.ts → Actions/SegmentedControl/SegmentedControl.tailwind.d.ts} +2 -2
- package/dist/esm/Actions/{Switch/Switch.tailwind.js → SegmentedControl/SegmentedControl.tailwind.js} +4 -4
- package/dist/esm/Actions/{Switch/SwitchOption.d.ts → SegmentedControl/SegmentedControlOption.d.ts} +2 -2
- package/dist/esm/Actions/{Switch/SwitchOption.js → SegmentedControl/SegmentedControlOption.js} +1 -1
- package/dist/esm/Actions/SegmentedControl/index.d.ts +2 -0
- package/dist/esm/Actions/SegmentedControl/index.js +2 -0
- package/dist/esm/Actions/SegmentedControl/types.d.ts +7 -0
- package/dist/esm/Actions/{Switch → SegmentedControl}/utils.d.ts +2 -2
- package/dist/esm/Actions/{Switch → SegmentedControl}/utils.js +3 -3
- package/dist/esm/Actions/index.d.ts +1 -1
- package/dist/esm/Actions/index.js +1 -1
- package/dist/esm/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +4 -2
- package/dist/esm/Avatars/ApplicationAvatar/ApplicationAvatar.js +7 -8
- package/dist/esm/Avatars/UserAvatar/UserAvatar.d.ts +7 -4
- package/dist/esm/Avatars/UserAvatar/UserAvatar.js +14 -8
- package/dist/esm/Avatars/types.d.ts +3 -2
- package/dist/esm/Avatars/types.js +4 -1
- package/dist/esm/Fields/AutoComplete/AutoComplete.js +7 -5
- package/dist/esm/Fields/DateInput/DateInput.js +2 -1
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.js +2 -1
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.js +5 -3
- package/dist/esm/Fields/DatePicker/components/Popover.d.ts +2 -1
- package/dist/esm/Fields/DatePicker/components/Popover.js +4 -7
- package/dist/esm/Fields/DatePicker/types.d.ts +5 -2
- package/dist/esm/Fields/Dropzone/Dropzone.d.ts +13 -2
- package/dist/esm/Fields/Dropzone/Dropzone.js +80 -32
- package/dist/esm/Fields/Field/Field.js +62 -46
- package/dist/esm/Fields/FilePicker/FilePicker.d.ts +16 -0
- package/dist/esm/Fields/FilePicker/FilePicker.js +134 -0
- package/dist/esm/Fields/FilePicker/index.d.ts +1 -0
- package/dist/esm/Fields/FilePicker/index.js +1 -0
- package/dist/esm/Fields/Form/Form.d.ts +3 -0
- package/dist/esm/Fields/Form/Form.js +7 -2
- package/dist/esm/Fields/Form/FormContext.d.ts +3 -0
- package/dist/esm/Fields/Form/index.d.ts +1 -1
- package/dist/esm/Fields/Form/stories/Complex.js +3 -7
- package/dist/esm/Fields/Form/stories/InlineFields.js +55 -0
- package/dist/esm/Fields/Form/stories/JSONForms.js +2 -2
- package/dist/esm/Fields/{Toggle/Toggle.d.ts → Switch/Switch.d.ts} +4 -4
- package/dist/esm/Fields/{Toggle/Toggle.js → Switch/Switch.js} +7 -7
- package/dist/esm/Fields/{Toggle/Toggle.tailwind.js → Switch/Switch.tailwind.js} +14 -14
- package/dist/esm/Fields/Switch/index.d.ts +1 -0
- package/dist/esm/Fields/Switch/index.js +1 -0
- package/dist/esm/Fields/index.d.ts +2 -1
- package/dist/esm/Fields/index.js +2 -1
- package/dist/esm/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/dist/esm/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +11 -2
- package/dist/esm/Indicators/Badge/Badge.d.ts +13 -2
- package/dist/esm/Indicators/Banners/Alert/Alert.d.ts +25 -8
- package/dist/esm/Indicators/Banners/Promote/Promote.d.ts +30 -4
- package/dist/esm/Indicators/Banners/SystemNotification/SystemNotification.d.ts +6 -0
- package/dist/esm/Indicators/EmptyState/types.d.ts +21 -9
- package/dist/esm/Indicators/KeyboardKey/KeyboardKey.d.ts +3 -0
- package/dist/esm/Indicators/ProgressBar/ProgressBar.d.ts +9 -3
- package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.d.ts +9 -0
- package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.d.ts +12 -0
- package/dist/esm/Indicators/Skeleton/Skeleton.d.ts +12 -0
- package/dist/esm/Indicators/Tag/Tag.d.ts +19 -5
- package/dist/esm/Layout/Card/Card.d.ts +6 -0
- package/dist/esm/Layout/FlexGrid/FlexGrid.d.ts +18 -4
- package/dist/esm/Layout/Insert/Insert.d.ts +9 -1
- package/dist/esm/Layout/Sidebar/Sidebar.d.ts +14 -2
- package/dist/esm/Layout/Sidebar/SidebarButtonLink.d.ts +18 -0
- package/dist/esm/Layout/Sidebar/SidebarHeading.d.ts +6 -0
- package/dist/esm/Layout/Sidebar/SidebarLink.d.ts +12 -0
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +18 -0
- package/dist/esm/Layout/Sidebar/SidebarNav.d.ts +12 -0
- package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +16 -1
- package/dist/esm/Layout/Tables/DataTable/components/Body.d.ts +8 -0
- package/dist/esm/Layout/Tables/DataTable/components/Footer.d.ts +2 -0
- package/dist/esm/Layout/Tables/DataTable/components/Header.d.ts +4 -0
- package/dist/esm/Layout/Tables/DataTable/components/HeaderCell.d.ts +6 -0
- package/dist/esm/Layout/Tables/DataTable/components/Loader.d.ts +1 -0
- package/dist/esm/Layout/Tables/Table/Table.d.ts +15 -0
- package/dist/esm/Layout/Tables/Table/components/TableFooter.d.ts +3 -0
- package/dist/esm/Navigation/Link/Link.d.ts +18 -0
- package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +24 -1
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +15 -1
- package/dist/esm/Navigation/Pagination/Pagination/Pagination.d.ts +15 -0
- package/dist/esm/Navigation/Tabs/types.d.ts +21 -0
- package/dist/esm/Overlay/Dropdown/components/DropdownToggleItem.d.ts +0 -10
- package/dist/esm/Overlay/Dropdown/components/DropdownToggleItem.js +0 -39
- package/dist/esm/Overlay/MenuButton/components/items/ToggleItem.js +2 -2
- package/dist/{cjs/Overlay/Tooltip → esm/Overlay/OverflowTooltipWrapper}/OverflowTooltipWrapper.d.ts +1 -1
- package/dist/esm/Overlay/{Tooltip → OverflowTooltipWrapper}/OverflowTooltipWrapper.js +1 -1
- package/dist/esm/Overlay/OverflowTooltipWrapper/index.d.ts +1 -0
- package/dist/esm/Overlay/OverflowTooltipWrapper/index.js +1 -0
- package/dist/esm/Overlay/Tooltip/index.d.ts +0 -2
- package/dist/esm/Overlay/Tooltip/index.js +1 -3
- package/dist/esm/Overlay/{Tooltip → TooltipWrapper}/TooltipWrapper.js +1 -1
- package/dist/esm/Overlay/TooltipWrapper/index.d.ts +1 -0
- package/dist/esm/Overlay/TooltipWrapper/index.js +1 -0
- package/dist/{cjs/Overlay/Tooltip → esm/Overlay/TooltipWrapper}/types.d.ts +1 -1
- package/dist/esm/Overlay/TooltipWrapper/types.js +1 -0
- package/dist/esm/Overlay/index.d.ts +2 -1
- package/dist/esm/Overlay/index.js +3 -2
- package/dist/esm/Satellite/locale.d.ts +3 -2
- package/dist/esm/styles/tailwind.config.js +1 -1
- package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +2 -2
- package/dist/cjs/Actions/Switch/index.d.ts +0 -2
- package/dist/cjs/Actions/Switch/index.js +0 -27
- package/dist/cjs/Actions/Switch/types.d.ts +0 -8
- package/dist/cjs/Actions/Switch/types.js +0 -7
- package/dist/cjs/Fields/Toggle/index.d.ts +0 -1
- package/dist/cjs/Overlay/Dropdown/Dropdown.d.ts +0 -37
- package/dist/cjs/Overlay/Dropdown/Dropdown.js +0 -124
- package/dist/cjs/Overlay/Dropdown/DropdownButton.d.ts +0 -13
- package/dist/cjs/Overlay/Dropdown/DropdownButton.js +0 -49
- package/dist/cjs/Overlay/Dropdown/DropdownContext.d.ts +0 -6
- package/dist/cjs/Overlay/Dropdown/DropdownContext.js +0 -15
- package/dist/cjs/Overlay/Dropdown/components/DropdownButtonItem.d.ts +0 -14
- package/dist/cjs/Overlay/Dropdown/components/DropdownButtonItem.js +0 -49
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -10
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +0 -60
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +0 -8
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +0 -21
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +0 -8
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +0 -17
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +0 -10
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +0 -37
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +0 -10
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +0 -34
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/index.d.ts +0 -5
- package/dist/cjs/Overlay/Dropdown/components/DropdownCollapsibleItem/index.js +0 -63
- package/dist/cjs/Overlay/Dropdown/components/DropdownDivider.d.ts +0 -2
- package/dist/cjs/Overlay/Dropdown/components/DropdownDivider.js +0 -17
- package/dist/cjs/Overlay/Dropdown/components/DropdownFooterItem.d.ts +0 -9
- package/dist/cjs/Overlay/Dropdown/components/DropdownFooterItem.js +0 -29
- package/dist/cjs/Overlay/Dropdown/components/DropdownLinkItem.d.ts +0 -10
- package/dist/cjs/Overlay/Dropdown/components/DropdownLinkItem.js +0 -56
- package/dist/cjs/Overlay/Dropdown/components/DropdownRadioItem.d.ts +0 -6
- package/dist/cjs/Overlay/Dropdown/components/DropdownRadioItem.js +0 -43
- package/dist/cjs/Overlay/Dropdown/components/DropdownTitle.d.ts +0 -6
- package/dist/cjs/Overlay/Dropdown/components/DropdownTitle.js +0 -25
- package/dist/cjs/Overlay/Dropdown/index.d.ts +0 -12
- package/dist/cjs/Overlay/Dropdown/index.js +0 -147
- package/dist/cjs/Overlay/Dropdown/useDropdownItemProps.d.ts +0 -20
- package/dist/cjs/Overlay/Dropdown/useDropdownItemProps.js +0 -37
- package/dist/esm/Actions/Switch/index.d.ts +0 -2
- package/dist/esm/Actions/Switch/index.js +0 -2
- package/dist/esm/Actions/Switch/types.d.ts +0 -8
- package/dist/esm/Actions/Switch/types.js +0 -1
- package/dist/esm/Fields/Toggle/index.d.ts +0 -1
- package/dist/esm/Fields/Toggle/index.js +0 -1
- package/dist/esm/Overlay/Dropdown/Dropdown.d.ts +0 -37
- package/dist/esm/Overlay/Dropdown/Dropdown.js +0 -117
- package/dist/esm/Overlay/Dropdown/DropdownButton.d.ts +0 -13
- package/dist/esm/Overlay/Dropdown/DropdownButton.js +0 -42
- package/dist/esm/Overlay/Dropdown/DropdownContext.d.ts +0 -6
- package/dist/esm/Overlay/Dropdown/DropdownContext.js +0 -9
- package/dist/esm/Overlay/Dropdown/components/DropdownButtonItem.d.ts +0 -14
- package/dist/esm/Overlay/Dropdown/components/DropdownButtonItem.js +0 -42
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +0 -10
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +0 -53
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +0 -8
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +0 -15
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +0 -8
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +0 -11
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +0 -10
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +0 -30
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +0 -10
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +0 -27
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/index.d.ts +0 -5
- package/dist/esm/Overlay/Dropdown/components/DropdownCollapsibleItem/index.js +0 -5
- package/dist/esm/Overlay/Dropdown/components/DropdownDivider.d.ts +0 -2
- package/dist/esm/Overlay/Dropdown/components/DropdownDivider.js +0 -11
- package/dist/esm/Overlay/Dropdown/components/DropdownFooterItem.d.ts +0 -9
- package/dist/esm/Overlay/Dropdown/components/DropdownFooterItem.js +0 -22
- package/dist/esm/Overlay/Dropdown/components/DropdownLinkItem.d.ts +0 -10
- package/dist/esm/Overlay/Dropdown/components/DropdownLinkItem.js +0 -49
- package/dist/esm/Overlay/Dropdown/components/DropdownRadioItem.d.ts +0 -6
- package/dist/esm/Overlay/Dropdown/components/DropdownRadioItem.js +0 -36
- package/dist/esm/Overlay/Dropdown/components/DropdownTitle.d.ts +0 -6
- package/dist/esm/Overlay/Dropdown/components/DropdownTitle.js +0 -18
- package/dist/esm/Overlay/Dropdown/index.d.ts +0 -12
- package/dist/esm/Overlay/Dropdown/index.js +0 -12
- package/dist/esm/Overlay/Dropdown/useDropdownItemProps.d.ts +0 -20
- package/dist/esm/Overlay/Dropdown/useDropdownItemProps.js +0 -30
- /package/dist/cjs/{Overlay/Tooltip → Actions/SegmentedControl}/types.js +0 -0
- /package/dist/cjs/{Actions → Fields}/Switch/Switch.tailwind.d.ts +0 -0
- /package/dist/cjs/Overlay/{Tooltip → OverflowTooltipWrapper}/utils.d.ts +0 -0
- /package/dist/cjs/Overlay/{Tooltip → OverflowTooltipWrapper}/utils.js +0 -0
- /package/dist/cjs/Overlay/{Tooltip → TooltipWrapper}/TooltipWrapper.d.ts +0 -0
- /package/dist/esm/{Overlay/Tooltip → Actions/SegmentedControl}/types.js +0 -0
- /package/dist/esm/{Actions → Fields}/Switch/Switch.tailwind.d.ts +0 -0
- /package/dist/esm/Overlay/{Tooltip → OverflowTooltipWrapper}/utils.d.ts +0 -0
- /package/dist/esm/Overlay/{Tooltip → OverflowTooltipWrapper}/utils.js +0 -0
- /package/dist/esm/Overlay/{Tooltip → TooltipWrapper}/TooltipWrapper.d.ts +0 -0
@@ -1,8 +1,17 @@
|
|
1
1
|
import type { FC, SVGAttributes } from "react";
|
2
2
|
export declare type ProgressSpinnerAlign = "left" | "center" | "right";
|
3
3
|
export interface ProgressSpinnerProps extends SVGAttributes<SVGSVGElement> {
|
4
|
+
/**
|
5
|
+
* The size of the progress spinner.
|
6
|
+
*/
|
4
7
|
size?: number;
|
8
|
+
/**
|
9
|
+
* The thickness of the progress spinner.
|
10
|
+
*/
|
5
11
|
thickness?: number;
|
12
|
+
/**
|
13
|
+
* The alignment of the progress spinner.
|
14
|
+
*/
|
6
15
|
align?: ProgressSpinnerAlign;
|
7
16
|
}
|
8
17
|
/**
|
@@ -1,13 +1,25 @@
|
|
1
1
|
import type { CSSProperties, FC, ReactHTML, ReactNode } from "react";
|
2
2
|
export declare type ScrollIndicatorVariant = "light" | "dark";
|
3
3
|
export interface ScrollIndicatorProps {
|
4
|
+
/**
|
5
|
+
* The className to apply to the wrapper element.
|
6
|
+
*/
|
4
7
|
wrapperClassName?: string;
|
5
8
|
/** @ignore */
|
6
9
|
className?: string;
|
7
10
|
/** @ignore */
|
8
11
|
style?: CSSProperties;
|
12
|
+
/**
|
13
|
+
* The tag name to use for the scroll indicator content.
|
14
|
+
*/
|
9
15
|
tagName?: keyof ReactHTML;
|
16
|
+
/**
|
17
|
+
* The variant of the scroll indicator.
|
18
|
+
*/
|
10
19
|
variant?: ScrollIndicatorVariant;
|
20
|
+
/**
|
21
|
+
* The content of the scroll indicator.
|
22
|
+
*/
|
11
23
|
children: ReactNode;
|
12
24
|
}
|
13
25
|
/**
|
@@ -1,8 +1,20 @@
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
2
2
|
export interface SkeletonProps {
|
3
|
+
/**
|
4
|
+
* The className to apply to the skeleton element.
|
5
|
+
*/
|
3
6
|
className?: string;
|
7
|
+
/**
|
8
|
+
* The size of the skeleton.
|
9
|
+
*/
|
4
10
|
size?: keyof typeof DEFAULT_SKELETON_SIZES;
|
11
|
+
/**
|
12
|
+
* Whether the skeleton should be a circle.
|
13
|
+
*/
|
5
14
|
circle?: boolean;
|
15
|
+
/**
|
16
|
+
* Whether the skeleton should display an image icon.
|
17
|
+
*/
|
6
18
|
image?: boolean;
|
7
19
|
}
|
8
20
|
declare const DEFAULT_SKELETON_SIZES: {
|
@@ -6,21 +6,35 @@ export declare type TagLocale = {
|
|
6
6
|
removeButton?: string | ((title: string) => string);
|
7
7
|
};
|
8
8
|
export interface TagProps extends DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {
|
9
|
-
/**
|
9
|
+
/**
|
10
|
+
* The "pink" variant should only be used for **Algolia admin** related things.
|
11
|
+
*/
|
10
12
|
variant?: TagVariants;
|
11
|
-
/**
|
13
|
+
/**
|
14
|
+
* Handler function called when the "add" button is clicked.
|
15
|
+
*/
|
12
16
|
onAdd?: MouseEventHandler<HTMLElement>;
|
13
|
-
/**
|
17
|
+
/**
|
18
|
+
* The tooltip text to display when hovering over the "add" button.
|
19
|
+
*/
|
14
20
|
addTooltip?: string;
|
15
|
-
/**
|
21
|
+
/**
|
22
|
+
* Handler function called when the "remove" button is clicked.
|
23
|
+
*/
|
16
24
|
onRemove?: MouseEventHandler<HTMLElement>;
|
17
|
-
/**
|
25
|
+
/**
|
26
|
+
* The tooltip text to display when hovering over the "remove" button.
|
27
|
+
*/
|
18
28
|
removeTooltip?: string;
|
19
29
|
/**
|
20
30
|
* Customize the text describing the "add" and "remove" buttons.
|
21
31
|
* If not provided, default values will be used.
|
22
32
|
*/
|
23
33
|
locale?: TagLocale;
|
34
|
+
/**
|
35
|
+
* The content of the tag.
|
36
|
+
*/
|
37
|
+
children: string;
|
24
38
|
}
|
25
39
|
/**
|
26
40
|
* The `Tag` component is an interactive and customizable text label with varied color options.
|
@@ -4,6 +4,9 @@ import { CardTitle } from "./components/CardTitle";
|
|
4
4
|
export declare type CardElevation = "100" | "200" | "300" | "400" | "500";
|
5
5
|
declare type CardAs = "section" | "aside" | "main" | "div" | "span";
|
6
6
|
export interface CardProps {
|
7
|
+
/**
|
8
|
+
* The `id` attribute of the `Card`.
|
9
|
+
*/
|
7
10
|
id?: string;
|
8
11
|
/** @ignore */
|
9
12
|
className?: string;
|
@@ -16,6 +19,9 @@ export interface CardProps {
|
|
16
19
|
as?: CardAs;
|
17
20
|
/** Should the content take up full full width of the `Card`. */
|
18
21
|
fullBleed?: boolean;
|
22
|
+
/**
|
23
|
+
* The content of the `Card`.
|
24
|
+
*/
|
19
25
|
children: ReactNode;
|
20
26
|
/**
|
21
27
|
* Specify distance off the page for the `Card`.
|
@@ -6,22 +6,33 @@ export declare type FlexGridSpacing = "none" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
export interface FlexGridProps {
|
7
7
|
/** @ignore */
|
8
8
|
className?: string;
|
9
|
-
/**
|
9
|
+
/**
|
10
|
+
* Define which direction the content should flow.
|
11
|
+
* @default row
|
12
|
+
*/
|
10
13
|
direction?: FlexGridDirection;
|
11
14
|
/**
|
12
|
-
* Define whether or not the contents be allowed to wrap
|
15
|
+
* Define whether or not the contents be allowed to wrap.
|
13
16
|
* @default false
|
14
17
|
*/
|
15
18
|
wrap?: boolean;
|
16
19
|
/**
|
17
|
-
* Define whether or not the content be wrapped in an inline-flex container
|
20
|
+
* Define whether or not the content be wrapped in an inline-flex container.
|
18
21
|
* @default false
|
19
22
|
*/
|
20
23
|
inline?: boolean;
|
24
|
+
/**
|
25
|
+
* Define the alignment of the content.
|
26
|
+
* @default leading
|
27
|
+
*/
|
21
28
|
alignment?: FlexGridAlignment;
|
29
|
+
/**
|
30
|
+
* Define the distribution of the content.
|
31
|
+
* @default leading
|
32
|
+
*/
|
22
33
|
distribution?: FlexGridDistribution;
|
23
34
|
/**
|
24
|
-
* The spacing directly corelates to our Tailwind spacing scale
|
35
|
+
* The spacing directly corelates to our Tailwind spacing scale.
|
25
36
|
*
|
26
37
|
* none: `spacing.0 → 0px`
|
27
38
|
*
|
@@ -34,6 +45,9 @@ export interface FlexGridProps {
|
|
34
45
|
* xl: `spacing.8 → 32px`
|
35
46
|
*/
|
36
47
|
spacing?: FlexGridSpacing;
|
48
|
+
/**
|
49
|
+
* The content of the `FlexGrid`.
|
50
|
+
*/
|
37
51
|
children: ReactNode;
|
38
52
|
}
|
39
53
|
/**
|
@@ -5,9 +5,17 @@ declare type InsertContext = {
|
|
5
5
|
variant?: BadgeVariants;
|
6
6
|
};
|
7
7
|
export interface InsertProps {
|
8
|
-
/**
|
8
|
+
/**
|
9
|
+
* Descriptive title for the `Insert`.
|
10
|
+
*/
|
9
11
|
title: ReactNode;
|
12
|
+
/**
|
13
|
+
* An array of contexts which will be rendered as `Badge`s.
|
14
|
+
*/
|
10
15
|
contexts?: Array<string | InsertContext>;
|
16
|
+
/**
|
17
|
+
* The content of the `Insert`.
|
18
|
+
*/
|
11
19
|
children: ReactNode;
|
12
20
|
}
|
13
21
|
/**
|
@@ -1,11 +1,23 @@
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
2
2
|
import type { SidebarLocale, SidebarLocation, SidebarVariant } from "./types";
|
3
3
|
export declare type SidebarProps = PropsWithChildren<{
|
4
|
+
/**
|
5
|
+
* The ID of the `Sidebar`.
|
6
|
+
*/
|
4
7
|
id?: string;
|
5
8
|
/** @ignore */
|
6
9
|
className?: string;
|
10
|
+
/**
|
11
|
+
* Used for accessibility reasons, this label should be unique.
|
12
|
+
*/
|
7
13
|
label?: string;
|
14
|
+
/**
|
15
|
+
* The locale object to override the default locale.
|
16
|
+
*/
|
8
17
|
locale?: SidebarLocale;
|
18
|
+
/**
|
19
|
+
* Define whether the sidebar should be collapsed.
|
20
|
+
*/
|
9
21
|
collapsed?: boolean;
|
10
22
|
/**
|
11
23
|
* As the name of the variants imply,
|
@@ -23,10 +35,10 @@ export declare type SidebarProps = PropsWithChildren<{
|
|
23
35
|
* @example <caption>with a location of /bar</caption>
|
24
36
|
* isLinkActive('/foo', location) // returns false
|
25
37
|
*
|
26
|
-
|
38
|
+
*/
|
27
39
|
isLinkActive?: (href: string, location: SidebarLocation) => boolean;
|
28
40
|
/**
|
29
|
-
* location is used in conjunction with `isLinkActive` to display active links properly.
|
41
|
+
* `location` is used in conjunction with `isLinkActive` to display active links properly.
|
30
42
|
* It is injected from outside so that it can work with different router libraries and
|
31
43
|
* re-render when necessary.
|
32
44
|
*/
|
@@ -5,16 +5,34 @@ export declare type SidebarButtonLinkIcon = IconComponentType | {
|
|
5
5
|
inactive: IconComponentType;
|
6
6
|
};
|
7
7
|
export interface SidebarButtonLinkProps {
|
8
|
+
/**
|
9
|
+
* The ID of the `SidebarButtonLink`.
|
10
|
+
*/
|
8
11
|
id?: string;
|
12
|
+
/**
|
13
|
+
* The icon of the `SidebarButtonLink`.
|
14
|
+
*/
|
9
15
|
icon: SidebarButtonLinkIcon;
|
16
|
+
/**
|
17
|
+
* The href of the `SidebarButtonLink`.
|
18
|
+
*/
|
10
19
|
href: string;
|
20
|
+
/**
|
21
|
+
* The onClick handler of the `SidebarButtonLink`.
|
22
|
+
*/
|
11
23
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
24
|
+
/**
|
25
|
+
* Define whether the `SidebarButtonLink` should be disabled.
|
26
|
+
*/
|
12
27
|
disabled?: boolean;
|
13
28
|
/**
|
14
29
|
* Alternative content for the tooltip.
|
15
30
|
* @default children
|
16
31
|
*/
|
17
32
|
tooltipContent?: ReactNode;
|
33
|
+
/**
|
34
|
+
* The content of the `SidebarButtonLink`.
|
35
|
+
*/
|
18
36
|
children: ReactNode;
|
19
37
|
}
|
20
38
|
export declare const SidebarButtonLink: FC<SidebarButtonLinkProps>;
|
@@ -1,8 +1,14 @@
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
2
2
|
export declare type SidebarHeadingProps = {
|
3
|
+
/**
|
4
|
+
* The ID of the `SidebarHeading`.
|
5
|
+
*/
|
3
6
|
id?: string;
|
4
7
|
/** @ignore */
|
5
8
|
className?: string;
|
9
|
+
/**
|
10
|
+
* The content of the `SidebarHeading`.
|
11
|
+
*/
|
6
12
|
children: ReactNode;
|
7
13
|
};
|
8
14
|
export declare const SidebarHeading: FC<SidebarHeadingProps>;
|
@@ -1,9 +1,21 @@
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
3
3
|
export declare type SidebarLinkProps = {
|
4
|
+
/**
|
5
|
+
* The icon of the `SidebarLink`.
|
6
|
+
*/
|
4
7
|
icon: IconComponentType;
|
8
|
+
/**
|
9
|
+
* The href of the `SidebarLink`.
|
10
|
+
*/
|
5
11
|
href: string;
|
12
|
+
/**
|
13
|
+
* Define whether the `SidebarLink` should be disabled.
|
14
|
+
*/
|
6
15
|
disabled?: boolean;
|
16
|
+
/**
|
17
|
+
* The content of the `SidebarLink`.
|
18
|
+
*/
|
7
19
|
children: ReactNode;
|
8
20
|
} & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "id" | "className" | "target" | "rel" | "aria-label" | "onClick">;
|
9
21
|
export declare const SidebarLink: FC<SidebarLinkProps>;
|
@@ -2,9 +2,15 @@ import type { FC, ReactNode } from "react";
|
|
2
2
|
import { type IconComponentType } from "../../../Icons";
|
3
3
|
import type { SidebarLinksGroupLink } from "./types";
|
4
4
|
declare type SidebarLinksGroupBaseProps = {
|
5
|
+
/**
|
6
|
+
* The ID of the `SidebarLinksGroup`.
|
7
|
+
*/
|
5
8
|
id?: string;
|
6
9
|
/** @ignore */
|
7
10
|
className?: string;
|
11
|
+
/**
|
12
|
+
* The links of the `SidebarLinksGroup`.
|
13
|
+
*/
|
8
14
|
links: SidebarLinksGroupLink[];
|
9
15
|
};
|
10
16
|
export declare type StaticSidebarLinksGroupProps = SidebarLinksGroupBaseProps & {
|
@@ -14,9 +20,21 @@ export declare type StaticSidebarLinksGroupProps = SidebarLinksGroupBaseProps &
|
|
14
20
|
onGroupToggle?: never;
|
15
21
|
};
|
16
22
|
export declare type CollapsibleSidebarLinksGroupProps = SidebarLinksGroupBaseProps & {
|
23
|
+
/**
|
24
|
+
* The title of the `SidebarLinksGroup`.
|
25
|
+
*/
|
17
26
|
title: ReactNode;
|
27
|
+
/**
|
28
|
+
* The icon of the `SidebarLinksGroup`.
|
29
|
+
*/
|
18
30
|
icon: IconComponentType;
|
31
|
+
/**
|
32
|
+
* Define whether the `SidebarLinksGroup` should be open.
|
33
|
+
*/
|
19
34
|
initialIsOpen?: boolean;
|
35
|
+
/**
|
36
|
+
* The callback function that is called when the `SidebarLinksGroup` is toggled.
|
37
|
+
*/
|
20
38
|
onGroupToggle?: (open: boolean) => void;
|
21
39
|
};
|
22
40
|
export declare type SidebarLinksGroupProps = StaticSidebarLinksGroupProps | CollapsibleSidebarLinksGroupProps;
|
@@ -1,11 +1,23 @@
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
2
2
|
export declare type SidebarNavSpacing = "small" | "large";
|
3
3
|
export declare type SidebarNavProps = {
|
4
|
+
/**
|
5
|
+
* The ID of the `SidebarNav`.
|
6
|
+
*/
|
4
7
|
id?: string;
|
5
8
|
/** @ignore */
|
6
9
|
className?: string;
|
10
|
+
/**
|
11
|
+
* The spacing of the `SidebarNav`.
|
12
|
+
*/
|
7
13
|
spacing?: SidebarNavSpacing;
|
14
|
+
/**
|
15
|
+
* The label of the `SidebarNav`.
|
16
|
+
*/
|
8
17
|
label: string;
|
18
|
+
/**
|
19
|
+
* The children of the `SidebarNav`.
|
20
|
+
*/
|
9
21
|
children: ReactNode;
|
10
22
|
};
|
11
23
|
export declare const SidebarNav: FC<SidebarNavProps>;
|
@@ -19,9 +19,11 @@ interface BaseDataTableProps<Item> {
|
|
19
19
|
itemId?: GetItemId<Item>;
|
20
20
|
/** The columns define the layout of your table and the respective rows and cells */
|
21
21
|
columns: ColumnDefinition<Item>[];
|
22
|
+
/** Whether the table should have pagination. */
|
22
23
|
pagination?: PaginationConfiguration;
|
23
|
-
/**
|
24
|
+
/** The `onChange` callback is triggered when either sorting or paginating. */
|
24
25
|
onChange?(dataConfiguration: DataConfiguration): void;
|
26
|
+
/** The display mode of the table. */
|
25
27
|
mode?: DisplayMode;
|
26
28
|
/** Specify the global status of the table */
|
27
29
|
status?: Status;
|
@@ -29,22 +31,35 @@ interface BaseDataTableProps<Item> {
|
|
29
31
|
noDataContent?: ReactNode;
|
30
32
|
/** Allows for specifying a custom error state */
|
31
33
|
errorContent?: ReactNode;
|
34
|
+
/** Whether the table can hover rows. */
|
32
35
|
canHoverRow?(row: Row<Item>): boolean;
|
36
|
+
/** The callback triggered when the hovered row changes. */
|
33
37
|
onRowHoveredChanged?(row: Row<Item> | null): void;
|
38
|
+
/** The current sorting configuration. */
|
34
39
|
sorting?: Sorting[];
|
40
|
+
/** The sort mode of the table. */
|
35
41
|
sortMode?: SortMode;
|
42
|
+
/** The locale configuration for the table. */
|
36
43
|
locale?: DataTableLocale;
|
37
44
|
}
|
38
45
|
declare type DataTableWithSelectMode<Item> = {
|
46
|
+
/** The selection mode of the table. */
|
39
47
|
selectMode: Exclude<SelectMode, "none">;
|
48
|
+
/** The currently selected rows. */
|
40
49
|
selection?: string[];
|
50
|
+
/** The callback triggered when the selection changes. */
|
41
51
|
onSelectionChange?(rowId: string[]): void;
|
52
|
+
/** Whether the table can select items. */
|
42
53
|
canSelectItem?: CanSelectItem<Item>;
|
43
54
|
};
|
44
55
|
declare type DataTableWithoutSelectMode = {
|
56
|
+
/** Whether the table has selection. */
|
45
57
|
selectMode?: Extract<SelectMode, "none">;
|
58
|
+
/** The currently selected rows. */
|
46
59
|
selection?: never;
|
60
|
+
/** The callback triggered when the selection changes. */
|
47
61
|
onSelectionChange?: never;
|
62
|
+
/** Whether the table can select items. */
|
48
63
|
canSelectItem?: never;
|
49
64
|
};
|
50
65
|
export declare type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTableWithSelectMode<Item> | DataTableWithoutSelectMode);
|
@@ -2,13 +2,21 @@ import type { ReactNode } from "react";
|
|
2
2
|
import type { DataTableLocale, DataTableProps } from "../DataTable";
|
3
3
|
import type { AdvancedColumnDefinition, Row, SelectMode, Status } from "../types";
|
4
4
|
export interface DataTableBodyProps<Item> extends Pick<DataTableProps<Item>, "selection" | "onSelectionChange" | "canHoverRow"> {
|
5
|
+
/** The rows to display in the body. */
|
5
6
|
rows: Row<Item>[];
|
7
|
+
/** The status of the body. */
|
6
8
|
status?: Status;
|
9
|
+
/** The content to display when there is no data. */
|
7
10
|
noDataContent?: ReactNode;
|
11
|
+
/** The content to display when there is an error. */
|
8
12
|
errorContent?: ReactNode;
|
13
|
+
/** The columns to display in the body. */
|
9
14
|
columns: AdvancedColumnDefinition<Item>[];
|
15
|
+
/** The callback triggered when the hovered row changes. */
|
10
16
|
onRowHoverChange(row: Row<Item> | null): void;
|
17
|
+
/** The selection mode of the table. */
|
11
18
|
selectMode: SelectMode;
|
19
|
+
/** The locale configuration for the table. */
|
12
20
|
locale: Required<DataTableLocale>;
|
13
21
|
}
|
14
22
|
export declare const DataTableBody: <Item extends object>({ rows, columns, status, noDataContent, errorContent, selectMode, selection, onSelectionChange, onRowHoverChange, canHoverRow, locale, }: DataTableBodyProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import type { FC } from "react";
|
2
2
|
import type { DataConfiguration, PaginationConfiguration } from "../types";
|
3
3
|
export interface DataTableFooterProps {
|
4
|
+
/** The pagination configuration for the table. */
|
4
5
|
pagination: PaginationConfiguration;
|
6
|
+
/** The callback triggered when the pagination changes. */
|
5
7
|
onChange(dataConfiguration: DataConfiguration): void;
|
6
8
|
}
|
7
9
|
export declare const DataTableFooter: FC<DataTableFooterProps>;
|
@@ -1,8 +1,12 @@
|
|
1
1
|
import type { AdvancedColumnDefinition, Sorting, SortingDirection } from "../types";
|
2
2
|
export interface DataTableHeaderProps<Item> {
|
3
|
+
/** The columns to display in the header. */
|
3
4
|
columns: AdvancedColumnDefinition<Item>[];
|
5
|
+
/** The current sorting configuration. */
|
4
6
|
sorting?: Sorting[];
|
7
|
+
/** The callback triggered when the sorting changes. */
|
5
8
|
onToggleSort: (columnId: string, direction: SortingDirection) => void;
|
9
|
+
/** Whether the header is disabled. */
|
6
10
|
disabled?: boolean;
|
7
11
|
}
|
8
12
|
export declare const DataTableHeader: <Item extends object>({ columns, sorting, onToggleSort, disabled, }: DataTableHeaderProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,11 +1,17 @@
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
2
2
|
import type { AdvancedColumnDefinition, SortingDirection } from "../types";
|
3
3
|
export interface DataTableHeaderCellProps<Item> extends HTMLAttributes<HTMLTableCellElement> {
|
4
|
+
/** The column to display in the header cell. */
|
4
5
|
column: AdvancedColumnDefinition<Item>;
|
6
|
+
/** Whether the header cell is disabled. */
|
5
7
|
disabled?: boolean;
|
8
|
+
/** Whether sorting is enabled for the column. */
|
6
9
|
isSortingEnabled?: boolean;
|
10
|
+
/** The current sorting direction for the column. */
|
7
11
|
sortingDirection?: SortingDirection;
|
12
|
+
/** The callback triggered when the sorting changes. */
|
8
13
|
onToggleSort: (columnId: string, sortingDirection: SortingDirection) => void;
|
14
|
+
/** The content to display in the header cell. */
|
9
15
|
children: ReactNode;
|
10
16
|
}
|
11
17
|
export declare const DataTableHeaderCell: <Item extends object>({ sortingDirection, onToggleSort, column: { id, className, sort }, disabled, children, ...props }: DataTableHeaderCellProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
@@ -3,6 +3,7 @@ import type { DataTableLocale } from "../DataTable";
|
|
3
3
|
export interface DataTableLoaderProps {
|
4
4
|
/** @ignore */
|
5
5
|
className?: string;
|
6
|
+
/** The locale configuration for the table. */
|
6
7
|
locale: Required<DataTableLocale>;
|
7
8
|
}
|
8
9
|
export declare const DataTableLoader: FC<DataTableLoaderProps>;
|
@@ -1,10 +1,25 @@
|
|
1
1
|
import type { DetailedHTMLProps, FC, ReactNode, TableHTMLAttributes } from "react";
|
2
2
|
export declare type DisplayMode = "comfortable" | "compact";
|
3
3
|
export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
|
4
|
+
/**
|
5
|
+
* The content to display in the footer of the table.
|
6
|
+
*/
|
4
7
|
footer?: ReactNode;
|
8
|
+
/**
|
9
|
+
* Whether the footer should be displayed in a smaller size.
|
10
|
+
*/
|
5
11
|
smallFooter?: boolean;
|
12
|
+
/**
|
13
|
+
* Whether the table has actions.
|
14
|
+
*/
|
6
15
|
hasActions?: boolean;
|
16
|
+
/**
|
17
|
+
* Whether the table should have a highlight.
|
18
|
+
*/
|
7
19
|
highlight?: boolean;
|
20
|
+
/**
|
21
|
+
* The display mode of the table.
|
22
|
+
*/
|
8
23
|
mode?: DisplayMode;
|
9
24
|
}
|
10
25
|
/**
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
2
2
|
export declare type FooterSizes = "default" | "small";
|
3
3
|
export declare type FooterProps = PropsWithChildren<{
|
4
|
+
/**
|
5
|
+
* The size of the footer.
|
6
|
+
*/
|
4
7
|
size?: FooterSizes;
|
5
8
|
}>;
|
6
9
|
export declare const TableFooter: FC<FooterProps>;
|
@@ -1,8 +1,17 @@
|
|
1
1
|
import type { AnchorHTMLAttributes } from "react";
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
3
3
|
export declare type LinkProps = {
|
4
|
+
/**
|
5
|
+
* The URL of the link.
|
6
|
+
*/
|
4
7
|
href: string;
|
8
|
+
/**
|
9
|
+
* The icon to display at the start of the link.
|
10
|
+
*/
|
5
11
|
startIcon?: IconComponentType;
|
12
|
+
/**
|
13
|
+
* The icon to display at the end of the link.
|
14
|
+
*/
|
6
15
|
endIcon?: IconComponentType;
|
7
16
|
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
8
17
|
/**
|
@@ -11,7 +20,16 @@ export declare type LinkProps = {
|
|
11
20
|
* See the [Link documentation page](https://satellite.algolia.com/components/navigation/link) for more information.
|
12
21
|
*/
|
13
22
|
export declare const Link: import("react").ForwardRefExoticComponent<{
|
23
|
+
/**
|
24
|
+
* The URL of the link.
|
25
|
+
*/
|
14
26
|
href: string;
|
27
|
+
/**
|
28
|
+
* The icon to display at the start of the link.
|
29
|
+
*/
|
15
30
|
startIcon?: IconComponentType | undefined;
|
31
|
+
/**
|
32
|
+
* The icon to display at the end of the link.
|
33
|
+
*/
|
16
34
|
endIcon?: IconComponentType | undefined;
|
17
35
|
} & AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
@@ -8,18 +8,41 @@ export declare type CompactPaginationLocale = {
|
|
8
8
|
label?(page: number, nbPages?: number): string;
|
9
9
|
};
|
10
10
|
declare type BaseCompactPaginationProps = {
|
11
|
-
/**
|
11
|
+
/**
|
12
|
+
* The current page number. (1-indexed)
|
13
|
+
*/
|
12
14
|
currentPage: number;
|
15
|
+
/**
|
16
|
+
* The function to call when the page changes.
|
17
|
+
*/
|
13
18
|
onChange: (page: number) => void;
|
19
|
+
/**
|
20
|
+
* Whether to show the "Go to first page" button.
|
21
|
+
*/
|
14
22
|
showGoToFirstPage?: boolean;
|
23
|
+
/**
|
24
|
+
* The label to display.
|
25
|
+
*/
|
15
26
|
label?: CompactPaginationLabel;
|
27
|
+
/**
|
28
|
+
* The locale to use.
|
29
|
+
*/
|
16
30
|
locale?: CompactPaginationLocale;
|
17
31
|
};
|
18
32
|
export declare type DeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
33
|
+
/**
|
34
|
+
* The total number of pages.
|
35
|
+
*/
|
19
36
|
nbPages: number;
|
37
|
+
/**
|
38
|
+
* Whether the "Go to last page" button should be shown.
|
39
|
+
*/
|
20
40
|
showGoToLastPage?: boolean;
|
21
41
|
};
|
22
42
|
export declare type IndeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
43
|
+
/**
|
44
|
+
* Whether the "Go to next page" button should be disabled.
|
45
|
+
*/
|
23
46
|
nextDisabled?: boolean;
|
24
47
|
};
|
25
48
|
export declare type CompactPaginationProps = DeterminateCompactPaginationProps | IndeterminateCompactPaginationProps;
|
@@ -3,11 +3,25 @@ export declare type DotPaginationLocale = {
|
|
3
3
|
goToPageText?(page: number): string;
|
4
4
|
};
|
5
5
|
export declare type DotPaginationProps<T extends number> = {
|
6
|
-
/**
|
6
|
+
/**
|
7
|
+
* The current page number. (1-indexed)
|
8
|
+
*/
|
7
9
|
currentPage: NumberUnion<T>;
|
10
|
+
/**
|
11
|
+
* The function to call when the page changes.
|
12
|
+
*/
|
8
13
|
onChange: (page: NumberUnion<T>) => void;
|
14
|
+
/**
|
15
|
+
* The total number of pages.
|
16
|
+
*/
|
9
17
|
nbPages: T;
|
18
|
+
/**
|
19
|
+
* The size of the dots.
|
20
|
+
*/
|
10
21
|
size?: "small" | "medium";
|
22
|
+
/**
|
23
|
+
* The locale to use.
|
24
|
+
*/
|
11
25
|
locale?: DotPaginationLocale;
|
12
26
|
};
|
13
27
|
/**
|
@@ -5,10 +5,25 @@ export declare type PaginationLocale = {
|
|
5
5
|
goToPreviousPage?: string;
|
6
6
|
};
|
7
7
|
export interface PaginationProps {
|
8
|
+
/**
|
9
|
+
* The total number of pages.
|
10
|
+
*/
|
8
11
|
nbPages: number;
|
12
|
+
/**
|
13
|
+
* The current page number. (1-indexed)
|
14
|
+
*/
|
9
15
|
currentPage: number;
|
16
|
+
/**
|
17
|
+
* The maximum number of buttons to display.
|
18
|
+
*/
|
10
19
|
maxButtons?: number;
|
20
|
+
/**
|
21
|
+
* The function to call when the page changes.
|
22
|
+
*/
|
11
23
|
onChange: (page: number) => void;
|
24
|
+
/**
|
25
|
+
* The locale to use.
|
26
|
+
*/
|
12
27
|
locale?: PaginationLocale;
|
13
28
|
}
|
14
29
|
/**
|