design-system-silkhaus 2.3.0-beta.monthly-payment.6 → 2.3.0-beta.travel-list.17

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,6 +1,5 @@
1
1
  import { CalendarDayShape } from 'react-dates';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
- import { ClassValue } from 'clsx';
4
3
  import { default as default_2 } from 'react';
5
4
  import { FC } from 'react';
6
5
  import { ForwardRefExoticComponent } from 'react';
@@ -12,6 +11,8 @@ import { PropsWithChildren } from 'react';
12
11
  import * as React_2 from 'react';
13
12
  import { ReactNode } from 'react';
14
13
  import { RefAttributes } from 'react';
14
+ import { toast as toast_2 } from 'react-toastify';
15
+ import { ToastContainerProps as ToastContainerProps_2 } from 'react-toastify';
15
16
  import { VariantProps } from 'class-variance-authority';
16
17
 
17
18
  export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -29,6 +30,10 @@ export declare interface AccordionProps {
29
30
  isExpanded?: boolean;
30
31
  }
31
32
 
33
+ declare type ActionButtonProps = {
34
+ label: string;
35
+ } & ButtonProps;
36
+
32
37
  export declare const ActionFooter: default_2.ForwardRefExoticComponent<ActionFooterProps & default_2.RefAttributes<HTMLDivElement>>;
33
38
 
34
39
  export declare interface ActionFooterProps {
@@ -62,7 +67,7 @@ export declare interface AlertDialogProps {
62
67
  export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
63
68
 
64
69
  export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
65
- show: boolean;
70
+ show?: boolean;
66
71
  handleClose?: () => void;
67
72
  animation?: 'slideUp' | 'slideDown' | 'fadeIn';
68
73
  /**
@@ -81,14 +86,6 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
81
86
  contentClassName?: string;
82
87
  }
83
88
 
84
- export declare const ArrowRightIcon: FC<{
85
- className?: string;
86
- }>;
87
-
88
- export declare const ArrowUndoIcon: FC<{
89
- className?: string;
90
- }>;
91
-
92
89
  export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
93
90
 
94
91
  declare interface AsteriskProps {
@@ -127,6 +124,10 @@ export declare interface BookingQuoteLineItemType {
127
124
  description?: string;
128
125
  }
129
126
 
127
+ export declare const BuildingIcon: FC<{
128
+ className?: string;
129
+ }>;
130
+
130
131
  export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
131
132
 
132
133
  export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -162,6 +163,14 @@ export declare interface ButtonsGroupSelectorProps extends HTMLAttributes<HTMLDi
162
163
  minWidthButton?: string;
163
164
  buttonWidth?: string;
164
165
  minSelectionError?: string;
166
+ /**
167
+ * className for the wrapping div on the buttons
168
+ */
169
+ buttonsContainerClassName?: string;
170
+ /**
171
+ * className to applied on each button
172
+ */
173
+ buttonClassName?: string;
165
174
  }
166
175
 
167
176
  export declare const CalendarIcon: FC<{
@@ -201,6 +210,14 @@ export declare interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
201
210
  disabled?: boolean;
202
211
  }
203
212
 
213
+ export declare const CheckmarkCircleIcon: FC<{
214
+ className?: string;
215
+ }>;
216
+
217
+ export declare const CheckmarkIcon: FC<{
218
+ className?: string;
219
+ }>;
220
+
204
221
  export declare const ChevronLeftRegularIcon: FC<{
205
222
  className?: string;
206
223
  }>;
@@ -209,11 +226,17 @@ export declare const ChevronRightRegularIcon: FC<{
209
226
  className?: string;
210
227
  }>;
211
228
 
212
- export declare const CloseIcon: FC<{
229
+ export declare const ClipboardIcon: FC<{
213
230
  className?: string;
214
231
  }>;
215
232
 
216
- export declare function cn(...inputs: ClassValue[]): string;
233
+ export declare const ClipboardSolidIcon: FC<{
234
+ className?: string;
235
+ }>;
236
+
237
+ export declare const CloseIcon: FC<{
238
+ className?: string;
239
+ }>;
217
240
 
218
241
  export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
219
242
 
@@ -251,6 +274,12 @@ declare interface DateRangePickerProps {
251
274
  isAdjustHeightForViewport?: boolean;
252
275
  }
253
276
 
277
+ export declare const DeleteIcon: FC<{
278
+ className?: string;
279
+ }>;
280
+
281
+ export declare const desktopMinWidth: number;
282
+
254
283
  export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
255
284
 
256
285
  export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
@@ -259,14 +288,26 @@ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
259
288
  open: boolean;
260
289
  }
261
290
 
262
- export declare const DUE_TODAY = "due_today";
291
+ export declare const DialogV2: FC<DialogV2Props>;
292
+
293
+ export declare type DialogV2Props = {
294
+ className?: string;
295
+ title: string;
296
+ subTitle?: string;
297
+ dialogContainerClassname?: string;
298
+ dialogHeaderClassname?: string;
299
+ dialogBodyClassname?: string;
300
+ dialogFooterClassname?: string;
301
+ dialogBody: ReactNode;
302
+ show: boolean;
303
+ onClose?: () => void;
304
+ actionButtons?: ActionButtonProps[];
305
+ };
263
306
 
264
307
  export declare const FilterIcon: FC<{
265
308
  className?: string;
266
309
  }>;
267
310
 
268
- export declare const formatCurrency: (val: number, currency?: string) => string;
269
-
270
311
  export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
271
312
 
272
313
  export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
@@ -310,6 +351,10 @@ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTM
310
351
  images: string[];
311
352
  }
