@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,78 @@
|
|
|
1
|
+
export declare const freehandCanvasContainerCn: string;
|
|
2
|
+
export declare const freehandCanvasHeaderCn: ((options?: {
|
|
3
|
+
isInline?: boolean | undefined;
|
|
4
|
+
} | undefined) => string) & {
|
|
5
|
+
variants: () => "isInline"[];
|
|
6
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
7
|
+
isInline: {
|
|
8
|
+
false: string;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const freehandCanvasCn: ((options?: {
|
|
13
|
+
isFocusVisible?: boolean | undefined;
|
|
14
|
+
isInline?: boolean | undefined;
|
|
15
|
+
isDisabled?: boolean | undefined;
|
|
16
|
+
} | undefined) => string) & {
|
|
17
|
+
variants: () => ("isDisabled" | "isFocusVisible" | "isInline")[];
|
|
18
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
19
|
+
isFocusVisible: {
|
|
20
|
+
true: {};
|
|
21
|
+
};
|
|
22
|
+
isInline: {
|
|
23
|
+
true: {
|
|
24
|
+
"__@@Component_Sprinkles__": boolean;
|
|
25
|
+
baseSprinkles: string;
|
|
26
|
+
variantSprinkles: string;
|
|
27
|
+
compoundVariantSprinkles: string;
|
|
28
|
+
};
|
|
29
|
+
false: {
|
|
30
|
+
"__@@Component_Sprinkles__": boolean;
|
|
31
|
+
baseSprinkles: string;
|
|
32
|
+
variantSprinkles: string;
|
|
33
|
+
compoundVariantSprinkles: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
isDisabled: {
|
|
37
|
+
true: ({
|
|
38
|
+
"__@@Component_Sprinkles__": boolean;
|
|
39
|
+
baseSprinkles: string;
|
|
40
|
+
variantSprinkles: string;
|
|
41
|
+
compoundVariantSprinkles: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly pointerEvents: "none";
|
|
44
|
+
readonly cursor: "not-allowed";
|
|
45
|
+
})[];
|
|
46
|
+
false: {
|
|
47
|
+
cursor: "crosshair";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
export declare const freehandCanvasFooterCn: ((options?: {
|
|
53
|
+
isInline?: boolean | undefined;
|
|
54
|
+
isDisabled?: boolean | undefined;
|
|
55
|
+
} | undefined) => string) & {
|
|
56
|
+
variants: () => ("isDisabled" | "isInline")[];
|
|
57
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
58
|
+
isInline: {
|
|
59
|
+
false: {
|
|
60
|
+
"__@@Component_Sprinkles__": boolean;
|
|
61
|
+
baseSprinkles: string;
|
|
62
|
+
variantSprinkles: string;
|
|
63
|
+
compoundVariantSprinkles: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
isDisabled: {
|
|
67
|
+
true: ({
|
|
68
|
+
"__@@Component_Sprinkles__": boolean;
|
|
69
|
+
baseSprinkles: string;
|
|
70
|
+
variantSprinkles: string;
|
|
71
|
+
compoundVariantSprinkles: string;
|
|
72
|
+
} | {
|
|
73
|
+
readonly pointerEvents: "none";
|
|
74
|
+
readonly cursor: "not-allowed";
|
|
75
|
+
})[];
|
|
76
|
+
};
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { AriaLabelingProps } from "@react-types/shared";
|
|
3
|
+
import type React from "react";
|
|
4
|
+
export interface FreehandCanvasProps extends StylingProps, AriaLabelingProps {
|
|
5
|
+
/** The className applicable to the SVG canvas. */
|
|
6
|
+
canvasClassName?: string;
|
|
7
|
+
/** The style applicable to the SVG canvas. */
|
|
8
|
+
canvasStyle?: React.CSSProperties;
|
|
9
|
+
/** The ref for the canvas. */
|
|
10
|
+
canvasRef?: React.RefObject<HTMLDivElement>;
|
|
11
|
+
/** The className applicable to the footer. */
|
|
12
|
+
footerClassName?: string;
|
|
13
|
+
/** The style applicable to the footer. */
|
|
14
|
+
footerStyle?: React.CSSProperties;
|
|
15
|
+
/**
|
|
16
|
+
* How much to soften the stroke's edges.
|
|
17
|
+
*
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
20
|
+
smoothing?: number;
|
|
21
|
+
/**
|
|
22
|
+
* How much to streamline the stroke.
|
|
23
|
+
*
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
|
+
streamline?: number;
|
|
27
|
+
/** An easing function to apply to each point's pressure. */
|
|
28
|
+
easing?: (pressure: number) => number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to simulate pressure based on velocity.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
simulatePressure?: boolean;
|
|
35
|
+
/** Cap, taper and easing for the start of the line. */
|
|
36
|
+
start?: {
|
|
37
|
+
cap?: boolean;
|
|
38
|
+
taper?: number | boolean;
|
|
39
|
+
easing?: (distance: number) => number;
|
|
40
|
+
};
|
|
41
|
+
/** Cap, taper and easing for the end of the line. */
|
|
42
|
+
end?: {
|
|
43
|
+
cap?: boolean;
|
|
44
|
+
taper?: number | boolean;
|
|
45
|
+
easing?: (distance: number) => number;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The width of the stroke.
|
|
49
|
+
*
|
|
50
|
+
* @default 2
|
|
51
|
+
*/
|
|
52
|
+
strokeWidth?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The color of the stroke.
|
|
55
|
+
*
|
|
56
|
+
* @default #3A87FD
|
|
57
|
+
*/
|
|
58
|
+
strokeColor?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether to keep the points within the canvas.
|
|
61
|
+
*
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
isBound?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Callback for when the lines change. This is called on every point change.
|
|
67
|
+
*
|
|
68
|
+
* @param lines
|
|
69
|
+
*/
|
|
70
|
+
onChange?: (lines: FreehandCanvasLine[]) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Callback for when the lines change has ended. This is called once after the
|
|
73
|
+
* pointerup event. It is recommended to use this callback for performance
|
|
74
|
+
* reasons.
|
|
75
|
+
*
|
|
76
|
+
* @param lines
|
|
77
|
+
*/
|
|
78
|
+
onChangeEnd?: (lines: FreehandCanvasLine[]) => void;
|
|
79
|
+
/** The default lines to render. */
|
|
80
|
+
defaultValue?: FreehandCanvasLine[];
|
|
81
|
+
/**
|
|
82
|
+
* The value of the canvas. This can be used to make the canvas a controlled
|
|
83
|
+
* component.
|
|
84
|
+
*/
|
|
85
|
+
value?: FreehandCanvasLine[];
|
|
86
|
+
/** The label for the canvas. */
|
|
87
|
+
label?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Whether to enable history for undo/redo.
|
|
90
|
+
*
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
enableHistory?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the canvas is inline.
|
|
96
|
+
*
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
isInline?: boolean;
|
|
100
|
+
/** Whether the canvas is disabled. */
|
|
101
|
+
isDisabled?: boolean;
|
|
102
|
+
/** The placeholder for the canvas. */
|
|
103
|
+
placeholder?: string;
|
|
104
|
+
/** The label for the clear button. */
|
|
105
|
+
clearLabel?: string;
|
|
106
|
+
/** The label for the undo button. */
|
|
107
|
+
undoLabel?: string;
|
|
108
|
+
/** The label for the redo button. */
|
|
109
|
+
redoLabel?: string;
|
|
110
|
+
/** Description for the canvas. */
|
|
111
|
+
description?: string;
|
|
112
|
+
}
|
|
113
|
+
/** A line in the freehand canvas. */
|
|
114
|
+
export type FreehandCanvasLine = FreehandCanvasPoint[];
|
|
115
|
+
/** A point in the freehand canvas. The pressure is optional. */
|
|
116
|
+
export type FreehandCanvasPoint = [x: number, y: number, pressure?: number];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FreehandCanvasLine } from "../FreehandCanvas.types";
|
|
2
|
+
import type { StrokeOptions } from "perfect-freehand";
|
|
3
|
+
interface UsePathsDataProps {
|
|
4
|
+
line: FreehandCanvasLine;
|
|
5
|
+
options: StrokeOptions;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* React custom hook to generate path data strings for a freehand drawing while
|
|
9
|
+
* it's being drawn, to improve performance.
|
|
10
|
+
*
|
|
11
|
+
* Accepts a line and drawing options and returns an array of path data strings
|
|
12
|
+
* that can be directly used in an SVG path element `d` attribute.
|
|
13
|
+
*
|
|
14
|
+
* The provided line points are assumed to be persistent and never change once
|
|
15
|
+
* received, and the number of points can grow over time.
|
|
16
|
+
*
|
|
17
|
+
* To improve performance, the line is split into chunks of
|
|
18
|
+
* `POINTS_PER_STROKE_CHUNK` points, and the path data for each chunk is cached
|
|
19
|
+
* once it reaches that number of points.
|
|
20
|
+
*
|
|
21
|
+
* @param line The line to generate path data for
|
|
22
|
+
* @param options The stroke options to use
|
|
23
|
+
* @returns An array of path data strings
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePathsData({ line, options }: UsePathsDataProps): any[];
|
|
26
|
+
export declare const POINTS_PER_STROKE_CHUNK: number;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
ar: {
|
|
3
|
+
"bui.freehandCanvas.redo": string;
|
|
4
|
+
"bui.freehandCanvas.undo": string;
|
|
5
|
+
};
|
|
6
|
+
cs: {
|
|
7
|
+
"bui.freehandCanvas.redo": string;
|
|
8
|
+
"bui.freehandCanvas.undo": string;
|
|
9
|
+
};
|
|
10
|
+
cy: {
|
|
11
|
+
"bui.freehandCanvas.redo": string;
|
|
12
|
+
"bui.freehandCanvas.undo": string;
|
|
13
|
+
};
|
|
14
|
+
da: {
|
|
15
|
+
"bui.freehandCanvas.redo": string;
|
|
16
|
+
"bui.freehandCanvas.undo": string;
|
|
17
|
+
};
|
|
18
|
+
de: {
|
|
19
|
+
"bui.freehandCanvas.redo": string;
|
|
20
|
+
"bui.freehandCanvas.undo": string;
|
|
21
|
+
};
|
|
22
|
+
el: {
|
|
23
|
+
"bui.freehandCanvas.redo": string;
|
|
24
|
+
"bui.freehandCanvas.undo": string;
|
|
25
|
+
};
|
|
26
|
+
en_GB: {
|
|
27
|
+
"bui.freehandCanvas.redo": string;
|
|
28
|
+
"bui.freehandCanvas.undo": string;
|
|
29
|
+
};
|
|
30
|
+
en: {
|
|
31
|
+
"bui.freehandCanvas.redo": string;
|
|
32
|
+
"bui.freehandCanvas.undo": string;
|
|
33
|
+
};
|
|
34
|
+
es: {
|
|
35
|
+
"bui.freehandCanvas.redo": string;
|
|
36
|
+
"bui.freehandCanvas.undo": string;
|
|
37
|
+
};
|
|
38
|
+
fi: {
|
|
39
|
+
"bui.freehandCanvas.redo": string;
|
|
40
|
+
"bui.freehandCanvas.undo": string;
|
|
41
|
+
};
|
|
42
|
+
fr_CA: {
|
|
43
|
+
"bui.freehandCanvas.redo": string;
|
|
44
|
+
"bui.freehandCanvas.undo": string;
|
|
45
|
+
};
|
|
46
|
+
fr: {
|
|
47
|
+
"bui.freehandCanvas.redo": string;
|
|
48
|
+
"bui.freehandCanvas.undo": string;
|
|
49
|
+
};
|
|
50
|
+
he: {
|
|
51
|
+
"bui.freehandCanvas.redo": string;
|
|
52
|
+
"bui.freehandCanvas.undo": string;
|
|
53
|
+
};
|
|
54
|
+
hr: {
|
|
55
|
+
"bui.freehandCanvas.redo": string;
|
|
56
|
+
"bui.freehandCanvas.undo": string;
|
|
57
|
+
};
|
|
58
|
+
id: {
|
|
59
|
+
"bui.freehandCanvas.redo": string;
|
|
60
|
+
"bui.freehandCanvas.undo": string;
|
|
61
|
+
};
|
|
62
|
+
it: {
|
|
63
|
+
"bui.freehandCanvas.redo": string;
|
|
64
|
+
"bui.freehandCanvas.undo": string;
|
|
65
|
+
};
|
|
66
|
+
ja: {
|
|
67
|
+
"bui.freehandCanvas.redo": string;
|
|
68
|
+
"bui.freehandCanvas.undo": string;
|
|
69
|
+
};
|
|
70
|
+
ko: {
|
|
71
|
+
"bui.freehandCanvas.redo": string;
|
|
72
|
+
"bui.freehandCanvas.undo": string;
|
|
73
|
+
};
|
|
74
|
+
ms: {
|
|
75
|
+
"bui.freehandCanvas.redo": string;
|
|
76
|
+
"bui.freehandCanvas.undo": string;
|
|
77
|
+
};
|
|
78
|
+
nb_NO: {
|
|
79
|
+
"bui.freehandCanvas.redo": string;
|
|
80
|
+
"bui.freehandCanvas.undo": string;
|
|
81
|
+
};
|
|
82
|
+
nl: {
|
|
83
|
+
"bui.freehandCanvas.redo": string;
|
|
84
|
+
"bui.freehandCanvas.undo": string;
|
|
85
|
+
};
|
|
86
|
+
pl: {
|
|
87
|
+
"bui.freehandCanvas.redo": string;
|
|
88
|
+
"bui.freehandCanvas.undo": string;
|
|
89
|
+
};
|
|
90
|
+
pt_PT: {
|
|
91
|
+
"bui.freehandCanvas.redo": string;
|
|
92
|
+
"bui.freehandCanvas.undo": string;
|
|
93
|
+
};
|
|
94
|
+
pt: {
|
|
95
|
+
"bui.freehandCanvas.redo": string;
|
|
96
|
+
"bui.freehandCanvas.undo": string;
|
|
97
|
+
};
|
|
98
|
+
ru: {
|
|
99
|
+
"bui.freehandCanvas.redo": string;
|
|
100
|
+
"bui.freehandCanvas.undo": string;
|
|
101
|
+
};
|
|
102
|
+
sk: {
|
|
103
|
+
"bui.freehandCanvas.redo": string;
|
|
104
|
+
"bui.freehandCanvas.undo": string;
|
|
105
|
+
};
|
|
106
|
+
sl: {
|
|
107
|
+
"bui.freehandCanvas.redo": string;
|
|
108
|
+
"bui.freehandCanvas.undo": string;
|
|
109
|
+
};
|
|
110
|
+
sv: {
|
|
111
|
+
"bui.freehandCanvas.redo": string;
|
|
112
|
+
"bui.freehandCanvas.undo": string;
|
|
113
|
+
};
|
|
114
|
+
th: {
|
|
115
|
+
"bui.freehandCanvas.redo": string;
|
|
116
|
+
"bui.freehandCanvas.undo": string;
|
|
117
|
+
};
|
|
118
|
+
tr: {
|
|
119
|
+
"bui.freehandCanvas.redo": string;
|
|
120
|
+
"bui.freehandCanvas.undo": string;
|
|
121
|
+
};
|
|
122
|
+
uk: {
|
|
123
|
+
"bui.freehandCanvas.redo": string;
|
|
124
|
+
"bui.freehandCanvas.undo": string;
|
|
125
|
+
};
|
|
126
|
+
zh_Hans: {
|
|
127
|
+
"bui.freehandCanvas.redo": string;
|
|
128
|
+
"bui.freehandCanvas.undo": string;
|
|
129
|
+
};
|
|
130
|
+
zh_Hant: {
|
|
131
|
+
"bui.freehandCanvas.redo": string;
|
|
132
|
+
"bui.freehandCanvas.undo": string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const gridListCn: string;
|
|
2
|
+
export declare const gridListItemPreviewCn: ((options?: {
|
|
3
|
+
[x: string]: string | undefined;
|
|
4
|
+
} | undefined) => string) & {
|
|
5
|
+
variants: () => string[];
|
|
6
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
7
|
+
[x: string]: {
|
|
8
|
+
[x: string]: string | ((import("@vanilla-extract/css").StyleRule | {
|
|
9
|
+
"__@@Component_Sprinkles__": boolean;
|
|
10
|
+
baseSprinkles: string;
|
|
11
|
+
variantSprinkles: string;
|
|
12
|
+
compoundVariantSprinkles: string;
|
|
13
|
+
}) | ((import("@vanilla-extract/css").StyleRule | {
|
|
14
|
+
"__@@Component_Sprinkles__": boolean;
|
|
15
|
+
baseSprinkles: string;
|
|
16
|
+
variantSprinkles: string;
|
|
17
|
+
compoundVariantSprinkles: string;
|
|
18
|
+
}) | (string | (string | (string | (string | (string | (string | (string | (string | (string | (string | (string | (string | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]))[]);
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export declare const dragIndicatorCn: string;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { CheckboxProps } from "../Checkbox";
|
|
3
|
+
import type { ListHandle, ListOption } from "../ListBox";
|
|
4
|
+
import type { DragAndDropProps } from "../ListBox/hooks/useDragDrop";
|
|
5
|
+
import type { Node } from "@react-types/shared";
|
|
6
|
+
import type React from "react";
|
|
7
|
+
import type { AriaButtonProps, AriaGridListOptions, GridListItemAria } from "react-aria";
|
|
8
|
+
import type { ListProps } from "react-stately";
|
|
9
|
+
export type GridListProps = Omit<StylingProps & ListProps<ListOption> & AriaGridListOptions<ListOption> & Partial<Pick<DragAndDropProps, "enableReorder" | "orientation" | "layout" | "onReorder">> & {
|
|
10
|
+
/**
|
|
11
|
+
* The items to render in the grid list. Items have the following shape:
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* export type ListOption = {
|
|
15
|
+
* id: string;
|
|
16
|
+
* label: string;
|
|
17
|
+
* description?: string;
|
|
18
|
+
* icon?: React.FC<IconProps>;
|
|
19
|
+
* data?: T;
|
|
20
|
+
* };
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
items: ListOption[];
|
|
24
|
+
/**
|
|
25
|
+
* Function to render a grid item. This is called for each item in the
|
|
26
|
+
* list. The function receives the item, props for the grid item, and a
|
|
27
|
+
* ref to the grid item element. It should return a React element
|
|
28
|
+
* representing the item.
|
|
29
|
+
*
|
|
30
|
+
* The `checkBoxProps` property in the options object is used to pass
|
|
31
|
+
* props to the checkbox rendered in the grid item. This property is
|
|
32
|
+
* `undefined` when the grid list is not selectable.
|
|
33
|
+
*
|
|
34
|
+
* ```jsx
|
|
35
|
+
* <GridList
|
|
36
|
+
* items={items}
|
|
37
|
+
* renderGridItem={(
|
|
38
|
+
* item,
|
|
39
|
+
* { rowProps, isDisabled, gridCellProps, checkBoxProps },
|
|
40
|
+
* ref,
|
|
41
|
+
* ) => (
|
|
42
|
+
* <div
|
|
43
|
+
* {...rowProps}
|
|
44
|
+
* ref={ref}
|
|
45
|
+
* style={{ opacity: isDisabled ? 0.5 : 1 }}
|
|
46
|
+
* >
|
|
47
|
+
* <Checkbox {...checkBoxProps} />
|
|
48
|
+
* <Text>{item.label}</Text>
|
|
49
|
+
* <ActionButton label="Click Me" />
|
|
50
|
+
* </div>
|
|
51
|
+
* )}
|
|
52
|
+
* />;
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* The `dragHandleProps` property in the options object is used to pass
|
|
56
|
+
* props to the drag handle rendered in the grid item. This property is
|
|
57
|
+
* `undefined` when the grid list is not reorderable.
|
|
58
|
+
*
|
|
59
|
+
* DragProps: Props to apply to the drag handle element. dragButtonProps:
|
|
60
|
+
* Props to apply to the custom drag button element in case the drag
|
|
61
|
+
* handle is a button and not the whole row.
|
|
62
|
+
*
|
|
63
|
+
* @param item
|
|
64
|
+
* @param options
|
|
65
|
+
* @param ref
|
|
66
|
+
*/
|
|
67
|
+
renderGridItem: (item: Node<ListOption>, options: GridListItemAria & {
|
|
68
|
+
checkBoxProps?: CheckboxProps;
|
|
69
|
+
dragHandleProps?: {
|
|
70
|
+
dragProps: React.HTMLAttributes<HTMLElement>;
|
|
71
|
+
dragButtonProps: AriaButtonProps;
|
|
72
|
+
};
|
|
73
|
+
}, ref: React.Ref<HTMLLIElement>) => React.JSX.Element;
|
|
74
|
+
/**
|
|
75
|
+
* Enables editing mode which disables keydown event capturing, useful
|
|
76
|
+
* when you may want the internal `GridList` from taking away focus from
|
|
77
|
+
* child input due to type-ahead
|
|
78
|
+
*
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
isEditing?: boolean;
|
|
82
|
+
/** Handle to access the gridlist imperative methods. */
|
|
83
|
+
gridListHandle?: React.RefObject<ListHandle>;
|
|
84
|
+
}, "children" | "suppressTextValueWarning" | "allowDuplicateSelectionEvents" | "linkBehavior" | "keyboardDelegate" | "isVirtualized" | "filter">;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type AriaButtonProps } from "react-aria";
|
|
3
|
+
import type { ListOption } from "../ListBox";
|
|
4
|
+
import type { GridListProps } from "./GridList.types";
|
|
5
|
+
import type { Node } from "@react-types/shared";
|
|
6
|
+
import type { DraggableCollectionState, DroppableCollectionState, ListState } from "react-stately";
|
|
7
|
+
interface GridListItemProps {
|
|
8
|
+
item: Node<ListOption>;
|
|
9
|
+
renderGridItem: GridListProps["renderGridItem"];
|
|
10
|
+
enableReorder?: boolean;
|
|
11
|
+
state: ListState<ListOption>;
|
|
12
|
+
dragState?: DraggableCollectionState;
|
|
13
|
+
dropState?: DroppableCollectionState;
|
|
14
|
+
dragHandleProps?: {
|
|
15
|
+
dragProps: React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
dragButtonProps: AriaButtonProps;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const GridListItem: React.ForwardRefExoticComponent<GridListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { AriaLabelingProps } from "@react-types/shared";
|
|
3
|
+
import type React from "react";
|
|
4
|
+
export interface GroupProps extends StylingProps, AriaLabelingProps {
|
|
5
|
+
/**
|
|
6
|
+
* The `role` property specifies the accessibility `role` for the group. By
|
|
7
|
+
* default, it is set to 'group'. If the contents of the group are important
|
|
8
|
+
* enough to be included in the page table of contents, use 'region'. If the
|
|
9
|
+
* group is visual only and does not represent a semantic grouping of
|
|
10
|
+
* controls, use 'presentation'.
|
|
11
|
+
*
|
|
12
|
+
* @default group
|
|
13
|
+
*/
|
|
14
|
+
role?: "group" | "region" | "presentation";
|
|
15
|
+
/** Whether the group is disabled. */
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
/** The children to render. */
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { I18nProviderProps as I18Props, LocalizedStrings } from "react-aria";
|
|
3
|
+
export interface I18nProviderProps extends I18Props {
|
|
4
|
+
messages?: LocalizedStrings;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
locale?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
shouldLogMissingMessages?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const directionVar: `var(--${string})`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { I18nProviderProps } from "./I18Provider.types";
|
|
3
|
+
import type { LocalizedStrings } from "react-aria";
|
|
4
|
+
export declare const IntlMessagesProvider: React.Context<{
|
|
5
|
+
messages: LocalizedStrings;
|
|
6
|
+
shouldLogMissingMessages: boolean;
|
|
7
|
+
hasMissingErrorLoggedFor: React.MutableRefObject<Set<string>>;
|
|
8
|
+
setLang: (lang: string) => void;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const I18nProvider: React.FC<I18nProviderProps>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CSSProperties, SVGProps } from "react";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
interface SharedProps {
|
|
4
|
+
/** The `className` property assigned to the SVG element of the component. */
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The `width` and `height` of the icon. This can be a string or a number. If
|
|
8
|
+
* you want to set the width and height to different values, you can pass
|
|
9
|
+
* `width` and `height` as separate props.
|
|
10
|
+
*
|
|
11
|
+
* @default "1em"
|
|
12
|
+
*/
|
|
13
|
+
size?: string | number;
|
|
14
|
+
/** The style applicable to the SVG element of the component. */
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
title?: string;
|
|
17
|
+
/** The color of the icon. */
|
|
18
|
+
color?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IconComponentProps extends SharedProps {
|
|
21
|
+
/**
|
|
22
|
+
* The SVG string of the icon to render. This is useful if you want to render
|
|
23
|
+
* an icon that is not in the catalog of icons provided in the list above. You
|
|
24
|
+
* can use the `createIcon` function to create an icon from an SVG string.
|
|
25
|
+
*
|
|
26
|
+
* @default undefined
|
|
27
|
+
*/
|
|
28
|
+
svg: string;
|
|
29
|
+
}
|
|
30
|
+
export interface SVGRProps {
|
|
31
|
+
title?: string;
|
|
32
|
+
titleId?: string;
|
|
33
|
+
size?: CSSProperties["width"];
|
|
34
|
+
}
|
|
35
|
+
export type IconProps = SVGRProps & SVGProps<SVGSVGElement>;
|
|
36
|
+
export {};
|