@baseline-ui/core 0.60.0 → 0.60.1
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.d.ts +10201 -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,44 +0,0 @@
|
|
|
1
|
-
export declare const accordionCn: string;
|
|
2
|
-
export declare const chevronCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
-
isExpanded: {
|
|
4
|
-
true: {
|
|
5
|
-
transform: "rotate(90deg)";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
}>;
|
|
9
|
-
export declare const headerCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
10
|
-
isFocusVisible: {
|
|
11
|
-
true: {
|
|
12
|
-
outlineOffset: number;
|
|
13
|
-
outline: `2px solid var(--${string})`;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
isHovered: {
|
|
17
|
-
true: string;
|
|
18
|
-
false: string;
|
|
19
|
-
};
|
|
20
|
-
isDisabled: {
|
|
21
|
-
true: string;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
export declare const headerStartCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
25
|
-
isDisabled: {
|
|
26
|
-
true: string;
|
|
27
|
-
false: string;
|
|
28
|
-
};
|
|
29
|
-
}>;
|
|
30
|
-
export declare const headerLabelCn: string;
|
|
31
|
-
export declare const actionBtnContainerCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
32
|
-
showActionsOnTriggerOnly: {
|
|
33
|
-
true: {
|
|
34
|
-
opacity: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
isTriggered: {
|
|
38
|
-
true: {
|
|
39
|
-
opacity: number;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}>;
|
|
43
|
-
export declare const descriptionCn: string;
|
|
44
|
-
export declare const contentContainerCn: string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { AccordionProps } from "./Accordion.types";
|
|
3
|
-
import type { Key } from "react";
|
|
4
|
-
export declare const AccordionContext: React.Context<{
|
|
5
|
-
expandedKeys: Set<Key>;
|
|
6
|
-
setExpandedKeys: React.Dispatch<React.SetStateAction<Set<Key>>>;
|
|
7
|
-
disabledKeys?: Set<Key>;
|
|
8
|
-
headers: Map<number, React.RefObject<HTMLButtonElement>>;
|
|
9
|
-
expansionMode?: "single" | "multiple";
|
|
10
|
-
}>;
|
|
11
|
-
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { ActionIconButtonProps } from "../ActionIconButton";
|
|
3
|
-
import type React from "react";
|
|
4
|
-
import type { Key } from "react";
|
|
5
|
-
export interface AccordionProps extends StylingProps {
|
|
6
|
-
/**
|
|
7
|
-
* This prop controls the expansion mode of the accordion. If set to `single`,
|
|
8
|
-
* only one item can be expanded at a time. If set to `multiple`, multiple
|
|
9
|
-
* items can be expanded at the same time.
|
|
10
|
-
*
|
|
11
|
-
* @default "multiple"
|
|
12
|
-
*/
|
|
13
|
-
expansionMode?: "single" | "multiple";
|
|
14
|
-
/** This callback is called when the expanded state of the accordion changes. */
|
|
15
|
-
onChange?: (value: Set<Key>) => void;
|
|
16
|
-
/** The children of the accordion. Each child should be an `AccordionItem`. */
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
/** The keys of the items that should be expanded by default. */
|
|
19
|
-
defaultExpandedKeys?: Set<Key>;
|
|
20
|
-
/**
|
|
21
|
-
* The keys of the items that should be expanded. If this prop is provided,
|
|
22
|
-
* the accordion will be a controlled component. This means that the expanded
|
|
23
|
-
* state of the accordion will not change unless you update this prop.
|
|
24
|
-
*/
|
|
25
|
-
expandedKeys?: Set<Key>;
|
|
26
|
-
/**
|
|
27
|
-
* The keys of the items that should be disabled. Disabled items cannot be
|
|
28
|
-
* expanded or collapsed.
|
|
29
|
-
*/
|
|
30
|
-
disabledKeys?: Set<Key>;
|
|
31
|
-
}
|
|
32
|
-
export interface AccordionItemProps extends StylingProps {
|
|
33
|
-
/** The title of the accordion item. */
|
|
34
|
-
title: string;
|
|
35
|
-
/**
|
|
36
|
-
* The buttons that should be rendered in the accordion item. These buttons
|
|
37
|
-
* will be rendered in the top right corner of the accordion item. They will
|
|
38
|
-
* be rendered in the order they are provided. The buttons will be rendered as
|
|
39
|
-
* `ActionIconButton`s, so you can pass any props that you would pass to an
|
|
40
|
-
* `ActionIconButton`.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```jsx
|
|
44
|
-
* <AccordionItem
|
|
45
|
-
* title="Accordion Item"
|
|
46
|
-
* actions={[{
|
|
47
|
-
* icon: EditIcon,
|
|
48
|
-
* label: "Edit",
|
|
49
|
-
* onPress: () => alert("Edit"),
|
|
50
|
-
* }]}>Content</AccordionItem>
|
|
51
|
-
* ```;
|
|
52
|
-
*/
|
|
53
|
-
actions?: Omit<ActionIconButtonProps, "size" | "variant" | "excludeFromTabOrder">[];
|
|
54
|
-
/**
|
|
55
|
-
* The action buttons should only be shown when the user hovers over or
|
|
56
|
-
* focuses the accordion item.
|
|
57
|
-
*
|
|
58
|
-
* @default false
|
|
59
|
-
*/
|
|
60
|
-
showActionsOnTriggerOnly?: boolean;
|
|
61
|
-
/** The content of the accordion item. */
|
|
62
|
-
children: React.ReactNode;
|
|
63
|
-
/** The key of the accordion item. */
|
|
64
|
-
value: Key;
|
|
65
|
-
/**
|
|
66
|
-
* The description of the accordion item. This will be rendered at the end of
|
|
67
|
-
* the accordion header.
|
|
68
|
-
*/
|
|
69
|
-
subLabel?: string;
|
|
70
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { AccordionItemProps } from "./Accordion.types";
|
|
3
|
-
export declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<AccordionItemProps, "children"> & {
|
|
4
|
-
controlId: string;
|
|
5
|
-
id: string;
|
|
6
|
-
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { Layers } from "@baseline-ui/tokens";
|
|
2
|
-
export declare const buttonCn: ((options?: {
|
|
3
|
-
variant?: "toolbar" | "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "success" | "warning" | "error" | undefined;
|
|
4
|
-
isDisabled?: boolean | undefined;
|
|
5
|
-
isFocusVisible?: boolean | undefined;
|
|
6
|
-
isHovered?: boolean | undefined;
|
|
7
|
-
size?: "sm" | "lg" | "md" | undefined;
|
|
8
|
-
} | undefined) => string) & {
|
|
9
|
-
variants: () => ("size" | "isHovered" | "isDisabled" | "variant" | "isFocusVisible")[];
|
|
10
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
11
|
-
variant: {
|
|
12
|
-
primary: {
|
|
13
|
-
backgroundColor: `var(--${string})`;
|
|
14
|
-
color: `var(--${string})`;
|
|
15
|
-
":disabled": {
|
|
16
|
-
backgroundColor: `var(--${string})`;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
secondary: {
|
|
20
|
-
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
21
|
-
backgroundColor: `var(--${string})`;
|
|
22
|
-
color: `var(--${string})`;
|
|
23
|
-
":disabled": {
|
|
24
|
-
color: `var(--${string})`;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
tertiary: {
|
|
28
|
-
backgroundColor: "transparent";
|
|
29
|
-
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
30
|
-
color: `var(--${string})`;
|
|
31
|
-
":disabled": {
|
|
32
|
-
boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
33
|
-
color: `var(--${string})`;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
ghost: {
|
|
37
|
-
backgroundColor: "transparent";
|
|
38
|
-
color: `var(--${string})`;
|
|
39
|
-
":disabled": {
|
|
40
|
-
color: `var(--${string})`;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
popover: ({
|
|
44
|
-
backgroundColor: "transparent";
|
|
45
|
-
color: `var(--${string})`;
|
|
46
|
-
transitionProperty: "none";
|
|
47
|
-
":disabled": {
|
|
48
|
-
color: `var(--${string})`;
|
|
49
|
-
};
|
|
50
|
-
"@layer"?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
"@layer": {
|
|
53
|
-
[Layers.BASE]: {
|
|
54
|
-
selectors: {
|
|
55
|
-
"&[data-hovered='true'], &[aria-expanded='true']": {
|
|
56
|
-
outline: `1px solid var(--${string})`;
|
|
57
|
-
outlineOffset: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
backgroundColor?: undefined;
|
|
63
|
-
color?: undefined;
|
|
64
|
-
transitionProperty?: undefined;
|
|
65
|
-
":disabled"?: undefined;
|
|
66
|
-
})[];
|
|
67
|
-
toolbar: {
|
|
68
|
-
backgroundColor: "transparent";
|
|
69
|
-
color: `var(--${string})`;
|
|
70
|
-
borderRadius: number;
|
|
71
|
-
":disabled": {
|
|
72
|
-
color: `var(--${string})`;
|
|
73
|
-
};
|
|
74
|
-
selectors: {
|
|
75
|
-
"&[data-hovered='true'], &[data-pressed='true'], &[aria-expanded='true']": {
|
|
76
|
-
backgroundColor: `var(--${string})`;
|
|
77
|
-
};
|
|
78
|
-
"&[data-focus-visible='true']": {
|
|
79
|
-
outline: `2px solid var(--${string})`;
|
|
80
|
-
outlineOffset: number;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
success: {
|
|
85
|
-
backgroundColor: `var(--${string})`;
|
|
86
|
-
color: `var(--${string})`;
|
|
87
|
-
":disabled": {
|
|
88
|
-
backgroundColor: `var(--${string})`;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
warning: {
|
|
92
|
-
backgroundColor: `var(--${string})`;
|
|
93
|
-
color: `var(--${string})`;
|
|
94
|
-
":disabled": {
|
|
95
|
-
backgroundColor: `var(--${string})`;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
error: {
|
|
99
|
-
backgroundColor: `var(--${string})`;
|
|
100
|
-
color: `var(--${string})`;
|
|
101
|
-
":disabled": {
|
|
102
|
-
backgroundColor: `var(--${string})`;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
isDisabled: {
|
|
107
|
-
true: {
|
|
108
|
-
cursor: "not-allowed";
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
isFocusVisible: {
|
|
112
|
-
true: {
|
|
113
|
-
boxShadow: `inset 0 0 0 2px var(--${string})`;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
isHovered: {
|
|
117
|
-
true: {};
|
|
118
|
-
};
|
|
119
|
-
size: {
|
|
120
|
-
sm: {
|
|
121
|
-
minHeight: number;
|
|
122
|
-
padding: `var(--${string})`;
|
|
123
|
-
};
|
|
124
|
-
md: {
|
|
125
|
-
minHeight: number;
|
|
126
|
-
padding: `var(--${string}) var(--${string})`;
|
|
127
|
-
};
|
|
128
|
-
lg: {
|
|
129
|
-
font: `var(--${string})`;
|
|
130
|
-
letterSpacing: `var(--${string})`;
|
|
131
|
-
minHeight: number;
|
|
132
|
-
padding: `var(--${string})`;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
}>;
|
|
136
|
-
};
|
|
137
|
-
export declare const buttonIconCn: ((options?: {
|
|
138
|
-
isDisabled?: boolean | undefined;
|
|
139
|
-
isFocusVisible?: boolean | undefined;
|
|
140
|
-
isHovered?: boolean | undefined;
|
|
141
|
-
variant?: "toolbar" | "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "success" | "warning" | "error" | undefined;
|
|
142
|
-
} | undefined) => string) & {
|
|
143
|
-
variants: () => ("isHovered" | "isDisabled" | "variant" | "isFocusVisible")[];
|
|
144
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
145
|
-
isDisabled: {
|
|
146
|
-
true: {};
|
|
147
|
-
};
|
|
148
|
-
isFocusVisible: {
|
|
149
|
-
true: {};
|
|
150
|
-
};
|
|
151
|
-
isHovered: {
|
|
152
|
-
true: {
|
|
153
|
-
"__@@Component_Sprinkles__": boolean;
|
|
154
|
-
baseSprinkles: string;
|
|
155
|
-
variantSprinkles: string;
|
|
156
|
-
compoundVariantSprinkles: string;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
variant: {
|
|
160
|
-
primary: {
|
|
161
|
-
"__@@Component_Sprinkles__": boolean;
|
|
162
|
-
baseSprinkles: string;
|
|
163
|
-
variantSprinkles: string;
|
|
164
|
-
compoundVariantSprinkles: string;
|
|
165
|
-
};
|
|
166
|
-
secondary: {
|
|
167
|
-
"__@@Component_Sprinkles__": boolean;
|
|
168
|
-
baseSprinkles: string;
|
|
169
|
-
variantSprinkles: string;
|
|
170
|
-
compoundVariantSprinkles: string;
|
|
171
|
-
};
|
|
172
|
-
tertiary: {
|
|
173
|
-
"__@@Component_Sprinkles__": boolean;
|
|
174
|
-
baseSprinkles: string;
|
|
175
|
-
variantSprinkles: string;
|
|
176
|
-
compoundVariantSprinkles: string;
|
|
177
|
-
};
|
|
178
|
-
ghost: {
|
|
179
|
-
"__@@Component_Sprinkles__": boolean;
|
|
180
|
-
baseSprinkles: string;
|
|
181
|
-
variantSprinkles: string;
|
|
182
|
-
compoundVariantSprinkles: string;
|
|
183
|
-
};
|
|
184
|
-
popover: {
|
|
185
|
-
"__@@Component_Sprinkles__": boolean;
|
|
186
|
-
baseSprinkles: string;
|
|
187
|
-
variantSprinkles: string;
|
|
188
|
-
compoundVariantSprinkles: string;
|
|
189
|
-
};
|
|
190
|
-
toolbar: {
|
|
191
|
-
"__@@Component_Sprinkles__": boolean;
|
|
192
|
-
baseSprinkles: string;
|
|
193
|
-
variantSprinkles: string;
|
|
194
|
-
compoundVariantSprinkles: string;
|
|
195
|
-
};
|
|
196
|
-
success: {
|
|
197
|
-
"__@@Component_Sprinkles__": boolean;
|
|
198
|
-
baseSprinkles: string;
|
|
199
|
-
variantSprinkles: string;
|
|
200
|
-
compoundVariantSprinkles: string;
|
|
201
|
-
};
|
|
202
|
-
warning: {
|
|
203
|
-
"__@@Component_Sprinkles__": boolean;
|
|
204
|
-
baseSprinkles: string;
|
|
205
|
-
variantSprinkles: string;
|
|
206
|
-
compoundVariantSprinkles: string;
|
|
207
|
-
};
|
|
208
|
-
error: {
|
|
209
|
-
"__@@Component_Sprinkles__": boolean;
|
|
210
|
-
baseSprinkles: string;
|
|
211
|
-
variantSprinkles: string;
|
|
212
|
-
compoundVariantSprinkles: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
}>;
|
|
216
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { IconProps } from "../Icon";
|
|
3
|
-
import type React from "react";
|
|
4
|
-
import type { AriaButtonProps } from "react-aria";
|
|
5
|
-
export type UIStateOptions<T = object> = {
|
|
6
|
-
isHovered?: boolean;
|
|
7
|
-
isFocused?: boolean;
|
|
8
|
-
isPressed?: boolean;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
isFocusVisible?: boolean;
|
|
11
|
-
} & T;
|
|
12
|
-
export interface StylingWithUIState<T = object> {
|
|
13
|
-
/** The button's class name. */
|
|
14
|
-
className?: string | ((props: UIStateOptions<T>) => string);
|
|
15
|
-
/** The button's style. */
|
|
16
|
-
style?: React.CSSProperties | ((props: UIStateOptions<T>) => React.CSSProperties);
|
|
17
|
-
}
|
|
18
|
-
export interface ActionButtonSharedProps extends Omit<AriaButtonProps<"button" | "div">, "rel" | "href" | "target" | "children">, Omit<StylingProps, "className" | "style">, StylingWithUIState {
|
|
19
|
-
/**
|
|
20
|
-
* A slot name for the component. Used to integrate with React Aria Components'
|
|
21
|
-
* context system (e.g., `slot="drag"` for drag handles in Table rows).
|
|
22
|
-
*/
|
|
23
|
-
slot?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export interface ActionButtonProps extends ActionButtonSharedProps {
|
|
26
|
-
/**
|
|
27
|
-
* The button's variant.
|
|
28
|
-
*
|
|
29
|
-
* @default primary
|
|
30
|
-
*/
|
|
31
|
-
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "popover" | "toolbar" | "success" | "warning" | "error";
|
|
32
|
-
/** The button's label. */
|
|
33
|
-
label: React.ReactNode;
|
|
34
|
-
/** The button's icon before the label. */
|
|
35
|
-
iconStart?: React.FC<IconProps>;
|
|
36
|
-
/** The button's icon after the label. */
|
|
37
|
-
iconEnd?: React.FC<IconProps>;
|
|
38
|
-
/**
|
|
39
|
-
* The button's size.
|
|
40
|
-
*
|
|
41
|
-
* @default sm
|
|
42
|
-
*/
|
|
43
|
-
size?: "sm" | "md" | "lg";
|
|
44
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ListItem } from "../shared/types/List";
|
|
3
|
-
import type { ActionGroupProps } from "./ActionGroup.types";
|
|
4
|
-
import type { ListState, Node } from "react-stately";
|
|
5
|
-
export declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export declare const ActionGroupItem: React.FC<ActionGroupItemProps>;
|
|
7
|
-
interface ActionGroupItemProps extends Pick<ActionGroupProps, "tooltipProps" | "renderActionItem" | "onAction" | "isDisabled"> {
|
|
8
|
-
item: Node<ListItem>;
|
|
9
|
-
state: ListState<ListItem>;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { IconProps } from "../Icon";
|
|
3
|
-
import type { ListItem } from "../shared/types/List";
|
|
4
|
-
import type { TooltipProps } from "../Tooltip";
|
|
5
|
-
import type { AriaActionGroupProps } from "@react-aria/actiongroup";
|
|
6
|
-
import type React from "react";
|
|
7
|
-
import type { Node } from "react-stately";
|
|
8
|
-
type ActionTooltipProps = Omit<TooltipProps, "variant" | "size" | "includeArrow" | "children">;
|
|
9
|
-
export interface ActionGroupProps extends StylingProps, Omit<AriaActionGroupProps<ListItem>, "children"> {
|
|
10
|
-
/** The items to display in the action group. */
|
|
11
|
-
items: ListItem[];
|
|
12
|
-
/**
|
|
13
|
-
* Represents the mode of selection for a component. This variable should be
|
|
14
|
-
* assigned one of the following string values: "single" or "multiple".
|
|
15
|
-
*/
|
|
16
|
-
selectionMode?: "single" | "multiple";
|
|
17
|
-
/** The props to be passed to the tooltip component. */
|
|
18
|
-
tooltipProps?: ActionTooltipProps | ((item: ListItem) => ActionTooltipProps);
|
|
19
|
-
/**
|
|
20
|
-
* A function that renders an action item. This function is called for each
|
|
21
|
-
* item in the action group. By default, an `ActionIconButton` is rendered.
|
|
22
|
-
*
|
|
23
|
-
* @default
|
|
24
|
-
*
|
|
25
|
-
* ```jsx
|
|
26
|
-
* <ActionIconButton
|
|
27
|
-
* variant="tertiary"
|
|
28
|
-
* icon={icon}
|
|
29
|
-
* aria-label={item.textValue}
|
|
30
|
-
* size="sm"
|
|
31
|
-
* isDisabled={_isDisabled}
|
|
32
|
-
* className={"BaselineUI-ActionGroup-Item"}
|
|
33
|
-
* />;
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
renderActionItem?: (item: Node<ListItem>, options: {
|
|
37
|
-
isSelected?: boolean;
|
|
38
|
-
isDisabled?: boolean;
|
|
39
|
-
}) => React.ReactNode;
|
|
40
|
-
/** The icon visible at the start of the group. */
|
|
41
|
-
icon?: React.FC<IconProps>;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
export declare const iconButtonCn: ((options?: {
|
|
2
|
-
size?: "xs" | "sm" | "lg" | "md" | "xxs" | undefined;
|
|
3
|
-
isHovered?: boolean | undefined;
|
|
4
|
-
isDisabled?: boolean | undefined;
|
|
5
|
-
isFocusVisible?: boolean | undefined;
|
|
6
|
-
variant?: "toolbar" | "primary" | "secondary" | "tertiary" | "ghost" | "popover" | undefined;
|
|
7
|
-
} | undefined) => string) & {
|
|
8
|
-
variants: () => ("size" | "isHovered" | "isDisabled" | "variant" | "isFocusVisible")[];
|
|
9
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
10
|
-
size: {
|
|
11
|
-
xxs: {
|
|
12
|
-
minHeight: number;
|
|
13
|
-
minWidth: number;
|
|
14
|
-
};
|
|
15
|
-
xs: {
|
|
16
|
-
minHeight: number;
|
|
17
|
-
minWidth: number;
|
|
18
|
-
};
|
|
19
|
-
sm: {
|
|
20
|
-
minHeight: number;
|
|
21
|
-
minWidth: number;
|
|
22
|
-
};
|
|
23
|
-
md: {
|
|
24
|
-
minHeight: number;
|
|
25
|
-
minWidth: number;
|
|
26
|
-
};
|
|
27
|
-
lg: ({
|
|
28
|
-
"__@@Component_Sprinkles__": boolean;
|
|
29
|
-
baseSprinkles: string;
|
|
30
|
-
variantSprinkles: string;
|
|
31
|
-
compoundVariantSprinkles: string;
|
|
32
|
-
} | {
|
|
33
|
-
minHeight: number;
|
|
34
|
-
minWidth: number;
|
|
35
|
-
})[];
|
|
36
|
-
};
|
|
37
|
-
isHovered: {
|
|
38
|
-
true: {};
|
|
39
|
-
};
|
|
40
|
-
isDisabled: {
|
|
41
|
-
true: ({
|
|
42
|
-
"__@@Component_Sprinkles__": boolean;
|
|
43
|
-
baseSprinkles: string;
|
|
44
|
-
variantSprinkles: string;
|
|
45
|
-
compoundVariantSprinkles: string;
|
|
46
|
-
} | {
|
|
47
|
-
cursor: "not-allowed";
|
|
48
|
-
})[];
|
|
49
|
-
};
|
|
50
|
-
isFocusVisible: {
|
|
51
|
-
true: {
|
|
52
|
-
boxShadow: `inset 0 0 0 2px var(--${string})`;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
variant: {
|
|
56
|
-
primary: {
|
|
57
|
-
selectors: {
|
|
58
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
59
|
-
backgroundColor: `var(--${string})`;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
secondary: {
|
|
64
|
-
selectors: {
|
|
65
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
66
|
-
color: `var(--${string})`;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
tertiary: {
|
|
71
|
-
selectors: {
|
|
72
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
73
|
-
backgroundColor: `var(--${string})`;
|
|
74
|
-
color: `var(--${string})`;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
ghost: {
|
|
79
|
-
selectors: {
|
|
80
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
81
|
-
color: `var(--${string})`;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
toolbar: ({
|
|
86
|
-
"__@@Component_Sprinkles__": boolean;
|
|
87
|
-
baseSprinkles: string;
|
|
88
|
-
variantSprinkles: string;
|
|
89
|
-
compoundVariantSprinkles: string;
|
|
90
|
-
} | {
|
|
91
|
-
selectors: {
|
|
92
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
93
|
-
backgroundColor: `var(--${string})`;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
})[];
|
|
97
|
-
popover: ({
|
|
98
|
-
"__@@Component_Sprinkles__": boolean;
|
|
99
|
-
baseSprinkles: string;
|
|
100
|
-
variantSprinkles: string;
|
|
101
|
-
compoundVariantSprinkles: string;
|
|
102
|
-
} | {
|
|
103
|
-
minHeight: "unset";
|
|
104
|
-
width: "fit-content";
|
|
105
|
-
minWidth: "unset";
|
|
106
|
-
selectors: {
|
|
107
|
-
"&[aria-expanded='true'], &[data-pressed='true']": {
|
|
108
|
-
outline: `1px solid var(--${string})`;
|
|
109
|
-
outlineOffset: number;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
})[];
|
|
113
|
-
};
|
|
114
|
-
}>;
|
|
115
|
-
};
|
|
116
|
-
export declare const chevronCn: string;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ActionButtonSharedProps } from "../ActionButton/ActionButton.types";
|
|
2
|
-
import type { IconProps } from "../Icon";
|
|
3
|
-
import type { TooltipProps } from "../Tooltip";
|
|
4
|
-
import type React from "react";
|
|
5
|
-
export interface ActionIconButtonProps extends ActionButtonSharedProps {
|
|
6
|
-
/** The icon to display */
|
|
7
|
-
icon: React.FC<IconProps>;
|
|
8
|
-
/**
|
|
9
|
-
* The size of the icon button.
|
|
10
|
-
*
|
|
11
|
-
* @default "md"
|
|
12
|
-
*/
|
|
13
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg";
|
|
14
|
-
/**
|
|
15
|
-
* The variant of the icon button.
|
|
16
|
-
*
|
|
17
|
-
* @default "primary"
|
|
18
|
-
*/
|
|
19
|
-
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "toolbar" | "popover";
|
|
20
|
-
/** Indicates whether focusing should be prevented on press. */
|
|
21
|
-
preventFocusOnPress?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to show a tooltip. You can pass a boolean or a partial tooltip
|
|
24
|
-
* object that extends the default tooltip props.
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
tooltip?: boolean | Partial<Omit<TooltipProps, "children">>;
|
|
29
|
-
/** The drag props to use for drag and drop interactions. */
|
|
30
|
-
dragProps?: React.HTMLAttributes<HTMLElement>;
|
|
31
|
-
/**
|
|
32
|
-
* There are some cases where we need to use a button that is not interactive.
|
|
33
|
-
* For example, when we need to use a visual button inside a TabItem component
|
|
34
|
-
* that should remove the tab when clicked. Since this button never needs to
|
|
35
|
-
* be focused directly, we can set this prop to true to avoid the button being
|
|
36
|
-
* focusable. At the same time we also avoid the [nested element
|
|
37
|
-
* rule](https://dequeuniversity.com/rules/axe/html/4.6/nested-interactive)
|
|
38
|
-
*
|
|
39
|
-
* This is different from `isExcludedFromRovingFocus` because it only affects
|
|
40
|
-
* because this prop removes the button fully from the accessibility tree and
|
|
41
|
-
* renders it as a div with no role, aria-label, aria-labelledby,
|
|
42
|
-
* aria-disabled, etc.
|
|
43
|
-
*
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
UNSAFE_isVisuallyInteractiveOnly?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the button is excluded from roving focus. In this case, the button
|
|
49
|
-
* will not be focusable using keyboard arrow keys but will still have correct
|
|
50
|
-
* role, aria-label, aria-labelledby, aria-disabled, etc. Avoid using this
|
|
51
|
-
* prop unless absolutely necessary.
|
|
52
|
-
*
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
isExcludedFromRovingFocus?: boolean;
|
|
56
|
-
}
|