altum 0.0.7 → 0.0.9
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/CHANGELOG.md +17 -1
- package/README.md +1 -1
- package/dist/base/ChartBase/ChartBase.js +1 -1
- package/dist/base/ChartBase/ChartBase.module.css.js +1 -1
- package/dist/base/ChartBase/ChartCartesian.js +1 -1
- package/dist/base/ChartBase/ChartHoverBubble.js +1 -1
- package/dist/base/ChartBase/ChartHoverBubble.module.css.js +1 -1
- package/dist/base/ChartBase/ChartLegend.js +1 -1
- package/dist/base/ChartBase/ChartLegend.module.css.js +1 -1
- package/dist/base/ChartBase/ChartPlot.module.css.js +1 -1
- package/dist/base/ChartBase/ChartYGrid.js +1 -1
- package/dist/base/ChartBase/useChartWidth.js +1 -1
- package/dist/base/Flex/Flex.js +1 -1
- package/dist/base/Flex/Flex.module.css.js +1 -1
- package/dist/base/PeriodHeader/PeriodHeader.js +1 -1
- package/dist/base/SelectionGroup/SelectionGroup.js +1 -0
- package/dist/base/SelectionGroup/SelectionGroup.module.css.js +1 -0
- package/dist/base/SelectionGroup/SelectionGroup.utils.js +1 -0
- package/dist/base/SelectionGroup/useSelectionRoot.js +1 -0
- package/dist/base/ToggleControlBase/ToggleControlBase.js +1 -1
- package/dist/base/ToggleControlBase/ToggleControlBase.module.css.js +1 -1
- package/dist/base/ToggleGroupBase/ToggleGroupBase.js +1 -1
- package/dist/base/Typography/Typography.js +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.module.css.js +1 -1
- package/dist/components/ActionList/ActionItem.js +1 -0
- package/dist/components/ActionList/ActionItem.module.css.js +1 -0
- package/dist/components/ActionList/ActionList.js +1 -1
- package/dist/components/ActionList/ActionList.module.css.js +1 -1
- package/dist/components/ActionList/actionListFilter.js +1 -0
- package/dist/components/ActionSheetTrigger/ActionSheetTrigger.js +1 -1
- package/dist/components/ActionSheetTrigger/ActionSheetTrigger.module.css.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.module.css.js +1 -1
- package/dist/components/AspectRatio/AspectRatio.js +1 -1
- package/dist/components/AspectRatio/AspectRatio.module.css.js +1 -1
- package/dist/components/Attachment/Attachment.js +1 -1
- package/dist/components/Attachment/Attachment.module.css.js +1 -1
- package/dist/components/AutocompleteField/AutocompleteField.js +1 -0
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.module.css.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.module.css.js +1 -1
- package/dist/components/BarChart/BarChart.js +1 -1
- package/dist/components/BarChart/BarChart.module.css.js +1 -1
- package/dist/components/Box/Box.js +1 -1
- package/dist/components/Box/Box.module.css.js +1 -1
- package/dist/components/Bubble/Bubble.js +1 -1
- package/dist/components/Bubble/Bubble.module.css.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.module.css.js +1 -1
- package/dist/components/Button/overlayCloseControl.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.module.css.js +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.js +1 -1
- package/dist/components/Calendar/Calendar.context.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/Calendar.module.css.js +1 -1
- package/dist/components/Calendar/Calendar.slots.js +1 -1
- package/dist/components/Calendar/Calendar.utils.js +1 -1
- package/dist/components/Calendar/Calendar.views.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Event.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Event.module.css.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.MonthView.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Schedule.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Schedule.module.css.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.Schedule.utils.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.ScheduleView.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.TaskChip.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.YearView.js +2 -2
- package/dist/components/CalendarBoard/CalendarBoard.chrome.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.context.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.module.css.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.utils.js +1 -1
- package/dist/components/CalendarBoard/CalendarBoard.views.js +1 -1
- package/dist/components/CalendarBoard/calendar.schedule.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.module.css.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.module.css.js +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.module.css.js +1 -1
- package/dist/components/Collapse/Collapse.js +1 -1
- package/dist/components/Collapse/Collapse.module.css.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.module.css.js +1 -1
- package/dist/components/CommandPalette/CommandPalette.js +1 -1
- package/dist/components/CommandPalette/CommandPalette.module.css.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.module.css.js +1 -1
- package/dist/components/DateField/DateField.js +1 -1
- package/dist/components/DateField/DateField.module.css.js +1 -0
- package/dist/components/DateRangeField/DateRangeField.js +1 -1
- package/dist/components/DateRangeField/DateRangeField.module.css.js +1 -1
- package/dist/components/DayStripCalendar/DayStripCalendar.js +1 -1
- package/dist/components/DayStripCalendar/DayStripCalendar.module.css.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.module.css.js +1 -1
- package/dist/components/DialogLayout/DialogLayout.js +1 -1
- package/dist/components/DialogLayout/DialogLayout.module.css.js +1 -1
- package/dist/components/DonutChart/DonutChart.js +1 -1
- package/dist/components/DonutChart/DonutChart.module.css.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.module.css.js +1 -1
- package/dist/components/EmptyState/EmptyState.js +1 -1
- package/dist/components/EmptyState/EmptyState.module.css.js +1 -1
- package/dist/components/FieldGroup/FieldGroup.js +1 -1
- package/dist/components/FieldGroup/FieldGroup.module.css.js +1 -1
- package/dist/components/FieldLabel/FieldLabel.js +1 -1
- package/dist/components/FieldLabel/FieldLabel.module.css.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.module.css.js +1 -1
- package/dist/components/FileList/FileList.js +1 -1
- package/dist/components/FileList/FileList.module.css.js +1 -1
- package/dist/components/FileUploader/FileUploader.js +1 -0
- package/dist/components/FileUploader/FileUploader.module.css.js +1 -0
- package/dist/components/FormMessage/FormMessage.js +1 -1
- package/dist/components/Gap/Gap.js +1 -0
- package/dist/components/Gap/Gap.module.css.js +1 -0
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/Grid/Grid.module.css.js +1 -1
- package/dist/components/ImageCrop/ImageCrop.js +1 -1
- package/dist/components/ImageCrop/ImageCrop.module.css.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.module.css.js +1 -1
- package/dist/components/ImageLightbox/ImageLightbox.js +1 -1
- package/dist/components/ImageLightbox/ImageLightbox.module.css.js +1 -1
- package/dist/components/Item/Item.js +1 -1
- package/dist/components/Item/Item.module.css.js +1 -1
- package/dist/components/Kbd/Kbd.js +1 -1
- package/dist/components/Kbd/Kbd.module.css.js +1 -1
- package/dist/components/Layout/ControlRow.js +1 -1
- package/dist/components/Layout/Inline.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/Layout.module.css.js +1 -1
- package/dist/components/Layout/LayoutItem.js +1 -1
- package/dist/components/Layout/LayoutItem.module.css.js +1 -0
- package/dist/components/Layout/Split.js +1 -1
- package/dist/components/Layout/Stack.js +1 -1
- package/dist/components/LineChart/LineChart.js +1 -1
- package/dist/components/LineChart/LineChart.module.css.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/Link/Link.module.css.js +1 -1
- package/dist/components/Listbox/Listbox.js +1 -1
- package/dist/components/Listbox/Listbox.module.css.js +1 -1
- package/dist/components/Listbox/Listbox.utils.js +1 -0
- package/dist/components/Listbox/ListboxGroup.js +1 -0
- package/dist/components/Listbox/ListboxRow.js +1 -0
- package/dist/components/LiveRegion/LiveRegion.js +1 -1
- package/dist/components/LocaleProvider/LocaleProvider.js +1 -1
- package/dist/components/Marker/Marker.js +1 -1
- package/dist/components/Marker/Marker.module.css.js +1 -1
- package/dist/components/MaskedField/MaskedField.js +1 -1
- package/dist/components/MaskedField/MaskedField.module.css.js +1 -1
- package/dist/components/MaskedField/MaskedField.utils.js +1 -1
- package/dist/components/Media/Media.js +1 -1
- package/dist/components/Media/Media.module.css.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/Menu.module.css.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/Modal.module.css.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -0
- package/dist/components/MultiSelect/MultiSelect.module.css.js +1 -0
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/toast.js +1 -1
- package/dist/components/Notification/toast.utils.js +1 -0
- package/dist/components/NumberField/NumberField.js +1 -1
- package/dist/components/NumberField/NumberField.module.css.js +1 -1
- package/dist/components/Overflow/Overflow.js +1 -1
- package/dist/components/Overflow/Overflow.module.css.js +1 -1
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Overlay/Overlay.module.css.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.module.css.js +1 -1
- package/dist/components/PasswordField/PasswordField.js +1 -1
- package/dist/components/PasswordField/PasswordField.module.css.js +1 -1
- package/dist/components/PinInput/PinInput.js +1 -1
- package/dist/components/PinInput/PinInput.module.css.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/Popover.module.css.js +1 -1
- package/dist/components/PopupSwitch/PopupSwitch.js +1 -1
- package/dist/components/PopupSwitch/PopupSwitch.module.css.js +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Progress/Progress.module.css.js +1 -1
- package/dist/components/Progress/Progress.utils.js +1 -0
- package/dist/components/PullToRefresh/PullToRefresh.js +1 -1
- package/dist/components/PullToRefresh/PullToRefresh.module.css.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/Radio.module.css.js +1 -1
- package/dist/components/Rating/Rating.js +1 -1
- package/dist/components/Rating/Rating.module.css.js +1 -1
- package/dist/components/RelativeTime/RelativeTime.js +1 -1
- package/dist/components/SafeArea/SafeArea.js +1 -1
- package/dist/components/SafeArea/SafeArea.module.css.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +1 -1
- package/dist/components/ScrollArea/ScrollArea.module.css.js +1 -1
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.module.css.js +1 -0
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.module.css.js +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Separator/Separator.module.css.js +1 -1
- package/dist/components/Sheet/Sheet.js +1 -1
- package/dist/components/Sheet/Sheet.module.css.js +1 -1
- package/dist/components/Sidebar/Sidebar.js +1 -1
- package/dist/components/Sidebar/Sidebar.module.css.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.module.css.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.module.css.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.module.css.js +1 -1
- package/dist/components/SortableList/SortableList.drag.js +1 -0
- package/dist/components/SortableList/SortableList.js +1 -1
- package/dist/components/SortableList/SortableList.module.css.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.module.css.js +1 -1
- package/dist/components/StatBadge/StatBadge.js +1 -1
- package/dist/components/StatBadge/StatBadge.module.css.js +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/Steps/Steps.module.css.js +1 -1
- package/dist/components/SuggestField/SuggestField.js +1 -1
- package/dist/components/SwipeToAction/SwipeActionButtons.js +1 -1
- package/dist/components/SwipeToAction/SwipeToAction.js +1 -1
- package/dist/components/SwipeToAction/SwipeToAction.module.css.js +1 -1
- package/dist/components/SwipeToAction/SwipeToAction.utils.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.module.css.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.module.css.js +1 -1
- package/dist/components/Table/Table.utils.js +1 -0
- package/dist/components/Table/TableRow.js +1 -1
- package/dist/components/Table/TableRowActions.js +1 -1
- package/dist/components/Table/TableView.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.module.css.js +1 -1
- package/dist/components/Tabs/Tabs.utils.js +1 -0
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Text/Text.module.css.js +1 -1
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/TextField/TextField.module.css.js +1 -1
- package/dist/components/TextareaField/TextareaField.js +1 -1
- package/dist/components/TextareaField/TextareaField.module.css.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.module.css.js +1 -1
- package/dist/components/TimeField/TimeField.js +1 -1
- package/dist/components/TimeField/TimeField.module.css.js +1 -0
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/Timeline.module.css.js +1 -1
- package/dist/components/Title/Title.js +1 -1
- package/dist/components/Title/Title.module.css.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.module.css.js +1 -1
- package/dist/components/UploadZone/UploadZone.js +1 -1
- package/dist/components/UploadZone/UploadZone.module.css.js +1 -1
- package/dist/components/VirtualList/VirtualList.js +1 -1
- package/dist/components/VirtualList/VirtualList.module.css.js +1 -1
- package/dist/components/VirtualList/VirtualList.utils.js +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/components/WheelTimePicker/WheelTimePicker.js +1 -1
- package/dist/components/WheelTimePicker/WheelTimePicker.module.css.js +1 -1
- package/dist/core/utils/bundle.js +1 -0
- package/dist/core/utils/cssShrinkTokens.js +1 -0
- package/dist/core/utils/date.js +1 -0
- package/dist/core/utils/dom.js +1 -0
- package/dist/core/utils/form.js +1 -0
- package/dist/core/utils/injectCss.js +1 -0
- package/dist/core/utils/keyboard.js +1 -0
- package/dist/core/utils/keyboardShortcut.js +1 -0
- package/dist/core/utils/listboxOptions.js +1 -0
- package/dist/core/utils/math.js +1 -0
- package/dist/core/utils/popover.js +1 -0
- package/dist/core/utils/slot.js +1 -0
- package/dist/core/utils/spacing.js +1 -0
- package/dist/core/utils/transform.js +1 -0
- package/dist/core/utils/useFallbackId.js +1 -0
- package/dist/core/utils/visitElementTree.js +1 -0
- package/dist/entries/hooks.js +1 -1
- package/dist/entries/icons.js +1 -1
- package/dist/entries/utils.js +1 -1
- package/dist/hooks/useFormProvider.js +1 -1
- package/dist/hooks/useNow.js +1 -1
- package/dist/hooks/useRovingList.js +1 -1
- package/dist/icons/IconBase.js +1 -0
- package/dist/icons/icons/IconAlarm.js +1 -1
- package/dist/icons/icons/IconAlignCenter.js +1 -1
- package/dist/icons/icons/IconAlignJustify.js +1 -1
- package/dist/icons/icons/IconAlignLeft.js +1 -1
- package/dist/icons/icons/IconAlignRight.js +1 -1
- package/dist/icons/icons/IconAnchor.js +1 -1
- package/dist/icons/icons/IconArchive.js +1 -1
- package/dist/icons/icons/IconArrowDown.js +1 -1
- package/dist/icons/icons/IconArrowLeft.js +1 -1
- package/dist/icons/icons/IconArrowRight.js +1 -1
- package/dist/icons/icons/IconArrowThinDown.js +1 -1
- package/dist/icons/icons/IconArrowThinLeft.js +1 -1
- package/dist/icons/icons/IconArrowThinRight.js +1 -1
- package/dist/icons/icons/IconArrowThinUp.js +1 -1
- package/dist/icons/icons/IconArrowUp.js +1 -1
- package/dist/icons/icons/IconArticle.js +1 -1
- package/dist/icons/icons/IconBackspace.js +1 -1
- package/dist/icons/icons/IconBasket.js +1 -1
- package/dist/icons/icons/IconBasketball.js +1 -1
- package/dist/icons/icons/IconBatteryEmpty.js +1 -1
- package/dist/icons/icons/IconBatteryFull.js +1 -1
- package/dist/icons/icons/IconBatteryLow.js +1 -1
- package/dist/icons/icons/IconBatteryMedium.js +1 -1
- package/dist/icons/icons/IconBell.js +1 -1
- package/dist/icons/icons/IconBlog.js +1 -1
- package/dist/icons/icons/IconBluetooth.js +1 -1
- package/dist/icons/icons/IconBold.js +1 -1
- package/dist/icons/icons/IconBookmark.js +1 -1
- package/dist/icons/icons/IconBookmarks.js +1 -1
- package/dist/icons/icons/IconBox.js +1 -1
- package/dist/icons/icons/IconBriefcase.js +1 -1
- package/dist/icons/icons/IconBrightnessLow.js +1 -1
- package/dist/icons/icons/IconBrightnessMax.js +1 -1
- package/dist/icons/icons/IconBrightnessMedium.js +1 -1
- package/dist/icons/icons/IconBroadcast.js +1 -1
- package/dist/icons/icons/IconBrowser.js +1 -1
- package/dist/icons/icons/IconBrowserUpload.js +1 -1
- package/dist/icons/icons/IconBrush.js +1 -1
- package/dist/icons/icons/IconCalendar.js +1 -1
- package/dist/icons/icons/IconCamcorder.js +1 -1
- package/dist/icons/icons/IconCamera.js +1 -1
- package/dist/icons/icons/IconCard.js +1 -1
- package/dist/icons/icons/IconCart.js +1 -1
- package/dist/icons/icons/IconChecklist.js +1 -1
- package/dist/icons/icons/IconCheckmark.js +1 -1
- package/dist/icons/icons/IconChevronDown.js +1 -1
- package/dist/icons/icons/IconChevronLeft.js +1 -1
- package/dist/icons/icons/IconChevronRight.js +1 -1
- package/dist/icons/icons/IconChevronUp.js +1 -1
- package/dist/icons/icons/IconChevronUpDown.js +1 -1
- package/dist/icons/icons/IconClipboard.js +1 -1
- package/dist/icons/icons/IconClock.js +1 -1
- package/dist/icons/icons/IconClockwise.js +1 -1
- package/dist/icons/icons/IconCloud.js +1 -1
- package/dist/icons/icons/IconCloudDownload.js +1 -1
- package/dist/icons/icons/IconCloudUpload.js +1 -1
- package/dist/icons/icons/IconCode.js +1 -1
- package/dist/icons/icons/IconContract.js +1 -1
- package/dist/icons/icons/IconContract2.js +1 -1
- package/dist/icons/icons/IconConversation.js +1 -1
- package/dist/icons/icons/IconCopy.js +1 -1
- package/dist/icons/icons/IconCrop.js +1 -1
- package/dist/icons/icons/IconCross.js +1 -1
- package/dist/icons/icons/IconCrosshair.js +1 -1
- package/dist/icons/icons/IconCutlery.js +1 -1
- package/dist/icons/icons/IconDeviceDesktop.js +1 -1
- package/dist/icons/icons/IconDeviceMobile.js +1 -1
- package/dist/icons/icons/IconDeviceTablet.js +1 -1
- package/dist/icons/icons/IconDirection.js +1 -1
- package/dist/icons/icons/IconDisc.js +1 -1
- package/dist/icons/icons/IconDocument.js +1 -1
- package/dist/icons/icons/IconDocumentDelete.js +1 -1
- package/dist/icons/icons/IconDocumentEdit.js +1 -1
- package/dist/icons/icons/IconDocumentNew.js +1 -1
- package/dist/icons/icons/IconDocumentRemove.js +1 -1
- package/dist/icons/icons/IconDot.js +1 -1
- package/dist/icons/icons/IconDots2.js +1 -1
- package/dist/icons/icons/IconDots3.js +1 -1
- package/dist/icons/icons/IconDownload.js +1 -1
- package/dist/icons/icons/IconDragHandle.js +1 -1
- package/dist/icons/icons/IconDuplicate.js +1 -1
- package/dist/icons/icons/IconEnter.js +1 -1
- package/dist/icons/icons/IconExit.js +1 -1
- package/dist/icons/icons/IconExpand.js +1 -1
- package/dist/icons/icons/IconExpand2.js +1 -1
- package/dist/icons/icons/IconExperiment.js +1 -1
- package/dist/icons/icons/IconExport.js +1 -1
- package/dist/icons/icons/IconFeed.js +1 -1
- package/dist/icons/icons/IconFlag.js +1 -1
- package/dist/icons/icons/IconFlashlight.js +1 -1
- package/dist/icons/icons/IconFolder.js +1 -1
- package/dist/icons/icons/IconFolderOpen.js +1 -1
- package/dist/icons/icons/IconForward.js +1 -1
- package/dist/icons/icons/IconGaming.js +1 -1
- package/dist/icons/icons/IconGear.js +1 -1
- package/dist/icons/icons/IconGraduation.js +1 -1
- package/dist/icons/icons/IconGraphBar.js +1 -1
- package/dist/icons/icons/IconGraphLine.js +1 -1
- package/dist/icons/icons/IconGraphPie.js +1 -1
- package/dist/icons/icons/IconHeadset.js +1 -1
- package/dist/icons/icons/IconHeart.js +1 -1
- package/dist/icons/icons/IconHelp.js +1 -1
- package/dist/icons/icons/IconHome.js +1 -1
- package/dist/icons/icons/IconHourglass.js +1 -1
- package/dist/icons/icons/IconInbox.js +1 -1
- package/dist/icons/icons/IconInformation.js +1 -1
- package/dist/icons/icons/IconItalic.js +1 -1
- package/dist/icons/icons/IconJewel.js +1 -1
- package/dist/icons/icons/IconLifting.js +1 -1
- package/dist/icons/icons/IconLightbulb.js +1 -1
- package/dist/icons/icons/IconLink.js +1 -1
- package/dist/icons/icons/IconLinkBroken.js +1 -1
- package/dist/icons/icons/IconList.js +1 -1
- package/dist/icons/icons/IconLoading.js +1 -1
- package/dist/icons/icons/IconLocation.js +1 -1
- package/dist/icons/icons/IconLock.js +1 -1
- package/dist/icons/icons/IconLockOpen.js +1 -1
- package/dist/icons/icons/IconMail.js +1 -1
- package/dist/icons/icons/IconMap.js +1 -1
- package/dist/icons/icons/IconMediaLoop.js +1 -1
- package/dist/icons/icons/IconMediaNext.js +1 -1
- package/dist/icons/icons/IconMediaPause.js +1 -1
- package/dist/icons/icons/IconMediaPlay.js +1 -1
- package/dist/icons/icons/IconMediaPrevious.js +1 -1
- package/dist/icons/icons/IconMediaRecord.js +1 -1
- package/dist/icons/icons/IconMediaShuffle.js +1 -1
- package/dist/icons/icons/IconMediaStop.js +1 -1
- package/dist/icons/icons/IconMedical.js +1 -1
- package/dist/icons/icons/IconMenu.js +1 -1
- package/dist/icons/icons/IconMessage.js +1 -1
- package/dist/icons/icons/IconMeter.js +1 -1
- package/dist/icons/icons/IconMicrophone.js +1 -1
- package/dist/icons/icons/IconMinus.js +1 -1
- package/dist/icons/icons/IconMonitor.js +1 -1
- package/dist/icons/icons/IconMove.js +1 -1
- package/dist/icons/icons/IconMusic.js +1 -1
- package/dist/icons/icons/IconNetwork1.js +1 -1
- package/dist/icons/icons/IconNetwork2.js +1 -1
- package/dist/icons/icons/IconNetwork3.js +1 -1
- package/dist/icons/icons/IconNetwork4.js +1 -1
- package/dist/icons/icons/IconNetwork5.js +1 -1
- package/dist/icons/icons/IconPamphlet.js +1 -1
- package/dist/icons/icons/IconPaperclip.js +1 -1
- package/dist/icons/icons/IconPencil.js +1 -1
- package/dist/icons/icons/IconPhone.js +1 -1
- package/dist/icons/icons/IconPhoto.js +1 -1
- package/dist/icons/icons/IconPhotoGroup.js +1 -1
- package/dist/icons/icons/IconPill.js +1 -1
- package/dist/icons/icons/IconPin.js +1 -1
- package/dist/icons/icons/IconPlus.js +1 -1
- package/dist/icons/icons/IconPower.js +1 -1
- package/dist/icons/icons/IconPreview.js +1 -1
- package/dist/icons/icons/IconPreviewOff.js +1 -1
- package/dist/icons/icons/IconPrint.js +1 -1
- package/dist/icons/icons/IconPulse.js +1 -1
- package/dist/icons/icons/IconQuestion.js +1 -1
- package/dist/icons/icons/IconReply.js +1 -1
- package/dist/icons/icons/IconReplyAll.js +1 -1
- package/dist/icons/icons/IconReturn.js +1 -1
- package/dist/icons/icons/IconRetweet.js +1 -1
- package/dist/icons/icons/IconRocket.js +1 -1
- package/dist/icons/icons/IconScale.js +1 -1
- package/dist/icons/icons/IconSearch.js +1 -1
- package/dist/icons/icons/IconShoppingBag.js +1 -1
- package/dist/icons/icons/IconSkip.js +1 -1
- package/dist/icons/icons/IconStack.js +1 -1
- package/dist/icons/icons/IconStar.js +1 -1
- package/dist/icons/icons/IconStopwatch.js +1 -1
- package/dist/icons/icons/IconStore.js +1 -1
- package/dist/icons/icons/IconSuitcase.js +1 -1
- package/dist/icons/icons/IconSwap.js +1 -1
- package/dist/icons/icons/IconTag.js +1 -1
- package/dist/icons/icons/IconTagDelete.js +1 -1
- package/dist/icons/icons/IconTags.js +1 -1
- package/dist/icons/icons/IconThumbsDown.js +1 -1
- package/dist/icons/icons/IconThumbsUp.js +1 -1
- package/dist/icons/icons/IconTicket.js +1 -1
- package/dist/icons/icons/IconTimeReverse.js +1 -1
- package/dist/icons/icons/IconToDo.js +1 -1
- package/dist/icons/icons/IconToggles.js +1 -1
- package/dist/icons/icons/IconTrash.js +1 -1
- package/dist/icons/icons/IconTrophy.js +1 -1
- package/dist/icons/icons/IconUpload.js +1 -1
- package/dist/icons/icons/IconUser.js +1 -1
- package/dist/icons/icons/IconUserGroup.js +1 -1
- package/dist/icons/icons/IconUserId.js +1 -1
- package/dist/icons/icons/IconVibrate.js +1 -1
- package/dist/icons/icons/IconViewApps.js +1 -1
- package/dist/icons/icons/IconViewList.js +1 -1
- package/dist/icons/icons/IconViewListLarge.js +1 -1
- package/dist/icons/icons/IconViewThumb.js +1 -1
- package/dist/icons/icons/IconVolumeFull.js +1 -1
- package/dist/icons/icons/IconVolumeLow.js +1 -1
- package/dist/icons/icons/IconVolumeMedium.js +1 -1
- package/dist/icons/icons/IconVolumeOff.js +1 -1
- package/dist/icons/icons/IconWallet.js +1 -1
- package/dist/icons/icons/IconWarning.js +1 -1
- package/dist/icons/icons/IconWeb.js +1 -1
- package/dist/icons/icons/IconWeight.js +1 -1
- package/dist/icons/icons/IconWifi.js +1 -1
- package/dist/icons/icons/IconWrong.js +1 -1
- package/dist/icons/icons/IconZoomIn.js +1 -1
- package/dist/icons/icons/IconZoomOut.js +1 -1
- package/dist/icons/registry.js +1 -0
- package/dist/index.js +1 -1
- package/dist/locales/slices/commandPalette.en.js +1 -1
- package/dist/locales/slices/commandPalette.ru.js +1 -1
- package/dist/locales/slices/imageGallery.en.js +1 -1
- package/dist/locales/slices/imageGallery.ru.js +1 -1
- package/dist/locales/translate.js +1 -1
- package/dist/styles/MediaItem.module.css.js +1 -1
- package/dist/styles/calendarChrome.module.css.js +1 -1
- package/dist/styles/fieldMessage.module.css.js +1 -1
- package/dist/styles/flexChild.module.css.js +1 -1
- package/dist/styles/floating.module.css.js +1 -0
- package/dist/styles/overlayClose.module.css.js +1 -1
- package/dist/styles/overlayScrim.module.css.js +1 -0
- package/dist/styles/overlayTransition.module.css.js +1 -0
- package/dist/styles/scrollable.module.css.js +1 -0
- package/dist/styles/selectField.module.css.js +1 -0
- package/dist/styles/textLink.module.css.js +1 -1
- package/dist/styles/toggleBox.module.css.js +1 -1
- package/dist/styles/toggleGroup.module.css.js +1 -1
- package/dist/styles/unstyledControl.module.css.js +1 -1
- package/dist/styles/utilities.module.css.js +1 -0
- package/dist/styles/visuallyHidden.module.css.js +1 -1
- package/docs/COMPONENTS.md +28 -27
- package/docs/ICONS.md +3 -1
- package/docs/LAYOUT.md +36 -2
- package/docs/THEMING.md +8 -24
- package/package.json +1 -1
- package/types/entries/hooks.d.ts +8 -67
- package/types/entries/icons.d.ts +416 -206
- package/types/entries/locales.d.ts +2 -0
- package/types/entries/utils.d.ts +41 -74
- package/types/index.d.ts +828 -671
- package/dist/base/As/As.js +0 -1
- package/dist/base/FieldPopup/FieldPopup.js +0 -1
- package/dist/base/FieldPopup/FieldPopup.module.css.js +0 -1
- package/dist/base/Type/Type.js +0 -1
- package/dist/components/ActionSheetTrigger/actionSheetContext.js +0 -1
- package/dist/components/Backdrop/Backdrop.js +0 -1
- package/dist/components/Backdrop/Backdrop.module.css.js +0 -1
- package/dist/components/ButtonIcon/ButtonIcon.module.css.js +0 -1
- package/dist/components/ButtonIcon/OverlayCloseButton.js +0 -1
- package/dist/components/DateField/DateField.utils.js +0 -1
- package/dist/components/Dropdown/DropdownMobileSheet.js +0 -1
- package/dist/components/GrabHandle/GrabHandle.js +0 -1
- package/dist/components/GrabHandle/GrabHandle.module.css.js +0 -1
- package/dist/components/Grid/Grid.utils.js +0 -1
- package/dist/components/Overlay/Overlay.frame.js +0 -1
- package/dist/components/PopupSwitch/PopupSwitch.utils.js +0 -1
- package/dist/components/SelectionGroup/SelectionGroup.js +0 -1
- package/dist/components/SuggestField/SuggestField.module.css.js +0 -1
- package/dist/components/SuggestField/useSuggestInput.js +0 -1
- package/dist/hooks/useAutoResize.js +0 -1
- package/dist/hooks/useBodyScrollLock.js +0 -1
- package/dist/hooks/useEscapeKey.js +0 -1
- package/dist/hooks/useFallbackId.js +0 -1
- package/dist/hooks/useFocusRestore.js +0 -1
- package/dist/hooks/useFocusTrap.js +0 -1
- package/dist/hooks/useInertSiblings.js +0 -1
- package/dist/hooks/useMediaQuery.js +0 -1
- package/dist/hooks/useOtpInputs.js +0 -1
- package/dist/hooks/useOutsideClick.js +0 -1
- package/dist/hooks/useOverlay.js +0 -1
- package/dist/hooks/useOverlayPanel.js +0 -1
- package/dist/hooks/usePrefersReducedMotion.js +0 -1
- package/dist/hooks/usePresence.js +0 -1
- package/dist/hooks/useTrackThumb.js +0 -1
- package/dist/icons/createIcon.js +0 -1
- package/dist/styles/chartSeries.module.css.js +0 -1
- package/dist/styles/scroll.module.css.js +0 -1
- package/dist/styles/status.module.css.js +0 -1
- package/dist/styles/type.module.css.js +0 -1
- package/dist/utils/anchorPosition.js +0 -1
- package/dist/utils/autoHeight.js +0 -1
- package/dist/utils/clamp.js +0 -1
- package/dist/utils/composeEvents.js +0 -1
- package/dist/utils/composeRefs.js +0 -1
- package/dist/utils/date.js +0 -1
- package/dist/utils/focus.js +0 -1
- package/dist/utils/formControl.js +0 -1
- package/dist/utils/formatBytes.js +0 -1
- package/dist/utils/hoverTriggerGroup.js +0 -1
- package/dist/utils/injectCss.js +0 -1
- package/dist/utils/keyboard.js +0 -1
- package/dist/utils/keyboardShortcut.js +0 -1
- package/dist/utils/keyboardShortcut.match.js +0 -1
- package/dist/utils/listboxOptions.js +0 -1
- package/dist/utils/mergeStyles.js +0 -1
- package/dist/utils/overlayDismiss.js +0 -1
- package/dist/utils/overlayEscapeStack.js +0 -1
- package/dist/utils/overlayPurpose.js +0 -1
- package/dist/utils/overlayStack.js +0 -1
- package/dist/utils/overlayZIndex.js +0 -1
- package/dist/utils/portal.js +0 -1
- package/dist/utils/preventWhen.js +0 -1
- package/dist/utils/slot.js +0 -1
- package/dist/utils/spacing.js +0 -1
- package/dist/utils/transform.js +0 -1
- package/dist/utils/visitElementTree.js +0 -1
- /package/dist/{utils → core/utils}/a11y.js +0 -0
- /package/dist/{utils → core/utils}/arrayMove.js +0 -0
- /package/dist/{utils → core/utils}/cn.js +0 -0
- /package/dist/{utils → core/utils}/commitMaskedValue.js +0 -0
- /package/dist/{utils → core/utils}/cssSize.js +0 -0
- /package/dist/{utils → core/utils}/duration.js +0 -0
- /package/dist/{utils → core/utils}/eventTarget.js +0 -0
- /package/dist/{utils → core/utils}/fieldMessage.js +0 -0
- /package/dist/{utils → core/utils}/implicitAs.js +0 -0
- /package/dist/{utils → core/utils}/liveStatus.js +0 -0
- /package/dist/{utils → core/utils}/locale.js +0 -0
- /package/dist/{utils → core/utils}/plural.js +0 -0
- /package/dist/{utils → core/utils}/renderChildren.js +0 -0
- /package/dist/{utils → core/utils}/timezone.js +0 -0
- /package/dist/{utils → core/utils}/toggleSet.js +0 -0
package/types/index.d.ts
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ComponentPropsWithoutRef, Ref, ReactNode, AnchorHTMLAttributes, ButtonHTMLAttributes, MouseEvent, CSSProperties, ReactElement, AriaRole, MutableRefObject, ElementType, FC, HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
type AccordionVariant = 'bordered' | 'flush';
|
|
5
|
-
interface
|
|
6
|
-
|
|
5
|
+
interface AccordionItemData {
|
|
6
|
+
value: string;
|
|
7
|
+
title: React__default.ReactNode;
|
|
8
|
+
children?: React__default.ReactNode;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
headingLevel?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
11
|
+
}
|
|
12
|
+
interface AccordionProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
13
|
+
children?: React__default.ReactNode;
|
|
14
|
+
items?: AccordionItemData[];
|
|
7
15
|
multiple?: boolean;
|
|
8
16
|
variant?: AccordionVariant;
|
|
9
17
|
defaultOpenIds?: string[];
|
|
10
|
-
openIds?: string[];
|
|
11
18
|
onOpenChange?: (ids: string[]) => void;
|
|
19
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
12
20
|
}
|
|
13
|
-
interface AccordionItemProps extends Omit<ComponentPropsWithoutRef<'
|
|
21
|
+
interface AccordionItemProps extends Omit<ComponentPropsWithoutRef<'details'>, 'title' | 'open' | 'name'> {
|
|
14
22
|
value: string;
|
|
15
|
-
title:
|
|
23
|
+
title: React__default.ReactNode;
|
|
16
24
|
disabled?: boolean;
|
|
17
|
-
children?:
|
|
25
|
+
children?: React__default.ReactNode;
|
|
18
26
|
headingLevel?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
27
|
+
rootRef?: Ref<HTMLDetailsElement>;
|
|
19
28
|
}
|
|
20
29
|
|
|
21
|
-
declare
|
|
22
|
-
|
|
30
|
+
declare function AccordionRoot({ children, items, multiple, variant, defaultOpenIds, onOpenChange, className, rootRef, ...rest }: AccordionProps): React.JSX.Element;
|
|
31
|
+
declare function AccordionItem({ value, disabled, className, title, headingLevel: Heading, children, rootRef, ...rest }: AccordionItemProps): React.JSX.Element;
|
|
32
|
+
type AccordionComponent = typeof AccordionRoot & {
|
|
23
33
|
Item: typeof AccordionItem;
|
|
24
34
|
};
|
|
25
35
|
declare const Accordion: AccordionComponent;
|
|
@@ -32,27 +42,32 @@ interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
32
42
|
size?: AvatarSize;
|
|
33
43
|
status?: AvatarStatus;
|
|
34
44
|
icon?: ReactNode;
|
|
45
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
46
|
+
}
|
|
47
|
+
interface AvatarGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
48
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
35
49
|
}
|
|
36
|
-
type AvatarGroupProps = ComponentPropsWithoutRef<'div'>;
|
|
37
50
|
|
|
38
|
-
declare
|
|
39
|
-
declare
|
|
51
|
+
declare function Avatar({ src, name, size, status, className, icon, style, rootRef, ...rest }: AvatarProps): React.JSX.Element;
|
|
52
|
+
declare function AvatarGroup({ className, rootRef, ...rest }: AvatarGroupProps): React.JSX.Element;
|
|
40
53
|
|
|
41
54
|
type BadgeVariant = 'error' | 'success' | 'info' | 'warning' | 'primary' | 'secondary';
|
|
42
55
|
type BadgeSize = 'sm' | 'md';
|
|
43
56
|
type BadgePosition = 'overlay' | 'standalone';
|
|
44
57
|
interface BadgeProps extends ComponentPropsWithoutRef<'div'> {
|
|
45
|
-
label?:
|
|
58
|
+
label?: React__default.ReactNode;
|
|
46
59
|
dot?: boolean;
|
|
47
60
|
variant?: BadgeVariant;
|
|
48
61
|
size?: BadgeSize;
|
|
49
62
|
position?: BadgePosition;
|
|
50
63
|
max?: number | false;
|
|
64
|
+
rootRef?: Ref<HTMLElement>;
|
|
51
65
|
}
|
|
52
66
|
|
|
53
|
-
declare const Badge:
|
|
67
|
+
declare const Badge: ({ label, dot, variant, size, position: positionProp, max, children, className, rootRef, ...rest }: BadgeProps) => React.JSX.Element | null;
|
|
54
68
|
|
|
55
69
|
type SpacingToken = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
70
|
+
type SpacingValue = SpacingToken | number | string;
|
|
56
71
|
type GroupGap = 'sm' | 'md' | 'lg';
|
|
57
72
|
|
|
58
73
|
type ControlSize = 'sm' | 'md' | 'lg';
|
|
@@ -68,75 +83,51 @@ type SurfaceVariant = 'primary' | 'tinted' | 'secondary' | 'ghost' | 'plain';
|
|
|
68
83
|
|
|
69
84
|
type ButtonVariant = 'primary' | 'tinted' | 'secondary' | 'danger' | 'danger_tinted' | 'ghost' | 'link';
|
|
70
85
|
type ButtonAs = 'button' | 'a';
|
|
71
|
-
type
|
|
72
|
-
type ButtonOwnProps = {
|
|
86
|
+
type ButtonChrome = {
|
|
73
87
|
variant?: ButtonVariant;
|
|
74
88
|
size?: ControlSize;
|
|
75
89
|
active?: boolean;
|
|
76
90
|
disabled?: boolean;
|
|
77
|
-
|
|
78
|
-
children?: react__default.ReactNode;
|
|
91
|
+
children?: ReactNode;
|
|
79
92
|
prefix?: ReactNode;
|
|
80
93
|
postfix?: ReactNode;
|
|
81
94
|
loading?: boolean;
|
|
82
95
|
fullWidth?: boolean;
|
|
96
|
+
className?: string;
|
|
97
|
+
as?: ButtonAs;
|
|
98
|
+
type?: 'button' | 'submit' | 'reset';
|
|
99
|
+
rootRef?: Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
100
|
+
href?: string;
|
|
101
|
+
target?: AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
102
|
+
rel?: string;
|
|
103
|
+
download?: AnchorHTMLAttributes<HTMLAnchorElement>['download'];
|
|
83
104
|
};
|
|
84
|
-
type ButtonProps
|
|
85
|
-
as?: T;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
type ButtonComponent = (<T extends ButtonAs = 'button'>(props: ButtonProps<T> & {
|
|
89
|
-
ref?: Ref<ButtonRef<T>>;
|
|
90
|
-
}) => ReactElement | null) & {
|
|
91
|
-
displayName?: string;
|
|
92
|
-
};
|
|
93
|
-
declare const Button: ButtonComponent;
|
|
105
|
+
type ButtonProps = ButtonChrome & Omit<ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonChrome>;
|
|
94
106
|
|
|
95
|
-
|
|
96
|
-
shape?: 'circle' | 'square';
|
|
97
|
-
appearance?: 'default' | 'diskClose';
|
|
98
|
-
icon?: react__default.ReactNode;
|
|
99
|
-
children?: react__default.ReactNode;
|
|
100
|
-
}
|
|
107
|
+
declare const Button: (props: ButtonProps) => React.JSX.Element;
|
|
101
108
|
|
|
102
|
-
|
|
109
|
+
type ButtonIconProps = ButtonProps & {
|
|
110
|
+
icon?: ReactNode;
|
|
111
|
+
};
|
|
112
|
+
declare const ButtonIcon: ({ icon, children, ...props }: ButtonIconProps) => React.JSX.Element;
|
|
103
113
|
|
|
104
|
-
type
|
|
114
|
+
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
105
115
|
type ButtonGroupItemFit = 'equal' | 'content';
|
|
106
|
-
type ButtonGroupVariant = Exclude<ButtonVariant, '
|
|
107
|
-
interface ButtonGroupRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
108
|
-
children:
|
|
109
|
-
mode?: ButtonGroupMode;
|
|
116
|
+
type ButtonGroupVariant = Exclude<ButtonVariant, 'link'> | 'pill';
|
|
117
|
+
interface ButtonGroupRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
118
|
+
children: ReactNode;
|
|
110
119
|
variant?: ButtonGroupVariant;
|
|
111
|
-
status?: 'default' | 'danger';
|
|
112
120
|
size?: ControlSize;
|
|
113
121
|
disabled?: boolean;
|
|
114
|
-
readOnly?: boolean;
|
|
115
|
-
borderless?: boolean;
|
|
116
122
|
focusable?: boolean;
|
|
117
123
|
width?: 'auto' | 'full';
|
|
118
124
|
itemFit?: ButtonGroupItemFit;
|
|
119
|
-
|
|
120
|
-
defaultValue?: string | readonly string[];
|
|
121
|
-
onChange?: (value: string | string[]) => void;
|
|
122
|
-
activateOnFocus?: boolean;
|
|
125
|
+
orientation?: ButtonGroupOrientation;
|
|
123
126
|
'aria-label'?: string;
|
|
124
|
-
|
|
125
|
-
interface ButtonGroupItemProps extends Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'value'> {
|
|
126
|
-
value?: string;
|
|
127
|
-
active?: boolean;
|
|
128
|
-
icon?: react__default.ReactNode;
|
|
129
|
-
children?: react__default.ReactNode;
|
|
130
|
-
className?: string;
|
|
127
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
131
128
|
}
|
|
132
129
|
|
|
133
|
-
declare const
|
|
134
|
-
declare const ButtonGroupItem: react__default.ForwardRefExoticComponent<ButtonGroupItemProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
135
|
-
type ButtonGroupComponent = react__default.ForwardRefExoticComponent<ButtonGroupRootProps & react__default.RefAttributes<HTMLDivElement>> & {
|
|
136
|
-
Root: typeof ButtonGroupRoot;
|
|
137
|
-
Item: typeof ButtonGroupItem;
|
|
138
|
-
};
|
|
139
|
-
declare const ButtonGroup: ButtonGroupComponent;
|
|
130
|
+
declare const ButtonGroup: ({ children, variant, size, disabled, focusable, width, itemFit, orientation, role, "aria-label": ariaLabel, className, onKeyDown, rootRef, ...rest }: ButtonGroupRootProps) => React.JSX.Element;
|
|
140
131
|
|
|
141
132
|
type ChipVariant = 'primary' | 'tinted' | 'secondary' | 'success' | 'info' | 'warning' | 'error';
|
|
142
133
|
type ChipMode = 'chip' | 'tag' | 'toggle';
|
|
@@ -144,25 +135,29 @@ interface ChipProps extends Omit<ComponentPropsWithoutRef<'span'>, 'onClick'> {
|
|
|
144
135
|
variant?: ChipVariant;
|
|
145
136
|
size?: ControlSize;
|
|
146
137
|
mode?: ChipMode;
|
|
147
|
-
children:
|
|
138
|
+
children: React__default.ReactNode;
|
|
148
139
|
onRemove?: () => void;
|
|
149
|
-
onClick?:
|
|
140
|
+
onClick?: React__default.MouseEventHandler<HTMLButtonElement | HTMLSpanElement>;
|
|
150
141
|
disabled?: boolean;
|
|
151
|
-
icon?:
|
|
142
|
+
icon?: React__default.ReactNode;
|
|
152
143
|
className?: string;
|
|
153
144
|
removeLabel?: string;
|
|
145
|
+
rootRef?: Ref<HTMLButtonElement | HTMLSpanElement>;
|
|
146
|
+
value?: string;
|
|
154
147
|
}
|
|
155
148
|
type ChipGroupGap = GroupGap;
|
|
156
|
-
interface ChipGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
157
|
-
children:
|
|
149
|
+
interface ChipGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onSelect'> {
|
|
150
|
+
children: React__default.ReactNode;
|
|
158
151
|
'aria-label'?: string;
|
|
159
152
|
gap?: ChipGroupGap;
|
|
160
153
|
mode?: Exclude<ChipMode, 'toggle'>;
|
|
154
|
+
onSelect?: (value: string) => void;
|
|
161
155
|
className?: string;
|
|
156
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
162
157
|
}
|
|
163
158
|
|
|
164
|
-
declare const Chip:
|
|
165
|
-
declare const ChipGroup:
|
|
159
|
+
declare const Chip: ({ variant, size, mode, children, onRemove, onClick, disabled, icon, className, removeLabel, rootRef, value, ...rest }: ChipProps) => React.JSX.Element;
|
|
160
|
+
declare const ChipGroup: ({ children, "aria-label": ariaLabel, gap, mode, onSelect, onClick, className, style, rootRef, ...rest }: ChipGroupProps) => React.JSX.Element;
|
|
166
161
|
|
|
167
162
|
interface ColorSwatchGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange' | 'defaultValue'> {
|
|
168
163
|
colors: string[];
|
|
@@ -172,48 +167,52 @@ interface ColorSwatchGroupProps extends Omit<ComponentPropsWithoutRef<'div'>, 'c
|
|
|
172
167
|
label?: string;
|
|
173
168
|
readOnly?: boolean;
|
|
174
169
|
disabled?: boolean;
|
|
170
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
175
171
|
}
|
|
176
172
|
|
|
177
|
-
declare
|
|
173
|
+
declare function ColorSwatchGroup({ colors, value, onChange, size, label, className, readOnly, disabled, rootRef, ...rest }: ColorSwatchGroupProps): React.JSX.Element;
|
|
178
174
|
|
|
179
175
|
type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
180
176
|
interface EmptyStateProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title'> {
|
|
181
|
-
icon?:
|
|
177
|
+
icon?: React__default.ReactNode;
|
|
182
178
|
title: string;
|
|
183
179
|
description?: string;
|
|
184
|
-
action?:
|
|
180
|
+
action?: React__default.ReactNode;
|
|
185
181
|
size?: EmptyStateSize;
|
|
182
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
186
183
|
}
|
|
187
184
|
|
|
188
|
-
declare
|
|
185
|
+
declare function EmptyState({ icon, title, description, action, size, className, rootRef, ...rest }: EmptyStateProps): React.JSX.Element;
|
|
189
186
|
|
|
190
187
|
type FieldGroupWidth = 'auto' | 'full';
|
|
191
188
|
interface FieldGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
192
189
|
width?: FieldGroupWidth;
|
|
190
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
193
191
|
}
|
|
194
192
|
|
|
195
|
-
declare
|
|
193
|
+
declare function FieldGroup({ width, className, children, style, rootRef, ...rest }: FieldGroupProps): React.JSX.Element;
|
|
196
194
|
|
|
197
195
|
type FieldsetVariant = 'default' | 'card' | 'plain';
|
|
198
196
|
interface FieldsetProps extends ComponentPropsWithoutRef<'div'> {
|
|
199
197
|
variant?: FieldsetVariant;
|
|
200
198
|
disabled?: boolean;
|
|
201
|
-
children?:
|
|
202
|
-
legend?:
|
|
203
|
-
description?:
|
|
204
|
-
hint?:
|
|
205
|
-
footer?:
|
|
199
|
+
children?: React__default.ReactNode;
|
|
200
|
+
legend?: React__default.ReactNode;
|
|
201
|
+
description?: React__default.ReactNode;
|
|
202
|
+
hint?: React__default.ReactNode;
|
|
203
|
+
footer?: React__default.ReactNode;
|
|
206
204
|
gap?: number | string;
|
|
205
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
207
206
|
}
|
|
208
207
|
|
|
209
|
-
declare
|
|
208
|
+
declare function Fieldset({ variant, disabled, className, style, id: providedId, children, legend, description, hint, footer, gap, rootRef, ...rest }: FieldsetProps): React.JSX.Element;
|
|
210
209
|
|
|
211
210
|
type FieldLabelLayout = 'vertical' | 'horizontal';
|
|
212
211
|
type FieldLabelAlign = 'start' | 'center' | 'baseline';
|
|
213
212
|
type FieldLabelJustify = 'start' | 'between';
|
|
214
213
|
interface FieldLabelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
215
|
-
label:
|
|
216
|
-
children:
|
|
214
|
+
label: React__default.ReactNode;
|
|
215
|
+
children: React__default.ReactNode;
|
|
217
216
|
layout?: FieldLabelLayout;
|
|
218
217
|
size?: ControlSize;
|
|
219
218
|
htmlFor?: string;
|
|
@@ -223,9 +222,10 @@ interface FieldLabelProps extends Omit<ComponentPropsWithoutRef<'div'>, 'childre
|
|
|
223
222
|
labelClassName?: string;
|
|
224
223
|
contentClassName?: string;
|
|
225
224
|
id?: string;
|
|
225
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
declare
|
|
228
|
+
declare function FieldLabel({ label, children, layout, size, htmlFor, labelWidth, align, justify, className, style, labelClassName, contentClassName, id: providedId, rootRef, ...rest }: FieldLabelProps): React.JSX.Element;
|
|
229
229
|
|
|
230
230
|
interface FieldBaseProps {
|
|
231
231
|
label?: string;
|
|
@@ -242,40 +242,41 @@ interface FieldBaseProps {
|
|
|
242
242
|
}
|
|
243
243
|
interface FieldBaseButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
244
244
|
icon?: ReactNode;
|
|
245
|
+
rootRef?: Ref<HTMLButtonElement>;
|
|
245
246
|
}
|
|
246
247
|
interface FieldBaseIconProps extends ComponentPropsWithoutRef<'span'> {
|
|
247
248
|
children: ReactNode;
|
|
249
|
+
rootRef?: Ref<HTMLSpanElement>;
|
|
248
250
|
}
|
|
249
251
|
type TextFieldAs = 'input' | 'textarea' | 'button' | 'div';
|
|
250
252
|
type TextFieldRef<T extends TextFieldAs> = T extends 'textarea' ? HTMLTextAreaElement : T extends 'button' ? HTMLButtonElement : T extends 'div' ? HTMLDivElement : HTMLInputElement;
|
|
251
253
|
type TextFieldOwnProps = FieldBaseProps & {
|
|
252
254
|
wrapperClassName?: string;
|
|
253
|
-
|
|
255
|
+
rootRef?: Ref<HTMLElement>;
|
|
254
256
|
wrapperProps?: Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'prefix'>;
|
|
255
257
|
active?: boolean;
|
|
256
258
|
keepPlaceholder?: boolean;
|
|
257
259
|
controlOverlay?: ReactNode;
|
|
258
260
|
hasValue?: boolean;
|
|
259
261
|
};
|
|
260
|
-
type TextFieldProps<T extends TextFieldAs = 'input'> = TextFieldOwnProps & Omit<
|
|
262
|
+
type TextFieldProps<T extends TextFieldAs = 'input'> = TextFieldOwnProps & Omit<ComponentPropsWithoutRef<T>, keyof TextFieldOwnProps | 'as' | 'prefix' | 'size' | 'width'> & {
|
|
261
263
|
as?: T;
|
|
264
|
+
inputRef?: Ref<TextFieldRef<T>>;
|
|
262
265
|
};
|
|
263
266
|
|
|
264
|
-
declare
|
|
265
|
-
declare
|
|
266
|
-
|
|
267
|
-
ref?: Ref<TextFieldRef<T>>;
|
|
268
|
-
}) => ReactElement | null) & {
|
|
269
|
-
displayName?: string;
|
|
270
|
-
};
|
|
271
|
-
declare const TextField: TextFieldComponent;
|
|
267
|
+
declare function FieldBaseButton({ className, icon, children, type, rootRef, ...props }: FieldBaseButtonProps): React.JSX.Element;
|
|
268
|
+
declare function FieldBaseIcon({ className, children, rootRef, ...props }: FieldBaseIconProps): React.JSX.Element;
|
|
269
|
+
declare function TextField<T extends TextFieldAs = 'input'>(props: TextFieldProps<T>): React.JSX.Element;
|
|
272
270
|
|
|
273
|
-
type SearchFieldProps = Omit<TextFieldProps, 'prefix' | 'type'
|
|
271
|
+
type SearchFieldProps = Omit<TextFieldProps, 'prefix' | 'type' | 'ref'> & {
|
|
272
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
273
|
+
};
|
|
274
274
|
|
|
275
|
-
declare const SearchField:
|
|
275
|
+
declare const SearchField: ({ label, "aria-label": ariaLabel, inputRef, ...props }: SearchFieldProps) => React.JSX.Element;
|
|
276
276
|
|
|
277
277
|
type SkeletonVariant = 'block' | 'text' | 'avatar' | 'card' | 'table';
|
|
278
278
|
interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {
|
|
279
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
279
280
|
variant?: SkeletonVariant;
|
|
280
281
|
width?: string | number;
|
|
281
282
|
height?: string | number;
|
|
@@ -288,49 +289,50 @@ interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
288
289
|
columns?: number;
|
|
289
290
|
}
|
|
290
291
|
|
|
291
|
-
declare const Skeleton:
|
|
292
|
+
declare const Skeleton: ({ variant, width, height, circle, lines, lastWidth, size, avatar, rows, columns, className, style, rootRef, ...rest }: SkeletonProps) => React.JSX.Element;
|
|
292
293
|
|
|
293
294
|
interface StatBadgeProps extends ComponentPropsWithoutRef<'div'> {
|
|
294
295
|
label: string;
|
|
295
296
|
value: number | string;
|
|
296
297
|
variant?: 'default' | 'success' | 'warning' | 'error';
|
|
297
298
|
size?: 'sm' | 'md';
|
|
299
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
298
300
|
}
|
|
299
301
|
|
|
300
|
-
declare const StatBadge:
|
|
302
|
+
declare const StatBadge: ({ label, value, variant, size, className, rootRef, style, ...rest }: StatBadgeProps) => React.JSX.Element;
|
|
301
303
|
|
|
302
304
|
type BoxVariant = 'outlined' | 'elevated' | 'floating' | 'tinted' | 'secondary' | 'muted' | 'glass' | 'overlay' | 'ghost' | 'plain';
|
|
303
305
|
type BoxShadow = 'none' | 'sm' | 'md' | 'lg';
|
|
304
306
|
type BoxBorderStyle = 'solid' | 'dashed';
|
|
305
|
-
type BoxPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
306
307
|
type BoxRadius = 'none' | 'sm' | 'md' | 'lg';
|
|
307
|
-
type BoxAs = 'div' | 'section' | 'article' | 'aside' | 'button' | 'a' | 'li';
|
|
308
|
+
type BoxAs = 'div' | 'section' | 'article' | 'aside' | 'main' | 'nav' | 'button' | 'a' | 'li' | 'ul' | 'ol' | 'dl' | 'span';
|
|
308
309
|
interface BoxProps extends ComponentPropsWithoutRef<'div'> {
|
|
309
310
|
variant?: BoxVariant;
|
|
310
311
|
border?: boolean;
|
|
311
312
|
borderStyle?: BoxBorderStyle;
|
|
312
313
|
shadow?: BoxShadow;
|
|
313
314
|
as?: BoxAs;
|
|
314
|
-
padding?: BoxPadding;
|
|
315
315
|
radius?: BoxRadius;
|
|
316
|
+
rootRef?: Ref<HTMLElement> | Ref<HTMLDivElement> | Ref<HTMLSpanElement> | Ref<HTMLButtonElement> | Ref<HTMLAnchorElement> | Ref<HTMLUListElement> | Ref<HTMLOListElement> | Ref<HTMLLIElement> | Ref<HTMLDListElement>;
|
|
316
317
|
}
|
|
317
318
|
|
|
318
|
-
declare const Box:
|
|
319
|
+
declare const Box: ({ variant, border, borderStyle, shadow, as: Component, radius, className, rootRef, ...rest }: BoxProps) => React.JSX.Element;
|
|
319
320
|
|
|
320
321
|
type CardVariant = Extract<BoxVariant, 'outlined' | 'elevated' | 'ghost'>;
|
|
321
322
|
interface CardProps extends ComponentPropsWithoutRef<'div'> {
|
|
322
|
-
children?:
|
|
323
|
-
header?:
|
|
324
|
-
media?:
|
|
325
|
-
actions?:
|
|
323
|
+
children?: React__default.ReactNode;
|
|
324
|
+
header?: React__default.ReactNode;
|
|
325
|
+
media?: React__default.ReactNode;
|
|
326
|
+
actions?: React__default.ReactNode;
|
|
326
327
|
hoverable?: boolean;
|
|
327
328
|
variant?: CardVariant;
|
|
328
329
|
radius?: BoxRadius;
|
|
329
330
|
loading?: boolean;
|
|
330
331
|
as?: BoxAs;
|
|
332
|
+
rootRef?: Ref<HTMLElement>;
|
|
331
333
|
}
|
|
332
334
|
|
|
333
|
-
declare const Card:
|
|
335
|
+
declare const Card: ({ children, header, media, actions, hoverable, variant, loading, className, as, onClick, role, radius, rootRef, ...rest }: CardProps) => React.JSX.Element;
|
|
334
336
|
|
|
335
337
|
type ItemSize = 'sm' | 'md' | 'lg';
|
|
336
338
|
type ItemMediaVariant = 'icon' | 'image' | 'avatar';
|
|
@@ -339,6 +341,7 @@ interface ItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
|
339
341
|
size?: ItemSize;
|
|
340
342
|
variant?: ItemVariant;
|
|
341
343
|
interactive?: boolean;
|
|
344
|
+
wrap?: boolean;
|
|
342
345
|
as?: BoxAs;
|
|
343
346
|
media?: ReactNode;
|
|
344
347
|
mediaVariant?: ItemMediaVariant;
|
|
@@ -349,6 +352,7 @@ interface ItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
|
349
352
|
descriptionClassName?: string;
|
|
350
353
|
actions?: ReactNode;
|
|
351
354
|
actionsClassName?: string;
|
|
355
|
+
rootRef?: Ref<HTMLElement>;
|
|
352
356
|
}
|
|
353
357
|
|
|
354
358
|
type AttachmentSize = 'md' | 'sm' | 'xs';
|
|
@@ -356,34 +360,62 @@ type AttachmentStatus = 'idle' | 'uploading' | 'error' | 'done';
|
|
|
356
360
|
interface AttachmentProps extends Omit<ItemProps, 'size' | 'variant'> {
|
|
357
361
|
size?: AttachmentSize;
|
|
358
362
|
status?: AttachmentStatus;
|
|
363
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
359
364
|
}
|
|
360
365
|
|
|
361
|
-
declare
|
|
366
|
+
declare function Attachment({ size, status, media, className, rootRef, ...rest }: AttachmentProps): React.JSX.Element;
|
|
362
367
|
|
|
363
368
|
type FileListItemStatus = 'idle' | 'uploading' | 'done' | 'error';
|
|
364
|
-
interface FileListItemProps extends Omit<ComponentPropsWithoutRef<'li'>, 'id'> {
|
|
369
|
+
interface FileListItemProps extends Omit<ComponentPropsWithoutRef<'li'>, 'id' | 'itemRef'> {
|
|
365
370
|
id: string;
|
|
366
371
|
name: string;
|
|
367
372
|
size?: number | string;
|
|
368
373
|
progress?: number;
|
|
369
374
|
status?: FileListItemStatus;
|
|
370
|
-
error?:
|
|
375
|
+
error?: React__default.ReactNode;
|
|
371
376
|
previewUrl?: string;
|
|
372
377
|
onRemove?: (id: string) => void;
|
|
373
378
|
onRetry?: (id: string) => void;
|
|
374
379
|
removeLabel?: string;
|
|
375
380
|
retryLabel?: string;
|
|
376
381
|
attachmentSize?: AttachmentSize;
|
|
382
|
+
itemRef?: Ref<HTMLLIElement>;
|
|
377
383
|
}
|
|
378
384
|
interface FileListRootProps extends Omit<ComponentPropsWithoutRef<'ul'>, 'children'> {
|
|
379
|
-
children
|
|
385
|
+
children?: React__default.ReactNode;
|
|
386
|
+
items?: FileListItemProps[];
|
|
387
|
+
onRemove?: (id: string) => void;
|
|
388
|
+
onRetry?: (id: string) => void;
|
|
389
|
+
rootRef?: Ref<HTMLUListElement>;
|
|
380
390
|
}
|
|
381
391
|
|
|
382
|
-
declare
|
|
383
|
-
|
|
384
|
-
|
|
392
|
+
declare function FileListItem({ id, name, size, progress, status: providedStatus, error, previewUrl, onRemove, onRetry, removeLabel, retryLabel, attachmentSize, className, itemRef, ...rest }: FileListItemProps): React.JSX.Element;
|
|
393
|
+
declare function FileListRoot({ children, items, onRemove, onRetry, className, style, rootRef, ...rest }: FileListRootProps): React.JSX.Element;
|
|
394
|
+
declare const FileList$1: typeof FileListRoot & {
|
|
395
|
+
Root: typeof FileListRoot;
|
|
396
|
+
Item: typeof FileListItem;
|
|
385
397
|
};
|
|
386
398
|
|
|
399
|
+
interface FileUploaderFile {
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
progress?: number;
|
|
403
|
+
status?: FileListItemStatus;
|
|
404
|
+
}
|
|
405
|
+
interface FileUploaderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange'> {
|
|
406
|
+
files?: FileUploaderFile[];
|
|
407
|
+
onFiles?: (files: FileList) => void;
|
|
408
|
+
children?: React__default.ReactNode | ((openFileDialog: () => void) => React__default.ReactNode);
|
|
409
|
+
multiple?: boolean;
|
|
410
|
+
disabled?: boolean;
|
|
411
|
+
readOnly?: boolean;
|
|
412
|
+
onRemove?: (id: string) => void;
|
|
413
|
+
onRetry?: (id: string) => void;
|
|
414
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
declare function FileUploader({ files, onFiles, children, multiple, disabled, readOnly, onRemove, onRetry, className, rootRef, ...rest }: FileUploaderProps): React.JSX.Element;
|
|
418
|
+
|
|
387
419
|
interface PinInputProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange' | 'defaultValue'> {
|
|
388
420
|
length?: number;
|
|
389
421
|
size?: ControlSize;
|
|
@@ -400,9 +432,10 @@ interface PinInputProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
400
432
|
description?: ReactNode;
|
|
401
433
|
name?: string;
|
|
402
434
|
width?: FieldWidth;
|
|
435
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
403
436
|
}
|
|
404
437
|
|
|
405
|
-
declare
|
|
438
|
+
declare function PinInput({ length, size, value: controlled, defaultValue, onChange, onComplete, numeric, disabled, masked, autoFocus, 'aria-label': ariaLabel, className, style, error, label, description, name, width, rootRef, ...rest }: PinInputProps): React.JSX.Element;
|
|
406
439
|
|
|
407
440
|
interface RatingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange' | 'defaultValue'> {
|
|
408
441
|
value?: number;
|
|
@@ -413,11 +446,13 @@ interface RatingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' |
|
|
|
413
446
|
disabled?: boolean;
|
|
414
447
|
size?: 'sm' | 'md' | 'lg';
|
|
415
448
|
allowClear?: boolean;
|
|
449
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
416
450
|
}
|
|
417
451
|
|
|
418
|
-
declare const Rating:
|
|
452
|
+
declare const Rating: ({ value: controlledValue, defaultValue, onChange, max, readOnly, disabled, size, allowClear, "aria-label": ariaLabel, className, rootRef, onClick, ...rest }: RatingProps) => React.JSX.Element;
|
|
419
453
|
|
|
420
454
|
interface RelativeTimeProps extends Omit<ComponentPropsWithoutRef<'time'>, 'dateTime'> {
|
|
455
|
+
rootRef?: Ref<HTMLTimeElement>;
|
|
421
456
|
date: Date | string | number;
|
|
422
457
|
locale?: string;
|
|
423
458
|
updateInterval?: number;
|
|
@@ -425,26 +460,28 @@ interface RelativeTimeProps extends Omit<ComponentPropsWithoutRef<'time'>, 'date
|
|
|
425
460
|
}
|
|
426
461
|
|
|
427
462
|
declare function formatRelativeTime(date: Date, locale?: string, now?: Date): string;
|
|
428
|
-
declare const RelativeTime:
|
|
463
|
+
declare const RelativeTime: ({ date, locale, updateInterval, showAbsoluteTitle, className, title, rootRef, ...rest }: RelativeTimeProps) => React.JSX.Element;
|
|
429
464
|
|
|
430
465
|
interface DescriptionListItem {
|
|
431
466
|
id?: string;
|
|
432
|
-
label:
|
|
433
|
-
value:
|
|
467
|
+
label: React__default.ReactNode;
|
|
468
|
+
value: React__default.ReactNode;
|
|
434
469
|
}
|
|
435
470
|
interface DescriptionListProps extends Omit<ComponentPropsWithoutRef<'dl'>, 'children'> {
|
|
436
471
|
items: DescriptionListItem[];
|
|
437
472
|
layout?: 'stacked' | 'inline';
|
|
438
473
|
columns?: 1 | 2 | 3;
|
|
474
|
+
rootRef?: Ref<HTMLDListElement>;
|
|
439
475
|
}
|
|
440
476
|
|
|
441
|
-
declare
|
|
477
|
+
declare function DescriptionList({ items, layout, columns, className, style, rootRef, ...rest }: DescriptionListProps): React.JSX.Element;
|
|
442
478
|
|
|
443
479
|
interface AspectRatioProps extends ComponentPropsWithoutRef<'div'> {
|
|
444
480
|
ratio?: number | string;
|
|
481
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
445
482
|
}
|
|
446
483
|
|
|
447
|
-
declare
|
|
484
|
+
declare function AspectRatio({ ratio, children, className, style, rootRef, ...rest }: AspectRatioProps): React.JSX.Element;
|
|
448
485
|
|
|
449
486
|
interface MediaProps extends Omit<AspectRatioProps, 'children'> {
|
|
450
487
|
src: string;
|
|
@@ -455,41 +492,45 @@ interface MediaProps extends Omit<AspectRatioProps, 'children'> {
|
|
|
455
492
|
rounded?: boolean;
|
|
456
493
|
}
|
|
457
494
|
|
|
458
|
-
declare const Media:
|
|
495
|
+
declare const Media: ({ src, alt, as, poster, fit, rounded, ratio, className, style, rootRef, onError, ...rest }: MediaProps) => React__default.JSX.Element;
|
|
459
496
|
|
|
460
497
|
interface ScrollAreaProps extends ComponentPropsWithoutRef<'div'> {
|
|
498
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
461
499
|
maxHeight?: string | number;
|
|
462
500
|
maxWidth?: string | number;
|
|
463
501
|
orientation?: 'y' | 'x' | 'both';
|
|
464
|
-
children?:
|
|
502
|
+
children?: React__default.ReactNode;
|
|
465
503
|
}
|
|
466
504
|
|
|
467
|
-
declare const ScrollArea:
|
|
505
|
+
declare const ScrollArea: ({ maxHeight, maxWidth, orientation, className, style, rootRef, ...rest }: ScrollAreaProps) => React.JSX.Element;
|
|
468
506
|
|
|
469
507
|
interface VisuallyHiddenProps extends ComponentPropsWithoutRef<'span'> {
|
|
470
|
-
children:
|
|
508
|
+
children: React__default.ReactNode;
|
|
471
509
|
as?: 'span' | 'div' | 'label';
|
|
510
|
+
rootRef?: Ref<HTMLElement>;
|
|
472
511
|
}
|
|
473
512
|
|
|
474
|
-
declare const VisuallyHidden:
|
|
513
|
+
declare const VisuallyHidden: ({ children, as: Component, className, rootRef, ...rest }: VisuallyHiddenProps) => React.JSX.Element;
|
|
475
514
|
|
|
476
515
|
interface LiveRegionProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'role'> {
|
|
477
516
|
message?: ReactNode;
|
|
478
517
|
politeness?: 'polite' | 'assertive';
|
|
518
|
+
rootRef?: Ref<HTMLElement>;
|
|
479
519
|
}
|
|
480
520
|
|
|
481
|
-
declare const LiveRegion:
|
|
521
|
+
declare const LiveRegion: ({ message, politeness, rootRef, ...rest }: LiveRegionProps) => React.JSX.Element | null;
|
|
482
522
|
|
|
483
523
|
interface SkipLinkProps extends ComponentPropsWithoutRef<'a'> {
|
|
484
524
|
href?: string;
|
|
485
|
-
children?:
|
|
525
|
+
children?: React__default.ReactNode;
|
|
526
|
+
rootRef?: Ref<HTMLAnchorElement>;
|
|
486
527
|
}
|
|
487
528
|
|
|
488
|
-
declare const SkipLink:
|
|
529
|
+
declare const SkipLink: ({ href, children, className, rootRef, ...rest }: SkipLinkProps) => React.JSX.Element;
|
|
489
530
|
|
|
490
531
|
type CheckboxMode = 'default' | 'task';
|
|
491
532
|
interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
492
|
-
label?:
|
|
533
|
+
label?: React__default.ReactNode;
|
|
493
534
|
labelVisibility?: 'visible' | 'hidden';
|
|
494
535
|
readOnly?: boolean;
|
|
495
536
|
size?: ControlSize;
|
|
@@ -498,6 +539,7 @@ interface CheckboxProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'>
|
|
|
498
539
|
mode?: CheckboxMode;
|
|
499
540
|
align?: 'start' | 'center';
|
|
500
541
|
onCheckedChange?: (checked: boolean) => void;
|
|
542
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
501
543
|
}
|
|
502
544
|
interface CheckboxGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'children' | 'onChange'> {
|
|
503
545
|
label?: string;
|
|
@@ -513,56 +555,91 @@ interface CheckboxGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>,
|
|
|
513
555
|
disabled?: boolean;
|
|
514
556
|
size?: ControlSize;
|
|
515
557
|
labelSide?: LabelSide;
|
|
558
|
+
rootRef?: Ref<HTMLFieldSetElement>;
|
|
516
559
|
}
|
|
517
560
|
|
|
518
|
-
declare const Checkbox:
|
|
519
|
-
declare const CheckboxGroup:
|
|
561
|
+
declare const Checkbox: ({ label, labelVisibility, className, disabled, readOnly, size, labelSide, indeterminate, mode, align: alignProp, checked, onChange, onCheckedChange, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, inputRef, ...props }: CheckboxProps) => React.JSX.Element;
|
|
562
|
+
declare const CheckboxGroup: ({ label, options, value, onChange, orientation, readOnly, disabled, size, labelSide, rootRef, ...rest }: CheckboxGroupProps) => React.JSX.Element;
|
|
520
563
|
|
|
521
564
|
interface CollapseProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
522
565
|
open: boolean;
|
|
523
|
-
children:
|
|
524
|
-
|
|
566
|
+
children: React__default.ReactNode;
|
|
567
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
525
568
|
}
|
|
526
569
|
|
|
527
|
-
declare
|
|
570
|
+
declare function Collapse({ open, children, className, rootRef, ...rest }: CollapseProps): React.JSX.Element;
|
|
528
571
|
|
|
529
|
-
type RenderChildrenFn<P> = (props: P, contentRef:
|
|
572
|
+
type RenderChildrenFn<P> = (props: P, contentRef: React__default.RefCallback<HTMLElement>) => React__default.ReactNode;
|
|
530
573
|
type WithEnrichedChildren<T, P> = T & {
|
|
531
|
-
children: RenderChildrenFn<P> |
|
|
574
|
+
children: RenderChildrenFn<P> | React__default.ReactElement;
|
|
532
575
|
};
|
|
533
576
|
|
|
577
|
+
type PopoverContentVariant = 'panel' | 'plain';
|
|
578
|
+
type PopoverTargetAction = 'toggle' | 'show' | 'hide';
|
|
579
|
+
type PopoverTriggerSlotProps = {
|
|
580
|
+
popoverTarget?: string;
|
|
581
|
+
popoverTargetAction?: PopoverTargetAction;
|
|
582
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
583
|
+
style?: CSSProperties;
|
|
584
|
+
};
|
|
585
|
+
interface PopoverProps {
|
|
586
|
+
children?: ReactNode;
|
|
587
|
+
trigger: ReactElement | RenderChildrenFn<PopoverTriggerSlotProps>;
|
|
588
|
+
id?: string;
|
|
589
|
+
disabled?: boolean;
|
|
590
|
+
variant?: PopoverContentVariant;
|
|
591
|
+
className?: string;
|
|
592
|
+
role?: AriaRole;
|
|
593
|
+
side?: AnchorSide;
|
|
594
|
+
align?: AnchorAlign;
|
|
595
|
+
widthMode?: 'trigger' | 'content' | 'trigger-fit';
|
|
596
|
+
popoverTargetAction?: PopoverTargetAction;
|
|
597
|
+
defaultOpen?: boolean;
|
|
598
|
+
onToggle?: (open: boolean) => void;
|
|
599
|
+
panelRef?: Ref<HTMLElement | null>;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
type DropdownPopup = {
|
|
603
|
+
show: () => void;
|
|
604
|
+
hide: () => void;
|
|
605
|
+
};
|
|
534
606
|
type DropdownPopupRole = 'menu' | 'listbox' | 'none' | 'dialog';
|
|
535
607
|
type DropdownTriggerMode = 'toggle' | 'combobox';
|
|
536
608
|
type DropdownAlign = AnchorAlign | 'auto' | 'left' | 'right';
|
|
537
609
|
type DropdownWidthMode = 'trigger' | 'content' | 'trigger-fit';
|
|
538
610
|
type DropdownPanelScroll = 'overlay' | 'content';
|
|
539
|
-
type DropdownTriggerAttrs = Pick<
|
|
611
|
+
type DropdownTriggerAttrs = Pick<React__default.HTMLAttributes<HTMLElement>, 'onKeyDown' | 'onClick'> & {
|
|
540
612
|
'aria-haspopup'?: 'true' | 'listbox' | 'menu' | 'dialog';
|
|
541
|
-
'aria-expanded'
|
|
613
|
+
'aria-expanded'?: boolean;
|
|
542
614
|
'aria-controls'?: string;
|
|
543
615
|
tabIndex?: number;
|
|
544
616
|
className?: string;
|
|
545
617
|
type?: 'button';
|
|
546
618
|
};
|
|
547
|
-
type DropdownTriggerSlotProps = DropdownTriggerAttrs;
|
|
619
|
+
type DropdownTriggerSlotProps = DropdownTriggerAttrs & PopoverTriggerSlotProps;
|
|
620
|
+
type DropdownPanelState = {
|
|
621
|
+
open: boolean;
|
|
622
|
+
};
|
|
548
623
|
interface DropdownProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
549
|
-
children?:
|
|
550
|
-
|
|
551
|
-
|
|
624
|
+
children?: React__default.ReactNode | ((state: DropdownPanelState) => React__default.ReactNode);
|
|
625
|
+
trigger: React__default.ReactElement | RenderChildrenFn<DropdownTriggerSlotProps>;
|
|
626
|
+
defaultOpen?: boolean;
|
|
552
627
|
onOpenChange?: (open: boolean) => void;
|
|
628
|
+
popupRef?: Ref<DropdownPopup | null>;
|
|
629
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
553
630
|
popupRole?: DropdownPopupRole;
|
|
554
631
|
triggerMode?: DropdownTriggerMode;
|
|
555
632
|
boxProps?: BoxProps;
|
|
556
633
|
align?: DropdownAlign;
|
|
557
634
|
widthMode?: DropdownWidthMode;
|
|
558
|
-
mobileTitle?:
|
|
559
|
-
mobileLeftControls?:
|
|
560
|
-
mobileRightControls?:
|
|
635
|
+
mobileTitle?: React__default.ReactNode;
|
|
636
|
+
mobileLeftControls?: React__default.ReactNode;
|
|
637
|
+
mobileRightControls?: React__default.ReactNode;
|
|
561
638
|
panelScroll?: DropdownPanelScroll;
|
|
562
639
|
panelClassName?: string;
|
|
563
640
|
}
|
|
564
641
|
|
|
565
|
-
declare
|
|
642
|
+
declare function Dropdown({ children, trigger, defaultOpen, onOpenChange, popupRef, popupRole, triggerMode, className, boxProps, align, widthMode, panelScroll, mobileTitle, mobileLeftControls, mobileRightControls, panelClassName, rootRef, ...rest }: DropdownProps): React.JSX.Element;
|
|
566
643
|
|
|
567
644
|
interface ListboxOption {
|
|
568
645
|
value: string;
|
|
@@ -584,37 +661,38 @@ interface ResolvedListboxGroup {
|
|
|
584
661
|
}
|
|
585
662
|
type ListboxFilterFn<T extends ListboxOption = ListboxOption> = (option: T, query: string) => boolean;
|
|
586
663
|
|
|
664
|
+
interface ListboxSeparator {
|
|
665
|
+
type: 'separator';
|
|
666
|
+
id?: string;
|
|
667
|
+
groupId?: string;
|
|
668
|
+
}
|
|
669
|
+
type ListboxEntry<T extends ListboxOption = ListboxOption> = T | ListboxSeparator;
|
|
587
670
|
type ListboxNavigation = 'roving' | 'highlight';
|
|
588
|
-
interface ListboxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onSelect' | 'onChange' | 'value' | 'defaultValue' | 'children'> {
|
|
589
|
-
options:
|
|
671
|
+
interface ListboxProps<T extends ListboxOption = ListboxOption> extends Omit<ComponentPropsWithoutRef<'div'>, 'onSelect' | 'onChange' | 'value' | 'defaultValue' | 'children'> {
|
|
672
|
+
options: readonly ListboxEntry<T>[];
|
|
673
|
+
customRenderOption?: (option: T) => ReactNode;
|
|
590
674
|
groups?: ListboxGroup[];
|
|
591
675
|
value?: string[];
|
|
592
676
|
multiple?: boolean;
|
|
593
|
-
onSelect?: (optionValue: string) => void;
|
|
677
|
+
onSelect?: (optionValue: string, option: T) => void;
|
|
594
678
|
noOptionsText?: string;
|
|
595
679
|
loading?: boolean;
|
|
596
680
|
showCheck?: boolean;
|
|
597
681
|
navigation?: ListboxNavigation;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
preventOptionMouseDown?: boolean;
|
|
682
|
+
activeDescendantId?: string;
|
|
683
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
684
|
+
controlRef?: MutableRefObject<ListboxHandle | null>;
|
|
602
685
|
disabled?: boolean;
|
|
603
686
|
multiline?: boolean;
|
|
604
687
|
virtualized?: boolean;
|
|
605
688
|
}
|
|
606
689
|
interface ListboxHandle {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
highlightLast: () => void;
|
|
611
|
-
selectHighlighted: () => string | undefined;
|
|
612
|
-
getHighlightedIndex: () => number;
|
|
613
|
-
getActiveDescendantId: () => string | undefined;
|
|
614
|
-
focusOption: (index: number) => void;
|
|
690
|
+
focusFirst: () => void;
|
|
691
|
+
selectHighlighted: () => void;
|
|
692
|
+
scrollToId: (id: string) => void;
|
|
615
693
|
}
|
|
616
694
|
|
|
617
|
-
declare
|
|
695
|
+
declare function Listbox<T extends ListboxOption = ListboxOption>({ options, groups, value, multiple, onSelect, customRenderOption, id: providedId, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, noOptionsText: noOptionsTextProp, loading, className, showCheck, navigation, activeDescendantId, disabled, multiline, virtualized, onKeyDown, onClick, rootRef, controlRef, ...rest }: ListboxProps<T>): React.JSX.Element;
|
|
618
696
|
|
|
619
697
|
interface ActionListItem {
|
|
620
698
|
id: string;
|
|
@@ -633,17 +711,8 @@ interface ActionListGroup {
|
|
|
633
711
|
id: string;
|
|
634
712
|
label: ReactNode;
|
|
635
713
|
}
|
|
636
|
-
interface ActionListHandle {
|
|
637
|
-
highlightNext: () => void;
|
|
638
|
-
highlightPrev: () => void;
|
|
639
|
-
highlightFirst: () => void;
|
|
640
|
-
highlightLast: () => void;
|
|
641
|
-
selectHighlighted: () => ActionListItem | undefined;
|
|
642
|
-
getHighlightedIndex: () => number;
|
|
643
|
-
getActiveDescendantId: () => string | undefined;
|
|
644
|
-
getListId: () => string;
|
|
645
|
-
}
|
|
646
714
|
interface ActionListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onSelect'> {
|
|
715
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
647
716
|
items: ActionListItem[];
|
|
648
717
|
groups?: ActionListGroup[];
|
|
649
718
|
onAction?: (item: ActionListItem) => void;
|
|
@@ -661,18 +730,17 @@ interface MenuProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
|
661
730
|
children?: ReactNode;
|
|
662
731
|
items: ActionListItem[];
|
|
663
732
|
groups?: ActionListGroup[];
|
|
664
|
-
open?: boolean;
|
|
665
733
|
onOpenChange?: (open: boolean) => void;
|
|
734
|
+
popupRef?: Ref<DropdownPopup | null>;
|
|
666
735
|
align?: DropdownAlign;
|
|
667
736
|
widthMode?: DropdownWidthMode;
|
|
668
737
|
mobileTitle?: ReactNode;
|
|
669
|
-
filterable?: boolean;
|
|
670
|
-
filterPlaceholder?: string;
|
|
671
738
|
emptyText?: string;
|
|
672
|
-
onAction?:
|
|
739
|
+
onAction?: (item: ActionListItem) => void;
|
|
740
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
673
741
|
}
|
|
674
742
|
|
|
675
|
-
declare
|
|
743
|
+
declare function Menu({ trigger, children, items, groups, onOpenChange, popupRef: popupRefProp, align, widthMode, mobileTitle, emptyText, onAction, className, tabIndex, 'aria-label': ariaLabel, onContextMenu, onKeyDown, rootRef, ...rest }: MenuProps): React.JSX.Element;
|
|
676
744
|
|
|
677
745
|
interface ImageGalleryItem {
|
|
678
746
|
src: string;
|
|
@@ -689,9 +757,10 @@ interface ImageGalleryProps extends Omit<ComponentPropsWithoutRef<'div'>, 'child
|
|
|
689
757
|
showThumbnails?: boolean;
|
|
690
758
|
showCounter?: boolean;
|
|
691
759
|
enableKeyboard?: boolean;
|
|
760
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
692
761
|
}
|
|
693
762
|
|
|
694
|
-
declare
|
|
763
|
+
declare function ImageGallery({ images, index: controlledIndex, defaultIndex, onIndexChange, chrome, showNav, showThumbnails, showCounter, enableKeyboard, className, rootRef, ...rest }: ImageGalleryProps): React.JSX.Element;
|
|
695
764
|
|
|
696
765
|
interface ImageLightboxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
697
766
|
open: boolean;
|
|
@@ -700,9 +769,10 @@ interface ImageLightboxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'chil
|
|
|
700
769
|
index?: number;
|
|
701
770
|
defaultIndex?: number;
|
|
702
771
|
onIndexChange?: (index: number) => void;
|
|
772
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
703
773
|
}
|
|
704
774
|
|
|
705
|
-
declare
|
|
775
|
+
declare function ImageLightbox({ open, onOpenChange, images, index, defaultIndex, onIndexChange, className, rootRef, ...rest }: ImageLightboxProps): React.JSX.Element;
|
|
706
776
|
|
|
707
777
|
type LinkVariant = 'primary' | 'secondary' | 'muted';
|
|
708
778
|
type LinkStatus = 'default' | 'danger';
|
|
@@ -712,38 +782,41 @@ interface LinkProps extends ComponentPropsWithoutRef<'a'> {
|
|
|
712
782
|
status?: LinkStatus;
|
|
713
783
|
size?: LinkSize;
|
|
714
784
|
weight?: 'normal' | 'medium' | 'bold';
|
|
715
|
-
children:
|
|
785
|
+
children: React__default.ReactNode;
|
|
786
|
+
rootRef?: Ref<HTMLElement>;
|
|
716
787
|
}
|
|
717
788
|
|
|
718
|
-
declare const Link:
|
|
789
|
+
declare const Link: ({ variant, status, size, weight, className, children, target, rel, rootRef, ...props }: LinkProps) => React.JSX.Element;
|
|
719
790
|
|
|
720
791
|
interface SwipeAction {
|
|
721
792
|
id: string;
|
|
722
793
|
label: string;
|
|
723
|
-
icon?:
|
|
794
|
+
icon?: React__default.ReactNode;
|
|
724
795
|
onClick: () => void;
|
|
725
796
|
bg?: string;
|
|
726
797
|
swipeToTrigger?: boolean;
|
|
727
798
|
}
|
|
728
|
-
interface SwipeToActionProps extends Omit<
|
|
729
|
-
children:
|
|
799
|
+
interface SwipeToActionProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
800
|
+
children: React__default.ReactNode;
|
|
730
801
|
leftActions?: SwipeAction[];
|
|
731
802
|
rightActions?: SwipeAction[];
|
|
732
803
|
closeOnOutsideClick?: boolean;
|
|
733
804
|
swipeToTriggerThreshold?: number;
|
|
734
805
|
actionWidth?: number;
|
|
806
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
735
807
|
}
|
|
736
808
|
|
|
737
|
-
declare const SwipeToAction:
|
|
809
|
+
declare const SwipeToAction: ({ children, leftActions, rightActions, closeOnOutsideClick, swipeToTriggerThreshold, actionWidth, className, style, rootRef, ...rest }: SwipeToActionProps) => React.JSX.Element;
|
|
738
810
|
|
|
739
811
|
interface MaskedFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'> {
|
|
740
812
|
mask: string;
|
|
741
813
|
value: string;
|
|
742
814
|
onChange: (value: string) => void;
|
|
815
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
743
816
|
maskAsPlaceholder?: boolean;
|
|
744
817
|
}
|
|
745
818
|
|
|
746
|
-
declare
|
|
819
|
+
declare function MaskedField({ mask, value, onChange, onClear, clearLabel, onKeyDown, disabled, readOnly, maskAsPlaceholder, placeholder: placeholderProp, onClick, inputRef, ...props }: MaskedFieldProps): React.JSX.Element;
|
|
747
820
|
|
|
748
821
|
interface NumberFieldProps extends Omit<TextFieldProps, 'type' | 'onChange'> {
|
|
749
822
|
value?: number;
|
|
@@ -751,68 +824,100 @@ interface NumberFieldProps extends Omit<TextFieldProps, 'type' | 'onChange'> {
|
|
|
751
824
|
max?: number;
|
|
752
825
|
step?: number;
|
|
753
826
|
onChange?: (val: number | undefined) => void;
|
|
827
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
754
828
|
}
|
|
755
829
|
|
|
756
|
-
declare
|
|
830
|
+
declare function NumberField({ value, min, max, step, onChange, onClear, onBlur, clearLabel, postfix: iconEnd, disabled, readOnly, className, inputRef, ...props }: NumberFieldProps): React.JSX.Element;
|
|
757
831
|
|
|
758
|
-
interface PaginationRootProps extends Omit<
|
|
832
|
+
interface PaginationRootProps extends Omit<React__default.ComponentPropsWithoutRef<'nav'>, 'children'> {
|
|
759
833
|
currentPage: number;
|
|
760
834
|
totalPages: number;
|
|
761
835
|
onPageChange: (page: number) => void;
|
|
762
|
-
children?:
|
|
836
|
+
children?: React__default.ReactNode;
|
|
763
837
|
totalItems?: number;
|
|
764
838
|
pageSize?: number;
|
|
765
839
|
onPageSizeChange?: (pageSize: number) => void;
|
|
766
840
|
pageSizeOptions?: number[];
|
|
841
|
+
rootRef?: Ref<HTMLElement>;
|
|
767
842
|
}
|
|
768
|
-
interface PaginationSummaryProps extends
|
|
843
|
+
interface PaginationSummaryProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
769
844
|
totalItems?: number;
|
|
770
845
|
pageSize?: number;
|
|
846
|
+
rootRef?: Ref<HTMLSpanElement>;
|
|
771
847
|
}
|
|
772
|
-
type PaginationControlsProps =
|
|
773
|
-
|
|
848
|
+
type PaginationControlsProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
849
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
850
|
+
};
|
|
851
|
+
interface PaginationPageSizeProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
774
852
|
pageSize: number;
|
|
775
853
|
onPageSizeChange: (pageSize: number) => void;
|
|
776
854
|
pageSizeOptions?: number[];
|
|
855
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
777
856
|
}
|
|
778
857
|
type PaginationProps = PaginationRootProps;
|
|
779
858
|
|
|
780
|
-
declare
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
859
|
+
declare function PaginationSummary({ totalItems, pageSize, className, rootRef, ...rest }: PaginationSummaryProps): React.JSX.Element | null;
|
|
860
|
+
declare function PaginationControls({ className, rootRef, onClick, ...rest }: PaginationControlsProps): React.JSX.Element;
|
|
861
|
+
declare function PaginationPageSize({ pageSize, onPageSizeChange, pageSizeOptions, className, rootRef, ...rest }: PaginationPageSizeProps): React.JSX.Element;
|
|
862
|
+
declare function PaginationRoot({ currentPage, totalPages, onPageChange, className, children, totalItems, pageSize, onPageSizeChange, pageSizeOptions, 'aria-label': ariaLabel, style, rootRef, ...rest }: PaginationRootProps): React.JSX.Element;
|
|
863
|
+
declare const Pagination: typeof PaginationRoot & {
|
|
864
|
+
Summary: typeof PaginationSummary;
|
|
865
|
+
Controls: typeof PaginationControls;
|
|
866
|
+
PageSize: typeof PaginationPageSize;
|
|
784
867
|
};
|
|
785
868
|
|
|
786
869
|
type ProgressVariant = 'auto' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
787
870
|
interface ProgressProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
788
871
|
percentage?: number;
|
|
789
872
|
indeterminate?: boolean;
|
|
790
|
-
label?:
|
|
791
|
-
valueText?:
|
|
873
|
+
label?: React__default.ReactNode;
|
|
874
|
+
valueText?: React__default.ReactNode;
|
|
792
875
|
showValueText?: boolean;
|
|
793
876
|
size?: ControlSize;
|
|
794
877
|
variant?: ProgressVariant;
|
|
878
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
795
879
|
}
|
|
796
880
|
interface ProgressCircleProps extends ProgressProps {
|
|
797
881
|
diameter?: number;
|
|
798
882
|
}
|
|
799
883
|
|
|
800
|
-
declare const Progress:
|
|
801
|
-
declare const ProgressCircle:
|
|
884
|
+
declare const Progress: ({ percentage, indeterminate, label, valueText, showValueText, size, variant, className, style, rootRef, ...rest }: ProgressProps) => React.JSX.Element;
|
|
885
|
+
declare const ProgressCircle: ({ percentage, indeterminate, size, diameter, label, valueText, showValueText, variant, className, style, rootRef, ...rest }: ProgressCircleProps) => React.JSX.Element;
|
|
886
|
+
|
|
887
|
+
type ToggleControlAlign = 'start' | 'center';
|
|
888
|
+
interface ToggleControlBaseProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size' | 'className' | 'style'> {
|
|
889
|
+
className?: string;
|
|
890
|
+
style?: CSSProperties;
|
|
891
|
+
size?: ControlSize;
|
|
892
|
+
align?: ToggleControlAlign;
|
|
893
|
+
labelSide?: LabelSide;
|
|
894
|
+
readOnly?: boolean;
|
|
895
|
+
label?: ReactNode;
|
|
896
|
+
labelHidden?: boolean;
|
|
897
|
+
boxContent?: ReactNode;
|
|
898
|
+
boxClassName?: string;
|
|
899
|
+
inputClassName?: string;
|
|
900
|
+
labelClassName?: string;
|
|
901
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
902
|
+
labelProps?: Omit<ComponentPropsWithoutRef<'label'>, 'htmlFor' | 'className' | 'style' | 'children'> & Record<`data-${string}`, string | number | boolean | undefined>;
|
|
903
|
+
}
|
|
802
904
|
|
|
803
905
|
interface RadioProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'> {
|
|
804
|
-
label:
|
|
906
|
+
label: React__default.ReactNode;
|
|
805
907
|
readOnly?: boolean;
|
|
806
908
|
size?: ControlSize;
|
|
807
909
|
labelSide?: LabelSide;
|
|
808
910
|
onCheckedChange?: (checked: boolean) => void;
|
|
911
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
912
|
+
labelProps?: ToggleControlBaseProps['labelProps'];
|
|
809
913
|
}
|
|
810
|
-
interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'children' | 'onChange'> {
|
|
914
|
+
interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'children' | 'onChange' | 'defaultValue'> {
|
|
811
915
|
name: string;
|
|
812
916
|
label?: string;
|
|
813
917
|
options: {
|
|
814
918
|
label: string;
|
|
815
919
|
value: string;
|
|
920
|
+
disabled?: boolean;
|
|
816
921
|
}[];
|
|
817
922
|
value: string;
|
|
818
923
|
onChange: (value: string) => void;
|
|
@@ -822,73 +927,40 @@ interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'ch
|
|
|
822
927
|
disabled?: boolean;
|
|
823
928
|
size?: ControlSize;
|
|
824
929
|
labelSide?: LabelSide;
|
|
930
|
+
rootRef?: Ref<HTMLFieldSetElement>;
|
|
825
931
|
}
|
|
826
932
|
|
|
827
|
-
declare const Radio:
|
|
828
|
-
declare const RadioGroup:
|
|
829
|
-
|
|
830
|
-
type SelectionGroupOrientation = 'horizontal' | 'vertical';
|
|
831
|
-
interface SelectionGroupRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'defaultValue' | 'onChange'> {
|
|
832
|
-
children: react__default.ReactNode;
|
|
833
|
-
value?: string;
|
|
834
|
-
defaultValue?: string;
|
|
835
|
-
onChange?: (value: string) => void;
|
|
836
|
-
orientation?: SelectionGroupOrientation;
|
|
837
|
-
disabled?: boolean;
|
|
838
|
-
readOnly?: boolean;
|
|
839
|
-
activateOnFocus?: boolean;
|
|
840
|
-
}
|
|
841
|
-
interface SelectionGroupListProps extends ComponentPropsWithoutRef<'div'> {
|
|
842
|
-
children?: react__default.ReactNode;
|
|
843
|
-
}
|
|
844
|
-
interface SelectionGroupItemProps extends Omit<ComponentPropsWithoutRef<'button'>, 'value'> {
|
|
845
|
-
value: string;
|
|
846
|
-
children?: react__default.ReactNode;
|
|
847
|
-
}
|
|
848
|
-
interface SelectionGroupPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
849
|
-
value: string;
|
|
850
|
-
children?: react__default.ReactNode;
|
|
851
|
-
forceMount?: boolean;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
declare const SelectionGroupRoot: ForwardRefExoticComponent<SelectionGroupRootProps & RefAttributes<HTMLDivElement>>;
|
|
855
|
-
declare const SelectionGroupList: ForwardRefExoticComponent<SelectionGroupListProps & RefAttributes<HTMLDivElement>>;
|
|
856
|
-
declare const SelectionGroupItem: ForwardRefExoticComponent<SelectionGroupItemProps & RefAttributes<HTMLButtonElement>>;
|
|
857
|
-
declare const SelectionGroupPanel: ForwardRefExoticComponent<SelectionGroupPanelProps & RefAttributes<HTMLDivElement>>;
|
|
858
|
-
type SelectionGroupComponent = ForwardRefExoticComponent<SelectionGroupRootProps & RefAttributes<HTMLDivElement>> & {
|
|
859
|
-
Root: typeof SelectionGroupRoot;
|
|
860
|
-
List: typeof SelectionGroupList;
|
|
861
|
-
Item: typeof SelectionGroupItem;
|
|
862
|
-
Panel: typeof SelectionGroupPanel;
|
|
863
|
-
};
|
|
864
|
-
declare const SelectionGroup: SelectionGroupComponent;
|
|
933
|
+
declare const Radio: ({ label, className, disabled, readOnly, size, labelSide, onChange, onCheckedChange, inputRef, labelProps, ...props }: RadioProps) => React.JSX.Element;
|
|
934
|
+
declare const RadioGroup: ({ name, label, options, value, onChange, orientation, readOnly, disabled, size, labelSide, rootRef, className, ...rest }: RadioGroupProps) => React.JSX.Element;
|
|
865
935
|
|
|
866
936
|
interface SegmentOption<T = string> {
|
|
867
|
-
label:
|
|
937
|
+
label: ReactNode;
|
|
868
938
|
value: T;
|
|
939
|
+
disabled?: boolean;
|
|
940
|
+
id?: string;
|
|
941
|
+
controls?: string;
|
|
869
942
|
}
|
|
870
943
|
type SegmentedItemFit = ButtonGroupItemFit;
|
|
944
|
+
type SegmentedControlVariant = 'pill' | SurfaceVariant;
|
|
871
945
|
interface SegmentedControlProps<T = string> extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange' | 'children' | 'defaultValue'> {
|
|
872
946
|
options: SegmentOption<T>[];
|
|
873
947
|
value: T;
|
|
874
948
|
onChange: (value: T) => void;
|
|
875
|
-
variant?:
|
|
949
|
+
variant?: SegmentedControlVariant;
|
|
876
950
|
size?: 'sm' | 'md' | 'lg';
|
|
877
951
|
itemFit?: SegmentedItemFit;
|
|
952
|
+
orientation?: ButtonGroupOrientation;
|
|
878
953
|
readOnly?: boolean;
|
|
879
954
|
disabled?: boolean;
|
|
880
|
-
|
|
955
|
+
width?: 'auto' | 'full';
|
|
956
|
+
itemRole?: 'tab';
|
|
957
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
881
958
|
}
|
|
882
959
|
|
|
883
|
-
|
|
884
|
-
ref?: Ref<HTMLDivElement>;
|
|
885
|
-
}) => ReactElement) & {
|
|
886
|
-
displayName?: string;
|
|
887
|
-
};
|
|
888
|
-
declare const SegmentedControl: SegmentedControlComponent;
|
|
960
|
+
declare function SegmentedControl<T extends string | number>({ options, value, onChange, variant, size, itemFit, orientation, readOnly, disabled, width, itemRole, className, onClick, onKeyDown, role, 'aria-label': ariaLabel, rootRef, ...rest }: SegmentedControlProps<T>): React.JSX.Element;
|
|
889
961
|
|
|
890
|
-
interface SidebarProps extends Omit<
|
|
891
|
-
children:
|
|
962
|
+
interface SidebarProps extends Omit<React__default.ComponentPropsWithoutRef<'aside'>, 'children' | 'onChange'> {
|
|
963
|
+
children: React__default.ReactNode;
|
|
892
964
|
value?: string;
|
|
893
965
|
defaultValue?: string;
|
|
894
966
|
onChange?: (id: string) => void;
|
|
@@ -898,57 +970,56 @@ interface SidebarProps extends Omit<react__default.ComponentPropsWithoutRef<'asi
|
|
|
898
970
|
mobileDrawer?: boolean;
|
|
899
971
|
mobileOpen?: boolean;
|
|
900
972
|
onMobileOpenChange?: (open: boolean) => void;
|
|
973
|
+
rootRef?: Ref<HTMLElement>;
|
|
901
974
|
}
|
|
902
|
-
interface SidebarHeaderProps extends
|
|
903
|
-
children?:
|
|
975
|
+
interface SidebarHeaderProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
976
|
+
children?: React__default.ReactNode;
|
|
977
|
+
rootRef?: Ref<HTMLElement>;
|
|
904
978
|
}
|
|
905
|
-
interface SidebarTitleProps extends
|
|
906
|
-
children:
|
|
979
|
+
interface SidebarTitleProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
980
|
+
children: React__default.ReactNode;
|
|
981
|
+
rootRef?: Ref<HTMLSpanElement>;
|
|
907
982
|
}
|
|
908
|
-
interface SidebarContentProps extends
|
|
909
|
-
children:
|
|
983
|
+
interface SidebarContentProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
984
|
+
children: React__default.ReactNode;
|
|
985
|
+
rootRef?: Ref<HTMLElement>;
|
|
910
986
|
}
|
|
911
|
-
interface SidebarGroupProps extends
|
|
912
|
-
children:
|
|
987
|
+
interface SidebarGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
988
|
+
children: React__default.ReactNode;
|
|
989
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
913
990
|
}
|
|
914
|
-
interface SidebarGroupLabelProps extends
|
|
915
|
-
children:
|
|
991
|
+
interface SidebarGroupLabelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
992
|
+
children: React__default.ReactNode;
|
|
993
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
916
994
|
}
|
|
917
|
-
interface SidebarItemProps extends Omit<
|
|
995
|
+
interface SidebarItemProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'type'> {
|
|
918
996
|
value: string;
|
|
919
|
-
icon?:
|
|
920
|
-
badge?:
|
|
997
|
+
icon?: React__default.ReactNode;
|
|
998
|
+
badge?: React__default.ReactNode;
|
|
921
999
|
badgeDot?: boolean;
|
|
922
|
-
children:
|
|
1000
|
+
children: React__default.ReactNode;
|
|
1001
|
+
rootRef?: Ref<HTMLButtonElement>;
|
|
923
1002
|
}
|
|
924
|
-
interface SidebarFooterProps extends
|
|
925
|
-
children:
|
|
1003
|
+
interface SidebarFooterProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
1004
|
+
children: React__default.ReactNode;
|
|
1005
|
+
rootRef?: Ref<HTMLElement>;
|
|
926
1006
|
}
|
|
927
|
-
interface SidebarMobileTriggerProps extends Omit<
|
|
1007
|
+
interface SidebarMobileTriggerProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
|
|
928
1008
|
label?: string;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
declare const
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
Header: typeof SidebarHeader;
|
|
943
|
-
Title: typeof SidebarTitle;
|
|
944
|
-
Content: typeof SidebarContent;
|
|
945
|
-
Group: typeof SidebarGroup;
|
|
946
|
-
GroupLabel: typeof SidebarGroupLabel;
|
|
947
|
-
Item: typeof SidebarItem;
|
|
948
|
-
Footer: typeof SidebarFooter;
|
|
949
|
-
MobileTrigger: typeof SidebarMobileTrigger;
|
|
1009
|
+
rootRef?: Ref<HTMLButtonElement>;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
declare const Sidebar: (({ children, value: controlledActiveId, defaultValue: defaultActiveId, onChange, className, "aria-label": ariaLabel, collapsed: controlledCollapsed, defaultCollapsed, onCollapsedChange, mobileDrawer, mobileOpen: controlledMobileOpen, onMobileOpenChange, rootRef, ...rest }: SidebarProps) => React.JSX.Element) & {
|
|
1013
|
+
Root: ({ children, value: controlledActiveId, defaultValue: defaultActiveId, onChange, className, "aria-label": ariaLabel, collapsed: controlledCollapsed, defaultCollapsed, onCollapsedChange, mobileDrawer, mobileOpen: controlledMobileOpen, onMobileOpenChange, rootRef, ...rest }: SidebarProps) => React.JSX.Element;
|
|
1014
|
+
Header: ({ className, rootRef, ...rest }: SidebarHeaderProps) => React.JSX.Element;
|
|
1015
|
+
Title: ({ className, rootRef, ...rest }: SidebarTitleProps) => React.JSX.Element;
|
|
1016
|
+
Content: ({ className, rootRef, ...rest }: SidebarContentProps) => React.JSX.Element;
|
|
1017
|
+
Group: ({ className, rootRef, ...rest }: SidebarGroupProps) => React.JSX.Element;
|
|
1018
|
+
GroupLabel: ({ className, rootRef, ...rest }: SidebarGroupLabelProps) => React.JSX.Element;
|
|
1019
|
+
Item: ({ value, icon, badge, badgeDot, children, className, disabled, onClick, rootRef, ...rest }: SidebarItemProps) => React.JSX.Element;
|
|
1020
|
+
Footer: ({ className, rootRef, ...rest }: SidebarFooterProps) => React.JSX.Element;
|
|
1021
|
+
MobileTrigger: ({ label, onClick, rootRef, className, ...rest }: SidebarMobileTriggerProps) => React.JSX.Element;
|
|
950
1022
|
};
|
|
951
|
-
declare const Sidebar: SidebarComponent;
|
|
952
1023
|
|
|
953
1024
|
type SafeAreaEdges = 'top' | 'right' | 'bottom' | 'left' | 'all' | 'x' | 'y';
|
|
954
1025
|
interface SafeAreaProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -956,31 +1027,33 @@ interface SafeAreaProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
956
1027
|
padding?: string | number;
|
|
957
1028
|
fill?: boolean;
|
|
958
1029
|
as?: 'div' | 'main' | 'section' | 'header' | 'footer';
|
|
959
|
-
children?:
|
|
1030
|
+
children?: React__default.ReactNode;
|
|
1031
|
+
rootRef?: Ref<HTMLElement>;
|
|
960
1032
|
}
|
|
961
1033
|
|
|
962
|
-
declare const SafeArea:
|
|
1034
|
+
declare const SafeArea: ({ edges, padding, fill, as: Component, children, className, style, rootRef, ...rest }: SafeAreaProps) => React.JSX.Element;
|
|
963
1035
|
|
|
964
1036
|
interface PullToRefreshProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
965
|
-
children:
|
|
1037
|
+
children: React__default.ReactNode;
|
|
966
1038
|
onRefresh: () => void | Promise<void>;
|
|
967
1039
|
threshold?: number;
|
|
968
1040
|
disabled?: boolean;
|
|
1041
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
969
1042
|
pullLabel?: string;
|
|
970
1043
|
releaseLabel?: string;
|
|
971
1044
|
refreshingLabel?: string;
|
|
972
1045
|
}
|
|
973
1046
|
|
|
974
|
-
declare const PullToRefresh:
|
|
1047
|
+
declare const PullToRefresh: ({ children, onRefresh, threshold, disabled, className, pullLabel, releaseLabel, refreshingLabel, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, rootRef, style, ...rest }: PullToRefreshProps) => React.JSX.Element;
|
|
975
1048
|
|
|
976
1049
|
type TimelineItemStatus = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
977
1050
|
interface TimelineItem {
|
|
978
1051
|
id: string;
|
|
979
|
-
title:
|
|
980
|
-
description?:
|
|
981
|
-
details?:
|
|
982
|
-
time?:
|
|
983
|
-
icon?:
|
|
1052
|
+
title: React__default.ReactNode;
|
|
1053
|
+
description?: React__default.ReactNode;
|
|
1054
|
+
details?: React__default.ReactNode;
|
|
1055
|
+
time?: React__default.ReactNode;
|
|
1056
|
+
icon?: React__default.ReactNode;
|
|
984
1057
|
status?: TimelineItemStatus;
|
|
985
1058
|
}
|
|
986
1059
|
interface TimelineProps extends Omit<ComponentPropsWithoutRef<'ol'>, 'children'> {
|
|
@@ -988,9 +1061,10 @@ interface TimelineProps extends Omit<ComponentPropsWithoutRef<'ol'>, 'children'>
|
|
|
988
1061
|
orientation?: 'vertical' | 'horizontal';
|
|
989
1062
|
currentId?: string;
|
|
990
1063
|
defaultExpandedIds?: string[];
|
|
1064
|
+
rootRef?: Ref<HTMLOListElement>;
|
|
991
1065
|
}
|
|
992
1066
|
|
|
993
|
-
declare
|
|
1067
|
+
declare function Timeline({ items, orientation, currentId, defaultExpandedIds, className, rootRef, ...rest }: TimelineProps): React.JSX.Element;
|
|
994
1068
|
|
|
995
1069
|
type RangeValue = [number, number];
|
|
996
1070
|
type SliderSharedProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange' | 'defaultValue'> & {
|
|
@@ -1000,6 +1074,7 @@ type SliderSharedProps = Omit<ComponentPropsWithoutRef<'div'>, 'onChange' | 'def
|
|
|
1000
1074
|
disabled?: boolean;
|
|
1001
1075
|
readOnly?: boolean;
|
|
1002
1076
|
showValues?: boolean;
|
|
1077
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1003
1078
|
};
|
|
1004
1079
|
type SliderSingleProps = SliderSharedProps & {
|
|
1005
1080
|
value: number;
|
|
@@ -1011,36 +1086,38 @@ type SliderRangeProps = SliderSharedProps & {
|
|
|
1011
1086
|
};
|
|
1012
1087
|
type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
1013
1088
|
|
|
1014
|
-
declare const Slider:
|
|
1089
|
+
declare const Slider: ({ min, max, step, disabled, readOnly, showValues, className, style, "aria-label": ariaLabel, value, onChange, rootRef, ...rest }: SliderProps) => React.JSX.Element;
|
|
1015
1090
|
|
|
1016
1091
|
type SpinnerVariant = 'spin' | 'typing' | 'dots' | 'pulse';
|
|
1017
1092
|
type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
1018
1093
|
interface SpinnerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1094
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1019
1095
|
variant?: SpinnerVariant;
|
|
1020
1096
|
size?: number | SpinnerSize;
|
|
1021
|
-
label?:
|
|
1097
|
+
label?: React__default.ReactNode;
|
|
1022
1098
|
}
|
|
1023
1099
|
|
|
1024
|
-
declare const Spinner:
|
|
1100
|
+
declare const Spinner: ({ variant, size, label, className, style, rootRef, "aria-label": ariaLabel, ...rest }: SpinnerProps) => React.JSX.Element;
|
|
1025
1101
|
|
|
1026
1102
|
type StepStatus = 'pending' | 'current' | 'complete' | 'error';
|
|
1027
1103
|
interface StepItem {
|
|
1028
1104
|
title: string;
|
|
1029
|
-
description?:
|
|
1105
|
+
description?: React__default.ReactNode;
|
|
1030
1106
|
status?: StepStatus;
|
|
1031
1107
|
disabled?: boolean;
|
|
1032
|
-
icon?:
|
|
1108
|
+
icon?: React__default.ReactNode;
|
|
1033
1109
|
}
|
|
1034
|
-
interface StepsProps extends Omit<
|
|
1110
|
+
interface StepsProps extends Omit<React__default.ComponentPropsWithoutRef<'ol'>, 'children'> {
|
|
1035
1111
|
currentStep: number;
|
|
1036
1112
|
items: StepItem[];
|
|
1037
1113
|
orientation?: 'horizontal' | 'vertical';
|
|
1038
1114
|
onStepClick?: (index: number) => void;
|
|
1039
1115
|
size?: 'sm' | 'md' | 'lg';
|
|
1040
1116
|
showConnectors?: boolean;
|
|
1117
|
+
rootRef?: Ref<HTMLOListElement>;
|
|
1041
1118
|
}
|
|
1042
1119
|
|
|
1043
|
-
declare const Steps:
|
|
1120
|
+
declare const Steps: ({ currentStep, items, orientation, onStepClick, size, showConnectors, className, "aria-label": ariaLabel, rootRef, ...rest }: StepsProps) => React.JSX.Element;
|
|
1044
1121
|
|
|
1045
1122
|
type SwitchLabelSide = LabelSide;
|
|
1046
1123
|
interface SwitchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> {
|
|
@@ -1052,56 +1129,61 @@ interface SwitchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'onChange'
|
|
|
1052
1129
|
readOnly?: boolean;
|
|
1053
1130
|
size?: ControlSize;
|
|
1054
1131
|
labelSide?: SwitchLabelSide;
|
|
1132
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1055
1133
|
}
|
|
1056
1134
|
|
|
1057
|
-
declare const Switch:
|
|
1135
|
+
declare const Switch: ({ label, checked, onChange, onCheckedChange, className, disabled, readOnly, size, labelSide, inputRef, ...props }: SwitchProps) => React.JSX.Element;
|
|
1058
1136
|
|
|
1059
1137
|
type TabsVariant = 'line' | 'pill';
|
|
1060
1138
|
type TabsOrientation = 'horizontal' | 'vertical';
|
|
1139
|
+
interface TabsItem {
|
|
1140
|
+
value: string;
|
|
1141
|
+
label: ReactNode;
|
|
1142
|
+
disabled?: boolean;
|
|
1143
|
+
badge?: ReactNode;
|
|
1144
|
+
badgeDot?: boolean;
|
|
1145
|
+
}
|
|
1061
1146
|
interface TabsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange' | 'defaultValue'> {
|
|
1062
1147
|
value?: string;
|
|
1063
1148
|
defaultValue?: string;
|
|
1064
1149
|
onChange?: (id: string) => void;
|
|
1065
1150
|
variant?: TabsVariant;
|
|
1066
1151
|
orientation?: TabsOrientation;
|
|
1067
|
-
children:
|
|
1152
|
+
children: React__default.ReactNode;
|
|
1153
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1154
|
+
}
|
|
1155
|
+
interface TabsListProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1156
|
+
items: TabsItem[];
|
|
1157
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1068
1158
|
}
|
|
1069
|
-
|
|
1070
|
-
interface TabsTriggerProps extends Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
1159
|
+
interface TabsTriggerProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
1071
1160
|
value: string;
|
|
1072
|
-
badge?:
|
|
1161
|
+
badge?: React__default.ReactNode;
|
|
1073
1162
|
badgeDot?: boolean;
|
|
1074
1163
|
}
|
|
1075
|
-
interface TabsPanelProps extends
|
|
1164
|
+
interface TabsPanelProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1076
1165
|
value: string;
|
|
1077
1166
|
forceMount?: boolean;
|
|
1167
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1078
1168
|
}
|
|
1079
1169
|
|
|
1080
|
-
declare const
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
type TabsComponent = react__default.ForwardRefExoticComponent<TabsProps & react__default.RefAttributes<HTMLDivElement>> & {
|
|
1085
|
-
Root: typeof TabsRoot;
|
|
1086
|
-
List: typeof TabsList;
|
|
1087
|
-
Trigger: typeof TabsTrigger;
|
|
1088
|
-
Panel: typeof TabsPanel;
|
|
1170
|
+
declare const Tabs: (({ value: valueProp, defaultValue, onChange, variant, orientation, className, children, rootRef, ...rest }: TabsProps) => React.JSX.Element) & {
|
|
1171
|
+
Root: ({ value: valueProp, defaultValue, onChange, variant, orientation, className, children, rootRef, ...rest }: TabsProps) => React.JSX.Element;
|
|
1172
|
+
List: ({ className, items, rootRef, ...rest }: TabsListProps) => React.JSX.Element | null;
|
|
1173
|
+
Panel: ({ value, className, children, forceMount: _forceMount, hidden, rootRef, ...rest }: TabsPanelProps) => React.JSX.Element;
|
|
1089
1174
|
};
|
|
1090
|
-
declare const Tabs: TabsComponent;
|
|
1091
1175
|
|
|
1092
|
-
type
|
|
1093
|
-
type
|
|
1094
|
-
interface
|
|
1095
|
-
size?:
|
|
1096
|
-
weight?:
|
|
1176
|
+
type TextSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1177
|
+
type TextWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
1178
|
+
interface TextProps extends Omit<ComponentPropsWithoutRef<'span'>, 'color'> {
|
|
1179
|
+
size?: TextSize;
|
|
1180
|
+
weight?: TextWeight;
|
|
1097
1181
|
as?: ElementType;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
interface TextProps extends Omit<TypeProps, 'color'> {
|
|
1101
1182
|
color?: 'primary' | 'secondary' | 'tertiary' | 'muted' | 'info' | 'success' | 'warning' | 'error' | 'disabled';
|
|
1183
|
+
rootRef?: Ref<HTMLElement>;
|
|
1102
1184
|
}
|
|
1103
1185
|
|
|
1104
|
-
declare const Text:
|
|
1186
|
+
declare const Text: ({ color, size, weight, as, className, rootRef, ...rest }: TextProps) => React.JSX.Element;
|
|
1105
1187
|
|
|
1106
1188
|
type PasswordStrength = 'empty' | 'weak' | 'fair' | 'good' | 'strong';
|
|
1107
1189
|
interface PasswordFieldProps extends Omit<TextFieldProps, 'type' | 'postfix'> {
|
|
@@ -1112,27 +1194,30 @@ interface PasswordFieldProps extends Omit<TextFieldProps, 'type' | 'postfix'> {
|
|
|
1112
1194
|
hidePasswordLabel?: string;
|
|
1113
1195
|
showStrength?: boolean;
|
|
1114
1196
|
strengthLabels?: Partial<Record<Exclude<PasswordStrength, 'empty'>, string>>;
|
|
1197
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1115
1198
|
}
|
|
1116
1199
|
|
|
1117
1200
|
declare function getPasswordStrength(password: string): PasswordStrength;
|
|
1118
|
-
declare
|
|
1201
|
+
declare function PasswordField({ defaultVisible, visible: controlledVisible, onVisibleChange, showPasswordLabel, hidePasswordLabel, showStrength, strengthLabels, value, defaultValue, onChange, description, 'aria-describedby': ariaDescribedBy, id: providedId, inputRef, ...props }: PasswordFieldProps): React.JSX.Element;
|
|
1119
1202
|
|
|
1120
1203
|
type FormMessageVariant = 'error' | 'hint' | 'success';
|
|
1121
1204
|
interface FormMessageProps extends Omit<ComponentPropsWithoutRef<'p'>, 'color'> {
|
|
1122
1205
|
variant?: FormMessageVariant;
|
|
1123
|
-
children:
|
|
1206
|
+
children: React__default.ReactNode;
|
|
1207
|
+
rootRef?: Ref<HTMLParagraphElement>;
|
|
1124
1208
|
}
|
|
1125
1209
|
|
|
1126
|
-
declare
|
|
1210
|
+
declare function FormMessage({ variant, className, role, children, rootRef, ...rest }: FormMessageProps): React.JSX.Element;
|
|
1127
1211
|
|
|
1128
1212
|
interface TextareaFieldProps extends FieldBaseProps, Omit<ComponentPropsWithoutRef<'textarea'>, 'size' | 'width' | 'prefix' | keyof FieldBaseProps> {
|
|
1129
1213
|
wrapperClassName?: string;
|
|
1130
1214
|
minRows?: number;
|
|
1131
1215
|
maxHeight?: number | string;
|
|
1132
1216
|
autoResize?: boolean;
|
|
1217
|
+
inputRef?: Ref<HTMLTextAreaElement>;
|
|
1133
1218
|
}
|
|
1134
1219
|
|
|
1135
|
-
declare
|
|
1220
|
+
declare function TextareaField({ className, wrapperClassName, autoResize, minRows, maxHeight, rows, value, onChange, onClear, style, inputRef, ...props }: TextareaFieldProps): React.JSX.Element;
|
|
1136
1221
|
|
|
1137
1222
|
type Theme = 'light' | 'dark';
|
|
1138
1223
|
type ThemeApplyTarget = 'wrapper' | 'document';
|
|
@@ -1141,7 +1226,8 @@ interface ThemeProviderProps extends Omit<ComponentPropsWithoutRef<'div'>, 'chil
|
|
|
1141
1226
|
theme?: Theme;
|
|
1142
1227
|
onThemeChange?: (theme: Theme) => void;
|
|
1143
1228
|
applyTo?: ThemeApplyTarget;
|
|
1144
|
-
children:
|
|
1229
|
+
children: React__default.ReactNode;
|
|
1230
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1145
1231
|
}
|
|
1146
1232
|
|
|
1147
1233
|
interface ThemeContextProps {
|
|
@@ -1150,7 +1236,7 @@ interface ThemeContextProps {
|
|
|
1150
1236
|
toggleTheme: () => void;
|
|
1151
1237
|
}
|
|
1152
1238
|
declare const useTheme: () => ThemeContextProps;
|
|
1153
|
-
declare const ThemeProvider:
|
|
1239
|
+
declare const ThemeProvider: ({ initialTheme, theme: themeProp, onThemeChange, applyTo, children, className, rootRef, ...rest }: ThemeProviderProps) => React__default.JSX.Element;
|
|
1154
1240
|
|
|
1155
1241
|
declare const ru: {
|
|
1156
1242
|
readonly common: {
|
|
@@ -1285,6 +1371,7 @@ declare const ru: {
|
|
|
1285
1371
|
readonly prev: "Предыдущее изображение";
|
|
1286
1372
|
readonly next: "Следующее изображение";
|
|
1287
1373
|
readonly imageN: "Изображение {index}";
|
|
1374
|
+
readonly thumbnails: "Миниатюры";
|
|
1288
1375
|
};
|
|
1289
1376
|
readonly imageLightbox: {
|
|
1290
1377
|
readonly close: "Закрыть галерею";
|
|
@@ -1335,6 +1422,7 @@ declare const ru: {
|
|
|
1335
1422
|
readonly commandPalette: {
|
|
1336
1423
|
readonly placeholder: "Поиск команд…";
|
|
1337
1424
|
readonly title: "Командная палитра";
|
|
1425
|
+
readonly empty: "Ничего не найдено";
|
|
1338
1426
|
};
|
|
1339
1427
|
readonly pullToRefresh: {
|
|
1340
1428
|
readonly pull: "Потяните для обновления";
|
|
@@ -1427,14 +1515,15 @@ interface LocaleProviderProps {
|
|
|
1427
1515
|
children: ReactNode;
|
|
1428
1516
|
}
|
|
1429
1517
|
|
|
1430
|
-
declare const LocaleProvider:
|
|
1518
|
+
declare const LocaleProvider: React__default.FC<LocaleProviderProps>;
|
|
1431
1519
|
|
|
1432
1520
|
interface TitleProps extends ComponentPropsWithoutRef<'h2'> {
|
|
1433
1521
|
level?: 1 | 2 | 3 | 4;
|
|
1434
1522
|
weight?: 'normal' | 'medium' | 'bold';
|
|
1523
|
+
rootRef?: Ref<HTMLHeadingElement>;
|
|
1435
1524
|
}
|
|
1436
1525
|
|
|
1437
|
-
declare const Title:
|
|
1526
|
+
declare const Title: ({ level, weight, className, rootRef, ...rest }: TitleProps) => React.JSX.Element;
|
|
1438
1527
|
|
|
1439
1528
|
type TooltipSide = AnchorSide;
|
|
1440
1529
|
type TooltipTriggerProps = {
|
|
@@ -1447,50 +1536,48 @@ type TooltipBaseProps = {
|
|
|
1447
1536
|
className?: string;
|
|
1448
1537
|
open?: boolean;
|
|
1449
1538
|
defaultOpen?: boolean;
|
|
1450
|
-
onOpenChange?: (open: boolean) => void;
|
|
1451
1539
|
openDelay?: number;
|
|
1452
1540
|
closeDelay?: number;
|
|
1453
1541
|
disabled?: boolean;
|
|
1542
|
+
rootRef?: Ref<HTMLElement>;
|
|
1454
1543
|
wrap?: boolean;
|
|
1455
1544
|
};
|
|
1456
1545
|
type TooltipProps = WithEnrichedChildren<TooltipBaseProps, TooltipTriggerProps>;
|
|
1457
1546
|
|
|
1458
|
-
declare const Tooltip:
|
|
1459
|
-
content: ReactNode;
|
|
1460
|
-
side?: TooltipSide;
|
|
1461
|
-
className?: string;
|
|
1462
|
-
open?: boolean;
|
|
1463
|
-
defaultOpen?: boolean;
|
|
1464
|
-
onOpenChange?: (open: boolean) => void;
|
|
1465
|
-
openDelay?: number;
|
|
1466
|
-
closeDelay?: number;
|
|
1467
|
-
disabled?: boolean;
|
|
1468
|
-
wrap?: boolean;
|
|
1469
|
-
} & {
|
|
1470
|
-
children: react.ReactElement<any, string | react.JSXElementConstructor<any>> | RenderChildrenFn<TooltipTriggerProps>;
|
|
1471
|
-
} & react.RefAttributes<HTMLElement>>;
|
|
1547
|
+
declare const Tooltip: ({ content, side, children, className, disabled, open, defaultOpen, openDelay, closeDelay, wrap: _wrap, rootRef, }: TooltipProps) => string | number | boolean | React.JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
1472
1548
|
|
|
1473
1549
|
interface UploadZoneProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onChange'> {
|
|
1474
1550
|
onChange?: (files: FileList) => void;
|
|
1475
1551
|
multiple?: boolean;
|
|
1476
|
-
children?:
|
|
1552
|
+
children?: React__default.ReactNode | ((openFileDialog: () => void) => React__default.ReactNode);
|
|
1477
1553
|
readOnly?: boolean;
|
|
1478
1554
|
disabled?: boolean;
|
|
1555
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1479
1556
|
}
|
|
1480
1557
|
|
|
1481
|
-
declare const UploadZone:
|
|
1558
|
+
declare const UploadZone: ({ onChange, multiple, className, children, readOnly, disabled, id, rootRef, ...rest }: UploadZoneProps) => React.JSX.Element;
|
|
1482
1559
|
|
|
1483
1560
|
type SeparatorOrientation = 'horizontal' | 'vertical';
|
|
1484
1561
|
type SeparatorSpace = SpacingToken | number | string;
|
|
1485
1562
|
interface SeparatorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1563
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1486
1564
|
orientation?: SeparatorOrientation;
|
|
1487
1565
|
decorative?: boolean;
|
|
1488
|
-
children?:
|
|
1566
|
+
children?: React__default.ReactNode;
|
|
1489
1567
|
start?: SeparatorSpace;
|
|
1490
1568
|
end?: SeparatorSpace;
|
|
1491
1569
|
}
|
|
1492
1570
|
|
|
1493
|
-
declare const Separator:
|
|
1571
|
+
declare const Separator: ({ orientation, decorative, children, start, end, className, style, rootRef, ...rest }: SeparatorProps) => React.JSX.Element;
|
|
1572
|
+
|
|
1573
|
+
type GapOrientation = 'horizontal' | 'vertical';
|
|
1574
|
+
interface GapProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1575
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1576
|
+
size?: SpacingValue;
|
|
1577
|
+
orientation?: GapOrientation;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
declare const Gap: ({ size, orientation, className, style, rootRef, ...rest }: GapProps) => React.JSX.Element;
|
|
1494
1581
|
|
|
1495
1582
|
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
1496
1583
|
type AlertLayout = 'block' | 'inline';
|
|
@@ -1498,28 +1585,31 @@ interface AlertProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
|
1498
1585
|
variant?: AlertVariant;
|
|
1499
1586
|
size?: ControlSize;
|
|
1500
1587
|
layout?: AlertLayout;
|
|
1501
|
-
role?:
|
|
1502
|
-
title?:
|
|
1503
|
-
icon?:
|
|
1504
|
-
actions?:
|
|
1588
|
+
role?: React__default.AriaRole;
|
|
1589
|
+
title?: React__default.ReactNode;
|
|
1590
|
+
icon?: React__default.ReactNode | null;
|
|
1591
|
+
actions?: React__default.ReactNode;
|
|
1505
1592
|
onClose?: () => void;
|
|
1506
1593
|
closeLabel?: string;
|
|
1594
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1507
1595
|
}
|
|
1508
1596
|
|
|
1509
|
-
declare
|
|
1597
|
+
declare function Alert({ variant, size, layout, className, role, title, icon, actions, onClose, closeLabel: closeLabelProp, children, rootRef, ...rest }: AlertProps): React.JSX.Element;
|
|
1510
1598
|
|
|
1511
1599
|
interface KbdProps extends ComponentPropsWithoutRef<'kbd'> {
|
|
1512
|
-
children:
|
|
1600
|
+
children: React__default.ReactNode;
|
|
1513
1601
|
symbol?: boolean;
|
|
1602
|
+
rootRef?: Ref<HTMLElement>;
|
|
1514
1603
|
}
|
|
1515
1604
|
interface KbdGroupProps extends ComponentPropsWithoutRef<'span'> {
|
|
1516
|
-
children:
|
|
1605
|
+
children: React__default.ReactNode;
|
|
1606
|
+
rootRef?: Ref<HTMLSpanElement>;
|
|
1517
1607
|
}
|
|
1518
1608
|
|
|
1519
|
-
declare const Kbd:
|
|
1520
|
-
declare const KbdGroup:
|
|
1609
|
+
declare const Kbd: ({ children, symbol, className, rootRef, ...rest }: KbdProps) => React.JSX.Element;
|
|
1610
|
+
declare const KbdGroup: ({ children, className, rootRef, ...rest }: KbdGroupProps) => React.JSX.Element;
|
|
1521
1611
|
|
|
1522
|
-
declare
|
|
1612
|
+
declare function Item({ size, variant, interactive, wrap, as, media, mediaVariant, mediaClassName, title, titleClassName, description, descriptionClassName, actions, actionsClassName, className, onClick, role, rootRef, ...rest }: ItemProps): React.JSX.Element;
|
|
1523
1613
|
|
|
1524
1614
|
type BubbleVariant = 'default' | 'outgoing' | 'incoming' | 'system';
|
|
1525
1615
|
type BubbleAlign = 'start' | 'end';
|
|
@@ -1530,129 +1620,33 @@ interface BubbleReaction {
|
|
|
1530
1620
|
onClick?: () => void;
|
|
1531
1621
|
}
|
|
1532
1622
|
interface BubbleProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
1533
|
-
children:
|
|
1623
|
+
children: React__default.ReactNode;
|
|
1534
1624
|
variant?: BubbleVariant;
|
|
1535
1625
|
align?: BubbleAlign;
|
|
1536
1626
|
group?: 'single' | 'first' | 'middle' | 'last';
|
|
1537
|
-
meta?:
|
|
1627
|
+
meta?: React__default.ReactNode;
|
|
1538
1628
|
reactions?: BubbleReaction[];
|
|
1539
1629
|
collapsible?: boolean;
|
|
1540
1630
|
collapsedLines?: number;
|
|
1541
1631
|
expandLabel?: string;
|
|
1542
1632
|
collapseLabel?: string;
|
|
1633
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1543
1634
|
}
|
|
1544
1635
|
|
|
1545
|
-
declare const Bubble:
|
|
1636
|
+
declare const Bubble: ({ children, variant, align, group, meta, reactions, collapsible, collapsedLines, expandLabel, collapseLabel, className, style, rootRef, ...rest }: BubbleProps) => React.JSX.Element;
|
|
1546
1637
|
|
|
1547
1638
|
type MarkerVariant = 'default' | 'separator' | 'note' | 'row';
|
|
1548
1639
|
interface MarkerProps extends ComponentPropsWithoutRef<'div'> {
|
|
1549
|
-
children?:
|
|
1550
|
-
icon?:
|
|
1640
|
+
children?: React__default.ReactNode;
|
|
1641
|
+
icon?: React__default.ReactNode;
|
|
1551
1642
|
shimmer?: boolean;
|
|
1552
1643
|
variant?: MarkerVariant;
|
|
1644
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1553
1645
|
}
|
|
1554
1646
|
|
|
1555
|
-
declare const Marker:
|
|
1556
|
-
|
|
1557
|
-
type BackdropVariant = 'default' | 'strong';
|
|
1558
|
-
type BackdropBlur = 'none' | 'sm' | 'md';
|
|
1559
|
-
type BackdropPosition = 'fixed' | 'absolute';
|
|
1560
|
-
interface BackdropProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onClick'> {
|
|
1561
|
-
variant?: BackdropVariant;
|
|
1562
|
-
blur?: BackdropBlur;
|
|
1563
|
-
position?: BackdropPosition;
|
|
1564
|
-
onClick?: () => void;
|
|
1565
|
-
zIndex?: number;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.RefAttributes<HTMLDivElement>>;
|
|
1647
|
+
declare const Marker: ({ children, icon, shimmer, variant, className, rootRef, ...rest }: MarkerProps) => React.JSX.Element;
|
|
1569
1648
|
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
type OverlayVariant = 'modal' | 'sheet' | 'floating';
|
|
1573
|
-
type OverlaySheetSide = 'top' | 'bottom' | 'left' | 'right';
|
|
1574
|
-
|
|
1575
|
-
type OverlayDismiss = 'outside' | 'escape' | 'all' | 'none';
|
|
1576
|
-
type OverlayContentProps = Omit<react__default.HTMLAttributes<HTMLElement>, 'role' | 'color'> & {
|
|
1577
|
-
role?: string;
|
|
1578
|
-
'aria-modal'?: boolean | 'true' | 'false';
|
|
1579
|
-
'aria-label'?: string;
|
|
1580
|
-
'aria-labelledby'?: string;
|
|
1581
|
-
'aria-describedby'?: string;
|
|
1582
|
-
'data-side'?: AnchorSide;
|
|
1583
|
-
'data-kind'?: OverlayVariant;
|
|
1584
|
-
'data-presented'?: string;
|
|
1585
|
-
};
|
|
1586
|
-
type OverlayChildren = RenderChildrenFn<OverlayContentProps> | react__default.ReactElement;
|
|
1587
|
-
type OverlayBaseProps = {
|
|
1588
|
-
children: OverlayChildren;
|
|
1589
|
-
open: boolean;
|
|
1590
|
-
onOpenChange: (open: boolean) => void;
|
|
1591
|
-
className?: string;
|
|
1592
|
-
purpose?: OverlayPurpose;
|
|
1593
|
-
zIndex?: number | string;
|
|
1594
|
-
'aria-label'?: string;
|
|
1595
|
-
'aria-labelledby'?: string;
|
|
1596
|
-
'aria-describedby'?: string;
|
|
1597
|
-
role?: string;
|
|
1598
|
-
};
|
|
1599
|
-
type OverlayModalProps = OverlayBaseProps & {
|
|
1600
|
-
variant: 'modal';
|
|
1601
|
-
backdropVariant?: BackdropVariant;
|
|
1602
|
-
backdropBlur?: BackdropBlur;
|
|
1603
|
-
};
|
|
1604
|
-
type OverlayFloatingProps = OverlayBaseProps & {
|
|
1605
|
-
variant: 'floating';
|
|
1606
|
-
style?: react__default.CSSProperties;
|
|
1607
|
-
backdrop?: boolean;
|
|
1608
|
-
backdropVariant?: BackdropVariant;
|
|
1609
|
-
backdropBlur?: BackdropBlur;
|
|
1610
|
-
dismiss?: OverlayDismiss;
|
|
1611
|
-
lockScroll?: boolean;
|
|
1612
|
-
trapFocus?: boolean;
|
|
1613
|
-
};
|
|
1614
|
-
type OverlaySheetProps = OverlayBaseProps & {
|
|
1615
|
-
variant: 'sheet';
|
|
1616
|
-
side?: OverlaySheetSide;
|
|
1617
|
-
backdrop?: boolean;
|
|
1618
|
-
backdropVariant?: BackdropVariant;
|
|
1619
|
-
backdropBlur?: BackdropBlur;
|
|
1620
|
-
dismiss?: OverlayDismiss;
|
|
1621
|
-
};
|
|
1622
|
-
type OverlayProps = OverlayModalProps | OverlayFloatingProps | OverlaySheetProps;
|
|
1623
|
-
|
|
1624
|
-
type PopoverTriggerMode = 'click' | 'hover' | 'manual';
|
|
1625
|
-
type PopoverContentVariant = 'panel' | 'plain';
|
|
1626
|
-
type PopoverTriggerSlotProps = {
|
|
1627
|
-
className?: string;
|
|
1628
|
-
'aria-expanded'?: boolean;
|
|
1629
|
-
'aria-haspopup'?: 'dialog' | 'true';
|
|
1630
|
-
'aria-controls'?: string;
|
|
1631
|
-
'aria-describedby'?: string;
|
|
1632
|
-
};
|
|
1633
|
-
interface PopoverProps {
|
|
1634
|
-
children?: ReactNode;
|
|
1635
|
-
renderTrigger: RenderChildrenFn<PopoverTriggerSlotProps>;
|
|
1636
|
-
open?: boolean;
|
|
1637
|
-
defaultOpen?: boolean;
|
|
1638
|
-
onOpenChange?: (open: boolean) => void;
|
|
1639
|
-
trigger?: PopoverTriggerMode;
|
|
1640
|
-
disabled?: boolean;
|
|
1641
|
-
variant?: PopoverContentVariant;
|
|
1642
|
-
className?: string;
|
|
1643
|
-
role?: AriaRole;
|
|
1644
|
-
side?: AnchorSide;
|
|
1645
|
-
align?: AnchorAlign;
|
|
1646
|
-
widthMode?: 'trigger' | 'content' | 'trigger-fit';
|
|
1647
|
-
openDelay?: number;
|
|
1648
|
-
closeDelay?: number;
|
|
1649
|
-
dismiss?: OverlayDismiss;
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
declare function Popover({ children, renderTrigger, open: controlledOpen, defaultOpen, onOpenChange, trigger, disabled, variant, className, role, side, align, widthMode, openDelay, closeDelay, dismiss, }: PopoverProps): react.JSX.Element;
|
|
1653
|
-
declare namespace Popover {
|
|
1654
|
-
var displayName: string;
|
|
1655
|
-
}
|
|
1649
|
+
declare function Popover({ children, trigger, id, disabled, variant, className, role, side, align, widthMode, popoverTargetAction, defaultOpen, onToggle, panelRef, }: PopoverProps): React.JSX.Element;
|
|
1656
1650
|
|
|
1657
1651
|
interface PopupSwitchOption<T extends string | number = string> {
|
|
1658
1652
|
value: T;
|
|
@@ -1661,12 +1655,13 @@ interface PopupSwitchOption<T extends string | number = string> {
|
|
|
1661
1655
|
}
|
|
1662
1656
|
type PopupSwitchVariant = 'secondary' | 'tinted' | 'ghost';
|
|
1663
1657
|
type PopupSwitchWidth = 'auto' | 'options';
|
|
1664
|
-
type PopupSwitchAlign = 'start' | 'center';
|
|
1658
|
+
type PopupSwitchAlign = 'start' | 'center' | 'end';
|
|
1665
1659
|
interface PopupSwitchProps<T extends string | number = string> {
|
|
1666
1660
|
value: T;
|
|
1667
1661
|
options: Array<PopupSwitchOption<T>>;
|
|
1668
1662
|
onChange: (value: T) => void;
|
|
1669
1663
|
disabled?: boolean;
|
|
1664
|
+
rootRef?: Ref<HTMLButtonElement>;
|
|
1670
1665
|
className?: string;
|
|
1671
1666
|
placeholder?: string;
|
|
1672
1667
|
size?: ControlSize;
|
|
@@ -1676,21 +1671,34 @@ interface PopupSwitchProps<T extends string | number = string> {
|
|
|
1676
1671
|
'aria-label'?: string;
|
|
1677
1672
|
}
|
|
1678
1673
|
|
|
1679
|
-
declare
|
|
1680
|
-
|
|
1681
|
-
})
|
|
1674
|
+
declare function PopupSwitch<T extends string | number = string>({ value, options, onChange, disabled, className, placeholder, size, variant, width, align, rootRef, 'aria-label': ariaLabel, }: PopupSwitchProps<T>): React.JSX.Element;
|
|
1675
|
+
|
|
1676
|
+
declare function ActionList({ items, groups, className, id: providedId, 'aria-label': ariaLabelProp, onAction, onHighlightChange, filterable, filterPlaceholder, query, onQueryChange, emptyText, rootRef, ...rest }: ActionListProps): React.JSX.Element;
|
|
1677
|
+
|
|
1678
|
+
interface ActionItemProps extends Omit<ComponentPropsWithoutRef<'span'>, 'children'> {
|
|
1679
|
+
label: ReactNode;
|
|
1680
|
+
description?: ReactNode;
|
|
1681
|
+
icon?: ReactNode;
|
|
1682
|
+
shortcut?: ReactNode;
|
|
1683
|
+
}
|
|
1682
1684
|
|
|
1683
|
-
declare
|
|
1685
|
+
declare function ActionItem({ label, description, icon, shortcut, className, ...rest }: ActionItemProps): React.JSX.Element;
|
|
1684
1686
|
|
|
1685
1687
|
interface ActionSheetTriggerProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1686
|
-
children:
|
|
1688
|
+
children: ReactNode;
|
|
1689
|
+
items?: ActionListItem[];
|
|
1690
|
+
groups?: ActionListGroup[];
|
|
1691
|
+
onAction?: (item: ActionListItem) => void;
|
|
1692
|
+
onOpenChange?: (open: boolean) => void;
|
|
1693
|
+
mobileTitle?: ReactNode;
|
|
1687
1694
|
showOverflowTrigger?: boolean;
|
|
1688
1695
|
longPressMs?: number;
|
|
1689
1696
|
moveThreshold?: number;
|
|
1690
1697
|
disabled?: boolean;
|
|
1698
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1691
1699
|
}
|
|
1692
1700
|
|
|
1693
|
-
declare
|
|
1701
|
+
declare function ActionSheetTrigger({ children, items, groups, onAction, onOpenChange, mobileTitle, showOverflowTrigger, longPressMs, moveThreshold, disabled, className, rootRef, 'aria-label': ariaLabel, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onContextMenu, onClick, onAnimationEnd, ...rest }: ActionSheetTriggerProps): React.JSX.Element;
|
|
1694
1702
|
|
|
1695
1703
|
type OverflowDisplay = 'icon' | 'icon-label';
|
|
1696
1704
|
type OverflowItemDomProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick' | 'type' | 'color'>;
|
|
@@ -1720,24 +1728,38 @@ interface OverflowProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
1720
1728
|
maxVisible?: number;
|
|
1721
1729
|
align?: DropdownAlign;
|
|
1722
1730
|
moreLabel?: string;
|
|
1731
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1723
1732
|
}
|
|
1724
1733
|
|
|
1725
|
-
declare
|
|
1726
|
-
|
|
1727
|
-
Item:
|
|
1734
|
+
declare function OverflowRoot(props: OverflowProps): React.JSX.Element;
|
|
1735
|
+
declare const Overflow: typeof OverflowRoot & {
|
|
1736
|
+
Item: FC<OverflowItemProps>;
|
|
1728
1737
|
};
|
|
1729
|
-
declare const Overflow: OverflowComponent;
|
|
1730
1738
|
|
|
1731
1739
|
type SelectOption = ListboxOption;
|
|
1732
1740
|
type SelectSelectionMode = 'single' | 'multiple' | 'path';
|
|
1741
|
+
type SelectTriggerMode = 'button' | 'input';
|
|
1733
1742
|
interface SelectCustomTriggerProps {
|
|
1734
1743
|
triggerRef: (node: HTMLElement | null) => void;
|
|
1735
|
-
|
|
1744
|
+
popoverTarget?: string;
|
|
1745
|
+
popoverTargetAction?: PopoverTargetAction;
|
|
1736
1746
|
listboxId: string;
|
|
1737
1747
|
activeDescendantId?: string;
|
|
1748
|
+
'aria-expanded'?: boolean;
|
|
1738
1749
|
chevron: ReactNode;
|
|
1739
|
-
onClick:
|
|
1740
|
-
|
|
1750
|
+
onClick: React__default.MouseEventHandler<HTMLElement>;
|
|
1751
|
+
onFocus: React__default.FocusEventHandler<HTMLElement>;
|
|
1752
|
+
onKeyDown: React__default.KeyboardEventHandler<HTMLElement>;
|
|
1753
|
+
}
|
|
1754
|
+
interface SelectSelectionState {
|
|
1755
|
+
value: string | string[];
|
|
1756
|
+
valueArray: string[];
|
|
1757
|
+
selectedOptions: SelectOption[];
|
|
1758
|
+
selectionMode: SelectSelectionMode;
|
|
1759
|
+
hasValue: boolean;
|
|
1760
|
+
isReadOnly: boolean;
|
|
1761
|
+
removeOption: (optionValue: string) => void;
|
|
1762
|
+
clearValue: () => void;
|
|
1741
1763
|
}
|
|
1742
1764
|
interface SelectProps extends FieldBaseProps {
|
|
1743
1765
|
options: SelectOption[];
|
|
@@ -1746,7 +1768,6 @@ interface SelectProps extends FieldBaseProps {
|
|
|
1746
1768
|
value?: string | string[];
|
|
1747
1769
|
defaultValue?: string | string[];
|
|
1748
1770
|
onChange?: (value: string | string[]) => void;
|
|
1749
|
-
open?: boolean;
|
|
1750
1771
|
defaultOpen?: boolean;
|
|
1751
1772
|
onOpenChange?: (open: boolean) => void;
|
|
1752
1773
|
closeOnSelect?: boolean;
|
|
@@ -1760,9 +1781,17 @@ interface SelectProps extends FieldBaseProps {
|
|
|
1760
1781
|
popupRole?: 'listbox' | 'tree' | 'dialog' | 'menu';
|
|
1761
1782
|
filterable?: boolean;
|
|
1762
1783
|
filterPlaceholder?: string;
|
|
1784
|
+
allowCustom?: boolean;
|
|
1785
|
+
name?: string;
|
|
1786
|
+
required?: boolean;
|
|
1787
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1788
|
+
onFocus?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1789
|
+
onBlur?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1790
|
+
onClick?: React__default.MouseEventHandler<HTMLInputElement>;
|
|
1791
|
+
onKeyDown?: React__default.KeyboardEventHandler<HTMLInputElement>;
|
|
1763
1792
|
align?: DropdownAlign;
|
|
1764
1793
|
widthMode?: DropdownWidthMode;
|
|
1765
|
-
triggerMode?:
|
|
1794
|
+
triggerMode?: SelectTriggerMode;
|
|
1766
1795
|
mobileTitle?: ReactNode;
|
|
1767
1796
|
mobileLeftControls?: ReactNode;
|
|
1768
1797
|
mobileRightControls?: ReactNode;
|
|
@@ -1774,19 +1803,20 @@ interface SelectProps extends FieldBaseProps {
|
|
|
1774
1803
|
noOptionsText?: string;
|
|
1775
1804
|
preventOptionMouseDown?: boolean;
|
|
1776
1805
|
listAriaLabel?: string;
|
|
1777
|
-
customTrigger?: (
|
|
1806
|
+
customTrigger?: (triggerProps: SelectCustomTriggerProps, selectionState: SelectSelectionState) => ReactNode;
|
|
1778
1807
|
onComboboxEnter?: () => void;
|
|
1779
1808
|
onComboboxEscape?: () => void;
|
|
1780
1809
|
popupClassName?: string;
|
|
1810
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1781
1811
|
className?: string;
|
|
1782
1812
|
id?: string;
|
|
1783
1813
|
'aria-label'?: string;
|
|
1784
1814
|
}
|
|
1785
1815
|
|
|
1786
|
-
declare const Select:
|
|
1816
|
+
declare const Select: ({ options, groups, selectionMode, value: controlledValue, defaultValue, onChange, defaultOpen, onOpenChange, disabled, readOnly, closeOnSelect, filterFn, filterQuery: controlledFilterQuery, defaultFilterQuery, onFilterQueryChange, placeholder, loading, separator, popupRole, filterable, filterPlaceholder, allowCustom, name, required, inputRef, onFocus, onBlur, onClick, onKeyDown, align, widthMode, triggerMode, mobileTitle, mobileLeftControls, mobileRightControls, panelScroll, navigation, highlightedIndex, onHighlightChange, showCheck, noOptionsText: noOptionsTextProp, preventOptionMouseDown, listAriaLabel, customTrigger, onComboboxEnter, onComboboxEscape, popupClassName, rootRef, className, id: providedId, label, size, width, prefix, postfix: _postfix, error, description, onClear, clearLabel, "aria-label": ariaLabel, }: SelectProps) => React.JSX.Element;
|
|
1787
1817
|
|
|
1788
1818
|
type SuggestFieldOption = SelectOption;
|
|
1789
|
-
interface SuggestFieldProps extends FieldBaseProps
|
|
1819
|
+
interface SuggestFieldProps extends FieldBaseProps {
|
|
1790
1820
|
options: SuggestFieldOption[];
|
|
1791
1821
|
value?: string;
|
|
1792
1822
|
defaultValue?: string;
|
|
@@ -1794,46 +1824,113 @@ interface SuggestFieldProps extends FieldBaseProps, Omit<react__default.HTMLAttr
|
|
|
1794
1824
|
className?: string;
|
|
1795
1825
|
name?: string;
|
|
1796
1826
|
required?: boolean;
|
|
1797
|
-
allowCustom?: boolean;
|
|
1798
1827
|
filterFn?: ListboxFilterFn<SuggestFieldOption>;
|
|
1799
1828
|
noOptionsText?: string;
|
|
1800
1829
|
onChange?: (value: string) => void;
|
|
1801
|
-
onFocus?:
|
|
1802
|
-
onBlur?:
|
|
1803
|
-
onClick?:
|
|
1804
|
-
onKeyDown?:
|
|
1830
|
+
onFocus?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1831
|
+
onBlur?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1832
|
+
onClick?: React__default.MouseEventHandler<HTMLInputElement>;
|
|
1833
|
+
onKeyDown?: React__default.KeyboardEventHandler<HTMLInputElement>;
|
|
1834
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1835
|
+
id?: string;
|
|
1836
|
+
'aria-label'?: string;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
declare const SuggestField: ({ value, defaultValue, onChange, width, noOptionsText, label, "aria-label": ariaLabel, postfix: _postfix, ...props }: SuggestFieldProps) => React.JSX.Element;
|
|
1840
|
+
|
|
1841
|
+
type AutocompleteFieldOption = SelectOption;
|
|
1842
|
+
interface AutocompleteFieldProps extends FieldBaseProps {
|
|
1843
|
+
options: AutocompleteFieldOption[];
|
|
1844
|
+
value?: string;
|
|
1845
|
+
defaultValue?: string;
|
|
1846
|
+
placeholder?: string;
|
|
1847
|
+
className?: string;
|
|
1848
|
+
name?: string;
|
|
1849
|
+
required?: boolean;
|
|
1850
|
+
filterFn?: ListboxFilterFn<AutocompleteFieldOption>;
|
|
1851
|
+
noOptionsText?: string;
|
|
1852
|
+
onChange?: (value: string) => void;
|
|
1853
|
+
onFocus?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1854
|
+
onBlur?: React__default.FocusEventHandler<HTMLInputElement>;
|
|
1855
|
+
onClick?: React__default.MouseEventHandler<HTMLInputElement>;
|
|
1856
|
+
onKeyDown?: React__default.KeyboardEventHandler<HTMLInputElement>;
|
|
1857
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1858
|
+
id?: string;
|
|
1859
|
+
'aria-label'?: string;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
declare const AutocompleteField: ({ value, defaultValue, onChange, width, noOptionsText, label, "aria-label": ariaLabel, postfix: _postfix, ...props }: AutocompleteFieldProps) => React.JSX.Element;
|
|
1863
|
+
|
|
1864
|
+
type MultiSelectOption = SelectOption;
|
|
1865
|
+
interface MultiSelectProps extends FieldBaseProps {
|
|
1866
|
+
options: MultiSelectOption[];
|
|
1867
|
+
groups?: ListboxGroup[];
|
|
1868
|
+
value?: string[];
|
|
1869
|
+
defaultValue?: string[];
|
|
1870
|
+
onChange?: (value: string[]) => void;
|
|
1871
|
+
placeholder?: string;
|
|
1872
|
+
loading?: boolean;
|
|
1873
|
+
defaultOpen?: boolean;
|
|
1874
|
+
onOpenChange?: (open: boolean) => void;
|
|
1875
|
+
closeOnSelect?: boolean;
|
|
1876
|
+
filterFn?: ListboxFilterFn<MultiSelectOption>;
|
|
1877
|
+
filterable?: boolean;
|
|
1878
|
+
filterPlaceholder?: string;
|
|
1879
|
+
filterQuery?: string;
|
|
1880
|
+
defaultFilterQuery?: string;
|
|
1881
|
+
onFilterQueryChange?: (query: string) => void;
|
|
1882
|
+
align?: DropdownAlign;
|
|
1883
|
+
widthMode?: DropdownWidthMode;
|
|
1884
|
+
mobileTitle?: ReactNode;
|
|
1885
|
+
mobileLeftControls?: ReactNode;
|
|
1886
|
+
mobileRightControls?: ReactNode;
|
|
1887
|
+
panelScroll?: DropdownPanelScroll;
|
|
1888
|
+
showCheck?: boolean;
|
|
1889
|
+
noOptionsText?: string;
|
|
1890
|
+
listAriaLabel?: string;
|
|
1891
|
+
popupClassName?: string;
|
|
1892
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1893
|
+
className?: string;
|
|
1894
|
+
id?: string;
|
|
1895
|
+
'aria-label'?: string;
|
|
1805
1896
|
}
|
|
1806
1897
|
|
|
1807
|
-
declare const
|
|
1898
|
+
declare const MultiSelect: ({ options, groups, value, defaultValue, onChange, placeholder, loading, disabled, readOnly, label, size, width, prefix, postfix: _postfix, error, description, onClear, clearLabel, className, id: providedId, "aria-label": ariaLabel, listAriaLabel, noOptionsText, filterable, filterPlaceholder, showCheck, ...popupProps }: MultiSelectProps) => React.JSX.Element;
|
|
1808
1899
|
|
|
1900
|
+
type LayoutNodeRef = Ref<HTMLElement> | Ref<HTMLDivElement> | Ref<HTMLSpanElement> | Ref<HTMLUListElement> | Ref<HTMLOListElement> | Ref<HTMLLIElement>;
|
|
1809
1901
|
type LayoutGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1810
1902
|
type LayoutAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
1811
1903
|
type LayoutJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
1812
1904
|
type LayoutSpacing = 'sm' | 'md' | 'lg';
|
|
1813
1905
|
interface LayoutRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
1814
1906
|
children?: ReactNode;
|
|
1907
|
+
rootRef?: LayoutNodeRef;
|
|
1815
1908
|
as?: ElementType;
|
|
1816
1909
|
padding?: LayoutSpacing;
|
|
1817
1910
|
gap?: LayoutSpacing;
|
|
1818
1911
|
}
|
|
1819
1912
|
interface LayoutHeaderProps extends ComponentPropsWithoutRef<'header'> {
|
|
1820
1913
|
children?: ReactNode;
|
|
1914
|
+
rootRef?: LayoutNodeRef;
|
|
1821
1915
|
sticky?: boolean;
|
|
1822
1916
|
as?: ElementType;
|
|
1823
1917
|
}
|
|
1824
1918
|
interface LayoutContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
1825
1919
|
children?: ReactNode;
|
|
1920
|
+
rootRef?: LayoutNodeRef;
|
|
1826
1921
|
as?: ElementType;
|
|
1827
1922
|
}
|
|
1828
1923
|
type LayoutFooterAlign = 'start' | 'center' | 'end' | 'space-between';
|
|
1829
1924
|
interface LayoutFooterProps extends Omit<ComponentPropsWithoutRef<'footer'>, 'align'> {
|
|
1830
1925
|
children?: ReactNode;
|
|
1926
|
+
rootRef?: LayoutNodeRef;
|
|
1831
1927
|
sticky?: boolean;
|
|
1832
1928
|
align?: LayoutFooterAlign;
|
|
1833
1929
|
as?: ElementType;
|
|
1834
1930
|
}
|
|
1835
1931
|
interface StackProps extends ComponentPropsWithoutRef<'div'> {
|
|
1836
1932
|
children?: ReactNode;
|
|
1933
|
+
rootRef?: LayoutNodeRef;
|
|
1837
1934
|
gap?: LayoutGap;
|
|
1838
1935
|
align?: LayoutAlign;
|
|
1839
1936
|
justify?: LayoutJustify;
|
|
@@ -1841,6 +1938,7 @@ interface StackProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
1841
1938
|
}
|
|
1842
1939
|
interface InlineProps extends ComponentPropsWithoutRef<'div'> {
|
|
1843
1940
|
children?: ReactNode;
|
|
1941
|
+
rootRef?: LayoutNodeRef;
|
|
1844
1942
|
gap?: LayoutGap;
|
|
1845
1943
|
align?: LayoutAlign;
|
|
1846
1944
|
justify?: LayoutJustify;
|
|
@@ -1849,99 +1947,91 @@ interface InlineProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
1849
1947
|
}
|
|
1850
1948
|
interface SplitProps extends ComponentPropsWithoutRef<'div'> {
|
|
1851
1949
|
children?: ReactNode;
|
|
1950
|
+
rootRef?: LayoutNodeRef;
|
|
1852
1951
|
gap?: LayoutGap;
|
|
1853
1952
|
align?: LayoutAlign;
|
|
1854
1953
|
}
|
|
1855
1954
|
interface LayoutItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
1856
1955
|
children?: ReactNode;
|
|
1956
|
+
rootRef?: LayoutNodeRef;
|
|
1857
1957
|
grow?: boolean;
|
|
1858
1958
|
shrink?: boolean;
|
|
1859
1959
|
as?: 'div' | 'li';
|
|
1860
1960
|
}
|
|
1861
1961
|
interface ControlRowProps extends ComponentPropsWithoutRef<'div'> {
|
|
1862
1962
|
children?: ReactNode;
|
|
1963
|
+
rootRef?: LayoutNodeRef;
|
|
1863
1964
|
gap?: LayoutGap;
|
|
1864
1965
|
align?: LayoutAlign;
|
|
1865
1966
|
justify?: LayoutJustify;
|
|
1866
1967
|
wrap?: boolean;
|
|
1867
1968
|
}
|
|
1868
1969
|
|
|
1869
|
-
declare const LayoutItem:
|
|
1970
|
+
declare const LayoutItem: ({ grow, shrink, className, as, rootRef, ...rest }: LayoutItemProps) => React.JSX.Element;
|
|
1870
1971
|
|
|
1871
|
-
declare const Stack:
|
|
1972
|
+
declare const Stack: ({ rootRef, gap, align, justify, ...props }: StackProps) => React.JSX.Element;
|
|
1872
1973
|
|
|
1873
|
-
declare const Inline:
|
|
1974
|
+
declare const Inline: ({ rootRef, gap, align, justify, wrap, ...props }: InlineProps) => React.JSX.Element;
|
|
1874
1975
|
|
|
1875
|
-
declare const Split:
|
|
1976
|
+
declare const Split: ({ rootRef, gap, align, ...props }: SplitProps) => React.JSX.Element;
|
|
1876
1977
|
|
|
1877
|
-
type ControlRowComponent =
|
|
1978
|
+
type ControlRowComponent = {
|
|
1979
|
+
(props: ControlRowProps): ReactElement;
|
|
1878
1980
|
Item: typeof LayoutItem;
|
|
1879
1981
|
};
|
|
1880
|
-
declare const ControlRowInner: react.ForwardRefExoticComponent<ControlRowProps & react.RefAttributes<HTMLDivElement>>;
|
|
1881
1982
|
declare const ControlRow: ControlRowComponent;
|
|
1882
1983
|
|
|
1883
|
-
declare const LayoutRoot:
|
|
1884
|
-
declare const LayoutHeader:
|
|
1885
|
-
declare const LayoutContent:
|
|
1886
|
-
declare const LayoutFooter:
|
|
1887
|
-
declare const Layout:
|
|
1888
|
-
Header:
|
|
1889
|
-
Content:
|
|
1890
|
-
Footer:
|
|
1984
|
+
declare const LayoutRoot: (props: LayoutRootProps) => React.JSX.Element;
|
|
1985
|
+
declare const LayoutHeader: ({ as, ...props }: LayoutHeaderProps) => React.JSX.Element;
|
|
1986
|
+
declare const LayoutContent: (props: LayoutContentProps) => React.JSX.Element;
|
|
1987
|
+
declare const LayoutFooter: ({ as, align, ...props }: LayoutFooterProps) => React.JSX.Element;
|
|
1988
|
+
declare const Layout: ((props: LayoutRootProps) => React.JSX.Element) & {
|
|
1989
|
+
Header: ({ as, ...props }: LayoutHeaderProps) => React.JSX.Element;
|
|
1990
|
+
Content: (props: LayoutContentProps) => React.JSX.Element;
|
|
1991
|
+
Footer: ({ as, align, ...props }: LayoutFooterProps) => React.JSX.Element;
|
|
1891
1992
|
};
|
|
1892
1993
|
|
|
1893
|
-
interface AdaptiveValue<T> {
|
|
1894
|
-
xs?: T;
|
|
1895
|
-
sm?: T;
|
|
1896
|
-
md?: T;
|
|
1897
|
-
lg?: T;
|
|
1898
|
-
xl?: T;
|
|
1899
|
-
}
|
|
1900
|
-
declare const GRID_BREAKPOINTS: {
|
|
1901
|
-
readonly xs: 0;
|
|
1902
|
-
readonly sm: 600;
|
|
1903
|
-
readonly md: 768;
|
|
1904
|
-
readonly lg: 1024;
|
|
1905
|
-
readonly xl: 1280;
|
|
1906
|
-
};
|
|
1907
1994
|
type GridGapToken = SpacingToken;
|
|
1908
|
-
|
|
1909
1995
|
type GridMode = 'fixed' | 'autoFit' | 'autoFill';
|
|
1910
1996
|
interface GridProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1911
|
-
columns?: number | string
|
|
1912
|
-
gap?: number | string
|
|
1997
|
+
columns?: number | string;
|
|
1998
|
+
gap?: number | string;
|
|
1913
1999
|
mode?: GridMode;
|
|
1914
2000
|
minColumnWidth?: number | string;
|
|
1915
|
-
children:
|
|
2001
|
+
children: React__default.ReactNode;
|
|
1916
2002
|
className?: string;
|
|
1917
2003
|
as?: 'div' | 'section' | 'ul' | 'ol';
|
|
2004
|
+
rootRef?: Ref<HTMLElement>;
|
|
1918
2005
|
}
|
|
1919
2006
|
interface GridItemProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1920
|
-
span?: number
|
|
1921
|
-
colStart?: number
|
|
1922
|
-
colEnd?: number
|
|
1923
|
-
rowSpan?: number
|
|
1924
|
-
children?:
|
|
2007
|
+
span?: number;
|
|
2008
|
+
colStart?: number;
|
|
2009
|
+
colEnd?: number;
|
|
2010
|
+
rowSpan?: number;
|
|
2011
|
+
children?: React__default.ReactNode;
|
|
1925
2012
|
className?: string;
|
|
1926
2013
|
as?: 'div' | 'section' | 'article' | 'aside' | 'li';
|
|
2014
|
+
rootRef?: Ref<HTMLElement>;
|
|
1927
2015
|
}
|
|
1928
2016
|
|
|
1929
|
-
declare
|
|
1930
|
-
declare
|
|
2017
|
+
declare function Grid({ columns, gap, mode, minColumnWidth, className, style, as: Comp, rootRef, ...rest }: GridProps): React.JSX.Element;
|
|
2018
|
+
declare function GridItem({ span, colStart, colEnd, rowSpan, className, style, as: Comp, rootRef, ...rest }: GridItemProps): React.JSX.Element;
|
|
1931
2019
|
|
|
1932
2020
|
type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1933
2021
|
interface ContainerProps extends ComponentPropsWithoutRef<'div'> {
|
|
1934
|
-
children:
|
|
2022
|
+
children: React__default.ReactNode;
|
|
1935
2023
|
size?: ContainerSize;
|
|
1936
2024
|
padded?: boolean;
|
|
1937
2025
|
as?: 'div' | 'section' | 'main' | 'article';
|
|
2026
|
+
rootRef?: Ref<HTMLElement>;
|
|
1938
2027
|
}
|
|
1939
|
-
interface PageProps extends Omit<ContainerProps, 'as'> {
|
|
2028
|
+
interface PageProps extends Omit<ContainerProps, 'as' | 'rootRef'> {
|
|
1940
2029
|
verticalPadding?: boolean;
|
|
2030
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
1941
2031
|
}
|
|
1942
2032
|
|
|
1943
|
-
declare
|
|
1944
|
-
declare
|
|
2033
|
+
declare function Container({ size, padded, as: Comp, className, style, rootRef, ...rest }: ContainerProps): React.JSX.Element;
|
|
2034
|
+
declare function Page({ children, size, padded, verticalPadding, className, style, rootRef, ...rest }: PageProps): React.JSX.Element;
|
|
1945
2035
|
|
|
1946
2036
|
interface DialogLayoutProps extends BoxProps {
|
|
1947
2037
|
onClose?: () => void;
|
|
@@ -1949,7 +2039,7 @@ interface DialogLayoutProps extends BoxProps {
|
|
|
1949
2039
|
closeLabel?: string;
|
|
1950
2040
|
}
|
|
1951
2041
|
|
|
1952
|
-
declare const DialogLayout:
|
|
2042
|
+
declare const DialogLayout: ({ children, className, onClose, showClose, closeLabel, rootRef, ...rest }: DialogLayoutProps) => React.JSX.Element;
|
|
1953
2043
|
|
|
1954
2044
|
type ModalFooterAlign = 'start' | 'center' | 'end' | 'space-between';
|
|
1955
2045
|
interface ModalRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title' | 'children'> {
|
|
@@ -1961,31 +2051,28 @@ interface ModalRootProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title' |
|
|
|
1961
2051
|
'aria-labelledby'?: string;
|
|
1962
2052
|
'aria-label'?: string;
|
|
1963
2053
|
'aria-describedby'?: string;
|
|
2054
|
+
rootRef?: Ref<HTMLElement>;
|
|
1964
2055
|
}
|
|
1965
2056
|
interface ModalHeaderProps extends Omit<ComponentPropsWithoutRef<'header'>, 'children'> {
|
|
1966
2057
|
children?: ReactNode;
|
|
2058
|
+
rootRef?: Ref<HTMLElement>;
|
|
1967
2059
|
}
|
|
1968
2060
|
interface ModalBodyProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
1969
2061
|
children?: ReactNode;
|
|
2062
|
+
rootRef?: Ref<HTMLElement>;
|
|
1970
2063
|
}
|
|
1971
2064
|
interface ModalFooterProps extends Omit<ComponentPropsWithoutRef<'footer'>, 'align' | 'children'> {
|
|
1972
2065
|
children?: ReactNode;
|
|
1973
2066
|
align?: ModalFooterAlign;
|
|
2067
|
+
rootRef?: Ref<HTMLElement>;
|
|
1974
2068
|
}
|
|
1975
2069
|
type ModalProps = ModalRootProps;
|
|
1976
2070
|
|
|
1977
|
-
declare const
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
type ModalComponent = typeof ModalRoot & {
|
|
1982
|
-
Header: typeof ModalHeader;
|
|
1983
|
-
Body: typeof ModalBody;
|
|
1984
|
-
Footer: typeof ModalFooter;
|
|
2071
|
+
declare const Modal: (({ open, onOpenChange, children, className, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, rootRef, ...rest }: ModalRootProps) => React.JSX.Element) & {
|
|
2072
|
+
Header: ({ rootRef, ...props }: ModalHeaderProps) => React.JSX.Element;
|
|
2073
|
+
Body: ({ className, rootRef, ...props }: ModalBodyProps) => React.JSX.Element;
|
|
2074
|
+
Footer: ({ align, rootRef, ...props }: ModalFooterProps) => React.JSX.Element;
|
|
1985
2075
|
};
|
|
1986
|
-
declare const Modal: ModalComponent;
|
|
1987
|
-
|
|
1988
|
-
type OverlayZIndexTier = 'overlay' | 'modal' | 'dropdown' | 'lightbox' | 'notification';
|
|
1989
2076
|
|
|
1990
2077
|
type SheetMode = 'auto' | 'sidebar' | 'sheet';
|
|
1991
2078
|
type SheetDirection = 'start' | 'end';
|
|
@@ -1997,14 +2084,9 @@ interface SheetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
|
1997
2084
|
showHandle?: boolean;
|
|
1998
2085
|
mode?: SheetMode;
|
|
1999
2086
|
direction?: SheetDirection;
|
|
2000
|
-
backdrop?: boolean;
|
|
2001
2087
|
width?: number | string;
|
|
2002
2088
|
height?: number | string;
|
|
2003
|
-
|
|
2004
|
-
backdropBlur?: 'none' | 'sm' | 'md';
|
|
2005
|
-
zIndexTier?: OverlayZIndexTier;
|
|
2006
|
-
zIndex?: number | string;
|
|
2007
|
-
dismiss?: OverlayDismiss;
|
|
2089
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2008
2090
|
}
|
|
2009
2091
|
interface SheetHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
2010
2092
|
children?: ReactNode;
|
|
@@ -2013,28 +2095,26 @@ interface SheetHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
2013
2095
|
leftControls?: ReactNode;
|
|
2014
2096
|
rightControls?: ReactNode;
|
|
2015
2097
|
showClose?: boolean;
|
|
2098
|
+
rootRef?: Ref<HTMLElement>;
|
|
2016
2099
|
}
|
|
2017
2100
|
interface SheetBodyProps extends HTMLAttributes<HTMLElement> {
|
|
2018
2101
|
children?: ReactNode;
|
|
2019
2102
|
className?: string;
|
|
2020
2103
|
padding?: boolean;
|
|
2104
|
+
rootRef?: Ref<HTMLElement>;
|
|
2021
2105
|
}
|
|
2022
2106
|
interface SheetFooterProps extends Omit<HTMLAttributes<HTMLElement>, 'align'> {
|
|
2023
2107
|
children?: ReactNode;
|
|
2024
2108
|
className?: string;
|
|
2025
2109
|
align?: SheetFooterAlign;
|
|
2110
|
+
rootRef?: Ref<HTMLElement>;
|
|
2026
2111
|
}
|
|
2027
2112
|
|
|
2028
|
-
declare const
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
type SheetComponent = typeof SheetRoot & {
|
|
2033
|
-
Header: typeof SheetHeader;
|
|
2034
|
-
Body: typeof SheetBody;
|
|
2035
|
-
Footer: typeof SheetFooter;
|
|
2113
|
+
declare const Sheet: (({ open, onOpenChange, children, showHandle, mode, direction, width, height, className, style, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, rootRef, ...rest }: SheetProps) => React.JSX.Element) & {
|
|
2114
|
+
Header: ({ children, className, variant, leftControls, rightControls, showClose: showCloseProp, rootRef, ...rest }: SheetHeaderProps) => React.JSX.Element;
|
|
2115
|
+
Body: ({ className, padding, rootRef, ...rest }: SheetBodyProps) => React.JSX.Element;
|
|
2116
|
+
Footer: ({ className, align, rootRef, ...rest }: SheetFooterProps) => React.JSX.Element;
|
|
2036
2117
|
};
|
|
2037
|
-
declare const Sheet: SheetComponent;
|
|
2038
2118
|
|
|
2039
2119
|
interface ConfirmDialogSecondaryAction {
|
|
2040
2120
|
label: string;
|
|
@@ -2045,7 +2125,7 @@ interface ConfirmDialogSecondaryAction {
|
|
|
2045
2125
|
interface ConfirmDialogProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title' | 'children'> {
|
|
2046
2126
|
open: boolean;
|
|
2047
2127
|
title: string;
|
|
2048
|
-
message:
|
|
2128
|
+
message: React__default.ReactNode;
|
|
2049
2129
|
confirmLabel?: string;
|
|
2050
2130
|
cancelLabel?: string;
|
|
2051
2131
|
status?: 'default' | 'danger';
|
|
@@ -2053,11 +2133,46 @@ interface ConfirmDialogProps extends Omit<ComponentPropsWithoutRef<'div'>, 'titl
|
|
|
2053
2133
|
onConfirm: () => void;
|
|
2054
2134
|
onOpenChange: (open: boolean) => void;
|
|
2055
2135
|
loading?: boolean;
|
|
2136
|
+
rootRef?: Ref<HTMLElement>;
|
|
2056
2137
|
}
|
|
2057
2138
|
|
|
2058
|
-
declare
|
|
2139
|
+
declare function ConfirmDialog({ open, title, message, confirmLabel: confirmLabelProp, cancelLabel: cancelLabelProp, status, secondaryAction, onConfirm, onOpenChange, loading, className, id, rootRef, ...rest }: ConfirmDialogProps): React.JSX.Element;
|
|
2059
2140
|
|
|
2060
|
-
|
|
2141
|
+
type OverlayVariant = 'modal' | 'sheet' | 'floating';
|
|
2142
|
+
type OverlaySheetSide = 'top' | 'bottom' | 'left' | 'right';
|
|
2143
|
+
type OverlayBaseProps = {
|
|
2144
|
+
children: React__default.ReactNode;
|
|
2145
|
+
open: boolean;
|
|
2146
|
+
onOpenChange: (open: boolean) => void;
|
|
2147
|
+
className?: string;
|
|
2148
|
+
hostClassName?: string;
|
|
2149
|
+
style?: React__default.CSSProperties;
|
|
2150
|
+
rootRef?: React__default.Ref<HTMLElement>;
|
|
2151
|
+
'aria-label'?: string;
|
|
2152
|
+
'aria-labelledby'?: string;
|
|
2153
|
+
'aria-describedby'?: string;
|
|
2154
|
+
role?: string;
|
|
2155
|
+
};
|
|
2156
|
+
type OverlayModalProps = OverlayBaseProps & {
|
|
2157
|
+
variant?: 'modal';
|
|
2158
|
+
side?: never;
|
|
2159
|
+
};
|
|
2160
|
+
type OverlayFloatingProps = Omit<OverlayBaseProps, 'open' | 'onOpenChange'> & {
|
|
2161
|
+
variant: 'floating';
|
|
2162
|
+
side?: never;
|
|
2163
|
+
id?: string;
|
|
2164
|
+
open?: boolean;
|
|
2165
|
+
onOpenChange?: (open: boolean) => void;
|
|
2166
|
+
'data-side'?: string;
|
|
2167
|
+
'data-width-mode'?: string;
|
|
2168
|
+
};
|
|
2169
|
+
type OverlaySheetProps = OverlayBaseProps & {
|
|
2170
|
+
variant: 'sheet';
|
|
2171
|
+
side?: OverlaySheetSide;
|
|
2172
|
+
};
|
|
2173
|
+
type OverlayProps = OverlayModalProps | OverlayFloatingProps | OverlaySheetProps;
|
|
2174
|
+
|
|
2175
|
+
declare function Overlay(props: OverlayProps): React.JSX.Element;
|
|
2061
2176
|
|
|
2062
2177
|
interface CommandPaletteProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'title' | 'onSelect'> {
|
|
2063
2178
|
open: boolean;
|
|
@@ -2070,9 +2185,10 @@ interface CommandPaletteProps extends Omit<ComponentPropsWithoutRef<'div'>, 'chi
|
|
|
2070
2185
|
footer?: ReactNode;
|
|
2071
2186
|
onAction?: (item: ActionListItem) => void;
|
|
2072
2187
|
className?: string;
|
|
2188
|
+
rootRef?: Ref<HTMLElement>;
|
|
2073
2189
|
}
|
|
2074
2190
|
|
|
2075
|
-
declare
|
|
2191
|
+
declare function CommandPalette({ open, onOpenChange, items, groups, title: titleProp, placeholder, emptyText, footer, onAction, className, id, style, rootRef, ...rest }: CommandPaletteProps): React.JSX.Element;
|
|
2076
2192
|
|
|
2077
2193
|
interface CalendarDayCell {
|
|
2078
2194
|
day: number;
|
|
@@ -2108,17 +2224,25 @@ interface CalendarProviderProps {
|
|
|
2108
2224
|
onChange?: (value: Date | DateRangeValue) => void;
|
|
2109
2225
|
viewDate?: Date;
|
|
2110
2226
|
onViewDateChange?: (date: Date) => void;
|
|
2111
|
-
renderDayCell?: (props: CalendarDayCellRenderProps) =>
|
|
2112
|
-
children:
|
|
2227
|
+
renderDayCell?: (props: CalendarDayCellRenderProps) => React__default.ReactNode;
|
|
2228
|
+
children: React__default.ReactNode;
|
|
2113
2229
|
}
|
|
2114
|
-
type CalendarRootProps =
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2230
|
+
type CalendarRootProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2231
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2232
|
+
};
|
|
2233
|
+
type CalendarHeaderProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2234
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2235
|
+
};
|
|
2236
|
+
type CalendarTitleProps = React__default.ComponentPropsWithoutRef<'span'> & {
|
|
2237
|
+
rootRef?: React__default.Ref<HTMLSpanElement>;
|
|
2238
|
+
};
|
|
2239
|
+
interface CalendarNavProps extends Omit<React__default.ComponentPropsWithoutRef<'button'>, 'direction'> {
|
|
2118
2240
|
direction: 'prev' | 'next';
|
|
2241
|
+
rootRef?: React__default.Ref<HTMLButtonElement>;
|
|
2119
2242
|
}
|
|
2120
|
-
interface CalendarBodyProps extends
|
|
2121
|
-
|
|
2243
|
+
interface CalendarBodyProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2244
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2245
|
+
renderDayCell?: (props: CalendarDayCellRenderProps) => React__default.ReactNode;
|
|
2122
2246
|
}
|
|
2123
2247
|
type CalendarContextValue = {
|
|
2124
2248
|
selectionMode: CalendarSelectionMode;
|
|
@@ -2136,26 +2260,25 @@ type CalendarContextValue = {
|
|
|
2136
2260
|
shiftView: (delta: number) => void;
|
|
2137
2261
|
selectMonth: (monthIndex: number) => void;
|
|
2138
2262
|
selectYear: (year: number) => void;
|
|
2139
|
-
renderDayCell?: (props: CalendarDayCellRenderProps) =>
|
|
2263
|
+
renderDayCell?: (props: CalendarDayCellRenderProps) => React__default.ReactNode;
|
|
2140
2264
|
};
|
|
2141
2265
|
|
|
2142
2266
|
declare const Calendar: {
|
|
2143
|
-
Provider:
|
|
2144
|
-
Root:
|
|
2145
|
-
Header:
|
|
2146
|
-
Title:
|
|
2147
|
-
Nav:
|
|
2148
|
-
Body:
|
|
2149
|
-
} & {
|
|
2150
|
-
displayName: string;
|
|
2267
|
+
Provider: React.FC<CalendarProviderProps>;
|
|
2268
|
+
Root: ({ className, children, onClick, rootRef, ...rest }: CalendarRootProps) => React.JSX.Element;
|
|
2269
|
+
Header: ({ className, children, rootRef, ...rest }: CalendarHeaderProps) => React.JSX.Element;
|
|
2270
|
+
Title: ({ className, rootRef, ...rest }: CalendarTitleProps) => React.JSX.Element;
|
|
2271
|
+
Nav: ({ direction, className, "aria-label": ariaLabel, onClick, rootRef, ...rest }: CalendarNavProps) => React.JSX.Element;
|
|
2272
|
+
Body: ({ className, renderDayCell: renderDayCellProp, rootRef, ...rest }: CalendarBodyProps) => React.JSX.Element;
|
|
2151
2273
|
};
|
|
2152
2274
|
|
|
2153
2275
|
interface DateFieldProps extends Omit<MaskedFieldProps, 'mask' | 'value' | 'onChange' | 'active'> {
|
|
2154
2276
|
value: Date | undefined;
|
|
2155
2277
|
onChange: (date: Date | undefined) => void;
|
|
2278
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
2156
2279
|
}
|
|
2157
2280
|
|
|
2158
|
-
declare
|
|
2281
|
+
declare function DateField({ value, onChange, label, width, disabled, readOnly, prefix, onClear, onClick, onFocus, inputRef, ...rest }: DateFieldProps): React.JSX.Element;
|
|
2159
2282
|
|
|
2160
2283
|
interface DateRangeFieldProps extends Omit<FieldBaseProps, 'label'>, Omit<ComponentPropsWithoutRef<'div'>, 'onChange' | 'defaultValue' | 'children' | keyof FieldBaseProps> {
|
|
2161
2284
|
value: DateRangeValue;
|
|
@@ -2164,9 +2287,11 @@ interface DateRangeFieldProps extends Omit<FieldBaseProps, 'label'>, Omit<Compon
|
|
|
2164
2287
|
startLabel?: string;
|
|
2165
2288
|
endLabel?: string;
|
|
2166
2289
|
layout?: 'single' | 'split';
|
|
2290
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2291
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
2167
2292
|
}
|
|
2168
2293
|
|
|
2169
|
-
declare
|
|
2294
|
+
declare function DateRangeField({ value, onChange, label, startLabel, endLabel, layout, size, width, className, disabled, readOnly, error, description, prefix, postfix, onClear, clearLabel, rootRef, inputRef, ...rest }: DateRangeFieldProps): React.JSX.Element;
|
|
2170
2295
|
|
|
2171
2296
|
interface DayStripDayRenderProps {
|
|
2172
2297
|
date: Date;
|
|
@@ -2175,7 +2300,7 @@ interface DayStripDayRenderProps {
|
|
|
2175
2300
|
isSelected: boolean;
|
|
2176
2301
|
isToday: boolean;
|
|
2177
2302
|
}
|
|
2178
|
-
interface DayStripCalendarProps extends Omit<
|
|
2303
|
+
interface DayStripCalendarProps extends Omit<React__default.ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
2179
2304
|
value?: Date;
|
|
2180
2305
|
onChange: (date: Date) => void;
|
|
2181
2306
|
viewDate?: Date;
|
|
@@ -2184,16 +2309,17 @@ interface DayStripCalendarProps extends Omit<react__default.ComponentPropsWithou
|
|
|
2184
2309
|
weekStartsOn?: 0 | 1;
|
|
2185
2310
|
showHeader?: boolean;
|
|
2186
2311
|
showNav?: boolean;
|
|
2187
|
-
renderDay?: (props: DayStripDayRenderProps) =>
|
|
2312
|
+
renderDay?: (props: DayStripDayRenderProps) => React__default.ReactNode;
|
|
2313
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2188
2314
|
}
|
|
2189
2315
|
|
|
2190
|
-
declare
|
|
2316
|
+
declare function DayStripCalendar({ value, onChange, viewDate: controlledViewDate, onViewDateChange, daysCount, weekStartsOn, showHeader, showNav, className, 'aria-label': ariaLabel, renderDay, rootRef, ...rest }: DayStripCalendarProps): React.JSX.Element;
|
|
2191
2317
|
|
|
2192
2318
|
interface TimeFieldProps extends Omit<MaskedFieldProps, 'mask'> {
|
|
2193
2319
|
value: string;
|
|
2194
2320
|
}
|
|
2195
2321
|
|
|
2196
|
-
declare
|
|
2322
|
+
declare function TimeField({ value, onChange, label, disabled, readOnly, prefix, onFocus, onClick, onKeyDown, className, inputRef, ...props }: TimeFieldProps): React.JSX.Element;
|
|
2197
2323
|
|
|
2198
2324
|
type TimeValue = {
|
|
2199
2325
|
hours: number;
|
|
@@ -2205,9 +2331,10 @@ type TimePopupProps = {
|
|
|
2205
2331
|
};
|
|
2206
2332
|
interface WheelTimePickerProps extends TimePopupProps, Omit<ComponentPropsWithoutRef<'div'>, 'onChange' | 'defaultValue'> {
|
|
2207
2333
|
active?: boolean;
|
|
2334
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2208
2335
|
}
|
|
2209
2336
|
|
|
2210
|
-
declare const WheelTimePicker:
|
|
2337
|
+
declare const WheelTimePicker: ({ value, onChange, active, className, rootRef, ...rest }: WheelTimePickerProps) => React.JSX.Element;
|
|
2211
2338
|
|
|
2212
2339
|
interface ChartSeries {
|
|
2213
2340
|
name: string;
|
|
@@ -2217,6 +2344,7 @@ interface ChartSeries {
|
|
|
2217
2344
|
|
|
2218
2345
|
type BarChartDataset = ChartSeries;
|
|
2219
2346
|
interface BarChartProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2347
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2220
2348
|
categories: string[];
|
|
2221
2349
|
datasets: BarChartDataset[];
|
|
2222
2350
|
height?: number;
|
|
@@ -2224,18 +2352,19 @@ interface BarChartProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2224
2352
|
showHoverValue?: boolean;
|
|
2225
2353
|
}
|
|
2226
2354
|
|
|
2227
|
-
declare const BarChart:
|
|
2355
|
+
declare const BarChart: ({ categories, datasets, height, className, showValues, showHoverValue, rootRef, ...rest }: BarChartProps) => React.JSX.Element;
|
|
2228
2356
|
|
|
2229
2357
|
interface ChartDataset extends ChartSeries {
|
|
2230
2358
|
color: string;
|
|
2231
2359
|
}
|
|
2232
2360
|
interface LineChartProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2361
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2233
2362
|
categories: string[];
|
|
2234
2363
|
datasets: ChartDataset[];
|
|
2235
2364
|
height?: number;
|
|
2236
2365
|
}
|
|
2237
2366
|
|
|
2238
|
-
declare const LineChart:
|
|
2367
|
+
declare const LineChart: ({ categories, datasets, height, className, rootRef, ...rest }: LineChartProps) => React.JSX.Element;
|
|
2239
2368
|
|
|
2240
2369
|
interface DonutSegment {
|
|
2241
2370
|
id?: string;
|
|
@@ -2244,23 +2373,24 @@ interface DonutSegment {
|
|
|
2244
2373
|
color?: string;
|
|
2245
2374
|
}
|
|
2246
2375
|
interface DonutChartProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2376
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2247
2377
|
segments: DonutSegment[];
|
|
2248
2378
|
size?: number;
|
|
2249
2379
|
thickness?: number;
|
|
2250
|
-
centerLabel?:
|
|
2251
|
-
centerValue?:
|
|
2380
|
+
centerLabel?: React__default.ReactNode;
|
|
2381
|
+
centerValue?: React__default.ReactNode;
|
|
2252
2382
|
showLegend?: boolean;
|
|
2253
2383
|
hoverExpand?: boolean;
|
|
2254
2384
|
}
|
|
2255
2385
|
|
|
2256
|
-
declare const DonutChart:
|
|
2386
|
+
declare const DonutChart: ({ segments, size, thickness, centerLabel, centerValue, className, showLegend, hoverExpand, rootRef, style, ...rest }: DonutChartProps) => React.JSX.Element;
|
|
2257
2387
|
|
|
2258
2388
|
interface NotificationAction {
|
|
2259
2389
|
label: string;
|
|
2260
2390
|
onClick: () => void;
|
|
2261
2391
|
variant?: 'primary' | 'secondary';
|
|
2262
2392
|
shortcut?: string;
|
|
2263
|
-
shortcutLabel?:
|
|
2393
|
+
shortcutLabel?: React__default.ReactNode;
|
|
2264
2394
|
}
|
|
2265
2395
|
interface NotificationItem {
|
|
2266
2396
|
id: string;
|
|
@@ -2274,33 +2404,35 @@ interface NotificationItem {
|
|
|
2274
2404
|
}
|
|
2275
2405
|
type NotificationPosition = 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
2276
2406
|
interface NotificationViewportProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2277
|
-
children?:
|
|
2407
|
+
children?: React__default.ReactNode;
|
|
2278
2408
|
stacked?: boolean;
|
|
2279
2409
|
stackDepth?: number;
|
|
2280
2410
|
position?: NotificationPosition;
|
|
2411
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2281
2412
|
}
|
|
2282
2413
|
interface NotificationProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
2283
|
-
title:
|
|
2284
|
-
description?:
|
|
2414
|
+
title: React__default.ReactNode;
|
|
2415
|
+
description?: React__default.ReactNode;
|
|
2285
2416
|
actions?: NotificationAction[];
|
|
2286
2417
|
variant?: NotificationItem['variant'];
|
|
2287
2418
|
duration?: number;
|
|
2288
2419
|
progress?: boolean;
|
|
2289
2420
|
pauseOnHover?: boolean;
|
|
2290
|
-
onClose?: () => void;
|
|
2421
|
+
onClose?: (id?: string) => void;
|
|
2422
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2291
2423
|
}
|
|
2292
2424
|
type NotifyInput = Omit<NotificationItem, 'id'> & {
|
|
2293
2425
|
id?: string;
|
|
2294
2426
|
};
|
|
2295
2427
|
interface NotificationProviderProps {
|
|
2296
|
-
children?:
|
|
2428
|
+
children?: React__default.ReactNode;
|
|
2297
2429
|
maxVisible?: number;
|
|
2298
2430
|
stacked?: boolean;
|
|
2299
2431
|
stackDepth?: number;
|
|
2300
2432
|
position?: NotificationPosition;
|
|
2301
2433
|
}
|
|
2302
2434
|
|
|
2303
|
-
type NotifyShortcut = (title: string, description?: string, rest?: Omit<NotifyInput, 'title' | 'description'
|
|
2435
|
+
type NotifyShortcut = (title: string, description?: string, rest?: Omit<NotifyInput, 'title' | 'description'>) => string;
|
|
2304
2436
|
interface NotifyFn {
|
|
2305
2437
|
(input: NotifyInput | string): string;
|
|
2306
2438
|
info: NotifyShortcut;
|
|
@@ -2313,26 +2445,29 @@ interface NotifyFn {
|
|
|
2313
2445
|
declare function dismiss(id: string): void;
|
|
2314
2446
|
declare function dismissAll(): void;
|
|
2315
2447
|
declare const notify: NotifyFn;
|
|
2448
|
+
|
|
2449
|
+
declare function NotificationViewport({ children, stacked, stackDepth: _stackDepth, position, className, rootRef, ...rest }: NotificationViewportProps): React.JSX.Element;
|
|
2450
|
+
declare function NotificationCard({ variant, duration, progress, pauseOnHover, onClose, title, description, actions, className, style, rootRef, onAnimationEnd, ...rest }: NotificationProps): React.JSX.Element;
|
|
2451
|
+
type NotificationComponent = typeof NotificationCard & {
|
|
2452
|
+
Provider: (props: NotificationProviderProps) => ReactNode;
|
|
2453
|
+
Viewport: typeof NotificationViewport;
|
|
2454
|
+
};
|
|
2455
|
+
declare const Notification: NotificationComponent;
|
|
2456
|
+
|
|
2316
2457
|
interface ToastContextValue {
|
|
2317
2458
|
notify: NotifyFn;
|
|
2318
|
-
dismiss:
|
|
2319
|
-
dismissAll:
|
|
2459
|
+
dismiss: (id: string) => void;
|
|
2460
|
+
dismissAll: () => void;
|
|
2320
2461
|
}
|
|
2321
|
-
declare const NotificationProvider:
|
|
2462
|
+
declare const NotificationProvider: React__default.FC<NotificationProviderProps>;
|
|
2322
2463
|
declare function useNotify(): ToastContextValue;
|
|
2323
2464
|
|
|
2324
|
-
declare const NotificationViewport: react__default.ForwardRefExoticComponent<NotificationViewportProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
2325
|
-
declare const Notification: react__default.ForwardRefExoticComponent<NotificationProps & react__default.RefAttributes<HTMLDivElement>> & {
|
|
2326
|
-
Provider: react__default.FC<NotificationProviderProps>;
|
|
2327
|
-
Viewport: typeof NotificationViewport;
|
|
2328
|
-
};
|
|
2329
|
-
|
|
2330
2465
|
type TableSortDirection = 'asc' | 'desc';
|
|
2331
2466
|
type TableDensity = Density;
|
|
2332
2467
|
interface Column<T> {
|
|
2333
2468
|
key: keyof T | string;
|
|
2334
2469
|
header: string;
|
|
2335
|
-
render?: (row: T) =>
|
|
2470
|
+
render?: (row: T) => React__default.ReactNode;
|
|
2336
2471
|
sortable?: boolean;
|
|
2337
2472
|
sticky?: 'left' | 'right';
|
|
2338
2473
|
resizable?: boolean;
|
|
@@ -2366,7 +2501,7 @@ interface TableProps<T> extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2366
2501
|
onSortChange?: (key: string, direction: TableSortDirection) => void;
|
|
2367
2502
|
expandedKeys?: Set<string | number>;
|
|
2368
2503
|
onExpandedChange?: (keys: Set<string | number>) => void;
|
|
2369
|
-
renderExpandedRow?: (row: T) =>
|
|
2504
|
+
renderExpandedRow?: (row: T) => React__default.ReactNode;
|
|
2370
2505
|
rowActions?: (row: T) => ActionListItem[];
|
|
2371
2506
|
rowActionsLabel?: string;
|
|
2372
2507
|
toolbar?: ReactNode;
|
|
@@ -2374,18 +2509,20 @@ interface TableProps<T> extends Omit<ComponentPropsWithoutRef<'div'>, 'children'
|
|
|
2374
2509
|
loadingRows?: number;
|
|
2375
2510
|
empty?: ReactNode | TableEmptyConfig;
|
|
2376
2511
|
footer?: TablePagination;
|
|
2512
|
+
virtualized?: boolean;
|
|
2513
|
+
estimateRowSize?: number;
|
|
2514
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2377
2515
|
}
|
|
2378
2516
|
interface TableRowActionsProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2379
2517
|
items: ActionListItem[];
|
|
2518
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2380
2519
|
}
|
|
2381
2520
|
|
|
2382
|
-
declare
|
|
2383
|
-
ref?: react__default.Ref<HTMLDivElement>;
|
|
2384
|
-
}) => react__default.ReactElement;
|
|
2521
|
+
declare function Table<T extends object>({ columns, data, rowKey, rowActions, rowActionsLabel, toolbar, loading, loadingRows, empty, footer, className, 'aria-label': ariaLabel, stickyHeader, selectedKeys, onSelectionChange, density, sortKey, sortDirection, onSortChange, expandedKeys, onExpandedChange, renderExpandedRow, virtualized, estimateRowSize, rootRef, ...rest }: TableProps<T>): React.JSX.Element;
|
|
2385
2522
|
|
|
2386
2523
|
interface SortableItem {
|
|
2387
2524
|
id: string;
|
|
2388
|
-
content:
|
|
2525
|
+
content: React__default.ReactNode;
|
|
2389
2526
|
}
|
|
2390
2527
|
type SortableListVariant = 'default' | 'plain';
|
|
2391
2528
|
interface SortableListProps<T extends {
|
|
@@ -2393,25 +2530,27 @@ interface SortableListProps<T extends {
|
|
|
2393
2530
|
} = SortableItem> extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2394
2531
|
items: T[];
|
|
2395
2532
|
onOrderChange: (newItems: T[]) => void;
|
|
2396
|
-
renderItem?: (item: T, index: number) =>
|
|
2533
|
+
renderItem?: (item: T, index: number) => React__default.ReactNode;
|
|
2397
2534
|
variant?: SortableListVariant;
|
|
2398
2535
|
keyboardReorder?: boolean;
|
|
2399
2536
|
showMoveButtons?: boolean;
|
|
2400
2537
|
showDragHandle?: boolean;
|
|
2401
2538
|
handleOnly?: boolean;
|
|
2539
|
+
estimateSize?: number;
|
|
2540
|
+
virtualThreshold?: number;
|
|
2541
|
+
height?: number | string;
|
|
2542
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2402
2543
|
}
|
|
2403
2544
|
|
|
2404
|
-
declare
|
|
2545
|
+
declare function SortableList<T extends {
|
|
2405
2546
|
id: string;
|
|
2406
|
-
} = SortableItem>(
|
|
2407
|
-
ref?: react__default.Ref<HTMLDivElement>;
|
|
2408
|
-
}) => react__default.ReactElement;
|
|
2547
|
+
} = SortableItem>({ items, onOrderChange, renderItem, variant, className, style, keyboardReorder, showMoveButtons, showDragHandle, handleOnly, estimateSize, virtualThreshold, height, rootRef, onPointerDown, onKeyDown, onClick, 'aria-describedby': ariaDescribedBy, ...rest }: SortableListProps<T>): React.JSX.Element;
|
|
2409
2548
|
|
|
2410
2549
|
type VirtualListAlign = 'start' | 'center' | 'end' | 'auto';
|
|
2411
2550
|
interface VirtualListRenderItemInfo<T> {
|
|
2412
2551
|
item: T;
|
|
2413
2552
|
index: number;
|
|
2414
|
-
style
|
|
2553
|
+
style?: React__default.CSSProperties;
|
|
2415
2554
|
}
|
|
2416
2555
|
interface VirtualListRange {
|
|
2417
2556
|
start: number;
|
|
@@ -2445,19 +2584,20 @@ interface VirtualListProps<T> extends Omit<ComponentPropsWithoutRef<'div'>, 'chi
|
|
|
2445
2584
|
height?: number | string;
|
|
2446
2585
|
gap?: number;
|
|
2447
2586
|
getItemKey?: (item: T, index: number) => string | number;
|
|
2448
|
-
renderItem: (info: VirtualListRenderItemInfo<T>) =>
|
|
2449
|
-
onScroll?: (event: Event |
|
|
2587
|
+
renderItem: (info: VirtualListRenderItemInfo<T>) => React__default.ReactNode;
|
|
2588
|
+
onScroll?: (event: Event | React__default.UIEvent<HTMLDivElement>) => void;
|
|
2450
2589
|
onRangeChange?: (range: VirtualListRange) => void;
|
|
2451
2590
|
onRangeChangeOptions?: VirtualListOnRangeChangeOptions;
|
|
2452
|
-
scrollElement?: HTMLElement | null |
|
|
2591
|
+
scrollElement?: HTMLElement | null | React__default.RefObject<HTMLElement | null>;
|
|
2453
2592
|
useWindowScroll?: boolean;
|
|
2454
2593
|
scrollMetrics?: VirtualScrollMetrics;
|
|
2455
2594
|
scrollMetricsStore?: VirtualScrollMetricsStore;
|
|
2595
|
+
itemWrapper?: boolean;
|
|
2596
|
+
controlRef?: MutableRefObject<VirtualListHandle | null>;
|
|
2597
|
+
rootRef?: Ref<HTMLDivElement>;
|
|
2456
2598
|
}
|
|
2457
2599
|
|
|
2458
|
-
declare const VirtualList: <T>(
|
|
2459
|
-
ref?: react__default.Ref<VirtualListHandle>;
|
|
2460
|
-
}) => react__default.ReactElement | null;
|
|
2600
|
+
declare const VirtualList: <T>({ items, estimateSize, overscan, height, gap, getItemKey, renderItem, itemWrapper, className, style, onScroll, onRangeChange, onRangeChangeOptions, "aria-label": ariaLabel, scrollElement, useWindowScroll, scrollMetrics, scrollMetricsStore, controlRef, rootRef, ...rest }: VirtualListProps<T>) => React.JSX.Element;
|
|
2461
2601
|
|
|
2462
2602
|
type ImageCropShape = 'circle' | 'square';
|
|
2463
2603
|
|
|
@@ -2478,9 +2618,10 @@ interface ImageCropProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children
|
|
|
2478
2618
|
confirmLabel?: string;
|
|
2479
2619
|
cancelLabel?: string;
|
|
2480
2620
|
onCrop?: (result: ImageCropResult) => void;
|
|
2621
|
+
rootRef?: Ref<HTMLElement>;
|
|
2481
2622
|
}
|
|
2482
2623
|
|
|
2483
|
-
declare
|
|
2624
|
+
declare function ImageCrop({ open, onOpenChange, file, src, shape, cropSize, outputSize, title, confirmLabel, cancelLabel, className, style, onCrop, onClick, rootRef, ...rest }: ImageCropProps): React.JSX.Element;
|
|
2484
2625
|
|
|
2485
2626
|
type CalendarBoardView = 'month' | 'week' | 'day' | 'year';
|
|
2486
2627
|
type CalendarBoardTask = CalendarScheduleEvent & {
|
|
@@ -2498,7 +2639,7 @@ interface CalendarBoardTaskRenderProps {
|
|
|
2498
2639
|
onMouseEnter?: () => void;
|
|
2499
2640
|
onMouseLeave?: () => void;
|
|
2500
2641
|
className?: string;
|
|
2501
|
-
style?:
|
|
2642
|
+
style?: React__default.CSSProperties;
|
|
2502
2643
|
}
|
|
2503
2644
|
interface CalendarBoardDayCellRenderProps {
|
|
2504
2645
|
date: Date;
|
|
@@ -2528,12 +2669,12 @@ interface CalendarBoardContextValue {
|
|
|
2528
2669
|
dayEndHour: number;
|
|
2529
2670
|
hourHeight: number;
|
|
2530
2671
|
onTaskClick?: (task: CalendarBoardTask) => void;
|
|
2531
|
-
renderTask?: (props: CalendarBoardTaskRenderProps) =>
|
|
2532
|
-
renderDayCell?: (props: CalendarBoardDayCellRenderProps) =>
|
|
2533
|
-
renderYearMonth?: (props: CalendarBoardYearMonthRenderProps) =>
|
|
2672
|
+
renderTask?: (props: CalendarBoardTaskRenderProps) => React__default.ReactNode;
|
|
2673
|
+
renderDayCell?: (props: CalendarBoardDayCellRenderProps) => React__default.ReactNode;
|
|
2674
|
+
renderYearMonth?: (props: CalendarBoardYearMonthRenderProps) => React__default.ReactNode;
|
|
2534
2675
|
}
|
|
2535
2676
|
interface CalendarBoardProviderProps {
|
|
2536
|
-
children:
|
|
2677
|
+
children: React__default.ReactNode;
|
|
2537
2678
|
view?: CalendarBoardView;
|
|
2538
2679
|
defaultView?: CalendarBoardView;
|
|
2539
2680
|
onViewChange?: (view: CalendarBoardView) => void;
|
|
@@ -2548,44 +2689,60 @@ interface CalendarBoardProviderProps {
|
|
|
2548
2689
|
dayEndHour?: number;
|
|
2549
2690
|
hourHeight?: number;
|
|
2550
2691
|
onTaskClick?: (task: CalendarBoardTask) => void;
|
|
2551
|
-
renderTask?: (props: CalendarBoardTaskRenderProps) =>
|
|
2552
|
-
renderDayCell?: (props: CalendarBoardDayCellRenderProps) =>
|
|
2553
|
-
renderYearMonth?: (props: CalendarBoardYearMonthRenderProps) =>
|
|
2692
|
+
renderTask?: (props: CalendarBoardTaskRenderProps) => React__default.ReactNode;
|
|
2693
|
+
renderDayCell?: (props: CalendarBoardDayCellRenderProps) => React__default.ReactNode;
|
|
2694
|
+
renderYearMonth?: (props: CalendarBoardYearMonthRenderProps) => React__default.ReactNode;
|
|
2554
2695
|
}
|
|
2555
|
-
interface CalendarBoardTaskChipProps extends Omit<
|
|
2696
|
+
interface CalendarBoardTaskChipProps extends Omit<React__default.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
2556
2697
|
task: CalendarBoardTask;
|
|
2557
2698
|
layout?: CalendarBoardTaskLayout;
|
|
2558
2699
|
continuesBefore?: boolean;
|
|
2559
2700
|
continuesAfter?: boolean;
|
|
2560
2701
|
timeLabel?: string;
|
|
2561
2702
|
highlighted?: boolean;
|
|
2703
|
+
rootRef?: React__default.Ref<HTMLElement>;
|
|
2562
2704
|
}
|
|
2563
|
-
interface CalendarBoardMonthProps extends
|
|
2705
|
+
interface CalendarBoardMonthProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2564
2706
|
maxChipsPerDay?: number;
|
|
2707
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2565
2708
|
}
|
|
2566
|
-
interface CalendarBoardWeekProps extends
|
|
2709
|
+
interface CalendarBoardWeekProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2567
2710
|
showScheduleHeader?: boolean;
|
|
2568
2711
|
showScheduleNav?: boolean;
|
|
2712
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2569
2713
|
}
|
|
2570
|
-
interface CalendarBoardDayProps extends
|
|
2714
|
+
interface CalendarBoardDayProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2571
2715
|
showScheduleHeader?: boolean;
|
|
2572
2716
|
showScheduleNav?: boolean;
|
|
2717
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2573
2718
|
}
|
|
2574
|
-
type CalendarBoardYearProps =
|
|
2575
|
-
|
|
2719
|
+
type CalendarBoardYearProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2720
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2721
|
+
};
|
|
2722
|
+
interface CalendarBoardBodyProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2723
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2576
2724
|
monthProps?: CalendarBoardMonthProps;
|
|
2577
2725
|
weekProps?: CalendarBoardWeekProps;
|
|
2578
2726
|
dayProps?: CalendarBoardDayProps;
|
|
2579
2727
|
yearProps?: CalendarBoardYearProps;
|
|
2580
2728
|
}
|
|
2581
|
-
interface CalendarBoardViewSwitchProps extends
|
|
2729
|
+
interface CalendarBoardViewSwitchProps extends React__default.ComponentPropsWithoutRef<'div'> {
|
|
2582
2730
|
variant?: 'primary' | 'tinted' | 'secondary';
|
|
2583
2731
|
size?: 'sm' | 'md' | 'lg';
|
|
2732
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2584
2733
|
}
|
|
2585
|
-
type CalendarBoardRootProps =
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
type
|
|
2734
|
+
type CalendarBoardRootProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2735
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2736
|
+
};
|
|
2737
|
+
type CalendarBoardHeaderProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2738
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2739
|
+
};
|
|
2740
|
+
type CalendarBoardTitleProps = Omit<React__default.ComponentPropsWithoutRef<'div'>, 'color'> & {
|
|
2741
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2742
|
+
};
|
|
2743
|
+
type CalendarBoardNavProps = React__default.ComponentPropsWithoutRef<'div'> & {
|
|
2744
|
+
rootRef?: React__default.Ref<HTMLDivElement>;
|
|
2745
|
+
};
|
|
2589
2746
|
|
|
2590
2747
|
declare function useCalendarBoardTaskHover(taskId: string): {
|
|
2591
2748
|
highlighted: boolean;
|
|
@@ -2594,20 +2751,20 @@ declare function useCalendarBoardTaskHover(taskId: string): {
|
|
|
2594
2751
|
};
|
|
2595
2752
|
declare function useCalendarBoardContext(): CalendarBoardContextValue;
|
|
2596
2753
|
|
|
2597
|
-
declare const CalendarBoard:
|
|
2598
|
-
Provider:
|
|
2599
|
-
Root:
|
|
2600
|
-
Header:
|
|
2601
|
-
Title:
|
|
2602
|
-
Nav:
|
|
2603
|
-
ViewSwitch:
|
|
2604
|
-
Body:
|
|
2605
|
-
Month:
|
|
2606
|
-
Week:
|
|
2607
|
-
Day:
|
|
2608
|
-
Year:
|
|
2609
|
-
TaskChip:
|
|
2754
|
+
declare const CalendarBoard: (({ children, view: controlledView, defaultView, onViewChange, viewDate: controlledViewDate, defaultViewDate, onViewDateChange, selectedDate: controlledSelectedDate, onSelectedDateChange, tasks, weekStartsOn, dayStartHour, dayEndHour, hourHeight, onTaskClick, renderTask, renderDayCell, renderYearMonth, }: CalendarBoardProviderProps) => React.JSX.Element) & {
|
|
2755
|
+
Provider: ({ children, view: controlledView, defaultView, onViewChange, viewDate: controlledViewDate, defaultViewDate, onViewDateChange, selectedDate: controlledSelectedDate, onSelectedDateChange, tasks, weekStartsOn, dayStartHour, dayEndHour, hourHeight, onTaskClick, renderTask, renderDayCell, renderYearMonth, }: CalendarBoardProviderProps) => React.JSX.Element;
|
|
2756
|
+
Root: ({ children, className, style, rootRef, "aria-label": ariaLabel, ...rest }: CalendarBoardRootProps) => React.JSX.Element;
|
|
2757
|
+
Header: ({ children, className, rootRef, ...rest }: CalendarBoardHeaderProps) => React.JSX.Element;
|
|
2758
|
+
Title: ({ className, rootRef, ...rest }: CalendarBoardTitleProps) => React.JSX.Element;
|
|
2759
|
+
Nav: ({ className, rootRef, ...rest }: CalendarBoardNavProps) => React.JSX.Element;
|
|
2760
|
+
ViewSwitch: ({ className, variant, size, rootRef, ...rest }: CalendarBoardViewSwitchProps) => React.JSX.Element;
|
|
2761
|
+
Body: ({ className, monthProps, weekProps, dayProps, yearProps, rootRef, ...rest }: CalendarBoardBodyProps) => React.JSX.Element;
|
|
2762
|
+
Month: ({ className, maxChipsPerDay, rootRef, ...rest }: CalendarBoardMonthProps) => React.JSX.Element;
|
|
2763
|
+
Week: ({ className, showScheduleHeader, showScheduleNav, rootRef, ...rest }: CalendarBoardWeekProps) => React.JSX.Element;
|
|
2764
|
+
Day: ({ className, showScheduleHeader, showScheduleNav, rootRef, ...rest }: CalendarBoardDayProps) => React.JSX.Element;
|
|
2765
|
+
Year: ({ className, rootRef, ...rest }: CalendarBoardYearProps) => React.JSX.Element;
|
|
2766
|
+
TaskChip: ({ task, layout, continuesBefore, continuesAfter, timeLabel, className, style, highlighted: highlightedProp, rootRef, ...rest }: CalendarBoardTaskChipProps) => string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
2610
2767
|
};
|
|
2611
2768
|
|
|
2612
|
-
export { Accordion, ActionList, ActionSheetTrigger, Alert, AspectRatio, Attachment, Avatar, AvatarGroup,
|
|
2613
|
-
export type { AccordionItemProps, AccordionProps, AccordionVariant,
|
|
2769
|
+
export { Accordion, ActionItem, ActionList, ActionSheetTrigger, Alert, AspectRatio, Attachment, AutocompleteField, Avatar, AvatarGroup, Badge, BarChart, Box, Bubble, Button, ButtonGroup, ButtonIcon, Calendar, CalendarBoard, Card, Checkbox, CheckboxGroup, Chip, ChipGroup, Collapse, ColorSwatchGroup, CommandPalette, ConfirmDialog, Container, ControlRow, DateField, DateRangeField, DayStripCalendar, DescriptionList, DialogLayout, DonutChart, Dropdown, EmptyState, FieldBaseButton, FieldBaseIcon, FieldGroup, FieldLabel, Fieldset, FileList$1 as FileList, FileUploader, FormMessage, Gap, Grid, GridItem, ImageCrop, ImageGallery, ImageLightbox, Inline, Item, Kbd, KbdGroup, Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutItem, LayoutRoot, LineChart, Link, Listbox, LiveRegion, LocaleProvider, Marker, MaskedField, Media, Menu, Modal, MultiSelect, Notification, NotificationProvider, NumberField, Overflow, Overlay, Page, Pagination, PasswordField, PinInput, Popover, PopupSwitch, Progress, ProgressCircle, PullToRefresh, Radio, RadioGroup, Rating, RelativeTime, SafeArea, ScrollArea, SearchField, SegmentedControl, Select, Separator, Sheet, Sidebar, Skeleton, SkipLink, Slider, SortableList, Spinner, Split, Stack, StatBadge, Steps, SuggestField, SwipeToAction, Switch, Table, Tabs, Text, TextField, TextareaField, ThemeProvider, TimeField, Timeline, Title, Tooltip, UploadZone, VirtualList, VisuallyHidden, WheelTimePicker, dismiss, dismissAll, en, formatRelativeTime, getPasswordStrength, notify, ru, useCalendarBoardContext, useCalendarBoardTaskHover, useLocale, useNotify, useT, useTheme };
|
|
2770
|
+
export type { AccordionItemData, AccordionItemProps, AccordionProps, AccordionVariant, ActionItemProps, ActionListGroup, ActionListItem, ActionListProps, ActionSheetTriggerProps, AlertLayout, AlertProps, AlertVariant, AspectRatioProps, AttachmentProps, AttachmentSize, AttachmentStatus, AutocompleteFieldOption, AutocompleteFieldProps, AvatarGroupProps, AvatarProps, AvatarSize, AvatarStatus, BadgePosition, BadgeProps, BadgeSize, BadgeVariant, BarChartDataset, BarChartProps, BoxAs, BoxBorderStyle, BoxProps, BoxRadius, BoxShadow, BoxVariant, BubbleAlign, BubbleProps, BubbleReaction, BubbleVariant, ButtonGroupItemFit, ButtonGroupOrientation, ButtonGroupRootProps, ButtonGroupVariant, ButtonIconProps, ButtonProps, ButtonVariant, CalendarBoardBodyProps, CalendarBoardDayCellRenderProps, CalendarBoardDayProps, CalendarBoardHeaderProps, CalendarBoardMonthProps, CalendarBoardNavProps, CalendarBoardProviderProps, CalendarBoardRootProps, CalendarBoardTask, CalendarBoardTaskChipProps, CalendarBoardTaskLayout, CalendarBoardTaskRenderProps, CalendarBoardTitleProps, CalendarBoardView, CalendarBoardWeekProps, CalendarBoardYearMonthRenderProps, CalendarBoardYearProps, CalendarBodyProps, CalendarContextValue, CalendarDayCell, CalendarDayCellRenderProps, CalendarHeaderProps, CalendarNavProps, CalendarProviderProps, CalendarRootProps, CalendarScheduleEvent, CalendarSelectionMode, CalendarTitleProps, CalendarViewMode, CardProps, CardVariant, CheckboxGroupProps, CheckboxMode, CheckboxProps, ChipGroupGap, ChipGroupProps, ChipMode, ChipProps, ChipVariant, CollapseProps, ColorSwatchGroupProps, Column, ActionListGroup as CommandPaletteGroup, ActionListItem as CommandPaletteItem, CommandPaletteProps, ConfirmDialogProps, ConfirmDialogSecondaryAction, ContainerProps, ContainerSize, ControlRowProps, ControlSize, DateFieldProps, DateRangeFieldProps, DateRangeValue, DayStripCalendarProps, DayStripDayRenderProps, DeepPartialMessages, DescriptionListItem, DescriptionListProps, DialogLayoutProps, DonutChartProps, DropdownAlign, DropdownPanelScroll, DropdownPanelState, DropdownPopup, DropdownPopupRole, DropdownProps, DropdownTriggerAttrs, DropdownTriggerMode, DropdownTriggerSlotProps, DropdownWidthMode, EmptyStateProps, EmptyStateSize, FieldBaseButtonProps, FieldBaseIconProps, FieldBaseProps, FieldGroupProps, FieldGroupWidth, FieldLabelAlign, FieldLabelJustify, FieldLabelLayout, FieldLabelProps, FieldWidth, FieldsetProps, FieldsetVariant, FileListItemProps, FileListItemStatus, FileListRootProps, FileUploaderFile, FileUploaderProps, FormMessageProps, FormMessageVariant, GapOrientation, GapProps, GridGapToken, GridItemProps, GridMode, GridProps, ImageCropProps, ImageCropResult, ImageCropShape, ImageGalleryItem, ImageGalleryProps, ImageLightboxProps, InlineProps, ItemMediaVariant, ItemProps, ItemSize, ItemVariant, KbdGroupProps, KbdProps, LabelSide, LayoutAlign, LayoutContentProps, LayoutFooterAlign, LayoutFooterProps, LayoutGap, LayoutHeaderProps, LayoutItemProps, LayoutJustify, LayoutRootProps, LayoutSpacing, LineChartProps, LinkProps, LinkSize, LinkStatus, LinkVariant, ListboxEntry, ListboxFilterFn, ListboxGroup, ListboxHandle, ListboxNavigation, ListboxOption, ListboxProps, ListboxSeparator, LiveRegionProps, LocaleCode, LocaleProviderProps, MarkerProps, MarkerVariant, MaskedFieldProps, MediaProps, MenuProps, MenuTrigger, Messages, ModalBodyProps, ModalFooterAlign, ModalFooterProps, ModalHeaderProps, ModalProps, ModalRootProps, MultiSelectOption, MultiSelectProps, NotificationAction, NotificationItem, NotificationPosition, NotificationProps, NotificationProviderProps, NotificationViewportProps, NotifyInput, NumberFieldProps, OverflowDisplay, OverflowFit, OverflowGap, OverflowItemProps, OverflowProps, OverlayBaseProps, OverlayFloatingProps, OverlayModalProps, OverlayProps, OverlaySheetProps, OverlaySheetSide, OverlayVariant, PageProps, PaginationControlsProps, PaginationPageSizeProps, PaginationProps, PaginationRootProps, PaginationSummaryProps, PasswordFieldProps, PasswordStrength, PinInputProps, PopoverContentVariant, PopoverProps, PopoverTargetAction, PopoverTriggerSlotProps, PopupSwitchAlign, PopupSwitchOption, PopupSwitchProps, PopupSwitchVariant, PopupSwitchWidth, ProgressCircleProps, ProgressProps, ProgressVariant, PullToRefreshProps, RadioGroupProps, RadioProps, RangeValue, RatingProps, RelativeTimeProps, ResolvedListboxGroup, SafeAreaEdges, SafeAreaProps, ScrollAreaProps, SearchFieldProps, SegmentOption, SegmentedControlProps, SegmentedControlVariant, SegmentedItemFit, SelectCustomTriggerProps, SelectOption, SelectProps, SelectSelectionMode, SelectSelectionState, SelectTriggerMode, SeparatorOrientation, SeparatorProps, SeparatorSpace, SheetBodyProps, SheetDirection, SheetFooterAlign, SheetFooterProps, SheetHeaderProps, SheetMode, SheetProps, SidebarContentProps, SidebarFooterProps, SidebarGroupLabelProps, SidebarGroupProps, SidebarHeaderProps, SidebarItemProps, SidebarMobileTriggerProps, SidebarProps, SidebarTitleProps, SkeletonProps, SkeletonVariant, SkipLinkProps, SliderProps, SliderRangeProps, SliderSingleProps, SortableItem, SortableListProps, SortableListVariant, SpinnerProps, SpinnerSize, SpinnerVariant, SplitProps, StackProps, StatBadgeProps, StepItem, StepStatus, StepsProps, SuggestFieldOption, SuggestFieldProps, SwipeAction, SwipeToActionProps, SwitchLabelSide, SwitchProps, TableDensity, TableEmptyConfig, TablePagination, TableProps, TableRowActionsProps, TableSortDirection, TabsItem, TabsListProps, TabsOrientation, TabsPanelProps, TabsProps, TabsTriggerProps, TabsVariant, TextFieldAs, TextFieldProps, TextFieldRef, TextProps, TextareaFieldProps, Theme, ThemeApplyTarget, ThemeProviderProps, TimeFieldProps, TimePopupProps, TimeValue, TimelineItem, TimelineItemStatus, TimelineProps, TitleProps, TooltipProps, TooltipSide, TooltipTriggerProps, TranslationParams, UploadZoneProps, VirtualListAlign, VirtualListHandle, VirtualListOnRangeChangeOptions, VirtualListProps, VirtualListRange, VirtualListRenderItemInfo, VirtualScrollMetrics, VirtualScrollMetricsStore, VisuallyHiddenProps, WheelTimePickerProps };
|