design-system-silkhaus 2.2.0-beta.travel-list.15 → 2.3.0-beta.monthly-payment.2
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 +47 -278
- package/dist/index.d.ts +107 -145
- package/dist/index.js +15860 -51800
- package/dist/style.css +1 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ import { PropsWithChildren } from 'react';
|
|
|
11
11
|
import * as React_2 from 'react';
|
|
12
12
|
import { ReactNode } from 'react';
|
|
13
13
|
import { RefAttributes } from 'react';
|
|
14
|
-
import { toast as toast_2 } from 'react-toastify';
|
|
15
|
-
import { ToastContainerProps as ToastContainerProps_2 } from 'react-toastify';
|
|
16
14
|
import { VariantProps } from 'class-variance-authority';
|
|
17
15
|
|
|
18
16
|
export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -63,7 +61,7 @@ export declare interface AlertDialogProps {
|
|
|
63
61
|
export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
|
|
64
62
|
|
|
65
63
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
66
|
-
show
|
|
64
|
+
show: boolean;
|
|
67
65
|
handleClose?: () => void;
|
|
68
66
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
69
67
|
/**
|
|
@@ -82,6 +80,14 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
82
80
|
contentClassName?: string;
|
|
83
81
|
}
|
|
84
82
|
|
|
83
|
+
export declare const ArrowRightIcon: FC<{
|
|
84
|
+
className?: string;
|
|
85
|
+
}>;
|
|
86
|
+
|
|
87
|
+
export declare const ArrowUndoIcon: FC<{
|
|
88
|
+
className?: string;
|
|
89
|
+
}>;
|
|
90
|
+
|
|
85
91
|
export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
|
|
86
92
|
|
|
87
93
|
declare interface AsteriskProps {
|
|
@@ -120,10 +126,6 @@ export declare interface BookingQuoteLineItemType {
|
|
|
120
126
|
description?: string;
|
|
121
127
|
}
|
|
122
128
|
|
|
123
|
-
export declare const BuildingIcon: FC<{
|
|
124
|
-
className?: string;
|
|
125
|
-
}>;
|
|
126
|
-
|
|
127
129
|
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
128
130
|
|
|
129
131
|
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -198,14 +200,6 @@ export declare interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
198
200
|
disabled?: boolean;
|
|
199
201
|
}
|
|
200
202
|
|
|
201
|
-
export declare const CheckmarkCircleIcon: FC<{
|
|
202
|
-
className?: string;
|
|
203
|
-
}>;
|
|
204
|
-
|
|
205
|
-
export declare const CheckmarkIcon: FC<{
|
|
206
|
-
className?: string;
|
|
207
|
-
}>;
|
|
208
|
-
|
|
209
203
|
export declare const ChevronLeftRegularIcon: FC<{
|
|
210
204
|
className?: string;
|
|
211
205
|
}>;
|
|
@@ -214,14 +208,6 @@ export declare const ChevronRightRegularIcon: FC<{
|
|
|
214
208
|
className?: string;
|
|
215
209
|
}>;
|
|
216
210
|
|
|
217
|
-
export declare const ClipboardIcon: FC<{
|
|
218
|
-
className?: string;
|
|
219
|
-
}>;
|
|
220
|
-
|
|
221
|
-
export declare const ClipboardSolidIcon: FC<{
|
|
222
|
-
className?: string;
|
|
223
|
-
}>;
|
|
224
|
-
|
|
225
211
|
export declare const CloseIcon: FC<{
|
|
226
212
|
className?: string;
|
|
227
213
|
}>;
|
|
@@ -262,12 +248,6 @@ declare interface DateRangePickerProps {
|
|
|
262
248
|
isAdjustHeightForViewport?: boolean;
|
|
263
249
|
}
|
|
264
250
|
|
|
265
|
-
export declare const DeleteIcon: FC<{
|
|
266
|
-
className?: string;
|
|
267
|
-
}>;
|
|
268
|
-
|
|
269
|
-
export declare const desktopMinWidth: number;
|
|
270
|
-
|
|
271
251
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
272
252
|
|
|
273
253
|
export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -276,6 +256,8 @@ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
276
256
|
open: boolean;
|
|
277
257
|
}
|
|
278
258
|
|
|
259
|
+
export declare const DUE_TODAY = "due_today";
|
|
260
|
+
|
|
279
261
|
export declare const FilterIcon: FC<{
|
|
280
262
|
className?: string;
|
|
281
263
|
}>;
|
|
@@ -323,10 +305,6 @@ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTM
|
|
|
323
305
|
images: string[];
|
|
324
306
|
}
|
|
325
307
|
|
|
326
|
-
export declare const InfoIcon: FC<{
|
|
327
|
-
className?: string;
|
|
328
|
-
}>;
|
|
329
|
-
|
|
330
308
|
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
331
309
|
|
|
332
310
|
export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
@@ -355,6 +333,13 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
355
333
|
onNumberUpdate?: (val: number | '') => void;
|
|
356
334
|
}
|
|
357
335
|
|
|
336
|
+
export declare const INSTALLMENT = "installment";
|
|
337
|
+
|
|
338
|
+
declare interface KeyMapping<SourceKey extends keyof PaymentRadioInputProps, DestinationKey extends string> {
|
|
339
|
+
sourceKey: SourceKey;
|
|
340
|
+
destinationKey: DestinationKey;
|
|
341
|
+
}
|
|
342
|
+
|
|
358
343
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
359
344
|
|
|
360
345
|
export declare type ListingCardProps = {
|
|
@@ -372,14 +357,8 @@ export declare type ListingCardProps = {
|
|
|
372
357
|
totalPrice: string;
|
|
373
358
|
slashedTotalPrice?: string;
|
|
374
359
|
onClick: () => void;
|
|
375
|
-
selectable?: boolean;
|
|
376
|
-
selectionState?: SelectionStateEnum;
|
|
377
360
|
};
|
|
378
361
|
|
|
379
|
-
export declare const LocationIcon: FC<{
|
|
380
|
-
className?: string;
|
|
381
|
-
}>;
|
|
382
|
-
|
|
383
362
|
export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
384
363
|
|
|
385
364
|
export declare interface LongTermBannerProps {
|
|
@@ -391,10 +370,6 @@ export declare interface LongTermBannerProps {
|
|
|
391
370
|
className?: string;
|
|
392
371
|
}
|
|
393
372
|
|
|
394
|
-
export declare const MagnifyGlassIcon: FC<{
|
|
395
|
-
className?: string;
|
|
396
|
-
}>;
|
|
397
|
-
|
|
398
373
|
export declare const MobileFilterMenu: ForwardRefExoticComponent<MobileFilterMenuProps & RefAttributes<HTMLDivElement>>;
|
|
399
374
|
|
|
400
375
|
export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -421,14 +396,9 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
|
|
|
421
396
|
placeholder?: string;
|
|
422
397
|
selected?: boolean;
|
|
423
398
|
setCheckBoxValue?: boolean;
|
|
424
|
-
/**
|
|
425
|
-
* @deprecated use `icon` instead to pass a react node
|
|
426
|
-
*/
|
|
427
399
|
dropdownIcon?: string;
|
|
428
|
-
icon?: React.ReactNode;
|
|
429
400
|
error?: string;
|
|
430
401
|
noDataError?: string;
|
|
431
|
-
disabled?: boolean;
|
|
432
402
|
}
|
|
433
403
|
|
|
434
404
|
export declare const MobileSelectCardDropDown: ForwardRefExoticComponent<MobileSelectCardDropDownProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -446,14 +416,9 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
|
|
|
446
416
|
}) => void;
|
|
447
417
|
placeholder?: string;
|
|
448
418
|
selected?: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* @deprecated use `icon` instead to pass a react node
|
|
451
|
-
*/
|
|
452
419
|
dropdownIcon?: string;
|
|
453
|
-
icon?: React.ReactNode;
|
|
454
420
|
error?: string;
|
|
455
421
|
noDataError?: string;
|
|
456
|
-
disabled?: boolean;
|
|
457
422
|
}
|
|
458
423
|
|
|
459
424
|
export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
|
|
@@ -468,17 +433,99 @@ declare interface Option_2 {
|
|
|
468
433
|
}
|
|
469
434
|
export { Option_2 as Option }
|
|
470
435
|
|
|
471
|
-
|
|
436
|
+
declare const PaymentItem_2: default_2.FC<PaymentScheduleItemProps>;
|
|
437
|
+
export { PaymentItem_2 as PaymentItem }
|
|
438
|
+
|
|
439
|
+
export declare const PaymentRadioGroup: React.FC<PaymentRadioGroupProps>;
|
|
440
|
+
|
|
441
|
+
export declare interface PaymentRadioGroupInputProps {
|
|
442
|
+
id: string;
|
|
443
|
+
name: string;
|
|
444
|
+
label: string | React.ReactNode;
|
|
445
|
+
price: string | React.ReactNode;
|
|
446
|
+
description?: string | React.ReactNode;
|
|
447
|
+
selectionContent?: React.ReactNode;
|
|
472
448
|
className?: string;
|
|
473
|
-
}
|
|
449
|
+
}
|
|
474
450
|
|
|
475
|
-
export declare
|
|
451
|
+
export declare interface PaymentRadioGroupProps {
|
|
452
|
+
options: PaymentRadioGroupInputProps[];
|
|
476
453
|
className?: string;
|
|
477
|
-
|
|
454
|
+
defaultValue?: string;
|
|
455
|
+
keyMappings?: Array<KeyMapping<keyof PaymentRadioGroupInputProps, string>>;
|
|
456
|
+
onChange: (selectedOption: Record<string, string> | PaymentRadioGroupInputProps) => void;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare const PaymentRadioInput: default_2.FC<PaymentRadioInputProps>;
|
|
478
460
|
|
|
479
|
-
export declare
|
|
461
|
+
export declare interface PaymentRadioInputProps {
|
|
462
|
+
id: string;
|
|
463
|
+
name: string;
|
|
464
|
+
label: string | default_2.ReactNode;
|
|
465
|
+
price: string | default_2.ReactNode;
|
|
466
|
+
description?: string | default_2.ReactNode;
|
|
467
|
+
checked?: boolean;
|
|
468
|
+
selectionContent?: default_2.ReactNode;
|
|
480
469
|
className?: string;
|
|
481
|
-
|
|
470
|
+
onChange: (id: string) => void;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export declare const PaymentSchedule: default_2.FC<PaymentScheduleProps>;
|
|
474
|
+
|
|
475
|
+
export declare type PaymentScheduleItemProps = {
|
|
476
|
+
date: string;
|
|
477
|
+
title: string;
|
|
478
|
+
amount: string;
|
|
479
|
+
/**
|
|
480
|
+
* Define the status of the payment entry
|
|
481
|
+
* @default 'scheduled'
|
|
482
|
+
*/
|
|
483
|
+
state?: 'completed' | 'next-due' | 'scheduled';
|
|
484
|
+
/**
|
|
485
|
+
* Define the position of the payment entry in the payment schedule
|
|
486
|
+
* @default 'in-between'
|
|
487
|
+
*/
|
|
488
|
+
positionInSchedule?: 'first' | 'last' | 'in-between';
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export declare const PaymentSchedulePreview: default_2.FC<PaymentSchedulePreviewProps>;
|
|
492
|
+
|
|
493
|
+
export declare const PaymentSchedulePreviewItem: default_2.FC<PaymentSchedulePreviewItemProps>;
|
|
494
|
+
|
|
495
|
+
export declare interface PaymentSchedulePreviewItemProps {
|
|
496
|
+
keyId: typeof DUE_TODAY | typeof SECURITY_DEPOSIT_REFUND | typeof INSTALLMENT;
|
|
497
|
+
displayName: string | default_2.ReactNode;
|
|
498
|
+
subText?: string | default_2.ReactNode;
|
|
499
|
+
amount: number;
|
|
500
|
+
className?: string;
|
|
501
|
+
currency: string;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export declare interface PaymentSchedulePreviewProps {
|
|
505
|
+
className?: string;
|
|
506
|
+
totalAmount: number;
|
|
507
|
+
currency: string;
|
|
508
|
+
dateFormat?: string;
|
|
509
|
+
popupDateFormat?: string;
|
|
510
|
+
items: {
|
|
511
|
+
keyId: typeof DUE_TODAY | typeof INSTALLMENT | typeof SECURITY_DEPOSIT_REFUND;
|
|
512
|
+
displayName?: string;
|
|
513
|
+
amount: number;
|
|
514
|
+
date: string;
|
|
515
|
+
className?: string;
|
|
516
|
+
subText?: string;
|
|
517
|
+
popupDate?: string;
|
|
518
|
+
popupTitle?: string;
|
|
519
|
+
}[];
|
|
520
|
+
noOfInstallmentsToShow?: number;
|
|
521
|
+
otherTotalCount?: number;
|
|
522
|
+
showDetailsModalTitle?: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare type PaymentScheduleProps = {
|
|
526
|
+
className?: string;
|
|
527
|
+
paymentItems: PaymentScheduleItemProps[];
|
|
528
|
+
};
|
|
482
529
|
|
|
483
530
|
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
484
531
|
|
|
@@ -499,7 +546,6 @@ export declare interface PriceRangeSliderProps {
|
|
|
499
546
|
onPriceRangeChange?: (value: [number | '', number | '']) => void;
|
|
500
547
|
currency?: string;
|
|
501
548
|
value?: [number | '', number | ''];
|
|
502
|
-
disabled?: boolean;
|
|
503
549
|
}
|
|
504
550
|
|
|
505
551
|
export declare const PromoDialog: default_2.ForwardRefExoticComponent<PromoDialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -563,35 +609,7 @@ export declare const RulerRegularIcon: FC<{
|
|
|
563
609
|
|
|
564
610
|
export declare type ScreenSize = 'mobile' | 'tablet' | 'desktop';
|
|
565
611
|
|
|
566
|
-
export declare
|
|
567
|
-
None = "none",
|
|
568
|
-
Selected = "selected",
|
|
569
|
-
Added = "added"
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
export declare const SelectPopover: ForwardRefExoticComponent<SelectPopoverProps & RefAttributes<HTMLDivElement>>;
|
|
573
|
-
|
|
574
|
-
export declare interface SelectPopoverProps {
|
|
575
|
-
showPopup?: boolean;
|
|
576
|
-
mobileContainerClassname?: string;
|
|
577
|
-
desktopContainerClassname?: string;
|
|
578
|
-
maxWidth?: string;
|
|
579
|
-
options?: Array<{
|
|
580
|
-
label: string;
|
|
581
|
-
icon: string | ReactNode;
|
|
582
|
-
value: string;
|
|
583
|
-
}>;
|
|
584
|
-
onOptionSelected?: (value: string) => void;
|
|
585
|
-
handleClose?: () => void;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export declare const SendIcon: FC<{
|
|
589
|
-
className?: string;
|
|
590
|
-
}>;
|
|
591
|
-
|
|
592
|
-
export declare const ShareIcon: FC<{
|
|
593
|
-
className?: string;
|
|
594
|
-
}>;
|
|
612
|
+
export declare const SECURITY_DEPOSIT_REFUND = "security_deposit_refund";
|
|
595
613
|
|
|
596
614
|
export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
597
615
|
|
|
@@ -640,17 +658,11 @@ export declare interface SwitchProps {
|
|
|
640
658
|
htmlId?: string;
|
|
641
659
|
}
|
|
642
660
|
|
|
643
|
-
export declare const tabletMinWidth: number;
|
|
644
|
-
|
|
645
661
|
declare type TagProps = {
|
|
646
662
|
icon: default_2.ReactNode;
|
|
647
663
|
label: string;
|
|
648
664
|
};
|
|
649
665
|
|
|
650
|
-
export declare const ThreeDotsCircleIcon: FC<{
|
|
651
|
-
className?: string;
|
|
652
|
-
}>;
|
|
653
|
-
|
|
654
666
|
export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
655
667
|
|
|
656
668
|
export declare interface TimerProps {
|
|
@@ -659,12 +671,6 @@ export declare interface TimerProps {
|
|
|
659
671
|
outerDivClass?: string;
|
|
660
672
|
}
|
|
661
673
|
|
|
662
|
-
export declare const toast: typeof toast_2;
|
|
663
|
-
|
|
664
|
-
export declare const ToastContainer: FC<ToastContainerProps>;
|
|
665
|
-
|
|
666
|
-
export declare type ToastContainerProps = ToastContainerProps_2;
|
|
667
|
-
|
|
668
674
|
export declare const ToggleCard: default_2.ForwardRefExoticComponent<ToggleCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
669
675
|
|
|
670
676
|
export declare interface ToggleCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -743,50 +749,6 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
743
749
|
buttonText: string;
|
|
744
750
|
}
|
|
745
751
|
|
|
746
|
-
export declare const TrashIcon: FC<{
|
|
747
|
-
className?: string;
|
|
748
|
-
}>;
|
|
749
|
-
|
|
750
|
-
export declare const TravelList: default_2.ForwardRefExoticComponent<TravelListProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
751
|
-
|
|
752
|
-
export declare const TravelListItem: default_2.ForwardRefExoticComponent<TravelListItemProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
753
|
-
|
|
754
|
-
export declare interface TravelListItemProps {
|
|
755
|
-
title?: string;
|
|
756
|
-
homeCount?: number;
|
|
757
|
-
location?: string;
|
|
758
|
-
dates?: string;
|
|
759
|
-
budget?: string;
|
|
760
|
-
shareLink?: string;
|
|
761
|
-
onClickEditBtn?: () => void;
|
|
762
|
-
onClickViewBtn?: () => void;
|
|
763
|
-
onClickShareBtn?: () => void;
|
|
764
|
-
hideEdit?: boolean;
|
|
765
|
-
hideShare?: boolean;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export declare const TravelListPropertyItem: default_2.ForwardRefExoticComponent<TravelListPropertyItemProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
769
|
-
|
|
770
|
-
export declare interface TravelListPropertyItemProps {
|
|
771
|
-
className?: string;
|
|
772
|
-
title?: string;
|
|
773
|
-
neighborhood?: string;
|
|
774
|
-
bedroom?: string;
|
|
775
|
-
area?: string;
|
|
776
|
-
price?: string;
|
|
777
|
-
guests?: string;
|
|
778
|
-
imageUrl?: string;
|
|
779
|
-
onOpenLinkClick?: () => void;
|
|
780
|
-
onDeleteBtnClick?: () => void;
|
|
781
|
-
isUnavailable?: boolean;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
export declare interface TravelListProps extends default_2.PropsWithChildren {
|
|
785
|
-
items?: TravelListItemProps[];
|
|
786
|
-
hideShare?: boolean;
|
|
787
|
-
hideEdit?: boolean;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
752
|
export declare const TwoColumnDialog: ForwardRefExoticComponent<TwoColumnDialogProps & RefAttributes<HTMLDivElement>>;
|
|
791
753
|
|
|
792
754
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|