design-system-silkhaus 2.4.0-beta.mission-values.3 → 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 +122 -0
- package/dist/index.js +7310 -6938
- 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 {
|
|
@@ -170,6 +179,10 @@ export declare interface ButtonsGroupSelectorProps extends HTMLAttributes<HTMLDi
|
|
|
170
179
|
buttonClassName?: string;
|
|
171
180
|
}
|
|
172
181
|
|
|
182
|
+
export declare const CalendarIcon: FC<{
|
|
183
|
+
className?: string;
|
|
184
|
+
}>;
|
|
185
|
+
|
|
173
186
|
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
174
187
|
|
|
175
188
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -215,6 +228,8 @@ export declare const CloseIcon: FC<{
|
|
|
215
228
|
className?: string;
|
|
216
229
|
}>;
|
|
217
230
|
|
|
231
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
232
|
+
|
|
218
233
|
export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
219
234
|
|
|
220
235
|
declare interface DateRangePickerProps {
|
|
@@ -259,10 +274,14 @@ export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
259
274
|
open: boolean;
|
|
260
275
|
}
|
|
261
276
|
|
|
277
|
+
export declare const DUE_TODAY = "due_today";
|
|
278
|
+
|
|
262
279
|
export declare const FilterIcon: FC<{
|
|
263
280
|
className?: string;
|
|
264
281
|
}>;
|
|
265
282
|
|
|
283
|
+
export declare const formatCurrency: (val: number, currency?: string) => string;
|
|
284
|
+
|
|
266
285
|
export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
267
286
|
|
|
268
287
|
export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
@@ -334,6 +353,13 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
334
353
|
onNumberUpdate?: (val: number | '') => void;
|
|
335
354
|
}
|
|
336
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
|
+
|
|
337
363
|
export declare const ListingCard: default_2.ForwardRefExoticComponent<ListingCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
338
364
|
|
|
339
365
|
export declare type ListingCardProps = {
|
|
@@ -427,6 +453,100 @@ declare interface Option_2 {
|
|
|
427
453
|
}
|
|
428
454
|
export { Option_2 as Option }
|
|
429
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
|
+
|
|
430
550
|
export declare const PriceRangeSlider: default_2.FC<PriceRangeSliderProps>;
|
|
431
551
|
|
|
432
552
|
export declare interface PriceRangeSliderProps {
|
|
@@ -514,6 +634,8 @@ export declare const Scrollbar: FC<ScrollbarProps>;
|
|
|
514
634
|
export declare interface ScrollbarProps extends Props {
|
|
515
635
|
}
|
|
516
636
|
|
|
637
|
+
export declare const SECURITY_DEPOSIT_REFUND = "security_deposit_refund";
|
|
638
|
+
|
|
517
639
|
export declare const SlickImageCarousel: default_2.ForwardRefExoticComponent<SlickImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
518
640
|
|
|
519
641
|
export declare type SlickImageCarouselProps = {
|