@goodhood-web/ui 3.3.0-development.2 → 3.3.0-development.21
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/index.d.ts +8 -1
- package/index.js +58 -58
- package/index.mjs +7088 -6875
- package/lib/Atoms/AccordionItem/AccordionItem.d.ts +1 -1
- package/lib/Atoms/AccordionItem/AccordionItem.types.d.ts +3 -0
- package/lib/Atoms/Buttons/ButtonTertiary/ButtonTertiary.types.d.ts +1 -1
- package/lib/Atoms/Buttons/CarouselNavigation/CarouselNavigation.d.ts +5 -0
- package/lib/Atoms/Buttons/CarouselNavigation/CarouselNavigation.types.d.ts +4 -0
- package/lib/Atoms/Content/GalleryPlaceholder/GalleryPlaceholder.d.ts +1 -0
- package/lib/Atoms/Content/PoiAvatar/PoiAvatar.d.ts +1 -1
- package/lib/Atoms/Content/PoiAvatar/PoiAvatar.type.d.ts +2 -0
- package/lib/Atoms/Content/Thumbnail/Thumbnail.d.ts +1 -1
- package/lib/Atoms/Content/Thumbnail/Thumbnail.type.d.ts +4 -1
- package/lib/Atoms/Content/UserAvatar/UserAvatar.types.d.ts +2 -2
- package/lib/Atoms/Inputs/utils.d.ts +1 -0
- package/lib/Atoms/Progress/CarouselIndicator/CarouselIndicator.d.ts +3 -0
- package/lib/Atoms/Progress/CarouselIndicator/CarouselIndicator.types.d.ts +18 -0
- package/lib/Base/Icon/icons/index.d.ts +42 -0
- package/lib/Base/Icon/icons/outline/16x16/index.d.ts +12 -0
- package/lib/Base/Icon/icons/outline/24x24/index.d.ts +12 -0
- package/lib/Base/Icon/icons/outline/32x32/index.d.ts +18 -0
- package/lib/Base/Icon/icons/outline/index.d.ts +42 -0
- package/lib/Molecules/Card/CardHeader/CardHeader.types.d.ts +1 -1
- package/lib/Molecules/Notices/Snackbar/Snackbar.d.ts +1 -1
- package/lib/Molecules/Notices/Snackbar/Snackbar.types.d.ts +2 -0
- package/lib/Organisms/Modals/Sheet/Sheet.d.ts +1 -1
- package/lib/Organisms/Modals/Sheet/Sheet.types.d.ts +19 -9
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AccordionItemProps } from './AccordionItem.types';
|
|
2
|
-
declare const AccordionItem: ({ accordionBtnClassName, accordionPanelClassName, children, id, size, title, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const AccordionItem: ({ accordionBtnClassName, accordionPanelClassName, children, handleClick, hideBorder, id, opened, size, title, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default AccordionItem;
|
|
@@ -3,7 +3,10 @@ export type AccordionItemProps = {
|
|
|
3
3
|
accordionBtnClassName?: string;
|
|
4
4
|
accordionPanelClassName?: string;
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
handleClick?: () => void;
|
|
7
|
+
hideBorder?: boolean;
|
|
6
8
|
id: number | string;
|
|
9
|
+
opened?: boolean;
|
|
7
10
|
size?: 'small' | 'large';
|
|
8
11
|
title: string;
|
|
9
12
|
};
|
|
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
|
|
3
3
|
export interface ButtonTertiaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
color?: 'green' | 'pink' | 'blue' | '
|
|
5
|
+
color?: 'green' | 'pink' | 'blue' | 'greySubtle' | 'greyStrong';
|
|
6
6
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
+
declare const CarouselNavigation: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "children" | "className" | "ref"> & {
|
|
3
|
+
direction: "left" | "right";
|
|
4
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export default CarouselNavigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GalleryPlaceholder: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PoiAvatarType } from './PoiAvatar.type';
|
|
2
|
-
export declare const PoiAvatar: ({ size, type }: PoiAvatarType) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const PoiAvatar: ({ alt, imageSrc, size, type }: PoiAvatarType) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PoiAvatar;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const poiAvatarSizes: readonly ["48", "56", "64", "80"];
|
|
2
2
|
export type TSize = (typeof poiAvatarSizes)[number];
|
|
3
3
|
export interface PoiAvatarType {
|
|
4
|
+
alt?: string;
|
|
5
|
+
imageSrc?: string;
|
|
4
6
|
size: TSize;
|
|
5
7
|
type: 'business' | 'special_place' | 'organisation';
|
|
6
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ThumbnailCircularProps, ThumbnailSquareProps } from './Thumbnail.type';
|
|
2
|
-
declare const Thumbnail: ({ alt, className, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Thumbnail: ({ alt, children, className, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Thumbnail;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ImageProps } from '../../Image/Image.type';
|
|
2
|
-
export interface ThumbnailProps extends ImageProps {
|
|
3
|
+
export interface ThumbnailProps extends Omit<ImageProps, 'src'> {
|
|
4
|
+
children?: ReactNode;
|
|
3
5
|
className?: string;
|
|
4
6
|
isPlaceholder?: boolean;
|
|
7
|
+
src?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const circularSizes: readonly ["28", "32", "40", "48", "56", "64", "80", "120", "280"];
|
|
7
10
|
export declare const squareSizes: readonly ["24", "32", "40", "48", "56", "64", "80", "96", "120"];
|
|
@@ -6,12 +6,12 @@ type BaseUserAvatarProps = {
|
|
|
6
6
|
userImageSrc?: string;
|
|
7
7
|
};
|
|
8
8
|
type UserIdMandatory = BaseUserAvatarProps & {
|
|
9
|
-
avatarColor?:
|
|
9
|
+
avatarColor?: never;
|
|
10
10
|
userId: number;
|
|
11
11
|
};
|
|
12
12
|
type AvatarColorMandatory = BaseUserAvatarProps & {
|
|
13
13
|
avatarColor: AvatarColor;
|
|
14
|
-
userId?:
|
|
14
|
+
userId?: never;
|
|
15
15
|
};
|
|
16
16
|
export type UserAvatarProps = UserIdMandatory | AvatarColorMandatory;
|
|
17
17
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCharCount: (value?: string | number | readonly string[]) => number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CarouselIndicatorProps } from './CarouselIndicator.types';
|
|
2
|
+
export declare const CarouselIndicator: ({ currentStep, hasContainer, maxDots, onDotClick, totalSteps, type, }: CarouselIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CarouselIndicator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type BaseCarouselIndicatorProps = {
|
|
2
|
+
currentStep: number;
|
|
3
|
+
hasContainer?: boolean;
|
|
4
|
+
maxDots?: number;
|
|
5
|
+
onDotClick?: (index: number) => void;
|
|
6
|
+
totalSteps: number;
|
|
7
|
+
type: 'dots' | 'numbers';
|
|
8
|
+
};
|
|
9
|
+
export type CarouselIndicatorDotsProps = BaseCarouselIndicatorProps & {
|
|
10
|
+
maxDots: number;
|
|
11
|
+
onDotClick?: (index: number) => void;
|
|
12
|
+
type: 'dots';
|
|
13
|
+
};
|
|
14
|
+
export type CarouselIndicatorNumbersProps = BaseCarouselIndicatorProps & {
|
|
15
|
+
type: 'numbers';
|
|
16
|
+
};
|
|
17
|
+
export type CarouselIndicatorProps = CarouselIndicatorDotsProps | CarouselIndicatorNumbersProps;
|
|
18
|
+
export {};
|
|
@@ -111,6 +111,12 @@ declare const iconsMap: {
|
|
|
111
111
|
desc?: string;
|
|
112
112
|
descId?: string;
|
|
113
113
|
}>;
|
|
114
|
+
cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
115
|
+
title?: string;
|
|
116
|
+
titleId?: string;
|
|
117
|
+
desc?: string;
|
|
118
|
+
descId?: string;
|
|
119
|
+
}>;
|
|
114
120
|
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
115
121
|
title?: string;
|
|
116
122
|
titleId?: string;
|
|
@@ -135,6 +141,12 @@ declare const iconsMap: {
|
|
|
135
141
|
desc?: string;
|
|
136
142
|
descId?: string;
|
|
137
143
|
}>;
|
|
144
|
+
rotate: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
145
|
+
title?: string;
|
|
146
|
+
titleId?: string;
|
|
147
|
+
desc?: string;
|
|
148
|
+
descId?: string;
|
|
149
|
+
}>;
|
|
138
150
|
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
139
151
|
title?: string;
|
|
140
152
|
titleId?: string;
|
|
@@ -245,6 +257,12 @@ declare const iconsMap: {
|
|
|
245
257
|
desc?: string;
|
|
246
258
|
descId?: string;
|
|
247
259
|
}>;
|
|
260
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
261
|
+
title?: string;
|
|
262
|
+
titleId?: string;
|
|
263
|
+
desc?: string;
|
|
264
|
+
descId?: string;
|
|
265
|
+
}>;
|
|
248
266
|
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
249
267
|
title?: string;
|
|
250
268
|
titleId?: string;
|
|
@@ -383,6 +401,12 @@ declare const iconsMap: {
|
|
|
383
401
|
desc?: string;
|
|
384
402
|
descId?: string;
|
|
385
403
|
}>;
|
|
404
|
+
readonly photo_upload: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
405
|
+
title?: string;
|
|
406
|
+
titleId?: string;
|
|
407
|
+
desc?: string;
|
|
408
|
+
descId?: string;
|
|
409
|
+
}>;
|
|
386
410
|
readonly pin: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
387
411
|
title?: string;
|
|
388
412
|
titleId?: string;
|
|
@@ -637,6 +661,12 @@ declare const iconsMap: {
|
|
|
637
661
|
desc?: string;
|
|
638
662
|
descId?: string;
|
|
639
663
|
}>;
|
|
664
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
665
|
+
title?: string;
|
|
666
|
+
titleId?: string;
|
|
667
|
+
desc?: string;
|
|
668
|
+
descId?: string;
|
|
669
|
+
}>;
|
|
640
670
|
readonly cutlery: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
641
671
|
title?: string;
|
|
642
672
|
titleId?: string;
|
|
@@ -943,6 +973,18 @@ declare const iconsMap: {
|
|
|
943
973
|
desc?: string;
|
|
944
974
|
descId?: string;
|
|
945
975
|
}>;
|
|
976
|
+
readonly percentage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
977
|
+
title?: string;
|
|
978
|
+
titleId?: string;
|
|
979
|
+
desc?: string;
|
|
980
|
+
descId?: string;
|
|
981
|
+
}>;
|
|
982
|
+
readonly percentage_alt: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
983
|
+
title?: string;
|
|
984
|
+
titleId?: string;
|
|
985
|
+
desc?: string;
|
|
986
|
+
descId?: string;
|
|
987
|
+
}>;
|
|
946
988
|
readonly phone: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
947
989
|
title?: string;
|
|
948
990
|
titleId?: string;
|
|
@@ -23,6 +23,12 @@ declare const IconsMap: {
|
|
|
23
23
|
desc?: string;
|
|
24
24
|
descId?: string;
|
|
25
25
|
}>;
|
|
26
|
+
cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
titleId?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
descId?: string;
|
|
31
|
+
}>;
|
|
26
32
|
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
33
|
title?: string;
|
|
28
34
|
titleId?: string;
|
|
@@ -47,6 +53,12 @@ declare const IconsMap: {
|
|
|
47
53
|
desc?: string;
|
|
48
54
|
descId?: string;
|
|
49
55
|
}>;
|
|
56
|
+
rotate: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
57
|
+
title?: string;
|
|
58
|
+
titleId?: string;
|
|
59
|
+
desc?: string;
|
|
60
|
+
descId?: string;
|
|
61
|
+
}>;
|
|
50
62
|
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
51
63
|
title?: string;
|
|
52
64
|
titleId?: string;
|
|
@@ -101,6 +101,12 @@ declare const IconsMap: {
|
|
|
101
101
|
desc?: string;
|
|
102
102
|
descId?: string;
|
|
103
103
|
}>;
|
|
104
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
105
|
+
title?: string;
|
|
106
|
+
titleId?: string;
|
|
107
|
+
desc?: string;
|
|
108
|
+
descId?: string;
|
|
109
|
+
}>;
|
|
104
110
|
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
105
111
|
title?: string;
|
|
106
112
|
titleId?: string;
|
|
@@ -239,6 +245,12 @@ declare const IconsMap: {
|
|
|
239
245
|
desc?: string;
|
|
240
246
|
descId?: string;
|
|
241
247
|
}>;
|
|
248
|
+
readonly photo_upload: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
249
|
+
title?: string;
|
|
250
|
+
titleId?: string;
|
|
251
|
+
desc?: string;
|
|
252
|
+
descId?: string;
|
|
253
|
+
}>;
|
|
242
254
|
readonly pin: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
243
255
|
title?: string;
|
|
244
256
|
titleId?: string;
|
|
@@ -167,6 +167,12 @@ declare const IconsMap: {
|
|
|
167
167
|
desc?: string;
|
|
168
168
|
descId?: string;
|
|
169
169
|
}>;
|
|
170
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
171
|
+
title?: string;
|
|
172
|
+
titleId?: string;
|
|
173
|
+
desc?: string;
|
|
174
|
+
descId?: string;
|
|
175
|
+
}>;
|
|
170
176
|
readonly cutlery: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
171
177
|
title?: string;
|
|
172
178
|
titleId?: string;
|
|
@@ -473,6 +479,18 @@ declare const IconsMap: {
|
|
|
473
479
|
desc?: string;
|
|
474
480
|
descId?: string;
|
|
475
481
|
}>;
|
|
482
|
+
readonly percentage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
483
|
+
title?: string;
|
|
484
|
+
titleId?: string;
|
|
485
|
+
desc?: string;
|
|
486
|
+
descId?: string;
|
|
487
|
+
}>;
|
|
488
|
+
readonly percentage_alt: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
489
|
+
title?: string;
|
|
490
|
+
titleId?: string;
|
|
491
|
+
desc?: string;
|
|
492
|
+
descId?: string;
|
|
493
|
+
}>;
|
|
476
494
|
readonly phone: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
477
495
|
title?: string;
|
|
478
496
|
titleId?: string;
|
|
@@ -24,6 +24,12 @@ declare const iconsMap: {
|
|
|
24
24
|
desc?: string;
|
|
25
25
|
descId?: string;
|
|
26
26
|
}>;
|
|
27
|
+
cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string;
|
|
29
|
+
titleId?: string;
|
|
30
|
+
desc?: string;
|
|
31
|
+
descId?: string;
|
|
32
|
+
}>;
|
|
27
33
|
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
28
34
|
title?: string;
|
|
29
35
|
titleId?: string;
|
|
@@ -48,6 +54,12 @@ declare const iconsMap: {
|
|
|
48
54
|
desc?: string;
|
|
49
55
|
descId?: string;
|
|
50
56
|
}>;
|
|
57
|
+
rotate: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
58
|
+
title?: string;
|
|
59
|
+
titleId?: string;
|
|
60
|
+
desc?: string;
|
|
61
|
+
descId?: string;
|
|
62
|
+
}>;
|
|
51
63
|
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
52
64
|
title?: string;
|
|
53
65
|
titleId?: string;
|
|
@@ -158,6 +170,12 @@ declare const iconsMap: {
|
|
|
158
170
|
desc?: string;
|
|
159
171
|
descId?: string;
|
|
160
172
|
}>;
|
|
173
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
174
|
+
title?: string;
|
|
175
|
+
titleId?: string;
|
|
176
|
+
desc?: string;
|
|
177
|
+
descId?: string;
|
|
178
|
+
}>;
|
|
161
179
|
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
162
180
|
title?: string;
|
|
163
181
|
titleId?: string;
|
|
@@ -296,6 +314,12 @@ declare const iconsMap: {
|
|
|
296
314
|
desc?: string;
|
|
297
315
|
descId?: string;
|
|
298
316
|
}>;
|
|
317
|
+
readonly photo_upload: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
318
|
+
title?: string;
|
|
319
|
+
titleId?: string;
|
|
320
|
+
desc?: string;
|
|
321
|
+
descId?: string;
|
|
322
|
+
}>;
|
|
299
323
|
readonly pin: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
300
324
|
title?: string;
|
|
301
325
|
titleId?: string;
|
|
@@ -550,6 +574,12 @@ declare const iconsMap: {
|
|
|
550
574
|
desc?: string;
|
|
551
575
|
descId?: string;
|
|
552
576
|
}>;
|
|
577
|
+
readonly cursor: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
578
|
+
title?: string;
|
|
579
|
+
titleId?: string;
|
|
580
|
+
desc?: string;
|
|
581
|
+
descId?: string;
|
|
582
|
+
}>;
|
|
553
583
|
readonly cutlery: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
554
584
|
title?: string;
|
|
555
585
|
titleId?: string;
|
|
@@ -856,6 +886,18 @@ declare const iconsMap: {
|
|
|
856
886
|
desc?: string;
|
|
857
887
|
descId?: string;
|
|
858
888
|
}>;
|
|
889
|
+
readonly percentage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
890
|
+
title?: string;
|
|
891
|
+
titleId?: string;
|
|
892
|
+
desc?: string;
|
|
893
|
+
descId?: string;
|
|
894
|
+
}>;
|
|
895
|
+
readonly percentage_alt: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
896
|
+
title?: string;
|
|
897
|
+
titleId?: string;
|
|
898
|
+
desc?: string;
|
|
899
|
+
descId?: string;
|
|
900
|
+
}>;
|
|
859
901
|
readonly phone: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
860
902
|
title?: string;
|
|
861
903
|
titleId?: string;
|
|
@@ -3,7 +3,7 @@ import { IconButtonProps } from '../../../Atoms/Buttons/IconButton/IconButton.ty
|
|
|
3
3
|
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
4
|
import { AllowedTypographyHTMLTags, TypographyTypeProduct } from '../../../Base/Typography/Typography.types';
|
|
5
5
|
export type CardHeaderProps = {
|
|
6
|
-
as?: Exclude<AllowedTypographyHTMLTags, '
|
|
6
|
+
as?: Exclude<AllowedTypographyHTMLTags, 'p' | 'span'>;
|
|
7
7
|
className?: string;
|
|
8
8
|
headline: string;
|
|
9
9
|
leftElement?: ReactElement<IconProps | IconButtonProps> | ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as SnackbarProps } from './Snackbar.types';
|
|
2
|
-
declare const Snackbar: ({ color, dismissable, isOpen, leftIconLarge, leftIconSmall, onClick, onClose, rightIconLarge, rightIconSmall, textButton, textLabel, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Snackbar: ({ color, dismissable, isOpen, leftIconClassName, leftIconLarge, leftIconSmall, onClick, onClose, rightIconClassName, rightIconLarge, rightIconSmall, textButton, textLabel, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Snackbar;
|
|
@@ -4,10 +4,12 @@ export default interface SnackbarProps {
|
|
|
4
4
|
color?: TextButtonProps['color'];
|
|
5
5
|
dismissable?: boolean;
|
|
6
6
|
isOpen: boolean;
|
|
7
|
+
leftIconClassName?: string;
|
|
7
8
|
leftIconLarge?: Icon32;
|
|
8
9
|
leftIconSmall?: Icon24;
|
|
9
10
|
onClick?: () => void;
|
|
10
11
|
onClose?: () => void;
|
|
12
|
+
rightIconClassName?: string;
|
|
11
13
|
rightIconLarge?: Icon32;
|
|
12
14
|
rightIconSmall?: Icon24;
|
|
13
15
|
textButton?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SheetProps } from './Sheet.types';
|
|
2
|
-
declare const Sheet: ({ ariaLabel, ariaLabelledBy,
|
|
2
|
+
declare const Sheet: ({ ariaLabel, ariaLabelledBy, breakpoint, cancelButtonText, content, contentClassName, defaultHeaderTitle, footer, footerClassName, header, headerClassName, onDismiss, onPrimaryAction, open, primaryButtonText, sheetClassName, stickyFooter, }: SheetProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Sheet;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface SheetProps {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type SheetBreakpoint = '690' | '800';
|
|
3
|
+
interface SheetBaseProps {
|
|
5
4
|
ariaLabel?: string;
|
|
6
5
|
ariaLabelledBy?: string;
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
breakpoint?: SheetBreakpoint;
|
|
7
|
+
cancelButtonText?: string;
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
contentClassName?: string;
|
|
10
|
+
defaultHeaderTitle?: string;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
footerClassName?: string;
|
|
13
|
+
header?: ReactNode;
|
|
14
|
+
headerClassName?: string;
|
|
15
|
+
onDismiss?: () => void;
|
|
16
|
+
onPrimaryAction?: () => void;
|
|
9
17
|
open: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
primaryButtonText?: string;
|
|
19
|
+
sheetClassName?: string;
|
|
20
|
+
stickyFooter?: boolean;
|
|
13
21
|
}
|
|
22
|
+
export type SheetProps = SheetBaseProps;
|
|
23
|
+
export {};
|