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

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>>;
@@ -62,7 +63,7 @@ export declare interface AlertDialogProps {
62
63
  export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
63
64
 
64
65
  export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
65
- show: boolean;
66
+ show?: boolean;
66
67
  handleClose?: () => void;
67
68
  animation?: 'slideUp' | 'slideDown' | 'fadeIn';
68
69
  /**
@@ -81,14 +82,6 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
81
82
  contentClassName?: string;
82
83
  }
83
84
 
84
- export declare const ArrowRightIcon: FC<{
85
- className?: string;
86
- }>;
87
-
88
- export declare const ArrowUndoIcon: FC<{
89
- className?: string;
90
- }>;
91
-
92
85
  export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
93
86
 
94
87
  declare interface AsteriskProps {
@@ -127,6 +120,10 @@ export declare interface BookingQuoteLineItemType {
127
120
  description?: string;
128
121
  }
129
122
 
123
+ export declare const BuildingIcon: FC<{
124
+ className?: string;
125
+ }>;
126
+
130
127
  export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
131
128
 
132
129
  export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -162,6 +159,14 @@ export declare interface ButtonsGroupSelectorProps extends HTMLAttributes<HTMLDi
162
159
  minWidthButton?: string;
163
160
  buttonWidth?: string;
164
161
  minSelectionError?: string;
162
+ /**
163
+ * className for the wrapping div on the buttons
164
+ */
165
+ buttonsContainerClassName?: string;
166
+ /**
167
+ * className to applied on each button
168
+ */
169
+ buttonClassName?: string;
165
170
  }
166
171
 
167
172
  export declare const CalendarIcon: FC<{
@@ -201,6 +206,14 @@ export declare interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
201
206
  disabled?: boolean;
202
207
  }
203
208
 
209
+ export declare const CheckmarkCircleIcon: FC<{
210
+ className?: string;
211
+ }>;
212
+
213
+ export declare const CheckmarkIcon: FC<{
214
+ className?: string;
215
+ }>;
216
+
204
217
  export declare const ChevronLeftRegularIcon: FC<{
205
218
  className?: string;
206
219
  }>;
@@ -209,11 +222,17 @@ export declare const ChevronRightRegularIcon: FC<{
209
222
  className?: string;
210
223
  }>;
211
224
 
212
- export declare const CloseIcon: FC<{
225
+ export declare const ClipboardIcon: FC<{
226
+ className?: string;
227
+ }>;
228
+
229
+ export declare const ClipboardSolidIcon: FC<{
213
230
  className?: string;
214
231
  }>;
215
232
 
216
- export declare function cn(...inputs: ClassValue[]): string;
233
+ export declare const CloseIcon: FC<{
234
+ className?: string;
235
+ }>;
217
236
 
218
237
  export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
219
238
 
@@ -251,6 +270,12 @@ declare interface DateRangePickerProps {
251
270
  isAdjustHeightForViewport?: boolean;
252
271
  }
253
272
 
273
+ export declare const DeleteIcon: FC<{
274
+ className?: string;
275
+ }>;
276
+
277
+ export declare const desktopMinWidth: number;
278
+
254
279
  export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
255
280
 
256
281
  export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
@@ -259,14 +284,10 @@ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
259
284
  open: boolean;
260
285
  }
261
286
 
262
- export declare const DUE_TODAY = "due_today";
263
-
264
287
  export declare const FilterIcon: FC<{
265
288
  className?: string;
266
289
  }>;
267
290
 
268
- export declare const formatCurrency: (val: number, currency?: string) => string;
269
-
270
291
  export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
271
292
 
272
293
  export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
@@ -310,6 +331,10 @@ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTM
310
331
  images: string[];
311
332
  }
312
333
 
334
+ export declare const InfoIcon: FC<{
335
+ className?: string;
336
+ }>;
337
+
313
338
  export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
314
339
 
315
340
  export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
@@ -338,13 +363,6 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
338
363
  onNumberUpdate?: (val: number | '') => void;
339
364
  }
