@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,26 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { AriaNumberFieldProps } from "react-aria";
|
|
3
|
+
export interface NumberInputProps extends StylingProps, Omit<AriaNumberFieldProps, "validationState" | "isRequired" | "validate" | "validationBehavior"> {
|
|
4
|
+
/**
|
|
5
|
+
* The position of the label relative to the input.
|
|
6
|
+
*
|
|
7
|
+
* @default top
|
|
8
|
+
*/
|
|
9
|
+
labelPosition?: "top" | "start";
|
|
10
|
+
/**
|
|
11
|
+
* The variant of the number input.
|
|
12
|
+
*
|
|
13
|
+
* @default primary
|
|
14
|
+
*/
|
|
15
|
+
variant?: "primary" | "ghost";
|
|
16
|
+
/**
|
|
17
|
+
* Whether to show the stepper buttons.
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
showStepper?: boolean;
|
|
22
|
+
/** The description to display below the input. */
|
|
23
|
+
description?: string;
|
|
24
|
+
/** The error message to display when the input is in an error state. */
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare const paginationCn: ((options?: {
|
|
2
|
+
size?: "xs" | "sm" | "lg" | "md" | undefined;
|
|
3
|
+
variant?: "floating" | "pinned" | undefined;
|
|
4
|
+
} | undefined) => string) & {
|
|
5
|
+
variants: () => ("size" | "variant")[];
|
|
6
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
7
|
+
size: {
|
|
8
|
+
xs: ({
|
|
9
|
+
"__@@Component_Sprinkles__": boolean;
|
|
10
|
+
baseSprinkles: string;
|
|
11
|
+
variantSprinkles: string;
|
|
12
|
+
compoundVariantSprinkles: string;
|
|
13
|
+
} | {
|
|
14
|
+
height: number;
|
|
15
|
+
})[];
|
|
16
|
+
sm: ({
|
|
17
|
+
"__@@Component_Sprinkles__": boolean;
|
|
18
|
+
baseSprinkles: string;
|
|
19
|
+
variantSprinkles: string;
|
|
20
|
+
compoundVariantSprinkles: string;
|
|
21
|
+
} | {
|
|
22
|
+
height: number;
|
|
23
|
+
})[];
|
|
24
|
+
md: {
|
|
25
|
+
height: number;
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
variant: {
|
|
32
|
+
floating: {
|
|
33
|
+
"__@@Component_Sprinkles__": boolean;
|
|
34
|
+
baseSprinkles: string;
|
|
35
|
+
variantSprinkles: string;
|
|
36
|
+
compoundVariantSprinkles: string;
|
|
37
|
+
};
|
|
38
|
+
pinned: {
|
|
39
|
+
"__@@Component_Sprinkles__": boolean;
|
|
40
|
+
baseSprinkles: string;
|
|
41
|
+
variantSprinkles: string;
|
|
42
|
+
compoundVariantSprinkles: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
export declare const countContainerCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
48
|
+
isFocused: {
|
|
49
|
+
true: {
|
|
50
|
+
boxShadow: `inset 0 0 0 2px var(--${string})`;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
pinned: {
|
|
55
|
+
justifyContent: "center";
|
|
56
|
+
flex: number;
|
|
57
|
+
};
|
|
58
|
+
floating: {};
|
|
59
|
+
};
|
|
60
|
+
size: {
|
|
61
|
+
xs: {
|
|
62
|
+
padding: `0 var(--${string})`;
|
|
63
|
+
};
|
|
64
|
+
sm: {};
|
|
65
|
+
md: {};
|
|
66
|
+
lg: {};
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
export declare const countInputCn: string;
|
|
70
|
+
export declare const totalCountCn: ((options?: {
|
|
71
|
+
isDisabled?: boolean | undefined;
|
|
72
|
+
} | undefined) => string) & {
|
|
73
|
+
variants: () => "isDisabled"[];
|
|
74
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
75
|
+
isDisabled: {
|
|
76
|
+
true: {
|
|
77
|
+
"__@@Component_Sprinkles__": boolean;
|
|
78
|
+
baseSprinkles: string;
|
|
79
|
+
variantSprinkles: string;
|
|
80
|
+
compoundVariantSprinkles: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { AriaNumberFieldProps } from "react-aria";
|
|
3
|
+
import type { NumberFieldStateOptions } from "react-stately";
|
|
4
|
+
type Excluded = "isRequired" | "locale" | "validationState" | "label" | "formatOptions" | "isInvalid" | "validationBehaviour" | "validate" | "description" | "errorMessage";
|
|
5
|
+
export interface PaginationProps extends Omit<AriaNumberFieldProps, Excluded>, Omit<NumberFieldStateOptions, Excluded>, StylingProps {
|
|
6
|
+
/** The largest value allowed for the input. */
|
|
7
|
+
maxValue: number;
|
|
8
|
+
/** The label for the pagination component. */
|
|
9
|
+
"aria-label": string;
|
|
10
|
+
/**
|
|
11
|
+
* The variant of the pagination component.
|
|
12
|
+
*
|
|
13
|
+
* @default floating
|
|
14
|
+
*/
|
|
15
|
+
variant?: "floating" | "pinned";
|
|
16
|
+
/**
|
|
17
|
+
* The size of the pagination component.
|
|
18
|
+
*
|
|
19
|
+
* @default md
|
|
20
|
+
*/
|
|
21
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
22
|
+
/** Whether to hide the increment and decrement actions. */
|
|
23
|
+
hideActions?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
ar: {
|
|
3
|
+
"bui.pagination.goToPage": string;
|
|
4
|
+
"bui.pagination.nextPage": string;
|
|
5
|
+
"bui.pagination.pageXofY": string;
|
|
6
|
+
"bui.pagination.prevPage": string;
|
|
7
|
+
};
|
|
8
|
+
cs: {
|
|
9
|
+
"bui.pagination.goToPage": string;
|
|
10
|
+
"bui.pagination.nextPage": string;
|
|
11
|
+
"bui.pagination.pageXofY": string;
|
|
12
|
+
"bui.pagination.prevPage": string;
|
|
13
|
+
};
|
|
14
|
+
cy: {
|
|
15
|
+
"bui.pagination.goToPage": string;
|
|
16
|
+
"bui.pagination.nextPage": string;
|
|
17
|
+
"bui.pagination.pageXofY": string;
|
|
18
|
+
"bui.pagination.prevPage": string;
|
|
19
|
+
};
|
|
20
|
+
da: {
|
|
21
|
+
"bui.pagination.goToPage": string;
|
|
22
|
+
"bui.pagination.nextPage": string;
|
|
23
|
+
"bui.pagination.pageXofY": string;
|
|
24
|
+
"bui.pagination.prevPage": string;
|
|
25
|
+
};
|
|
26
|
+
de: {
|
|
27
|
+
"bui.pagination.goToPage": string;
|
|
28
|
+
"bui.pagination.nextPage": string;
|
|
29
|
+
"bui.pagination.pageXofY": string;
|
|
30
|
+
"bui.pagination.prevPage": string;
|
|
31
|
+
};
|
|
32
|
+
el: {
|
|
33
|
+
"bui.pagination.goToPage": string;
|
|
34
|
+
"bui.pagination.nextPage": string;
|
|
35
|
+
"bui.pagination.pageXofY": string;
|
|
36
|
+
"bui.pagination.prevPage": string;
|
|
37
|
+
};
|
|
38
|
+
en_GB: {
|
|
39
|
+
"bui.pagination.goToPage": string;
|
|
40
|
+
"bui.pagination.nextPage": string;
|
|
41
|
+
"bui.pagination.pageXofY": string;
|
|
42
|
+
"bui.pagination.prevPage": string;
|
|
43
|
+
};
|
|
44
|
+
en: {
|
|
45
|
+
"bui.pagination.goToPage": string;
|
|
46
|
+
"bui.pagination.nextPage": string;
|
|
47
|
+
"bui.pagination.pageXofY": string;
|
|
48
|
+
"bui.pagination.prevPage": string;
|
|
49
|
+
};
|
|
50
|
+
es: {
|
|
51
|
+
"bui.pagination.goToPage": string;
|
|
52
|
+
"bui.pagination.nextPage": string;
|
|
53
|
+
"bui.pagination.pageXofY": string;
|
|
54
|
+
"bui.pagination.prevPage": string;
|
|
55
|
+
};
|
|
56
|
+
fi: {
|
|
57
|
+
"bui.pagination.goToPage": string;
|
|
58
|
+
"bui.pagination.nextPage": string;
|
|
59
|
+
"bui.pagination.pageXofY": string;
|
|
60
|
+
"bui.pagination.prevPage": string;
|
|
61
|
+
};
|
|
62
|
+
fr_CA: {
|
|
63
|
+
"bui.pagination.goToPage": string;
|
|
64
|
+
"bui.pagination.nextPage": string;
|
|
65
|
+
"bui.pagination.pageXofY": string;
|
|
66
|
+
"bui.pagination.prevPage": string;
|
|
67
|
+
};
|
|
68
|
+
fr: {
|
|
69
|
+
"bui.pagination.goToPage": string;
|
|
70
|
+
"bui.pagination.nextPage": string;
|
|
71
|
+
"bui.pagination.pageXofY": string;
|
|
72
|
+
"bui.pagination.prevPage": string;
|
|
73
|
+
};
|
|
74
|
+
he: {
|
|
75
|
+
"bui.pagination.goToPage": string;
|
|
76
|
+
"bui.pagination.nextPage": string;
|
|
77
|
+
"bui.pagination.pageXofY": string;
|
|
78
|
+
"bui.pagination.prevPage": string;
|
|
79
|
+
};
|
|
80
|
+
hr: {
|
|
81
|
+
"bui.pagination.goToPage": string;
|
|
82
|
+
"bui.pagination.nextPage": string;
|
|
83
|
+
"bui.pagination.pageXofY": string;
|
|
84
|
+
"bui.pagination.prevPage": string;
|
|
85
|
+
};
|
|
86
|
+
id: {
|
|
87
|
+
"bui.pagination.goToPage": string;
|
|
88
|
+
"bui.pagination.nextPage": string;
|
|
89
|
+
"bui.pagination.pageXofY": string;
|
|
90
|
+
"bui.pagination.prevPage": string;
|
|
91
|
+
};
|
|
92
|
+
it: {
|
|
93
|
+
"bui.pagination.goToPage": string;
|
|
94
|
+
"bui.pagination.nextPage": string;
|
|
95
|
+
"bui.pagination.pageXofY": string;
|
|
96
|
+
"bui.pagination.prevPage": string;
|
|
97
|
+
};
|
|
98
|
+
ja: {
|
|
99
|
+
"bui.pagination.goToPage": string;
|
|
100
|
+
"bui.pagination.nextPage": string;
|
|
101
|
+
"bui.pagination.pageXofY": string;
|
|
102
|
+
"bui.pagination.prevPage": string;
|
|
103
|
+
};
|
|
104
|
+
ko: {
|
|
105
|
+
"bui.pagination.goToPage": string;
|
|
106
|
+
"bui.pagination.nextPage": string;
|
|
107
|
+
"bui.pagination.pageXofY": string;
|
|
108
|
+
"bui.pagination.prevPage": string;
|
|
109
|
+
};
|
|
110
|
+
ms: {
|
|
111
|
+
"bui.pagination.goToPage": string;
|
|
112
|
+
"bui.pagination.nextPage": string;
|
|
113
|
+
"bui.pagination.pageXofY": string;
|
|
114
|
+
"bui.pagination.prevPage": string;
|
|
115
|
+
};
|
|
116
|
+
nb_NO: {
|
|
117
|
+
"bui.pagination.goToPage": string;
|
|
118
|
+
"bui.pagination.nextPage": string;
|
|
119
|
+
"bui.pagination.pageXofY": string;
|
|
120
|
+
"bui.pagination.prevPage": string;
|
|
121
|
+
};
|
|
122
|
+
nl: {
|
|
123
|
+
"bui.pagination.goToPage": string;
|
|
124
|
+
"bui.pagination.nextPage": string;
|
|
125
|
+
"bui.pagination.pageXofY": string;
|
|
126
|
+
"bui.pagination.prevPage": string;
|
|
127
|
+
};
|
|
128
|
+
pl: {
|
|
129
|
+
"bui.pagination.goToPage": string;
|
|
130
|
+
"bui.pagination.nextPage": string;
|
|
131
|
+
"bui.pagination.pageXofY": string;
|
|
132
|
+
"bui.pagination.prevPage": string;
|
|
133
|
+
};
|
|
134
|
+
pt_PT: {
|
|
135
|
+
"bui.pagination.goToPage": string;
|
|
136
|
+
"bui.pagination.nextPage": string;
|
|
137
|
+
"bui.pagination.pageXofY": string;
|
|
138
|
+
"bui.pagination.prevPage": string;
|
|
139
|
+
};
|
|
140
|
+
pt: {
|
|
141
|
+
"bui.pagination.goToPage": string;
|
|
142
|
+
"bui.pagination.nextPage": string;
|
|
143
|
+
"bui.pagination.pageXofY": string;
|
|
144
|
+
"bui.pagination.prevPage": string;
|
|
145
|
+
};
|
|
146
|
+
ru: {
|
|
147
|
+
"bui.pagination.goToPage": string;
|
|
148
|
+
"bui.pagination.nextPage": string;
|
|
149
|
+
"bui.pagination.pageXofY": string;
|
|
150
|
+
"bui.pagination.prevPage": string;
|
|
151
|
+
};
|
|
152
|
+
sk: {
|
|
153
|
+
"bui.pagination.goToPage": string;
|
|
154
|
+
"bui.pagination.nextPage": string;
|
|
155
|
+
"bui.pagination.pageXofY": string;
|
|
156
|
+
"bui.pagination.prevPage": string;
|
|
157
|
+
};
|
|
158
|
+
sl: {
|
|
159
|
+
"bui.pagination.goToPage": string;
|
|
160
|
+
"bui.pagination.nextPage": string;
|
|
161
|
+
"bui.pagination.pageXofY": string;
|
|
162
|
+
"bui.pagination.prevPage": string;
|
|
163
|
+
};
|
|
164
|
+
sv: {
|
|
165
|
+
"bui.pagination.goToPage": string;
|
|
166
|
+
"bui.pagination.nextPage": string;
|
|
167
|
+
"bui.pagination.pageXofY": string;
|
|
168
|
+
"bui.pagination.prevPage": string;
|
|
169
|
+
};
|
|
170
|
+
th: {
|
|
171
|
+
"bui.pagination.goToPage": string;
|
|
172
|
+
"bui.pagination.nextPage": string;
|
|
173
|
+
"bui.pagination.pageXofY": string;
|
|
174
|
+
"bui.pagination.prevPage": string;
|
|
175
|
+
};
|
|
176
|
+
tr: {
|
|
177
|
+
"bui.pagination.goToPage": string;
|
|
178
|
+
"bui.pagination.nextPage": string;
|
|
179
|
+
"bui.pagination.pageXofY": string;
|
|
180
|
+
"bui.pagination.prevPage": string;
|
|
181
|
+
};
|
|
182
|
+
uk: {
|
|
183
|
+
"bui.pagination.goToPage": string;
|
|
184
|
+
"bui.pagination.nextPage": string;
|
|
185
|
+
"bui.pagination.pageXofY": string;
|
|
186
|
+
"bui.pagination.prevPage": string;
|
|
187
|
+
};
|
|
188
|
+
zh_Hans: {
|
|
189
|
+
"bui.pagination.goToPage": string;
|
|
190
|
+
"bui.pagination.nextPage": string;
|
|
191
|
+
"bui.pagination.pageXofY": string;
|
|
192
|
+
"bui.pagination.prevPage": string;
|
|
193
|
+
};
|
|
194
|
+
zh_Hant: {
|
|
195
|
+
"bui.pagination.goToPage": string;
|
|
196
|
+
"bui.pagination.nextPage": string;
|
|
197
|
+
"bui.pagination.pageXofY": string;
|
|
198
|
+
"bui.pagination.prevPage": string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const panelResizeHandleCn: string;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { PanelImperativeHandle as ResizablePanelImperativeHandle, PanelProps as ResizablePanelProps, SeparatorProps as ResizableSeparatorProps } from "react-resizable-panels";
|
|
4
|
+
export interface PanelProps extends StylingProps {
|
|
5
|
+
/** Content */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the panel. Required for localStorage persistence when
|
|
9
|
+
* using `PanelGroup` with `autoSaveId`. Must remain stable across page
|
|
10
|
+
* loads.
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Panel collapses to this size
|
|
15
|
+
*
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
collapsedSize?: ResizablePanelProps["collapsedSize"];
|
|
19
|
+
/**
|
|
20
|
+
* Whether panel can be collapsed when resized beyond `minSize`
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isCollapsible?: ResizablePanelProps["collapsible"];
|
|
25
|
+
/** Initial size of the panel, accepts value between 0 - 100 */
|
|
26
|
+
defaultSize?: ResizablePanelProps["defaultSize"];
|
|
27
|
+
/**
|
|
28
|
+
* Maximum allowed size for the panel, accepts value between 0 - 100
|
|
29
|
+
*
|
|
30
|
+
* @default 100
|
|
31
|
+
*/
|
|
32
|
+
maxSize?: ResizablePanelProps["maxSize"];
|
|
33
|
+
/**
|
|
34
|
+
* Minimum allowed size for the panel, accepts value between 0 - 100
|
|
35
|
+
*
|
|
36
|
+
* @default 10
|
|
37
|
+
*/
|
|
38
|
+
minSize?: ResizablePanelProps["minSize"];
|
|
39
|
+
/** Called with current panel size on resize */
|
|
40
|
+
onResize?: (size: number) => void;
|
|
41
|
+
}
|
|
42
|
+
export interface PanelGroupProps extends StylingProps {
|
|
43
|
+
/** Content comprising `Panel` and `PanelResizeHandle` */
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
/** Orientation of the layout */
|
|
46
|
+
direction?: "horizontal" | "vertical";
|
|
47
|
+
/**
|
|
48
|
+
* Called with a map of panel id to size (percentage) when group layout
|
|
49
|
+
* changes
|
|
50
|
+
*/
|
|
51
|
+
onLayout?: (layout: Record<string, number>) => void;
|
|
52
|
+
/**
|
|
53
|
+
* When passed, automatically persists layouts, should be unique amongst other
|
|
54
|
+
* `PanelGroup`. Each `Panel` should have a stable `id` prop for persistence
|
|
55
|
+
* to work correctly.
|
|
56
|
+
*/
|
|
57
|
+
autoSaveId?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface PanelResizeHandleProps extends StylingProps {
|
|
60
|
+
/**
|
|
61
|
+
* Disables resizing
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
isDisabled?: ResizableSeparatorProps["disabled"];
|
|
66
|
+
}
|
|
67
|
+
export interface ImperativePanelGroupHandle {
|
|
68
|
+
setLayout?: (layout: Record<string, number>) => void;
|
|
69
|
+
}
|
|
70
|
+
export interface ImperativePanelHandle {
|
|
71
|
+
resize?: ResizablePanelImperativeHandle["resize"];
|
|
72
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type Coordinates } from "./PointPicker";
|
|
3
|
+
import type { PointPickerContentProps } from "./PointPicker.types";
|
|
4
|
+
export declare const VerticalGrid: React.FC<{
|
|
5
|
+
coordinates: Coordinates;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const Grid: React.FC<Pick<PointPickerContentProps, "gridLines">>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const pointPickerContentCn: ((options?: {
|
|
2
|
+
isDisabled?: boolean | undefined;
|
|
3
|
+
isIndicatorVisible?: boolean | undefined;
|
|
4
|
+
} | undefined) => string) & {
|
|
5
|
+
variants: () => ("isDisabled" | "isIndicatorVisible")[];
|
|
6
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
7
|
+
isDisabled: {
|
|
8
|
+
true: {};
|
|
9
|
+
false: {
|
|
10
|
+
selectors: {
|
|
11
|
+
"&[data-focus-visible=true]": {
|
|
12
|
+
outline: `2px solid var(--${string})`;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
isIndicatorVisible: {
|
|
18
|
+
true: {};
|
|
19
|
+
false: {};
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export declare const pointPickerIconCn: string;
|
|
24
|
+
export declare const pointPickerDisplayCn: string;
|
|
25
|
+
export declare const pointPickerDisplayDotContainerCn: string;
|
|
26
|
+
export declare const pointPickerDisplayDotCn: string;
|
|
27
|
+
export declare const pointPickerDisplayDotActiveCn: string;
|
|
28
|
+
export declare const pointPickerNodeCn: string;
|
|
29
|
+
export declare const labelIconCn: string;
|
|
30
|
+
export declare const gridLineCn: string;
|
|
31
|
+
export declare const contentsCn: string;
|
|
32
|
+
export declare const pointerEventsNoneCn: string;
|
|
33
|
+
export declare const debugSnappingPointCn: string;
|
|
34
|
+
export declare const debugSnappingRadiusCn: string;
|
|
35
|
+
export declare const debugSnappingCanvasCn: string;
|
|
36
|
+
export declare const keyboardCursorCn: string;
|
|
37
|
+
export declare const nativeCursorCn: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PointPickerProps } from "./PointPicker.types";
|
|
3
|
+
export interface Coordinates {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
export interface PointPickerContextValue {
|
|
8
|
+
node: HTMLDivElement | null;
|
|
9
|
+
setNode: (node: HTMLDivElement | null) => void;
|
|
10
|
+
coordinates: Coordinates | null;
|
|
11
|
+
setCoordinates: (coordinates: Coordinates | null) => void;
|
|
12
|
+
displayId: string | undefined;
|
|
13
|
+
setDisplayId: (id: string | undefined) => void;
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
boundsRef: React.MutableRefObject<DOMRect | null>;
|
|
16
|
+
cursorNode: HTMLElement | null;
|
|
17
|
+
setCursorNode: (node: HTMLElement | null) => void;
|
|
18
|
+
children: React.ReactElement | null;
|
|
19
|
+
setChildren: (children: React.ReactElement | null) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const PointPickerContext: React.Context<PointPickerContextValue>;
|
|
22
|
+
export declare const PointPicker: React.NamedExoticComponent<PointPickerProps>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { BlockProps, StylingProps } from "../../utils";
|
|
2
|
+
import type { IconProps } from "../Icon";
|
|
3
|
+
import type { PopoverContentProps } from "../Popover";
|
|
4
|
+
import type { FocusableElement } from "@react-types/shared";
|
|
5
|
+
import type React from "react";
|
|
6
|
+
import type { FocusProps, KeyboardProps, PressHookProps } from "react-aria";
|
|
7
|
+
export interface PointPickerProps extends BlockProps {
|
|
8
|
+
/** The magnifier's content. */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the point picker is disabled.
|
|
12
|
+
*
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface Options {
|
|
18
|
+
coordinates: {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
} | null;
|
|
22
|
+
boundingRect: DOMRect | null;
|
|
23
|
+
}
|
|
24
|
+
type GridLines = {
|
|
25
|
+
coordinates: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | null;
|
|
29
|
+
} | boolean;
|
|
30
|
+
export interface PointPickerContentProps extends StylingProps, Pick<FocusProps<FocusableElement>, "onFocusChange" | "onFocus" | "onBlur">, Pick<KeyboardProps, "onKeyDown" | "onKeyUp">, Pick<PressHookProps, "onPress" | "onPressStart" | "onPressEnd"> {
|
|
31
|
+
/** The magnifier's content. */
|
|
32
|
+
children: React.ReactElement;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show the grid lines. If a function is provided, it will be
|
|
35
|
+
* called with the current options and should return a boolean or an object
|
|
36
|
+
* with the coordinates to show the grid lines.
|
|
37
|
+
*
|
|
38
|
+
* The custom coordinates object will be used to show the grid lines at a
|
|
39
|
+
* specific point. This will be helpful if you want to show the grid lines at
|
|
40
|
+
* a a snapped point that is not the cursor.
|
|
41
|
+
*
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
gridLines?: GridLines | ((options: Options) => GridLines);
|
|
45
|
+
/** The ref to the element. */
|
|
46
|
+
elementHandle?: React.RefObject<{
|
|
47
|
+
focus: () => void;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* The callback function that is called when the cursor is moved.
|
|
51
|
+
*
|
|
52
|
+
* @param options - The options for the move event.
|
|
53
|
+
* @param options.coordinates - The coordinates of the cursor.
|
|
54
|
+
* @param options.boundingRect - The bounding rectangle of the element.
|
|
55
|
+
* @param options.activePoint - The active point of the element. This point is
|
|
56
|
+
* the point which is snapped to the snap points if any or the coordinates
|
|
57
|
+
* of the cursor if no snap points are provided or the cursor is not near a
|
|
58
|
+
* snap point.
|
|
59
|
+
*/
|
|
60
|
+
onMove?: (options: Options) => void;
|
|
61
|
+
/** The content follows the cursor. */
|
|
62
|
+
renderTrailingElement?: () => React.ReactElement;
|
|
63
|
+
/**
|
|
64
|
+
* Custom render function for the point-picker cursor indicator. If not
|
|
65
|
+
* provided, the default built-in cursor indicator is rendered. Return
|
|
66
|
+
* `undefined` to use the default indicator for a specific modality and `null`
|
|
67
|
+
* to render no cursor for that modality.
|
|
68
|
+
*/
|
|
69
|
+
renderCursor?: (options: {
|
|
70
|
+
coordinates: {
|
|
71
|
+
x: number;
|
|
72
|
+
y: number;
|
|
73
|
+
};
|
|
74
|
+
modality: "keyboard" | "pointer";
|
|
75
|
+
}) => React.ReactElement | null | undefined;
|
|
76
|
+
}
|
|
77
|
+
interface Description {
|
|
78
|
+
label: string;
|
|
79
|
+
icon: React.FC<IconProps>;
|
|
80
|
+
}
|
|
81
|
+
export type FloatingOptions = Pick<PopoverContentProps, "crossOffset" | "offset" | "placement"> & {
|
|
82
|
+
anchorElement?: "indicator" | "trailing";
|
|
83
|
+
};
|
|
84
|
+
export interface PointPickerDisplayProps extends StylingProps {
|
|
85
|
+
/**
|
|
86
|
+
* The description of the display.
|
|
87
|
+
*
|
|
88
|
+
* @param options - The options for the description.
|
|
89
|
+
* @param options.coordinates - The coordinates of the cursor.
|
|
90
|
+
* @param options.boundingRect - The bounding rectangle of the element.
|
|
91
|
+
* @param options.activePoint - The active point of the element. This point is
|
|
92
|
+
* the point which is snapped to the snap points if any or the coordinates
|
|
93
|
+
* of the cursor if no snap points are provided or the cursor is not near a
|
|
94
|
+
* snap point.
|
|
95
|
+
*/
|
|
96
|
+
description?: Description[] | ((options: Options) => Description[]);
|
|
97
|
+
/**
|
|
98
|
+
* Whether to show the magnifier.
|
|
99
|
+
*
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
magnifier?: boolean | {
|
|
103
|
+
scale?: number;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Whether to show the display as a floating popover.
|
|
107
|
+
*
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
floating?: boolean | FloatingOptions;
|
|
111
|
+
/** The content to render in the magnifier. */
|
|
112
|
+
renderMagnifierContent?: (options: Options & {
|
|
113
|
+
children: React.ReactNode;
|
|
114
|
+
}) => React.ReactElement;
|
|
115
|
+
}
|
|
116
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PointPickerContentProps } from "../PointPicker.types";
|
|
3
|
+
export declare const PointPickerIndicatorIcon: React.ForwardRefExoticComponent<Omit<PointPickerIndicatorIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
4
|
+
interface PointPickerIndicatorIconProps extends React.SVGProps<SVGSVGElement> {
|
|
5
|
+
modality: "keyboard" | "pointer";
|
|
6
|
+
}
|
|
7
|
+
export declare const PointPickerIndicator: React.ForwardRefExoticComponent<Pick<PointPickerContentProps, "renderTrailingElement" | "renderCursor"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PointPickerContextValue } from "../../PointPicker";
|
|
2
|
+
import type { KeyboardProps } from "react-aria";
|
|
3
|
+
export declare function usePointPickerKeyboard({ coordinates, setCoordinates, boundsRef, onKeyDown, onKeyUp, }: KeyboardProps & Pick<PointPickerContextValue, "coordinates" | "setCoordinates" | "boundsRef">): import("react-aria").KeyboardResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PointPickerContent";
|