@algolia/satellite 2.4.0 → 2.5.0
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/Accordion/Accordion.d.ts +9 -9
- package/dist/cjs/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
- package/dist/cjs/Actions/Button/Button.d.ts +1 -2
- package/dist/cjs/Actions/Button/Button.tailwind.d.ts +1 -1
- package/dist/cjs/Actions/Button/PolymorphicButton.d.ts +2 -2
- package/dist/cjs/Actions/Button/PolymorphicIconButton.d.ts +2 -3
- package/dist/cjs/Actions/Button/types.d.ts +7 -7
- package/dist/cjs/Actions/ButtonLink/ButtonLink.d.ts +2 -3
- package/dist/cjs/Actions/IconButton/IconButton.d.ts +1 -2
- package/dist/cjs/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
- package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
- package/dist/cjs/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
- package/dist/cjs/Actions/SegmentedControl/types.d.ts +1 -1
- package/dist/cjs/Actions/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
- package/dist/cjs/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
- package/dist/cjs/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
- package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.js +72 -0
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.js +22 -0
- package/dist/cjs/Chat/ChatContextContainer/index.d.ts +1 -0
- package/dist/cjs/Chat/ChatContextContainer/index.js +16 -0
- package/dist/cjs/Chat/ChatContextContainer/theme.d.ts +57 -0
- package/dist/cjs/Chat/ChatContextContainer/theme.js +73 -0
- package/dist/cjs/Chat/ChatMessage/ChatMessage.d.ts +5 -54
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
- package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessages/ChatMessages.d.ts +5 -66
- package/dist/cjs/Chat/ChatMessages/ChatMessages.js +0 -1
- package/dist/cjs/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
- package/dist/cjs/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
- package/dist/cjs/Chat/helpers.d.ts +28 -0
- package/dist/cjs/Chat/helpers.js +68 -0
- package/dist/cjs/Chat/index.d.ts +4 -1
- package/dist/cjs/Chat/index.js +33 -1
- package/dist/cjs/Chat/types.d.ts +22 -3
- package/dist/cjs/Fields/AutoComplete/AutoComplete.d.ts +1 -2
- package/dist/cjs/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
- package/dist/cjs/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
- package/dist/cjs/Fields/AutoComplete/types.d.ts +8 -8
- package/dist/cjs/Fields/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/DateInput/DateInput.d.ts +2 -3
- package/dist/cjs/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
- package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/components/Calendar.d.ts +3 -3
- package/dist/cjs/Fields/DatePicker/components/Footer.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/components/FooterActions.d.ts +0 -1
- package/dist/cjs/Fields/DatePicker/components/NavBar.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/components/SidePanel.d.ts +1 -1
- package/dist/cjs/Fields/DatePicker/types.d.ts +2 -2
- package/dist/cjs/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
- package/dist/cjs/Fields/Dropzone/Dropzone.d.ts +2 -3
- package/dist/cjs/Fields/Field/FieldContext.d.ts +2 -3
- package/dist/cjs/Fields/Field/useField.d.ts +1 -1
- package/dist/cjs/Fields/FilePicker/FilePicker.d.ts +4 -5
- package/dist/cjs/Fields/Form/Form.d.ts +1 -1
- package/dist/cjs/Fields/Form/FormContext.d.ts +2 -3
- package/dist/cjs/Fields/Input/Input.d.ts +3 -3
- package/dist/cjs/Fields/Input/Input.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/RadioGroup/RadioGroup.d.ts +5 -5
- package/dist/cjs/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
- package/dist/cjs/Fields/RangeSlider/RangeSlider.d.ts +5 -5
- package/dist/cjs/Fields/Select/Select.d.ts +1 -1
- package/dist/cjs/Fields/Select/Select.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/SelectableCard/SelectableCard.d.ts +2 -2
- package/dist/cjs/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
- package/dist/cjs/Fields/Switch/Switch.d.ts +7 -7
- package/dist/cjs/Fields/Switch/Switch.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/TextArea/TextArea.d.ts +1 -1
- package/dist/cjs/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
- package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
- package/dist/cjs/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
- package/dist/cjs/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/dist/cjs/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
- package/dist/cjs/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/utilities/focusable.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/utilities/overlay.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/utilities/utilities.tailwind.d.ts +1 -1
- package/dist/cjs/Icons/AlgoliaRecommendIcon.d.ts +0 -1
- package/dist/cjs/Icons/AlgoliaSearchIcon.d.ts +0 -1
- package/dist/cjs/Icons/BulbIcon.d.ts +0 -1
- package/dist/cjs/Icons/ContextIcon.d.ts +0 -1
- package/dist/cjs/Icons/CrawlerIcon.d.ts +0 -1
- package/dist/cjs/Icons/DragHandleIcon.d.ts +0 -1
- package/dist/cjs/Icons/NeuralSearchIcon.d.ts +0 -1
- package/dist/cjs/Icons/NoFiltersIcon.d.ts +0 -1
- package/dist/cjs/Icons/PinIcon.d.ts +0 -1
- package/dist/cjs/Icons/QueryBreakdownIcon.d.ts +0 -1
- package/dist/cjs/Icons/RocketIcon.d.ts +0 -1
- package/dist/cjs/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
- package/dist/cjs/Icons/SettingsConsequencesIcon.d.ts +0 -1
- package/dist/cjs/Icons/TestingIcon.d.ts +0 -1
- package/dist/cjs/Icons/UnpinIcon.d.ts +0 -1
- package/dist/cjs/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
- package/dist/cjs/Icons/index.d.ts +2 -2
- package/dist/cjs/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
- package/dist/cjs/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
- package/dist/cjs/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
- package/dist/cjs/Indicators/Avatars/types.d.ts +5 -5
- package/dist/cjs/Indicators/Badge/Badge.d.ts +4 -4
- package/dist/cjs/Indicators/Banners/Alert/Alert.d.ts +2 -2
- package/dist/cjs/Indicators/Banners/Promote/Promote.d.ts +2 -2
- package/dist/cjs/Indicators/EmptyState/types.d.ts +3 -3
- package/dist/cjs/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Medallion/types.d.ts +2 -2
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/dist/cjs/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
- package/dist/cjs/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Separator/Separator.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Tag/Tag.d.ts +2 -2
- package/dist/cjs/Indicators/Tag/Tag.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Toast/Toast.d.ts +2 -2
- package/dist/cjs/Indicators/Toast/Toast.tailwind.d.ts +1 -1
- package/dist/cjs/Indicators/Toast/Toasts.d.ts +1 -1
- package/dist/cjs/Indicators/Toast/types.d.ts +1 -1
- package/dist/cjs/Layout/Card/Card.d.ts +2 -2
- package/dist/cjs/Layout/Card/Card.tailwind.d.ts +1 -1
- package/dist/cjs/Layout/Card/components/CardHeader.d.ts +1 -1
- package/dist/cjs/Layout/Card/components/CardTitle.d.ts +2 -2
- package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
- package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
- package/dist/cjs/Layout/FlexGrid/FlexGrid.d.ts +4 -4
- package/dist/cjs/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
- package/dist/cjs/Layout/Insert/Insert.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/Sidebar.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarContext.d.ts +1 -2
- package/dist/cjs/Layout/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarHeading.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarLink.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
- package/dist/cjs/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
- package/dist/cjs/Layout/Sidebar/SidebarNav.d.ts +2 -2
- package/dist/cjs/Layout/Sidebar/types.d.ts +3 -3
- package/dist/cjs/Layout/Tables/DataTable/DataTable.d.ts +7 -7
- package/dist/cjs/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
- package/dist/cjs/Layout/Tables/DataTable/types.d.ts +7 -7
- package/dist/cjs/Layout/Tables/Table/Table.d.ts +1 -1
- package/dist/cjs/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
- package/dist/cjs/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
- package/dist/cjs/Navigation/Link/BaseLink.d.ts +1 -1
- package/dist/cjs/Navigation/Link/Link.d.ts +4 -4
- package/dist/cjs/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
- package/dist/cjs/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
- package/dist/cjs/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
- package/dist/cjs/Navigation/Stepper/Step.d.ts +1 -1
- package/dist/cjs/Navigation/Stepper/Stepper.d.ts +3 -3
- package/dist/cjs/Navigation/Stepper/StepperContext.d.ts +1 -2
- package/dist/cjs/Navigation/Stepper/types.d.ts +1 -1
- package/dist/cjs/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
- package/dist/cjs/Navigation/Tabs/types.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +16 -17
- package/dist/cjs/Overlay/MenuButton/components/Content.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Divider.d.ts +0 -1
- package/dist/cjs/Overlay/MenuButton/components/Label.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/components/items/Item.d.ts +4 -5
- package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
- package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
- package/dist/cjs/Overlay/Modal/Modal.d.ts +4 -4
- package/dist/cjs/Overlay/Modal/Modal.tailwind.d.ts +1 -1
- package/dist/cjs/Overlay/Modal/components/ModalFooter.d.ts +1 -1
- package/dist/cjs/Overlay/Modal/components/ModalSection.d.ts +1 -1
- package/dist/cjs/Overlay/Popover/types.d.ts +4 -4
- package/dist/cjs/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/cjs/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
- package/dist/cjs/Satellite/SatelliteContext.d.ts +0 -1
- package/dist/cjs/Satellite/locale.d.ts +1 -1
- package/dist/cjs/Satellite/useCreatePortal.d.ts +1 -1
- package/dist/cjs/Typography/Typography.tailwind.d.ts +1 -1
- package/dist/cjs/styles/base.tailwind.d.ts +1 -1
- package/dist/cjs/styles/brandColors.d.ts +6 -6
- package/dist/cjs/styles/colors.d.ts +11 -11
- package/dist/cjs/styles/helpers/satellitePrefixer.d.ts +1 -1
- package/dist/cjs/styles/tailwind.config.d.ts +1 -1
- package/dist/cjs/styles/tailwind.config.js +1 -1
- package/dist/cjs/styles/zIndexes.d.ts +8 -8
- package/dist/cjs/types.d.ts +6 -7
- package/dist/cjs/utils/NumberUnion.d.ts +3 -3
- package/dist/cjs/utils/genericChangeHandler.d.ts +2 -2
- package/dist/cjs/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/cjs/utils/isRenderedChild.d.ts +1 -1
- package/dist/cjs/utils/matchLocation.d.ts +1 -1
- package/dist/cjs/utils/parseUrl.d.ts +1 -1
- package/dist/cjs/utils/useLinkProps.d.ts +2 -2
- package/dist/cjs/utils/useTimeoutFn.d.ts +1 -1
- package/dist/cjs/utils/useTriggerInputChange.d.ts +1 -1
- package/dist/esm/Actions/Accordion/Accordion.d.ts +9 -9
- package/dist/esm/Actions/Accordion/Accordion.tailwind.d.ts +1 -1
- package/dist/esm/Actions/Button/Button.d.ts +1 -2
- package/dist/esm/Actions/Button/Button.tailwind.d.ts +1 -1
- package/dist/esm/Actions/Button/PolymorphicButton.d.ts +2 -2
- package/dist/esm/Actions/Button/PolymorphicIconButton.d.ts +2 -3
- package/dist/esm/Actions/Button/types.d.ts +7 -7
- package/dist/esm/Actions/ButtonLink/ButtonLink.d.ts +2 -3
- package/dist/esm/Actions/IconButton/IconButton.d.ts +1 -2
- package/dist/esm/Actions/IconButtonLink/IconButtonLink.d.ts +1 -2
- package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.d.ts +2 -2
- package/dist/esm/Actions/SegmentedControl/SegmentedControl.tailwind.d.ts +1 -1
- package/dist/esm/Actions/SegmentedControl/types.d.ts +1 -1
- package/dist/esm/Actions/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/esm/Actions/ToggleButton/ToggleButtonBase.d.ts +3 -3
- package/dist/esm/Actions/ToggleGroup/ToggleGroup.d.ts +6 -6
- package/dist/esm/Actions/ToggleGroup/ToggleGroup.tailwind.d.ts +1 -1
- package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.d.ts +1 -1
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.d.ts +23 -0
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.js +66 -0
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +65 -0
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.js +15 -0
- package/dist/esm/Chat/ChatContextContainer/index.d.ts +1 -0
- package/dist/esm/Chat/ChatContextContainer/index.js +1 -0
- package/dist/esm/Chat/ChatContextContainer/theme.d.ts +57 -0
- package/dist/esm/Chat/ChatContextContainer/theme.js +67 -0
- package/dist/esm/Chat/ChatMessage/ChatMessage.d.ts +5 -54
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
- package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
- package/dist/esm/Chat/ChatMessages/ChatMessages.d.ts +5 -66
- package/dist/esm/Chat/ChatMessages/ChatMessages.js +0 -1
- package/dist/esm/Chat/ChatPrompt/ChatPrompt.d.ts +9 -9
- package/dist/esm/Chat/ChatPrompt/useFocusTyping.d.ts +1 -2
- package/dist/esm/Chat/helpers.d.ts +28 -0
- package/dist/esm/Chat/helpers.js +60 -0
- package/dist/esm/Chat/index.d.ts +4 -1
- package/dist/esm/Chat/index.js +3 -1
- package/dist/esm/Chat/types.d.ts +22 -3
- package/dist/esm/Fields/AutoComplete/AutoComplete.d.ts +1 -2
- package/dist/esm/Fields/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
- package/dist/esm/Fields/AutoComplete/components/AutoCompleteContext.d.ts +2 -2
- package/dist/esm/Fields/AutoComplete/components/DefaultOptionItem.d.ts +1 -1
- package/dist/esm/Fields/AutoComplete/types.d.ts +8 -8
- package/dist/esm/Fields/Checkbox/Checkbox.d.ts +3 -3
- package/dist/esm/Fields/Checkbox/Checkbox.tailwind.d.ts +1 -1
- package/dist/esm/Fields/DateInput/DateInput.d.ts +2 -3
- package/dist/esm/Fields/DatePicker/DatePicker/DatePicker.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/DatePicker/datePickerReducer.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/DatePicker.tailwind.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +0 -1
- package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/components/Calendar.d.ts +3 -3
- package/dist/esm/Fields/DatePicker/components/Footer.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/components/FooterActions.d.ts +0 -1
- package/dist/esm/Fields/DatePicker/components/NavBar.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/components/SidePanel.d.ts +1 -1
- package/dist/esm/Fields/DatePicker/types.d.ts +2 -2
- package/dist/esm/Fields/DateRangeInput/DateRangeInput.d.ts +2 -3
- package/dist/esm/Fields/Dropzone/Dropzone.d.ts +2 -3
- package/dist/esm/Fields/Field/FieldContext.d.ts +2 -3
- package/dist/esm/Fields/Field/useField.d.ts +1 -1
- package/dist/esm/Fields/FilePicker/FilePicker.d.ts +4 -5
- package/dist/esm/Fields/Form/Form.d.ts +1 -1
- package/dist/esm/Fields/Form/FormContext.d.ts +2 -3
- package/dist/esm/Fields/Input/Input.d.ts +3 -3
- package/dist/esm/Fields/Input/Input.tailwind.d.ts +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.d.ts +1 -1
- package/dist/esm/Fields/RadioGroup/RadioButton.tailwind.d.ts +1 -1
- package/dist/esm/Fields/RadioGroup/RadioGroup.d.ts +5 -5
- package/dist/esm/Fields/RadioGroup/RadioGroupItem.d.ts +4 -4
- package/dist/esm/Fields/RangeSlider/RangeSlider.d.ts +5 -5
- package/dist/esm/Fields/Select/Select.d.ts +1 -1
- package/dist/esm/Fields/Select/Select.tailwind.d.ts +1 -1
- package/dist/esm/Fields/SelectableCard/SelectableCard.d.ts +2 -2
- package/dist/esm/Fields/SelectableCard/SelectableCardGroup.d.ts +2 -2
- package/dist/esm/Fields/Switch/Switch.d.ts +7 -7
- package/dist/esm/Fields/Switch/Switch.tailwind.d.ts +1 -1
- package/dist/esm/Fields/TextArea/TextArea.d.ts +1 -1
- package/dist/esm/Fields/TextArea/TextArea.tailwind.d.ts +1 -1
- package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.d.ts +3 -4
- package/dist/esm/Helpers/ClickAwayContainer/ClickAwayContainer.d.ts +1 -1
- package/dist/esm/Helpers/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/esm/Helpers/HelpUnderline/HelpUnderline.d.ts +1 -1
- package/dist/esm/Helpers/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/ShimmerText/ShimmerText.d.ts +1 -1
- package/dist/esm/Helpers/ShimmerText/ShimmerText.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/UserContent/UserContent.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/utilities/focusable.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/utilities/overlay.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/utilities/utilities.tailwind.d.ts +1 -1
- package/dist/esm/Icons/AlgoliaRecommendIcon.d.ts +0 -1
- package/dist/esm/Icons/AlgoliaSearchIcon.d.ts +0 -1
- package/dist/esm/Icons/BulbIcon.d.ts +0 -1
- package/dist/esm/Icons/ContextIcon.d.ts +0 -1
- package/dist/esm/Icons/CrawlerIcon.d.ts +0 -1
- package/dist/esm/Icons/DragHandleIcon.d.ts +0 -1
- package/dist/esm/Icons/NeuralSearchIcon.d.ts +0 -1
- package/dist/esm/Icons/NoFiltersIcon.d.ts +0 -1
- package/dist/esm/Icons/PinIcon.d.ts +0 -1
- package/dist/esm/Icons/QueryBreakdownIcon.d.ts +0 -1
- package/dist/esm/Icons/RocketIcon.d.ts +0 -1
- package/dist/esm/Icons/SettingsCategoryPagesIcon.d.ts +0 -1
- package/dist/esm/Icons/SettingsConsequencesIcon.d.ts +0 -1
- package/dist/esm/Icons/TestingIcon.d.ts +0 -1
- package/dist/esm/Icons/UnpinIcon.d.ts +0 -1
- package/dist/esm/Icons/WorkspaceSwitcherIcon.d.ts +0 -1
- package/dist/esm/Icons/index.d.ts +2 -2
- package/dist/esm/Indicators/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
- package/dist/esm/Indicators/Avatars/ApplicationAvatar/ApplicationAvatar.d.ts +1 -1
- package/dist/esm/Indicators/Avatars/UserAvatar/UserAvatar.d.ts +2 -2
- package/dist/esm/Indicators/Avatars/types.d.ts +5 -5
- package/dist/esm/Indicators/Badge/Badge.d.ts +4 -4
- package/dist/esm/Indicators/Banners/Alert/Alert.d.ts +2 -2
- package/dist/esm/Indicators/Banners/Promote/Promote.d.ts +2 -2
- package/dist/esm/Indicators/EmptyState/types.d.ts +3 -3
- package/dist/esm/Indicators/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Medallion/Medallion.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Medallion/types.d.ts +2 -2
- package/dist/esm/Indicators/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.d.ts +1 -1
- package/dist/esm/Indicators/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.d.ts +1 -1
- package/dist/esm/Indicators/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Separator/Separator.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Tag/Tag.d.ts +2 -2
- package/dist/esm/Indicators/Tag/Tag.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Toast/Toast.d.ts +2 -2
- package/dist/esm/Indicators/Toast/Toast.tailwind.d.ts +1 -1
- package/dist/esm/Indicators/Toast/Toasts.d.ts +1 -1
- package/dist/esm/Indicators/Toast/types.d.ts +1 -1
- package/dist/esm/Layout/Card/Card.d.ts +2 -2
- package/dist/esm/Layout/Card/Card.tailwind.d.ts +1 -1
- package/dist/esm/Layout/Card/components/CardHeader.d.ts +1 -1
- package/dist/esm/Layout/Card/components/CardTitle.d.ts +2 -2
- package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.d.ts +6 -6
- package/dist/esm/Layout/CollapsibleCard/CollapsibleCard.tailwind.d.ts +1 -1
- package/dist/esm/Layout/FlexGrid/FlexGrid.d.ts +4 -4
- package/dist/esm/Layout/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
- package/dist/esm/Layout/Insert/Insert.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/Sidebar.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarButtonLink.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarContext.d.ts +1 -2
- package/dist/esm/Layout/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarHeading.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarLink.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +4 -4
- package/dist/esm/Layout/Sidebar/SidebarLinksGroup/types.d.ts +1 -1
- package/dist/esm/Layout/Sidebar/SidebarNav.d.ts +2 -2
- package/dist/esm/Layout/Sidebar/types.d.ts +3 -3
- package/dist/esm/Layout/Tables/DataTable/DataTable.d.ts +7 -7
- package/dist/esm/Layout/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
- package/dist/esm/Layout/Tables/DataTable/types.d.ts +7 -7
- package/dist/esm/Layout/Tables/Table/Table.d.ts +1 -1
- package/dist/esm/Layout/Tables/Table/Table.tailwind.d.ts +1 -1
- package/dist/esm/Layout/Tables/Table/components/TableFooter.d.ts +2 -2
- package/dist/esm/Navigation/Link/BaseLink.d.ts +1 -1
- package/dist/esm/Navigation/Link/Link.d.ts +4 -4
- package/dist/esm/Navigation/Pagination/CompactPagination/CompactPagination.d.ts +6 -6
- package/dist/esm/Navigation/Pagination/DotPagination/DotPagination.d.ts +3 -3
- package/dist/esm/Navigation/Pagination/Pagination/Pagination.d.ts +1 -1
- package/dist/esm/Navigation/Stepper/Step.d.ts +1 -1
- package/dist/esm/Navigation/Stepper/Stepper.d.ts +3 -3
- package/dist/esm/Navigation/Stepper/StepperContext.d.ts +1 -2
- package/dist/esm/Navigation/Stepper/types.d.ts +1 -1
- package/dist/esm/Navigation/Tabs/Tabs.tailwind.d.ts +1 -1
- package/dist/esm/Navigation/Tabs/types.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +16 -17
- package/dist/esm/Overlay/MenuButton/components/Content.d.ts +1 -2
- package/dist/esm/Overlay/MenuButton/components/CustomTrigger.d.ts +1 -2
- package/dist/esm/Overlay/MenuButton/components/DefaultTrigger.d.ts +1 -2
- package/dist/esm/Overlay/MenuButton/components/Divider.d.ts +0 -1
- package/dist/esm/Overlay/MenuButton/components/Label.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItem.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +0 -1
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/items/Item.d.ts +4 -5
- package/dist/esm/Overlay/MenuButton/components/items/LinkItem.d.ts +2 -2
- package/dist/esm/Overlay/MenuButton/components/items/RadioItem.d.ts +2 -2
- package/dist/esm/Overlay/Modal/Modal.d.ts +4 -4
- package/dist/esm/Overlay/Modal/Modal.tailwind.d.ts +1 -1
- package/dist/esm/Overlay/Modal/components/ModalFooter.d.ts +1 -1
- package/dist/esm/Overlay/Modal/components/ModalSection.d.ts +1 -1
- package/dist/esm/Overlay/Popover/types.d.ts +4 -4
- package/dist/esm/Overlay/Tooltip/Tooltip.d.ts +1 -1
- package/dist/esm/Overlay/Tooltip/Tooltip.tailwind.d.ts +1 -1
- package/dist/esm/Satellite/SatelliteContext.d.ts +0 -1
- package/dist/esm/Satellite/locale.d.ts +1 -1
- package/dist/esm/Satellite/useCreatePortal.d.ts +1 -1
- package/dist/esm/Typography/Typography.tailwind.d.ts +1 -1
- package/dist/esm/styles/base.tailwind.d.ts +1 -1
- package/dist/esm/styles/brandColors.d.ts +6 -6
- package/dist/esm/styles/colors.d.ts +11 -11
- package/dist/esm/styles/helpers/satellitePrefixer.d.ts +1 -1
- package/dist/esm/styles/tailwind.config.d.ts +1 -1
- package/dist/esm/styles/tailwind.config.js +1 -1
- package/dist/esm/styles/zIndexes.d.ts +8 -8
- package/dist/esm/types.d.ts +6 -7
- package/dist/esm/utils/NumberUnion.d.ts +3 -3
- package/dist/esm/utils/genericChangeHandler.d.ts +2 -2
- package/dist/esm/utils/isCssPropertySupported.d.ts +1 -1
- package/dist/esm/utils/isRenderedChild.d.ts +1 -1
- package/dist/esm/utils/matchLocation.d.ts +1 -1
- package/dist/esm/utils/parseUrl.d.ts +1 -1
- package/dist/esm/utils/useLinkProps.d.ts +2 -2
- package/dist/esm/utils/useTimeoutFn.d.ts +1 -1
- package/dist/esm/utils/useTriggerInputChange.d.ts +1 -1
- package/dist/satellite.min.css +1 -1
- package/package.json +7 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PropsWithChildren } from "react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { CardProps } from "../Card";
|
|
4
|
-
export
|
|
4
|
+
export type CollapsibleCardProps = PropsWithChildren<{
|
|
5
5
|
/**
|
|
6
6
|
* The content of the `CollapsibleCard` header.
|
|
7
7
|
*/
|
|
@@ -39,20 +39,20 @@ export declare const CollapsibleCard: import("react").ForwardRefExoticComponent<
|
|
|
39
39
|
* The default open state of the `CollapsibleCard`.
|
|
40
40
|
* @default true
|
|
41
41
|
*/
|
|
42
|
-
defaultOpen?: boolean
|
|
42
|
+
defaultOpen?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* The controlled open state of the `CollapsibleCard`.
|
|
45
45
|
*/
|
|
46
|
-
open?: boolean
|
|
46
|
+
open?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Callback function called when the open state changes.
|
|
49
49
|
*/
|
|
50
|
-
onOpenChange?: (
|
|
50
|
+
onOpenChange?: (open: boolean) => void;
|
|
51
51
|
/**
|
|
52
52
|
* Hide the icon.
|
|
53
53
|
* @default false
|
|
54
54
|
*/
|
|
55
|
-
hideIcon?: boolean
|
|
55
|
+
hideIcon?: boolean;
|
|
56
56
|
} & Omit<CardProps, "fullBleed"> & {
|
|
57
|
-
children?: ReactNode;
|
|
57
|
+
children?: ReactNode | undefined;
|
|
58
58
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export = collapsibleCardPlugin;
|
|
2
2
|
declare const collapsibleCardPlugin: {
|
|
3
3
|
handler: import("tailwindcss/types/config").PluginCreator;
|
|
4
|
-
config?: Partial<import("tailwindcss/types/config").Config
|
|
4
|
+
config?: Partial<import("tailwindcss/types/config").Config>;
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
2
|
+
export type FlexGridDirection = "row" | "column";
|
|
3
|
+
export type FlexGridAlignment = "leading" | "trailing" | "center" | "fill" | "baseline";
|
|
4
|
+
export type FlexGridDistribution = "equalSpacing" | "leading" | "trailing" | "center" | "fill" | "fillEvenly";
|
|
5
|
+
export type FlexGridSpacing = "none" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
export interface FlexGridProps {
|
|
7
7
|
/** @ignore */
|
|
8
8
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { SidebarLocale, SidebarLocation, SidebarVariant } from "./types";
|
|
3
|
-
export
|
|
3
|
+
export type SidebarProps = PropsWithChildren<{
|
|
4
4
|
/**
|
|
5
5
|
* The ID of the `Sidebar`.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, MouseEventHandler, ReactNode } from "react";
|
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
|
3
|
-
export
|
|
3
|
+
export type SidebarButtonLinkIcon = IconComponentType | {
|
|
4
4
|
active: IconComponentType;
|
|
5
5
|
inactive: IconComponentType;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
2
|
import type { SidebarLinksGroupLink } from "./types";
|
|
3
3
|
import { type IconComponentType } from "../../../Icons";
|
|
4
|
-
|
|
4
|
+
type SidebarLinksGroupBaseProps = {
|
|
5
5
|
/**
|
|
6
6
|
* The ID of the `SidebarLinksGroup`.
|
|
7
7
|
*/
|
|
@@ -13,13 +13,13 @@ declare type SidebarLinksGroupBaseProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
links: SidebarLinksGroupLink[];
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type StaticSidebarLinksGroupProps = SidebarLinksGroupBaseProps & {
|
|
17
17
|
title?: never;
|
|
18
18
|
icon?: never;
|
|
19
19
|
initialIsOpen?: never;
|
|
20
20
|
onGroupToggle?: never;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type CollapsibleSidebarLinksGroupProps = SidebarLinksGroupBaseProps & {
|
|
23
23
|
/**
|
|
24
24
|
* The title of the `SidebarLinksGroup`.
|
|
25
25
|
*/
|
|
@@ -37,6 +37,6 @@ export declare type CollapsibleSidebarLinksGroupProps = SidebarLinksGroupBasePro
|
|
|
37
37
|
*/
|
|
38
38
|
onGroupToggle?: (open: boolean) => void;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type SidebarLinksGroupProps = StaticSidebarLinksGroupProps | CollapsibleSidebarLinksGroupProps;
|
|
41
41
|
export declare const SidebarLinksGroup: FC<SidebarLinksGroupProps>;
|
|
42
42
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type SidebarNavSpacing = "small" | "large";
|
|
3
|
+
export type SidebarNavProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The ID of the `SidebarNav`.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type SidebarVariant = "primary" | "secondary";
|
|
2
|
+
export type SidebarLocation = Pick<Location, "pathname" | "hash" | "search">;
|
|
3
|
+
export type SidebarLocale = {
|
|
4
4
|
primarySidebarLabel?: string;
|
|
5
5
|
secondarySidebarLabel?: string;
|
|
6
6
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { ColumnDefinition, DataConfiguration, GetItemId, PaginationConfiguration, Row, SelectMode, Sorting, Status } from "./types";
|
|
3
3
|
import type { DisplayMode } from "../../../Layout/Tables/Table";
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export
|
|
4
|
+
type CanSelectItem<Item> = (item: Item, idx: number) => boolean;
|
|
5
|
+
export type SortMode = "single" | "multi";
|
|
6
|
+
export type DataTableLocale = {
|
|
7
7
|
selectAllButton?: string;
|
|
8
8
|
noDataTitle?: string;
|
|
9
9
|
noDataDescription?: string;
|
|
@@ -42,7 +42,7 @@ interface BaseDataTableProps<Item> {
|
|
|
42
42
|
/** The locale configuration for the table. */
|
|
43
43
|
locale?: DataTableLocale;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
type DataTableWithSelectMode<Item> = {
|
|
46
46
|
/** The selection mode of the table. */
|
|
47
47
|
selectMode: Exclude<SelectMode, "none">;
|
|
48
48
|
/** The currently selected rows. */
|
|
@@ -52,7 +52,7 @@ declare type DataTableWithSelectMode<Item> = {
|
|
|
52
52
|
/** Whether the table can select items. */
|
|
53
53
|
canSelectItem?: CanSelectItem<Item>;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type DataTableWithoutSelectMode = {
|
|
56
56
|
/** Whether the table has selection. */
|
|
57
57
|
selectMode?: Extract<SelectMode, "none">;
|
|
58
58
|
/** The currently selected rows. */
|
|
@@ -62,11 +62,11 @@ declare type DataTableWithoutSelectMode = {
|
|
|
62
62
|
/** Whether the table can select items. */
|
|
63
63
|
canSelectItem?: never;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type DataTableProps<Item> = BaseDataTableProps<Item> & (DataTableWithSelectMode<Item> | DataTableWithoutSelectMode);
|
|
66
66
|
/**
|
|
67
67
|
* The `DataTable` component displays tabular data in a grid layout. It allows users to view, sort, filter, and interact with data in a structured way.
|
|
68
68
|
*
|
|
69
69
|
* See the [Data Table documentation page](https://satellite.algolia.com/8261d6576/p/12e3b1-data-table) for more information.
|
|
70
70
|
*/
|
|
71
|
-
export declare const DataTable: <Item extends object>({ data, itemId, columns, onChange, mode, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale, }: DataTableProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare const DataTable: <Item extends object>({ data, itemId, columns, onChange, mode, status, noDataContent, errorContent, sorting, sortMode, pagination, selectMode, selection, onSelectionChange, canSelectItem, canHoverRow, onRowHoveredChanged, locale: propsLocale, }: DataTableProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
72
72
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ComponentType, PropsWithChildren } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
2
|
+
export type Status = "loading" | "error" | "success";
|
|
3
|
+
export type SelectMode = "single" | "multi" | "none";
|
|
4
|
+
export type SortingDirection = "asc" | "desc" | "none";
|
|
5
|
+
export type Sorting = [columnId: string, direction: SortingDirection];
|
|
6
|
+
export type GetItemId<Item> = string | ((item: Item, idx: number) => string);
|
|
7
7
|
export interface Row<Item> {
|
|
8
8
|
/** The item for the given row */
|
|
9
9
|
item: Item;
|
|
@@ -43,7 +43,7 @@ export interface AdvancedColumnDefinition<Item> {
|
|
|
43
43
|
className?: string;
|
|
44
44
|
}
|
|
45
45
|
/** A column can be defined as a `string`, or as an `AdvancedColumnDefinition` in more complex cases */
|
|
46
|
-
export
|
|
46
|
+
export type ColumnDefinition<Item> = string | AdvancedColumnDefinition<Item>;
|
|
47
47
|
export interface IndeterminatePagination {
|
|
48
48
|
currentPage: number;
|
|
49
49
|
itemsPerPage: number;
|
|
@@ -54,7 +54,7 @@ export interface DeterminatePagination {
|
|
|
54
54
|
itemsPerPage: number;
|
|
55
55
|
totalItemsCount: number;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type PaginationConfiguration = false | IndeterminatePagination | DeterminatePagination;
|
|
58
58
|
export interface DataConfiguration {
|
|
59
59
|
/** The current pagination configuration */
|
|
60
60
|
pagination: PaginationConfiguration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DetailedHTMLProps, FC, ReactNode, TableHTMLAttributes } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type DisplayMode = "comfortable" | "compact";
|
|
3
3
|
export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement> {
|
|
4
4
|
/**
|
|
5
5
|
* The content to display in the footer of the table.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type FooterSizes = "default" | "small";
|
|
3
|
+
export type FooterProps = PropsWithChildren<{
|
|
4
4
|
/**
|
|
5
5
|
* The size of the footer.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnchorHTMLAttributes } from "react";
|
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
|
3
|
-
export
|
|
3
|
+
export type LinkProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The URL of the link.
|
|
6
6
|
*/
|
|
@@ -32,14 +32,14 @@ export declare const Link: import("react").ForwardRefExoticComponent<{
|
|
|
32
32
|
/**
|
|
33
33
|
* The icon to display at the start of the link.
|
|
34
34
|
*/
|
|
35
|
-
startIcon?: IconComponentType
|
|
35
|
+
startIcon?: IconComponentType;
|
|
36
36
|
/**
|
|
37
37
|
* The icon to display at the end of the link.
|
|
38
38
|
*/
|
|
39
|
-
endIcon?: IconComponentType
|
|
39
|
+
endIcon?: IconComponentType;
|
|
40
40
|
/**
|
|
41
41
|
* To determine if the `ExternalLink` icon should be displayed.
|
|
42
42
|
* @default true
|
|
43
43
|
*/
|
|
44
|
-
withExternalLinkIcon?: boolean
|
|
44
|
+
withExternalLinkIcon?: boolean;
|
|
45
45
|
} & AnchorHTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type CompactPaginationLabel = "complete" | "compact" | "none";
|
|
3
|
+
export type CompactPaginationLocale = {
|
|
4
4
|
goToFirstPage?: string;
|
|
5
5
|
goToLastPage?: string;
|
|
6
6
|
goToNextPage?: string;
|
|
7
7
|
goToPreviousPage?: string;
|
|
8
8
|
label?(page: number, nbPages?: number): string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type BaseCompactPaginationProps = {
|
|
11
11
|
/**
|
|
12
12
|
* The current page number. (1-indexed)
|
|
13
13
|
*/
|
|
@@ -29,7 +29,7 @@ declare type BaseCompactPaginationProps = {
|
|
|
29
29
|
*/
|
|
30
30
|
locale?: CompactPaginationLocale;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type DeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
|
33
33
|
/**
|
|
34
34
|
* The total number of pages.
|
|
35
35
|
*/
|
|
@@ -39,13 +39,13 @@ export declare type DeterminateCompactPaginationProps = BaseCompactPaginationPro
|
|
|
39
39
|
*/
|
|
40
40
|
showGoToLastPage?: boolean;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type IndeterminateCompactPaginationProps = BaseCompactPaginationProps & {
|
|
43
43
|
/**
|
|
44
44
|
* Whether the "Go to next page" button should be disabled.
|
|
45
45
|
*/
|
|
46
46
|
nextDisabled?: boolean;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type CompactPaginationProps = DeterminateCompactPaginationProps | IndeterminateCompactPaginationProps;
|
|
49
49
|
/** @ignore */
|
|
50
50
|
export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps;
|
|
51
51
|
/** @ignore */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NumberUnion } from "../../../utils/NumberUnion";
|
|
2
|
-
export
|
|
2
|
+
export type DotPaginationLocale = {
|
|
3
3
|
goToPageText?(page: number): string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type DotPaginationProps<T extends number> = {
|
|
6
6
|
/**
|
|
7
7
|
* The current page number. (1-indexed)
|
|
8
8
|
*/
|
|
@@ -29,4 +29,4 @@ export declare type DotPaginationProps<T extends number> = {
|
|
|
29
29
|
*
|
|
30
30
|
* See the [Dot Pagination documentation page](https://satellite.algolia.com/8261d6576/p/39f2e9-pagination/b/451eb9) for more information.
|
|
31
31
|
*/
|
|
32
|
-
export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale, }: DotPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const DotPagination: <T extends number>({ currentPage, onChange, nbPages, size, locale: propsLocale, }: DotPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC, type HTMLAttributes } from "react";
|
|
2
2
|
import type { BaseStep } from "./types";
|
|
3
|
-
export
|
|
3
|
+
export type StepProps = BaseStep & HTMLAttributes<HTMLLIElement> & {
|
|
4
4
|
index: number;
|
|
5
5
|
};
|
|
6
6
|
export declare const Step: FC<StepProps>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { FC, HTMLAttributes } from "react";
|
|
2
2
|
import type { BaseStep } from "./types";
|
|
3
|
-
export
|
|
3
|
+
export type StepperLocale = {
|
|
4
4
|
disabledStep?: string | ((stepName: string) => string);
|
|
5
5
|
activeStep?: string | ((stepName: string) => string);
|
|
6
6
|
incompletedStep?: string | ((stepName: string) => string);
|
|
7
7
|
completedStep?: string | ((stepName: string) => string);
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type StepperSizes = "small" | "default" | "large";
|
|
10
|
+
export type StepperOrientation = "horizontal" | "vertical";
|
|
11
11
|
export interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
12
12
|
/**
|
|
13
13
|
* Defines the steps of the Stepper.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
|
3
|
-
export
|
|
3
|
+
export type BaseStep = {
|
|
4
4
|
/**
|
|
5
5
|
* Defines the icon to display in the step.
|
|
6
6
|
* If omitted, the `index + 1` of the step will be displayed instead.
|
|
@@ -10,7 +10,7 @@ export interface BaseTab {
|
|
|
10
10
|
/** @ignore */
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type UrlMatcher = (tab: LinkTab, location: LocationSensorState) => boolean;
|
|
14
14
|
export interface LinkTab extends BaseTab {
|
|
15
15
|
to: string;
|
|
16
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
3
2
|
import type { DropdownMenuProps } from "@radix-ui/react-dropdown-menu";
|
|
4
3
|
import { type CollapsibleItemProps, type CollapsibleItemsExclusiveGroupProps, type CollapsibleItemsMultiGroupProps } from "./components/collapsible";
|
|
@@ -6,18 +5,18 @@ import { type CustomTriggerProps } from "./components/CustomTrigger";
|
|
|
6
5
|
import { type DefaultTriggerProps } from "./components/DefaultTrigger";
|
|
7
6
|
import { type ItemProps, type LinkItemProps, type RadioItemProps, type ToggleItemProps } from "./components/items";
|
|
8
7
|
import { type LabelProps } from "./components/Label";
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
8
|
+
export type MenuButtonProps = DropdownMenuProps;
|
|
9
|
+
export type MenuButtonCollapsibleItemProps = CollapsibleItemProps;
|
|
10
|
+
export type MenuButtonCollapsibleItemsExclusiveGroupProps = CollapsibleItemsExclusiveGroupProps;
|
|
11
|
+
export type MenuButtonCollapsibleItemsMultiGroupProps = CollapsibleItemsMultiGroupProps;
|
|
13
12
|
export { type MenuButtonContentProps } from "./components/Content";
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
13
|
+
export type MenuButtonCustomTriggerProps = CustomTriggerProps;
|
|
14
|
+
export type MenuButtonDefaultTriggerProps = DefaultTriggerProps;
|
|
15
|
+
export type MenuButtonItemProps = ItemProps;
|
|
16
|
+
export type MenuButtonLinkItemProps = LinkItemProps;
|
|
17
|
+
export type MenuButtonRadioItemProps = RadioItemProps;
|
|
18
|
+
export type MenuButtonToggleItemProps = ToggleItemProps;
|
|
19
|
+
export type MenuButtonLabelProps = LabelProps;
|
|
21
20
|
/**
|
|
22
21
|
* The `MenuButton` component helps users select an item from a list of available options.
|
|
23
22
|
*
|
|
@@ -26,7 +25,7 @@ export declare type MenuButtonLabelProps = LabelProps;
|
|
|
26
25
|
export declare const MenuButton: {
|
|
27
26
|
(props: MenuButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
CollapsibleItem: import("react").ForwardRefExoticComponent<CollapsibleItemProps & {
|
|
29
|
-
children?: import("react").ReactNode;
|
|
28
|
+
children?: import("react").ReactNode | undefined;
|
|
30
29
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
30
|
CollapsibleItemsMultipleGroup: import("react").FC<import("react").PropsWithChildren<CollapsibleItemsMultiGroupProps>>;
|
|
32
31
|
CollapsibleItemsSingleGroup: import("react").FC<import("react").PropsWithChildren<CollapsibleItemsExclusiveGroupProps>>;
|
|
@@ -34,16 +33,16 @@ export declare const MenuButton: {
|
|
|
34
33
|
CustomTrigger: import("react").ForwardRefExoticComponent<CustomTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
35
34
|
Divider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<HTMLDivElement>>;
|
|
36
35
|
Item: import("react").ForwardRefExoticComponent<import("./useMenuItemProps").BaseItemProps<HTMLDivElement> & DropdownMenu.DropdownMenuItemProps & {
|
|
37
|
-
startIcon?: import("../..").IconComponentType
|
|
38
|
-
variant?: "
|
|
36
|
+
startIcon?: import("../..").IconComponentType;
|
|
37
|
+
variant?: "default" | "destructive";
|
|
39
38
|
} & {
|
|
40
|
-
children?: import("react").ReactNode;
|
|
39
|
+
children?: import("react").ReactNode | undefined;
|
|
41
40
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
42
41
|
Label: import("react").FC<import("react").PropsWithChildren<DropdownMenu.DropdownMenuLabelProps>>;
|
|
43
42
|
LinkItem: import("react").FC<LinkItemProps>;
|
|
44
43
|
RadioGroup: import("react").ForwardRefExoticComponent<DropdownMenu.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
44
|
RadioItem: import("react").ForwardRefExoticComponent<Pick<DropdownMenu.DropdownMenuRadioItemProps, "value" | "defaultChecked"> & {
|
|
46
|
-
children?: import("react").ReactNode;
|
|
45
|
+
children?: import("react").ReactNode | undefined;
|
|
47
46
|
} & import("./useMenuItemProps").BaseItemProps<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
48
47
|
ToggleItem: import("react").FC<import("react").PropsWithChildren<ToggleItemProps>>;
|
|
49
48
|
Trigger: import("react").ForwardRefExoticComponent<DefaultTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type DropdownMenuContentProps } from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
export
|
|
2
|
+
export type MenuButtonContentProps = Omit<DropdownMenuContentProps, "asChild">;
|
|
4
3
|
export declare const Content: import("react").ForwardRefExoticComponent<MenuButtonContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DropdownMenuTriggerProps } from "@radix-ui/react-dropdown-menu";
|
|
3
|
-
export
|
|
2
|
+
export type CustomTriggerProps = Omit<DropdownMenuTriggerProps, "asChild">;
|
|
4
3
|
export declare const CustomTrigger: import("react").ForwardRefExoticComponent<CustomTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ButtonProps } from "../../../Actions";
|
|
3
|
-
export
|
|
2
|
+
export type DefaultTriggerProps = Omit<ButtonProps, "endIcon">;
|
|
4
3
|
export declare const DefaultTrigger: import("react").ForwardRefExoticComponent<DefaultTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type DropdownMenuLabelProps } from "@radix-ui/react-dropdown-menu";
|
|
2
2
|
import { type FC, type PropsWithChildren } from "react";
|
|
3
|
-
export
|
|
3
|
+
export type LabelProps = DropdownMenuLabelProps;
|
|
4
4
|
export declare const Label: FC<PropsWithChildren<LabelProps>>;
|
|
@@ -6,5 +6,5 @@ export interface CollapsibleItemProps {
|
|
|
6
6
|
onClick?: (evt: MouseEvent<HTMLElement>, name: string, expandedItems: readonly string[]) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const CollapsibleItem: import("react").ForwardRefExoticComponent<CollapsibleItemProps & {
|
|
9
|
-
children?: ReactNode;
|
|
9
|
+
children?: ReactNode | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLDivElement>>;
|