@baseline-ui/core 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10309 -11
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/dist/react-aria.d.ts +708 -2
- package/dist/react-stately.d.ts +319 -2
- package/package.json +6 -6
- package/sbom.json +1 -1
- package/dist/components/Accordion/Accordion.css.d.ts +0 -44
- package/dist/components/Accordion/Accordion.d.ts +0 -11
- package/dist/components/Accordion/Accordion.types.d.ts +0 -70
- package/dist/components/Accordion/AccordionBase.d.ts +0 -5
- package/dist/components/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/Accordion/AccordionItem.d.ts +0 -3
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/ActionButton/ActionButton.css.d.ts +0 -216
- package/dist/components/ActionButton/ActionButton.d.ts +0 -4
- package/dist/components/ActionButton/ActionButton.types.d.ts +0 -44
- package/dist/components/ActionButton/index.d.ts +0 -2
- package/dist/components/ActionGroup/ActionGroup.css.d.ts +0 -2
- package/dist/components/ActionGroup/ActionGroup.d.ts +0 -11
- package/dist/components/ActionGroup/ActionGroup.types.d.ts +0 -43
- package/dist/components/ActionGroup/index.d.ts +0 -3
- package/dist/components/ActionIconButton/ActionIconButton.css.d.ts +0 -116
- package/dist/components/ActionIconButton/ActionIconButton.d.ts +0 -3
- package/dist/components/ActionIconButton/ActionIconButton.types.d.ts +0 -56
- package/dist/components/ActionIconButton/index.d.ts +0 -2
- package/dist/components/Actionable/Actionable.css.d.ts +0 -2
- package/dist/components/Actionable/Actionable.d.ts +0 -3
- package/dist/components/Actionable/Actionable.types.d.ts +0 -15
- package/dist/components/Actionable/index.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.css.d.ts +0 -26
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -77
- package/dist/components/AlertDialog/index.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.css.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +0 -27
- package/dist/components/AudioPlayer/index.d.ts +0 -3
- package/dist/components/Avatar/Avatar.css.d.ts +0 -19
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.types.d.ts +0 -31
- package/dist/components/Avatar/index.d.ts +0 -2
- package/dist/components/Box/Box.d.ts +0 -3
- package/dist/components/Box/Box.types.d.ts +0 -12
- package/dist/components/Box/index.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.css.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.types.d.ts +0 -56
- package/dist/components/ButtonSelect/index.d.ts +0 -3
- package/dist/components/Calendar/Calendar.css.d.ts +0 -135
- package/dist/components/Calendar/Calendar.d.ts +0 -4
- package/dist/components/Calendar/Calendar.types.d.ts +0 -22
- package/dist/components/Calendar/CalendarCell.d.ts +0 -9
- package/dist/components/Calendar/CalendarHeader.d.ts +0 -6
- package/dist/components/Calendar/RangeCalendar.d.ts +0 -4
- package/dist/components/Calendar/index.d.ts +0 -3
- package/dist/components/Calendar/intl/index.d.ts +0 -267
- package/dist/components/Checkbox/Checkbox.css.d.ts +0 -103
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -17
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Code/Code.css.d.ts +0 -2
- package/dist/components/Code/Code.d.ts +0 -3
- package/dist/components/Code/Code.types.d.ts +0 -6
- package/dist/components/Code/index.d.ts +0 -3
- package/dist/components/ColorInput/ColorArea.d.ts +0 -4
- package/dist/components/ColorInput/ColorFieldInput.d.ts +0 -13
- package/dist/components/ColorInput/ColorInput.css.d.ts +0 -165
- package/dist/components/ColorInput/ColorInput.d.ts +0 -3
- package/dist/components/ColorInput/ColorInput.types.d.ts +0 -137
- package/dist/components/ColorInput/ColorInputButton.d.ts +0 -21
- package/dist/components/ColorInput/ColorPresetList.d.ts +0 -16
- package/dist/components/ColorInput/ColorSlider.d.ts +0 -3
- package/dist/components/ColorInput/CustomColors.d.ts +0 -15
- package/dist/components/ColorInput/IconColorInput.d.ts +0 -3
- package/dist/components/ColorInput/Picker.d.ts +0 -8
- package/dist/components/ColorInput/__tests__/data.d.ts +0 -8
- package/dist/components/ColorInput/hooks/useColorTrigger.d.ts +0 -13
- package/dist/components/ColorInput/index.d.ts +0 -4
- package/dist/components/ColorInput/intl/index.d.ts +0 -399
- package/dist/components/ColorInput/utils.d.ts +0 -44
- package/dist/components/ColorSwatch/ColorSwatch.css.d.ts +0 -39
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +0 -3
- package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +0 -44
- package/dist/components/ColorSwatch/index.d.ts +0 -2
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.css.d.ts +0 -2
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.d.ts +0 -3
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.types.d.ts +0 -46
- package/dist/components/ColorSwatchPicker/index.d.ts +0 -3
- package/dist/components/ComboBox/ComboBox.css.d.ts +0 -203
- package/dist/components/ComboBox/ComboBox.d.ts +0 -3
- package/dist/components/ComboBox/ComboBox.types.d.ts +0 -96
- package/dist/components/ComboBox/index.d.ts +0 -3
- package/dist/components/ComboBox/useOnValueChange.d.ts +0 -6
- package/dist/components/DateField/DateField.d.ts +0 -6
- package/dist/components/DateField/DateField.types.d.ts +0 -17
- package/dist/components/DateField/index.d.ts +0 -3
- package/dist/components/DateField/intl/index.d.ts +0 -102
- package/dist/components/DateFormat/DateFormat.d.ts +0 -3
- package/dist/components/DateFormat/DateFormat.types.d.ts +0 -5
- package/dist/components/DateFormat/index.d.ts +0 -2
- package/dist/components/DeviceProvider/DeviceProvider.d.ts +0 -6
- package/dist/components/DeviceProvider/DeviceProvider.types.d.ts +0 -12
- package/dist/components/DeviceProvider/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.css.d.ts +0 -53
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.types.d.ts +0 -37
- package/dist/components/Dialog/DialogTitle.d.ts +0 -3
- package/dist/components/Dialog/index.d.ts +0 -3
- package/dist/components/Dialog/useDeferredLabel.d.ts +0 -7
- package/dist/components/Disclosure/Disclosure.css.d.ts +0 -116
- package/dist/components/Disclosure/Disclosure.d.ts +0 -3
- package/dist/components/Disclosure/Disclosure.types.d.ts +0 -30
- package/dist/components/Disclosure/index.d.ts +0 -3
- package/dist/components/DomNodeRenderer/DomNodeRenderer.d.ts +0 -3
- package/dist/components/DomNodeRenderer/DomNodeRenderer.types.d.ts +0 -11
- package/dist/components/DomNodeRenderer/index.d.ts +0 -2
- package/dist/components/Drawer/Drawer.css.d.ts +0 -31
- package/dist/components/Drawer/Drawer.d.ts +0 -3
- package/dist/components/Drawer/Drawer.types.d.ts +0 -24
- package/dist/components/Drawer/index.d.ts +0 -3
- package/dist/components/Editor/Editor.css.d.ts +0 -131
- package/dist/components/Editor/Editor.d.ts +0 -3
- package/dist/components/Editor/Editor.types.d.ts +0 -159
- package/dist/components/Editor/EditorToolbar.d.ts +0 -15
- package/dist/components/Editor/HelpDialog.d.ts +0 -5
- package/dist/components/Editor/RichEditor.d.ts +0 -24
- package/dist/components/Editor/elements/AddLink.d.ts +0 -10
- package/dist/components/Editor/elements/Mention.d.ts +0 -46
- package/dist/components/Editor/elements/Paragraph.d.ts +0 -2
- package/dist/components/Editor/elements/PlainEditor.d.ts +0 -11
- package/dist/components/Editor/index.d.ts +0 -2
- package/dist/components/Editor/utils.d.ts +0 -93
- package/dist/components/FileUpload/FileUpload.css.d.ts +0 -69
- package/dist/components/FileUpload/FileUpload.d.ts +0 -3
- package/dist/components/FileUpload/FileUpload.types.d.ts +0 -38
- package/dist/components/FileUpload/hooks/useFileUpload.d.ts +0 -22
- package/dist/components/FileUpload/index.d.ts +0 -2
- package/dist/components/FrameProvider/FrameProvider.d.ts +0 -20
- package/dist/components/FrameProvider/FrameProvider.types.d.ts +0 -40
- package/dist/components/FrameProvider/index.d.ts +0 -2
- package/dist/components/FreehandCanvas/FreehandCanvas.css.d.ts +0 -78
- package/dist/components/FreehandCanvas/FreehandCanvas.d.ts +0 -4
- package/dist/components/FreehandCanvas/FreehandCanvas.types.d.ts +0 -116
- package/dist/components/FreehandCanvas/hooks/usePathsData.d.ts +0 -27
- package/dist/components/FreehandCanvas/index.d.ts +0 -2
- package/dist/components/FreehandCanvas/intl/index.d.ts +0 -135
- package/dist/components/GridList/GridList.css.d.ts +0 -22
- package/dist/components/GridList/GridList.d.ts +0 -3
- package/dist/components/GridList/GridList.types.d.ts +0 -84
- package/dist/components/GridList/GridListItem.d.ts +0 -20
- package/dist/components/GridList/index.d.ts +0 -3
- package/dist/components/Group/Group.d.ts +0 -3
- package/dist/components/Group/Group.types.d.ts +0 -19
- package/dist/components/Group/index.d.ts +0 -2
- package/dist/components/I18nProvider/I18Provider.types.d.ts +0 -11
- package/dist/components/I18nProvider/I18nProvider.css.d.ts +0 -1
- package/dist/components/I18nProvider/I18nProvider.d.ts +0 -10
- package/dist/components/I18nProvider/index.d.ts +0 -4
- package/dist/components/Icon/Icon.d.ts +0 -4
- package/dist/components/Icon/Icon.types.d.ts +0 -36
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/ImageDropZone/ImageDropZone.css.d.ts +0 -76
- package/dist/components/ImageDropZone/ImageDropZone.d.ts +0 -3
- package/dist/components/ImageDropZone/ImageDropZone.types.d.ts +0 -50
- package/dist/components/ImageDropZone/index.d.ts +0 -2
- package/dist/components/ImageDropZone/intl/index.d.ts +0 -135
- package/dist/components/ImageGallery/AdaptiveText.d.ts +0 -13
- package/dist/components/ImageGallery/ImageGallery.css.d.ts +0 -86
- package/dist/components/ImageGallery/ImageGallery.d.ts +0 -18
- package/dist/components/ImageGallery/ImageGallery.types.d.ts +0 -130
- package/dist/components/ImageGallery/ImageGalleryDragPreview.d.ts +0 -22
- package/dist/components/ImageGallery/ImageGalleryItem.d.ts +0 -3
- package/dist/components/ImageGallery/index.d.ts +0 -2
- package/dist/components/ImageGallery/utils.d.ts +0 -10
- package/dist/components/InlineAlert/InlineAlert.css.d.ts +0 -214
- package/dist/components/InlineAlert/InlineAlert.d.ts +0 -3
- package/dist/components/InlineAlert/InlineAlert.types.d.ts +0 -38
- package/dist/components/InlineAlert/index.d.ts +0 -2
- package/dist/components/InlineAlert/intl/index.d.ts +0 -102
- package/dist/components/InlineToolbar/InlineToolbar.css.d.ts +0 -50
- package/dist/components/InlineToolbar/InlineToolbar.d.ts +0 -3
- package/dist/components/InlineToolbar/InlineToolbar.types.d.ts +0 -63
- package/dist/components/InlineToolbar/InlineToolbarButton.d.ts +0 -3
- package/dist/components/InlineToolbar/index.d.ts +0 -2
- package/dist/components/Kbd/Kbd.css.d.ts +0 -1
- package/dist/components/Kbd/Kbd.d.ts +0 -3
- package/dist/components/Kbd/Kbd.types.d.ts +0 -21
- package/dist/components/Kbd/index.d.ts +0 -2
- package/dist/components/Link/Link.css.d.ts +0 -41
- package/dist/components/Link/Link.d.ts +0 -3
- package/dist/components/Link/Link.types.d.ts +0 -26
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/ListBox/DefaultListOption.d.ts +0 -22
- package/dist/components/ListBox/DropIndicator.d.ts +0 -11
- package/dist/components/ListBox/ListBox.css.d.ts +0 -91
- package/dist/components/ListBox/ListBox.d.ts +0 -6
- package/dist/components/ListBox/ListBox.types.d.ts +0 -104
- package/dist/components/ListBox/ListBoxSection.d.ts +0 -14
- package/dist/components/ListBox/ListOption.d.ts +0 -17
- package/dist/components/ListBox/hooks/useDragAndDrop.d.ts +0 -3
- package/dist/components/ListBox/hooks/useDragAutoScroll.d.ts +0 -5
- package/dist/components/ListBox/hooks/useDragDrop.d.ts +0 -33
- package/dist/components/ListBox/hooks/useSharedList.d.ts +0 -8
- package/dist/components/ListBox/index.d.ts +0 -4
- package/dist/components/Markdown/Markdown.css.d.ts +0 -3
- package/dist/components/Markdown/Markdown.d.ts +0 -3
- package/dist/components/Markdown/Markdown.types.d.ts +0 -7
- package/dist/components/Markdown/index.d.ts +0 -3
- package/dist/components/Menu/Menu.css.d.ts +0 -2
- package/dist/components/Menu/Menu.d.ts +0 -3
- package/dist/components/Menu/Menu.types.d.ts +0 -63
- package/dist/components/Menu/index.d.ts +0 -2
- package/dist/components/MessageFormat/MessageFormat.d.ts +0 -3
- package/dist/components/MessageFormat/MessageFormat.types.d.ts +0 -14
- package/dist/components/MessageFormat/index.d.ts +0 -2
- package/dist/components/Modal/Modal.css.d.ts +0 -39
- package/dist/components/Modal/Modal.d.ts +0 -11
- package/dist/components/Modal/Modal.types.d.ts +0 -70
- package/dist/components/Modal/ModalClose.d.ts +0 -4
- package/dist/components/Modal/ModalContent.d.ts +0 -13
- package/dist/components/Modal/ModalContentCore.d.ts +0 -3
- package/dist/components/Modal/ModalTrigger.d.ts +0 -4
- package/dist/components/Modal/hooks/useDialogPosition.d.ts +0 -13
- package/dist/components/Modal/index.d.ts +0 -5
- package/dist/components/NumberFormat/NumberFormat.d.ts +0 -3
- package/dist/components/NumberFormat/NumberFormat.types.d.ts +0 -5
- package/dist/components/NumberFormat/index.d.ts +0 -2
- package/dist/components/NumberInput/NumberInput.css.d.ts +0 -9
- package/dist/components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +0 -26
- package/dist/components/NumberInput/index.d.ts +0 -2
- package/dist/components/Pagination/Pagination.css.d.ts +0 -84
- package/dist/components/Pagination/Pagination.d.ts +0 -3
- package/dist/components/Pagination/Pagination.types.d.ts +0 -25
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Pagination/intl/index.d.ts +0 -201
- package/dist/components/Panel/Panel.css.d.ts +0 -1
- package/dist/components/Panel/Panel.d.ts +0 -2
- package/dist/components/Panel/Panel.types.d.ts +0 -72
- package/dist/components/Panel/PanelContext.d.ts +0 -6
- package/dist/components/Panel/PanelGroup.d.ts +0 -2
- package/dist/components/Panel/PanelResizeHandle.d.ts +0 -5
- package/dist/components/Panel/index.d.ts +0 -4
- package/dist/components/PointPicker/Grid.d.ts +0 -7
- package/dist/components/PointPicker/PointPicker.css.d.ts +0 -37
- package/dist/components/PointPicker/PointPicker.d.ts +0 -22
- package/dist/components/PointPicker/PointPicker.types.d.ts +0 -116
- package/dist/components/PointPicker/PointPickerContent/PointPickerContent.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerContent/PointPickerIndicator.d.ts +0 -8
- package/dist/components/PointPicker/PointPickerContent/hooks/useCoordinatesRelativeToWindow.d.ts +0 -4
- package/dist/components/PointPicker/PointPickerContent/hooks/usePointPickerKeyboard.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerContent/index.d.ts +0 -1
- package/dist/components/PointPicker/PointPickerDisplay/Floater.d.ts +0 -7
- package/dist/components/PointPicker/PointPickerDisplay/MagnifierContent.d.ts +0 -8
- package/dist/components/PointPicker/PointPickerDisplay/PointPickerDisplay.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerDisplay/hooks/useIndicatorWidthObserver.d.ts +0 -1
- package/dist/components/PointPicker/PointPickerDisplay/index.d.ts +0 -1
- package/dist/components/PointPicker/PointsVisualiser/PointsVisualiser.d.ts +0 -11
- package/dist/components/PointPicker/PointsVisualiser/canvasUtils.d.ts +0 -20
- package/dist/components/PointPicker/PointsVisualiser/hooks/usePointProximity.d.ts +0 -12
- package/dist/components/PointPicker/hooks/usePointPicker.d.ts +0 -4
- package/dist/components/PointPicker/index.d.ts +0 -5
- package/dist/components/PointPicker/workers/canvas.worker.d.ts +0 -1
- package/dist/components/PointPicker/workers/pointProximity.worker.d.ts +0 -1
- package/dist/components/Popover/Arrow.d.ts +0 -7
- package/dist/components/Popover/Popover.css.d.ts +0 -55
- package/dist/components/Popover/Popover.d.ts +0 -10
- package/dist/components/Popover/Popover.types.d.ts +0 -133
- package/dist/components/Popover/PopoverContent.d.ts +0 -3
- package/dist/components/Popover/PopoverContentCore.d.ts +0 -7
- package/dist/components/Popover/PopoverTrigger.d.ts +0 -8
- package/dist/components/Popover/hooks/usePopoverScrollReposition.d.ts +0 -22
- package/dist/components/Popover/hooks/usePopoverTransition.d.ts +0 -23
- package/dist/components/Popover/index.d.ts +0 -4
- package/dist/components/Portal/Portal.d.ts +0 -3
- package/dist/components/Portal/Portal.types.d.ts +0 -4
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/PortalContainerProvider/PortalContainerProvider.d.ts +0 -4
- package/dist/components/PortalContainerProvider/PortalContainerProvider.types.d.ts +0 -12
- package/dist/components/PortalContainerProvider/index.d.ts +0 -1
- package/dist/components/Preview/Preview.css.d.ts +0 -50
- package/dist/components/Preview/Preview.d.ts +0 -3
- package/dist/components/Preview/Preview.types.d.ts +0 -59
- package/dist/components/Preview/index.d.ts +0 -2
- package/dist/components/ProgressBar/ProgressBar.css.d.ts +0 -48
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -20
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +0 -9
- package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +0 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.types.d.ts +0 -16
- package/dist/components/ProgressSpinner/index.d.ts +0 -2
- package/dist/components/RadioGroup/RadioGroup.css.d.ts +0 -26
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -67
- package/dist/components/RadioGroup/RadioItem.d.ts +0 -11
- package/dist/components/RadioGroup/index.d.ts +0 -2
- package/dist/components/Reaction/Reaction.css.d.ts +0 -74
- package/dist/components/Reaction/Reaction.d.ts +0 -3
- package/dist/components/Reaction/Reaction.types.d.ts +0 -13
- package/dist/components/Reaction/index.d.ts +0 -2
- package/dist/components/ScrollControlButton/ScrollControlButton.css.d.ts +0 -1
- package/dist/components/ScrollControlButton/ScrollControlButton.d.ts +0 -3
- package/dist/components/ScrollControlButton/ScrollControlButton.types.d.ts +0 -31
- package/dist/components/ScrollControlButton/index.d.ts +0 -3
- package/dist/components/SearchInput/SearchInput.css.d.ts +0 -64
- package/dist/components/SearchInput/SearchInput.d.ts +0 -3
- package/dist/components/SearchInput/SearchInput.types.d.ts +0 -27
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/Select/IconSelect.d.ts +0 -3
- package/dist/components/Select/Select.css.d.ts +0 -58
- package/dist/components/Select/Select.d.ts +0 -9
- package/dist/components/Select/Select.types.d.ts +0 -87
- package/dist/components/Select/SelectButton.d.ts +0 -3
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/Separator/Separator.css.d.ts +0 -19
- package/dist/components/Separator/Separator.d.ts +0 -3
- package/dist/components/Separator/Separator.types.d.ts +0 -12
- package/dist/components/Separator/index.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.css.d.ts +0 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -3
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -7
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Slider/IconSlider.d.ts +0 -3
- package/dist/components/Slider/Slider.css.d.ts +0 -133
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.types.d.ts +0 -42
- package/dist/components/Slider/index.d.ts +0 -3
- package/dist/components/StatusCard/StatusCard.css.d.ts +0 -87
- package/dist/components/StatusCard/StatusCard.d.ts +0 -10
- package/dist/components/StatusCard/StatusCard.types.d.ts +0 -34
- package/dist/components/StatusCard/index.d.ts +0 -3
- package/dist/components/Switch/Switch.css.d.ts +0 -67
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.types.d.ts +0 -15
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/Table.css.d.ts +0 -111
- package/dist/components/Table/Table.d.ts +0 -8
- package/dist/components/Table/Table.types.d.ts +0 -26
- package/dist/components/Table/hooks/useTableDragAndDrop.d.ts +0 -8
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Tabs/TabItem.d.ts +0 -3
- package/dist/components/Tabs/TabPanel.d.ts +0 -9
- package/dist/components/Tabs/Tabs.css.d.ts +0 -122
- package/dist/components/Tabs/Tabs.d.ts +0 -3
- package/dist/components/Tabs/Tabs.types.d.ts +0 -66
- package/dist/components/Tabs/TabsBase.d.ts +0 -7
- package/dist/components/Tabs/index.d.ts +0 -3
- package/dist/components/Tag/Tag.css.d.ts +0 -215
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.types.d.ts +0 -43
- package/dist/components/Tag/TagContext.d.ts +0 -15
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/TagGroup/TagGroup.css.d.ts +0 -1
- package/dist/components/TagGroup/TagGroup.d.ts +0 -3
- package/dist/components/TagGroup/TagGroup.types.d.ts +0 -38
- package/dist/components/TagGroup/index.d.ts +0 -2
- package/dist/components/TaggedPagination/TaggedPagination.css.d.ts +0 -70
- package/dist/components/TaggedPagination/TaggedPagination.d.ts +0 -3
- package/dist/components/TaggedPagination/TaggedPagination.types.d.ts +0 -50
- package/dist/components/TaggedPagination/index.d.ts +0 -2
- package/dist/components/Text/Text.css.d.ts +0 -51
- package/dist/components/Text/Text.d.ts +0 -3
- package/dist/components/Text/Text.types.d.ts +0 -24
- package/dist/components/Text/index.d.ts +0 -2
- package/dist/components/TextInput/TextInput.css.d.ts +0 -183
- package/dist/components/TextInput/TextInput.d.ts +0 -3
- package/dist/components/TextInput/TextInput.types.d.ts +0 -18
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/TextInput/utils/getMessage.d.ts +0 -12
- package/dist/components/TextInput/utils/getStatusIcon.d.ts +0 -6
- package/dist/components/ThemeProvider/ThemeProvider.context.d.ts +0 -6
- package/dist/components/ThemeProvider/ThemeProvider.css.d.ts +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +0 -29
- package/dist/components/ThemeProvider/hooks/useUserPreferences.d.ts +0 -19
- package/dist/components/ThemeProvider/index.d.ts +0 -6
- package/dist/components/TimeField/DateTimeSegment.d.ts +0 -5
- package/dist/components/TimeField/TimeField.css.d.ts +0 -16
- package/dist/components/TimeField/TimeField.d.ts +0 -3
- package/dist/components/TimeField/TimeField.types.d.ts +0 -6
- package/dist/components/TimeField/index.d.ts +0 -3
- package/dist/components/Toast/Toast.css.d.ts +0 -34
- package/dist/components/Toast/Toast.d.ts +0 -3
- package/dist/components/Toast/Toast.types.d.ts +0 -14
- package/dist/components/Toast/index.d.ts +0 -4
- package/dist/components/ToggleButton/ToggleButton.css.d.ts +0 -74
- package/dist/components/ToggleButton/ToggleButton.d.ts +0 -3
- package/dist/components/ToggleButton/ToggleButton.types.d.ts +0 -27
- package/dist/components/ToggleButton/index.d.ts +0 -2
- package/dist/components/ToggleIconButton/ToggleIconButton.css.d.ts +0 -149
- package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +0 -3
- package/dist/components/ToggleIconButton/ToggleIconButton.types.d.ts +0 -30
- package/dist/components/ToggleIconButton/index.d.ts +0 -2
- package/dist/components/Toolbar/CollapsibleToolbar.d.ts +0 -3
- package/dist/components/Toolbar/Toolbar.css.d.ts +0 -2
- package/dist/components/Toolbar/Toolbar.d.ts +0 -3
- package/dist/components/Toolbar/Toolbar.types.d.ts +0 -47
- package/dist/components/Toolbar/WrappedToolbar.d.ts +0 -3
- package/dist/components/Toolbar/hooks/useFormattedList.d.ts +0 -3
- package/dist/components/Toolbar/hooks/useInputAwareToolbar.d.ts +0 -6
- package/dist/components/Toolbar/index.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.css.d.ts +0 -44
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -55
- package/dist/components/Tooltip/TooltipContent.d.ts +0 -15
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/TreeView/TreeItem.d.ts +0 -7
- package/dist/components/TreeView/TreeView.css.d.ts +0 -34
- package/dist/components/TreeView/TreeView.d.ts +0 -8
- package/dist/components/TreeView/TreeView.types.d.ts +0 -95
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/UNSAFE_ListBox/ListBox.css.d.ts +0 -92
- package/dist/components/UNSAFE_ListBox/ListBox.d.ts +0 -13
- package/dist/components/UNSAFE_ListBox/ListBox.types.d.ts +0 -84
- package/dist/components/UNSAFE_ListBox/ListBoxUI.d.ts +0 -19
- package/dist/components/UNSAFE_ListBox/hooks/useDragAndDrop.d.ts +0 -3
- package/dist/components/UNSAFE_ListBox/index.d.ts +0 -3
- package/dist/components/Virtualizer/LocaleAwareGridLayout.d.ts +0 -17
- package/dist/components/Virtualizer/Virtualizer.types.d.ts +0 -6
- package/dist/components/Virtualizer/index.d.ts +0 -36
- package/dist/components/index.d.ts +0 -81
- package/dist/components/shared/buttons.d.ts +0 -30
- package/dist/components/shared/collection.d.ts +0 -3
- package/dist/components/shared/components/DragPreviewContent.d.ts +0 -12
- package/dist/components/shared/components/IconWithTooltip.d.ts +0 -8
- package/dist/components/shared/components/ListCollectionBuilder.d.ts +0 -9
- package/dist/components/shared/components/OverlayEventLeakPreventionLayer.d.ts +0 -8
- package/dist/components/shared/components/SharedInput/SharedInput.d.ts +0 -3
- package/dist/components/shared/components/SharedInput/SharedInput.types.d.ts +0 -34
- package/dist/components/shared/components/SharedInput/index.d.ts +0 -1
- package/dist/components/shared/tooltips.d.ts +0 -11
- package/dist/components/shared/types/IconComponent.d.ts +0 -21
- package/dist/components/shared/types/List.d.ts +0 -17
- package/dist/hooks/index.d.ts +0 -13
- package/dist/hooks/useDevice.d.ts +0 -20
- package/dist/hooks/useI18n.d.ts +0 -59
- package/dist/hooks/useImage.d.ts +0 -23
- package/dist/hooks/useIntersectionObserver.d.ts +0 -44
- package/dist/hooks/useIsFirstRender.d.ts +0 -21
- package/dist/hooks/useIsTouchDevice.d.ts +0 -7
- package/dist/hooks/useLiveInteractionModality.d.ts +0 -13
- package/dist/hooks/useLocalStorage.d.ts +0 -20
- package/dist/hooks/useMedia.d.ts +0 -13
- package/dist/hooks/useMutationObserver.d.ts +0 -20
- package/dist/hooks/usePortalContainer.d.ts +0 -11
- package/dist/hooks/usePreventFocus.d.ts +0 -23
- package/dist/hooks/useResizeObserver.d.ts +0 -38
- package/dist/hooks/useTextSelection.d.ts +0 -29
- package/dist/hooks/useUndoRedo.d.ts +0 -44
- package/dist/utils/a11y.d.ts +0 -1
- package/dist/utils/classNames.d.ts +0 -17
- package/dist/utils/colors.d.ts +0 -11
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/devWarn.d.ts +0 -1
- package/dist/utils/dom.d.ts +0 -130
- package/dist/utils/index.d.ts +0 -18
- package/dist/utils/invariant.d.ts +0 -18
- package/dist/utils/isInIframe.d.ts +0 -12
- package/dist/utils/isInShadowDOM.d.ts +0 -11
- package/dist/utils/isRect.d.ts +0 -7
- package/dist/utils/keyboards.d.ts +0 -13
- package/dist/utils/math.d.ts +0 -1
- package/dist/utils/objects.d.ts +0 -20
- package/dist/utils/overlays.d.ts +0 -6
- package/dist/utils/reactAriaCompat.d.ts +0 -22
- package/dist/utils/reactAriaComponentsCompat.d.ts +0 -4
- package/dist/utils/resolveAriaLabelAttrs.d.ts +0 -22
- package/dist/utils/resolvePublicUrl.d.ts +0 -1
- package/dist/utils/strings.d.ts +0 -6
- package/dist/utils/style.d.ts +0 -5
- package/dist/utils/styleMixins.css.d.ts +0 -16
- package/dist/utils/svgs.d.ts +0 -15
- package/dist/utils/types/Shared.d.ts +0 -34
- package/dist/utils/validations.d.ts +0 -13
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ActionButtonProps, StylingWithUIState, UIStateOptions } from "../ActionButton/ActionButton.types";
|
|
2
|
-
import type React from "react";
|
|
3
|
-
import type { AriaButtonOptions } from "react-aria";
|
|
4
|
-
export interface ActionableProps extends StylingWithUIState<UIStateOptions>, Omit<AriaButtonOptions<"button">, "elementType">, Pick<ActionButtonProps, "elementType"> {
|
|
5
|
-
/** A single React element that accepts style and className props. */
|
|
6
|
-
children: React.ReactElement<{
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
}>;
|
|
11
|
-
/** The class name applied to the child element. */
|
|
12
|
-
childClassName?: string | ((props: UIStateOptions) => string);
|
|
13
|
-
/** The style applied to the child element. */
|
|
14
|
-
childStyle?: React.CSSProperties | ((props: UIStateOptions) => React.CSSProperties);
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const minHeightCn: string;
|
|
2
|
-
export declare const alertFooterButtonCn: string;
|
|
3
|
-
export declare const alertHeaderCn: ((options?: {
|
|
4
|
-
hasTitleAndIcon?: boolean | undefined;
|
|
5
|
-
hasNoCloseBtn?: boolean | undefined;
|
|
6
|
-
} | undefined) => string) & {
|
|
7
|
-
variants: () => ("hasTitleAndIcon" | "hasNoCloseBtn")[];
|
|
8
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
9
|
-
hasTitleAndIcon: {
|
|
10
|
-
true: {
|
|
11
|
-
"__@@Component_Sprinkles__": boolean;
|
|
12
|
-
baseSprinkles: string;
|
|
13
|
-
variantSprinkles: string;
|
|
14
|
-
compoundVariantSprinkles: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
hasNoCloseBtn: {
|
|
18
|
-
true: {
|
|
19
|
-
"__@@Component_Sprinkles__": boolean;
|
|
20
|
-
baseSprinkles: string;
|
|
21
|
-
variantSprinkles: string;
|
|
22
|
-
compoundVariantSprinkles: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { IconProps } from "../Icon";
|
|
3
|
-
import type { TextInputProps } from "../TextInput";
|
|
4
|
-
import type { AriaLabelingProps } from "@react-types/shared";
|
|
5
|
-
import type React from "react";
|
|
6
|
-
export interface AlertDialogProps extends StylingProps, AriaLabelingProps {
|
|
7
|
-
/**
|
|
8
|
-
* The title of the dialog. This is the main heading of the dialog and is
|
|
9
|
-
* displayed at the top of the dialog.
|
|
10
|
-
*/
|
|
11
|
-
title: string;
|
|
12
|
-
/**
|
|
13
|
-
* The message of the dialog. This is the main content of the dialog and is
|
|
14
|
-
* displayed below the title.
|
|
15
|
-
*/
|
|
16
|
-
message?: React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* The label for the cancel button. This is the text that is displayed on the
|
|
19
|
-
* button that allows the user to cancel the dialog.
|
|
20
|
-
*/
|
|
21
|
-
cancelLabel?: string;
|
|
22
|
-
/** The class name for the cancel button. */
|
|
23
|
-
cancelClassName?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The label for the confirm button. This is the text that is displayed on the
|
|
26
|
-
* button that allows the user to confirm the dialog.
|
|
27
|
-
*/
|
|
28
|
-
primaryActionLabel?: string;
|
|
29
|
-
/** The class name for the primary action button. */
|
|
30
|
-
primaryActionClassName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The function that is called when the user confirms the dialog. This is
|
|
33
|
-
* called when the user clicks the primary action button.
|
|
34
|
-
*/
|
|
35
|
-
onPrimaryAction?: () => void;
|
|
36
|
-
/**
|
|
37
|
-
* The function that is called when the user cancels the dialog. This is
|
|
38
|
-
* called when the user clicks the cancel button. Also called when the close
|
|
39
|
-
* button (X) is clicked, unless `onClose` is provided.
|
|
40
|
-
*/
|
|
41
|
-
onCancel?: () => void;
|
|
42
|
-
/**
|
|
43
|
-
* Called when the user clicks the close button (X). If not provided, falls
|
|
44
|
-
* back to `onCancel`.
|
|
45
|
-
*/
|
|
46
|
-
onClose?: () => void;
|
|
47
|
-
/** The button that should be focused when the dialog is opened. */
|
|
48
|
-
autoFocusButton?: "primary" | "cancel";
|
|
49
|
-
/** Whether the primary action button should be disabled. */
|
|
50
|
-
isPrimaryActionDisabled?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* The props that are passed to the text input. If this is provided, a text
|
|
53
|
-
* input will be displayed at the bottom of the dialog.
|
|
54
|
-
*/
|
|
55
|
-
textInputProps?: TextInputProps;
|
|
56
|
-
/**
|
|
57
|
-
* The icon that is displayed at the top of the dialog. This is typically used
|
|
58
|
-
* to display an icon that represents the type of alert that is being shown.
|
|
59
|
-
*/
|
|
60
|
-
icon?: React.FC<IconProps>;
|
|
61
|
-
/** The color of the icon. This is the color that is used to fill the icon. */
|
|
62
|
-
iconColor?: string;
|
|
63
|
-
/** The class name for the content area below the title. */
|
|
64
|
-
contentClassName?: string;
|
|
65
|
-
/** The class name for the close button. */
|
|
66
|
-
closeButtonClassName?: string;
|
|
67
|
-
/** The class name for the button group wrapper. */
|
|
68
|
-
buttonsClassName?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Whether the close button should be displayed in the top end corner of the
|
|
71
|
-
* dialog. If this is `true`, a close button will be displayed. If this is
|
|
72
|
-
* `false`, no close button will be displayed.
|
|
73
|
-
*
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
showCloseButton?: boolean;
|
|
77
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { AriaLabelingProps } from "@react-types/shared";
|
|
3
|
-
export interface AudioPlayerProps extends StylingProps, AriaLabelingProps {
|
|
4
|
-
/**
|
|
5
|
-
* The sources of the audio file. The `url` is the URL of the audio file, and
|
|
6
|
-
* the `type` is the MIME type of the audio file.
|
|
7
|
-
*
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <AudioPlayer
|
|
10
|
-
* sources={[
|
|
11
|
-
* { url: "/sound.mp3", type: "audio/mpeg" },
|
|
12
|
-
* { url: "/sound.ogg", type: "audio/ogg" },
|
|
13
|
-
* ]}
|
|
14
|
-
* />
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
sources: {
|
|
18
|
-
url: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}[];
|
|
21
|
-
/**
|
|
22
|
-
* The size of the audio player.
|
|
23
|
-
*
|
|
24
|
-
* @default "lg"
|
|
25
|
-
*/
|
|
26
|
-
size?: "sm" | "lg";
|
|
27
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare const userCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
-
size: {
|
|
3
|
-
md: {
|
|
4
|
-
height: number;
|
|
5
|
-
width: number;
|
|
6
|
-
};
|
|
7
|
-
sm: {
|
|
8
|
-
height: number;
|
|
9
|
-
width: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
isDisabled: {
|
|
13
|
-
true: {
|
|
14
|
-
opacity: `var(--${string})`;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
export declare const userImgCn: string;
|
|
19
|
-
export declare const notificationCn: string;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { SVGRProps } from "../Icon";
|
|
3
|
-
import type React from "react";
|
|
4
|
-
export interface AvatarProps extends StylingProps {
|
|
5
|
-
/**
|
|
6
|
-
* The size of the component.
|
|
7
|
-
*
|
|
8
|
-
* @default "md"
|
|
9
|
-
*/
|
|
10
|
-
size?: "md" | "sm";
|
|
11
|
-
/**
|
|
12
|
-
* The icon to display. This icon has to be imported from the
|
|
13
|
-
* `@baseline-ui/icons` package.
|
|
14
|
-
*/
|
|
15
|
-
icon?: React.FC<SVGRProps>;
|
|
16
|
-
/** The name of the user. */
|
|
17
|
-
name: string;
|
|
18
|
-
/** The URL of the image to display. */
|
|
19
|
-
imgSrc?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The image loading strategy to use. See
|
|
22
|
-
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes:~:text=a%20fallback%20destination.-,loading,-Indicates%20how%20the)
|
|
23
|
-
*/
|
|
24
|
-
imgLoading?: "lazy" | "eager";
|
|
25
|
-
/** Whether to show the initials of the user if no image is provided. */
|
|
26
|
-
showInitials?: boolean;
|
|
27
|
-
/** Whether the component is disabled. */
|
|
28
|
-
isDisabled?: boolean;
|
|
29
|
-
/** Whether the user has a notification. */
|
|
30
|
-
hasNotifications?: boolean;
|
|
31
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactAriaIncompatibleKey, StylingProps } from "../../utils";
|
|
2
|
-
import type { Sprinkles } from "@baseline-ui/tokens";
|
|
3
|
-
import type { DOMAttributes } from "@react-types/shared";
|
|
4
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
5
|
-
export type SprinkleProps = Parameters<Sprinkles>[0];
|
|
6
|
-
export interface BoxProps extends Pick<StylingProps, "data-block-id">, Omit<HTMLAttributes<HTMLElement>, ReactAriaIncompatibleKey | "color">, Omit<DOMAttributes<HTMLElement>, ReactAriaIncompatibleKey>, SprinkleProps {
|
|
7
|
-
/**
|
|
8
|
-
* @default "div"
|
|
9
|
-
*/
|
|
10
|
-
elementType?: any;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { SelectProps } from "../Select";
|
|
3
|
-
import type { ListOption } from "../shared/types/List";
|
|
4
|
-
import type { ToggleButtonProps } from "../ToggleButton";
|
|
5
|
-
import type { TooltipProps } from "../Tooltip";
|
|
6
|
-
import type { AriaLabelingProps, PressEvent } from "@react-types/shared";
|
|
7
|
-
import type React from "react";
|
|
8
|
-
type ButtonBehaviour = "toggle" | "action";
|
|
9
|
-
export interface ButtonSelectProps extends StylingProps, Pick<SelectProps<"single">, "isDisabled" | "validationState" | "onSelectionChange" | "selectedKey" | "defaultSelectedKey" | "items" | "isOpen" | "defaultOpen" | "triggerClassName" | "triggerStyle" | "disabledKeys">, Pick<ToggleButtonProps, "onPress" | "isSelected" | "defaultSelected" | "excludeFromTabOrder">, AriaLabelingProps {
|
|
10
|
-
/**
|
|
11
|
-
* The size of the button.
|
|
12
|
-
*
|
|
13
|
-
* @default "md"
|
|
14
|
-
*/
|
|
15
|
-
size?: "md" | "lg";
|
|
16
|
-
/**
|
|
17
|
-
* Whether to hide the label in the button.
|
|
18
|
-
*
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
hideLabel?: boolean;
|
|
22
|
-
/** A callback that is called when the button selection changes. */
|
|
23
|
-
onButtonSelectionChange?: (options: {
|
|
24
|
-
isSelected: boolean;
|
|
25
|
-
selectedKey: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
/** The aria-label for the select button. */
|
|
28
|
-
moreAriaLabel?: string;
|
|
29
|
-
/** A function that is called to get the class name for the option. */
|
|
30
|
-
optionClassName?: string | ((item: ListOption, options: {
|
|
31
|
-
isButton: boolean;
|
|
32
|
-
isSelected: boolean;
|
|
33
|
-
}) => string);
|
|
34
|
-
/** A function that is called to get the style for the option. */
|
|
35
|
-
optionStyle?: React.CSSProperties | ((item: ListOption, options: {
|
|
36
|
-
isButton: boolean;
|
|
37
|
-
isSelected: boolean;
|
|
38
|
-
}) => React.CSSProperties);
|
|
39
|
-
/** Props for the tooltip. */
|
|
40
|
-
tooltipProps?: Omit<TooltipProps, "children"> | ((trigger: "button" | "select") => Omit<TooltipProps, "children">);
|
|
41
|
-
/**
|
|
42
|
-
* The behaviour of the button select.
|
|
43
|
-
*
|
|
44
|
-
* @default "toggle"
|
|
45
|
-
*/
|
|
46
|
-
buttonBehaviour?: ButtonBehaviour | ((activeKey: string) => ButtonBehaviour);
|
|
47
|
-
/** A callback that is called when the button is pressed. */
|
|
48
|
-
onButtonAction?: (options: {
|
|
49
|
-
isSelected: boolean;
|
|
50
|
-
selectedKey: string;
|
|
51
|
-
buttonBehaviour: ButtonBehaviour;
|
|
52
|
-
}) => void;
|
|
53
|
-
/** A callback that is called when the option in the dropdown is pressed. */
|
|
54
|
-
onOptionPress?: (e: PressEvent, key: string) => void;
|
|
55
|
-
}
|
|
56
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
export declare const calendarContainerCn: ((options?: {
|
|
2
|
-
size?: "xs" | "sm" | undefined;
|
|
3
|
-
} | undefined) => string) & {
|
|
4
|
-
variants: () => "size"[];
|
|
5
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
6
|
-
size: {
|
|
7
|
-
xs: {
|
|
8
|
-
width: number;
|
|
9
|
-
};
|
|
10
|
-
sm: {
|
|
11
|
-
width: number;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
};
|
|
16
|
-
export declare const calendarCn: string;
|
|
17
|
-
export declare const calendarHeaderTitleCn: string;
|
|
18
|
-
export declare const calendarGridBodyCn: string;
|
|
19
|
-
export declare const calendarGridCn: string;
|
|
20
|
-
export declare const calendarHeaderCellCn: ((options?: {
|
|
21
|
-
size?: "xs" | "sm" | undefined;
|
|
22
|
-
} | undefined) => string) & {
|
|
23
|
-
variants: () => "size"[];
|
|
24
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
25
|
-
size: {
|
|
26
|
-
xs: {
|
|
27
|
-
height: number;
|
|
28
|
-
};
|
|
29
|
-
sm: {
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
};
|
|
35
|
-
export declare const calendarCellCn: ((options?: {
|
|
36
|
-
size?: "xs" | "sm" | undefined;
|
|
37
|
-
isSelected?: boolean | undefined;
|
|
38
|
-
isSelectionStart?: boolean | undefined;
|
|
39
|
-
isSelectionEnd?: boolean | undefined;
|
|
40
|
-
isInRange?: boolean | undefined;
|
|
41
|
-
isToday?: boolean | undefined;
|
|
42
|
-
isOutsideMonth?: boolean | undefined;
|
|
43
|
-
isDisabled?: boolean | undefined;
|
|
44
|
-
isReadOnly?: boolean | undefined;
|
|
45
|
-
isHovered?: boolean | undefined;
|
|
46
|
-
isFocusVisible?: boolean | undefined;
|
|
47
|
-
isUnavailable?: boolean | undefined;
|
|
48
|
-
} | undefined) => string) & {
|
|
49
|
-
variants: () => ("size" | "isSelected" | "isHovered" | "isDisabled" | "isFocusVisible" | "isReadOnly" | "isSelectionStart" | "isSelectionEnd" | "isInRange" | "isToday" | "isOutsideMonth" | "isUnavailable")[];
|
|
50
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
51
|
-
size: {
|
|
52
|
-
xs: {
|
|
53
|
-
height: number;
|
|
54
|
-
};
|
|
55
|
-
sm: {
|
|
56
|
-
height: number;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
isSelected: {
|
|
60
|
-
true: {
|
|
61
|
-
"__@@Component_Sprinkles__": boolean;
|
|
62
|
-
baseSprinkles: string;
|
|
63
|
-
variantSprinkles: string;
|
|
64
|
-
compoundVariantSprinkles: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
isSelectionStart: {
|
|
68
|
-
true: {
|
|
69
|
-
"__@@Component_Sprinkles__": boolean;
|
|
70
|
-
baseSprinkles: string;
|
|
71
|
-
variantSprinkles: string;
|
|
72
|
-
compoundVariantSprinkles: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
isSelectionEnd: {
|
|
76
|
-
true: {
|
|
77
|
-
"__@@Component_Sprinkles__": boolean;
|
|
78
|
-
baseSprinkles: string;
|
|
79
|
-
variantSprinkles: string;
|
|
80
|
-
compoundVariantSprinkles: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
isInRange: {
|
|
84
|
-
true: {};
|
|
85
|
-
};
|
|
86
|
-
isToday: {
|
|
87
|
-
true: {
|
|
88
|
-
borderBottom: `2px solid var(--${string})`;
|
|
89
|
-
color: `var(--${string})`;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
isOutsideMonth: {
|
|
93
|
-
true: {
|
|
94
|
-
"__@@Component_Sprinkles__": boolean;
|
|
95
|
-
baseSprinkles: string;
|
|
96
|
-
variantSprinkles: string;
|
|
97
|
-
compoundVariantSprinkles: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
isDisabled: {
|
|
101
|
-
true: ({
|
|
102
|
-
"__@@Component_Sprinkles__": boolean;
|
|
103
|
-
baseSprinkles: string;
|
|
104
|
-
variantSprinkles: string;
|
|
105
|
-
compoundVariantSprinkles: string;
|
|
106
|
-
} | {
|
|
107
|
-
cursor: "default";
|
|
108
|
-
})[];
|
|
109
|
-
};
|
|
110
|
-
isReadOnly: {
|
|
111
|
-
true: {
|
|
112
|
-
cursor: "default";
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
isHovered: {
|
|
116
|
-
true: {
|
|
117
|
-
"__@@Component_Sprinkles__": boolean;
|
|
118
|
-
baseSprinkles: string;
|
|
119
|
-
variantSprinkles: string;
|
|
120
|
-
compoundVariantSprinkles: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
isFocusVisible: {
|
|
124
|
-
true: {
|
|
125
|
-
boxShadow: `inset 0 0 0 2px var(--${string}), inset 0 0 0 3px var(--${string})`;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
isUnavailable: {
|
|
129
|
-
true: {
|
|
130
|
-
textDecoration: "line-through";
|
|
131
|
-
cursor: "default";
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
}>;
|
|
135
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { DateValue } from "react-aria";
|
|
3
|
-
import type { CalendarProps as RACCalendarProps, RangeCalendarProps as RACRangeCalendarProps } from "react-aria-components";
|
|
4
|
-
export type CalendarSize = "xs" | "sm";
|
|
5
|
-
export type CalendarHeaderVariant = "title" | "selectMonth" | "selectMonthAndYear";
|
|
6
|
-
interface CalendarBaseProps {
|
|
7
|
-
/** The size of the calendar. */
|
|
8
|
-
size?: CalendarSize;
|
|
9
|
-
/** Optional title displayed above the calendar (e.g. "Date"). Shows a calendar icon and separator. */
|
|
10
|
-
title?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Controls how the calendar header is displayed.
|
|
13
|
-
* - `"title"`: Month and year as plain text between navigation arrows (default).
|
|
14
|
-
* - `"selectMonth"`: Month and year as a dropdown selector with grouped navigation arrows.
|
|
15
|
-
* - `"selectMonthAndYear"`: Separate month and year sections, each with their own navigation arrows.
|
|
16
|
-
* @default "title"
|
|
17
|
-
*/
|
|
18
|
-
headerVariant?: CalendarHeaderVariant;
|
|
19
|
-
}
|
|
20
|
-
export type CalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<RACCalendarProps<T>, "visibleDuration"> & CalendarBaseProps;
|
|
21
|
-
export type RangeCalendarProps<T extends DateValue = DateValue> = StylingProps & Omit<RACRangeCalendarProps<T>, "visibleDuration"> & CalendarBaseProps;
|
|
22
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CalendarSize } from "./Calendar.types";
|
|
2
|
-
import type { CalendarDate } from "@internationalized/date";
|
|
3
|
-
interface CalendarCellProps {
|
|
4
|
-
date: CalendarDate;
|
|
5
|
-
size: CalendarSize;
|
|
6
|
-
isRange?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function CalendarCell({ date, size, isRange }: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CalendarHeaderVariant } from "./Calendar.types";
|
|
2
|
-
interface CalendarHeaderProps {
|
|
3
|
-
headerVariant: CalendarHeaderVariant;
|
|
4
|
-
}
|
|
5
|
-
export declare function CalendarHeader({ headerVariant }: CalendarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { RangeCalendarProps } from "./Calendar.types";
|
|
3
|
-
import type { DateValue } from "react-aria";
|
|
4
|
-
export declare const RangeCalendar: <T extends DateValue>(props: RangeCalendarProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|