@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,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export let black: string;
|
|
2
|
+
export let white: string;
|
|
3
|
+
export let grey: {
|
|
4
4
|
950: string;
|
|
5
5
|
900: string;
|
|
6
6
|
800: string;
|
|
@@ -13,7 +13,7 @@ export const grey: {
|
|
|
13
13
|
100: string;
|
|
14
14
|
50: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export let pink: {
|
|
17
17
|
900: string;
|
|
18
18
|
800: string;
|
|
19
19
|
700: string;
|
|
@@ -25,7 +25,7 @@ export const pink: {
|
|
|
25
25
|
100: string;
|
|
26
26
|
50: string;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export let nebula: {
|
|
29
29
|
900: string;
|
|
30
30
|
800: string;
|
|
31
31
|
700: string;
|
|
@@ -36,7 +36,7 @@ export const nebula: {
|
|
|
36
36
|
200: string;
|
|
37
37
|
100: string;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export let xenon: {
|
|
40
40
|
900: string;
|
|
41
41
|
800: string;
|
|
42
42
|
700: string;
|
|
@@ -48,7 +48,7 @@ export const xenon: {
|
|
|
48
48
|
100: string;
|
|
49
49
|
50: string;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export let blue: {
|
|
52
52
|
900: string;
|
|
53
53
|
800: string;
|
|
54
54
|
700: string;
|
|
@@ -60,7 +60,7 @@ export const blue: {
|
|
|
60
60
|
100: string;
|
|
61
61
|
50: string;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export let green: {
|
|
64
64
|
900: string;
|
|
65
65
|
800: string;
|
|
66
66
|
700: string;
|
|
@@ -72,7 +72,7 @@ export const green: {
|
|
|
72
72
|
100: string;
|
|
73
73
|
50: string;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export let orange: {
|
|
76
76
|
900: string;
|
|
77
77
|
800: string;
|
|
78
78
|
700: string;
|
|
@@ -84,7 +84,7 @@ export const orange: {
|
|
|
84
84
|
100: string;
|
|
85
85
|
50: string;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export let red: {
|
|
88
88
|
900: string;
|
|
89
89
|
800: string;
|
|
90
90
|
700: string;
|
|
@@ -96,7 +96,7 @@ export const red: {
|
|
|
96
96
|
100: string;
|
|
97
97
|
50: string;
|
|
98
98
|
};
|
|
99
|
-
export
|
|
99
|
+
export let purple: {
|
|
100
100
|
900: string;
|
|
101
101
|
800: string;
|
|
102
102
|
700: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export = stl;
|
|
2
2
|
/** Convenience module that exports the preconfigured tagged template for the library */
|
|
3
|
-
declare const stl: (literals: TemplateStringsArray, ...placeholders: (string |
|
|
3
|
+
declare const stl: (literals: TemplateStringsArray, ...placeholders: (string | undefined | null | false)[]) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _exports: import(
|
|
1
|
+
declare const _exports: import("tailwindcss").Config;
|
|
2
2
|
export = _exports;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export let sidebar: number;
|
|
2
|
+
export let fullPageLayout: number;
|
|
3
|
+
export let modalOverlay: number;
|
|
4
|
+
export let modal: number;
|
|
5
|
+
export let popover: number;
|
|
6
|
+
export let dropdown: number;
|
|
7
|
+
export let notification: number;
|
|
8
|
+
export let tooltip: number;
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type ColorVariant = "accent" | "grey" | "green" | "blue" | "orange" | "red";
|
|
1
|
+
export type ColorVariant = "accent" | "grey" | "green" | "blue" | "orange" | "red";
|
|
3
2
|
/**
|
|
4
3
|
* Ensures at least one type is required
|
|
5
4
|
* See https://stackoverflow.com/a/48244432/5903923
|
|
6
5
|
*/
|
|
7
|
-
export
|
|
6
|
+
export type AtLeastOne<Type, Union = {
|
|
8
7
|
[Key in keyof Type]: Pick<Type, Key>;
|
|
9
8
|
}> = Partial<Type> & Union[keyof Union];
|
|
10
9
|
/**
|
|
11
10
|
* Makes an optional property required
|
|
12
11
|
* See https://bobbyhadz.com/blog/typescript-make-property-required
|
|
13
12
|
*/
|
|
14
|
-
export
|
|
13
|
+
export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
|
|
15
14
|
[Property in Key]-?: Type[Property];
|
|
16
15
|
};
|
|
17
16
|
/**
|
|
18
17
|
* Makes two types mutually exclusive
|
|
19
18
|
* https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
|
|
20
19
|
*/
|
|
21
|
-
|
|
20
|
+
type Without<Type, Union> = {
|
|
22
21
|
[Property in Exclude<keyof Type, keyof Union>]?: never;
|
|
23
22
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type XOR<Type, Union> = Type | Union extends object ? (Without<Type, Union> & Union) | (Without<Union, Type> & Type) : Type | Union;
|
|
24
|
+
export type SvgComponent = React.ComponentType<{
|
|
26
25
|
className?: string;
|
|
27
26
|
style?: {
|
|
28
27
|
[s: string]: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type AscendingArray<length extends number, accumulator extends Array<number> = []> = accumulator["length"] extends length ? accumulator : AscendingArray<length, [...accumulator, accumulator["length"]]>;
|
|
2
|
+
type ArrayToUnion<T extends Array<any>> = T[number];
|
|
3
3
|
/** example: `NumberUnion<3> = 1 | 2 | 3` */
|
|
4
|
-
export
|
|
4
|
+
export type NumberUnion<T extends number> = Exclude<ArrayToUnion<AscendingArray<T>>, 0> | T;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChangeEvent, Component } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type stateUpdater<State> = (state: State, name: string, newValue: any) => Partial<State>;
|
|
3
|
+
type changeHandler = (evt: ChangeEvent<any>) => void;
|
|
4
4
|
export declare function genericChangeHandler<State>(ctx: Component<any, State>, updater?: stateUpdater<State>): (name: string, attribute?: string) => changeHandler;
|
|
5
5
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isCssPropertySupported: <P extends
|
|
1
|
+
export declare const isCssPropertySupported: <P extends keyof Omit<CSSStyleDeclaration, "length" | "parentRule">>(prop: P, value: CSSStyleDeclaration[P]) => boolean;
|
|
@@ -4,4 +4,4 @@ import type { ReactNode } from "react";
|
|
|
4
4
|
* See https://reactjs.org/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
|
|
5
5
|
* @param child
|
|
6
6
|
*/
|
|
7
|
-
export declare const isRenderedChild: (child: ReactNode) =>
|
|
7
|
+
export declare const isRenderedChild: (child: ReactNode) => child is string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type LocationSubset = Pick<Location, "pathname">;
|
|
2
2
|
export declare const matchLocation: (href: string, location: LocationSubset) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnchorHTMLAttributes } from "react";
|
|
2
|
-
export
|
|
2
|
+
export type UseLinkPropsArgs = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target" | "rel" | "role" | "tabIndex"> & {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type UseLinkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "onClick" | "target" | "rel" | "role" | "tabIndex" | "aria-disabled">;
|
|
6
6
|
export declare const useLinkProps: (props: UseLinkPropsArgs) => UseLinkProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UseTimeoutFnReturn = [() => boolean | null, () => void, () => void];
|
|
2
2
|
export declare function useTimeoutFn(fn: () => void, ms?: number, setOnMount?: boolean): UseTimeoutFnReturn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MutableRefObject } from "react";
|
|
2
|
-
|
|
2
|
+
type InputValue = JSX.IntrinsicElements["input"]["value"];
|
|
3
3
|
/**
|
|
4
4
|
* Trigger a native input change event.
|
|
5
5
|
* See https://stackoverflow.com/questions/23892547/what-is-the-best-way-to-trigger-onchange-event-in-react-js
|
|
@@ -3,8 +3,8 @@ import type { FC, ReactNode } from "react";
|
|
|
3
3
|
import type { VariantProps } from "tailwind-variants";
|
|
4
4
|
import { accordionStyles } from "./Accordion.styles";
|
|
5
5
|
import type { IconComponentType } from "../../Icons";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type AccordionVariants = VariantProps<typeof accordionStyles>;
|
|
7
|
+
type AccordionSharedProps = {
|
|
8
8
|
/**
|
|
9
9
|
* The content of the `Accordion`.
|
|
10
10
|
*/
|
|
@@ -23,7 +23,7 @@ declare type AccordionSharedProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
variant?: AccordionVariants["variant"];
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type AccordionSingleProps = {
|
|
27
27
|
/**
|
|
28
28
|
* Whether a single or multiple items can be expanded at a time.
|
|
29
29
|
* @default false
|
|
@@ -49,7 +49,7 @@ declare type AccordionSingleProps = {
|
|
|
49
49
|
*/
|
|
50
50
|
collapsible?: boolean;
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
type AccordionMultipleProps = {
|
|
53
53
|
/**
|
|
54
54
|
* Whether a single or multiple items can be expanded at a time.
|
|
55
55
|
* @default false
|
|
@@ -74,8 +74,8 @@ declare type AccordionMultipleProps = {
|
|
|
74
74
|
*/
|
|
75
75
|
collapsible?: never;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
78
|
-
export
|
|
77
|
+
export type AccordionProps = AccordionSharedProps & (AccordionSingleProps | AccordionMultipleProps);
|
|
78
|
+
export type AccordionItemProps = {
|
|
79
79
|
/**
|
|
80
80
|
* Defines the content of the `AccordionItem`.
|
|
81
81
|
*/
|
|
@@ -93,7 +93,7 @@ export declare type AccordionItemProps = {
|
|
|
93
93
|
*/
|
|
94
94
|
disabled?: boolean;
|
|
95
95
|
};
|
|
96
|
-
export
|
|
96
|
+
export type AccordionHeaderProps = {
|
|
97
97
|
/**
|
|
98
98
|
* Defines the title of the `AccordionHeader`.
|
|
99
99
|
*/
|
|
@@ -140,7 +140,7 @@ export declare type AccordionHeaderProps = {
|
|
|
140
140
|
*/
|
|
141
141
|
triggerClassName?: string;
|
|
142
142
|
};
|
|
143
|
-
export
|
|
143
|
+
export type AccordionContentProps = {
|
|
144
144
|
/**
|
|
145
145
|
* Defines the content of the `AccordionContent`.
|
|
146
146
|
*/
|
|
@@ -150,7 +150,7 @@ export declare type AccordionContentProps = {
|
|
|
150
150
|
*/
|
|
151
151
|
className?: string;
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
type AccordionComponent = FC<AccordionProps> & {
|
|
154
154
|
Item: typeof AccordionItem;
|
|
155
155
|
Header: typeof AccordionHeader;
|
|
156
156
|
Content: typeof AccordionContent;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type PolymorphicButtonProps } from "./PolymorphicButton";
|
|
3
|
-
export
|
|
2
|
+
export type ButtonProps = Omit<PolymorphicButtonProps<"button">, "as" | "ref">;
|
|
4
3
|
/**
|
|
5
4
|
* The `Button` component is used to trigger user actions (like "Add", "Close" or "Save") or navigate users elsewhere through the links. It can contain a combination of a clear label and an icon while links are always text.
|
|
6
5
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ButtonBaseProps, PolymorphicComponentPropWithRef } from "./types";
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export type PolymorphicButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, ButtonBaseProps>;
|
|
4
|
+
type PolymorphicButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicButtonProps<C>) => React.ReactNode) & {
|
|
5
5
|
displayName?: string;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ButtonSize, ButtonVariant, PolymorphicComponentPropWithRef } from "./types";
|
|
3
2
|
import type { IconComponentType } from "../../Icons";
|
|
4
3
|
import type { TooltipWrapperBaseProps } from "../../Overlay/TooltipWrapper/types";
|
|
@@ -54,8 +53,8 @@ export interface IconButtonBaseProps {
|
|
|
54
53
|
*/
|
|
55
54
|
className?: string;
|
|
56
55
|
}
|
|
57
|
-
export
|
|
58
|
-
|
|
56
|
+
export type PolymorphicIconButtonProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, IconButtonBaseProps>;
|
|
57
|
+
type PolymorphicIconButtonComponent = (<C extends React.ElementType = "button">(props: PolymorphicIconButtonProps<C>) => React.ReactNode) & {
|
|
59
58
|
displayName?: string;
|
|
60
59
|
};
|
|
61
60
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
import type { IconComponentType } from "../../Icons";
|
|
3
|
-
export
|
|
3
|
+
export type ButtonVariant = "subtle" | "neutral" | "primary" | "destructive";
|
|
4
4
|
export declare const buttonSizes: readonly ["small", "medium", "large"];
|
|
5
|
-
export
|
|
5
|
+
export type ButtonSize = (typeof buttonSizes)[number];
|
|
6
6
|
export interface ButtonBaseProps {
|
|
7
7
|
/**
|
|
8
8
|
* The variant of the `Button`.
|
|
@@ -42,13 +42,13 @@ export interface ButtonBaseProps {
|
|
|
42
42
|
className?: string;
|
|
43
43
|
}
|
|
44
44
|
export declare function isButtonType(props: any): props is JSX.IntrinsicElements["button"];
|
|
45
|
-
|
|
45
|
+
type AsProp<C extends React.ElementType> = {
|
|
46
46
|
as?: C;
|
|
47
47
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export
|
|
48
|
+
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
49
|
+
type PolymorphicComponentProp<C extends React.ElementType, Props = object> = PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
50
|
+
export type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = object> = PolymorphicComponentProp<C, Props> & {
|
|
51
51
|
ref?: PolymorphicRef<C>;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
|
|
54
54
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { PolymorphicButtonProps } from "../../Actions/Button/PolymorphicButton";
|
|
3
|
-
export
|
|
2
|
+
export type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "ref"> & {
|
|
4
3
|
href: string;
|
|
5
4
|
withExternalLinkIcon?: boolean;
|
|
6
5
|
};
|
|
@@ -11,5 +10,5 @@ export declare type ButtonLinkProps = Omit<PolymorphicButtonProps<"a">, "as" | "
|
|
|
11
10
|
*/
|
|
12
11
|
export declare const ButtonLink: import("react").ForwardRefExoticComponent<Omit<PolymorphicButtonProps<"a">, "ref" | "as"> & {
|
|
13
12
|
href: string;
|
|
14
|
-
withExternalLinkIcon?: boolean
|
|
13
|
+
withExternalLinkIcon?: boolean;
|
|
15
14
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { PolymorphicIconButtonProps } from "../../Actions/Button/PolymorphicIconButton";
|
|
3
|
-
export
|
|
2
|
+
export type IconButtonProps = Omit<PolymorphicIconButtonProps<"button">, "as" | "ref">;
|
|
4
3
|
/**
|
|
5
4
|
* The `IconButton` component is used to trigger user actions (like "Add", "Close" or "Save"). It can only contain an icon.
|
|
6
5
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { PolymorphicIconButtonProps } from "../../Actions/Button/PolymorphicIconButton";
|
|
3
|
-
export
|
|
2
|
+
export type IconButtonLinkProps = Omit<PolymorphicIconButtonProps<"a">, "as" | "ref"> & {
|
|
4
3
|
href: string;
|
|
5
4
|
};
|
|
6
5
|
/**
|
|
@@ -2,7 +2,7 @@ import type { FC, MouseEvent } from "react";
|
|
|
2
2
|
import type { IconButtonProps } from "../../Actions/IconButton/IconButton";
|
|
3
3
|
import type { IconComponentType } from "../../Icons";
|
|
4
4
|
export declare const RESET_STATUS_DELAY = 100;
|
|
5
|
-
export
|
|
5
|
+
export type IconButtonWithFeedbackLocale = {
|
|
6
6
|
/**
|
|
7
7
|
* The tooltip message shown after a successful click.
|
|
8
8
|
* @default "Success"
|
|
@@ -19,7 +19,7 @@ export declare type IconButtonWithFeedbackLocale = {
|
|
|
19
19
|
*/
|
|
20
20
|
loading?: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type IconButtonWithFeedbackProps = Omit<IconButtonProps, "title" | "showTooltip" | "loading" | "onClick"> & {
|
|
23
23
|
/**
|
|
24
24
|
* The icon to display when the action succeeds.
|
|
25
25
|
* Set to `false` to disable the success icon.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export = segmentedControlPlugin;
|
|
2
2
|
declare const segmentedControlPlugin: {
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import type { ToggleProps } from "@radix-ui/react-toggle";
|
|
2
2
|
import type { PropsWithChildren } from "react";
|
|
3
3
|
import type { ToggleButtonBaseProps } from "./ToggleButtonBase";
|
|
4
|
-
export
|
|
4
|
+
export type ToggleButtonProps = PropsWithChildren<{
|
|
5
5
|
/**
|
|
6
6
|
* The pressed state of the `ToggleButton`.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import type { ButtonSize } from "../../Actions/Button/types";
|
|
3
3
|
import type { IconComponentType } from "../../Icons";
|
|
4
|
-
|
|
4
|
+
type IconOnlyToggleButtonBaseProps = {
|
|
5
5
|
/**
|
|
6
6
|
* The icon to display for the `ToggleButton`.
|
|
7
7
|
*/
|
|
@@ -11,7 +11,7 @@ declare type IconOnlyToggleButtonBaseProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
label: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type TextToggleButtonBaseProps = {
|
|
15
15
|
/**
|
|
16
16
|
* The icon to display for the `ToggleButton`.
|
|
17
17
|
*/
|
|
@@ -21,7 +21,7 @@ declare type TextToggleButtonBaseProps = {
|
|
|
21
21
|
*/
|
|
22
22
|
children: ReactNode;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type ToggleButtonBaseProps = {
|
|
25
25
|
/**
|
|
26
26
|
* The id of the `ToggleButton`.
|
|
27
27
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, PropsWithChildren } from "react";
|
|
2
2
|
import type { ToggleButtonBaseProps } from "../../Actions/ToggleButton/ToggleButtonBase";
|
|
3
|
-
|
|
3
|
+
type ToggleGroupSharedProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The class name of the `ToggleGroup`.
|
|
6
6
|
*/
|
|
@@ -11,7 +11,7 @@ declare type ToggleGroupSharedProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type ToggleGroupSingleProps<T extends string = string> = {
|
|
15
15
|
/**
|
|
16
16
|
* Defines whether a single or multiple items can be pressed at a time.
|
|
17
17
|
*/
|
|
@@ -31,7 +31,7 @@ declare type ToggleGroupSingleProps<T extends string = string> = {
|
|
|
31
31
|
*/
|
|
32
32
|
onChange?: (value: T) => void;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
type ToggleGroupMultipleProps<T extends string = string> = {
|
|
35
35
|
/**
|
|
36
36
|
* Defines whether a single or multiple items can be pressed at a time.
|
|
37
37
|
*/
|
|
@@ -51,11 +51,11 @@ declare type ToggleGroupMultipleProps<T extends string = string> = {
|
|
|
51
51
|
*/
|
|
52
52
|
onChange?: (value: T[]) => void;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
55
|
-
export
|
|
54
|
+
export type ToggleGroupProps<T extends string = string> = ToggleGroupSharedProps & (ToggleGroupSingleProps<T> | ToggleGroupMultipleProps<T>);
|
|
55
|
+
export type ToggleGroupComponent<T extends string = string> = FC<PropsWithChildren<ToggleGroupProps<T>>> & {
|
|
56
56
|
Item: FC<PropsWithChildren<ToggleGroupItemProps<T>>>;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type ToggleGroupItemProps<T extends string = string> = PropsWithChildren<ToggleButtonBaseProps & {
|
|
59
59
|
/** Defines a unique value for the item. */
|
|
60
60
|
value: T;
|
|
61
61
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import type { AccordionProps } from "../../Actions";
|
|
3
3
|
import type { IconComponentType } from "../../Icons";
|
|
4
|
-
export
|
|
4
|
+
export type ChatContextAccordionProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & Omit<AccordionProps, "multiple" | "defaultValue" | "value" | "onChange"> & {
|
|
5
5
|
/**
|
|
6
6
|
* The header of the accordion.
|
|
7
7
|
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
export type ChatContextContainerProps = PropsWithChildren<{
|
|
3
|
+
/**
|
|
4
|
+
* Class to apply to the root element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The content, ideally an actionable button, to render on the right side of the header.
|
|
9
|
+
*/
|
|
10
|
+
actions?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The title to display in the header.
|
|
13
|
+
*/
|
|
14
|
+
title?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The code language that represents the provided children, which will provide syntax highlighting if recognized.
|
|
17
|
+
*/
|
|
18
|
+
code?: string;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* The `ChatContextContainer` component wraps data with an actionable header. Intended for use with the chat interface.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ChatContextContainer: ({ className, title, actions, code, children }: ChatContextContainerProps) => import("react/jsx-runtime").JSX.Element;
|