340
365
 
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
366
  export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
349
367
 
350
368
  export declare type ListingCardProps = {
@@ -362,8 +380,14 @@ export declare type ListingCardProps = {
362
380
  totalPrice: string;
363
381
  slashedTotalPrice?: string;
364
382
  onClick: () => void;
383
+ selectable?: boolean;
384
+ selectionState?: SelectionStateEnum;
365
385
  };
366
386
 
387
+ export declare const LocationIcon: FC<{
388
+ className?: string;
389
+ }>;
390
+
367
391
  export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
368
392
 
369
393
  export declare interface LongTermBannerProps {
@@ -375,6 +399,10 @@ export declare interface LongTermBannerProps {
375
399
  className?: string;
376
400
  }
377
401
 
402
+ export declare const MagnifyGlassIcon: FC<{
403
+ className?: string;
404
+ }>;
405
+
378
406
  export declare const MobileFilterMenu: ForwardRefExoticComponent<MobileFilterMenuProps & RefAttributes<HTMLDivElement>>;
379
407
 
380
408
  export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
@@ -401,9 +429,14 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
401
429
  placeholder?: string;
402
430
  selected?: boolean;
403
431
  setCheckBoxValue?: boolean;
432
+ /**
433
+ * @deprecated use `icon` instead to pass a react node
434
+ */
404
435
  dropdownIcon?: string;
436
+ icon?: React.ReactNode;
405
437
  error?: string;
406
438
  noDataError?: string;
439
+ disabled?: boolean;
407
440
  }
408
441
 
409
442
  export declare const MobileSelectCardDropDown: ForwardRefExoticComponent<MobileSelectCardDropDownProps & RefAttributes<HTMLDivElement>>;
@@ -421,9 +454,14 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
421
454
  }) => void;
422
455
  placeholder?: string;
423
456
  selected?: boolean;
457
+ /**
458
+ * @deprecated use `icon` instead to pass a react node
459
+ */
424
460
  dropdownIcon?: string;
461
+ icon?: React.ReactNode;
425
462
  error?: string;
426
463
  noDataError?: string;
464
+ disabled?: boolean;
427
465
  }
428
466
 
429
467
  export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
@@ -438,99 +476,17 @@ declare interface Option_2 {
438
476
  }
439
477
  export { Option_2 as Option }
440
478
 
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;
474
- 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;
479
+ export declare const PencilIcon: FC<{
505
480
  className?: string;
506
- currency: string;
507
- }
481
+ }>;
508
482
 
509
- export declare interface PaymentSchedulePreviewProps {
483
+ export declare const PlusCircleIcon: FC<{
510
484
  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
- }
485
+ }>;
529
486
 
530
- export declare type PaymentScheduleProps = {
487
+ export declare const PreviewIcon: FC<{
531
488
  className?: string;
532
- paymentItems: PaymentScheduleItemProps[];
533
- };
489
+ }>;
534
490
 
535
491
  export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
536
492
 
@@ -551,6 +507,7 @@ export declare interface PriceRangeSliderProps {
551
507
  onPriceRangeChange?: (value: [number | '', number | '']) => void;
552
508
  currency?: string;
553
509
  value?: [number | '', number | ''];
510
+ disabled?: boolean;
554
511
  }
555
512
 
