@baseline-ui/core 0.60.0 → 0.61.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/dist/index.css +1 -1
- package/dist/index.d.ts +10309 -11
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/dist/react-aria.d.ts +708 -2
- package/dist/react-stately.d.ts +319 -2
- package/package.json +6 -6
- package/sbom.json +1 -1
- package/dist/components/Accordion/Accordion.css.d.ts +0 -44
- package/dist/components/Accordion/Accordion.d.ts +0 -11
- package/dist/components/Accordion/Accordion.types.d.ts +0 -70
- package/dist/components/Accordion/AccordionBase.d.ts +0 -5
- package/dist/components/Accordion/AccordionHeader.d.ts +0 -6
- package/dist/components/Accordion/AccordionItem.d.ts +0 -3
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/ActionButton/ActionButton.css.d.ts +0 -216
- package/dist/components/ActionButton/ActionButton.d.ts +0 -4
- package/dist/components/ActionButton/ActionButton.types.d.ts +0 -44
- package/dist/components/ActionButton/index.d.ts +0 -2
- package/dist/components/ActionGroup/ActionGroup.css.d.ts +0 -2
- package/dist/components/ActionGroup/ActionGroup.d.ts +0 -11
- package/dist/components/ActionGroup/ActionGroup.types.d.ts +0 -43
- package/dist/components/ActionGroup/index.d.ts +0 -3
- package/dist/components/ActionIconButton/ActionIconButton.css.d.ts +0 -116
- package/dist/components/ActionIconButton/ActionIconButton.d.ts +0 -3
- package/dist/components/ActionIconButton/ActionIconButton.types.d.ts +0 -56
- package/dist/components/ActionIconButton/index.d.ts +0 -2
- package/dist/components/Actionable/Actionable.css.d.ts +0 -2
- package/dist/components/Actionable/Actionable.d.ts +0 -3
- package/dist/components/Actionable/Actionable.types.d.ts +0 -15
- package/dist/components/Actionable/index.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.css.d.ts +0 -26
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -77
- package/dist/components/AlertDialog/index.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.css.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +0 -3
- package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +0 -27
- package/dist/components/AudioPlayer/index.d.ts +0 -3
- package/dist/components/Avatar/Avatar.css.d.ts +0 -19
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.types.d.ts +0 -31
- package/dist/components/Avatar/index.d.ts +0 -2
- package/dist/components/Box/Box.d.ts +0 -3
- package/dist/components/Box/Box.types.d.ts +0 -12
- package/dist/components/Box/index.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.css.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.d.ts +0 -3
- package/dist/components/ButtonSelect/ButtonSelect.types.d.ts +0 -56
- package/dist/components/ButtonSelect/index.d.ts +0 -3
- package/dist/components/Calendar/Calendar.css.d.ts +0 -135
- package/dist/components/Calendar/Calendar.d.ts +0 -4
- package/dist/components/Calendar/Calendar.types.d.ts +0 -22
- package/dist/components/Calendar/CalendarCell.d.ts +0 -9
- package/dist/components/Calendar/CalendarHeader.d.ts +0 -6
- package/dist/components/Calendar/RangeCalendar.d.ts +0 -4
- package/dist/components/Calendar/index.d.ts +0 -3
- package/dist/components/Calendar/intl/index.d.ts +0 -267
- package/dist/components/Checkbox/Checkbox.css.d.ts +0 -103
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -17
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Code/Code.css.d.ts +0 -2
- package/dist/components/Code/Code.d.ts +0 -3
- package/dist/components/Code/Code.types.d.ts +0 -6
- package/dist/components/Code/index.d.ts +0 -3
- package/dist/components/ColorInput/ColorArea.d.ts +0 -4
- package/dist/components/ColorInput/ColorFieldInput.d.ts +0 -13
- package/dist/components/ColorInput/ColorInput.css.d.ts +0 -165
- package/dist/components/ColorInput/ColorInput.d.ts +0 -3
- package/dist/components/ColorInput/ColorInput.types.d.ts +0 -137
- package/dist/components/ColorInput/ColorInputButton.d.ts +0 -21
- package/dist/components/ColorInput/ColorPresetList.d.ts +0 -16
- package/dist/components/ColorInput/ColorSlider.d.ts +0 -3
- package/dist/components/ColorInput/CustomColors.d.ts +0 -15
- package/dist/components/ColorInput/IconColorInput.d.ts +0 -3
- package/dist/components/ColorInput/Picker.d.ts +0 -8
- package/dist/components/ColorInput/__tests__/data.d.ts +0 -8
- package/dist/components/ColorInput/hooks/useColorTrigger.d.ts +0 -13
- package/dist/components/ColorInput/index.d.ts +0 -4
- package/dist/components/ColorInput/intl/index.d.ts +0 -399
- package/dist/components/ColorInput/utils.d.ts +0 -44
- package/dist/components/ColorSwatch/ColorSwatch.css.d.ts +0 -39
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +0 -3
- package/dist/components/ColorSwatch/ColorSwatch.types.d.ts +0 -44
- package/dist/components/ColorSwatch/index.d.ts +0 -2
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.css.d.ts +0 -2
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.d.ts +0 -3
- package/dist/components/ColorSwatchPicker/ColorSwatchPicker.types.d.ts +0 -46
- package/dist/components/ColorSwatchPicker/index.d.ts +0 -3
- package/dist/components/ComboBox/ComboBox.css.d.ts +0 -203
- package/dist/components/ComboBox/ComboBox.d.ts +0 -3
- package/dist/components/ComboBox/ComboBox.types.d.ts +0 -96
- package/dist/components/ComboBox/index.d.ts +0 -3
- package/dist/components/ComboBox/useOnValueChange.d.ts +0 -6
- package/dist/components/DateField/DateField.d.ts +0 -6
- package/dist/components/DateField/DateField.types.d.ts +0 -17
- package/dist/components/DateField/index.d.ts +0 -3
- package/dist/components/DateField/intl/index.d.ts +0 -102
- package/dist/components/DateFormat/DateFormat.d.ts +0 -3
- package/dist/components/DateFormat/DateFormat.types.d.ts +0 -5
- package/dist/components/DateFormat/index.d.ts +0 -2
- package/dist/components/DeviceProvider/DeviceProvider.d.ts +0 -6
- package/dist/components/DeviceProvider/DeviceProvider.types.d.ts +0 -12
- package/dist/components/DeviceProvider/index.d.ts +0 -2
- package/dist/components/Dialog/Dialog.css.d.ts +0 -53
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.types.d.ts +0 -37
- package/dist/components/Dialog/DialogTitle.d.ts +0 -3
- package/dist/components/Dialog/index.d.ts +0 -3
- package/dist/components/Dialog/useDeferredLabel.d.ts +0 -7
- package/dist/components/Disclosure/Disclosure.css.d.ts +0 -116
- package/dist/components/Disclosure/Disclosure.d.ts +0 -3
- package/dist/components/Disclosure/Disclosure.types.d.ts +0 -30
- package/dist/components/Disclosure/index.d.ts +0 -3
- package/dist/components/DomNodeRenderer/DomNodeRenderer.d.ts +0 -3
- package/dist/components/DomNodeRenderer/DomNodeRenderer.types.d.ts +0 -11
- package/dist/components/DomNodeRenderer/index.d.ts +0 -2
- package/dist/components/Drawer/Drawer.css.d.ts +0 -31
- package/dist/components/Drawer/Drawer.d.ts +0 -3
- package/dist/components/Drawer/Drawer.types.d.ts +0 -24
- package/dist/components/Drawer/index.d.ts +0 -3
- package/dist/components/Editor/Editor.css.d.ts +0 -131
- package/dist/components/Editor/Editor.d.ts +0 -3
- package/dist/components/Editor/Editor.types.d.ts +0 -159
- package/dist/components/Editor/EditorToolbar.d.ts +0 -15
- package/dist/components/Editor/HelpDialog.d.ts +0 -5
- package/dist/components/Editor/RichEditor.d.ts +0 -24
- package/dist/components/Editor/elements/AddLink.d.ts +0 -10
- package/dist/components/Editor/elements/Mention.d.ts +0 -46
- package/dist/components/Editor/elements/Paragraph.d.ts +0 -2
- package/dist/components/Editor/elements/PlainEditor.d.ts +0 -11
- package/dist/components/Editor/index.d.ts +0 -2
- package/dist/components/Editor/utils.d.ts +0 -93
- package/dist/components/FileUpload/FileUpload.css.d.ts +0 -69
- package/dist/components/FileUpload/FileUpload.d.ts +0 -3
- package/dist/components/FileUpload/FileUpload.types.d.ts +0 -38
- package/dist/components/FileUpload/hooks/useFileUpload.d.ts +0 -22
- package/dist/components/FileUpload/index.d.ts +0 -2
- package/dist/components/FrameProvider/FrameProvider.d.ts +0 -20
- package/dist/components/FrameProvider/FrameProvider.types.d.ts +0 -40
- package/dist/components/FrameProvider/index.d.ts +0 -2
- package/dist/components/FreehandCanvas/FreehandCanvas.css.d.ts +0 -78
- package/dist/components/FreehandCanvas/FreehandCanvas.d.ts +0 -4
- package/dist/components/FreehandCanvas/FreehandCanvas.types.d.ts +0 -116
- package/dist/components/FreehandCanvas/hooks/usePathsData.d.ts +0 -27
- package/dist/components/FreehandCanvas/index.d.ts +0 -2
- package/dist/components/FreehandCanvas/intl/index.d.ts +0 -135
- package/dist/components/GridList/GridList.css.d.ts +0 -22
- package/dist/components/GridList/GridList.d.ts +0 -3
- package/dist/components/GridList/GridList.types.d.ts +0 -84
- package/dist/components/GridList/GridListItem.d.ts +0 -20
- package/dist/components/GridList/index.d.ts +0 -3
- package/dist/components/Group/Group.d.ts +0 -3
- package/dist/components/Group/Group.types.d.ts +0 -19
- package/dist/components/Group/index.d.ts +0 -2
- package/dist/components/I18nProvider/I18Provider.types.d.ts +0 -11
- package/dist/components/I18nProvider/I18nProvider.css.d.ts +0 -1
- package/dist/components/I18nProvider/I18nProvider.d.ts +0 -10
- package/dist/components/I18nProvider/index.d.ts +0 -4
- package/dist/components/Icon/Icon.d.ts +0 -4
- package/dist/components/Icon/Icon.types.d.ts +0 -36
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/ImageDropZone/ImageDropZone.css.d.ts +0 -76
- package/dist/components/ImageDropZone/ImageDropZone.d.ts +0 -3
- package/dist/components/ImageDropZone/ImageDropZone.types.d.ts +0 -50
- package/dist/components/ImageDropZone/index.d.ts +0 -2
- package/dist/components/ImageDropZone/intl/index.d.ts +0 -135
- package/dist/components/ImageGallery/AdaptiveText.d.ts +0 -13
- package/dist/components/ImageGallery/ImageGallery.css.d.ts +0 -86
- package/dist/components/ImageGallery/ImageGallery.d.ts +0 -18
- package/dist/components/ImageGallery/ImageGallery.types.d.ts +0 -130
- package/dist/components/ImageGallery/ImageGalleryDragPreview.d.ts +0 -22
- package/dist/components/ImageGallery/ImageGalleryItem.d.ts +0 -3
- package/dist/components/ImageGallery/index.d.ts +0 -2
- package/dist/components/ImageGallery/utils.d.ts +0 -10
- package/dist/components/InlineAlert/InlineAlert.css.d.ts +0 -214
- package/dist/components/InlineAlert/InlineAlert.d.ts +0 -3
- package/dist/components/InlineAlert/InlineAlert.types.d.ts +0 -38
- package/dist/components/InlineAlert/index.d.ts +0 -2
- package/dist/components/InlineAlert/intl/index.d.ts +0 -102
- package/dist/components/InlineToolbar/InlineToolbar.css.d.ts +0 -50
- package/dist/components/InlineToolbar/InlineToolbar.d.ts +0 -3
- package/dist/components/InlineToolbar/InlineToolbar.types.d.ts +0 -63
- package/dist/components/InlineToolbar/InlineToolbarButton.d.ts +0 -3
- package/dist/components/InlineToolbar/index.d.ts +0 -2
- package/dist/components/Kbd/Kbd.css.d.ts +0 -1
- package/dist/components/Kbd/Kbd.d.ts +0 -3
- package/dist/components/Kbd/Kbd.types.d.ts +0 -21
- package/dist/components/Kbd/index.d.ts +0 -2
- package/dist/components/Link/Link.css.d.ts +0 -41
- package/dist/components/Link/Link.d.ts +0 -3
- package/dist/components/Link/Link.types.d.ts +0 -26
- package/dist/components/Link/index.d.ts +0 -2
- package/dist/components/ListBox/DefaultListOption.d.ts +0 -22
- package/dist/components/ListBox/DropIndicator.d.ts +0 -11
- package/dist/components/ListBox/ListBox.css.d.ts +0 -91
- package/dist/components/ListBox/ListBox.d.ts +0 -6
- package/dist/components/ListBox/ListBox.types.d.ts +0 -104
- package/dist/components/ListBox/ListBoxSection.d.ts +0 -14
- package/dist/components/ListBox/ListOption.d.ts +0 -17
- package/dist/components/ListBox/hooks/useDragAndDrop.d.ts +0 -3
- package/dist/components/ListBox/hooks/useDragAutoScroll.d.ts +0 -5
- package/dist/components/ListBox/hooks/useDragDrop.d.ts +0 -33
- package/dist/components/ListBox/hooks/useSharedList.d.ts +0 -8
- package/dist/components/ListBox/index.d.ts +0 -4
- package/dist/components/Markdown/Markdown.css.d.ts +0 -3
- package/dist/components/Markdown/Markdown.d.ts +0 -3
- package/dist/components/Markdown/Markdown.types.d.ts +0 -7
- package/dist/components/Markdown/index.d.ts +0 -3
- package/dist/components/Menu/Menu.css.d.ts +0 -2
- package/dist/components/Menu/Menu.d.ts +0 -3
- package/dist/components/Menu/Menu.types.d.ts +0 -63
- package/dist/components/Menu/index.d.ts +0 -2
- package/dist/components/MessageFormat/MessageFormat.d.ts +0 -3
- package/dist/components/MessageFormat/MessageFormat.types.d.ts +0 -14
- package/dist/components/MessageFormat/index.d.ts +0 -2
- package/dist/components/Modal/Modal.css.d.ts +0 -39
- package/dist/components/Modal/Modal.d.ts +0 -11
- package/dist/components/Modal/Modal.types.d.ts +0 -70
- package/dist/components/Modal/ModalClose.d.ts +0 -4
- package/dist/components/Modal/ModalContent.d.ts +0 -13
- package/dist/components/Modal/ModalContentCore.d.ts +0 -3
- package/dist/components/Modal/ModalTrigger.d.ts +0 -4
- package/dist/components/Modal/hooks/useDialogPosition.d.ts +0 -13
- package/dist/components/Modal/index.d.ts +0 -5
- package/dist/components/NumberFormat/NumberFormat.d.ts +0 -3
- package/dist/components/NumberFormat/NumberFormat.types.d.ts +0 -5
- package/dist/components/NumberFormat/index.d.ts +0 -2
- package/dist/components/NumberInput/NumberInput.css.d.ts +0 -9
- package/dist/components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/components/NumberInput/NumberInput.types.d.ts +0 -26
- package/dist/components/NumberInput/index.d.ts +0 -2
- package/dist/components/Pagination/Pagination.css.d.ts +0 -84
- package/dist/components/Pagination/Pagination.d.ts +0 -3
- package/dist/components/Pagination/Pagination.types.d.ts +0 -25
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/Pagination/intl/index.d.ts +0 -201
- package/dist/components/Panel/Panel.css.d.ts +0 -1
- package/dist/components/Panel/Panel.d.ts +0 -2
- package/dist/components/Panel/Panel.types.d.ts +0 -72
- package/dist/components/Panel/PanelContext.d.ts +0 -6
- package/dist/components/Panel/PanelGroup.d.ts +0 -2
- package/dist/components/Panel/PanelResizeHandle.d.ts +0 -5
- package/dist/components/Panel/index.d.ts +0 -4
- package/dist/components/PointPicker/Grid.d.ts +0 -7
- package/dist/components/PointPicker/PointPicker.css.d.ts +0 -37
- package/dist/components/PointPicker/PointPicker.d.ts +0 -22
- package/dist/components/PointPicker/PointPicker.types.d.ts +0 -116
- package/dist/components/PointPicker/PointPickerContent/PointPickerContent.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerContent/PointPickerIndicator.d.ts +0 -8
- package/dist/components/PointPicker/PointPickerContent/hooks/useCoordinatesRelativeToWindow.d.ts +0 -4
- package/dist/components/PointPicker/PointPickerContent/hooks/usePointPickerKeyboard.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerContent/index.d.ts +0 -1
- package/dist/components/PointPicker/PointPickerDisplay/Floater.d.ts +0 -7
- package/dist/components/PointPicker/PointPickerDisplay/MagnifierContent.d.ts +0 -8
- package/dist/components/PointPicker/PointPickerDisplay/PointPickerDisplay.d.ts +0 -3
- package/dist/components/PointPicker/PointPickerDisplay/hooks/useIndicatorWidthObserver.d.ts +0 -1
- package/dist/components/PointPicker/PointPickerDisplay/index.d.ts +0 -1
- package/dist/components/PointPicker/PointsVisualiser/PointsVisualiser.d.ts +0 -11
- package/dist/components/PointPicker/PointsVisualiser/canvasUtils.d.ts +0 -20
- package/dist/components/PointPicker/PointsVisualiser/hooks/usePointProximity.d.ts +0 -12
- package/dist/components/PointPicker/hooks/usePointPicker.d.ts +0 -4
- package/dist/components/PointPicker/index.d.ts +0 -5
- package/dist/components/PointPicker/workers/canvas.worker.d.ts +0 -1
- package/dist/components/PointPicker/workers/pointProximity.worker.d.ts +0 -1
- package/dist/components/Popover/Arrow.d.ts +0 -7
- package/dist/components/Popover/Popover.css.d.ts +0 -55
- package/dist/components/Popover/Popover.d.ts +0 -10
- package/dist/components/Popover/Popover.types.d.ts +0 -133
- package/dist/components/Popover/PopoverContent.d.ts +0 -3
- package/dist/components/Popover/PopoverContentCore.d.ts +0 -7
- package/dist/components/Popover/PopoverTrigger.d.ts +0 -8
- package/dist/components/Popover/hooks/usePopoverScrollReposition.d.ts +0 -22
- package/dist/components/Popover/hooks/usePopoverTransition.d.ts +0 -23
- package/dist/components/Popover/index.d.ts +0 -4
- package/dist/components/Portal/Portal.d.ts +0 -3
- package/dist/components/Portal/Portal.types.d.ts +0 -4
- package/dist/components/Portal/index.d.ts +0 -2
- package/dist/components/PortalContainerProvider/PortalContainerProvider.d.ts +0 -4
- package/dist/components/PortalContainerProvider/PortalContainerProvider.types.d.ts +0 -12
- package/dist/components/PortalContainerProvider/index.d.ts +0 -1
- package/dist/components/Preview/Preview.css.d.ts +0 -50
- package/dist/components/Preview/Preview.d.ts +0 -3
- package/dist/components/Preview/Preview.types.d.ts +0 -59
- package/dist/components/Preview/index.d.ts +0 -2
- package/dist/components/ProgressBar/ProgressBar.css.d.ts +0 -48
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -20
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.css.d.ts +0 -9
- package/dist/components/ProgressSpinner/ProgressSpinner.d.ts +0 -3
- package/dist/components/ProgressSpinner/ProgressSpinner.types.d.ts +0 -16
- package/dist/components/ProgressSpinner/index.d.ts +0 -2
- package/dist/components/RadioGroup/RadioGroup.css.d.ts +0 -26
- package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -67
- package/dist/components/RadioGroup/RadioItem.d.ts +0 -11
- package/dist/components/RadioGroup/index.d.ts +0 -2
- package/dist/components/Reaction/Reaction.css.d.ts +0 -74
- package/dist/components/Reaction/Reaction.d.ts +0 -3
- package/dist/components/Reaction/Reaction.types.d.ts +0 -13
- package/dist/components/Reaction/index.d.ts +0 -2
- package/dist/components/ScrollControlButton/ScrollControlButton.css.d.ts +0 -1
- package/dist/components/ScrollControlButton/ScrollControlButton.d.ts +0 -3
- package/dist/components/ScrollControlButton/ScrollControlButton.types.d.ts +0 -31
- package/dist/components/ScrollControlButton/index.d.ts +0 -3
- package/dist/components/SearchInput/SearchInput.css.d.ts +0 -64
- package/dist/components/SearchInput/SearchInput.d.ts +0 -3
- package/dist/components/SearchInput/SearchInput.types.d.ts +0 -27
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/Select/IconSelect.d.ts +0 -3
- package/dist/components/Select/Select.css.d.ts +0 -58
- package/dist/components/Select/Select.d.ts +0 -9
- package/dist/components/Select/Select.types.d.ts +0 -87
- package/dist/components/Select/SelectButton.d.ts +0 -3
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/Separator/Separator.css.d.ts +0 -19
- package/dist/components/Separator/Separator.d.ts +0 -3
- package/dist/components/Separator/Separator.types.d.ts +0 -12
- package/dist/components/Separator/index.d.ts +0 -2
- package/dist/components/Skeleton/Skeleton.css.d.ts +0 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -3
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -7
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Slider/IconSlider.d.ts +0 -3
- package/dist/components/Slider/Slider.css.d.ts +0 -133
- package/dist/components/Slider/Slider.d.ts +0 -3
- package/dist/components/Slider/Slider.types.d.ts +0 -42
- package/dist/components/Slider/index.d.ts +0 -3
- package/dist/components/StatusCard/StatusCard.css.d.ts +0 -87
- package/dist/components/StatusCard/StatusCard.d.ts +0 -10
- package/dist/components/StatusCard/StatusCard.types.d.ts +0 -34
- package/dist/components/StatusCard/index.d.ts +0 -3
- package/dist/components/Switch/Switch.css.d.ts +0 -67
- package/dist/components/Switch/Switch.d.ts +0 -3
- package/dist/components/Switch/Switch.types.d.ts +0 -15
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/Table.css.d.ts +0 -111
- package/dist/components/Table/Table.d.ts +0 -8
- package/dist/components/Table/Table.types.d.ts +0 -26
- package/dist/components/Table/hooks/useTableDragAndDrop.d.ts +0 -8
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Tabs/TabItem.d.ts +0 -3
- package/dist/components/Tabs/TabPanel.d.ts +0 -9
- package/dist/components/Tabs/Tabs.css.d.ts +0 -122
- package/dist/components/Tabs/Tabs.d.ts +0 -3
- package/dist/components/Tabs/Tabs.types.d.ts +0 -66
- package/dist/components/Tabs/TabsBase.d.ts +0 -7
- package/dist/components/Tabs/index.d.ts +0 -3
- package/dist/components/Tag/Tag.css.d.ts +0 -215
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.types.d.ts +0 -43
- package/dist/components/Tag/TagContext.d.ts +0 -15
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/TagGroup/TagGroup.css.d.ts +0 -1
- package/dist/components/TagGroup/TagGroup.d.ts +0 -3
- package/dist/components/TagGroup/TagGroup.types.d.ts +0 -38
- package/dist/components/TagGroup/index.d.ts +0 -2
- package/dist/components/TaggedPagination/TaggedPagination.css.d.ts +0 -70
- package/dist/components/TaggedPagination/TaggedPagination.d.ts +0 -3
- package/dist/components/TaggedPagination/TaggedPagination.types.d.ts +0 -50
- package/dist/components/TaggedPagination/index.d.ts +0 -2
- package/dist/components/Text/Text.css.d.ts +0 -51
- package/dist/components/Text/Text.d.ts +0 -3
- package/dist/components/Text/Text.types.d.ts +0 -24
- package/dist/components/Text/index.d.ts +0 -2
- package/dist/components/TextInput/TextInput.css.d.ts +0 -183
- package/dist/components/TextInput/TextInput.d.ts +0 -3
- package/dist/components/TextInput/TextInput.types.d.ts +0 -18
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/TextInput/utils/getMessage.d.ts +0 -12
- package/dist/components/TextInput/utils/getStatusIcon.d.ts +0 -6
- package/dist/components/ThemeProvider/ThemeProvider.context.d.ts +0 -6
- package/dist/components/ThemeProvider/ThemeProvider.css.d.ts +0 -1
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/dist/components/ThemeProvider/ThemeProvider.types.d.ts +0 -29
- package/dist/components/ThemeProvider/hooks/useUserPreferences.d.ts +0 -19
- package/dist/components/ThemeProvider/index.d.ts +0 -6
- package/dist/components/TimeField/DateTimeSegment.d.ts +0 -5
- package/dist/components/TimeField/TimeField.css.d.ts +0 -16
- package/dist/components/TimeField/TimeField.d.ts +0 -3
- package/dist/components/TimeField/TimeField.types.d.ts +0 -6
- package/dist/components/TimeField/index.d.ts +0 -3
- package/dist/components/Toast/Toast.css.d.ts +0 -34
- package/dist/components/Toast/Toast.d.ts +0 -3
- package/dist/components/Toast/Toast.types.d.ts +0 -14
- package/dist/components/Toast/index.d.ts +0 -4
- package/dist/components/ToggleButton/ToggleButton.css.d.ts +0 -74
- package/dist/components/ToggleButton/ToggleButton.d.ts +0 -3
- package/dist/components/ToggleButton/ToggleButton.types.d.ts +0 -27
- package/dist/components/ToggleButton/index.d.ts +0 -2
- package/dist/components/ToggleIconButton/ToggleIconButton.css.d.ts +0 -149
- package/dist/components/ToggleIconButton/ToggleIconButton.d.ts +0 -3
- package/dist/components/ToggleIconButton/ToggleIconButton.types.d.ts +0 -30
- package/dist/components/ToggleIconButton/index.d.ts +0 -2
- package/dist/components/Toolbar/CollapsibleToolbar.d.ts +0 -3
- package/dist/components/Toolbar/Toolbar.css.d.ts +0 -2
- package/dist/components/Toolbar/Toolbar.d.ts +0 -3
- package/dist/components/Toolbar/Toolbar.types.d.ts +0 -47
- package/dist/components/Toolbar/WrappedToolbar.d.ts +0 -3
- package/dist/components/Toolbar/hooks/useFormattedList.d.ts +0 -3
- package/dist/components/Toolbar/hooks/useInputAwareToolbar.d.ts +0 -6
- package/dist/components/Toolbar/index.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.css.d.ts +0 -44
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -55
- package/dist/components/Tooltip/TooltipContent.d.ts +0 -15
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/TreeView/TreeItem.d.ts +0 -7
- package/dist/components/TreeView/TreeView.css.d.ts +0 -34
- package/dist/components/TreeView/TreeView.d.ts +0 -8
- package/dist/components/TreeView/TreeView.types.d.ts +0 -95
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/UNSAFE_ListBox/ListBox.css.d.ts +0 -92
- package/dist/components/UNSAFE_ListBox/ListBox.d.ts +0 -13
- package/dist/components/UNSAFE_ListBox/ListBox.types.d.ts +0 -84
- package/dist/components/UNSAFE_ListBox/ListBoxUI.d.ts +0 -19
- package/dist/components/UNSAFE_ListBox/hooks/useDragAndDrop.d.ts +0 -3
- package/dist/components/UNSAFE_ListBox/index.d.ts +0 -3
- package/dist/components/Virtualizer/LocaleAwareGridLayout.d.ts +0 -17
- package/dist/components/Virtualizer/Virtualizer.types.d.ts +0 -6
- package/dist/components/Virtualizer/index.d.ts +0 -36
- package/dist/components/index.d.ts +0 -81
- package/dist/components/shared/buttons.d.ts +0 -30
- package/dist/components/shared/collection.d.ts +0 -3
- package/dist/components/shared/components/DragPreviewContent.d.ts +0 -12
- package/dist/components/shared/components/IconWithTooltip.d.ts +0 -8
- package/dist/components/shared/components/ListCollectionBuilder.d.ts +0 -9
- package/dist/components/shared/components/OverlayEventLeakPreventionLayer.d.ts +0 -8
- package/dist/components/shared/components/SharedInput/SharedInput.d.ts +0 -3
- package/dist/components/shared/components/SharedInput/SharedInput.types.d.ts +0 -34
- package/dist/components/shared/components/SharedInput/index.d.ts +0 -1
- package/dist/components/shared/tooltips.d.ts +0 -11
- package/dist/components/shared/types/IconComponent.d.ts +0 -21
- package/dist/components/shared/types/List.d.ts +0 -17
- package/dist/hooks/index.d.ts +0 -13
- package/dist/hooks/useDevice.d.ts +0 -20
- package/dist/hooks/useI18n.d.ts +0 -59
- package/dist/hooks/useImage.d.ts +0 -23
- package/dist/hooks/useIntersectionObserver.d.ts +0 -44
- package/dist/hooks/useIsFirstRender.d.ts +0 -21
- package/dist/hooks/useIsTouchDevice.d.ts +0 -7
- package/dist/hooks/useLiveInteractionModality.d.ts +0 -13
- package/dist/hooks/useLocalStorage.d.ts +0 -20
- package/dist/hooks/useMedia.d.ts +0 -13
- package/dist/hooks/useMutationObserver.d.ts +0 -20
- package/dist/hooks/usePortalContainer.d.ts +0 -11
- package/dist/hooks/usePreventFocus.d.ts +0 -23
- package/dist/hooks/useResizeObserver.d.ts +0 -38
- package/dist/hooks/useTextSelection.d.ts +0 -29
- package/dist/hooks/useUndoRedo.d.ts +0 -44
- package/dist/utils/a11y.d.ts +0 -1
- package/dist/utils/classNames.d.ts +0 -17
- package/dist/utils/colors.d.ts +0 -11
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/devWarn.d.ts +0 -1
- package/dist/utils/dom.d.ts +0 -130
- package/dist/utils/index.d.ts +0 -18
- package/dist/utils/invariant.d.ts +0 -18
- package/dist/utils/isInIframe.d.ts +0 -12
- package/dist/utils/isInShadowDOM.d.ts +0 -11
- package/dist/utils/isRect.d.ts +0 -7
- package/dist/utils/keyboards.d.ts +0 -13
- package/dist/utils/math.d.ts +0 -1
- package/dist/utils/objects.d.ts +0 -20
- package/dist/utils/overlays.d.ts +0 -6
- package/dist/utils/reactAriaCompat.d.ts +0 -22
- package/dist/utils/reactAriaComponentsCompat.d.ts +0 -4
- package/dist/utils/resolveAriaLabelAttrs.d.ts +0 -22
- package/dist/utils/resolvePublicUrl.d.ts +0 -1
- package/dist/utils/strings.d.ts +0 -6
- package/dist/utils/style.d.ts +0 -5
- package/dist/utils/styleMixins.css.d.ts +0 -16
- package/dist/utils/svgs.d.ts +0 -15
- package/dist/utils/types/Shared.d.ts +0 -34
- package/dist/utils/validations.d.ts +0 -13
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export declare const imageDropZoneCn: ((options?: {
|
|
2
|
-
isInline?: boolean | undefined;
|
|
3
|
-
isHovered?: boolean | undefined;
|
|
4
|
-
hasLoadedImage?: boolean | undefined;
|
|
5
|
-
includeCheckeredBackground?: boolean | undefined;
|
|
6
|
-
showFocusRing?: boolean | undefined;
|
|
7
|
-
isDisabled?: boolean | undefined;
|
|
8
|
-
} | undefined) => string) & {
|
|
9
|
-
variants: () => ("isHovered" | "isDisabled" | "hasLoadedImage" | "isInline" | "includeCheckeredBackground" | "showFocusRing")[];
|
|
10
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
11
|
-
isInline: {
|
|
12
|
-
true: ({
|
|
13
|
-
"__@@Component_Sprinkles__": boolean;
|
|
14
|
-
baseSprinkles: string;
|
|
15
|
-
variantSprinkles: string;
|
|
16
|
-
compoundVariantSprinkles: string;
|
|
17
|
-
} | {
|
|
18
|
-
minWidth: number;
|
|
19
|
-
})[];
|
|
20
|
-
false: {
|
|
21
|
-
"__@@Component_Sprinkles__": boolean;
|
|
22
|
-
baseSprinkles: string;
|
|
23
|
-
variantSprinkles: string;
|
|
24
|
-
compoundVariantSprinkles: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
isHovered: {
|
|
28
|
-
true: {};
|
|
29
|
-
};
|
|
30
|
-
hasLoadedImage: {
|
|
31
|
-
true: {
|
|
32
|
-
"__@@Component_Sprinkles__": boolean;
|
|
33
|
-
baseSprinkles: string;
|
|
34
|
-
variantSprinkles: string;
|
|
35
|
-
compoundVariantSprinkles: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
includeCheckeredBackground: {
|
|
39
|
-
true: {};
|
|
40
|
-
};
|
|
41
|
-
showFocusRing: {
|
|
42
|
-
true: {
|
|
43
|
-
"__@@Component_Sprinkles__": boolean;
|
|
44
|
-
baseSprinkles: string;
|
|
45
|
-
variantSprinkles: string;
|
|
46
|
-
compoundVariantSprinkles: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
isDisabled: {
|
|
50
|
-
true: ({
|
|
51
|
-
"__@@Component_Sprinkles__": boolean;
|
|
52
|
-
baseSprinkles: string;
|
|
53
|
-
variantSprinkles: string;
|
|
54
|
-
compoundVariantSprinkles: string;
|
|
55
|
-
} | {
|
|
56
|
-
pointerEvents: "none";
|
|
57
|
-
cursor: "not-allowed";
|
|
58
|
-
})[];
|
|
59
|
-
};
|
|
60
|
-
}>;
|
|
61
|
-
};
|
|
62
|
-
export declare const previewCn: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
63
|
-
isInline: {
|
|
64
|
-
true: {};
|
|
65
|
-
false: {};
|
|
66
|
-
};
|
|
67
|
-
isDisabled: {
|
|
68
|
-
true: {
|
|
69
|
-
opacity: number;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
hasLoadedImage: {
|
|
73
|
-
true: string;
|
|
74
|
-
};
|
|
75
|
-
}>;
|
|
76
|
-
export declare const opacityNoneCn: string;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { SharedFileUploadProps } from "../FileUpload/FileUpload.types";
|
|
2
|
-
import type { FreehandCanvasProps } from "../FreehandCanvas";
|
|
3
|
-
import type { AriaLabelingProps } from "@react-types/shared";
|
|
4
|
-
import type React from "react";
|
|
5
|
-
import type { ClipboardProps, DropOptions } from "react-aria";
|
|
6
|
-
export interface ImageDropZoneProps extends Omit<SharedFileUploadProps, "label" | "variant">, Omit<DropOptions, "ref" | "getDropOperation" | "hasDropButton" | "getDropOperationForPoint">, Omit<ClipboardProps, "getItems" | "onCut" | "onCopy">, Pick<FreehandCanvasProps, "footerClassName" | "footerStyle" | "placeholder" | "clearLabel">, AriaLabelingProps {
|
|
7
|
-
/**
|
|
8
|
-
* The initial image to display. This will be used as the `src` attribute of
|
|
9
|
-
* the `<img>` element. You will be able to choose a new image.
|
|
10
|
-
*/
|
|
11
|
-
defaultImageSrc?: string | File;
|
|
12
|
-
/**
|
|
13
|
-
* The image to display. This will be used as the `src` attribute of the
|
|
14
|
-
* `<img>` element and will not be able to be changed from within the
|
|
15
|
-
* component. Basically, this makes the component controlled.
|
|
16
|
-
*/
|
|
17
|
-
imageSrc?: string | File;
|
|
18
|
-
/**
|
|
19
|
-
* The alt text to display for the image. This will be used as the `alt`
|
|
20
|
-
* attribute of the `<img>`. element. If no `imageAlt` is provided, the
|
|
21
|
-
* `label` will be used.
|
|
22
|
-
*/
|
|
23
|
-
imageAlt?: string;
|
|
24
|
-
/** The label to display for the picker button. */
|
|
25
|
-
pickerButtonLabel?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Whether to show the checkered background behind the image. This is useful
|
|
28
|
-
* when the image has transparency.
|
|
29
|
-
*
|
|
30
|
-
* @default true
|
|
31
|
-
*/
|
|
32
|
-
includeCheckeredBackground?: boolean;
|
|
33
|
-
/** Whether the component is inlined. */
|
|
34
|
-
isInline?: boolean;
|
|
35
|
-
/** The class name to apply to the picker button. */
|
|
36
|
-
pickerButtonClassName?: string;
|
|
37
|
-
/** The style to apply to the picker button. */
|
|
38
|
-
pickerButtonStyle?: React.CSSProperties;
|
|
39
|
-
/** The class name to apply to the label. */
|
|
40
|
-
labelClassName?: string;
|
|
41
|
-
/** The style to apply to the label. */
|
|
42
|
-
labelStyle?: React.CSSProperties;
|
|
43
|
-
/**
|
|
44
|
-
* Maximum allowed file size in bytes. Files exceeding this limit will be
|
|
45
|
-
* rejected.
|
|
46
|
-
*/
|
|
47
|
-
maxFileSize?: number;
|
|
48
|
-
/** Callback fired when a dropped/pasted/selected file exceeds `maxFileSize`. */
|
|
49
|
-
onFileSizeError?: (file: File) => void;
|
|
50
|
-
}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
ar: {
|
|
3
|
-
"bui.imageDropZone.delete": string;
|
|
4
|
-
"bui.imageDropZone.selectImage": string;
|
|
5
|
-
};
|
|
6
|
-
cs: {
|
|
7
|
-
"bui.imageDropZone.delete": string;
|
|
8
|
-
"bui.imageDropZone.selectImage": string;
|
|
9
|
-
};
|
|
10
|
-
cy: {
|
|
11
|
-
"bui.imageDropZone.delete": string;
|
|
12
|
-
"bui.imageDropZone.selectImage": string;
|
|
13
|
-
};
|
|
14
|
-
da: {
|
|
15
|
-
"bui.imageDropZone.delete": string;
|
|
16
|
-
"bui.imageDropZone.selectImage": string;
|
|
17
|
-
};
|
|
18
|
-
de: {
|
|
19
|
-
"bui.imageDropZone.delete": string;
|
|
20
|
-
"bui.imageDropZone.selectImage": string;
|
|
21
|
-
};
|
|
22
|
-
el: {
|
|
23
|
-
"bui.imageDropZone.delete": string;
|
|
24
|
-
"bui.imageDropZone.selectImage": string;
|
|
25
|
-
};
|
|
26
|
-
en_GB: {
|
|
27
|
-
"bui.imageDropZone.delete": string;
|
|
28
|
-
"bui.imageDropZone.selectImage": string;
|
|
29
|
-
};
|
|
30
|
-
en: {
|
|
31
|
-
"bui.imageDropZone.delete": string;
|
|
32
|
-
"bui.imageDropZone.selectImage": string;
|
|
33
|
-
};
|
|
34
|
-
es: {
|
|
35
|
-
"bui.imageDropZone.delete": string;
|
|
36
|
-
"bui.imageDropZone.selectImage": string;
|
|
37
|
-
};
|
|
38
|
-
fi: {
|
|
39
|
-
"bui.imageDropZone.delete": string;
|
|
40
|
-
"bui.imageDropZone.selectImage": string;
|
|
41
|
-
};
|
|
42
|
-
fr_CA: {
|
|
43
|
-
"bui.imageDropZone.delete": string;
|
|
44
|
-
"bui.imageDropZone.selectImage": string;
|
|
45
|
-
};
|
|
46
|
-
fr: {
|
|
47
|
-
"bui.imageDropZone.delete": string;
|
|
48
|
-
"bui.imageDropZone.selectImage": string;
|
|
49
|
-
};
|
|
50
|
-
he: {
|
|
51
|
-
"bui.imageDropZone.delete": string;
|
|
52
|
-
"bui.imageDropZone.selectImage": string;
|
|
53
|
-
};
|
|
54
|
-
hr: {
|
|
55
|
-
"bui.imageDropZone.delete": string;
|
|
56
|
-
"bui.imageDropZone.selectImage": string;
|
|
57
|
-
};
|
|
58
|
-
id: {
|
|
59
|
-
"bui.imageDropZone.delete": string;
|
|
60
|
-
"bui.imageDropZone.selectImage": string;
|
|
61
|
-
};
|
|
62
|
-
it: {
|
|
63
|
-
"bui.imageDropZone.delete": string;
|
|
64
|
-
"bui.imageDropZone.selectImage": string;
|
|
65
|
-
};
|
|
66
|
-
ja: {
|
|
67
|
-
"bui.imageDropZone.delete": string;
|
|
68
|
-
"bui.imageDropZone.selectImage": string;
|
|
69
|
-
};
|
|
70
|
-
ko: {
|
|
71
|
-
"bui.imageDropZone.delete": string;
|
|
72
|
-
"bui.imageDropZone.selectImage": string;
|
|
73
|
-
};
|
|
74
|
-
ms: {
|
|
75
|
-
"bui.imageDropZone.delete": string;
|
|
76
|
-
"bui.imageDropZone.selectImage": string;
|
|
77
|
-
};
|
|
78
|
-
nb_NO: {
|
|
79
|
-
"bui.imageDropZone.delete": string;
|
|
80
|
-
"bui.imageDropZone.selectImage": string;
|
|
81
|
-
};
|
|
82
|
-
nl: {
|
|
83
|
-
"bui.imageDropZone.delete": string;
|
|
84
|
-
"bui.imageDropZone.selectImage": string;
|
|
85
|
-
};
|
|
86
|
-
pl: {
|
|
87
|
-
"bui.imageDropZone.delete": string;
|
|
88
|
-
"bui.imageDropZone.selectImage": string;
|
|
89
|
-
};
|
|
90
|
-
pt_PT: {
|
|
91
|
-
"bui.imageDropZone.delete": string;
|
|
92
|
-
"bui.imageDropZone.selectImage": string;
|
|
93
|
-
};
|
|
94
|
-
pt: {
|
|
95
|
-
"bui.imageDropZone.delete": string;
|
|
96
|
-
"bui.imageDropZone.selectImage": string;
|
|
97
|
-
};
|
|
98
|
-
ru: {
|
|
99
|
-
"bui.imageDropZone.delete": string;
|
|
100
|
-
"bui.imageDropZone.selectImage": string;
|
|
101
|
-
};
|
|
102
|
-
sk: {
|
|
103
|
-
"bui.imageDropZone.delete": string;
|
|
104
|
-
"bui.imageDropZone.selectImage": string;
|
|
105
|
-
};
|
|
106
|
-
sl: {
|
|
107
|
-
"bui.imageDropZone.delete": string;
|
|
108
|
-
"bui.imageDropZone.selectImage": string;
|
|
109
|
-
};
|
|
110
|
-
sv: {
|
|
111
|
-
"bui.imageDropZone.delete": string;
|
|
112
|
-
"bui.imageDropZone.selectImage": string;
|
|
113
|
-
};
|
|
114
|
-
th: {
|
|
115
|
-
"bui.imageDropZone.delete": string;
|
|
116
|
-
"bui.imageDropZone.selectImage": string;
|
|
117
|
-
};
|
|
118
|
-
tr: {
|
|
119
|
-
"bui.imageDropZone.delete": string;
|
|
120
|
-
"bui.imageDropZone.selectImage": string;
|
|
121
|
-
};
|
|
122
|
-
uk: {
|
|
123
|
-
"bui.imageDropZone.delete": string;
|
|
124
|
-
"bui.imageDropZone.selectImage": string;
|
|
125
|
-
};
|
|
126
|
-
zh_Hans: {
|
|
127
|
-
"bui.imageDropZone.delete": string;
|
|
128
|
-
"bui.imageDropZone.selectImage": string;
|
|
129
|
-
};
|
|
130
|
-
zh_Hant: {
|
|
131
|
-
"bui.imageDropZone.delete": string;
|
|
132
|
-
"bui.imageDropZone.selectImage": string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabelProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
onTruncatedChange?: (isTruncated: boolean) => void;
|
|
8
|
-
onHoverChange?: (isHovered: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const AdaptiveText: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<LabelProps, "onHoverChange" | "onTruncatedChange"> & {
|
|
11
|
-
isOpen?: boolean;
|
|
12
|
-
} & React.RefAttributes<HTMLSpanElement>>>;
|
|
13
|
-
export {};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export declare const imageGalleryCn: string;
|
|
2
|
-
export declare const galleryOptionCn: string;
|
|
3
|
-
export declare const imageGalleryOptionCn: ((options?: {
|
|
4
|
-
isFocusVisible?: boolean | undefined;
|
|
5
|
-
isSelected?: boolean | undefined;
|
|
6
|
-
isLoading?: boolean | undefined;
|
|
7
|
-
} | undefined) => string) & {
|
|
8
|
-
variants: () => ("isSelected" | "isFocusVisible" | "isLoading")[];
|
|
9
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
10
|
-
isFocusVisible: {
|
|
11
|
-
true: string;
|
|
12
|
-
};
|
|
13
|
-
isSelected: {
|
|
14
|
-
true: string;
|
|
15
|
-
};
|
|
16
|
-
isLoading: {
|
|
17
|
-
true: {
|
|
18
|
-
"__@@Component_Sprinkles__": boolean;
|
|
19
|
-
baseSprinkles: string;
|
|
20
|
-
variantSprinkles: string;
|
|
21
|
-
compoundVariantSprinkles: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
26
|
-
export declare const labelCn: ((options?: {
|
|
27
|
-
isFocusVisible?: boolean | undefined;
|
|
28
|
-
isSelected?: boolean | undefined;
|
|
29
|
-
} | undefined) => string) & {
|
|
30
|
-
variants: () => ("isSelected" | "isFocusVisible")[];
|
|
31
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
32
|
-
isFocusVisible: {
|
|
33
|
-
true: (string | {
|
|
34
|
-
outlineOffset: number;
|
|
35
|
-
})[];
|
|
36
|
-
};
|
|
37
|
-
isSelected: {
|
|
38
|
-
true: {
|
|
39
|
-
backgroundColor: `var(--${string})`;
|
|
40
|
-
color: `var(--${string})`;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}>;
|
|
44
|
-
};
|
|
45
|
-
export declare const imageContainerCn: string;
|
|
46
|
-
export declare const imageCn: ((options?: {
|
|
47
|
-
isLoading?: boolean | undefined;
|
|
48
|
-
} | undefined) => string) & {
|
|
49
|
-
variants: () => "isLoading"[];
|
|
50
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
51
|
-
isLoading: {
|
|
52
|
-
false: {
|
|
53
|
-
opacity: number;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
export declare const labelCountCn: string;
|
|
59
|
-
export declare const deleteBtnContainerCn: string;
|
|
60
|
-
export declare const dropIndicatorCn: ((options?: {
|
|
61
|
-
isVirtualized?: boolean | undefined;
|
|
62
|
-
} | undefined) => string) & {
|
|
63
|
-
variants: () => "isVirtualized"[];
|
|
64
|
-
classNames: import("@baseline-ui/css").RecipeClassNames<{
|
|
65
|
-
isVirtualized: {
|
|
66
|
-
true: {
|
|
67
|
-
width: number;
|
|
68
|
-
backgroundColor: "transparent";
|
|
69
|
-
selectors: {
|
|
70
|
-
"&[data-drop-target=true]": {
|
|
71
|
-
backgroundColor: `var(--${string})`;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
false: {
|
|
76
|
-
width: number;
|
|
77
|
-
transform: "translateX(2px)";
|
|
78
|
-
selectors: {
|
|
79
|
-
"&[data-drop-target=true]": {
|
|
80
|
-
outline: `1px solid var(--${string})`;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
86
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { ImageGalleryProps } from "./ImageGallery.types";
|
|
3
|
-
export { ImageSize } from "./ImageGalleryDragPreview";
|
|
4
|
-
export declare const ImageGallery: React.ForwardRefExoticComponent<ImageGalleryProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export declare const messages: {
|
|
6
|
-
delete: {
|
|
7
|
-
id: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
};
|
|
10
|
-
cancel: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultMessage: string;
|
|
13
|
-
};
|
|
14
|
-
loading: {
|
|
15
|
-
id: string;
|
|
16
|
-
defaultMessage: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import type { StylingProps } from "../../utils";
|
|
2
|
-
import type { UIState } from "../ListBox/ListBox.types";
|
|
3
|
-
import type { ListOption } from "../shared/types/List";
|
|
4
|
-
import type { UNSAFE_ListBoxProps as ListBoxProps } from "../UNSAFE_ListBox";
|
|
5
|
-
import type { DroppableCollectionUtilityOptions, Key } from "@react-types/shared";
|
|
6
|
-
import type React from "react";
|
|
7
|
-
import type { Selection } from "react-stately";
|
|
8
|
-
export interface Item {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
src?: string;
|
|
12
|
-
alt?: string;
|
|
13
|
-
}
|
|
14
|
-
export type ClassNameFunc = (item: Item, state: UIState) => string | undefined;
|
|
15
|
-
export type ClassName = string | ClassNameFunc;
|
|
16
|
-
export type Style = React.CSSProperties | ((item: Item, state: UIState) => React.CSSProperties | undefined);
|
|
17
|
-
type Dimension = {
|
|
18
|
-
width: number | "sm" | "md";
|
|
19
|
-
height: number;
|
|
20
|
-
} | {
|
|
21
|
-
width: number | "sm" | "md";
|
|
22
|
-
aspectRatio: number;
|
|
23
|
-
};
|
|
24
|
-
export interface ImageGalleryProps extends StylingProps, Omit<ListBoxProps, "items" | "layout" | "grid" | "renderOption" | "showSelectedIcon" | "orientation" | "shouldSelectOnPressUp" | "shouldFocusOnHover" | "shouldUseVirtualFocus" | "acceptedDragTypes" | "sectionClassName" | "sectionStyle" | "onKeyDown" | "renderSectionHeader" | "showSectionHeader" | "withSectionHeaderPadding">, Pick<DroppableCollectionUtilityOptions, "onReorder"> {
|
|
25
|
-
/**
|
|
26
|
-
* An array of objects containing the image source, alt text, and label for
|
|
27
|
-
* each image. This property makes the component a controlled component.
|
|
28
|
-
*
|
|
29
|
-
* ```tsx
|
|
30
|
-
* const items = [
|
|
31
|
-
* {
|
|
32
|
-
* id: "1",
|
|
33
|
-
* src: "https://example.com/image1.jpg",
|
|
34
|
-
* alt: "Image 1",
|
|
35
|
-
* label: "Image 1",
|
|
36
|
-
* },
|
|
37
|
-
* {
|
|
38
|
-
* id: "2",
|
|
39
|
-
* src: "https://example.com/image2.jpg",
|
|
40
|
-
* alt: "Image 2",
|
|
41
|
-
* label: "Image 2",
|
|
42
|
-
* },
|
|
43
|
-
* ];
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
items?: Item[];
|
|
47
|
-
/**
|
|
48
|
-
* An array of objects containing the image source, alt text, and label for
|
|
49
|
-
* each image.
|
|
50
|
-
*
|
|
51
|
-
* ```tsx
|
|
52
|
-
* const items = [
|
|
53
|
-
* {
|
|
54
|
-
* id: "1",
|
|
55
|
-
* src: "https://example.com/image1.jpg",
|
|
56
|
-
* alt: "Image 1",
|
|
57
|
-
* label: "Image 1",
|
|
58
|
-
* },
|
|
59
|
-
* {
|
|
60
|
-
* id: "2",
|
|
61
|
-
* src: "https://example.com/image2.jpg",
|
|
62
|
-
* alt: "Image 2",
|
|
63
|
-
* label: "Image 2",
|
|
64
|
-
* },
|
|
65
|
-
* ];
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
defaultItems?: Item[];
|
|
69
|
-
/**
|
|
70
|
-
* The width of the images.
|
|
71
|
-
*
|
|
72
|
-
* @default "sm"
|
|
73
|
-
*/
|
|
74
|
-
imageWidth?: number | "sm" | "md";
|
|
75
|
-
/**
|
|
76
|
-
* The aspect ratio of the images.
|
|
77
|
-
*
|
|
78
|
-
* @default 16 / 9
|
|
79
|
-
*/
|
|
80
|
-
aspectRatio?: number;
|
|
81
|
-
/**
|
|
82
|
-
* The fit of the images.
|
|
83
|
-
*
|
|
84
|
-
* @default "cover"
|
|
85
|
-
*/
|
|
86
|
-
fit?: "contain" | "cover";
|
|
87
|
-
/** A callback that is called when the list of images or selection is updated. */
|
|
88
|
-
onListChange?: (items: Item[]) => void;
|
|
89
|
-
/** A callback that is called when an image is deleted. */
|
|
90
|
-
onDelete?: (keys: Key[]) => void;
|
|
91
|
-
/** A callback that is called when a key is pressed. */
|
|
92
|
-
onKeyDown?: (event: KeyboardEvent) => void;
|
|
93
|
-
/** ClassName for each item container */
|
|
94
|
-
imageContainerClassName?: ClassName;
|
|
95
|
-
/** ClassName for each item image */
|
|
96
|
-
imageClassName?: ClassName;
|
|
97
|
-
/** ClassName for each item image label */
|
|
98
|
-
labelClassName?: ClassName;
|
|
99
|
-
/** A callback that is called to render the image. */
|
|
100
|
-
renderImage?: (item: ListOption<Pick<Item, "alt" | "src">>, options: {
|
|
101
|
-
deleteElement?: React.JSX.Element;
|
|
102
|
-
onDelete?: (id: string) => void;
|
|
103
|
-
}) => React.JSX.Element;
|
|
104
|
-
/** The dimensions of the grid. */
|
|
105
|
-
imageContainerStyle?: React.CSSProperties;
|
|
106
|
-
/** The dimensions of the image. */
|
|
107
|
-
imageDimensions?: Dimension | ((item: Item, options: {
|
|
108
|
-
isSelected: boolean;
|
|
109
|
-
}) => Dimension);
|
|
110
|
-
/**
|
|
111
|
-
* The title of the delete confirmation modal.
|
|
112
|
-
*
|
|
113
|
-
* @default "Are you sure you want to delete this item?"
|
|
114
|
-
*/
|
|
115
|
-
deleteConfirmationTitle?: string | ((selectedKeys: Selection) => string);
|
|
116
|
-
}
|
|
117
|
-
export interface ImageGalleryItemProps extends Pick<ImageGalleryProps, "fit" | "renderImage" | "imageDimensions" | "imageContainerStyle" | "layoutTransition"> {
|
|
118
|
-
item: Item;
|
|
119
|
-
options: Parameters<Exclude<ListBoxProps["renderOption"], undefined>>[1];
|
|
120
|
-
onDelete?: (id: string) => void;
|
|
121
|
-
className?: ClassName;
|
|
122
|
-
style?: Style;
|
|
123
|
-
imageClassName?: ClassName;
|
|
124
|
-
imageLabelClassName?: ClassName;
|
|
125
|
-
}
|
|
126
|
-
export interface ImageProps extends Pick<ImageGalleryProps, "fit"> {
|
|
127
|
-
item: ListOption<Pick<Item, "alt" | "src">>;
|
|
128
|
-
deleteElement: React.ReactNode;
|
|
129
|
-
}
|
|
130
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ImageGalleryProps, Item } from "./ImageGallery.types";
|
|
2
|
-
import type { imageItemsToListOption } from "./utils";
|
|
3
|
-
import type { DragItem } from "@react-types/shared";
|
|
4
|
-
import type { CSSProperties } from "react";
|
|
5
|
-
import type { Key } from "react-aria";
|
|
6
|
-
export declare const ImageSize: {
|
|
7
|
-
readonly sm: 102;
|
|
8
|
-
readonly md: 170;
|
|
9
|
-
};
|
|
10
|
-
type ImageGalleryListItem = ReturnType<typeof imageItemsToListOption>[number];
|
|
11
|
-
export declare function getImageGalleryDragPreviewItem(list: ImageGalleryListItem[], key: Key): DragItem;
|
|
12
|
-
export declare function getImageGalleryDragPreviewImageProps(item: DragItem): {
|
|
13
|
-
src: string;
|
|
14
|
-
alt: string;
|
|
15
|
-
} | null;
|
|
16
|
-
export declare function getImageGalleryDragPreviewImageStyle({ fit, imageDimensions, item, isSelected, }: {
|
|
17
|
-
fit: NonNullable<ImageGalleryProps["fit"]>;
|
|
18
|
-
imageDimensions: ImageGalleryProps["imageDimensions"];
|
|
19
|
-
item?: Item;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
}): CSSProperties;
|
|
22
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ListOption } from "../ListBox";
|
|
2
|
-
import type { Item } from "./ImageGallery.types";
|
|
3
|
-
import type { Key } from "react-aria";
|
|
4
|
-
export declare function getByKey<T extends {
|
|
5
|
-
id: string;
|
|
6
|
-
}>(list: T[], key: Key): T | undefined;
|
|
7
|
-
export declare function moveBefore(list: ListOption<Pick<Item, "alt" | "src">>[], referenceKey: Key, keysToMove: Set<Key>): ListOption<Pick<Item, "alt" | "src">>[];
|
|
8
|
-
export declare function moveAfter(list: ListOption<Pick<Item, "alt" | "src">>[], referenceKey: Key, keysToMove: Set<Key>): ListOption<Pick<Item, "alt" | "src">>[];
|
|
9
|
-
export declare function imageItemsToListOption(items: Item[]): ListOption<Pick<Item, "alt" | "src">>[];
|
|
10
|
-
export declare function listOptionToImageItems(list: ListOption<Pick<Item, "alt" | "src">>[]): Item[];
|