@algolia/satellite 2.3.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 +16 -8
- package/dist/cjs/Actions/Accordion/Accordion.js +104 -57
- package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +170 -0
- package/dist/cjs/Actions/Accordion/Accordion.styles.js +57 -0
- 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/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
- 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/ChatMessage/ChatMessage.styles.d.ts +1 -1
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.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/TextArea/TextArea.tailwind.js +3 -3
- 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.d.ts +7 -0
- package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.js +11 -5
- package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
- package/dist/cjs/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
- 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/UserContent/UserContent.tailwind.js +1 -3
- 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/Illustrations/index.d.ts +7 -0
- package/dist/cjs/Illustrations/index.js +1254 -0
- 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/EmptyState.js +35 -2
- package/dist/cjs/Indicators/EmptyState/types.d.ts +7 -6
- 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/ModalFooter.js +2 -7
- 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/index.d.ts +1 -0
- package/dist/cjs/index.js +12 -0
- 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 +11 -5
- 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 +16 -8
- package/dist/esm/Actions/Accordion/Accordion.js +105 -58
- package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +170 -0
- package/dist/esm/Actions/Accordion/Accordion.styles.js +50 -0
- 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/ChatContextAccordion/ChatContextAccordion.styles.d.ts +4 -4
- 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/ChatMessage/ChatMessage.styles.d.ts +1 -1
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.d.ts +6 -6
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.d.ts +2 -2
- package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.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/TextArea/TextArea.tailwind.js +3 -3
- 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.d.ts +7 -0
- package/dist/esm/Helpers/MarkdownContent/MarkdownContent.js +11 -5
- package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.d.ts +1 -1
- package/dist/esm/Helpers/MarkdownContent/MarkdownContent.tailwind.js +2 -2
- 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/UserContent/UserContent.tailwind.js +1 -3
- 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/Illustrations/index.d.ts +7 -0
- package/dist/esm/Illustrations/index.js +1248 -0
- 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/EmptyState.js +35 -2
- package/dist/esm/Indicators/EmptyState/types.d.ts +7 -6
- 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/ModalFooter.js +2 -7
- 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/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- 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 +11 -5
- 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 +10 -10
|
@@ -40,8 +40,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
|
|
|
40
40
|
content: string;
|
|
41
41
|
}, undefined, {
|
|
42
42
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
43
|
-
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
44
43
|
leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
44
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
45
45
|
side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
46
46
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
47
47
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
@@ -120,8 +120,8 @@ export declare const chatMessageErrorStyles: import("tailwind-variants").TVRetur
|
|
|
120
120
|
footer: string;
|
|
121
121
|
}, undefined, {
|
|
122
122
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
123
|
-
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
124
123
|
leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
124
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
125
125
|
side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
126
126
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
127
127
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import type { ChatMessageProps } from "../../Chat/ChatMessage";
|
|
3
|
-
export
|
|
3
|
+
export type ChatMessageLoaderProps = Omit<HTMLAttributes<HTMLElement>, "children"> & Pick<ChatMessageProps, "rtl"> & {
|
|
4
4
|
/**
|
|
5
5
|
* Message to display in the loader.
|
|
6
6
|
* If not provided, no message will be shown.
|
|
@@ -12,7 +12,7 @@ export declare type ChatMessageLoaderProps = Omit<HTMLAttributes<HTMLElement>, "
|
|
|
12
12
|
*
|
|
13
13
|
* See the [ChatMessageLoader documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message-loader) for more information.
|
|
14
14
|
*/
|
|
15
|
-
export declare const ChatMessageLoader: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children"> & Pick<ChatMessageProps
|
|
15
|
+
export declare const ChatMessageLoader: import("react").ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children"> & Pick<ChatMessageProps, "rtl"> & {
|
|
16
16
|
/**
|
|
17
17
|
* Message to display in the loader.
|
|
18
18
|
* If not provided, no message will be shown.
|
|
@@ -67,8 +67,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
|
|
|
67
67
|
skeleton: string;
|
|
68
68
|
}, undefined, {
|
|
69
69
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
70
|
-
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
71
70
|
leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
71
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
72
72
|
side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
73
73
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
74
74
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
@@ -147,8 +147,8 @@ export declare const chatMessageLoaderStyles: import("tailwind-variants").TVRetu
|
|
|
147
147
|
footer: string;
|
|
148
148
|
}, undefined, {
|
|
149
149
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
150
|
-
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
151
150
|
leading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
151
|
+
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
152
152
|
side?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
153
153
|
actions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
154
154
|
autoHideActions?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
@@ -3,11 +3,11 @@ import type { ChatMessageProps } from "../../Chat/ChatMessage";
|
|
|
3
3
|
import type { ChatMessageErrorProps } from "../../Chat/ChatMessageError";
|
|
4
4
|
import type { ChatMessageLoaderProps } from "../../Chat/ChatMessageLoader";
|
|
5
5
|
import type { ChatMessageBase, ChatStatus } from "../../Chat/types";
|
|
6
|
-
export
|
|
6
|
+
export type ChatMessageLocale = {
|
|
7
7
|
scrollToBottomText?: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
type ChatMessageWithoutContent<Message extends ChatMessageBase> = Omit<ChatMessageProps<Message>, "content">;
|
|
10
|
+
export type ChatMessagesProps<Message extends ChatMessageBase = ChatMessageBase> = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
11
11
|
/**
|
|
12
12
|
* The messages to display in the chat.
|
|
13
13
|
*/
|
|
@@ -74,68 +74,7 @@ export declare type ChatMessagesProps<Message extends ChatMessageBase = ChatMess
|
|
|
74
74
|
*
|
|
75
75
|
* See the [ChatMessages documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-messages) for more information.
|
|
76
76
|
*/
|
|
77
|
-
export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props:
|
|
78
|
-
|
|
79
|
-
* The messages to display in the chat.
|
|
80
|
-
*/
|
|
81
|
-
messages: Message[];
|
|
82
|
-
/**
|
|
83
|
-
* The props for the user message.
|
|
84
|
-
*/
|
|
85
|
-
userMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* The props for the assistant message.
|
|
88
|
-
*/
|
|
89
|
-
assistantMessageProps?: ChatMessageWithoutContent<Message> | ((message: Message) => ChatMessageWithoutContent<Message>) | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* The props for the loader message.
|
|
92
|
-
*/
|
|
93
|
-
loaderProps?: ChatMessageLoaderProps | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* The props for the error message.
|
|
96
|
-
*/
|
|
97
|
-
errorProps?: Omit<ChatMessageErrorProps, "onReload"> | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* The function to render the message.
|
|
100
|
-
*/
|
|
101
|
-
renderMessage?: ((message: Message) => ReactNode) | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* The function to render the loader message.
|
|
104
|
-
*/
|
|
105
|
-
renderLoader?: ReactNode;
|
|
106
|
-
/**
|
|
107
|
-
* The function to render the error message.
|
|
108
|
-
*/
|
|
109
|
-
renderError?: ReactNode;
|
|
110
|
-
/**
|
|
111
|
-
* The status of the chat.
|
|
112
|
-
*/
|
|
113
|
-
status?: ChatStatus | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* The function to reload the chat.
|
|
116
|
-
*/
|
|
117
|
-
onReload?: (() => void) | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* Whether to hide the scroll to bottom button.
|
|
120
|
-
*/
|
|
121
|
-
hideScrollToBottom?: boolean | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* The class name for the scroll container.
|
|
124
|
-
*/
|
|
125
|
-
scrollClassName?: string | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* The class name for the content container.
|
|
128
|
-
*/
|
|
129
|
-
contentClassName?: string | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* The locale for the chat messages.
|
|
132
|
-
*/
|
|
133
|
-
locale?: ChatMessageLocale | undefined;
|
|
134
|
-
/**
|
|
135
|
-
* Whether to enable right-to-left text direction.
|
|
136
|
-
*/
|
|
137
|
-
rtl?: boolean | undefined;
|
|
138
|
-
} & {
|
|
139
|
-
ref?: Ref<HTMLDivElement> | undefined;
|
|
77
|
+
export declare const ChatMessages: <Message extends ChatMessageBase = ChatMessageBase>(props: ChatMessagesProps<Message> & {
|
|
78
|
+
ref?: Ref<HTMLDivElement>;
|
|
140
79
|
}) => ReactElement | null;
|
|
141
80
|
export {};
|
|
@@ -55,7 +55,6 @@ var ChatMessagesBase = function ChatMessagesBase(_ref, forwardedRef) {
|
|
|
55
55
|
var contextLocale = (0, _Satellite.useLocale)("chatMessage");
|
|
56
56
|
var locale = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_CHAT_MESSAGE_LOCALE), contextLocale), propsLocale);
|
|
57
57
|
var _useStickToBottom = (0, _useStickToBottom2.useStickToBottom)({
|
|
58
|
-
// @ts-expect-error - Types are wrong in use-stick-to-bottom
|
|
59
58
|
initial: "instant",
|
|
60
59
|
resize: "smooth"
|
|
61
60
|
}),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FormEvent, KeyboardEvent, ReactNode } from "react";
|
|
2
2
|
import type { ChatStatus } from "../../Chat/types";
|
|
3
3
|
import type { TextAreaAutoSizeProps } from "../../Fields/TextAreaAutoSize/TextAreaAutoSize";
|
|
4
|
-
export
|
|
4
|
+
export type ChatPromptLocale = {
|
|
5
5
|
textareaLabel?: string;
|
|
6
6
|
emptyMessageTooltip?: string;
|
|
7
7
|
stopResponseTooltip?: string;
|
|
8
8
|
sendMessageTooltip?: string;
|
|
9
9
|
disabledTooltip?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type ChatPromptProps = Omit<TextAreaAutoSizeProps, "onSubmit"> & {
|
|
12
12
|
/**
|
|
13
13
|
* Content to render above the textarea (e.g., a title or instructions).
|
|
14
14
|
*/
|
|
@@ -72,7 +72,7 @@ export declare const ChatPrompt: import("react").ForwardRefExoticComponent<Omit<
|
|
|
72
72
|
* If provided and non-empty, the component will use the dynamic, animated placeholder
|
|
73
73
|
* text instead of any static `placeholder` prop passed in.
|
|
74
74
|
*/
|
|
75
|
-
placeholders?: string[]
|
|
75
|
+
placeholders?: string[];
|
|
76
76
|
/**
|
|
77
77
|
* The current status of the chat prompt submit button:
|
|
78
78
|
* - "submitted": The message has been sent to the API and we're awaiting the start of the response stream.
|
|
@@ -80,26 +80,26 @@ export declare const ChatPrompt: import("react").ForwardRefExoticComponent<Omit<
|
|
|
80
80
|
* - "ready": The full response has been received and processed; a new user message can be submitted.
|
|
81
81
|
* - "error": An error occurred during the API request, preventing successful completion.
|
|
82
82
|
*/
|
|
83
|
-
status?: ChatStatus
|
|
83
|
+
status?: ChatStatus;
|
|
84
84
|
/**
|
|
85
85
|
* Whether to automatically focus the textarea when the user starts typing.
|
|
86
86
|
*/
|
|
87
|
-
autoFocusOnTyping?: boolean
|
|
87
|
+
autoFocusOnTyping?: boolean;
|
|
88
88
|
/**
|
|
89
89
|
* Whether to enable right-to-left (RTL) layout support.
|
|
90
90
|
*/
|
|
91
|
-
rtl?: boolean
|
|
91
|
+
rtl?: boolean;
|
|
92
92
|
/**
|
|
93
93
|
* Optional locale.
|
|
94
94
|
*/
|
|
95
|
-
locale?: ChatPromptLocale
|
|
95
|
+
locale?: ChatPromptLocale;
|
|
96
96
|
/**
|
|
97
97
|
* Callback invoked when the user submits the form, either by clicking
|
|
98
98
|
* the submit button or pressing Enter (without Shift) inside the textarea.
|
|
99
99
|
*/
|
|
100
|
-
onSubmit?: (
|
|
100
|
+
onSubmit?: (e: KeyboardEvent<HTMLTextAreaElement> | FormEvent<HTMLFormElement>) => void;
|
|
101
101
|
/**
|
|
102
102
|
* Callback invoked when the user requests to stop the current chat response stream.
|
|
103
103
|
*/
|
|
104
|
-
onStop?: (
|
|
104
|
+
onStop?: () => void;
|
|
105
105
|
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Check if the element is a textual element.
|
|
4
3
|
* @param el - The element to check.
|
|
5
4
|
* @returns True if the element is a textual element, false otherwise.
|
|
6
5
|
*/
|
|
7
6
|
export declare const isTextualElement: (el: HTMLElement) => boolean;
|
|
8
|
-
|
|
7
|
+
type Editable = HTMLTextAreaElement | HTMLInputElement | HTMLElement;
|
|
9
8
|
export interface UseFocusOnTypingOptions {
|
|
10
9
|
/**
|
|
11
10
|
* Whether the hook is enabled.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AiSdkMessage, AiSdkMessageV4, AiSdkMessageV5, ChatMessageWithSource } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if a message is in AI SDK v4.0 format.
|
|
4
|
+
* @param message - The message to check
|
|
5
|
+
* @returns True if the message is in v4.0 format (has string content property)
|
|
6
|
+
*/
|
|
7
|
+
export declare const isAiSdkMessageV4: (message: AiSdkMessage) => message is AiSdkMessageV4;
|
|
8
|
+
/**
|
|
9
|
+
* Type guard to check if a message is in AI SDK v5.0 format.
|
|
10
|
+
* @param message - The message to check
|
|
11
|
+
* @returns True if the message is in v5.0 format (has parts array)
|
|
12
|
+
*/
|
|
13
|
+
export declare const isAiSdkMessageV5: (message: AiSdkMessage) => message is AiSdkMessageV5;
|
|
14
|
+
/**
|
|
15
|
+
* Converts an AI SDK message (v4.0 or v5.0) to the universal ChatMessage format.
|
|
16
|
+
* For v4.0 messages, uses the content directly.
|
|
17
|
+
* For v5.0 messages, extracts text from parts and joins them.
|
|
18
|
+
* @param message - The AI SDK message to convert
|
|
19
|
+
* @returns A ChatMessage with the original message as source
|
|
20
|
+
*/
|
|
21
|
+
export declare function convertAiSdkMessage<T extends AiSdkMessage>(message: T): ChatMessageWithSource<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Converts an array of AI SDK messages to the universal ChatMessage format.
|
|
24
|
+
* Filters out v4.0 data messages and converts the rest using convertAiSdkMessage.
|
|
25
|
+
* @param messages - Array of AI SDK messages to convert
|
|
26
|
+
* @returns Array of converted ChatMessages
|
|
27
|
+
*/
|
|
28
|
+
export declare function convertAiSdkMessages<T extends AiSdkMessage>(messages: T[]): ChatMessageWithSource<T>[];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.convertAiSdkMessage = convertAiSdkMessage;
|
|
7
|
+
exports.convertAiSdkMessages = convertAiSdkMessages;
|
|
8
|
+
exports.isAiSdkMessageV5 = exports.isAiSdkMessageV4 = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* Type guard to check if a message is in AI SDK v4.0 format.
|
|
11
|
+
* @param message - The message to check
|
|
12
|
+
* @returns True if the message is in v4.0 format (has string content property)
|
|
13
|
+
*/
|
|
14
|
+
var isAiSdkMessageV4 = exports.isAiSdkMessageV4 = function isAiSdkMessageV4(message) {
|
|
15
|
+
return "content" in message && typeof message.content === "string";
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Type guard to check if a message is in AI SDK v5.0 format.
|
|
20
|
+
* @param message - The message to check
|
|
21
|
+
* @returns True if the message is in v5.0 format (has parts array)
|
|
22
|
+
*/
|
|
23
|
+
var isAiSdkMessageV5 = exports.isAiSdkMessageV5 = function isAiSdkMessageV5(message) {
|
|
24
|
+
return "parts" in message && Array.isArray(message.parts);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Converts an AI SDK message (v4.0 or v5.0) to the universal ChatMessage format.
|
|
29
|
+
* For v4.0 messages, uses the content directly.
|
|
30
|
+
* For v5.0 messages, extracts text from parts and joins them.
|
|
31
|
+
* @param message - The AI SDK message to convert
|
|
32
|
+
* @returns A ChatMessage with the original message as source
|
|
33
|
+
*/
|
|
34
|
+
function convertAiSdkMessage(message) {
|
|
35
|
+
var content;
|
|
36
|
+
if (isAiSdkMessageV4(message)) {
|
|
37
|
+
// V4: Use content directly
|
|
38
|
+
content = message.content;
|
|
39
|
+
} else if (isAiSdkMessageV5(message)) {
|
|
40
|
+
// V5: Extract text from parts
|
|
41
|
+
content = message.parts.filter(function (p) {
|
|
42
|
+
return p.type === "text";
|
|
43
|
+
}).map(function (p) {
|
|
44
|
+
return p.text;
|
|
45
|
+
}).join("");
|
|
46
|
+
} else {
|
|
47
|
+
content = "";
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
id: message.id,
|
|
51
|
+
role: message.role,
|
|
52
|
+
content: content,
|
|
53
|
+
source: message
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Converts an array of AI SDK messages to the universal ChatMessage format.
|
|
59
|
+
* Filters out v4.0 data messages and converts the rest using convertAiSdkMessage.
|
|
60
|
+
* @param messages - Array of AI SDK messages to convert
|
|
61
|
+
* @returns Array of converted ChatMessages
|
|
62
|
+
*/
|
|
63
|
+
function convertAiSdkMessages(messages) {
|
|
64
|
+
return messages.filter(function (m) {
|
|
65
|
+
return !isAiSdkMessageV4(m) || m.role !== "data";
|
|
66
|
+
}) // Skip v4 data messages
|
|
67
|
+
.map(convertAiSdkMessage);
|
|
68
|
+
}
|
package/dist/cjs/Chat/index.d.ts
CHANGED
|
@@ -7,9 +7,12 @@ export type { ChatPromptLocale as ExperimentalChatPromptLocale } from "./ChatPro
|
|
|
7
7
|
export { ChatPrompt as ExperimentalChatPrompt } from "./ChatPrompt";
|
|
8
8
|
export type { ChatContextAccordionProps as ExperimentalChatContextAccordionProps } from "./ChatContextAccordion";
|
|
9
9
|
export { ChatContextAccordion as ExperimentalChatContextAccordion } from "./ChatContextAccordion";
|
|
10
|
+
export type { ChatContextContainerProps as ExperimentalChatContextContainerProps } from "./ChatContextContainer";
|
|
11
|
+
export { ChatContextContainer as ExperimentalChatContextContainer } from "./ChatContextContainer";
|
|
10
12
|
export type { ChatMessageErrorLocale as ExperimentalChatMessageErrorLocale } from "./ChatMessageError";
|
|
11
13
|
export type { ChatMessageErrorProps as ExperimentalChatMessageErrorProps } from "./ChatMessageError";
|
|
12
14
|
export { ChatMessageError as ExperimentalChatMessageError } from "./ChatMessageError";
|
|
13
15
|
export type { ChatMessageLoaderProps as ExperimentalChatMessageLoaderProps } from "./ChatMessageLoader";
|
|
14
16
|
export { ChatMessageLoader as ExperimentalChatMessageLoader } from "./ChatMessageLoader";
|
|
15
|
-
export type { ChatMessageBase as ExperimentalChatMessageBase, ChatMessageRole as ExperimentalChatMessageRole, ChatStatus as ExperimentalChatStatus, } from "./types";
|
|
17
|
+
export type { ChatMessageBase as ExperimentalChatMessageBase, ChatMessageRole as ExperimentalChatMessageRole, ChatMessageWithSource as ExperimentalChatMessageWithSource, ChatStatus as ExperimentalChatStatus, } from "./types";
|
|
18
|
+
export { isAiSdkMessageV4 as experimentalIsAiSdkMessageV4, isAiSdkMessageV5 as experimentalIsAiSdkMessageV5, convertAiSdkMessage as experimentalConvertAiSdkMessage, convertAiSdkMessages as experimentalConvertAiSdkMessages, } from "./helpers";
|
package/dist/cjs/Chat/index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "ExperimentalChatContextAccordion", {
|
|
|
9
9
|
return _ChatContextAccordion.ChatContextAccordion;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "ExperimentalChatContextContainer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _ChatContextContainer.ChatContextContainer;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "ExperimentalChatMessage", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function get() {
|
|
@@ -39,9 +45,35 @@ Object.defineProperty(exports, "ExperimentalChatPrompt", {
|
|
|
39
45
|
return _ChatPrompt.ChatPrompt;
|
|
40
46
|
}
|
|
41
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "experimentalConvertAiSdkMessage", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _helpers.convertAiSdkMessage;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "experimentalConvertAiSdkMessages", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _helpers.convertAiSdkMessages;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "experimentalIsAiSdkMessageV4", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _helpers.isAiSdkMessageV4;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "experimentalIsAiSdkMessageV5", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _helpers.isAiSdkMessageV5;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
42
72
|
var _ChatMessage = require("./ChatMessage");
|
|
43
73
|
var _ChatMessages = require("./ChatMessages");
|
|
44
74
|
var _ChatPrompt = require("./ChatPrompt");
|
|
45
75
|
var _ChatContextAccordion = require("./ChatContextAccordion");
|
|
76
|
+
var _ChatContextContainer = require("./ChatContextContainer");
|
|
46
77
|
var _ChatMessageError = require("./ChatMessageError");
|
|
47
|
-
var _ChatMessageLoader = require("./ChatMessageLoader");
|
|
78
|
+
var _ChatMessageLoader = require("./ChatMessageLoader");
|
|
79
|
+
var _helpers = require("./helpers");
|
package/dist/cjs/Chat/types.d.ts
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type ChatMessageRole = "system" | "user" | "assistant";
|
|
2
|
+
export type ChatStatus = "submitted" | "streaming" | "ready" | "error";
|
|
3
|
+
export type ChatMessageBase = {
|
|
4
4
|
id: string;
|
|
5
5
|
role: ChatMessageRole;
|
|
6
6
|
content: string;
|
|
7
7
|
};
|
|
8
|
+
export type ChatMessageWithSource<TSource = unknown> = ChatMessageBase & {
|
|
9
|
+
source: TSource;
|
|
10
|
+
};
|
|
11
|
+
export type AiSdkMessageV4 = {
|
|
12
|
+
id: string;
|
|
13
|
+
role: "system" | "user" | "assistant" | "data";
|
|
14
|
+
content: string;
|
|
15
|
+
data?: unknown;
|
|
16
|
+
};
|
|
17
|
+
export type AiSdkMessagePart = {
|
|
18
|
+
type: string;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
export type AiSdkMessageV5 = {
|
|
22
|
+
id: string;
|
|
23
|
+
role: "system" | "user" | "assistant";
|
|
24
|
+
parts: AiSdkMessagePart[];
|
|
25
|
+
};
|
|
26
|
+
export type AiSdkMessage = AiSdkMessageV4 | AiSdkMessageV5;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AutoCompleteProps, Option } from "./types";
|
|
3
|
-
|
|
2
|
+
type AutoCompleteComponent = (<O extends Option = Option>(props: AutoCompleteProps<O>) => React.ReactElement | null) & {
|
|
4
3
|
displayName?: string;
|
|
5
4
|
};
|
|
6
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export = autoCompletePlugin;
|
|
2
2
|
declare const autoCompletePlugin: {
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { AutoCompleteLocale } from "../../../Fields/AutoComplete/types";
|
|
3
|
-
|
|
3
|
+
type AutoCompleteContextType = {
|
|
4
4
|
locale: Required<AutoCompleteLocale>;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type AutoCompleteProviderProps = PropsWithChildren<AutoCompleteContextType>;
|
|
7
7
|
export declare const AutoCompleteProvider: FC<AutoCompleteProviderProps>;
|
|
8
8
|
export declare const useIsInsideAutoComplete: () => boolean;
|
|
9
9
|
export declare const useAutoCompleteLocale: () => Required<AutoCompleteLocale>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC } from "react";
|
|
2
2
|
import type { AutoCompleteLocale, OptionItemProps } from "../../../Fields/AutoComplete/types";
|
|
3
|
-
export
|
|
3
|
+
export type DefaultOptionItemProps = OptionItemProps & {
|
|
4
4
|
locale?: AutoCompleteLocale;
|
|
5
5
|
};
|
|
6
6
|
export declare const DefaultOptionItem: FC<DefaultOptionItemProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { UseMultipleSelectionStateChangeTypes } from "downshift";
|
|
2
2
|
import type { ComponentType, FocusEventHandler, ForwardedRef, PropsWithChildren, ReactNode, RefObject } from "react";
|
|
3
3
|
import type { IconComponentType } from "../../Icons";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type AutoCompleteVariant = "medium" | "large";
|
|
5
|
+
export type AutoCompleteLocale = {
|
|
6
6
|
emptyStateTitle?: string;
|
|
7
7
|
clearInputButton?: string;
|
|
8
8
|
selectionMessage?: (optionName: string, option: Option | null) => string;
|
|
@@ -174,8 +174,8 @@ export interface AutoCompleteSingleProps<T extends Option = Option> extends Auto
|
|
|
174
174
|
*/
|
|
175
175
|
onChange: (option: T | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
export
|
|
177
|
+
type UseMultipleSelectionStateChangeTypesKey = keyof typeof UseMultipleSelectionStateChangeTypes;
|
|
178
|
+
export type AutoCompleteChangeTypesValue = (typeof UseMultipleSelectionStateChangeTypes)[UseMultipleSelectionStateChangeTypesKey];
|
|
179
179
|
export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoCompleteBaseProps<T> {
|
|
180
180
|
/**
|
|
181
181
|
* Whether the `AutoComplete` is a multiple selection.
|
|
@@ -190,8 +190,8 @@ export interface AutoCompleteMultiProps<T extends Option = Option> extends AutoC
|
|
|
190
190
|
*/
|
|
191
191
|
onChange: (option: T[] | null, changeType?: AutoCompleteChangeTypesValue) => void;
|
|
192
192
|
}
|
|
193
|
-
export
|
|
194
|
-
|
|
193
|
+
export type AutoCompleteProps<T extends Option = Option> = AutoCompleteMultiProps<T> | AutoCompleteSingleProps<T>;
|
|
194
|
+
type OptionsValue = string | number | boolean;
|
|
195
195
|
export interface Option {
|
|
196
196
|
/**
|
|
197
197
|
* The value of the `Option`.
|
|
@@ -224,7 +224,7 @@ export interface OptionItemProps<T extends Option = Option> {
|
|
|
224
224
|
inputValue: string;
|
|
225
225
|
highlighted: boolean;
|
|
226
226
|
}
|
|
227
|
-
export
|
|
227
|
+
export type OptionItemComponentType<T extends Option = Option> = ComponentType<PropsWithChildren<OptionItemProps<T>>>;
|
|
228
228
|
export interface OptionRendererParams {
|
|
229
229
|
multiple: boolean;
|
|
230
230
|
inputValue: string;
|
|
@@ -234,5 +234,5 @@ export interface RenderValueTemplateArgs<T extends Option = Option> {
|
|
|
234
234
|
option: T;
|
|
235
235
|
editable: boolean;
|
|
236
236
|
}
|
|
237
|
-
export
|
|
237
|
+
export type CreateFromInputValue<T extends Option = Option> = (options: T[] | undefined, inputValue: string) => Option[];
|
|
238
238
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes, InputHTMLAttributes } from "react";
|
|
2
|
-
|
|
2
|
+
type CheckboxCustomProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The text position of the `Checkbox`.
|
|
5
5
|
* @default right
|
|
@@ -15,8 +15,8 @@ declare type CheckboxCustomProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
checkedColor?: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
export
|
|
18
|
+
type CheckboxInputProps = Omit<HTMLAttributes<HTMLInputElement>, "onChange"> & Pick<InputHTMLAttributes<HTMLInputElement>, "onChange" | "required" | "autoFocus" | "disabled" | "checked" | "defaultChecked" | "name">;
|
|
19
|
+
export type CheckboxProps = CheckboxInputProps & CheckboxCustomProps;
|
|
20
20
|
/**
|
|
21
21
|
* The `Checkbox` component is a control that allows single or multiple selections from a set of options.
|
|
22
22
|
*
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DatePickerProps } from "../../Fields/DatePicker";
|
|
3
2
|
import type { InputProps } from "../../Fields/Input";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type DateInputValue = Date | null;
|
|
4
|
+
export type DateInputLocale = {
|
|
6
5
|
tooltip?: (open: boolean) => string;
|
|
7
6
|
};
|
|
8
7
|
export interface DateInputProps extends Omit<InputProps, "type" | "defaultValue" | "value" | "onChange" | "locale" | "endItem"> {
|
|
@@ -20,7 +20,7 @@ export interface DatePickerResetAction {
|
|
|
20
20
|
type: DatePickerActionTypes.reset;
|
|
21
21
|
payload: Date;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type DatePickerReducerAction = DatePickerShowAction | DatePickerDateSelectAction | DatePickerApplyAction | DatePickerResetAction;
|
|
24
24
|
export interface DatePickerReducerState {
|
|
25
25
|
show: boolean;
|
|
26
26
|
selected: Date | null;
|
|
@@ -44,7 +44,7 @@ export interface DateRangePickerCancelAction {
|
|
|
44
44
|
export interface DateRangePickerResetAction {
|
|
45
45
|
type: DateRangePickerActionTypes.reset;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type DateRangePickerReducerAction = DateRangePickerShowAction | DateRangePickerDateSelectAction | DateRangePickerRangeSelectAction | DateRangePickerMouseEnterAction | DateRangePickerMouseLeaveAction | DateRangePickerApplyAction | DateRangePickerCancelAction | DateRangePickerResetAction;
|
|
48
48
|
export interface DateRangePickerReducerState {
|
|
49
49
|
show: boolean;
|
|
50
50
|
candidateRange: DateRangePickerTimeRange;
|
|
@@ -10,7 +10,7 @@ export interface DateRangePickerCompleteTimeRange {
|
|
|
10
10
|
start: Date;
|
|
11
11
|
end: Date;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type DateRangePickerTimeRange = DateRangePickerEmptyTimeRange | DateRangePickerPartialTimeRange | DateRangePickerCompleteTimeRange;
|
|
14
14
|
export declare const isEmptyTimeRange: (range: any) => range is DateRangePickerEmptyTimeRange;
|
|
15
15
|
export declare const isCompleteTimeRange: (range: any) => range is DateRangePickerCompleteTimeRange;
|
|
16
16
|
export declare const isPartialTimeRange: (range: any) => range is DateRangePickerPartialTimeRange;
|
|
@@ -2,15 +2,15 @@ import type { FC } from "react";
|
|
|
2
2
|
import type { DayPickerDefaultProps, DayPickerRangeProps, DayPickerSingleProps } from "react-day-picker";
|
|
3
3
|
import type { DatePickerLocale } from "../../../Fields/DatePicker/types";
|
|
4
4
|
import type { WithRequiredProperty } from "../../../types";
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
type ExcludedDayPickerProps = "captionElement" | "showOutsideDays" | "enableOutsideDaysClick" | "fixedWeeks" | "labels" | "navbarElement" | "onTodayButtonClick" | "pagedNavigation" | "renderDay" | "renderWeek" | "reverseMonths" | "showWeekNumber" | "showWeekDays" | "weekdayElement" | "weekdaysLong" | "weekdaysShort";
|
|
6
|
+
export type EditableYearProps = {
|
|
7
7
|
editableYear?: false;
|
|
8
8
|
} | {
|
|
9
9
|
editableYear: true;
|
|
10
10
|
years?: number[];
|
|
11
11
|
initialDate?: Date;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type DatePickerCalendarProps = Omit<Omit<DayPickerSingleProps | DayPickerRangeProps | DayPickerDefaultProps, "locale">, ExcludedDayPickerProps> & EditableYearProps & {
|
|
14
14
|
locale: WithRequiredProperty<DatePickerLocale, "nextMonth" | "previousMonth">;
|
|
15
15
|
};
|
|
16
16
|
export declare const DatePickerCalendar: FC<DatePickerCalendarProps>;
|