design-system-silkhaus 0.0.87-beta.develop-long-term-pricing.4 → 0.0.87-beta.develop-long-term-pricing.6
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/index.cjs +105 -33
- package/dist/index.d.ts +126 -52
- package/dist/index.js +12061 -9312
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { CalendarDayShape } from 'react-dates';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
-
import {
|
|
3
|
+
import { FC } from 'react';
|
|
4
4
|
import { ForwardRefExoticComponent } from 'react';
|
|
5
5
|
import { HTMLAttributes } from 'react';
|
|
6
6
|
import { ModifiersShape } from 'react-dates';
|
|
7
7
|
import { Moment } from 'moment';
|
|
8
|
-
import
|
|
8
|
+
import { Placement } from '@floating-ui/react';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
10
|
+
import { default as React_2 } from 'react';
|
|
11
|
+
import * as React_3 from 'react';
|
|
9
12
|
import { ReactNode } from 'react';
|
|
10
13
|
import { RefAttributes } from 'react';
|
|
11
14
|
import { VariantProps } from 'class-variance-authority';
|
|
12
15
|
|
|
13
|
-
export declare const Accordion:
|
|
16
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
14
17
|
|
|
15
18
|
export declare interface AccordionProps {
|
|
16
19
|
title: string | ReactNode;
|
|
@@ -25,7 +28,7 @@ export declare interface AccordionProps {
|
|
|
25
28
|
isExpanded?: boolean;
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
export declare const ActionFooter:
|
|
31
|
+
export declare const ActionFooter: React_2.ForwardRefExoticComponent<ActionFooterProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
29
32
|
|
|
30
33
|
export declare interface ActionFooterProps {
|
|
31
34
|
className?: string;
|
|
@@ -33,12 +36,12 @@ export declare interface ActionFooterProps {
|
|
|
33
36
|
primaryBtnClick: () => void;
|
|
34
37
|
primaryBtnDisabled?: boolean;
|
|
35
38
|
secondaryBtnDisabled?: boolean;
|
|
36
|
-
primaryBtnTxt: string |
|
|
37
|
-
secondaryBtnTxt?: string |
|
|
38
|
-
thirdColumn?:
|
|
39
|
+
primaryBtnTxt: string | React_2.ReactNode;
|
|
40
|
+
secondaryBtnTxt?: string | React_2.ReactNode;
|
|
41
|
+
thirdColumn?: React_2.ReactNode;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
export declare const AlertDialog:
|
|
44
|
+
export declare const AlertDialog: React_2.ForwardRefExoticComponent<AlertDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
42
45
|
|
|
43
46
|
export declare interface AlertDialogProps {
|
|
44
47
|
outerDivClassName?: string;
|
|
@@ -61,19 +64,31 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
61
64
|
show: boolean;
|
|
62
65
|
handleClose?: () => void;
|
|
63
66
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated
|
|
69
|
+
* Apply styles using `contentClassName` instead
|
|
70
|
+
*/
|
|
64
71
|
marginTop?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated
|
|
74
|
+
* Apply styles using `contentClassName` instead
|
|
75
|
+
*/
|
|
65
76
|
maxWidth?: string;
|
|
77
|
+
/**
|
|
78
|
+
* classes to apply on container that wraps the children passed to AnimatedModal
|
|
79
|
+
*/
|
|
80
|
+
contentClassName?: string;
|
|
66
81
|
}
|
|
67
82
|
|
|
68
|
-
export declare const Asterisk:
|
|
83
|
+
export declare const Asterisk: React_2.ForwardRefExoticComponent<AsteriskProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
69
84
|
|
|
70
85
|
declare interface AsteriskProps {
|
|
71
86
|
className?: string;
|
|
72
87
|
}
|
|
73
88
|
|
|
74
|
-
export declare const BookingQuoteCard:
|
|
89
|
+
export declare const BookingQuoteCard: React_2.ForwardRefExoticComponent<BookingQuoteCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
75
90
|
|
|
76
|
-
export declare interface BookingQuoteCardProps extends
|
|
91
|
+
export declare interface BookingQuoteCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
77
92
|
items: BookingQuoteLineItemType[];
|
|
78
93
|
isExpandedInMobile?: boolean;
|
|
79
94
|
}
|
|
@@ -83,34 +98,35 @@ export declare interface BookingQuoteLineItemType {
|
|
|
83
98
|
display_name: string;
|
|
84
99
|
currency_converted_amount: string;
|
|
85
100
|
type: string;
|
|
101
|
+
description?: string;
|
|
86
102
|
}
|
|
87
103
|
|
|
88
|
-
export declare const Button:
|
|
104
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
89
105
|
|
|
90
|
-
export declare interface ButtonProps extends
|
|
106
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
91
107
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
92
108
|
size?: 'small' | 'large';
|
|
93
109
|
disabled?: true | false;
|
|
94
|
-
startIcon?:
|
|
95
|
-
endIcon?:
|
|
110
|
+
startIcon?: React_2.ReactNode;
|
|
111
|
+
endIcon?: React_2.ReactNode;
|
|
96
112
|
}
|
|
97
113
|
|
|
98
|
-
export declare const Card:
|
|
114
|
+
export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
99
115
|
|
|
100
|
-
export declare const CardContent:
|
|
116
|
+
export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
101
117
|
|
|
102
|
-
export declare const CardDescription:
|
|
118
|
+
export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
103
119
|
|
|
104
|
-
export declare const CardFooter:
|
|
120
|
+
export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
105
121
|
|
|
106
|
-
export declare const CardHeader:
|
|
122
|
+
export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
107
123
|
|
|
108
|
-
declare interface CardProps extends
|
|
124
|
+
declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
|
|
109
125
|
asChild?: boolean;
|
|
110
126
|
as?: string;
|
|
111
127
|
}
|
|
112
128
|
|
|
113
|
-
export declare const CardTitle:
|
|
129
|
+
export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
114
130
|
|
|
115
131
|
export declare type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
116
132
|
|
|
@@ -118,7 +134,11 @@ declare const cardVariants: (props?: ({
|
|
|
118
134
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
119
135
|
} & ClassProp) | undefined) => string;
|
|
120
136
|
|
|
121
|
-
export declare const
|
|
137
|
+
export declare const CloseIcon: FC<{
|
|
138
|
+
className?: string;
|
|
139
|
+
}>;
|
|
140
|
+
|
|
141
|
+
export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRangePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
122
142
|
|
|
123
143
|
declare interface DateRangePickerProps {
|
|
124
144
|
startDatePlaceholderText?: string;
|
|
@@ -136,32 +156,34 @@ declare interface DateRangePickerProps {
|
|
|
136
156
|
focusedInput?: 'startDate' | 'endDate' | null;
|
|
137
157
|
onFocusChange?: (focusedInput: 'startDate' | 'endDate' | null) => void;
|
|
138
158
|
lTBannerImage?: string;
|
|
139
|
-
lTBannerTitle?: string |
|
|
140
|
-
lTBannerDesc?: string |
|
|
159
|
+
lTBannerTitle?: string | React_2.ReactNode;
|
|
160
|
+
lTBannerDesc?: string | React_2.ReactNode;
|
|
141
161
|
lTBannerBgColor?: string;
|
|
142
|
-
thirdColumn?: string |
|
|
162
|
+
thirdColumn?: string | React_2.ReactNode;
|
|
143
163
|
onMobileCloseClick: () => void;
|
|
144
164
|
onOutsideClick?: (e: unknown) => void;
|
|
145
165
|
onPrevMonthClick?: (e: unknown) => void;
|
|
146
166
|
onNextMonthClick?: (e: unknown) => void;
|
|
147
|
-
renderCalendarDay?: (props: CalendarDayShape) =>
|
|
167
|
+
renderCalendarDay?: (props: CalendarDayShape) => React_2.ReactNode | undefined;
|
|
148
168
|
isDayBlocked?: ((day: Moment) => boolean) | undefined;
|
|
149
|
-
renderDayContents?: (day: Moment, modifiers: ModifiersShape) =>
|
|
150
|
-
renderCalendarInfo?: () =>
|
|
169
|
+
renderDayContents?: (day: Moment, modifiers: ModifiersShape) => React_2.ReactNode | null | undefined;
|
|
170
|
+
renderCalendarInfo?: () => React_2.ReactNode | null | undefined;
|
|
151
171
|
_daySize?: number;
|
|
152
172
|
_mobileDaySize?: number;
|
|
153
173
|
mobileBreakPoint?: number;
|
|
154
174
|
}
|
|
155
175
|
|
|
156
|
-
export declare const
|
|
176
|
+
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
177
|
+
|
|
178
|
+
export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
157
179
|
|
|
158
180
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
159
181
|
open: boolean;
|
|
160
182
|
}
|
|
161
183
|
|
|
162
|
-
export declare const Grid:
|
|
184
|
+
export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
163
185
|
|
|
164
|
-
export declare interface GridProps extends
|
|
186
|
+
export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
165
187
|
asChild?: boolean;
|
|
166
188
|
}
|
|
167
189
|
|
|
@@ -180,23 +202,23 @@ declare const gridVariants: (props?: ({
|
|
|
180
202
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
181
203
|
} & ClassProp) | undefined) => string;
|
|
182
204
|
|
|
183
|
-
export declare const IconButton:
|
|
205
|
+
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
184
206
|
|
|
185
|
-
export declare interface IconButtonProps extends
|
|
207
|
+
export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
186
208
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
187
209
|
size?: 'small' | 'large';
|
|
188
210
|
disabled?: true | false;
|
|
189
211
|
}
|
|
190
212
|
|
|
191
|
-
export declare const ImageCarousel:
|
|
213
|
+
export declare const ImageCarousel: React_2.ForwardRefExoticComponent<ImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
192
214
|
|
|
193
|
-
export declare interface ImageCarouselProps extends
|
|
215
|
+
export declare interface ImageCarouselProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
194
216
|
images: string[];
|
|
195
217
|
}
|
|
196
218
|
|
|
197
|
-
export declare const Input:
|
|
219
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
198
220
|
|
|
199
|
-
export declare interface InputProps extends
|
|
221
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
200
222
|
textarea?: true | false | undefined;
|
|
201
223
|
label?: string | undefined;
|
|
202
224
|
caption?: string | undefined;
|
|
@@ -207,18 +229,18 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
207
229
|
captionClass?: string | undefined;
|
|
208
230
|
}
|
|
209
231
|
|
|
210
|
-
export declare const LongTermBanner:
|
|
232
|
+
export declare const LongTermBanner: React_2.ForwardRefExoticComponent<LongTermBannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
211
233
|
|
|
212
234
|
export declare interface LongTermBannerProps {
|
|
213
235
|
image: string;
|
|
214
|
-
title: string |
|
|
215
|
-
desc: string |
|
|
236
|
+
title: string | React_2.ReactNode;
|
|
237
|
+
desc: string | React_2.ReactNode;
|
|
216
238
|
size: 'small' | 'large';
|
|
217
239
|
bgColor: string;
|
|
218
240
|
className?: string;
|
|
219
241
|
}
|
|
220
242
|
|
|
221
|
-
export declare const MobileFilterMenu:
|
|
243
|
+
export declare const MobileFilterMenu: React_2.ForwardRefExoticComponent<MobileFilterMenuProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
222
244
|
|
|
223
245
|
export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
224
246
|
show: boolean;
|
|
@@ -234,7 +256,7 @@ export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivEle
|
|
|
234
256
|
maxWidth?: string;
|
|
235
257
|
}
|
|
236
258
|
|
|
237
|
-
export declare const MobileMultiSelectFilterDropDown:
|
|
259
|
+
export declare const MobileMultiSelectFilterDropDown: React_2.ForwardRefExoticComponent<MobileMultiSelectFilterDropDownProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
238
260
|
|
|
239
261
|
export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttributes<HTMLDivElement> {
|
|
240
262
|
label?: string;
|
|
@@ -255,7 +277,7 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
|
|
|
255
277
|
noDataError?: string;
|
|
256
278
|
}
|
|
257
279
|
|
|
258
|
-
export declare const MobileSelectCardDropDown:
|
|
280
|
+
export declare const MobileSelectCardDropDown: React_2.ForwardRefExoticComponent<MobileSelectCardDropDownProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
259
281
|
|
|
260
282
|
export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HTMLDivElement> {
|
|
261
283
|
label?: string;
|
|
@@ -272,7 +294,13 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
|
|
|
272
294
|
noDataError?: string;
|
|
273
295
|
}
|
|
274
296
|
|
|
275
|
-
export declare const
|
|
297
|
+
export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
|
|
298
|
+
|
|
299
|
+
export declare const QuestionMarkIcon: FC<{
|
|
300
|
+
className?: string;
|
|
301
|
+
}>;
|
|
302
|
+
|
|
303
|
+
export declare const RoundedProgressBar: React_2.ForwardRefExoticComponent<RoundedProgressBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
276
304
|
|
|
277
305
|
export declare interface RoundedProgressBarProps {
|
|
278
306
|
progress: number;
|
|
@@ -292,7 +320,7 @@ export declare interface Step {
|
|
|
292
320
|
mobileNextTitle: string;
|
|
293
321
|
}
|
|
294
322
|
|
|
295
|
-
export declare const Stepper:
|
|
323
|
+
export declare const Stepper: React_2.ForwardRefExoticComponent<StepperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
296
324
|
|
|
297
325
|
export declare interface StepperProps {
|
|
298
326
|
steps: Step[];
|
|
@@ -300,16 +328,16 @@ export declare interface StepperProps {
|
|
|
300
328
|
outerMobileDivClass?: string;
|
|
301
329
|
}
|
|
302
330
|
|
|
303
|
-
export declare const Switch:
|
|
331
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
304
332
|
|
|
305
333
|
export declare interface SwitchProps {
|
|
306
334
|
checked: boolean;
|
|
307
|
-
onChange: (event:
|
|
335
|
+
onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
308
336
|
disabled?: boolean;
|
|
309
337
|
htmlId?: string;
|
|
310
338
|
}
|
|
311
339
|
|
|
312
|
-
export declare const Timer:
|
|
340
|
+
export declare const Timer: React_2.ForwardRefExoticComponent<TimerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
313
341
|
|
|
314
342
|
export declare interface TimerProps {
|
|
315
343
|
time: number;
|
|
@@ -317,7 +345,53 @@ export declare interface TimerProps {
|
|
|
317
345
|
outerDivClass?: string;
|
|
318
346
|
}
|
|
319
347
|
|
|
320
|
-
|
|
348
|
+
/**
|
|
349
|
+
* A tooltip component that display a floating tooltip with the `content` on hover of the `trigger` element for desktop
|
|
350
|
+
* and for mobile it displays a popover with the `content` on click of the `trigger` element
|
|
351
|
+
*/
|
|
352
|
+
export declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
353
|
+
|
|
354
|
+
export declare interface TooltipProps {
|
|
355
|
+
/**
|
|
356
|
+
* Content of the tooltip
|
|
357
|
+
*/
|
|
358
|
+
content: ReactNode;
|
|
359
|
+
/**
|
|
360
|
+
* Title of the tooltip that is displayed in the header of the tooltip
|
|
361
|
+
* Only applicable for mobile version of tooltip
|
|
362
|
+
* @default ''
|
|
363
|
+
*/
|
|
364
|
+
title?: string;
|
|
365
|
+
/**
|
|
366
|
+
* The element that triggers the tooltip
|
|
367
|
+
*/
|
|
368
|
+
trigger: ReactNode;
|
|
369
|
+
/**
|
|
370
|
+
* The placement of the floating tooltip. Only used in desktop version
|
|
371
|
+
* @default 'left'
|
|
372
|
+
*/
|
|
373
|
+
placement?: Placement;
|
|
374
|
+
/**
|
|
375
|
+
* The trigger of the tooltip is wrapped in a container. This classname is added to that container
|
|
376
|
+
*/
|
|
377
|
+
triggerContainerClassName?: string;
|
|
378
|
+
/**
|
|
379
|
+
* The content of the tooltip is wrapped in a container. This classname is added to that container
|
|
380
|
+
*/
|
|
381
|
+
contentContainerClassname?: string;
|
|
382
|
+
/**
|
|
383
|
+
* When set true, tootlip will not be shown
|
|
384
|
+
* @default false
|
|
385
|
+
*/
|
|
386
|
+
disabled?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* The offset of the tooltip from the trigger in px. Only applicable for desktop tooltip
|
|
389
|
+
* @dwefault 4
|
|
390
|
+
*/
|
|
391
|
+
offset?: number;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export declare const TopNavBar: React_2.ForwardRefExoticComponent<TopNavBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
321
395
|
|
|
322
396
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
323
397
|
text?: string | ReactNode;
|
|
@@ -326,7 +400,7 @@ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
326
400
|
direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
|
|
327
401
|
}
|
|
328
402
|
|
|
329
|
-
export declare const TopNavContainerMobile:
|
|
403
|
+
export declare const TopNavContainerMobile: React_2.ForwardRefExoticComponent<TopNavContainerMobileProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
330
404
|
|
|
331
405
|
export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
|
|
332
406
|
img: string;
|
|
@@ -338,7 +412,7 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
338
412
|
buttonText: string;
|
|
339
413
|
}
|
|
340
414
|
|
|
341
|
-
export declare const TwoColumnDialog:
|
|
415
|
+
export declare const TwoColumnDialog: React_2.ForwardRefExoticComponent<TwoColumnDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
342
416
|
|
|
343
417
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
344
418
|
img: string;
|