design-system-silkhaus 2.2.0-beta.travel-list.15 → 2.2.1
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 +15 -156
- package/dist/index.js +25483 -61743
- 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>>;
|
|
@@ -28,6 +26,12 @@ export declare interface AccordionProps {
|
|
|
28
26
|
accordionContentClass?: string | undefined;
|
|
29
27
|
isEnabled?: boolean;
|
|
30
28
|
isExpanded?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* @default true
|
|
31
|
+
* If false, accordion will collapse on clicking anywhere,
|
|
32
|
+
* otherwise it will only collapse on clicking the header
|
|
33
|
+
*/
|
|
34
|
+
isCollapseOnlyOnHeaderClick?: boolean;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
export declare const ActionFooter: default_2.ForwardRefExoticComponent<ActionFooterProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -63,7 +67,7 @@ export declare interface AlertDialogProps {
|
|
|
63
67
|
export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
|
|
64
68
|
|
|
65
69
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
66
|
-
show
|
|
70
|
+
show: boolean;
|
|
67
71
|
handleClose?: () => void;
|
|
68
72
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
69
73
|
/**
|
|
@@ -120,10 +124,6 @@ export declare interface BookingQuoteLineItemType {
|
|
|
120
124
|
description?: string;
|
|
121
125
|
}
|
|
122
126
|
|
|
123
|
-
export declare const BuildingIcon: FC<{
|
|
124
|
-
className?: string;
|
|
125
|
-
}>;
|
|
126
|
-
|
|
127
127
|
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
128
128
|
|
|
129
129
|
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -159,12 +159,16 @@ export declare interface ButtonsGroupSelectorProps extends HTMLAttributes<HTMLDi
|
|
|
159
159
|
minWidthButton?: string;
|
|
160
160
|
buttonWidth?: string;
|
|
161
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;
|
|
162
170
|
}
|
|
163
171
|
|
|
164
|
-
export declare const CalendarIcon: FC<{
|
|
165
|
-
className?: string;
|
|
166
|
-
}>;
|
|
167
|
-
|
|
168
172
|
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
169
173
|
|
|
170
174
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -198,14 +202,6 @@ export declare interface CheckboxProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
198
202
|
disabled?: boolean;
|
|
199
203
|
}
|
|
200
204
|
|
|
201
|
-
export declare const CheckmarkCircleIcon: FC<{
|
|
202
|
-
className?: string;
|
|
203
|
-
}>;
|
|
204
|
-
|
|
205
|
-
export declare const CheckmarkIcon: FC<{
|
|
206
|
-
className?: string;
|
|
207
|
-
}>;
|
|
208
|
-
|
|
209
205
|
export declare const ChevronLeftRegularIcon: FC<{
|
|
210
206
|
className?: string;
|
|
211
207
|
}>;
|
|
@@ -214,14 +210,6 @@ export declare const ChevronRightRegularIcon: FC<{
|
|
|
214
210
|
className?: string;
|
|
215
211
|
}>;
|
|
216
212
|
|
|
217
|
-
export declare const ClipboardIcon: FC<{
|
|
218
|
-
className?: string;
|
|
219
|
-
}>;
|
|
220
|
-
|
|
221
|
-
export declare const ClipboardSolidIcon: FC<{
|
|
222
|
-
className?: string;
|
|
223
|
-
}>;
|
|
224
|
-
|
|
225
213
|
export declare const CloseIcon: FC<{
|
|
226
214
|
className?: string;
|
|
227
215
|
}>;
|
|
@@ -262,12 +250,6 @@ declare interface DateRangePickerProps {
|
|
|
262
250
|
isAdjustHeightForViewport?: boolean;
|
|
263
251
|
}
|
|
264
252
|
|
|
265
|
-
export declare const DeleteIcon: FC<{
|
|
266
|
-
className?: string;
|
|
267
|
-
}>;
|
|
268
|
-
|
|
269
|
-
export declare const desktopMinWidth: number;
|
|
270
|
-
|
|
271
253
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
272
254
|
|
|
273
255
|
export declare const Dialog: ForwardRefExoticComponent<DialogProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -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> {
|
|
@@ -372,14 +350,8 @@ export declare type ListingCardProps = {
|
|
|
372
350
|
totalPrice: string;
|
|
373
351
|
slashedTotalPrice?: string;
|
|
374
352
|
onClick: () => void;
|
|
375
|
-
selectable?: boolean;
|
|
376
|
-
selectionState?: SelectionStateEnum;
|
|
377
353
|
};
|
|
378
354
|
|
|
379
|
-
export declare const LocationIcon: FC<{
|
|
380
|
-
className?: string;
|
|
381
|
-
}>;
|
|
382
|
-
|
|
383
355
|
export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
384
356
|
|
|
385
357
|
export declare interface LongTermBannerProps {
|
|
@@ -391,10 +363,6 @@ export declare interface LongTermBannerProps {
|
|
|
391
363
|
className?: string;
|
|
392
364
|
}
|
|
393
365
|
|
|
394
|
-
export declare const MagnifyGlassIcon: FC<{
|
|
395
|
-
className?: string;
|
|
396
|
-
}>;
|
|
397
|
-
|
|
398
366
|
export declare const MobileFilterMenu: ForwardRefExoticComponent<MobileFilterMenuProps & RefAttributes<HTMLDivElement>>;
|
|
399
367
|
|
|
400
368
|
export declare interface MobileFilterMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -421,14 +389,9 @@ export declare interface MobileMultiSelectFilterDropDownProps extends HTMLAttrib
|
|
|
421
389
|
placeholder?: string;
|
|
422
390
|
selected?: boolean;
|
|
423
391
|
setCheckBoxValue?: boolean;
|
|
424
|
-
/**
|
|
425
|
-
* @deprecated use `icon` instead to pass a react node
|
|
426
|
-
*/
|
|
427
392
|
dropdownIcon?: string;
|
|
428
|
-
icon?: React.ReactNode;
|
|
429
393
|
error?: string;
|
|
430
394
|
noDataError?: string;
|
|
431
|
-
disabled?: boolean;
|
|
432
395
|
}
|
|
433
396
|
|
|
434
397
|
export declare const MobileSelectCardDropDown: ForwardRefExoticComponent<MobileSelectCardDropDownProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -446,14 +409,9 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
|
|
|
446
409
|
}) => void;
|
|
447
410
|
placeholder?: string;
|
|
448
411
|
selected?: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* @deprecated use `icon` instead to pass a react node
|
|
451
|
-
*/
|
|
452
412
|
dropdownIcon?: string;
|
|
453
|
-
icon?: React.ReactNode;
|
|
454
413
|
error?: string;
|
|
455
414
|
noDataError?: string;
|
|
456
|
-
disabled?: boolean;
|
|
457
415
|
}
|
|
458
416
|
|
|
459
417
|
export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
|
|
@@ -468,18 +426,6 @@ declare interface Option_2 {
|
|
|
468
426
|
}
|
|
469
427
|
export { Option_2 as Option }
|
|
470
428
|
|
|
471
|
-
export declare const PencilIcon: FC<{
|
|
472
|
-
className?: string;
|
|
473
|
-
}>;
|
|
474
|
-
|
|
475
|
-
export declare const PlusCircleIcon: FC<{
|
|
476
|
-
className?: string;
|
|
477
|
-
}>;
|
|
478
|
-
|
|
479
|
-
export declare const PreviewIcon: FC<{
|
|
480
|
-
className?: string;
|
|
481
|
-
}>;
|
|
482
|
-
|
|
483
429
|
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
484
430
|
|
|
485
431
|
export declare interface PriceRangeSliderProps {
|
|
@@ -499,7 +445,6 @@ export declare interface PriceRangeSliderProps {
|
|
|
499
445
|
onPriceRangeChange?: (value: [number | '', number | '']) => void;
|
|
500
446
|
currency?: string;
|
|
501
447
|
value?: [number | '', number | ''];
|
|
502
|
-
disabled?: boolean;
|
|
503
448
|
}
|
|
504
449
|
|
|
505
450
|
export declare const PromoDialog: default_2.ForwardRefExoticComponent<PromoDialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -563,36 +508,6 @@ export declare const RulerRegularIcon: FC<{
|
|
|
563
508
|
|
|
564
509
|
export declare type ScreenSize = 'mobile' | 'tablet' | 'desktop';
|
|
565
510
|
|
|
566
|
-
export declare enum SelectionStateEnum {
|
|
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
|
-
}>;
|
|
595
|
-
|
|
596
511
|
export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
597
512
|
|
|
598
513
|
export declare type SlickImageCarouselProps = {
|
|
@@ -640,17 +555,11 @@ export declare interface SwitchProps {
|
|
|
640
555
|
htmlId?: string;
|
|
641
556
|
}
|
|
642
557
|
|
|
643
|
-
export declare const tabletMinWidth: number;
|
|
644
|
-
|
|
645
558
|
declare type TagProps = {
|
|
646
559
|
icon: default_2.ReactNode;
|
|
647
560
|
label: string;
|
|
648
561
|
};
|
|
649
562
|
|
|
650
|
-
export declare const ThreeDotsCircleIcon: FC<{
|
|
651
|
-
className?: string;
|
|
652
|
-
}>;
|
|
653
|
-
|
|
654
563
|
export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
655
564
|
|
|
656
565
|
export declare interface TimerProps {
|
|
@@ -659,12 +568,6 @@ export declare interface TimerProps {
|
|
|
659
568
|
outerDivClass?: string;
|
|
660
569
|
}
|
|
661
570
|
|
|
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
571
|
export declare const ToggleCard: default_2.ForwardRefExoticComponent<ToggleCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
669
572
|
|
|
670
573
|
export declare interface ToggleCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -743,50 +646,6 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
743
646
|
buttonText: string;
|
|
744
647
|
}
|
|
745
648
|
|
|
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
649
|
export declare const TwoColumnDialog: ForwardRefExoticComponent<TwoColumnDialogProps & RefAttributes<HTMLDivElement>>;
|
|
791
650
|
|
|
792
651
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|