design-system-silkhaus 0.0.87-beta.weekly-cleaning.2 → 0.0.87-beta.weekly-cleaning.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/index.d.ts CHANGED
@@ -1,8 +1,16 @@
1
+ import { CalendarDayShape } from 'react-dates';
1
2
  import { ClassProp } from 'class-variance-authority/types';
2
3
  import { default as default_2 } from 'react';
4
+ import { FC } from 'react';
5
+ import { ForwardRefExoticComponent } from 'react';
3
6
  import { HTMLAttributes } from 'react';
7
+ import { ModifiersShape } from 'react-dates';
8
+ import { Moment } from 'moment';
9
+ import { Placement } from '@floating-ui/react';
10
+ import { PropsWithChildren } from 'react';
4
11
  import * as React_2 from 'react';
5
12
  import { ReactNode } from 'react';
13
+ import { RefAttributes } from 'react';
6
14
  import { VariantProps } from 'class-variance-authority';
7
15
 
8
16
  export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -20,6 +28,19 @@ export declare interface AccordionProps {
20
28
  isExpanded?: boolean;
21
29
  }
22
30
 
31
+ export declare const ActionFooter: default_2.ForwardRefExoticComponent<ActionFooterProps & default_2.RefAttributes<HTMLDivElement>>;
32
+
33
+ export declare interface ActionFooterProps {
34
+ className?: string;
35
+ secondaryBtnClick?: () => void;
36
+ primaryBtnClick: () => void;
37
+ primaryBtnDisabled?: boolean;
38
+ secondaryBtnDisabled?: boolean;
39
+ primaryBtnTxt: string | default_2.ReactNode;
40
+ secondaryBtnTxt?: string | default_2.ReactNode;
41
+ thirdColumn?: default_2.ReactNode;
42
+ }
43
+
23
44
  export declare const AlertDialog: default_2.ForwardRefExoticComponent<AlertDialogProps & default_2.RefAttributes<HTMLDivElement>>;
24
45
 
25
46
  export declare interface AlertDialogProps {
@@ -37,13 +58,26 @@ export declare interface AlertDialogProps {
37
58
  onSecondaryBtnClick?: () => void;
38
59
  }
39
60
 
40
- export declare const AnimatedModal: default_2.ForwardRefExoticComponent<AnimatedModalProps & default_2.RefAttributes<HTMLDivElement>>;
61
+ export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
41
62
 
42
63
  export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
43
64
  show: boolean;
44
65
  handleClose?: () => void;
45
- staticBackdrop?: boolean;
46
66
  animation?: 'slideUp' | 'slideDown' | 'fadeIn';
67
+ /**
68
+ * @deprecated
69
+ * Apply styles using `contentClassName` instead
70
+ */
71
+ marginTop?: string;
72
+ /**
73
+ * @deprecated
74
+ * Apply styles using `contentClassName` instead
75
+ */
76
+ maxWidth?: string;
77
+ /**
78
+ * classes to apply on container that wraps the children passed to AnimatedModal
79
+ */
80
+ contentClassName?: string;
47
81
  }
48
82
 
49
83
  export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
@@ -52,6 +86,23 @@ declare interface AsteriskProps {
52
86
  className?: string;
53
87
  }
54
88
 
89
+ export declare const Badge: default_2.ForwardRefExoticComponent<BadgeProps & default_2.RefAttributes<HTMLDivElement>>;
90
+
91
+ export declare type BadgeProps = {
92
+ icon?: default_2.ReactNode;
93
+ label: string;
94
+ variant: 'dark' | 'light' | 'amenity';
95
+ className?: string;
96
+ };
97
+
98
+ export declare const BedLineIcon: FC<{
99
+ className?: string;
100
+ }>;
101
+
102
+ export declare const BedRegularIcon: FC<{
103
+ className?: string;
104
+ }>;
105
+
55
106
  export declare const BookingQuoteCard: default_2.ForwardRefExoticComponent<BookingQuoteCardProps & default_2.RefAttributes<HTMLDivElement>>;
56
107
 
57
108
  export declare interface BookingQuoteCardProps extends default_2.HTMLAttributes<HTMLDivElement> {
@@ -64,6 +115,7 @@ export declare interface BookingQuoteLineItemType {
64
115
  display_name: string;
65
116
  currency_converted_amount: string;
66
117
  type: string;
118
+ description?: string;
67
119
  }
68
120
 
69
121
  export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
@@ -125,6 +177,56 @@ declare const cardVariants: (props?: ({
125
177
  cardType?: "default" | "shadowCard" | null | undefined;
126
178
  } & ClassProp) | undefined) => string;
127
179
 
180
+ export declare const ChevronLeftRegularIcon: FC<{
181
+ className?: string;
182
+ }>;
183
+
184
+ export declare const ChevronRightRegularIcon: FC<{
185
+ className?: string;
186
+ }>;
187
+
188
+ export declare const CloseIcon: FC<{
189
+ className?: string;
190
+ }>;
191
+
192
+ export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
193
+
194
+ declare interface DateRangePickerProps {
195
+ startDatePlaceholderText?: string;
196
+ endDatePlaceholderText?: string;
197
+ onDatesSelected?: (dates: {
198
+ startDate: Moment | null;
199
+ endDate: Moment | null;
200
+ }) => void;
201
+ onDatesChange?: (dates: {
202
+ startDate: Moment | null;
203
+ endDate: Moment | null;
204
+ }) => void;
205
+ initialStartDate?: Moment | null;
206
+ initialEndDate?: Moment | null;
207
+ focusedInput?: 'startDate' | 'endDate' | null;
208
+ onFocusChange?: (focusedInput: 'startDate' | 'endDate' | null) => void;
209
+ lTBannerImage?: string;
210
+ lTBannerTitle?: string | default_2.ReactNode;
211
+ lTBannerDesc?: string | default_2.ReactNode;
212
+ lTBannerBgColor?: string;
213
+ thirdColumn?: string | default_2.ReactNode;
214
+ onMobileCloseClick: () => void;
215
+ onOutsideClick?: (e: unknown) => void;
216
+ onPrevMonthClick?: (e: unknown) => void;
217
+ onNextMonthClick?: (e: unknown) => void;
218
+ renderCalendarDay?: (props: CalendarDayShape) => default_2.ReactNode | undefined;
219
+ isDayBlocked?: ((day: Moment) => boolean) | undefined;
220
+ renderDayContents?: (day: Moment, modifiers: ModifiersShape) => default_2.ReactNode | null | undefined;
221
+ renderCalendarInfo?: () => default_2.ReactNode | null | undefined;
222
+ _daySize?: number;
223
+ _mobileDaySize?: number;
224
+ mobileBreakPoint?: number;
225
+ isAdjustHeightForViewport?: boolean;
226
+ }
227
+
228
+ export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
229
+
128
230
  export declare const Dialog: default_2.ForwardRefExoticComponent<DialogProps & default_2.RefAttributes<HTMLDivElement>>;
129
231
 
130
232
  export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
@@ -152,6 +254,14 @@ declare const gridVariants: (props?: ({
152
254
  placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
153
255
  } & ClassProp) | undefined) => string;
154
256
 
257
+ export declare const HandCursorTapIcon: FC<{
258
+ className?: string;
259
+ }>;
260
+
261
+ export declare const HouseRegularIcon: FC<{
262
+ className?: string;
263
+ }>;
264
+
155
265
  export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
156
266
 
157
267
  export declare interface IconButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -179,6 +289,94 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
179
289
  captionClass?: string | undefined;
180
290
  }
181
291
 
292
+ export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
293
+
294
+ export declare type ListingCardProps = {
295
+ images: string[];
296
+ title: string | default_2.ReactNode;
297
+ subtitle: string | default_2.ReactNode;
298
+ guests: number;
299
+ type: string;
300
+ sqft: string;
301
+ tags: TagProps[];
302
+ amenityTags?: TagProps[];
303
+ price: string;
304
+ isMonthlyPrice: boolean;
305
+ totalPrice: string;
306
+ onClick: () => void;
307
+ };
308
+
309
+ export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
310
+
311
+ export declare interface LongTermBannerProps {
312
+ image: string;
313
+ title: string | default_2.ReactNode;
314
+ desc: string | default_2.ReactNode;
315
+ size: 'small' | 'large';
316
+ bgColor: string;
317
+ className?: string;
318
+ }
319
+
320
+ export declare const MobileFilterMenu: default_2.ForwardRefExoticComponent<MobileFilterMenuProps & default_2.RefAttributes<HTMLDivElement>>;
321
+
322
+ export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
323
+ show: boolean;
324
+ handleClose?: () => void;
325
+ staticBackdrop?: boolean;
326
+ filterHeader?: string;
327
+ filterDescription?: string;
328
+ closeIcon?: string;
329
+ animation?: 'slideDown' | 'slideUp' | 'fadeIn' | 'none';
330
+ isSecondary?: boolean;
331
+ backgroundImage?: string;
332
+ marginTop?: string;
333
+ maxWidth?: string;
334
+ }
335
+
336
+ export declare const MobileMultiSelectFilterDropDown: default_2.ForwardRefExoticComponent<MobileMultiSelectFilterDropDownProps & default_2.RefAttributes<HTMLDivElement>>;
337
+
338
+ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttributes<HTMLDivElement> {
339
+ label?: string;
340
+ value?: Array<{
341
+ label: string;
342
+ }>;
343
+ options: Array<{
344
+ label: string;
345
+ }>;
346
+ onSelectionChange?: (selected: Array<{
347
+ label: string;
348
+ }>) => void;
349
+ placeholder?: string;
350
+ selected?: boolean;
351
+ setCheckBoxValue?: boolean;
352
+ dropdownIcon?: string;
353
+ error?: string;
354
+ noDataError?: string;
355
+ }
356
+
357
+ export declare const MobileSelectCardDropDown: default_2.ForwardRefExoticComponent<MobileSelectCardDropDownProps & default_2.RefAttributes<HTMLDivElement>>;
358
+
359
+ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HTMLDivElement> {
360
+ label?: string;
361
+ value?: string;
362
+ options: {
363
+ imgUrl: string;
364
+ label: string;
365
+ }[];
366
+ onSelectionChange?: (selected: unknown) => void;
367
+ placeholder?: string;
368
+ selected?: boolean;
369
+ dropdownIcon?: string;
370
+ error?: string;
371
+ noDataError?: string;
372
+ }
373
+
374
+ export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
375
+
376
+ export declare const QuestionMarkIcon: FC<{
377
+ className?: string;
378
+ }>;
379
+
182
380
  export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