312
353
 
354
+ export declare const InfoIcon: FC<{
355
+ className?: string;
356
+ }>;
357
+
313
358
  export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
314
359
 
315
360
  export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
@@ -338,13 +383,6 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
338
383
  onNumberUpdate?: (val: number | '') => void;
339
384
  }
340
385
 
341
- export declare const INSTALLMENT = "installment";
342
-
343
- declare interface KeyMapping<SourceKey extends keyof PaymentRadioInputProps, DestinationKey extends string> {
344
- sourceKey: SourceKey;
345
- destinationKey: DestinationKey;
346
- }
347
-
348
386
  export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
349
387
 
350
388
  export declare type ListingCardProps = {
@@ -362,8 +400,14 @@ export declare type ListingCardProps = {
362
400
  totalPrice: string;
363
401
  slashedTotalPrice?: string;
364
402
  onClick: () => void;
403
+ selectable?: boolean;
404
+ selectionState?: SelectionStateEnum;
365
405
  };
366
406
 
407
+ export declare const LocationIcon: FC<{
408
+ className?: string;
409
+ }>;
410
+
367
411
  export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
368
412
 
369
413
  export declare interface LongTermBannerProps {
@@ -375,6 +419,10 @@ export declare interface LongTermBannerProps {
375
419
  className?: string;
376
420
  }
377
421
 
422
+ export declare const MagnifyGlassIcon: FC<{
423
+ className?: string;
424
+ }>;
425
+
378
426
  export declare const MobileFilterMenu: ForwardRefExoticComponent<MobileFilterMenuProps & RefAttributes<HTMLDivElement>>;
379
427
 
380
428
  export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
@@ -401,9 +449,14 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
401
449
  placeholder?: string;
402
450
  selected?: boolean;
403
451
  setCheckBoxValue?: boolean;
452
+ /**
453
+ * @deprecated use `icon` instead to pass a react node
454
+ */
404
455
  dropdownIcon?: string;
456
+ icon?: React.ReactNode;
405
457
  error?: string;
406
458
  noDataError?: string;
459
+ disabled?: boolean;
407
460
  }
408
461
 
409
462
  export declare const MobileSelectCardDropDown: ForwardRefExoticComponent<MobileSelectCardDropDownProps & RefAttributes<HTMLDivElement>>;
@@ -421,9 +474,14 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
421
474
  }) => void;
422
475
  placeholder?: string;
423
476
  selected?: boolean;
477
+ /**
478
+ * @deprecated use `icon` instead to pass a react node
479
+ */
424
480
  dropdownIcon?: string;
481
+ icon?: React.ReactNode;
425
482
  error?: string;
426
483
  noDataError?: string;
484
+ disabled?: boolean;
427
485
  }
428
486
 
429
487
  export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
@@ -438,99 +496,17 @@ declare interface Option_2 {
438
496
  }
439
497
  export { Option_2 as Option }
440
498
 
