design-system-silkhaus 0.0.82 → 0.0.83-beta.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/README.md +10 -4
- package/dist/index.cjs +87 -15
- package/dist/index.d.ts +75 -32
- package/dist/index.js +18832 -1315
- package/dist/style.css +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
2
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
import
|
|
3
|
+
import { Moment } from 'moment';
|
|
4
|
+
import { default as React_2 } from 'react';
|
|
5
|
+
import * as React_3 from 'react';
|
|
5
6
|
import { ReactNode } from 'react';
|
|
6
7
|
import { VariantProps } from 'class-variance-authority';
|
|
7
8
|
|
|
8
|
-
export declare const Accordion:
|
|
9
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
9
10
|
|
|
10
11
|
export declare interface AccordionProps {
|
|
11
12
|
title: string | ReactNode;
|
|
@@ -20,7 +21,19 @@ export declare interface AccordionProps {
|
|
|
20
21
|
isExpanded?: boolean;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
export declare const
|
|
24
|
+
export declare const ActionFooter: React_2.ForwardRefExoticComponent<ActionFooterProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
export declare interface ActionFooterProps {
|
|
27
|
+
outerDivclassName?: string;
|
|
28
|
+
secondaryBtnClick: () => void;
|
|
29
|
+
primaryBtnClick: () => void;
|
|
30
|
+
primaryBtnDisabled?: boolean;
|
|
31
|
+
secondaryBtnDisabled?: boolean;
|
|
32
|
+
primaryBtnTxt: string | React_2.ReactNode;
|
|
33
|
+
secondaryBtnTxt: string | React_2.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare const AlertDialog: React_2.ForwardRefExoticComponent<AlertDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
24
37
|
|
|
25
38
|
export declare interface AlertDialogProps {
|
|
26
39
|
outerDivClassName?: string;
|
|
@@ -37,7 +50,7 @@ export declare interface AlertDialogProps {
|
|
|
37
50
|
onSecondaryBtnClick?: () => void;
|
|
38
51
|
}
|
|
39
52
|
|
|
40
|
-
export declare const AnimatedModal:
|
|
53
|
+
export declare const AnimatedModal: React_2.ForwardRefExoticComponent<AnimatedModalProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
41
54
|
|
|
42
55
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
43
56
|
show: boolean;
|
|
@@ -46,15 +59,15 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
46
59
|
animation?: 'slideDown' | 'fadeIn' | 'none';
|
|
47
60
|
}
|
|
48
61
|
|
|
49
|
-
export declare const Asterisk:
|
|
62
|
+
export declare const Asterisk: React_2.ForwardRefExoticComponent<AsteriskProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
50
63
|
|
|
51
64
|
declare interface AsteriskProps {
|
|
52
65
|
className?: string;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
export declare const BookingQuoteCard:
|
|
68
|
+
export declare const BookingQuoteCard: React_2.ForwardRefExoticComponent<BookingQuoteCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
56
69
|
|
|
57
|
-
export declare interface BookingQuoteCardProps extends
|
|
70
|
+
export declare interface BookingQuoteCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
58
71
|
items: BookingQuoteLineItemType[];
|
|
59
72
|
isExpandedInMobile?: boolean;
|
|
60
73
|
}
|
|
@@ -66,30 +79,30 @@ export declare interface BookingQuoteLineItemType {
|
|
|
66
79
|
type: string;
|
|
67
80
|
}
|
|
68
81
|
|
|
69
|
-
export declare const Button:
|
|
82
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
70
83
|
|
|
71
|
-
export declare interface ButtonProps extends
|
|
84
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
72
85
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
73
86
|
size?: 'small' | 'large';
|
|
74
87
|
disabled?: true | false;
|
|
75
88
|
}
|
|
76
89
|
|
|
77
|
-
export declare const Card:
|
|
90
|
+
export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
78
91
|
|
|
79
|
-
export declare const CardContent:
|
|
92
|
+
export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
80
93
|
|
|
81
|
-
export declare const CardDescription:
|
|
94
|
+
export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
82
95
|
|
|
83
|
-
export declare const CardFooter:
|
|
96
|
+
export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
84
97
|
|
|
85
|
-
export declare const CardHeader:
|
|
98
|
+
export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
86
99
|
|
|
87
|
-
declare interface CardProps extends
|
|
100
|
+
declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
|
|
88
101
|
asChild?: boolean;
|
|
89
102
|
as?: string;
|
|
90
103
|
}
|
|
91
104
|
|
|
92
|
-
export declare const CardTitle:
|
|
105
|
+
export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
93
106
|
|
|
94
107
|
export declare type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
95
108
|
|
|
@@ -97,15 +110,37 @@ declare const cardVariants: (props?: ({
|
|
|
97
110
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
98
111
|
} & ClassProp) | undefined) => string;
|
|
99
112
|
|
|
100
|
-
export declare const
|
|
113
|
+
export declare const CustomDateRangePicker: React_2.ForwardRefExoticComponent<CustomDateRangePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
114
|
+
|
|
115
|
+
declare interface CustomDateRangePickerProps {
|
|
116
|
+
startDatePlaceholderText?: string;
|
|
117
|
+
endDatePlaceholderText?: string;
|
|
118
|
+
onDatesChange?: (dates: {
|
|
119
|
+
startDate: Moment | null;
|
|
120
|
+
endDate: Moment | null;
|
|
121
|
+
}) => void;
|
|
122
|
+
initialStartDate?: Moment | null;
|
|
123
|
+
initialEndDate?: Moment | null;
|
|
124
|
+
focusedInput?: 'startDate' | 'endDate' | null;
|
|
125
|
+
onFocusChange?: (focusedInput: 'startDate' | 'endDate' | null) => void;
|
|
126
|
+
lTBannerImage?: string;
|
|
127
|
+
lTBannerTitle?: string | React_2.ReactNode;
|
|
128
|
+
lTBannerDesc?: string | React_2.ReactNode;
|
|
129
|
+
onMobileCloseClick?: () => void;
|
|
130
|
+
onOutsideClick?: (e: any) => void;
|
|
131
|
+
onPrevMonthClick?: (e: any) => void;
|
|
132
|
+
onNextMonthClick?: (e: any) => void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
101
136
|
|
|
102
137
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
103
138
|
open: boolean;
|
|
104
139
|
}
|
|
105
140
|
|
|
106
|
-
export declare const Grid:
|
|
141
|
+
export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
107
142
|
|
|
108
|
-
export declare interface GridProps extends
|
|
143
|
+
export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
109
144
|
asChild?: boolean;
|
|
110
145
|
}
|
|
111
146
|
|
|
@@ -124,15 +159,15 @@ declare const gridVariants: (props?: ({
|
|
|
124
159
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
125
160
|
} & ClassProp) | undefined) => string;
|
|
126
161
|
|
|
127
|
-
export declare const ImageCarousel:
|
|
162
|
+
export declare const ImageCarousel: React_2.ForwardRefExoticComponent<ImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
128
163
|
|
|
129
|
-
export declare interface ImageCarouselProps extends
|
|
164
|
+
export declare interface ImageCarouselProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
130
165
|
images: string[];
|
|
131
166
|
}
|
|
132
167
|
|
|
133
|
-
export declare const Input:
|
|
168
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
134
169
|
|
|
135
|
-
export declare interface InputProps extends
|
|
170
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
136
171
|
textarea?: true | false | undefined;
|
|
137
172
|
label?: string | undefined;
|
|
138
173
|
caption?: string | undefined;
|
|
@@ -143,7 +178,15 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
143
178
|
captionClass?: string | undefined;
|
|
144
179
|
}
|
|
145
180
|
|
|
146
|
-
export declare const
|
|
181
|
+
export declare const LongTermBanner: React_2.ForwardRefExoticComponent<LongTermBannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
182
|
+
|
|
183
|
+
export declare interface LongTermBannerProps {
|
|
184
|
+
image?: string;
|
|
185
|
+
title?: string | React_2.ReactNode;
|
|
186
|
+
desc?: string | React_2.ReactNode;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export declare const RoundedProgressBar: React_2.ForwardRefExoticComponent<RoundedProgressBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
147
190
|
|
|
148
191
|
export declare interface RoundedProgressBarProps {
|
|
149
192
|
progress: number;
|
|
@@ -163,7 +206,7 @@ export declare interface Step {
|
|
|
163
206
|
mobileNextTitle: string;
|
|
164
207
|
}
|
|
165
208
|
|
|
166
|
-
export declare const Stepper:
|
|
209
|
+
export declare const Stepper: React_2.ForwardRefExoticComponent<StepperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
167
210
|
|
|
168
211
|
export declare interface StepperProps {
|
|
169
212
|
steps: Step[];
|
|
@@ -171,16 +214,16 @@ export declare interface StepperProps {
|
|
|
171
214
|
outerMobileDivClass?: string;
|
|
172
215
|
}
|
|
173
216
|
|
|
174
|
-
export declare const Switch:
|
|
217
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
175
218
|
|
|
176
219
|
export declare interface SwitchProps {
|
|
177
220
|
checked: boolean;
|
|
178
|
-
onChange: (event:
|
|
221
|
+
onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
179
222
|
disabled?: boolean;
|
|
180
223
|
htmlId?: string;
|
|
181
224
|
}
|
|
182
225
|
|
|
183
|
-
export declare const Timer:
|
|
226
|
+
export declare const Timer: React_2.ForwardRefExoticComponent<TimerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
184
227
|
|
|
185
228
|
export declare interface TimerProps {
|
|
186
229
|
time: number;
|
|
@@ -188,7 +231,7 @@ export declare interface TimerProps {
|
|
|
188
231
|
outerDivClass?: string;
|
|
189
232
|
}
|
|
190
233
|
|
|
191
|
-
export declare const TopNavBar:
|
|
234
|
+
export declare const TopNavBar: React_2.ForwardRefExoticComponent<TopNavBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
192
235
|
|
|
193
236
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
194
237
|
text?: string | ReactNode;
|
|
@@ -197,7 +240,7 @@ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
197
240
|
direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
|
|
198
241
|
}
|
|
199
242
|
|
|
200
|
-
export declare const TopNavContainerMobile:
|
|
243
|
+
export declare const TopNavContainerMobile: React_2.ForwardRefExoticComponent<TopNavContainerMobileProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
201
244
|
|
|
202
245
|
export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
|
|
203
246
|
img: string;
|
|
@@ -209,7 +252,7 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
209
252
|
buttonText: string;
|
|
210
253
|
}
|
|
211
254
|
|
|
212
|
-
export declare const TwoColumnDialog:
|
|
255
|
+
export declare const TwoColumnDialog: React_2.ForwardRefExoticComponent<TwoColumnDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
213
256
|
|
|
214
257
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
215
258
|
img: string;
|