@baseline-ui/core 0.9.0 → 0.11.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.mts +92 -1
- package/dist/index.d.ts +92 -1
- package/dist/index.js +77 -72
- package/dist/index.mjs +9 -8
- package/package.json +9 -7
package/dist/index.d.mts
CHANGED
|
@@ -353,6 +353,12 @@ interface LinkProps extends AriaLinkOptions, StylingProps {
|
|
|
353
353
|
children: React.ReactNode;
|
|
354
354
|
/** The size of the link. */
|
|
355
355
|
size?: "sm" | "md" | "lg";
|
|
356
|
+
/**
|
|
357
|
+
* The type of the link.
|
|
358
|
+
*
|
|
359
|
+
* @default "body"
|
|
360
|
+
*/
|
|
361
|
+
type?: "body" | "label";
|
|
356
362
|
}
|
|
357
363
|
|
|
358
364
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1726,6 +1732,91 @@ interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps,
|
|
|
1726
1732
|
|
|
1727
1733
|
declare const ScrollControlButton: React.ForwardRefExoticComponent<ScrollControlButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1728
1734
|
|
|
1735
|
+
interface AlertDialogProps extends StylingProps {
|
|
1736
|
+
/**
|
|
1737
|
+
* The title of the dialog. This is the main heading of the dialog and is
|
|
1738
|
+
* displayed at the top of the dialog.
|
|
1739
|
+
*/
|
|
1740
|
+
title: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* The message of the dialog. This is the main content of the dialog and is
|
|
1743
|
+
* displayed below the title.
|
|
1744
|
+
*/
|
|
1745
|
+
message?: React.ReactNode;
|
|
1746
|
+
/**
|
|
1747
|
+
* The label for the cancel button. This is the text that is displayed on the
|
|
1748
|
+
* button that allows the user to cancel the dialog.
|
|
1749
|
+
*/
|
|
1750
|
+
cancelLabel?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* The label for the confirm button. This is the text that is displayed on the
|
|
1753
|
+
* button that allows the user to confirm the dialog.
|
|
1754
|
+
*/
|
|
1755
|
+
primaryActionLabel?: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* The function that is called when the user confirms the dialog. This is
|
|
1758
|
+
* called when the user clicks the primary action button.
|
|
1759
|
+
*/
|
|
1760
|
+
onPrimaryAction?: () => void;
|
|
1761
|
+
/**
|
|
1762
|
+
* The function that is called when the user cancels the dialog. This is
|
|
1763
|
+
* called when the user clicks the cancel button or the close button.
|
|
1764
|
+
*/
|
|
1765
|
+
onCancel?: () => void;
|
|
1766
|
+
/** The button that should be focused when the dialog is opened. */
|
|
1767
|
+
autoFocusButton?: "primary" | "cancel";
|
|
1768
|
+
/** Whether the primary action button should be disabled. */
|
|
1769
|
+
isPrimaryActionDisabled?: boolean;
|
|
1770
|
+
/**
|
|
1771
|
+
* The props that are passed to the text input. If this is provided, a text
|
|
1772
|
+
* input will be displayed at the bottom of the dialog.
|
|
1773
|
+
*/
|
|
1774
|
+
textInputProps?: TextInputProps;
|
|
1775
|
+
/**
|
|
1776
|
+
* The icon that is displayed at the top of the dialog. This is typically used
|
|
1777
|
+
* to display an icon that represents the type of alert that is being shown.
|
|
1778
|
+
*/
|
|
1779
|
+
icon?: React.FC<IconProps>;
|
|
1780
|
+
/** The color of the icon. This is the color that is used to fill the icon. */
|
|
1781
|
+
iconColor?: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* Whether the close button should be displayed in the top end corner of the
|
|
1784
|
+
* dialog. If this is `true`, a close button will be displayed. If this is
|
|
1785
|
+
* `false`, no close button will be displayed.
|
|
1786
|
+
*
|
|
1787
|
+
* @default true
|
|
1788
|
+
*/
|
|
1789
|
+
showCloseButton?: boolean;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
1793
|
+
|
|
1794
|
+
interface MarkdownProps extends StylingProps {
|
|
1795
|
+
/** The markdown to render. */
|
|
1796
|
+
children: string;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
declare const Markdown: React.ForwardRefExoticComponent<MarkdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
1800
|
+
|
|
1801
|
+
interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
1802
|
+
/** The children to render. */
|
|
1803
|
+
children: React.ReactNode;
|
|
1804
|
+
/**
|
|
1805
|
+
* The valid values for the background type are "medium" and "subtle".
|
|
1806
|
+
*
|
|
1807
|
+
* @default "medium"
|
|
1808
|
+
*/
|
|
1809
|
+
background?: "medium" | "subtle";
|
|
1810
|
+
/** The title to display in the drawer. */
|
|
1811
|
+
title: string;
|
|
1812
|
+
/** The props of additional `ActionIconButton` to display in the drawer header. */
|
|
1813
|
+
action?: ActionIconButtonProps;
|
|
1814
|
+
/** The callback to call when the drawer is requested to be closed. */
|
|
1815
|
+
onCloseRequest?: () => void;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1819
|
+
|
|
1729
1820
|
/**
|
|
1730
1821
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
1731
1822
|
*
|
|
@@ -2065,4 +2156,4 @@ interface TextSelectionProps {
|
|
|
2065
2156
|
*/
|
|
2066
2157
|
declare function useDevice(element?: HTMLElement | null): "mobile" | "tablet" | "desktop";
|
|
2067
2158
|
|
|
2068
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Editor, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Menu, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, defineMessages, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
2159
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, defineMessages, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
package/dist/index.d.ts
CHANGED
|
@@ -353,6 +353,12 @@ interface LinkProps extends AriaLinkOptions, StylingProps {
|
|
|
353
353
|
children: React.ReactNode;
|
|
354
354
|
/** The size of the link. */
|
|
355
355
|
size?: "sm" | "md" | "lg";
|
|
356
|
+
/**
|
|
357
|
+
* The type of the link.
|
|
358
|
+
*
|
|
359
|
+
* @default "body"
|
|
360
|
+
*/
|
|
361
|
+
type?: "body" | "label";
|
|
356
362
|
}
|
|
357
363
|
|
|
358
364
|
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1726,6 +1732,91 @@ interface ScrollControlButtonProps extends StylingProps, Pick<ActionButtonProps,
|
|
|
1726
1732
|
|
|
1727
1733
|
declare const ScrollControlButton: React.ForwardRefExoticComponent<ScrollControlButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1728
1734
|
|
|
1735
|
+
interface AlertDialogProps extends StylingProps {
|
|
1736
|
+
/**
|
|
1737
|
+
* The title of the dialog. This is the main heading of the dialog and is
|
|
1738
|
+
* displayed at the top of the dialog.
|
|
1739
|
+
*/
|
|
1740
|
+
title: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* The message of the dialog. This is the main content of the dialog and is
|
|
1743
|
+
* displayed below the title.
|
|
1744
|
+
*/
|
|
1745
|
+
message?: React.ReactNode;
|
|
1746
|
+
/**
|
|
1747
|
+
* The label for the cancel button. This is the text that is displayed on the
|
|
1748
|
+
* button that allows the user to cancel the dialog.
|
|
1749
|
+
*/
|
|
1750
|
+
cancelLabel?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* The label for the confirm button. This is the text that is displayed on the
|
|
1753
|
+
* button that allows the user to confirm the dialog.
|
|
1754
|
+
*/
|
|
1755
|
+
primaryActionLabel?: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* The function that is called when the user confirms the dialog. This is
|
|
1758
|
+
* called when the user clicks the primary action button.
|
|
1759
|
+
*/
|
|
1760
|
+
onPrimaryAction?: () => void;
|
|
1761
|
+
/**
|
|
1762
|
+
* The function that is called when the user cancels the dialog. This is
|
|
1763
|
+
* called when the user clicks the cancel button or the close button.
|
|
1764
|
+
*/
|
|
1765
|
+
onCancel?: () => void;
|
|
1766
|
+
/** The button that should be focused when the dialog is opened. */
|
|
1767
|
+
autoFocusButton?: "primary" | "cancel";
|
|
1768
|
+
/** Whether the primary action button should be disabled. */
|
|
1769
|
+
isPrimaryActionDisabled?: boolean;
|
|
1770
|
+
/**
|
|
1771
|
+
* The props that are passed to the text input. If this is provided, a text
|
|
1772
|
+
* input will be displayed at the bottom of the dialog.
|
|
1773
|
+
*/
|
|
1774
|
+
textInputProps?: TextInputProps;
|
|
1775
|
+
/**
|
|
1776
|
+
* The icon that is displayed at the top of the dialog. This is typically used
|
|
1777
|
+
* to display an icon that represents the type of alert that is being shown.
|
|
1778
|
+
*/
|
|
1779
|
+
icon?: React.FC<IconProps>;
|
|
1780
|
+
/** The color of the icon. This is the color that is used to fill the icon. */
|
|
1781
|
+
iconColor?: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* Whether the close button should be displayed in the top end corner of the
|
|
1784
|
+
* dialog. If this is `true`, a close button will be displayed. If this is
|
|
1785
|
+
* `false`, no close button will be displayed.
|
|
1786
|
+
*
|
|
1787
|
+
* @default true
|
|
1788
|
+
*/
|
|
1789
|
+
showCloseButton?: boolean;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
1793
|
+
|
|
1794
|
+
interface MarkdownProps extends StylingProps {
|
|
1795
|
+
/** The markdown to render. */
|
|
1796
|
+
children: string;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
declare const Markdown: React.ForwardRefExoticComponent<MarkdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
1800
|
+
|
|
1801
|
+
interface DrawerProps extends StylingProps, AriaDialogProps {
|
|
1802
|
+
/** The children to render. */
|
|
1803
|
+
children: React.ReactNode;
|
|
1804
|
+
/**
|
|
1805
|
+
* The valid values for the background type are "medium" and "subtle".
|
|
1806
|
+
*
|
|
1807
|
+
* @default "medium"
|
|
1808
|
+
*/
|
|
1809
|
+
background?: "medium" | "subtle";
|
|
1810
|
+
/** The title to display in the drawer. */
|
|
1811
|
+
title: string;
|
|
1812
|
+
/** The props of additional `ActionIconButton` to display in the drawer header. */
|
|
1813
|
+
action?: ActionIconButtonProps;
|
|
1814
|
+
/** The callback to call when the drawer is requested to be closed. */
|
|
1815
|
+
onCloseRequest?: () => void;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1819
|
+
|
|
1729
1820
|
/**
|
|
1730
1821
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
1731
1822
|
*
|
|
@@ -2065,4 +2156,4 @@ interface TextSelectionProps {
|
|
|
2065
2156
|
*/
|
|
2066
2157
|
declare function useDevice(element?: HTMLElement | null): "mobile" | "tablet" | "desktop";
|
|
2067
2158
|
|
|
2068
|
-
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Editor, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Menu, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, defineMessages, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
2159
|
+
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionButton, type ActionButtonProps, ActionIconButton, type ActionIconButtonProps, AlertDialog, type AlertDialogProps, Avatar, type AvatarProps, type BlockProps, Box, type BoxProps, Checkbox, type CheckboxProps, ColorInput, type ColorInputProps, type ColorPreset, ColorPresetInlineInput, type ColorPresetInlineInputProps, ColorSwatch, type ColorSwatchProps, DateFormat, type DateFormatProps, Dialog, type DialogProps, DialogTitle, type DialogTitleProps, DomNodeRenderer, type DomNodeRendererProps, Drawer, type DrawerProps, Editor, type EditorProps, FileUpload, type FileUploadProps, FreehandCanvas, type FreehandCanvasProps, Group, type GroupProps, I18nProvider, type I18nResult, IconColorInputButton, ImageDropZone, type ImageDropZoneProps, InlineAlert, type InlineAlertProps, Link, type LinkProps, ListBox, type ListBoxProps, type ListOption, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, type MessageDescriptor, MessageFormat, type MessageFormatProps, Modal, ModalClose, ModalContent, type ModalContentProps, type ModalProps, ModalTrigger, NumberFormat, type NumberFormatProps, NumberInput, type NumberInputProps, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Preview, type PreviewProps, ProgressBar, type ProgressBarProps, ProgressSpinner, type ProgressSpinnerProps, RadioGroup, type RadioGroupProps, Reaction, type ReactionProps, ScrollControlButton, type ScrollControlButtonProps, SearchInput, type SearchInputProps, Select, type SelectProps, Separator, type SeparatorProps, Slider, type SliderProps, type StylingProps, Switch, type SwitchProps, TabItem, type TabItemProps, Tabs, type TabsProps, TagGroup, type TagGroupProps, Text, TextInput, type TextInputProps, type TextProps, ThemeProvider, type ThemeProviderProps, ToggleButton, type ToggleButtonProps, ToggleIconButton, type ToggleIconButtonProps, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, Transform, type TransformProps, defineMessages, useDevice, useI18n, useImage, useIntersectionObserver, useIsFirstRender, useLocalStorage, useMutationObserver, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|