441
- declare const PaymentItem_2: default_2.FC<PaymentScheduleItemProps>;
442
- export { PaymentItem_2 as PaymentItem }
443
-
444
- export declare const PaymentRadioGroup: React.FC<PaymentRadioGroupProps>;
445
-
446
- export declare interface PaymentRadioGroupInputProps {
447
- id: string;
448
- name: string;
449
- label: string | React.ReactNode;
450
- price: string | React.ReactNode;
451
- description?: string | React.ReactNode;
452
- selectionContent?: React.ReactNode;
453
- className?: string;
454
- }
455
-
456
- export declare interface PaymentRadioGroupProps {
457
- options: PaymentRadioGroupInputProps[];
458
- className?: string;
459
- defaultValue?: string;
460
- keyMappings?: Array<KeyMapping<keyof PaymentRadioGroupInputProps, string>>;
461
- onChange: (selectedOption: Record<string, string> | PaymentRadioGroupInputProps) => void;
462
- }
463
-
464
- export declare const PaymentRadioInput: default_2.FC<PaymentRadioInputProps>;
465
-
466
- export declare interface PaymentRadioInputProps {
467
- id: string;
468
- name: string;
469
- label: string | default_2.ReactNode;
470
- price: string | default_2.ReactNode;
471
- description?: string | default_2.ReactNode;
472
- checked?: boolean;
473
- selectionContent?: default_2.ReactNode;
499
+ export declare const PencilIcon: FC<{
474
500
  className?: string;
475
- onChange: (id: string) => void;
476
- }
477
-
478
- export declare const PaymentSchedule: default_2.FC<PaymentScheduleProps>;
479
-
480
- export declare type PaymentScheduleItemProps = {
481
- date: string;
482
- title: string;
483
- amount: string;
484
- /**
485
- * Define the status of the payment entry
486
- * @default 'scheduled'
487
- */
488
- state?: 'completed' | 'next-due' | 'scheduled' | 'failed';
489
- /**
490
- * Define the position of the payment entry in the payment schedule
491
- * @default 'in-between'
492
- */
493
- positionInSchedule?: 'first' | 'last' | 'in-between';
494
- };
495
-
496
- export declare const PaymentSchedulePreview: default_2.FC<PaymentSchedulePreviewProps>;
497
-
498
- export declare const PaymentSchedulePreviewItem: default_2.FC<PaymentSchedulePreviewItemProps>;
499
-
500
- export declare interface PaymentSchedulePreviewItemProps {
501
- keyId: typeof DUE_TODAY | typeof SECURITY_DEPOSIT_REFUND | typeof INSTALLMENT;
502
- displayName: string | default_2.ReactNode;
503
- subText?: string | default_2.ReactNode;
504
- amount: number;
505
- className?: string;
506
- currency: string;
507
- }
501
+ }>;
508
502
 
509
- export declare interface PaymentSchedulePreviewProps {
503
+ export declare const PlusCircleIcon: FC<{
510
504
  className?: string;
511
- totalAmount: number;
512
- currency: string;
513
- dateFormat?: string;
514
- popupDateFormat?: string;
515
- items: {
516
- keyId: typeof DUE_TODAY | typeof INSTALLMENT | typeof SECURITY_DEPOSIT_REFUND;
517
- displayName?: string;
518
- amount: number;
519
- date: string;
520
- className?: string;
521
- subText?: string;
522
- popupDate?: string;
523
- popupTitle?: string;
524
- }[];
525
- noOfInstallmentsToShow?: number;
526
- otherTotalCount?: number;
527
- showDetailsModalTitle?: string;
528
- }
505
+ }>;
529
506
 
530
- export declare type PaymentScheduleProps = {
507
+ export declare const PreviewIcon: FC<{
531
508
  className?: string;
532
- paymentItems: PaymentScheduleItemProps[];
533
- };
509
+ }>;
534
510
 
535
511
  export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
536
512
 
@@ -551,6 +527,7 @@ export declare interface PriceRangeSliderProps {
551
527
  onPriceRangeChange?: (value: [number | '', number | '']) => void;
552
528
  currency?: string;
553
529
  value?: [number | '', number | ''];
530
+ disabled?: boolean;
554
531
  }
555
532
 