556
513
  export declare const PromoDialog: default_2.ForwardRefExoticComponent<PromoDialogProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -614,7 +571,35 @@ export declare const RulerRegularIcon: FC<{
614
571
 
615
572
  export declare type ScreenSize = 'mobile' | 'tablet' | 'desktop';
616
573
 
617
- export declare const SECURITY_DEPOSIT_REFUND = "security_deposit_refund";
574
+ export declare enum SelectionStateEnum {
575
+ None = "none",
576
+ Selected = "selected",
577
+ Added = "added"
578
+ }
579
+
580
+ export declare const SelectPopover: ForwardRefExoticComponent<SelectPopoverProps & RefAttributes<HTMLDivElement>>;
581
+
582
+ export declare interface SelectPopoverProps {
583
+ showPopup?: boolean;
584
+ mobileContainerClassname?: string;
585
+ desktopContainerClassname?: string;
586
+ maxWidth?: string;
587
+ options?: Array<{
588
+ label: string;
589
+ icon: string | ReactNode;
590
+ value: string;
591
+ }>;
592
+ onOptionSelected?: (value: string) => void;
593
+ handleClose?: () => void;
594
+ }
595
+
596
+ export declare const SendIcon: FC<{
597
+ className?: string;
598
+ }>;
599
+
600
+ export declare const ShareIcon: FC<{
601
+ className?: string;
602
+ }>;
618
603
 
619
604
  export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
620
605
 
@@ -663,11 +648,17 @@ export declare interface SwitchProps {
663
648
  htmlId?: string;
664
649
  }
665
650
 
651
+ export declare const tabletMinWidth: number;
652
+
666
653
  declare type TagProps = {
667
654
  icon: default_2.ReactNode;
668
655
  label: string;
669
656
  };
670
657
 
658
+ export declare const ThreeDotsCircleIcon: FC<{
659
+ className?: string;
660
+ }>;
661
+
671
662
  export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
672
663
 
673
664
  export declare interface TimerProps {
@@ -676,6 +667,12 @@ export declare interface TimerProps {
676
667
  outerDivClass?: string;
677
668
  }
678
669
 
670
+ export declare const toast: typeof toast_2;
671
+
672
+ export declare const ToastContainer: FC<ToastContainerProps>;
673
+
674
+ export declare type ToastContainerProps = ToastContainerProps_2;
675
+
679
676
  export declare const ToggleCard: default_2.ForwardRefExoticComponent<ToggleCardProps & default_2.RefAttributes<HTMLDivElement>>;
680
677
 
681
678
  export declare interface ToggleCardProps extends HTMLAttributes<HTMLDivElement> {
@@ -754,6 +751,50 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
754
751
  buttonText: string;
755
752
  }
756
753
 
754
+ export declare const TrashIcon: FC<{
755
+ className?: string;
756
+ }>;
757
+
758
+ export declare const TravelList: default_2.ForwardRefExoticComponent<TravelListProps & default_2.RefAttributes<HTMLDivElement>>;
759
+
760
+ export declare const TravelListItem: default_2.ForwardRefExoticComponent<TravelListItemProps & default_2.RefAttributes<HTMLDivElement>>;
761
+
762
+ export declare interface TravelListItemProps {
763
+ title?: string;
764
+ homeCount?: number;
765
+ location?: string;
766
+ dates?: string;
767
+ budget?: string;
768
+ shareLink?: string;
769
+ onClickEditBtn?: () => void;
770
+ onClickViewBtn?: () => void;
771
+ onClickShareBtn?: () => void;
772
+ hideEdit?: boolean;
773
+ hideShare?: boolean;
774
+ }
775
+
776
+ export declare const TravelListPropertyItem: default_2.ForwardRefExoticComponent<TravelListPropertyItemProps & default_2.RefAttributes<HTMLDivElement>>;
777
+
778
+ export declare interface TravelListPropertyItemProps {
779
+ className?: string;
780
+ title?: string;
781
+ neighborhood?: string;
782
+ bedroom?: string;
783
+ area?: string;
784
+ price?: string;
785
+ guests?: string;
786
+ imageUrl?: string;
787
+ onOpenLinkClick?: () => void;
788
+ onDeleteBtnClick?: () => void;
789
+ isUnavailable?: boolean;
790
+ }
791
+
792
+ export declare interface TravelListProps extends default_2.PropsWithChildren {
793
+ items?: TravelListItemProps[];
794
+ hideShare?: boolean;
795
+ hideEdit?: boolean;
796
+ }
797
+
757
798
  export declare const TwoColumnDialog: ForwardRefExoticComponent<TwoColumnDialogProps & RefAttributes<HTMLDivElement>>;
758
799
 
759
800
  export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {