design-system-silkhaus 2.4.0-beta.mission-values.4 → 2.4.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 +38 -38
- package/dist/index.d.ts +118 -0
- package/dist/index.js +7298 -6944
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CalendarDayShape } from 'react-dates';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { FC } from 'react';
|
|
5
6
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -87,6 +88,14 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
87
88
|
contentClassName?: string;
|
|
88
89
|
}
|
|
89
90
|
|
|
91
|
+
export declare const ArrowRightIcon: FC<{
|
|
92
|
+
className?: string;
|
|
93
|
+
}>;
|
|
94
|
+
|
|
95
|
+
export declare const ArrowUndoIcon: FC<{
|
|
96
|
+
className?: string;
|
|
97
|
+
}>;
|
|
98
|
+
|
|
90
99
|
export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
|
|
91
100
|
|
|
92
101
|
declare interface AsteriskProps {
|
|
@@ -219,6 +228,8 @@ export declare const CloseIcon: FC<{
|
|
|
219
228
|
className?: string;
|
|
220
229
|
}>;
|
|
221
230
|
|
|
231
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
232
|
+
|
|
222
233
|
export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
223
234
|
|
|
224
235
|
declare interface DateRangePickerProps {
|
|
@@ -263,10 +274,14 @@ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
263
274
|
open: boolean;
|
|
264
275
|
}
|
|
265
276
|
|
|
277
|
+
export declare const DUE_TODAY = "due_today";
|
|
278
|
+
|
|
266
279
|
export declare const FilterIcon: FC<{
|
|
267
280
|
className?: string;
|
|
268
281
|
}>;
|
|
269
282
|
|
|
283
|
+
export declare const formatCurrency: (val: number, currency?: string) => string;
|
|
284
|
+
|
|
270
285
|
export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
271
286
|
|
|
272
287
|
export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
@@ -338,6 +353,13 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
338
353
|
onNumberUpdate?: (val: number | '') => void;
|
|
339
354
|
}
|
|
340
355
|
|
|
356
|
+
export declare const INSTALLMENT = "installment";
|
|
357
|
+
|
|
358
|
+
declare interface KeyMapping<SourceKey extends keyof PaymentRadioInputProps, DestinationKey extends string> {
|
|
359
|
+
sourceKey: SourceKey;
|
|
360
|
+
destinationKey: DestinationKey;
|
|
361
|
+
}
|
|
362
|
+
|
|
341
363
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
342
364
|
|
|
343
365
|
export declare type ListingCardProps = {
|
|
@@ -431,6 +453,100 @@ declare interface Option_2 {
|
|
|
431
453
|
}
|
|
432
454
|
export { Option_2 as Option }
|
|
433
455
|
|
|
456
|
+
declare const PaymentItem_2: default_2.FC<PaymentScheduleItemProps>;
|
|
457
|
+
export { PaymentItem_2 as PaymentItem }
|
|
458
|
+
|
|
459
|
+
export declare const PaymentRadioGroup: React.FC<PaymentRadioGroupProps>;
|
|
460
|
+
|
|
461
|
+
export declare interface PaymentRadioGroupInputProps {
|
|
462
|
+
id: string;
|
|
463
|
+
name: string;
|
|
464
|
+
label: string | React.ReactNode;
|
|
465
|
+
price: string | React.ReactNode;
|
|
466
|
+
description?: string | React.ReactNode;
|
|
467
|
+
selectionContent?: React.ReactNode;
|
|
468
|
+
className?: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export declare interface PaymentRadioGroupProps {
|
|
472
|
+
options: PaymentRadioGroupInputProps[];
|
|
473
|
+
className?: string;
|
|
474
|
+
defaultValue?: string;
|
|
475
|
+
keyMappings?: Array<KeyMapping<keyof PaymentRadioGroupInputProps, string>>;
|
|
476
|
+
onChange: (selectedOption: Record<string, string> | PaymentRadioGroupInputProps) => void;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export declare const PaymentRadioInput: default_2.FC<PaymentRadioInputProps>;
|
|
480
|
+
|
|
481
|
+
export declare interface PaymentRadioInputProps {
|
|
482
|
+
id: string;
|
|
483
|
+
name: string;
|
|
484
|
+
label: string | default_2.ReactNode;
|
|
485
|
+
price: string | default_2.ReactNode;
|
|
486
|
+
description?: string | default_2.ReactNode;
|
|
487
|
+
checked?: boolean;
|
|
488
|
+
selectionContent?: default_2.ReactNode;
|
|
489
|
+
className?: string;
|
|
490
|
+
onChange: (id: string) => void;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export declare const PaymentSchedule: default_2.FC<PaymentScheduleProps>;
|
|
494
|
+
|
|
495
|
+
export declare type PaymentScheduleItemProps = {
|
|
496
|
+
date: string;
|
|
497
|
+
title: string;
|
|
498
|
+
amount: string;
|
|
499
|
+
/**
|
|
500
|
+
* Define the status of the payment entry
|
|
501
|
+
* @default 'scheduled'
|
|
502
|
+
*/
|
|
503
|
+
state?: 'completed' | 'next-due' | 'scheduled' | 'failed';
|
|
504
|
+
/**
|
|
505
|
+
* Define the position of the payment entry in the payment schedule
|
|
506
|
+
* @default 'in-between'
|
|
507
|
+
*/
|
|
508
|
+
positionInSchedule?: 'first' | 'last' | 'in-between';
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
export declare const PaymentSchedulePreview: default_2.FC<PaymentSchedulePreviewProps>;
|
|
512
|
+
|
|
513
|
+
export declare const PaymentSchedulePreviewItem: default_2.FC<PaymentSchedulePreviewItemProps>;
|
|
514
|
+
|
|
515
|
+
export declare interface PaymentSchedulePreviewItemProps {
|
|
516
|
+
keyId: typeof DUE_TODAY | typeof SECURITY_DEPOSIT_REFUND | typeof INSTALLMENT;
|
|
517
|
+
displayName: string | default_2.ReactNode;
|
|
518
|
+
subText?: string | default_2.ReactNode;
|
|
519
|
+
amount: number;
|
|
520
|
+
className?: string;
|
|
521
|
+
currency: string;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export declare interface PaymentSchedulePreviewProps {
|
|
525
|
+
className?: string;
|
|
526
|
+
totalAmount: number;
|
|
527
|
+
currency: string;
|
|
528
|
+
dateFormat?: string;
|
|
529
|
+
popupDateFormat?: string;
|
|
530
|
+
items: {
|
|
531
|
+
keyId: typeof DUE_TODAY | typeof INSTALLMENT | typeof SECURITY_DEPOSIT_REFUND;
|
|
532
|
+
displayName?: string;
|
|
533
|
+
amount: number;
|
|
534
|
+
date: string;
|
|
535
|
+
className?: string;
|
|
536
|
+
subText?: string;
|
|
537
|
+
popupDate?: string;
|
|
538
|
+
popupTitle?: string;
|
|
539
|
+
}[];
|
|
540
|
+
noOfInstallmentsToShow?: number;
|
|
541
|
+
otherTotalCount?: number;
|
|
542
|
+
showDetailsModalTitle?: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export declare type PaymentScheduleProps = {
|
|
546
|
+
className?: string;
|
|
547
|
+
paymentItems: PaymentScheduleItemProps[];
|
|
548
|
+
};
|
|
549
|
+
|
|
434
550
|
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
435
551
|
|
|
436
552
|
export declare interface PriceRangeSliderProps {
|
|
@@ -518,6 +634,8 @@ export declare const Scrollbar: FC<ScrollbarProps>;
|
|
|
518
634
|
export declare interface ScrollbarProps extends Props {
|
|
519
635
|
}
|
|
520
636
|
|
|
637
|
+
export declare const SECURITY_DEPOSIT_REFUND = "security_deposit_refund";
|
|
638
|
+
|
|
521
639
|
export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
522
640
|
|
|
523
641
|
export declare type SlickImageCarouselProps = {
|