@nurihaus/web-design-system 1.3.12 → 1.3.14

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.
@@ -0,0 +1,8 @@
1
+ export declare const avatarProps: {
2
+ size: {
3
+ type: "className";
4
+ className: string;
5
+ values: readonly ["xl", "l", "m", "s"];
6
+ default: "m";
7
+ };
8
+ };
@@ -1,8 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- export interface AvatarProps {
3
- size: 'xl' | 'l' | 'm' | 's';
4
- src?: string;
2
+ export interface BaseAvatarProps {
3
+ src: string;
5
4
  alt?: string;
6
- badgeOption?: ReactNode | string;
7
5
  style?: React.CSSProperties;
6
+ className?: string;
7
+ asChild?: boolean;
8
+ }
9
+ export interface AvatarProps extends Omit<BaseAvatarProps, 'asChild'> {
10
+ size: 'xl' | 'l' | 'm' | 's';
11
+ badgeOption?: ReactNode | string;
8
12
  }
@@ -0,0 +1,3 @@
1
+ import { BaseAvatarProps } from './avatar-type';
2
+ declare const BaseAvatar: import("react").ForwardRefExoticComponent<BaseAvatarProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export default BaseAvatar;
@@ -1,9 +1,9 @@
1
+ export declare const size: string[];
1
2
  export declare const checkBoxIndicatorProps: {
2
3
  size: {
3
- type: "style";
4
- key: ("height" | "width")[];
5
- style: string;
6
- values: number[];
7
- default: number;
4
+ type: "className";
5
+ className: string;
6
+ values: string[];
7
+ default: string;
8
8
  };
9
9
  };
@@ -1,8 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
+ import { size } from './check-box-props';
2
3
  import { CheckBoxRootProps } from './check-box-type';
3
4
  export interface CheckBoxProps extends CheckBoxRootProps {
4
5
  label: string | ReactNode;
5
- size?: number;
6
+ size?: (typeof size)[number];
6
7
  className?: string;
7
8
  onClick?: (checked: boolean) => void;
8
9
  }