@baseline-ui/core 0.59.0 → 0.60.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/Acknowledgements.md +5840 -12848
- package/dist/components/Accordion/Accordion.css.d.ts +44 -0
- package/dist/components/Accordion/Accordion.d.ts +11 -0
- package/dist/components/Accordion/Accordion.types.d.ts +70 -0
- package/dist/components/Accordion/AccordionBase.d.ts +5 -0
- package/dist/components/Accordion/AccordionHeader.d.ts +6 -0
- package/dist/components/Accordion/AccordionItem.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/ActionButton/ActionButton.css.d.ts +216 -0
- package/dist/components/ActionButton/ActionButton.d.ts +4 -0
- package/dist/components/ActionButton/ActionButton.types.d.ts +44 -0
- package/dist/components/ActionButton/index.d.ts +2 -0
- package/dist/components/ActionGroup/ActionGroup.css.d.ts +2 -0
- package/dist/components/ActionGroup/ActionGroup.d.ts +11 -0
- package/dist/components/ActionGroup/ActionGroup.types.d.ts +43 -0
- package/dist/components/ActionGroup/index.d.ts +3 -0
- package/dist/components/ActionIconButton/ActionIconButton.css.d.ts +116 -0
- package/dist/components/ActionIconButton/ActionIconButton.d.ts +3 -0
- package/dist/components/ActionIconButton/ActionIconButton.types.d.ts +56 -0
- package/dist/components/ActionIconButton/index.d.ts +2 -0
- package/dist/components/Actionable/Actionable.css.d.ts +2 -0
- package/dist/components/Actionable/Actionable.d.ts +3 -0
- package/dist/components/Actionable/Actionable.types.d.ts +15 -0
- package/dist/components/Actionable/index.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.css.d.ts +26 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +3 -0
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +77 -0
- package/dist/components/AlertDialog/index.d.ts +3 -0
- package/dist/components/AudioPlayer/AudioPlayer.css.d.ts +3 -0
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +3 -0
- package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +27 -0
- package/dist/components/AudioPlayer/index.d.ts +3 -0
- package/dist/components/Avatar/Avatar.css.d.ts +19 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.types.d.ts +31 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Box/Box.d.ts +3 -0
- package/dist/components/Box/Box.types.d.ts +12 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/ButtonSelect/ButtonSelect.css.d.ts +3 -0
- package/dist/components/ButtonSelect/ButtonSelect.d.ts +3 -0
- package/dist/components/ButtonSelect/ButtonSelect.types.d.ts +56 -0
- package/dist/components/ButtonSelect/index.d.ts +3 -0
- package/dist/components/Calendar/Calendar.css.d.ts +135 -0
- package/dist/components/Calendar/Calendar.d.ts +4 -0
- package/dist/components/Calendar/Calendar.types.d.ts +22 -0
- package/dist/components/Calendar/CalendarCell.d.ts +9 -0
- package/dist/components/Calendar/CalendarHeader.d.ts +6 -0
- package/dist/components/Calendar/RangeCalendar.d.ts +4 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Calendar/intl/index.d.ts +267 -0
- package/dist/components/Checkbox/Checkbox.css.d.ts +103 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +17 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Code/Code.css.d.ts +2 -0
- package/dist/components/Code/Code.d.ts +3 -0
- package/dist/components/Code/Code.types.d.ts +6 -0
- package/dist/components/Code/index.d.ts +3 -0
- package/dist/components/ColorInput/ColorArea.d.ts +4 -0
- package/dist/components/ColorInput/ColorFieldInput.d.ts +13 -0
- package/dist/components/ColorInput/ColorInput.css.d.ts +165 -0
- package/dist/components/ColorInput/ColorInput.d.ts +3 -0
- package/dist/components/ColorInput/ColorInput.types.d.ts +137 -0
- package/dist/components/ColorInput/ColorInputButton.d.ts +21 -0
- package/dist/components/ColorInput/ColorPresetList.d.ts +16 -0
- package/dist/components/ColorInput/ColorSlider.d.ts +3 -0
- package/dist/components/ColorInput/CustomColors.d.ts +15 -0
- package/dist/components/ColorInput/IconColorInput.d.ts +3 -0
- package/dist/components/ColorInput/Picker.d.ts +8 -0
- package/dist/components/ColorInput/__tests__/data.d.ts +8 -0
- package/dist/components/ColorInput/hooks/useColorTrigger.d.ts +13 -0
- package/dist/components/ColorInput/index.d.ts +4 -0
- package/dist/components/ColorInput/intl/index.d.ts +399 -0
- package/dist/components/ColorInput/utils.d.ts +44 -0
- package/dist/components/ColorSwatch/ColorSwatch.css.d.ts +39 -0
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +3 -0
- package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +44 -0
- package/dist/components/ColorSwatch/index.d.ts +2 -0
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.css.d.ts +2 -0
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.d.ts +3 -0
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.types.d.ts +46 -0
- package/dist/components/ColorSwatchPicker/index.d.ts +3 -0
- package/dist/components/ComboBox/ComboBox.css.d.ts +203 -0
- package/dist/components/ComboBox/ComboBox.d.ts +3 -0
- package/dist/components/ComboBox/ComboBox.types.d.ts +96 -0
- package/dist/components/ComboBox/index.d.ts +3 -0
- package/dist/components/ComboBox/useOnValueChange.d.ts +6 -0
- package/dist/components/DateField/DateField.d.ts +6 -0
- package/dist/components/DateField/DateField.types.d.ts +17 -0
- package/dist/components/DateField/index.d.ts +3 -0
- package/dist/components/DateField/intl/index.d.ts +102 -0
- package/dist/components/DateFormat/DateFormat.d.ts +3 -0
- package/dist/components/DateFormat/DateFormat.types.d.ts +5 -0
- package/dist/components/DateFormat/index.d.ts +2 -0
- package/dist/components/DeviceProvider/DeviceProvider.d.ts +6 -0
- package/dist/components/DeviceProvider/DeviceProvider.types.d.ts +12 -0
- package/dist/components/DeviceProvider/index.d.ts +2 -0
- package/dist/components/Dialog/Dialog.css.d.ts +53 -0
- package/dist/components/Dialog/Dialog.d.ts +6 -0
- package/dist/components/Dialog/Dialog.types.d.ts +37 -0
- package/dist/components/Dialog/DialogTitle.d.ts +3 -0
- package/dist/components/Dialog/index.d.ts +3 -0
- package/dist/components/Dialog/useDeferredLabel.d.ts +7 -0
- package/dist/components/Disclosure/Disclosure.css.d.ts +116 -0
- package/dist/components/Disclosure/Disclosure.d.ts +3 -0
- package/dist/components/Disclosure/Disclosure.types.d.ts +30 -0
- package/dist/components/Disclosure/index.d.ts +3 -0
- package/dist/components/DomNodeRenderer/DomNodeRenderer.d.ts +3 -0
- package/dist/components/DomNodeRenderer/DomNodeRenderer.types.d.ts +11 -0
- package/dist/components/DomNodeRenderer/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.css.d.ts +31 -0
- package/dist/components/Drawer/Drawer.d.ts +3 -0
- package/dist/components/Drawer/Drawer.types.d.ts +24 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Editor/Editor.css.d.ts +131 -0
- package/dist/components/Editor/Editor.d.ts +3 -0
- package/dist/components/Editor/Editor.types.d.ts +159 -0
- package/dist/components/Editor/EditorToolbar.d.ts +15 -0
- package/dist/components/Editor/HelpDialog.d.ts +5 -0
- package/dist/components/Editor/RichEditor.d.ts +24 -0
- package/dist/components/Editor/elements/AddLink.d.ts +10 -0
- package/dist/components/Editor/elements/Mention.d.ts +46 -0
- package/dist/components/Editor/elements/Paragraph.d.ts +2 -0
- package/dist/components/Editor/elements/PlainEditor.d.ts +11 -0
- package/dist/components/Editor/index.d.ts +2 -0
- package/dist/components/Editor/utils.d.ts +93 -0
- package/dist/components/FileUpload/FileUpload.css.d.ts +69 -0
- package/dist/components/FileUpload/FileUpload.d.ts +3 -0
- package/dist/components/FileUpload/FileUpload.types.d.ts +38 -0
- package/dist/components/FileUpload/hooks/useFileUpload.d.ts +22 -0
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FrameProvider/FrameProvider.d.ts +20 -0
- package/dist/components/FrameProvider/FrameProvider.types.d.ts +40 -0
- package/dist/components/FrameProvider/index.d.ts +2 -0
- package/dist/components/FreehandCanvas/FreehandCanvas.css.d.ts +78 -0
- package/dist/components/FreehandCanvas/FreehandCanvas.d.ts +4 -0
- package/dist/components/FreehandCanvas/FreehandCanvas.types.d.ts +116 -0
- package/dist/components/FreehandCanvas/hooks/usePathsData.d.ts +27 -0
- package/dist/components/FreehandCanvas/index.d.ts +2 -0
- package/dist/components/FreehandCanvas/intl/index.d.ts +135 -0
- package/dist/components/GridList/GridList.css.d.ts +22 -0
- package/dist/components/GridList/GridList.d.ts +3 -0
- package/dist/components/GridList/GridList.types.d.ts +84 -0
- package/dist/components/GridList/GridListItem.d.ts +20 -0
- package/dist/components/GridList/index.d.ts +3 -0
- package/dist/components/Group/Group.d.ts +3 -0
- package/dist/components/Group/Group.types.d.ts +19 -0
- package/dist/components/Group/index.d.ts +2 -0
- package/dist/components/I18nProvider/I18Provider.types.d.ts +11 -0
- package/dist/components/I18nProvider/I18nProvider.css.d.ts +1 -0
- package/dist/components/I18nProvider/I18nProvider.d.ts +10 -0
- package/dist/components/I18nProvider/index.d.ts +4 -0
- package/dist/components/Icon/Icon.d.ts +4 -0
- package/dist/components/Icon/Icon.types.d.ts +36 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/ImageDropZone/ImageDropZone.css.d.ts +76 -0
- package/dist/components/ImageDropZone/ImageDropZone.d.ts +3 -0
- package/dist/components/ImageDropZone/ImageDropZone.types.d.ts +50 -0
- package/dist/components/ImageDropZone/index.d.ts +2 -0
- package/dist/components/ImageDropZone/intl/index.d.ts +135 -0
- package/dist/components/ImageGallery/AdaptiveText.d.ts +13 -0
- package/dist/components/ImageGallery/ImageGallery.css.d.ts +86 -0
- package/dist/components/ImageGallery/ImageGallery.d.ts +18 -0
- package/dist/components/ImageGallery/ImageGallery.types.d.ts +130 -0
- package/dist/components/ImageGallery/ImageGalleryDragPreview.d.ts +22 -0
- package/dist/components/ImageGallery/ImageGalleryItem.d.ts +3 -0
- package/dist/components/ImageGallery/index.d.ts +2 -0
- package/dist/components/ImageGallery/utils.d.ts +10 -0
- package/dist/components/InlineAlert/InlineAlert.css.d.ts +214 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +3 -0
- package/dist/components/InlineAlert/InlineAlert.types.d.ts +38 -0
- package/dist/components/InlineAlert/index.d.ts +2 -0
- package/dist/components/InlineAlert/intl/index.d.ts +102 -0
- package/dist/components/InlineToolbar/InlineToolbar.css.d.ts +50 -0
- package/dist/components/InlineToolbar/InlineToolbar.d.ts +3 -0
- package/dist/components/InlineToolbar/InlineToolbar.types.d.ts +63 -0
- package/dist/components/InlineToolbar/InlineToolbarButton.d.ts +3 -0
- package/dist/components/InlineToolbar/index.d.ts +2 -0
- package/dist/components/Kbd/Kbd.css.d.ts +1 -0
- package/dist/components/Kbd/Kbd.d.ts +3 -0
- package/dist/components/Kbd/Kbd.types.d.ts +21 -0
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Link/Link.css.d.ts +41 -0
- package/dist/components/Link/Link.d.ts +3 -0
- package/dist/components/Link/Link.types.d.ts +26 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/ListBox/DefaultListOption.d.ts +22 -0
- package/dist/components/ListBox/DropIndicator.d.ts +11 -0
- package/dist/components/ListBox/ListBox.css.d.ts +91 -0
- package/dist/components/ListBox/ListBox.d.ts +6 -0
- package/dist/components/ListBox/ListBox.types.d.ts +104 -0
- package/dist/components/ListBox/ListBoxSection.d.ts +14 -0
- package/dist/components/ListBox/ListOption.d.ts +17 -0
- package/dist/components/ListBox/hooks/useDragAndDrop.d.ts +3 -0
- package/dist/components/ListBox/hooks/useDragAutoScroll.d.ts +5 -0
- package/dist/components/ListBox/hooks/useDragDrop.d.ts +33 -0
- package/dist/components/ListBox/hooks/useSharedList.d.ts +8 -0
- package/dist/components/ListBox/index.d.ts +4 -0
- package/dist/components/Markdown/Markdown.css.d.ts +3 -0
- package/dist/components/Markdown/Markdown.d.ts +3 -0
- package/dist/components/Markdown/Markdown.types.d.ts +7 -0
- package/dist/components/Markdown/index.d.ts +3 -0
- package/dist/components/Menu/Menu.css.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts +3 -0
- package/dist/components/Menu/Menu.types.d.ts +63 -0
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/MessageFormat/MessageFormat.d.ts +3 -0
- package/dist/components/MessageFormat/MessageFormat.types.d.ts +14 -0
- package/dist/components/MessageFormat/index.d.ts +2 -0
- package/dist/components/Modal/Modal.css.d.ts +39 -0
- package/dist/components/Modal/Modal.d.ts +11 -0
- package/dist/components/Modal/Modal.types.d.ts +70 -0
- package/dist/components/Modal/ModalClose.d.ts +4 -0
- package/dist/components/Modal/ModalContent.d.ts +13 -0
- package/dist/components/Modal/ModalContentCore.d.ts +3 -0
- package/dist/components/Modal/ModalTrigger.d.ts +4 -0
- package/dist/components/Modal/hooks/useDialogPosition.d.ts +13 -0
- package/dist/components/Modal/index.d.ts +5 -0
- package/dist/components/NumberFormat/NumberFormat.d.ts +3 -0
- package/dist/components/NumberFormat/NumberFormat.types.d.ts +5 -0
- package/dist/components/NumberFormat/index.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.css.d.ts +9 -0
- package/dist/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/components/NumberInput/NumberInput.types.d.ts +26 -0
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.css.d.ts +84 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/Pagination.types.d.ts +25 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/intl/index.d.ts +201 -0
- package/dist/components/Panel/Panel.css.d.ts +1 -0
- package/dist/components/Panel/Panel.d.ts +2 -0
- package/dist/components/Panel/Panel.types.d.ts +72 -0
- package/dist/components/Panel/PanelContext.d.ts +6 -0
- package/dist/components/Panel/PanelGroup.d.ts +2 -0
- package/dist/components/Panel/PanelResizeHandle.d.ts +5 -0
- package/dist/components/Panel/index.d.ts +4 -0
- package/dist/components/PointPicker/Grid.d.ts +7 -0
- package/dist/components/PointPicker/PointPicker.css.d.ts +37 -0
- package/dist/components/PointPicker/PointPicker.d.ts +22 -0
- package/dist/components/PointPicker/PointPicker.types.d.ts +116 -0
- package/dist/components/PointPicker/PointPickerContent/PointPickerContent.d.ts +3 -0
- package/dist/components/PointPicker/PointPickerContent/PointPickerIndicator.d.ts +8 -0
- package/dist/components/PointPicker/PointPickerContent/hooks/useCoordinatesRelativeToWindow.d.ts +4 -0
- package/dist/components/PointPicker/PointPickerContent/hooks/usePointPickerKeyboard.d.ts +3 -0
- package/dist/components/PointPicker/PointPickerContent/index.d.ts +1 -0
- package/dist/components/PointPicker/PointPickerDisplay/Floater.d.ts +7 -0
- package/dist/components/PointPicker/PointPickerDisplay/MagnifierContent.d.ts +8 -0
- package/dist/components/PointPicker/PointPickerDisplay/PointPickerDisplay.d.ts +3 -0
- package/dist/components/PointPicker/PointPickerDisplay/hooks/useIndicatorWidthObserver.d.ts +1 -0
- package/dist/components/PointPicker/PointPickerDisplay/index.d.ts +1 -0
- package/dist/components/PointPicker/PointsVisualiser/PointsVisualiser.d.ts +11 -0
- package/dist/components/PointPicker/PointsVisualiser/canvasUtils.d.ts +20 -0
- package/dist/components/PointPicker/PointsVisualiser/hooks/usePointProximity.d.ts +12 -0
- package/dist/components/PointPicker/hooks/usePointPicker.d.ts +4 -0
- package/dist/components/PointPicker/index.d.ts +5 -0
- package/dist/components/PointPicker/workers/canvas.worker.d.ts +1 -0
- package/dist/components/PointPicker/workers/pointProximity.worker.d.ts +1 -0
- package/dist/components/Popover/Arrow.d.ts +7 -0
- package/dist/components/Popover/Popover.css.d.ts +55 -0
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.types.d.ts +133 -0
- package/dist/components/Popover/PopoverContent.d.ts +3 -0
- package/dist/components/Popover/PopoverContentCore.d.ts +7 -0
- package/dist/components/Popover/PopoverTrigger.d.ts +8 -0
- package/dist/components/Popover/hooks/usePopoverScrollReposition.d.ts +22 -0
- package/dist/components/Popover/hooks/usePopoverTransition.d.ts +23 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Portal/Portal.d.ts +3 -0
- package/dist/components/Portal/Portal.types.d.ts +4 -0
- package/dist/components/Portal/index.d.ts +2 -0
- package/dist/components/PortalContainerProvider/PortalContainerProvider.d.ts +4 -0
- package/dist/components/PortalContainerProvider/PortalContainerProvider.types.d.ts +12 -0
- package/dist/components/PortalContainerProvider/index.d.ts +1 -0
- package/dist/components/Preview/Preview.css.d.ts +50 -0
- package/dist/components/Preview/Preview.d.ts +3 -0
- package/dist/components/Preview/Preview.types.d.ts +59 -0
- package/dist/components/Preview/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.css.d.ts +48 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +20 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +9 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +3 -0
- package/dist/components/ProgressSpinner/ProgressSpinner.types.d.ts +16 -0
- package/dist/components/ProgressSpinner/index.d.ts +2 -0
- package/dist/components/RadioGroup/RadioGroup.css.d.ts +26 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +67 -0
- package/dist/components/RadioGroup/RadioItem.d.ts +11 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/Reaction/Reaction.css.d.ts +74 -0
- package/dist/components/Reaction/Reaction.d.ts +3 -0
- package/dist/components/Reaction/Reaction.types.d.ts +13 -0
- package/dist/components/Reaction/index.d.ts +2 -0
- package/dist/components/ScrollControlButton/ScrollControlButton.css.d.ts +1 -0
- package/dist/components/ScrollControlButton/ScrollControlButton.d.ts +3 -0
- package/dist/components/ScrollControlButton/ScrollControlButton.types.d.ts +31 -0
- package/dist/components/ScrollControlButton/index.d.ts +3 -0
- package/dist/components/SearchInput/SearchInput.css.d.ts +64 -0
- package/dist/components/SearchInput/SearchInput.d.ts +3 -0
- package/dist/components/SearchInput/SearchInput.types.d.ts +27 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/Select/IconSelect.d.ts +3 -0
- package/dist/components/Select/Select.css.d.ts +58 -0
- package/dist/components/Select/Select.d.ts +9 -0
- package/dist/components/Select/Select.types.d.ts +87 -0
- package/dist/components/Select/SelectButton.d.ts +3 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Separator/Separator.css.d.ts +19 -0
- package/dist/components/Separator/Separator.d.ts +3 -0
- package/dist/components/Separator/Separator.types.d.ts +12 -0
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +7 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Slider/IconSlider.d.ts +3 -0
- package/dist/components/Slider/Slider.css.d.ts +133 -0
- package/dist/components/Slider/Slider.d.ts +3 -0
- package/dist/components/Slider/Slider.types.d.ts +42 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/StatusCard/StatusCard.css.d.ts +87 -0
- package/dist/components/StatusCard/StatusCard.d.ts +10 -0
- package/dist/components/StatusCard/StatusCard.types.d.ts +34 -0
- package/dist/components/StatusCard/index.d.ts +3 -0
- package/dist/components/Switch/Switch.css.d.ts +67 -0
- package/dist/components/Switch/Switch.d.ts +3 -0
- package/dist/components/Switch/Switch.types.d.ts +15 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Table/Table.css.d.ts +111 -0
- package/dist/components/Table/Table.d.ts +8 -0
- package/dist/components/Table/Table.types.d.ts +26 -0
- package/dist/components/Table/hooks/useTableDragAndDrop.d.ts +8 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Tabs/TabItem.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.d.ts +9 -0
- package/dist/components/Tabs/Tabs.css.d.ts +122 -0
- package/dist/components/Tabs/Tabs.d.ts +3 -0
- package/dist/components/Tabs/Tabs.types.d.ts +66 -0
- package/dist/components/Tabs/TabsBase.d.ts +7 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tag/Tag.css.d.ts +215 -0
- package/dist/components/Tag/Tag.d.ts +3 -0
- package/dist/components/Tag/Tag.types.d.ts +43 -0
- package/dist/components/Tag/TagContext.d.ts +15 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/TagGroup/TagGroup.css.d.ts +1 -0
- package/dist/components/TagGroup/TagGroup.d.ts +3 -0
- package/dist/components/TagGroup/TagGroup.types.d.ts +38 -0
- package/dist/components/TagGroup/index.d.ts +2 -0
- package/dist/components/TaggedPagination/TaggedPagination.css.d.ts +70 -0
- package/dist/components/TaggedPagination/TaggedPagination.d.ts +3 -0
- package/dist/components/TaggedPagination/TaggedPagination.types.d.ts +50 -0
- package/dist/components/TaggedPagination/index.d.ts +2 -0
- package/dist/components/Text/Text.css.d.ts +51 -0
- package/dist/components/Text/Text.d.ts +3 -0
- package/dist/components/Text/Text.types.d.ts +24 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.css.d.ts +183 -0
- package/dist/components/TextInput/TextInput.d.ts +3 -0
- package/dist/components/TextInput/TextInput.types.d.ts +18 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/utils/getMessage.d.ts +12 -0
- package/dist/components/TextInput/utils/getStatusIcon.d.ts +6 -0
- package/dist/components/ThemeProvider/ThemeProvider.context.d.ts +6 -0
- package/dist/components/ThemeProvider/ThemeProvider.css.d.ts +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +3 -0
- package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +29 -0
- package/dist/components/ThemeProvider/hooks/useUserPreferences.d.ts +19 -0
- package/dist/components/ThemeProvider/index.d.ts +6 -0
- package/dist/components/TimeField/DateTimeSegment.d.ts +5 -0
- package/dist/components/TimeField/TimeField.css.d.ts +16 -0
- package/dist/components/TimeField/TimeField.d.ts +3 -0
- package/dist/components/TimeField/TimeField.types.d.ts +6 -0
- package/dist/components/TimeField/index.d.ts +3 -0
- package/dist/components/Toast/Toast.css.d.ts +34 -0
- package/dist/components/Toast/Toast.d.ts +3 -0
- package/dist/components/Toast/Toast.types.d.ts +14 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/ToggleButton/ToggleButton.css.d.ts +74 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +3 -0
- package/dist/components/ToggleButton/ToggleButton.types.d.ts +27 -0
- package/dist/components/ToggleButton/index.d.ts +2 -0
- package/dist/components/ToggleIconButton/ToggleIconButton.css.d.ts +149 -0
- package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +3 -0
- package/dist/components/ToggleIconButton/ToggleIconButton.types.d.ts +30 -0
- package/dist/components/ToggleIconButton/index.d.ts +2 -0
- package/dist/components/Toolbar/CollapsibleToolbar.d.ts +3 -0
- package/dist/components/Toolbar/Toolbar.css.d.ts +2 -0
- package/dist/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/components/Toolbar/Toolbar.types.d.ts +47 -0
- package/dist/components/Toolbar/WrappedToolbar.d.ts +3 -0
- package/dist/components/Toolbar/hooks/useFormattedList.d.ts +3 -0
- package/dist/components/Toolbar/hooks/useInputAwareToolbar.d.ts +6 -0
- package/dist/components/Toolbar/index.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.css.d.ts +44 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +55 -0
- package/dist/components/Tooltip/TooltipContent.d.ts +15 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/TreeView/TreeItem.d.ts +7 -0
- package/dist/components/TreeView/TreeView.css.d.ts +34 -0
- package/dist/components/TreeView/TreeView.d.ts +8 -0
- package/dist/components/TreeView/TreeView.types.d.ts +95 -0
- package/dist/components/TreeView/index.d.ts +2 -0
- package/dist/components/UNSAFE_ListBox/ListBox.css.d.ts +92 -0
- package/dist/components/UNSAFE_ListBox/ListBox.d.ts +13 -0
- package/dist/components/UNSAFE_ListBox/ListBox.types.d.ts +84 -0
- package/dist/components/UNSAFE_ListBox/ListBoxUI.d.ts +19 -0
- package/dist/components/UNSAFE_ListBox/hooks/useDragAndDrop.d.ts +3 -0
- package/dist/components/UNSAFE_ListBox/index.d.ts +3 -0
- package/dist/components/Virtualizer/LocaleAwareGridLayout.d.ts +17 -0
- package/dist/components/Virtualizer/Virtualizer.types.d.ts +6 -0
- package/dist/components/Virtualizer/index.d.ts +36 -0
- package/dist/components/index.d.ts +81 -0
- package/dist/components/shared/buttons.d.ts +30 -0
- package/dist/components/shared/collection.d.ts +3 -0
- package/dist/components/shared/components/DragPreviewContent.d.ts +12 -0
- package/dist/components/shared/components/IconWithTooltip.d.ts +8 -0
- package/dist/components/shared/components/ListCollectionBuilder.d.ts +9 -0
- package/dist/components/shared/components/OverlayEventLeakPreventionLayer.d.ts +8 -0
- package/dist/components/shared/components/SharedInput/SharedInput.d.ts +3 -0
- package/dist/components/shared/components/SharedInput/SharedInput.types.d.ts +34 -0
- package/dist/components/shared/components/SharedInput/index.d.ts +1 -0
- package/dist/components/shared/tooltips.d.ts +11 -0
- package/dist/components/shared/types/IconComponent.d.ts +21 -0
- package/dist/components/shared/types/List.d.ts +17 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/useDevice.d.ts +20 -0
- package/dist/hooks/useI18n.d.ts +59 -0
- package/dist/hooks/useImage.d.ts +23 -0
- package/dist/hooks/useIntersectionObserver.d.ts +44 -0
- package/dist/hooks/useIsFirstRender.d.ts +21 -0
- package/dist/hooks/useIsTouchDevice.d.ts +7 -0
- package/dist/hooks/useLiveInteractionModality.d.ts +13 -0
- package/dist/hooks/useLocalStorage.d.ts +20 -0
- package/dist/hooks/useMedia.d.ts +13 -0
- package/dist/hooks/useMutationObserver.d.ts +20 -0
- package/dist/hooks/usePortalContainer.d.ts +11 -0
- package/dist/hooks/usePreventFocus.d.ts +23 -0
- package/dist/hooks/useResizeObserver.d.ts +38 -0
- package/dist/hooks/useTextSelection.d.ts +29 -0
- package/dist/hooks/useUndoRedo.d.ts +44 -0
- package/dist/index.d.ts +11 -10076
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/dist/react-aria.d.ts +2 -0
- package/dist/react-stately.d.ts +2 -0
- package/dist/utils/a11y.d.ts +1 -0
- package/dist/utils/classNames.d.ts +17 -0
- package/dist/utils/colors.d.ts +11 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/devWarn.d.ts +1 -0
- package/dist/utils/dom.d.ts +130 -0
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/invariant.d.ts +18 -0
- package/dist/utils/isInIframe.d.ts +12 -0
- package/dist/utils/isInShadowDOM.d.ts +11 -0
- package/dist/utils/isRect.d.ts +7 -0
- package/dist/utils/keyboards.d.ts +13 -0
- package/dist/utils/math.d.ts +1 -0
- package/dist/utils/objects.d.ts +20 -0
- package/dist/utils/overlays.d.ts +6 -0
- package/dist/utils/reactAriaCompat.d.ts +22 -0
- package/dist/utils/reactAriaComponentsCompat.d.ts +4 -0
- package/dist/utils/resolveAriaLabelAttrs.d.ts +22 -0
- package/dist/utils/resolvePublicUrl.d.ts +1 -0
- package/dist/utils/strings.d.ts +6 -0
- package/dist/utils/style.d.ts +5 -0
- package/dist/utils/styleMixins.css.d.ts +16 -0
- package/dist/utils/svgs.d.ts +15 -0
- package/dist/utils/types/Shared.d.ts +34 -0
- package/dist/utils/validations.d.ts +13 -0
- package/package.json +7 -7
- package/sbom.json +1 -1
- package/dist/index.d.mts +0 -10076
|
@@ -0,0 +1,44 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,43 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,116 @@
|
|
|
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;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
}
|