183
381
 
184
382
  export declare interface RoundedProgressBarProps {
@@ -191,6 +389,28 @@ export declare interface RoundedProgressBarProps {
191
389
  textClass?: string;
192
390
  }
193
391
 
392
+ export declare const RulerRegularIcon: FC<{
393
+ className?: string;
394
+ }>;
395
+
396
+ export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
397
+
398
+ export declare type SlickImageCarouselProps = {
399
+ images: string[];
400
+ dots?: boolean;
401
+ infinite?: boolean;
402
+ className?: string;
403
+ onClick?: () => void;
404
+ };
405
+
406
+ export declare const StarLineIcon: FC<{
407
+ className?: string;
408
+ }>;
409
+
410
+ export declare const StarRegularIcon: FC<{
411
+ className?: string;
412
+ }>;
413
+
194
414
  export declare interface Step {
195
415
  number: number;
196
416
  title: string;
@@ -216,6 +436,11 @@ export declare interface SwitchProps {
216
436
  htmlId?: string;
217
437
  }
218
438
 
439
+ declare type TagProps = {
440
+ icon: default_2.ReactNode;
441
+ label: string;
442
+ };
443
+
219
444
  export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
220
445
 
221
446
  export declare interface TimerProps {
@@ -235,7 +460,53 @@ export declare interface ToggleCardProps extends HTMLAttributes<HTMLDivElement>
235
460
  htmlId?: string;
236
461
  }
237
462
 
238
- export declare const TopNavBar: default_2.ForwardRefExoticComponent<TopNavBarProps & default_2.RefAttributes<HTMLDivElement>>;
463
+ /**
464
+ * A tooltip component that display a floating tooltip with the `content` on hover of the `trigger` element for desktop
465
+ * and for mobile it displays a popover with the `content` on click of the `trigger` element
466
+ */
467
+ export declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
468
+
469
+ export declare interface TooltipProps {
470
+ /**
471
+ * Content of the tooltip
472
+ */
473
+ content: ReactNode;
474
+ /**
475
+ * Title of the tooltip that is displayed in the header of the tooltip
476
+ * Only applicable for mobile version of tooltip
477
+ * @default ''
478
+ */
479
+ title?: string;
480
+ /**
481
+ * The element that triggers the tooltip
482
+ */
483
+ trigger: ReactNode;
484
+ /**
485
+ * The placement of the floating tooltip. Only used in desktop version
486
+ * @default 'left'
487
+ */
488
+ placement?: Placement;
489
+ /**
490
+ * The trigger of the tooltip is wrapped in a container. This classname is added to that container
491
+ */
492
+ triggerContainerClassName?: string;
493
+ /**
494
+ * The content of the tooltip is wrapped in a container. This classname is added to that container
495
+ */
496
+ contentContainerClassname?: string;
497
+ /**
498
+ * When set true, tootlip will not be shown
499
+ * @default false
500
+ */
501
+ disabled?: boolean;
502
+ /**
503
+ * The offset of the tooltip from the trigger in px. Only applicable for desktop tooltip
504
+ * @dwefault 4
505
+ */
506
+ offset?: number;
507
+ }
508
+
509
+ export declare const TopNavBar: ForwardRefExoticComponent<TopNavBarProps & RefAttributes<HTMLDivElement>>;
239
510
 
240
511
  export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
241
512
  text?: string | ReactNode;