dawn-ui-react 1.0.0-alpha.36 → 1.0.0-alpha.38
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/components/accordion/accordion-icon.d.ts +2 -0
- package/dist/components/accordion/accordion.types.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/alert/alert-action.d.ts +2 -0
- package/dist/components/alert/alert-icon.d.ts +2 -0
- package/dist/components/alert/alert.types.d.ts +2 -2
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog-footer.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-icon.d.ts +2 -0
- package/dist/components/alert-dialog/alert-dialog.types.d.ts +2 -2
- package/dist/components/alert-dialog/index.d.ts +3 -3
- package/dist/components/bento-box/bento-box-action.d.ts +2 -0
- package/dist/components/bento-box/bento-box-content.d.ts +2 -0
- package/dist/components/bento-box/bento-box-description.d.ts +2 -0
- package/dist/components/bento-box/bento-box-footer.d.ts +2 -0
- package/dist/components/bento-box/bento-box-header.d.ts +2 -0
- package/dist/components/bento-box/bento-box-title.d.ts +2 -0
- package/dist/components/bento-box/bento-box.d.ts +2 -0
- package/dist/components/bento-box/bento-box.types.d.ts +11 -0
- package/dist/components/bento-box/index.d.ts +8 -0
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/color-picker.types.d.ts +7 -9
- package/dist/components/dialog/dialog-icon.d.ts +2 -0
- package/dist/components/dialog/dialog.types.d.ts +1 -0
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/preview-card/index.d.ts +4 -0
- package/dist/components/preview-card/preview-card-popup.d.ts +2 -0
- package/dist/components/preview-card/preview-card-trigger.d.ts +2 -0
- package/dist/components/preview-card/preview-card.d.ts +2 -0
- package/dist/components/preview-card/preview-card.types.d.ts +4 -0
- package/dist/components/table/table.types.d.ts +1 -0
- package/dist/dawn-ui-react.js +15718 -15237
- package/dist/dawn-ui-react.umd.cjs +36 -36
- package/package.json +1 -1
- package/dist/components/accordion/accordion-trigger.d.ts +0 -2
- package/dist/components/alert/alert-actions.d.ts +0 -2
- package/dist/components/alert/alert-content.d.ts +0 -2
- package/dist/components/alert-dialog/alert-dialog-content.d.ts +0 -2
|
@@ -15,4 +15,4 @@ export type AccordionItemProps = React.ComponentProps<typeof BaseAccordion.Item>
|
|
|
15
15
|
export type AccordionHeaderProps = React.ComponentProps<typeof BaseAccordion.Header>;
|
|
16
16
|
export type AccordionTitleProps = React.ComponentProps<'div'>;
|
|
17
17
|
export type AccordionSubtitleProps = React.ComponentProps<'div'>;
|
|
18
|
-
export type
|
|
18
|
+
export type AccordionIconProps = React.ComponentProps<'div'>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Accordion } from './accordion';
|
|
2
|
-
export type { AccordionHeaderProps, AccordionItemProps, AccordionProps, AccordionPanelProps, AccordionSubtitleProps, AccordionTitleProps,
|
|
2
|
+
export type { AccordionHeaderProps, AccordionItemProps, AccordionProps, AccordionPanelProps, AccordionSubtitleProps, AccordionTitleProps, AccordionIconProps, } from './accordion.types';
|
|
3
3
|
export { AccordionHeader } from './accordion-header';
|
|
4
4
|
export { AccordionItem } from './accordion-item';
|
|
5
5
|
export { AccordionPanel } from './accordion-panel';
|
|
6
6
|
export { AccordionSubtitle } from './accordion-subtitle';
|
|
7
7
|
export { AccordionTitle } from './accordion-title';
|
|
8
|
-
export {
|
|
8
|
+
export { AccordionIcon } from './accordion-icon';
|
|
@@ -5,5 +5,5 @@ export declare const alertVariants: (props?: ({
|
|
|
5
5
|
export type AlertProps = React.ComponentProps<'div'> & VariantProps<typeof alertVariants>;
|
|
6
6
|
export type AlertTitleProps = React.ComponentProps<'div'>;
|
|
7
7
|
export type AlertDescriptionProps = React.ComponentProps<'div'>;
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
8
|
+
export type AlertActionProps = React.ComponentProps<'div'>;
|
|
9
|
+
export type AlertIconProps = React.ComponentProps<'div'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Alert } from './alert';
|
|
2
|
-
export type { AlertDescriptionProps,
|
|
2
|
+
export type { AlertActionProps, AlertDescriptionProps, AlertIconProps, AlertProps, AlertTitleProps, } from './alert.types';
|
|
3
3
|
export { AlertDescription } from './alert-description';
|
|
4
4
|
export { AlertTitle } from './alert-title';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
5
|
+
export { AlertAction } from './alert-action';
|
|
6
|
+
export { AlertIcon } from './alert-icon';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { AlertDialogFooterProps } from './alert-dialog.types';
|
|
2
|
+
export declare const AlertDialogFooter: ({ className, children, ref, ...props }: AlertDialogFooterProps) => import("react").JSX.Element;
|
|
@@ -10,7 +10,7 @@ export type AlertDialogHeaderProps = React.ComponentProps<'div'>;
|
|
|
10
10
|
export type AlertDialogTitleProps = React.ComponentProps<typeof BaseAlertDialog.Title>;
|
|
11
11
|
export type AlertDialogDescriptionProps = React.ComponentProps<typeof BaseAlertDialog.Description>;
|
|
12
12
|
export type AlertDialogCloseProps = React.ComponentProps<typeof BaseAlertDialog.Close>;
|
|
13
|
-
export type
|
|
14
|
-
export type AlertDialogActionsProps = React.ComponentProps<'div'>;
|
|
13
|
+
export type AlertDialogFooterProps = React.ComponentProps<'div'>;
|
|
15
14
|
export type AlertDialogConfirmProps = React.ComponentProps<typeof BaseAlertDialog.Close>;
|
|
15
|
+
export type AlertDialogIconProps = React.ComponentProps<'div'>;
|
|
16
16
|
export declare const alertDialogHandle: BaseAlertDialog.Handle<import('react').ComponentType<{}>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { AlertDialog } from './alert-dialog';
|
|
2
|
-
export type { AlertDialogCloseProps, AlertDialogConfirmProps,
|
|
2
|
+
export type { AlertDialogCloseProps, AlertDialogConfirmProps, AlertDialogDescriptionProps, AlertDialogFooterProps, AlertDialogHeaderProps, AlertDialogPopupProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, AlertDialogIconProps, } from './alert-dialog.types';
|
|
3
3
|
export { AlertDialogClose } from './alert-dialog-close';
|
|
4
4
|
export { AlertDialogConfirm } from './alert-dialog-confirm';
|
|
5
|
-
export { AlertDialogContent } from './alert-dialog-content';
|
|
6
5
|
export { AlertDialogDescription } from './alert-dialog-description';
|
|
7
|
-
export {
|
|
6
|
+
export { AlertDialogFooter } from './alert-dialog-footer';
|
|
8
7
|
export { AlertDialogHeader } from './alert-dialog-header';
|
|
9
8
|
export { AlertDialogPopup } from './alert-dialog-popup';
|
|
10
9
|
export { AlertDialogTitle } from './alert-dialog-title';
|
|
11
10
|
export { AlertDialogTrigger } from './alert-dialog-trigger';
|
|
11
|
+
export { AlertDialogIcon } from './alert-dialog-icon';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export declare const bentoBoxVariants: (props?: ({
|
|
3
|
+
size?: "small" | "large" | "medium" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export type BentoBoxProps = React.ComponentProps<'div'> & VariantProps<typeof bentoBoxVariants>;
|
|
6
|
+
export type BentoBoxHeaderProps = React.ComponentProps<'div'>;
|
|
7
|
+
export type BentoBoxTitleProps = React.ComponentProps<'span'>;
|
|
8
|
+
export type BentoBoxContentProps = React.ComponentProps<'div'>;
|
|
9
|
+
export type BentoBoxDescriptionProps = React.ComponentProps<'span'>;
|
|
10
|
+
export type BentoBoxActionProps = React.ComponentProps<'div'>;
|
|
11
|
+
export type BentoBoxFooterProps = React.ComponentProps<'div'>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { BentoBoxActionProps, BentoBoxContentProps, BentoBoxDescriptionProps, BentoBoxFooterProps, BentoBoxHeaderProps, BentoBoxProps, BentoBoxTitleProps, } from './bento-box.types';
|
|
2
|
+
export { BentoBox } from './bento-box';
|
|
3
|
+
export { BentoBoxAction } from './bento-box-action';
|
|
4
|
+
export { BentoBoxContent } from './bento-box-content';
|
|
5
|
+
export { BentoBoxDescription } from './bento-box-description';
|
|
6
|
+
export { BentoBoxFooter } from './bento-box-footer';
|
|
7
|
+
export { BentoBoxHeader } from './bento-box-header';
|
|
8
|
+
export { BentoBoxTitle } from './bento-box-title';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ColorPickerProps, ColorPickerContextType } from './color-picker.types';
|
|
3
|
-
export declare const ColorPicker: ({ variant,
|
|
3
|
+
export declare const ColorPicker: ({ variant, value: controlledValue, defaultColor, palette: controlledPalette, defaultPalette, onPaletteChange, paletteLimit, defaultValueType, onValueChange, className, children, ref, ...props }: ColorPickerProps) => React.JSX.Element;
|
|
4
4
|
export declare const useColorPicker: () => ColorPickerContextType;
|
|
@@ -64,14 +64,14 @@ export type ColorPickerAction = {
|
|
|
64
64
|
color: chroma.Color;
|
|
65
65
|
};
|
|
66
66
|
export type ColorPickerProps = React.ComponentProps<'div'> & VariantProps<typeof colorPickerVariants> & {
|
|
67
|
-
|
|
67
|
+
value?: string;
|
|
68
|
+
onValueChange?: (color: string) => void;
|
|
68
69
|
defaultColor?: string;
|
|
69
70
|
palette?: string[];
|
|
70
71
|
defaultPalette?: string[];
|
|
71
72
|
onPaletteChange?: (palette: string[]) => void;
|
|
72
73
|
paletteLimit?: number;
|
|
73
74
|
defaultValueType?: ValueTypeValue;
|
|
74
|
-
onValueChange?: (color: chroma.Color) => void;
|
|
75
75
|
};
|
|
76
76
|
export declare const colorPickerVariants: (props?: ({
|
|
77
77
|
variant?: "ghost" | "outline" | "elevated" | null | undefined;
|
|
@@ -99,15 +99,13 @@ export type ColorPickerValueTypeProps = React.ComponentProps<typeof SelectTrigge
|
|
|
99
99
|
export type ColorPickerRowProps = React.ComponentProps<'div'>;
|
|
100
100
|
export type ColorPickerGroupProps = React.ComponentProps<'div'>;
|
|
101
101
|
export type ColorPickerLabelProps = React.ComponentProps<'span'>;
|
|
102
|
-
export type ColorPickerPaletteListChild =
|
|
103
|
-
color:
|
|
102
|
+
export type ColorPickerPaletteListChild = (props: {
|
|
103
|
+
color: string;
|
|
104
104
|
index: number;
|
|
105
|
-
}) => React.ReactNode
|
|
106
|
-
export type ColorPickerPaletteListProps =
|
|
107
|
-
children?: ColorPickerPaletteListChild | ColorPickerPaletteListChild[];
|
|
108
|
-
};
|
|
105
|
+
}) => React.ReactNode;
|
|
106
|
+
export type ColorPickerPaletteListProps = React.ComponentProps<'ul'>;
|
|
109
107
|
export type ColorPickerPaletteSwatchProps = Omit<React.ComponentProps<'button'>, 'color'> & VariantProps<typeof colorPickerSwatchVariants> & {
|
|
110
|
-
color:
|
|
108
|
+
color: string;
|
|
111
109
|
};
|
|
112
110
|
export type ColorPickerPaletteAddProps = React.ComponentProps<'button'>;
|
|
113
111
|
export type ColorPickerPaletteLimitProps = React.ComponentProps<'span'>;
|
|
@@ -9,4 +9,5 @@ export type DialogCloseProps = ComponentProps<typeof BaseDialog.Close>;
|
|
|
9
9
|
export type DialogContentProps = React.ComponentProps<'div'>;
|
|
10
10
|
export type DialogHeaderProps = React.ComponentProps<'div'>;
|
|
11
11
|
export type DialogFooterProps = React.ComponentProps<'div'>;
|
|
12
|
+
export type DialogIconProps = React.ComponentProps<'div'>;
|
|
12
13
|
export declare const DialogHelper: typeof BaseDialog;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { Dialog } from './dialog';
|
|
2
|
-
export type { DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from './dialog.types';
|
|
2
|
+
export type { DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogIconProps, DialogPopupProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from './dialog.types';
|
|
3
3
|
export { DialogClose } from './dialog-close';
|
|
4
4
|
export { DialogContent } from './dialog-content';
|
|
5
5
|
export { DialogDescription } from './dialog-description';
|
|
6
6
|
export { DialogFooter } from './dialog-footer';
|
|
7
7
|
export { DialogHeader } from './dialog-header';
|
|
8
|
+
export { DialogIcon } from './dialog-icon';
|
|
8
9
|
export { DialogPopup } from './dialog-popup';
|
|
9
10
|
export { DialogTitle } from './dialog-title';
|
|
10
11
|
export { DialogTrigger } from './dialog-trigger';
|
|
@@ -4,6 +4,7 @@ export * from './alert-dialog';
|
|
|
4
4
|
export * from './autocomplete';
|
|
5
5
|
export * from './avatar';
|
|
6
6
|
export * from './badge';
|
|
7
|
+
export * from './bento-box';
|
|
7
8
|
export * from './breadcrumb';
|
|
8
9
|
export * from './button';
|
|
9
10
|
export * from './button-group';
|
|
@@ -32,6 +33,7 @@ export * from './meter';
|
|
|
32
33
|
export * from './nav-bar';
|
|
33
34
|
export * from './navigation-menu';
|
|
34
35
|
export * from './number-field';
|
|
36
|
+
export * from './preview-card';
|
|
35
37
|
export * from './popover';
|
|
36
38
|
export * from './profile';
|
|
37
39
|
export * from './progress';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { PreviewCardPopupProps, PreviewCardProps, PreviewCardTriggerProps, } from './preview-card.types';
|
|
2
|
+
export { PreviewCard } from './preview-card';
|
|
3
|
+
export { PreviewCardPopup } from './preview-card-popup';
|
|
4
|
+
export { PreviewCardTrigger } from './preview-card-trigger';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PreviewCard } from '@base-ui/react';
|
|
2
|
+
export type PreviewCardProps = React.ComponentProps<typeof PreviewCard.Root>;
|
|
3
|
+
export type PreviewCardTriggerProps = React.ComponentProps<typeof PreviewCard.Trigger>;
|
|
4
|
+
export type PreviewCardPopupProps = React.ComponentProps<typeof PreviewCard.Positioner>;
|
|
@@ -105,6 +105,7 @@ export interface TableColumnMeta {
|
|
|
105
105
|
filterVariant?: 'range' | 'select' | 'date' | 'string' | 'number';
|
|
106
106
|
}
|
|
107
107
|
export interface TableMeta {
|
|
108
|
+
viewMode?: 'table' | 'grid';
|
|
108
109
|
translations?: {
|
|
109
110
|
filterOperatorLabels?: Partial<Record<FilterOperator, string>>;
|
|
110
111
|
buttonLabels?: {
|