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