@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
@@ -3,17 +3,17 @@ import _plugin from "tailwindcss/plugin";
|
|
3
3
|
// @ts-check
|
4
4
|
var plugin = _plugin;
|
5
5
|
var rgba = _rgba;
|
6
|
-
var
|
6
|
+
var switchPlugin = plugin(function (_ref) {
|
7
7
|
var addComponents = _ref.addComponents,
|
8
8
|
theme = _ref.theme;
|
9
9
|
var transition = "all 72ms ease-in-out";
|
10
10
|
addComponents({
|
11
|
-
".
|
11
|
+
".switch-container": {
|
12
12
|
position: "relative",
|
13
13
|
display: "block",
|
14
14
|
height: "18px",
|
15
15
|
width: "32px",
|
16
|
-
".
|
16
|
+
".switch-handle": {
|
17
17
|
position: "absolute",
|
18
18
|
top: "0px",
|
19
19
|
left: "0px",
|
@@ -21,24 +21,24 @@ var togglePlugin = plugin(function (_ref) {
|
|
21
21
|
height: "100%",
|
22
22
|
opacity: "0",
|
23
23
|
cursor: "pointer",
|
24
|
-
"&.
|
24
|
+
"&.switch-disabled": {
|
25
25
|
cursor: "not-allowed"
|
26
26
|
}
|
27
27
|
},
|
28
|
-
"&:hover .
|
28
|
+
"&:hover .switch:after": {
|
29
29
|
transform: "translateX(2px)"
|
30
30
|
},
|
31
|
-
"&:hover .
|
31
|
+
"&:hover .switch-handle.switch-checked ~ .switch:after": {
|
32
32
|
transform: "translateX(12px)"
|
33
33
|
},
|
34
|
-
"&:hover .
|
34
|
+
"&:hover .switch-handle.switch-disabled ~ .switch:after": {
|
35
35
|
transform: "translateX(0px)"
|
36
36
|
},
|
37
|
-
"&:hover .
|
37
|
+
"&:hover .switch-handle.switch-checked.switch-disabled ~ .switch:after": {
|
38
38
|
transform: "translateX(14px)"
|
39
39
|
}
|
40
40
|
},
|
41
|
-
".
|
41
|
+
".switch": {
|
42
42
|
position: "absolute",
|
43
43
|
top: "0px",
|
44
44
|
left: "0px",
|
@@ -61,20 +61,20 @@ var togglePlugin = plugin(function (_ref) {
|
|
61
61
|
boxShadow: "0px 1px 1px 0px ".concat(theme("colors.shadow.10")),
|
62
62
|
transition: transition
|
63
63
|
},
|
64
|
-
".
|
64
|
+
".switch-handle.switch-checked ~ &": {
|
65
65
|
background: theme("colors.accent.600"),
|
66
66
|
boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.900"), 0.1)),
|
67
67
|
"&:after": {
|
68
68
|
transform: "translateX(14px)"
|
69
69
|
}
|
70
70
|
},
|
71
|
-
".
|
71
|
+
".switch-handle.switch-disabled ~ &": {
|
72
72
|
background: theme("colors.grey.200")
|
73
73
|
},
|
74
|
-
".
|
74
|
+
".switch-checked.switch-handle.switch-disabled ~ &": {
|
75
75
|
background: theme("colors.xenon.200")
|
76
76
|
},
|
77
|
-
".
|
77
|
+
".switch-handle.switch-invalid ~ &": {
|
78
78
|
background: theme("colors.red.700"),
|
79
79
|
"&:after": {
|
80
80
|
background: theme("colors.red.100")
|
@@ -83,4 +83,4 @@ var togglePlugin = plugin(function (_ref) {
|
|
83
83
|
}
|
84
84
|
});
|
85
85
|
});
|
86
|
-
export default
|
86
|
+
export default switchPlugin;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Switch";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Switch";
|
@@ -4,10 +4,11 @@ export * from "./DateInput";
|
|
4
4
|
export * from "./DatePicker";
|
5
5
|
export * from "./Dropzone";
|
6
6
|
export * from "./Field";
|
7
|
+
export * from "./FilePicker";
|
7
8
|
export * from "./Form";
|
8
9
|
export * from "./Input";
|
9
10
|
export * from "./RadioGroup";
|
10
11
|
export * from "./RangeSlider";
|
11
12
|
export * from "./Select";
|
12
13
|
export * from "./TextArea";
|
13
|
-
export * from "./
|
14
|
+
export * from "./Switch";
|
package/dist/esm/Fields/index.js
CHANGED
@@ -4,10 +4,11 @@ export * from "./DateInput";
|
|
4
4
|
export * from "./DatePicker";
|
5
5
|
export * from "./Dropzone";
|
6
6
|
export * from "./Field";
|
7
|
+
export * from "./FilePicker";
|
7
8
|
export * from "./Form";
|
8
9
|
export * from "./Input";
|
9
10
|
export * from "./RadioGroup";
|
10
11
|
export * from "./RangeSlider";
|
11
12
|
export * from "./Select";
|
12
13
|
export * from "./TextArea";
|
13
|
-
export * from "./
|
14
|
+
export * from "./Switch";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { FC } from "react";
|
2
2
|
import type { TooltipWrapperProps } from "../../Overlay";
|
3
|
-
import type { TooltipWrapperBaseProps } from "../../Overlay/
|
3
|
+
import type { TooltipWrapperBaseProps } from "../../Overlay/TooltipWrapper/types";
|
4
4
|
export declare type HelpUnderlineProps = {
|
5
5
|
/**
|
6
6
|
* The class name of the `HelpUnderline`.
|
@@ -5,15 +5,24 @@ export declare type AnnouncementBadgeLocale = {
|
|
5
5
|
[key in AnnouncementBadgeTexts]?: string;
|
6
6
|
};
|
7
7
|
export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
8
|
-
/**
|
8
|
+
/**
|
9
|
+
* The size of the `AnnouncementBadge`.
|
10
|
+
* @default default
|
11
|
+
*/
|
9
12
|
size?: AnnouncementBadgeSizes;
|
10
13
|
/**
|
11
14
|
* Define which text to display in the `AnnouncementBadge`
|
12
15
|
* @default new
|
13
16
|
*/
|
14
17
|
text?: AnnouncementBadgeTexts;
|
15
|
-
/**
|
18
|
+
/**
|
19
|
+
* The variant of the `AnnouncementBadge`.
|
20
|
+
* @default accent
|
21
|
+
*/
|
16
22
|
variant?: "accent" | "red";
|
23
|
+
/**
|
24
|
+
* The locale of the `AnnouncementBadge`.
|
25
|
+
*/
|
17
26
|
locale?: AnnouncementBadgeLocale;
|
18
27
|
children?: never;
|
19
28
|
}
|
@@ -4,13 +4,24 @@ import type { AtLeastOne, ColorVariant } from "../../types";
|
|
4
4
|
export declare type BadgeSizes = "small" | "medium" | "large";
|
5
5
|
export declare type BadgeVariants = ColorVariant | "pink";
|
6
6
|
interface BaseBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
7
|
+
/**
|
8
|
+
* The variant of the `Badge`.
|
9
|
+
* @default grey
|
10
|
+
*/
|
7
11
|
variant?: BadgeVariants;
|
12
|
+
/**
|
13
|
+
* The size of the `Badge`.
|
14
|
+
* @default large
|
15
|
+
*/
|
8
16
|
size?: BadgeSizes;
|
9
17
|
}
|
10
18
|
declare type BadgeContentProps = {
|
19
|
+
/**
|
20
|
+
* The content of the `Badge`.
|
21
|
+
*/
|
11
22
|
children: ReactNode;
|
12
23
|
/**
|
13
|
-
* An additional value to accompany the `Badge
|
24
|
+
* An additional value to accompany the `Badge`.
|
14
25
|
*/
|
15
26
|
value: ReactNode;
|
16
27
|
/**
|
@@ -18,7 +29,7 @@ declare type BadgeContentProps = {
|
|
18
29
|
*/
|
19
30
|
icon: IconComponentType;
|
20
31
|
};
|
21
|
-
export declare type BadgeProps = BaseBadgeProps & AtLeastOne<BadgeContentProps>;
|
32
|
+
export declare type BadgeProps = Omit<BaseBadgeProps, "children"> & AtLeastOne<BadgeContentProps>;
|
22
33
|
/**
|
23
34
|
* The `Badge` component is a visual marker highlighting information or status. It enhances UI, indicates progress, and classifies data.
|
24
35
|
*
|
@@ -4,26 +4,43 @@ import type { ColorVariant } from "../../../types";
|
|
4
4
|
export declare type AlertContextType = "page" | "section";
|
5
5
|
export declare type AlertColorVariant = Exclude<ColorVariant, "blue">;
|
6
6
|
export interface AlertProps {
|
7
|
-
/**
|
8
|
-
|
9
|
-
|
10
|
-
style?: CSSProperties;
|
11
|
-
/** Descriptive title for `Alert` */
|
7
|
+
/**
|
8
|
+
* Descriptive title for `Alert`.
|
9
|
+
*/
|
12
10
|
title?: ReactNode;
|
13
|
-
/**
|
11
|
+
/**
|
12
|
+
* The variant of the `Alert`.
|
13
|
+
* @default grey
|
14
|
+
*/
|
14
15
|
variant?: AlertColorVariant;
|
15
16
|
/**
|
16
|
-
* Usage context description
|
17
|
+
* Usage context description.
|
17
18
|
* @default section
|
18
19
|
*/
|
19
20
|
usageContext?: AlertContextType;
|
21
|
+
/**
|
22
|
+
* The icon of the `Alert`.
|
23
|
+
*/
|
20
24
|
icon?: IconComponentType;
|
21
25
|
/**
|
22
26
|
* Function triggered when the dismiss button is clicked.
|
23
27
|
* Dismiss button won't be rendered if absent.
|
24
|
-
|
28
|
+
*/
|
25
29
|
onDismiss?(): void;
|
30
|
+
/**
|
31
|
+
* The content of the `Alert`.
|
32
|
+
*/
|
26
33
|
children: ReactNode;
|
34
|
+
/**
|
35
|
+
* The class name of the `Alert`.
|
36
|
+
* @ignore
|
37
|
+
*/
|
38
|
+
className?: string;
|
39
|
+
/**
|
40
|
+
* The style of the `Alert`.
|
41
|
+
* @ignore
|
42
|
+
*/
|
43
|
+
style?: CSSProperties;
|
27
44
|
}
|
28
45
|
/**
|
29
46
|
* The `Alert` component give users suggestions, tips, warnings, and error information without stopping them from completing the tasks they're doing.
|
@@ -1,22 +1,48 @@
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
2
2
|
declare type PromoteVariants = "large" | "compact";
|
3
3
|
interface CompactPromoteProps {
|
4
|
+
/**
|
5
|
+
* The variant of the `Promote`.
|
6
|
+
* @default compact
|
7
|
+
*/
|
4
8
|
variant?: Extract<PromoteVariants, "compact">;
|
9
|
+
/**
|
10
|
+
* The illustration of the `Promote`.
|
11
|
+
*/
|
5
12
|
illustration?: never;
|
6
13
|
}
|
7
14
|
interface WidePromoteProps {
|
15
|
+
/**
|
16
|
+
* The variant of the `Promote`.
|
17
|
+
* @default large
|
18
|
+
*/
|
8
19
|
variant?: Extract<PromoteVariants, "large">;
|
9
|
-
/**
|
20
|
+
/**
|
21
|
+
* The illustration of the `Promote`.
|
22
|
+
*/
|
10
23
|
illustration?: ReactNode;
|
11
24
|
}
|
12
25
|
export declare type PromoteProps = {
|
13
|
-
/**
|
26
|
+
/**
|
27
|
+
* Product context for the banner.
|
28
|
+
*/
|
14
29
|
context?: ReactNode;
|
15
|
-
/**
|
30
|
+
/**
|
31
|
+
* Descriptive title for banner.
|
32
|
+
*/
|
16
33
|
title: ReactNode;
|
17
|
-
/**
|
34
|
+
/**
|
35
|
+
* Buttons.
|
36
|
+
*/
|
18
37
|
actions?: ReactNode;
|
38
|
+
/**
|
39
|
+
* Function triggered when the dismiss button is clicked.
|
40
|
+
* Dismiss button won't be rendered if absent.
|
41
|
+
*/
|
19
42
|
onDismiss?(): void;
|
43
|
+
/**
|
44
|
+
* The content of the `Promote`.
|
45
|
+
*/
|
20
46
|
children: ReactNode;
|
21
47
|
} & (CompactPromoteProps | WidePromoteProps);
|
22
48
|
/**
|
@@ -1,7 +1,13 @@
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
2
2
|
import type { IconComponentType } from "../../../Icons";
|
3
3
|
export interface SystemNotificationProps {
|
4
|
+
/**
|
5
|
+
* The icon of the `SystemNotification`.
|
6
|
+
*/
|
4
7
|
icon?: IconComponentType;
|
8
|
+
/**
|
9
|
+
* The content of the `SystemNotification`.
|
10
|
+
*/
|
5
11
|
children: ReactNode;
|
6
12
|
}
|
7
13
|
/**
|
@@ -3,30 +3,42 @@ import type { FlexGridDirection } from "../../Layout";
|
|
3
3
|
export declare type EmptyStateUsageContexts = "result" | "feature" | "page";
|
4
4
|
export declare type EmptyStateWidths = "medium" | "large" | "xlarge";
|
5
5
|
export interface EmptyStatePropsAll {
|
6
|
-
/**
|
6
|
+
/**
|
7
|
+
* Descriptive title for the state.
|
8
|
+
*/
|
7
9
|
title: ReactNode;
|
8
|
-
/**
|
10
|
+
/**
|
11
|
+
* Optional description to explain why the screen is empty or define next steps.
|
12
|
+
*/
|
9
13
|
description?: ReactNode;
|
10
|
-
/**
|
14
|
+
/**
|
15
|
+
* Buttons.
|
16
|
+
*/
|
11
17
|
actions?: ReactNode;
|
12
|
-
/**
|
18
|
+
/**
|
19
|
+
* Direction overwrite for the buttons.
|
20
|
+
*/
|
13
21
|
actionsDirection?: FlexGridDirection;
|
14
|
-
/**
|
22
|
+
/**
|
23
|
+
* Add a `<Medallion />`, an `img` element or `svg` in there.
|
24
|
+
*/
|
15
25
|
leadIllustration?: ReactNode;
|
16
|
-
/**
|
26
|
+
/**
|
27
|
+
* Plop in an `img` element or `svg` here.
|
28
|
+
*/
|
17
29
|
pageIllustration?: ReactNode;
|
18
30
|
/**
|
19
|
-
* UsageContext of the component
|
31
|
+
* UsageContext of the component.
|
20
32
|
* @default feature
|
21
33
|
*/
|
22
34
|
usageContext?: EmptyStateUsageContexts;
|
23
35
|
/**
|
24
|
-
* Define whether or not content should be centered
|
36
|
+
* Define whether or not content should be centered.
|
25
37
|
* @default false
|
26
38
|
*/
|
27
39
|
centered?: boolean;
|
28
40
|
/**
|
29
|
-
* Defines how wide the EmptyState can expand
|
41
|
+
* Defines how wide the EmptyState can expand.
|
30
42
|
* @default medium
|
31
43
|
*/
|
32
44
|
width?: EmptyStateWidths;
|
@@ -1,10 +1,16 @@
|
|
1
1
|
import { type HTMLAttributes } from "react";
|
2
2
|
export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
3
|
-
/**
|
3
|
+
/**
|
4
|
+
* The current value of the progress bar.
|
5
|
+
*/
|
4
6
|
value: number;
|
5
|
-
/**
|
7
|
+
/**
|
8
|
+
* The maximum value of the progress bar.
|
9
|
+
*/
|
6
10
|
max?: number;
|
7
|
-
/**
|
11
|
+
/**
|
12
|
+
* The className to apply to the bar element.
|
13
|
+
*/
|
8
14
|
barClassName?: string;
|
9
15
|
}
|
10
16
|
/**
|
@@ -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>;
|