design-system-silkhaus 0.0.87-beta.calenderwithprices.1 → 0.0.87-beta.corporate-listing-card.0
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 +100 -33
- package/dist/index.d.ts +155 -1
- package/dist/index.js +26018 -18201
- package/dist/style.css +1 -1
- package/package.json +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CalendarDayShape } from 'react-dates';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { FC } from 'react';
|
|
3
4
|
import { ForwardRefExoticComponent } from 'react';
|
|
4
5
|
import { HTMLAttributes } from 'react';
|
|
5
6
|
import { ModifiersShape } from 'react-dates';
|
|
6
7
|
import { Moment } from 'moment';
|
|
8
|
+
import { Placement } from '@floating-ui/react';
|
|
9
|
+
import { PropsWithChildren } from 'react';
|
|
7
10
|
import { default as React_2 } from 'react';
|
|
8
11
|
import * as React_3 from 'react';
|
|
9
12
|
import { ReactNode } from 'react';
|
|
@@ -61,8 +64,20 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
61
64
|
show: boolean;
|
|
62
65
|
handleClose?: () => void;
|
|
63
66
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated
|
|
69
|
+
* Apply styles using `contentClassName` instead
|
|
70
|
+
*/
|
|
64
71
|
marginTop?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated
|
|
74
|
+
* Apply styles using `contentClassName` instead
|
|
75
|
+
*/
|
|
65
76
|
maxWidth?: string;
|
|
77
|
+
/**
|
|
78
|
+
* classes to apply on container that wraps the children passed to AnimatedModal
|
|
79
|
+
*/
|
|
80
|
+
contentClassName?: string;
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
export declare const Asterisk: React_2.ForwardRefExoticComponent<AsteriskProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
@@ -71,6 +86,23 @@ declare interface AsteriskProps {
|
|
|
71
86
|
className?: string;
|
|
72
87
|
}
|
|
73
88
|
|
|
89
|
+
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
|
|
91
|
+
export declare type BadgeProps = {
|
|
92
|
+
icon?: React_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
|
+
|
|
74
106
|
export declare const BookingQuoteCard: React_2.ForwardRefExoticComponent<BookingQuoteCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
75
107
|
|
|
76
108
|
export declare interface BookingQuoteCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -83,6 +115,7 @@ export declare interface BookingQuoteLineItemType {
|
|
|
83
115
|
display_name: string;
|
|
84
116
|
currency_converted_amount: string;
|
|
85
117
|
type: string;
|
|
118
|
+
description?: string;
|
|
86
119
|
}
|
|
87
120
|
|
|
88
121
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -118,6 +151,18 @@ declare const cardVariants: (props?: ({
|
|
|
118
151
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
119
152
|
} & ClassProp) | undefined) => string;
|
|
120
153
|
|
|
154
|
+
export declare const ChevronLeftRegularIcon: FC<{
|
|
155
|
+
className?: string;
|
|
156
|
+
}>;
|
|
157
|
+
|
|
158
|
+
export declare const ChevronRightRegularIcon: FC<{
|
|
159
|
+
className?: string;
|
|
160
|
+
}>;
|
|
161
|
+
|
|
162
|
+
export declare const CloseIcon: FC<{
|
|
163
|
+
className?: string;
|
|
164
|
+
}>;
|
|
165
|
+
|
|
121
166
|
export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRangePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
122
167
|
|
|
123
168
|
declare interface DateRangePickerProps {
|
|
@@ -151,8 +196,11 @@ declare interface DateRangePickerProps {
|
|
|
151
196
|
_daySize?: number;
|
|
152
197
|
_mobileDaySize?: number;
|
|
153
198
|
mobileBreakPoint?: number;
|
|
199
|
+
isAdjustHeightForViewport?: boolean;
|
|
154
200
|
}
|
|
155
201
|
|
|
202
|
+
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
203
|
+
|
|
156
204
|
export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
157
205
|
|
|
158
206
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -180,6 +228,14 @@ declare const gridVariants: (props?: ({
|
|
|
180
228
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
181
229
|
} & ClassProp) | undefined) => string;
|
|
182
230
|
|
|
231
|
+
export declare const HandCursorTapIcon: FC<{
|
|
232
|
+
className?: string;
|
|
233
|
+
}>;
|
|
234
|
+
|
|
235
|
+
export declare const HouseRegularIcon: FC<{
|
|
236
|
+
className?: string;
|
|
237
|
+
}>;
|
|
238
|
+
|
|
183
239
|
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
184
240
|
|
|
185
241
|
export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -207,6 +263,25 @@ export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInpu
|
|
|
207
263
|
captionClass?: string | undefined;
|
|
208
264
|
}
|
|
209
265
|
|
|
266
|
+
export declare const ListingCard: React_2.ForwardRefExoticComponent<ListingCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
267
|
+
|
|
268
|
+
export declare type ListingCardProps = {
|
|
269
|
+
images: string[];
|
|
270
|
+
title: string | React_2.ReactNode;
|
|
271
|
+
subtitle: string | React_2.ReactNode;
|
|
272
|
+
guests: number;
|
|
273
|
+
type: string;
|
|
274
|
+
sqft: string;
|
|
275
|
+
tags: TagProps[];
|
|
276
|
+
amenityTags?: TagProps[];
|
|
277
|
+
price: string;
|
|
278
|
+
slashedPrice?: string;
|
|
279
|
+
isMonthlyPrice: boolean;
|
|
280
|
+
totalPrice: string;
|
|
281
|
+
slashedTotalPrice?: string;
|
|
282
|
+
onClick: () => void;
|
|
283
|
+
};
|
|
284
|
+
|
|
210
285
|
export declare const LongTermBanner: React_2.ForwardRefExoticComponent<LongTermBannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
211
286
|
|
|
212
287
|
export declare interface LongTermBannerProps {
|
|
@@ -272,6 +347,12 @@ export declare interface MobileSelectCardDropDownProps extends HTMLAttributes<HT
|
|
|
272
347
|
noDataError?: string;
|
|
273
348
|
}
|
|
274
349
|
|
|
350
|
+
export declare const MobileTootip: FC<PropsWithChildren<TooltipProps>>;
|
|
351
|
+
|
|
352
|
+
export declare const QuestionMarkIcon: FC<{
|
|
353
|
+
className?: string;
|
|
354
|
+
}>;
|
|
355
|
+
|
|
275
356
|
export declare const RoundedProgressBar: React_2.ForwardRefExoticComponent<RoundedProgressBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
276
357
|
|
|
277
358
|
export declare interface RoundedProgressBarProps {
|
|
@@ -284,6 +365,28 @@ export declare interface RoundedProgressBarProps {
|
|
|
284
365
|
textClass?: string;
|
|
285
366
|
}
|
|
286
367
|
|
|
368
|
+
export declare const RulerRegularIcon: FC<{
|
|
369
|
+
className?: string;
|
|
370
|
+
}>;
|
|
371
|
+
|
|
372
|
+
export declare const SlickImageCarousel: React_2.ForwardRefExoticComponent<SlickImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
|
|
374
|
+
export declare type SlickImageCarouselProps = {
|
|
375
|
+
images: string[];
|
|
376
|
+
dots?: boolean;
|
|
377
|
+
infinite?: boolean;
|
|
378
|
+
className?: string;
|
|
379
|
+
onClick?: () => void;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export declare const StarLineIcon: FC<{
|
|
383
|
+
className?: string;
|
|
384
|
+
}>;
|
|
385
|
+
|
|
386
|
+
export declare const StarRegularIcon: FC<{
|
|
387
|
+
className?: string;
|
|
388
|
+
}>;
|
|
389
|
+
|
|
287
390
|
export declare interface Step {
|
|
288
391
|
number: number;
|
|
289
392
|
title: string;
|
|
@@ -309,6 +412,11 @@ export declare interface SwitchProps {
|
|
|
309
412
|
htmlId?: string;
|
|
310
413
|
}
|
|
311
414
|
|
|
415
|
+
declare type TagProps = {
|
|
416
|
+
icon: React_2.ReactNode;
|
|
417
|
+
label: string;
|
|
418
|
+
};
|
|
419
|
+
|
|
312
420
|
export declare const Timer: React_2.ForwardRefExoticComponent<TimerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
313
421
|
|
|
314
422
|
export declare interface TimerProps {
|
|
@@ -317,7 +425,53 @@ export declare interface TimerProps {
|
|
|
317
425
|
outerDivClass?: string;
|
|
318
426
|
}
|
|
319
427
|
|
|
320
|
-
|
|
428
|
+
/**
|
|
429
|
+
* A tooltip component that display a floating tooltip with the `content` on hover of the `trigger` element for desktop
|
|
430
|
+
* and for mobile it displays a popover with the `content` on click of the `trigger` element
|
|
431
|
+
*/
|
|
432
|
+
export declare const Tooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
433
|
+
|
|
434
|
+
export declare interface TooltipProps {
|
|
435
|
+
/**
|
|
436
|
+
* Content of the tooltip
|
|
437
|
+
*/
|
|
438
|
+
content: ReactNode;
|
|
439
|
+
/**
|
|
440
|
+
* Title of the tooltip that is displayed in the header of the tooltip
|
|
441
|
+
* Only applicable for mobile version of tooltip
|
|
442
|
+
* @default ''
|
|
443
|
+
*/
|
|
444
|
+
title?: string;
|
|
445
|
+
/**
|
|
446
|
+
* The element that triggers the tooltip
|
|
447
|
+
*/
|
|
448
|
+
trigger: ReactNode;
|
|
449
|
+
/**
|
|
450
|
+
* The placement of the floating tooltip. Only used in desktop version
|
|
451
|
+
* @default 'left'
|
|
452
|
+
*/
|
|
453
|
+
placement?: Placement;
|
|
454
|
+
/**
|
|
455
|
+
* The trigger of the tooltip is wrapped in a container. This classname is added to that container
|
|
456
|
+
*/
|
|
457
|
+
triggerContainerClassName?: string;
|
|
458
|
+
/**
|
|
459
|
+
* The content of the tooltip is wrapped in a container. This classname is added to that container
|
|
460
|
+
*/
|
|
461
|
+
contentContainerClassname?: string;
|
|
462
|
+
/**
|
|
463
|
+
* When set true, tootlip will not be shown
|
|
464
|
+
* @default false
|
|
465
|
+
*/
|
|
466
|
+
disabled?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* The offset of the tooltip from the trigger in px. Only applicable for desktop tooltip
|
|
469
|
+
* @dwefault 4
|
|
470
|
+
*/
|
|
471
|
+
offset?: number;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export declare const TopNavBar: ForwardRefExoticComponent<TopNavBarProps & RefAttributes<HTMLDivElement>>;
|
|
321
475
|
|
|
322
476
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
323
477
|
text?: string | ReactNode;
|