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