556
533
  export declare const PromoDialog: default_2.ForwardRefExoticComponent<PromoDialogProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -614,7 +591,35 @@ export declare const RulerRegularIcon: FC<{
614
591
 
615
592
  export declare type ScreenSize = 'mobile' | 'tablet' | 'desktop';
616
593
 
617
- export declare const SECURITY_DEPOSIT_REFUND = "security_deposit_refund";
594
+ export declare enum SelectionStateEnum {
595
+ None = "none",
596
+ Selected = "selected",
597
+ Added = "added"
598
+ }
599
+
600
+ export declare const SelectPopover: ForwardRefExoticComponent<SelectPopoverProps & RefAttributes<HTMLDivElement>>;
601
+
602
+ export declare interface SelectPopoverProps {
603
+ showPopup?: boolean;
604
+ mobileContainerClassname?: string;
605
+ desktopContainerClassname?: string;
606
+ maxWidth?: string;
607
+ options?: Array<{
608
+ label: string;
609
+ icon: string | ReactNode;
610
+ value: string;
611
+ }>;
612
+ onOptionSelected?: (value: string) => void;
613
+ handleClose?: () => void;
614
+ }
615
+
616
+ export declare const SendIcon: FC<{
617
+ className?: string;
618
+ }>;
619
+
620
+ export declare const ShareIcon: FC<{
621
+ className?: string;
622
+ }>;
618
623
 
619
624
  export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
620
625
 
@@ -663,11 +668,17 @@ export declare interface SwitchProps {
663
668
  htmlId?: string;
664
669
  }
665
670
 
671
+ export declare const tabletMinWidth: number;
672
+
666
673
  declare type TagProps = {
667
674
  icon: default_2.ReactNode;
668
675
  label: string;
669
676
  };
670
677
 
678
+ export declare const ThreeDotsCircleIcon: FC<{
679
+ className?: string;
680
+ }>;
681
+
671
682
  export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
672
683
 
673
684
  export declare interface TimerProps {
@@ -676,6 +687,12 @@ export declare interface TimerProps {
676
687
  outerDivClass?: string;
677
688
  }
678
689
 
690
+ export declare const toast: typeof toast_2;
691
+
692
+ export declare const ToastContainer: FC<ToastContainerProps>;
693
+
694
+ export declare type ToastContainerProps = ToastContainerProps_2;
695
+
679
696
  export declare const ToggleCard: default_2.ForwardRefExoticComponent<ToggleCardProps & default_2.RefAttributes<HTMLDivElement>>;
680
697
 
681
698
  export declare interface ToggleCardProps extends HTMLAttributes<HTMLDivElement> {
@@ -754,6 +771,50 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
754
771
  buttonText: string;
755
772
  }
756
773
 
774
+ export declare const TrashIcon: FC<{
775
+ className?: string;
776
+ }>;
777
+
778
+ export declare const TravelList: default_2.ForwardRefExoticComponent<TravelListProps & default_2.RefAttributes<HTMLDivElement>>;
779
+
780
+ export declare const TravelListItem: default_2.ForwardRefExoticComponent<TravelListItemProps & default_2.RefAttributes<HTMLDivElement>>;
781
+
782
+ export declare interface TravelListItemProps {
783
+ title?: string;
784
+ homeCount?: number;
785
+ location?: string;
786
+ dates?: string;
787
+ budget?: string;
788
+ shareLink?: string;
789
+ onClickEditBtn?: () => void;
790
+ onClickViewBtn?: () => void;
791
+ onClickShareBtn?: () => void;
792
+ hideEdit?: boolean;
793
+ hideShare?: boolean;
794
+ }
795
+
796
+ export declare const TravelListPropertyItem: default_2.ForwardRefExoticComponent<TravelListPropertyItemProps & default_2.RefAttributes<HTMLDivElement>>;
797
+
798
+ export declare interface TravelListPropertyItemProps {
799
+ className?: string;
800
+ title?: string;
801
+ neighborhood?: string;
802
+ bedroom?: string;
803
+ area?: string;
804
+ price?: string;
805
+ guests?: string;
806
+ imageUrl?: string;
807
+ onOpenLinkClick?: () => void;
808
+ onDeleteBtnClick?: () => void;
809
+ isUnavailable?: boolean;
810
+ }
811
+
812
+ export declare interface TravelListProps extends default_2.PropsWithChildren {
813
+ items?: TravelListItemProps[];
814
+ hideShare?: boolean;
815
+ hideEdit?: boolean;
816
+ }
817
+
757
818
  export declare const TwoColumnDialog: ForwardRefExoticComponent<TwoColumnDialogProps & RefAttributes<HTMLDivElement>>;
758
819
 
759
820
  export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {