@baseline-ui/core 0.58.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 +6165 -13146
- 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 -10074
- 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 -10074
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListBox } from "../ListBox";
|
|
3
|
+
import type { ColorPreset } from "./ColorInput.types";
|
|
4
|
+
import type { Color } from "@react-stately/color";
|
|
5
|
+
export declare const COLOR_MODES: {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const FALLBACK_COLOR: Color;
|
|
10
|
+
export declare const HSLA_FORMAT = "hsla";
|
|
11
|
+
export declare const HEXA_FORMAT = "hexa";
|
|
12
|
+
/**
|
|
13
|
+
* Returns the parsed color in hsla format. If the color is not defined, it will
|
|
14
|
+
* return black.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getParsedColor(color: string | Color | null | undefined): Color | null;
|
|
17
|
+
/**
|
|
18
|
+
* This function is used to check if the current color matches the preset color.
|
|
19
|
+
* If the current color is transparent, it will return true if the preset color
|
|
20
|
+
* is also transparent.
|
|
21
|
+
*/
|
|
22
|
+
export declare function doesColorMatch(currentColor: Color, presetColor: Color | null): boolean;
|
|
23
|
+
/** This function is used to get the label for the color input. */
|
|
24
|
+
export declare function getLabelForColor(color: Color | null, selectedPreset?: {
|
|
25
|
+
id: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
}, transparentLabel?: string): string | undefined;
|
|
28
|
+
export declare const NONE_ID = "NONE";
|
|
29
|
+
/**
|
|
30
|
+
* This function is used to get the presets with the none option. The none
|
|
31
|
+
* option is used to remove the color. It also changes the id of the existing
|
|
32
|
+
* presets to hexa format as it is used to compare the color.
|
|
33
|
+
*/
|
|
34
|
+
export declare function getPresetsWithNone(noneLabel: string, presets?: ColorPreset[]): {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
}[];
|
|
38
|
+
type RenderOption = Exclude<React.ComponentProps<typeof ListBox>["renderOption"], undefined>;
|
|
39
|
+
export declare const renderOption: RenderOption;
|
|
40
|
+
export declare const getTransparentStyle: (color: Color, size?: number) => {
|
|
41
|
+
backgroundImage: string;
|
|
42
|
+
backgroundSize: string;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const colorSwatchCn: ((options?: {
|
|
2
|
+
isFocusVisible?: boolean | undefined;
|
|
3
|
+
isDisabled?: boolean | undefined;
|
|
4
|
+
removeBlendMode?: boolean | undefined;
|
|
5
|
+
isSelected?: boolean | undefined;
|
|
6
|
+
isHovered?: boolean | undefined;
|
|
7
|
+
} | undefined) => string) & {
|
|
8
|
+
variants: () => ("isSelected" | "isHovered" | "isDisabled" | "isFocusVisible" | "removeBlendMode")[];
|
|
9
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
10
|
+
isFocusVisible: {
|
|
11
|
+
true: {};
|
|
12
|
+
};
|
|
13
|
+
isDisabled: {
|
|
14
|
+
true: {
|
|
15
|
+
pointerEvents: "none";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
removeBlendMode: {
|
|
19
|
+
true: {
|
|
20
|
+
"::before": {
|
|
21
|
+
mixBlendMode: "normal";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
isSelected: {
|
|
26
|
+
true: {
|
|
27
|
+
"__@@Component_Sprinkles__": boolean;
|
|
28
|
+
baseSprinkles: string;
|
|
29
|
+
variantSprinkles: string;
|
|
30
|
+
compoundVariantSprinkles: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
isHovered: {
|
|
34
|
+
true: {};
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
export declare const noneCn: string;
|
|
39
|
+
export declare const indeterminateCn: string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { IconProps } from "../Icon";
|
|
3
|
+
import type { TooltipProps } from "../Tooltip";
|
|
4
|
+
import type { AriaColorSwatchProps } from "@react-aria/color";
|
|
5
|
+
import type { AriaLabelingProps, DOMProps } from "@react-types/shared";
|
|
6
|
+
import type React from "react";
|
|
7
|
+
export interface ColorSwatchProps extends Omit<AriaColorSwatchProps, "colorName">, StylingProps, DOMProps, AriaLabelingProps {
|
|
8
|
+
/** Whether the swatch is focused by keyboard. */
|
|
9
|
+
isFocusVisible?: boolean;
|
|
10
|
+
/** Whether the swatch is selected. */
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the swatch is interactive. This is used to determine whether to
|
|
14
|
+
* show hover styles.
|
|
15
|
+
*/
|
|
16
|
+
isInteractive?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the swatch is disabled. This is used to determine whether to show
|
|
19
|
+
* disabled styles.
|
|
20
|
+
*/
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to show a tooltip. You can pass a boolean or a partial tooltip
|
|
24
|
+
* object that extends the default tooltip props.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
tooltip?: boolean | Partial<Omit<TooltipProps, "children">>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the swatch is indeterminate. When this is `true`, the color related
|
|
31
|
+
* props will be ignored and indeterminate styles will be applied. This change
|
|
32
|
+
* is only visual.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
isIndeterminate?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The icon to display when the swatch is indeterminate. The icon should be a
|
|
39
|
+
* 16x16px icon to ensure consistency with the design system.
|
|
40
|
+
*
|
|
41
|
+
* @default HelpIcon
|
|
42
|
+
*/
|
|
43
|
+
indeterminateIcon?: React.FC<IconProps> | null;
|
|
44
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { ColorPreset } from "../ColorInput";
|
|
3
|
+
import type { IconProps } from "../Icon";
|
|
4
|
+
import type { ListBoxProps } from "../ListBox";
|
|
5
|
+
import type { RadioGroupProps } from "../RadioGroup";
|
|
6
|
+
import type { TooltipProps } from "../Tooltip";
|
|
7
|
+
import type { AriaLabelingProps } from "@react-types/shared";
|
|
8
|
+
import type React from "react";
|
|
9
|
+
export interface ColorSwatchPickerProps extends StylingProps, Pick<RadioGroupProps, "optionsContainerClassName" | "labelPosition">, Pick<ListBoxProps, "optionClassName" | "optionStyle" | "shouldFocusWrap">, AriaLabelingProps {
|
|
10
|
+
/**
|
|
11
|
+
* The items to display in the picker. Each item should have a `color` and a
|
|
12
|
+
* `label`.
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* const items = [
|
|
16
|
+
* { color: "#FF0000", label: "Red" },
|
|
17
|
+
* { color: "#00FF00", label: "Green" },
|
|
18
|
+
* { color: "#0000FF", label: "Blue" },
|
|
19
|
+
* { color: "#FFFF00", label: "Yellow" },
|
|
20
|
+
* ];
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
items: ColorPreset[];
|
|
24
|
+
/** The icon visible at the start of the picker. */
|
|
25
|
+
icon?: React.FC<IconProps>;
|
|
26
|
+
/**
|
|
27
|
+
* The value of the selected item. This is useful if you want to control the
|
|
28
|
+
* value of the picker.
|
|
29
|
+
*/
|
|
30
|
+
value?: string;
|
|
31
|
+
/** A function that is called when the selected item changes. */
|
|
32
|
+
onChange?: (value?: string) => void;
|
|
33
|
+
/** The default value of the picker. */
|
|
34
|
+
defaultValue?: string;
|
|
35
|
+
/** The label for the picker. */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Whether the picker is disabled. */
|
|
38
|
+
isDisabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to show a tooltip. You can pass a boolean or a partial tooltip
|
|
41
|
+
* object that extends the default tooltip props.
|
|
42
|
+
*
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
tooltip?: boolean | Partial<Omit<TooltipProps, "children">>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
export declare const comboBoxCn: ((options?: {
|
|
2
|
+
labelPosition?: "top" | "start" | undefined;
|
|
3
|
+
} | undefined) => string) & {
|
|
4
|
+
variants: () => "labelPosition"[];
|
|
5
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
6
|
+
labelPosition: {
|
|
7
|
+
top: {
|
|
8
|
+
"__@@Component_Sprinkles__": boolean;
|
|
9
|
+
baseSprinkles: string;
|
|
10
|
+
variantSprinkles: string;
|
|
11
|
+
compoundVariantSprinkles: string;
|
|
12
|
+
};
|
|
13
|
+
start: {
|
|
14
|
+
"__@@Component_Sprinkles__": boolean;
|
|
15
|
+
baseSprinkles: string;
|
|
16
|
+
variantSprinkles: string;
|
|
17
|
+
compoundVariantSprinkles: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export declare const comboBoxLabelCn: ((options?: {
|
|
23
|
+
isDisabled?: boolean | undefined;
|
|
24
|
+
} | undefined) => string) & {
|
|
25
|
+
variants: () => "isDisabled"[];
|
|
26
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
27
|
+
isDisabled: {
|
|
28
|
+
true: {
|
|
29
|
+
"__@@Component_Sprinkles__": boolean;
|
|
30
|
+
baseSprinkles: string;
|
|
31
|
+
variantSprinkles: string;
|
|
32
|
+
compoundVariantSprinkles: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export declare const comboBoxToggleCn: ((options?: {
|
|
38
|
+
isFocusVisible?: boolean | undefined;
|
|
39
|
+
isHovered?: boolean | undefined;
|
|
40
|
+
isOpen?: boolean | undefined;
|
|
41
|
+
} | undefined) => string) & {
|
|
42
|
+
variants: () => ("isHovered" | "isFocusVisible" | "isOpen")[];
|
|
43
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
44
|
+
isFocusVisible: {
|
|
45
|
+
true: {
|
|
46
|
+
"__@@Component_Sprinkles__": boolean;
|
|
47
|
+
baseSprinkles: string;
|
|
48
|
+
variantSprinkles: string;
|
|
49
|
+
compoundVariantSprinkles: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
isHovered: {
|
|
53
|
+
true: {
|
|
54
|
+
"__@@Component_Sprinkles__": boolean;
|
|
55
|
+
baseSprinkles: string;
|
|
56
|
+
variantSprinkles: string;
|
|
57
|
+
compoundVariantSprinkles: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
isOpen: {
|
|
61
|
+
true: {
|
|
62
|
+
"__@@Component_Sprinkles__": boolean;
|
|
63
|
+
baseSprinkles: string;
|
|
64
|
+
variantSprinkles: string;
|
|
65
|
+
compoundVariantSprinkles: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
69
|
+
};
|
|
70
|
+
export declare const comboBoxLabelContainerCn: ((options?: {
|
|
71
|
+
labelPosition?: "top" | "start" | undefined;
|
|
72
|
+
hasMessage?: boolean | undefined;
|
|
73
|
+
} | undefined) => string) & {
|
|
74
|
+
variants: () => ("labelPosition" | "hasMessage")[];
|
|
75
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
76
|
+
labelPosition: {
|
|
77
|
+
top: {
|
|
78
|
+
"__@@Component_Sprinkles__": boolean;
|
|
79
|
+
baseSprinkles: string;
|
|
80
|
+
variantSprinkles: string;
|
|
81
|
+
compoundVariantSprinkles: string;
|
|
82
|
+
};
|
|
83
|
+
start: {
|
|
84
|
+
"__@@Component_Sprinkles__": boolean;
|
|
85
|
+
baseSprinkles: string;
|
|
86
|
+
variantSprinkles: string;
|
|
87
|
+
compoundVariantSprinkles: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
hasMessage: {
|
|
91
|
+
true: {};
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
export declare const comboBoxInputWrapperCn: ((options?: {
|
|
96
|
+
validationState?: "warning" | "error" | "valid" | undefined;
|
|
97
|
+
isHovered?: boolean | undefined;
|
|
98
|
+
isFocused?: boolean | undefined;
|
|
99
|
+
isDisabled?: boolean | undefined;
|
|
100
|
+
variant?: "primary" | "ghost" | undefined;
|
|
101
|
+
isReadOnly?: boolean | undefined;
|
|
102
|
+
} | undefined) => string) & {
|
|
103
|
+
variants: () => ("isFocused" | "isHovered" | "isDisabled" | "variant" | "validationState" | "isReadOnly")[];
|
|
104
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
105
|
+
validationState: {
|
|
106
|
+
valid: {};
|
|
107
|
+
error: {
|
|
108
|
+
"__@@Component_Sprinkles__": boolean;
|
|
109
|
+
baseSprinkles: string;
|
|
110
|
+
variantSprinkles: string;
|
|
111
|
+
compoundVariantSprinkles: string;
|
|
112
|
+
};
|
|
113
|
+
warning: {};
|
|
114
|
+
};
|
|
115
|
+
isHovered: {
|
|
116
|
+
true: {};
|
|
117
|
+
};
|
|
118
|
+
isFocused: {
|
|
119
|
+
true: {
|
|
120
|
+
"__@@Component_Sprinkles__": boolean;
|
|
121
|
+
baseSprinkles: string;
|
|
122
|
+
variantSprinkles: string;
|
|
123
|
+
compoundVariantSprinkles: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
isDisabled: {
|
|
127
|
+
true: {
|
|
128
|
+
cursor: "not-allowed";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
variant: {
|
|
132
|
+
primary: {};
|
|
133
|
+
ghost: {};
|
|
134
|
+
};
|
|
135
|
+
isReadOnly: {
|
|
136
|
+
true: {
|
|
137
|
+
"__@@Component_Sprinkles__": boolean;
|
|
138
|
+
baseSprinkles: string;
|
|
139
|
+
variantSprinkles: string;
|
|
140
|
+
compoundVariantSprinkles: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
};
|
|
145
|
+
export declare const comboBoxInputCn: ((options?: {
|
|
146
|
+
isDisabled?: boolean | undefined;
|
|
147
|
+
labelPosition?: "top" | "start" | undefined;
|
|
148
|
+
} | undefined) => string) & {
|
|
149
|
+
variants: () => ("isDisabled" | "labelPosition")[];
|
|
150
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
151
|
+
isDisabled: {
|
|
152
|
+
true: ({
|
|
153
|
+
"__@@Component_Sprinkles__": boolean;
|
|
154
|
+
baseSprinkles: string;
|
|
155
|
+
variantSprinkles: string;
|
|
156
|
+
compoundVariantSprinkles: string;
|
|
157
|
+
} | {
|
|
158
|
+
cursor: "inherit";
|
|
159
|
+
"::placeholder": {
|
|
160
|
+
color: `var(--${string})`;
|
|
161
|
+
};
|
|
162
|
+
})[];
|
|
163
|
+
};
|
|
164
|
+
labelPosition: {
|
|
165
|
+
top: {};
|
|
166
|
+
start: {
|
|
167
|
+
textAlign: "right";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}>;
|
|
171
|
+
};
|
|
172
|
+
export declare const comboBoxInputIconCn: ((options?: {
|
|
173
|
+
validationState?: "warning" | "error" | "valid" | undefined;
|
|
174
|
+
isReadOnly?: boolean | undefined;
|
|
175
|
+
} | undefined) => string) & {
|
|
176
|
+
variants: () => ("validationState" | "isReadOnly")[];
|
|
177
|
+
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
178
|
+
validationState: {
|
|
179
|
+
valid: {};
|
|
180
|
+
error: {
|
|
181
|
+
"__@@Component_Sprinkles__": boolean;
|
|
182
|
+
baseSprinkles: string;
|
|
183
|
+
variantSprinkles: string;
|
|
184
|
+
compoundVariantSprinkles: string;
|
|
185
|
+
};
|
|
186
|
+
warning: {
|
|
187
|
+
"__@@Component_Sprinkles__": boolean;
|
|
188
|
+
baseSprinkles: string;
|
|
189
|
+
variantSprinkles: string;
|
|
190
|
+
compoundVariantSprinkles: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
isReadOnly: {
|
|
194
|
+
true: {
|
|
195
|
+
"__@@Component_Sprinkles__": boolean;
|
|
196
|
+
baseSprinkles: string;
|
|
197
|
+
variantSprinkles: string;
|
|
198
|
+
compoundVariantSprinkles: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}>;
|
|
202
|
+
};
|
|
203
|
+
export declare const comboBoxListBoxCn: string;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { ActionIconButtonProps } from "../ActionIconButton";
|
|
3
|
+
import type { ColorInputProps } from "../ColorInput";
|
|
4
|
+
import type { ListItem } from "../shared/types/List";
|
|
5
|
+
import type { InputMessage } from "../TextInput/TextInput.types";
|
|
6
|
+
import type { UNSAFE_ListBoxProps as ListBoxProps } from "../UNSAFE_ListBox";
|
|
7
|
+
import type { AriaValidationProps } from "@react-types/shared";
|
|
8
|
+
import type React from "react";
|
|
9
|
+
import type { AriaComboBoxOptions, AriaComboBoxProps } from "react-aria";
|
|
10
|
+
import type { ComboBoxStateOptions } from "react-stately";
|
|
11
|
+
export interface ComboBoxProps extends StylingProps, Omit<AriaComboBoxOptions<ListItem>, "items" | "children" | "inputRef" | "popoverRef" | "listBoxRef" | "buttonRef" | "validationState" | "errorMessage" | "description">, Omit<AriaComboBoxProps<ListItem>, "items" | "children" | "errorMessage" | "description" | "validationState">, Omit<ListBoxProps, "autoFocus" | "onBlur" | "onFocus" | "onSelectionChange" | "selectionBehavior" | "selectionMode" | "selectedKeys" | "defaultSelectedKeys" | "renderDropIndicator" | "renderDragPreview" | "dropIndicatorClassName" | "dropIndicatorStyle" | "dragAndDropHooks" | "orientation" | "layout" | "renderSectionHeader" | "showSectionHeader" | "withSectionHeaderPadding" | "listBoxHandle" | "sectionClassName" | "sectionStyle">, AriaValidationProps, Omit<ComboBoxStateOptions<ListItem>, "items" | "children" | "errorMessage" | "description" | "validationState" | "selectedKey">, InputMessage, Pick<ActionIconButtonProps, "tooltip">, Pick<ColorInputProps, "onTriggerPress"> {
|
|
12
|
+
/** ID of the initially selected item */
|
|
13
|
+
defaultSelectedKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The state of the combobox input.
|
|
16
|
+
*
|
|
17
|
+
* @default valid
|
|
18
|
+
*/
|
|
19
|
+
validationState?: "valid" | "error" | "warning";
|
|
20
|
+
/**
|
|
21
|
+
* The variant of the text input.
|
|
22
|
+
*
|
|
23
|
+
* @default primary
|
|
24
|
+
*/
|
|
25
|
+
variant?: "primary" | "ghost";
|
|
26
|
+
/**
|
|
27
|
+
* The position of the label relative to the input.
|
|
28
|
+
*
|
|
29
|
+
* @default top
|
|
30
|
+
*/
|
|
31
|
+
labelPosition?: "top" | "start";
|
|
32
|
+
/** Whether the input is read only. */
|
|
33
|
+
readOnly?: boolean;
|
|
34
|
+
/** The style object to apply to the input element */
|
|
35
|
+
inputStyle?: React.CSSProperties;
|
|
36
|
+
/** The class name to apply to the input element */
|
|
37
|
+
inputClassName?: string;
|
|
38
|
+
/** Optional label for the toggle button */
|
|
39
|
+
toggleLabel?: string;
|
|
40
|
+
filterItems?: boolean;
|
|
41
|
+
onInputChange?: (value: string) => void;
|
|
42
|
+
showIcon?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The items to render in the listbox. Items have the following shape:
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* export type ListOption = {
|
|
48
|
+
* id: string;
|
|
49
|
+
* label: string;
|
|
50
|
+
* description?: string;
|
|
51
|
+
* icon?: React.FC<IconProps>;
|
|
52
|
+
* };
|
|
53
|
+
*
|
|
54
|
+
* export type ListSection = {
|
|
55
|
+
* id: string;
|
|
56
|
+
* title?: string;
|
|
57
|
+
* type: "section";
|
|
58
|
+
* children: ListOption[];
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* type ListItem = ListOption | ListSection;
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
items: ListItem[];
|
|
65
|
+
/**
|
|
66
|
+
* Specify which interaction should trigger the dropdown to open
|
|
67
|
+
*
|
|
68
|
+
* @default input
|
|
69
|
+
*/
|
|
70
|
+
menuTrigger?: "manual" | "input" | "focus";
|
|
71
|
+
/** Custom filter function to use when filtering items. */
|
|
72
|
+
filter?: ComboBoxStateOptions<ListItem>["defaultFilter"];
|
|
73
|
+
/**
|
|
74
|
+
* The type of the input field
|
|
75
|
+
*
|
|
76
|
+
* @default text
|
|
77
|
+
*/
|
|
78
|
+
inputType?: "text" | "number";
|
|
79
|
+
/**
|
|
80
|
+
* The minimum value for the input field. This is only valid when `inputType`
|
|
81
|
+
* is set to `number`.
|
|
82
|
+
*/
|
|
83
|
+
minValue?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The maximum value for the input field. This is only valid when `inputType`
|
|
86
|
+
* is set to `number`.
|
|
87
|
+
*/
|
|
88
|
+
maxValue?: number;
|
|
89
|
+
/** Listener to call when the input value is submitted */
|
|
90
|
+
onInputSubmit?: (value: string) => void;
|
|
91
|
+
/** Listener to call when the selected value changes */
|
|
92
|
+
onValueChange?: (option: {
|
|
93
|
+
value?: string;
|
|
94
|
+
key?: string | null;
|
|
95
|
+
}) => void;
|
|
96
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComboBoxProps } from "./ComboBox.types";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
import type { useComboBoxState } from "react-stately";
|
|
4
|
+
export declare function useOnValueChange({ allowsCustomValue, onValueChange, inputValue, }: Pick<ComboBoxProps, "allowsCustomValue" | "onValueChange" | "inputValue">, state: ReturnType<typeof useComboBoxState>, ref: React.RefObject<HTMLElement>, inputRef: React.RefObject<HTMLInputElement>, popoverRef: React.RefObject<HTMLElement>): {
|
|
5
|
+
inputProps: React.ComponentProps<"input">;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DateValue } from "react-aria";
|
|
3
|
+
import type { DateFieldStateOptions } from "react-stately";
|
|
4
|
+
export declare const DateField: React.ForwardRefExoticComponent<import("../..").StylingProps & Omit<Omit<DateFieldStateOptions<DateValue>, "locale"> & import("react-aria").AriaDateFieldProps<DateValue>, "validationState" | "isRequired" | "validate" | "isInvalid" | "createCalendar"> & Pick<import("../shared/components/SharedInput/SharedInput.types").SharedInputProps, "label" | "variant" | "labelPosition" | "validationState"> & import("../TextInput/TextInput.types").InputMessage & {
|
|
5
|
+
pickerType?: import("./DateField.types").DateFieldPickerType;
|
|
6
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StylingProps } from "../../utils";
|
|
2
|
+
import type { SharedInputProps } from "../shared/components/SharedInput/SharedInput.types";
|
|
3
|
+
import type { InputMessage } from "../TextInput/TextInput.types";
|
|
4
|
+
import type { AriaDateFieldProps, DateValue } from "react-aria";
|
|
5
|
+
import type { DateFieldStateOptions } from "react-stately";
|
|
6
|
+
export type DateFieldPickerType = "none" | "presentation" | "calendar";
|
|
7
|
+
export type DateFieldProps = StylingProps & Omit<Omit<DateFieldStateOptions, "locale"> & AriaDateFieldProps<DateValue>, "validationState" | "isInvalid" | "isRequired" | "validate" | "createCalendar"> & Pick<SharedInputProps, "variant" | "labelPosition" | "validationState" | "label"> & InputMessage & {
|
|
8
|
+
/**
|
|
9
|
+
* Controls the calendar picker integration.
|
|
10
|
+
* - `"none"`: No calendar icon or picker (default).
|
|
11
|
+
* - `"presentation"`: Trailing calendar icon, non-interactive.
|
|
12
|
+
* - `"calendar"`: Trailing calendar icon button that opens a Calendar popover.
|
|
13
|
+
*
|
|
14
|
+
* @default "none"
|
|
15
|
+
*/
|
|
16
|
+
pickerType?: DateFieldPickerType;
|
|
17
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
ar: {
|
|
3
|
+
"bui.dateField.openCalendar": string;
|
|
4
|
+
};
|
|
5
|
+
cs: {
|
|
6
|
+
"bui.dateField.openCalendar": string;
|
|
7
|
+
};
|
|
8
|
+
cy: {
|
|
9
|
+
"bui.dateField.openCalendar": string;
|
|
10
|
+
};
|
|
11
|
+
da: {
|
|
12
|
+
"bui.dateField.openCalendar": string;
|
|
13
|
+
};
|
|
14
|
+
de: {
|
|
15
|
+
"bui.dateField.openCalendar": string;
|
|
16
|
+
};
|
|
17
|
+
el: {
|
|
18
|
+
"bui.dateField.openCalendar": string;
|
|
19
|
+
};
|
|
20
|
+
en_GB: {
|
|
21
|
+
"bui.dateField.openCalendar": string;
|
|
22
|
+
};
|
|
23
|
+
en: {
|
|
24
|
+
"bui.dateField.openCalendar": string;
|
|
25
|
+
};
|
|
26
|
+
es: {
|
|
27
|
+
"bui.dateField.openCalendar": string;
|
|
28
|
+
};
|
|
29
|
+
fi: {
|
|
30
|
+
"bui.dateField.openCalendar": string;
|
|
31
|
+
};
|
|
32
|
+
fr_CA: {
|
|
33
|
+
"bui.dateField.openCalendar": string;
|
|
34
|
+
};
|
|
35
|
+
fr: {
|
|
36
|
+
"bui.dateField.openCalendar": string;
|
|
37
|
+
};
|
|
38
|
+
he: {
|
|
39
|
+
"bui.dateField.openCalendar": string;
|
|
40
|
+
};
|
|
41
|
+
hr: {
|
|
42
|
+
"bui.dateField.openCalendar": string;
|
|
43
|
+
};
|
|
44
|
+
id: {
|
|
45
|
+
"bui.dateField.openCalendar": string;
|
|
46
|
+
};
|
|
47
|
+
it: {
|
|
48
|
+
"bui.dateField.openCalendar": string;
|
|
49
|
+
};
|
|
50
|
+
ja: {
|
|
51
|
+
"bui.dateField.openCalendar": string;
|
|
52
|
+
};
|
|
53
|
+
ko: {
|
|
54
|
+
"bui.dateField.openCalendar": string;
|
|
55
|
+
};
|
|
56
|
+
ms: {
|
|
57
|
+
"bui.dateField.openCalendar": string;
|
|
58
|
+
};
|
|
59
|
+
nb_NO: {
|
|
60
|
+
"bui.dateField.openCalendar": string;
|
|
61
|
+
};
|
|
62
|
+
nl: {
|
|
63
|
+
"bui.dateField.openCalendar": string;
|
|
64
|
+
};
|
|
65
|
+
pl: {
|
|
66
|
+
"bui.dateField.openCalendar": string;
|
|
67
|
+
};
|
|
68
|
+
pt_PT: {
|
|
69
|
+
"bui.dateField.openCalendar": string;
|
|
70
|
+
};
|
|
71
|
+
pt: {
|
|
72
|
+
"bui.dateField.openCalendar": string;
|
|
73
|
+
};
|
|
74
|
+
ru: {
|
|
75
|
+
"bui.dateField.openCalendar": string;
|
|
76
|
+
};
|
|
77
|
+
sk: {
|
|
78
|
+
"bui.dateField.openCalendar": string;
|
|
79
|
+
};
|
|
80
|
+
sl: {
|
|
81
|
+
"bui.dateField.openCalendar": string;
|
|
82
|
+
};
|
|
83
|
+
sv: {
|
|
84
|
+
"bui.dateField.openCalendar": string;
|
|
85
|
+
};
|
|
86
|
+
th: {
|
|
87
|
+
"bui.dateField.openCalendar": string;
|
|
88
|
+
};
|
|
89
|
+
tr: {
|
|
90
|
+
"bui.dateField.openCalendar": string;
|
|
91
|
+
};
|
|
92
|
+
uk: {
|
|
93
|
+
"bui.dateField.openCalendar": string;
|
|
94
|
+
};
|
|
95
|
+
zh_Hans: {
|
|
96
|
+
"bui.dateField.openCalendar": string;
|
|
97
|
+
};
|
|
98
|
+
zh_Hant: {
|
|
99
|
+
"bui.dateField.openCalendar": string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export default _default;
|