dawn-ui-react 1.0.0-alpha.44 → 1.0.0-alpha.45
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-item.d.ts +1 -1
- package/dist/components/accordion/accordion.types.d.ts +1 -0
- package/dist/components/avatar/avatar.types.d.ts +1 -1
- package/dist/components/badge/badge.types.d.ts +1 -1
- package/dist/components/bento-box/bento-box.types.d.ts +1 -1
- package/dist/components/button/button.types.d.ts +1 -1
- package/dist/components/button-group/button-group.types.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/color-channel-slider/color-channel-slider.types.d.ts +1 -1
- package/dist/components/color-picker/color-picker.types.d.ts +1 -1
- package/dist/components/field/field.types.d.ts +1 -1
- package/dist/components/form/form.types.d.ts +1 -1
- package/dist/components/input/input.types.d.ts +1 -1
- package/dist/components/input-group/input-group.types.d.ts +1 -1
- package/dist/components/input-otp/input-otp.d.ts +2 -1
- package/dist/components/label/label.types.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree.types.d.ts +1 -1
- package/dist/components/meter/meter.types.d.ts +1 -1
- package/dist/components/nav-bar/nav-bar.types.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.d.ts +1 -1
- package/dist/components/number-field/number-field.types.d.ts +1 -1
- package/dist/components/radar-ping/radar-ping.types.d.ts +1 -1
- package/dist/components/select/select.types.d.ts +1 -1
- package/dist/components/separator/separator.types.d.ts +1 -1
- package/dist/components/slider/slider.types.d.ts +1 -1
- package/dist/components/tabs/tabs.types.d.ts +1 -1
- package/dist/components/toggle/toggle.types.d.ts +1 -1
- package/dist/components/toggle-group/toggle-group.types.d.ts +1 -1
- package/dist/dawn-ui-react.js +1443 -1356
- package/dist/dawn-ui-react.umd.cjs +60 -60
- package/dist/styles.css +4 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AccordionItemProps } from './accordion.types';
|
|
2
|
-
export declare const AccordionItem: ({ tone, className, children, ref, ...props }: AccordionItemProps) => import('react').JSX.Element;
|
|
2
|
+
export declare const AccordionItem: ({ size, tone, className, children, ref, ...props }: AccordionItemProps) => import('react').JSX.Element;
|
|
@@ -9,6 +9,7 @@ export declare const accordionVariants: (props?: ({
|
|
|
9
9
|
variant?: "ghost" | "surface" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
11
|
export declare const accordionItemVariants: (props?: ({
|
|
12
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
12
13
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
13
14
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
15
|
export type AccordionItemProps = React.ComponentProps<typeof BaseAccordion.Item> & VariantProps<typeof accordionItemVariants>;
|
|
@@ -2,7 +2,7 @@ import { Avatar as BaseAvatar } from '@base-ui/react/avatar';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
4
|
export declare const avatarVariants: (props?: ({
|
|
5
|
-
size?: "small" | "
|
|
5
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const avatarBadgeVariants: (props?: ({
|
|
8
8
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
3
|
export declare const badgeVariants: (props?: ({
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | "iconLarge" | "iconMedium" | "iconSmall" | null | undefined;
|
|
5
5
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "soft" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const bentoBoxVariants: (props?: ({
|
|
3
|
-
size?: "small" | "
|
|
3
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
5
|
export type BentoBoxProps = React.ComponentProps<'div'> & VariantProps<typeof bentoBoxVariants>;
|
|
6
6
|
export type BentoBoxHeaderProps = React.ComponentProps<'div'>;
|
|
@@ -3,6 +3,6 @@ import { Button as BaseButton } from '@base-ui/react';
|
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
5
5
|
variant?: "link" | "ghost" | "fill" | "outline" | "soft" | "elevated" | null | undefined;
|
|
6
|
-
size?: "small" | "
|
|
6
|
+
size?: "small" | "medium" | "large" | "extraSmall" | "iconLarge" | "iconMedium" | "iconSmall" | "iconExtraSmall" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export type ButtonProps = React.ComponentProps<typeof BaseButton> & VariantProps<typeof buttonVariants>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const buttonGroupVariants: (props?: ({
|
|
3
|
-
size?: "small" | "
|
|
3
|
+
size?: "small" | "medium" | "large" | "extraSmall" | "iconLarge" | "iconMedium" | "iconSmall" | "iconExtraSmall" | null | undefined;
|
|
4
4
|
variant?: "ghost" | "fill" | "outline" | "soft" | "elevated" | null | undefined;
|
|
5
5
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
6
6
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CheckboxRootProps } from './checkbox.types';
|
|
2
|
-
export declare const Checkbox: ({ variant, className, ref, ...props }: CheckboxRootProps) => import('react').JSX.Element;
|
|
2
|
+
export declare const Checkbox: ({ variant, className, ref, label, ...props }: CheckboxRootProps) => import('react').JSX.Element;
|
|
@@ -4,5 +4,5 @@ export type ColorChannelSliderProps = React.ComponentProps<typeof BaseSlider.Roo
|
|
|
4
4
|
trackStyle: string[];
|
|
5
5
|
};
|
|
6
6
|
export declare const colorChannelSliderVariants: (props?: ({
|
|
7
|
-
size?: "small" | "
|
|
7
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -77,7 +77,7 @@ export declare const colorPickerVariants: (props?: ({
|
|
|
77
77
|
variant?: "ghost" | "outline" | "elevated" | null | undefined;
|
|
78
78
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
79
79
|
export declare const colorPickerSwatchVariants: (props?: ({
|
|
80
|
-
size?: "small" | "
|
|
80
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
81
81
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
82
82
|
export declare const VALUE_TYPES: ValueType[];
|
|
83
83
|
export type ValueType = {
|
|
@@ -28,6 +28,6 @@ export type FieldProps = React.ComponentProps<'div'>;
|
|
|
28
28
|
export type FieldSetProps = React.ComponentProps<'div'>;
|
|
29
29
|
export type FieldRowProps = React.ComponentProps<'div'>;
|
|
30
30
|
export declare const fieldLabelVariants: (props?: ({
|
|
31
|
-
size?: "small" | "
|
|
31
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
32
32
|
variant?: "primary" | "secondary" | null | undefined;
|
|
33
33
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -13,5 +13,5 @@ export type FormFooterProps = React.ComponentProps<'div'> & {
|
|
|
13
13
|
orientation?: 'horizontal' | 'vertical';
|
|
14
14
|
};
|
|
15
15
|
export declare const formSetHeadingVariants: (props?: ({
|
|
16
|
-
size?: "small" | "
|
|
16
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
17
17
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -4,7 +4,7 @@ import { ComponentProps } from 'react';
|
|
|
4
4
|
export declare const formatFileSize: (bytes: number) => string;
|
|
5
5
|
export declare const inputVariants: (props?: ({
|
|
6
6
|
variant?: "primary" | "secondary" | null | undefined;
|
|
7
|
-
size?: "small" | "
|
|
7
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export type InputProps = VariantProps<typeof inputVariants> & Omit<ComponentProps<typeof BaseInput>, 'size'> & {
|
|
10
10
|
fileUploadButtonLabel?: string;
|
|
@@ -3,7 +3,7 @@ import { inputVariants } from '../input/input.types';
|
|
|
3
3
|
import { Separator } from '../separator';
|
|
4
4
|
import { Input as BaseInput } from '@base-ui/react/input';
|
|
5
5
|
export declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
-
size?: "small" | "
|
|
6
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export type InputGroupAddonProps = React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>;
|
|
9
9
|
export type InputGroupInputProps = Omit<React.ComponentProps<typeof BaseInput>, 'size'> & VariantProps<typeof inputVariants>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { InputOTPProps } from './input-otp.types';
|
|
2
|
-
export declare const InputOTP: ({ children, className, ref, ...props }: InputOTPProps) =>
|
|
3
|
+
export declare const InputOTP: ({ children, className, ref, id, "aria-label": ariaLabel, ...props }: InputOTPProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export type LabelProps = React.ComponentProps<'label'> & VariantProps<typeof labelVariants>;
|
|
3
3
|
export declare const labelVariants: (props?: ({
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -57,7 +57,7 @@ export type LayerTreeNodeIconProps = React.ComponentProps<'div'> & {
|
|
|
57
57
|
};
|
|
58
58
|
export type LayerTreeTextCellProps = React.ComponentProps<'span'> & VariantProps<typeof layerTreeTextCellVariants>;
|
|
59
59
|
export declare const layerTreeTextCellVariants: (props?: ({
|
|
60
|
-
size?: "small" | "
|
|
60
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
61
61
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
62
62
|
export interface LayerTreeColumnMeta {
|
|
63
63
|
fill?: boolean;
|
|
@@ -10,6 +10,6 @@ export type MeterFooterProps = React.ComponentProps<'div'>;
|
|
|
10
10
|
export type MeterSubtitleProps = React.ComponentProps<'span'>;
|
|
11
11
|
export declare const meterVariants: (props?: ({
|
|
12
12
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
13
|
-
size?: "small" | "
|
|
13
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
14
14
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
15
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -6,7 +6,7 @@ export type NavBarItemProps = React.ComponentProps<'button'> & VariantProps<type
|
|
|
6
6
|
export type NavBarItemIconProps = React.ComponentProps<'div'>;
|
|
7
7
|
export type NavBarItemLabelProps = React.ComponentProps<'span'>;
|
|
8
8
|
export declare const navBarVariants: (props?: ({
|
|
9
|
-
size?: "small" | "
|
|
9
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
10
10
|
itemOrientation?: "horizontal" | "vertical" | null | undefined;
|
|
11
11
|
variant?: "outline" | "floating" | null | undefined;
|
|
12
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationMenuTriggerProps } from './navigation-menu.types';
|
|
2
2
|
export declare const navigationMenuTriggerVariants: (props?: ({
|
|
3
|
-
size?: "small" | "
|
|
3
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
4
4
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const NavigationMenuTrigger: ({ size, tone, className, children, ref, ...props }: NavigationMenuTriggerProps) => import('react').JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const numberFieldVariants: (props?: ({
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
5
|
variant?: "ghost" | "primary" | "secondary" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type NumberFieldTypesProps = React.ComponentProps<typeof BaseNumberField.Root> & VariantProps<typeof numberFieldVariants> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const radarPingVariants: (props?: ({
|
|
3
3
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type RadarPingProps = React.ComponentProps<'div'> & VariantProps<typeof radarPingVariants> & {
|
|
7
7
|
hidePing?: boolean;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { Select as BaseSelect } from '@base-ui/react/select';
|
|
3
3
|
export declare const selectVariants: (props?: ({
|
|
4
4
|
variant?: "ghost" | "primary" | "secondary" | null | undefined;
|
|
5
|
-
size?: "small" | "
|
|
5
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type SelectProps = React.ComponentProps<typeof BaseSelect.Root>;
|
|
8
8
|
export type SelectTriggerProps = React.ComponentProps<typeof BaseSelect.Trigger> & VariantProps<typeof selectVariants>;
|
|
@@ -4,7 +4,7 @@ export declare const separatorVariants: (props?: ({
|
|
|
4
4
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
5
|
style?: "square" | "rounded" | null | undefined;
|
|
6
6
|
variant?: "strong" | "default" | null | undefined;
|
|
7
|
-
weight?: "
|
|
7
|
+
weight?: "medium" | "thin" | "thick" | "thinnest" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export type SeparatorProps = Omit<React.ComponentProps<typeof BaseSeparator>, 'style'> & VariantProps<typeof separatorVariants> & {
|
|
10
10
|
labelClassName?: string;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import { Slider as BaseSlider } from '@base-ui/react';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
4
|
export declare const sliderVariants: (props?: ({
|
|
5
|
-
size?: "small" | "
|
|
5
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
6
6
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export type SliderProps = ComponentProps<typeof BaseSlider.Root> & VariantProps<typeof sliderVariants> & {
|
|
@@ -7,7 +7,7 @@ export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
|
|
|
7
7
|
export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
|
|
8
8
|
export declare const tabsVariants: (props?: ({
|
|
9
9
|
variant?: "ghost" | "default" | "underline" | null | undefined;
|
|
10
|
-
size?: "small" | "
|
|
10
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
11
11
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
12
12
|
fill?: boolean | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Toggle, ToggleState } from '@base-ui/react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const toggleVariants: (props?: ({
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | "iconLarge" | "iconMedium" | "iconSmall" | null | undefined;
|
|
5
5
|
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type ToggleProps = Omit<React.ComponentProps<typeof Toggle>, 'children'> & VariantProps<typeof toggleVariants> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
3
3
|
export declare const toggleGroupVariants: (props?: ({
|
|
4
|
-
size?: "small" | "
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
5
|
variant?: "ghost" | "default" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type ToggleGroupProps = React.ComponentProps<typeof ToggleGroup> & VariantProps<typeof toggleGroupVariants>;
|