@solibo/solibo-ui 1.0.3 → 1.0.4
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/assets/index27.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.cjs.map +1 -1
- package/dist/components/avatar/index.js +64 -44
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +10 -10
- package/dist/components/editor/index.cjs +25 -25
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +2606 -2588
- package/dist/components/editor/index.js.map +1 -1
- package/dist/index.d.ts +17 -15
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,18 +21,20 @@ declare type AsideProps = {
|
|
|
21
21
|
variant?: keyof typeof variants;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
export declare const Avatar: ({ accessibleLabel, color, imageUrl, link, name, role, size, }: AvatarProps) => JSX.Element;
|
|
24
|
+
export declare const Avatar: ({ accessibleLabel, color, icon, imageUrl, link, name, role, size, text, }: AvatarProps) => JSX.Element;
|
|
25
25
|
|
|
26
26
|
export declare type AvatarColor = 'solibo' | 'board' | 'owner' | 'renter' | 'external' | '1' | '2' | '3' | '4' | '5';
|
|
27
27
|
|
|
28
28
|
export declare type AvatarProps = {
|
|
29
29
|
accessibleLabel?: string;
|
|
30
30
|
color?: AvatarColor;
|
|
31
|
+
icon?: IconProps['name'];
|
|
31
32
|
imageUrl?: string;
|
|
32
33
|
link?: string;
|
|
33
34
|
name?: string;
|
|
34
35
|
role?: string;
|
|
35
36
|
size?: AvatarSize;
|
|
37
|
+
text?: string;
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
export declare type AvatarSize = 'small' | 'medium' | 'large';
|
|
@@ -46,7 +48,7 @@ export declare type BadgeProps = {
|
|
|
46
48
|
children?: React.ReactNode;
|
|
47
49
|
icon?: IconName;
|
|
48
50
|
position?: 'left' | 'right';
|
|
49
|
-
variant?: keyof typeof
|
|
51
|
+
variant?: keyof typeof variants_3;
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
export declare const Banner: ({ button, message, onClick, onDismiss, visible }: BannerProps) => JSX.Element;
|
|
@@ -73,7 +75,7 @@ export declare const Branding: ({ name, size, variant }: BrandingProps) => JSX.E
|
|
|
73
75
|
declare type BrandingProps = {
|
|
74
76
|
name: keyof typeof brandingSVG;
|
|
75
77
|
size?: number | string;
|
|
76
|
-
variant?: keyof typeof
|
|
78
|
+
variant?: keyof typeof variants_4;
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
declare const brandingSVG: {
|
|
@@ -89,7 +91,7 @@ declare type ButtonProps = React.ComponentPropsWithRef<'button'> & {
|
|
|
89
91
|
disabled?: boolean;
|
|
90
92
|
icon?: IconName;
|
|
91
93
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
92
|
-
variant?: keyof typeof
|
|
94
|
+
variant?: keyof typeof variants_5;
|
|
93
95
|
};
|
|
94
96
|
|
|
95
97
|
export declare const Card: ({ actions, badge, checkbox, children, emphasis, header, icon, image, imagePosition, onClick, variant, }: CardProps) => JSX.Element;
|
|
@@ -127,7 +129,7 @@ export declare const Controls: ({ children, className, variant, ...props }: Cont
|
|
|
127
129
|
|
|
128
130
|
declare type ControlsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
129
131
|
children?: React.ReactNode;
|
|
130
|
-
variant?: keyof typeof
|
|
132
|
+
variant?: keyof typeof variants_6;
|
|
131
133
|
};
|
|
132
134
|
|
|
133
135
|
export declare const Croppable: ({ children, fill, height, image, label, onCroppableChange, onFileChange, onImageChange, onTransformChange, transform, standalone, }: CroppableProps) => JSX.Element;
|
|
@@ -313,7 +315,7 @@ export declare const Header: ({ capitalize, children, variant }: HeaderProps) =>
|
|
|
313
315
|
declare type HeaderProps = {
|
|
314
316
|
capitalize?: boolean;
|
|
315
317
|
children: React.ReactNode;
|
|
316
|
-
variant?: keyof typeof
|
|
318
|
+
variant?: keyof typeof variants_7;
|
|
317
319
|
};
|
|
318
320
|
|
|
319
321
|
export declare const Icon: ({ fill, gap, name, size, variant }: IconProps) => JSX.Element;
|
|
@@ -463,7 +465,7 @@ export declare type IconProps = {
|
|
|
463
465
|
gap?: 'left' | 'none' | 'right';
|
|
464
466
|
name: IconName;
|
|
465
467
|
size?: keyof typeof sizes;
|
|
466
|
-
variant?: keyof typeof
|
|
468
|
+
variant?: keyof typeof variants_2;
|
|
467
469
|
};
|
|
468
470
|
|
|
469
471
|
export declare const Iframe: ({ accessibleLabel, autoResize, className, closeFullscreenLabel, fullscreenLabel, hasFullscreenView, loading, onLoad, referrerPolicy, sandbox, srcDoc, style, ...props }: IframeProps) => JSX.Element;
|
|
@@ -775,6 +777,10 @@ declare const variants: {
|
|
|
775
777
|
};
|
|
776
778
|
|
|
777
779
|
declare const variants_2: {
|
|
780
|
+
danger: string;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
declare const variants_3: {
|
|
778
784
|
default: string;
|
|
779
785
|
highlight: string;
|
|
780
786
|
info: string;
|
|
@@ -783,33 +789,29 @@ declare const variants_2: {
|
|
|
783
789
|
warning: string;
|
|
784
790
|
};
|
|
785
791
|
|
|
786
|
-
declare const
|
|
792
|
+
declare const variants_4: {
|
|
787
793
|
default: string;
|
|
788
794
|
white: string;
|
|
789
795
|
};
|
|
790
796
|
|
|
791
|
-
declare const
|
|
797
|
+
declare const variants_5: {
|
|
792
798
|
danger: string;
|
|
793
799
|
primary: string;
|
|
794
800
|
secondary: string;
|
|
795
801
|
tertiary: string;
|
|
796
802
|
};
|
|
797
803
|
|
|
798
|
-
declare const
|
|
804
|
+
declare const variants_6: {
|
|
799
805
|
default: string;
|
|
800
806
|
fixed: string;
|
|
801
807
|
inline: string;
|
|
802
808
|
};
|
|
803
809
|
|
|
804
|
-
declare const
|
|
810
|
+
declare const variants_7: {
|
|
805
811
|
default: string;
|
|
806
812
|
jumbo: string;
|
|
807
813
|
};
|
|
808
814
|
|
|
809
|
-
declare const variants_7: {
|
|
810
|
-
danger: string;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
815
|
declare const variants_8: {
|
|
814
816
|
default: string;
|
|
815
817
|
pills: string;
|
package/dist/tokens.json
CHANGED