design-system-silkhaus 0.0.85-beta.2 → 0.0.85-beta.4
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 +58 -33
- package/dist/index.d.ts +47 -46
- package/dist/index.js +8127 -7797
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +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
3
|
import { Moment } from 'moment';
|
|
5
|
-
import
|
|
4
|
+
import { default as React_2 } from 'react';
|
|
5
|
+
import * as React_3 from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
|
|
9
|
-
export declare const Accordion:
|
|
9
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<AccordionProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
|
|
11
11
|
export declare interface AccordionProps {
|
|
12
12
|
title: string | ReactNode;
|
|
@@ -21,7 +21,7 @@ export declare interface AccordionProps {
|
|
|
21
21
|
isExpanded?: boolean;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export declare const ActionFooter:
|
|
24
|
+
export declare const ActionFooter: React_2.ForwardRefExoticComponent<ActionFooterProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
|
|
26
26
|
export declare interface ActionFooterProps {
|
|
27
27
|
className?: string;
|
|
@@ -29,13 +29,13 @@ export declare interface ActionFooterProps {
|
|
|
29
29
|
primaryBtnClick: () => void;
|
|
30
30
|
primaryBtnDisabled?: boolean;
|
|
31
31
|
secondaryBtnDisabled?: boolean;
|
|
32
|
-
primaryBtnTxt: string |
|
|
33
|
-
secondaryBtnTxt?: string |
|
|
34
|
-
thirdColumn?:
|
|
32
|
+
primaryBtnTxt: string | React_2.ReactNode;
|
|
33
|
+
secondaryBtnTxt?: string | React_2.ReactNode;
|
|
34
|
+
thirdColumn?: React_2.ReactNode;
|
|
35
35
|
relevance: 'primary' | 'secondary';
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export declare const AlertDialog:
|
|
38
|
+
export declare const AlertDialog: React_2.ForwardRefExoticComponent<AlertDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
|
|
40
40
|
export declare interface AlertDialogProps {
|
|
41
41
|
outerDivClassName?: string;
|
|
@@ -52,7 +52,7 @@ export declare interface AlertDialogProps {
|
|
|
52
52
|
onSecondaryBtnClick?: () => void;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export declare const AnimatedModal:
|
|
55
|
+
export declare const AnimatedModal: React_2.ForwardRefExoticComponent<AnimatedModalProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
56
56
|
|
|
57
57
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
58
58
|
show: boolean;
|
|
@@ -61,15 +61,15 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
61
61
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export declare const Asterisk:
|
|
64
|
+
export declare const Asterisk: React_2.ForwardRefExoticComponent<AsteriskProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
65
65
|
|
|
66
66
|
declare interface AsteriskProps {
|
|
67
67
|
className?: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export declare const BookingQuoteCard:
|
|
70
|
+
export declare const BookingQuoteCard: React_2.ForwardRefExoticComponent<BookingQuoteCardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
71
71
|
|
|
72
|
-
export declare interface BookingQuoteCardProps extends
|
|
72
|
+
export declare interface BookingQuoteCardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
73
73
|
items: BookingQuoteLineItemType[];
|
|
74
74
|
isExpandedInMobile?: boolean;
|
|
75
75
|
}
|
|
@@ -81,32 +81,32 @@ export declare interface BookingQuoteLineItemType {
|
|
|
81
81
|
type: string;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export declare const Button:
|
|
84
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
85
85
|
|
|
86
|
-
export declare interface ButtonProps extends
|
|
86
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
87
87
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
88
88
|
size?: 'small' | 'large';
|
|
89
89
|
disabled?: true | false;
|
|
90
|
-
startIcon?:
|
|
91
|
-
endIcon?:
|
|
90
|
+
startIcon?: React_2.ReactNode;
|
|
91
|
+
endIcon?: React_2.ReactNode;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export declare const Card:
|
|
94
|
+
export declare const Card: React_3.ForwardRefExoticComponent<CardProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
95
95
|
|
|
96
|
-
export declare const CardContent:
|
|
96
|
+
export declare const CardContent: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
97
97
|
|
|
98
|
-
export declare const CardDescription:
|
|
98
|
+
export declare const CardDescription: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
99
99
|
|
|
100
|
-
export declare const CardFooter:
|
|
100
|
+
export declare const CardFooter: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
101
101
|
|
|
102
|
-
export declare const CardHeader:
|
|
102
|
+
export declare const CardHeader: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
103
103
|
|
|
104
|
-
declare interface CardProps extends
|
|
104
|
+
declare interface CardProps extends React_3.HTMLAttributes<HTMLDivElement>, CardVariantProps {
|
|
105
105
|
asChild?: boolean;
|
|
106
106
|
as?: string;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export declare const CardTitle:
|
|
109
|
+
export declare const CardTitle: React_3.ForwardRefExoticComponent<React_3.HTMLAttributes<HTMLDivElement> & React_3.RefAttributes<HTMLDivElement>>;
|
|
110
110
|
|
|
111
111
|
export declare type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
112
112
|
|
|
@@ -114,7 +114,7 @@ declare const cardVariants: (props?: ({
|
|
|
114
114
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
115
115
|
} & ClassProp) | undefined) => string;
|
|
116
116
|
|
|
117
|
-
export declare const DateRangePicker:
|
|
117
|
+
export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRangePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
118
118
|
|
|
119
119
|
declare interface DateRangePickerProps {
|
|
120
120
|
startDatePlaceholderText?: string;
|
|
@@ -128,23 +128,24 @@ declare interface DateRangePickerProps {
|
|
|
128
128
|
focusedInput?: 'startDate' | 'endDate' | null;
|
|
129
129
|
onFocusChange?: (focusedInput: 'startDate' | 'endDate' | null) => void;
|
|
130
130
|
lTBannerImage?: string;
|
|
131
|
-
lTBannerTitle?: string |
|
|
132
|
-
lTBannerDesc?: string |
|
|
131
|
+
lTBannerTitle?: string | React_2.ReactNode;
|
|
132
|
+
lTBannerDesc?: string | React_2.ReactNode;
|
|
133
|
+
lTBannerBgColor?: string;
|
|
133
134
|
onMobileCloseClick?: () => void;
|
|
134
135
|
onOutsideClick?: (e: any) => void;
|
|
135
136
|
onPrevMonthClick?: (e: any) => void;
|
|
136
137
|
onNextMonthClick?: (e: any) => void;
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
export declare const Dialog:
|
|
140
|
+
export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
140
141
|
|
|
141
142
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
142
143
|
open: boolean;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
export declare const Grid:
|
|
146
|
+
export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
146
147
|
|
|
147
|
-
export declare interface GridProps extends
|
|
148
|
+
export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
148
149
|
asChild?: boolean;
|
|
149
150
|
}
|
|
150
151
|
|
|
@@ -163,23 +164,23 @@ declare const gridVariants: (props?: ({
|
|
|
163
164
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
164
165
|
} & ClassProp) | undefined) => string;
|
|
165
166
|
|
|
166
|
-
export declare const IconButton:
|
|
167
|
+
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
167
168
|
|
|
168
|
-
export declare interface IconButtonProps extends
|
|
169
|
+
export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
169
170
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
170
171
|
size?: 'small' | 'large';
|
|
171
172
|
disabled?: true | false;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
export declare const ImageCarousel:
|
|
175
|
+
export declare const ImageCarousel: React_2.ForwardRefExoticComponent<ImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
175
176
|
|
|
176
|
-
export declare interface ImageCarouselProps extends
|
|
177
|
+
export declare interface ImageCarouselProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
177
178
|
images: string[];
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
export declare const Input:
|
|
181
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
181
182
|
|
|
182
|
-
export declare interface InputProps extends
|
|
183
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
183
184
|
textarea?: true | false | undefined;
|
|
184
185
|
label?: string | undefined;
|
|
185
186
|
caption?: string | undefined;
|
|
@@ -190,17 +191,17 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
190
191
|
captionClass?: string | undefined;
|
|
191
192
|
}
|
|
192
193
|
|
|
193
|
-
export declare const LongTermBanner:
|
|
194
|
+
export declare const LongTermBanner: React_2.ForwardRefExoticComponent<LongTermBannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
194
195
|
|
|
195
196
|
export declare interface LongTermBannerProps {
|
|
196
197
|
image: string;
|
|
197
|
-
title: string |
|
|
198
|
-
desc: string |
|
|
198
|
+
title: string | React_2.ReactNode;
|
|
199
|
+
desc: string | React_2.ReactNode;
|
|
199
200
|
size: 'small' | 'large';
|
|
200
201
|
bgColor: string;
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
export declare const RoundedProgressBar:
|
|
204
|
+
export declare const RoundedProgressBar: React_2.ForwardRefExoticComponent<RoundedProgressBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
204
205
|
|
|
205
206
|
export declare interface RoundedProgressBarProps {
|
|
206
207
|
progress: number;
|
|
@@ -220,7 +221,7 @@ export declare interface Step {
|
|
|
220
221
|
mobileNextTitle: string;
|
|
221
222
|
}
|
|
222
223
|
|
|
223
|
-
export declare const Stepper:
|
|
224
|
+
export declare const Stepper: React_2.ForwardRefExoticComponent<StepperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
224
225
|
|
|
225
226
|
export declare interface StepperProps {
|
|
226
227
|
steps: Step[];
|
|
@@ -228,16 +229,16 @@ export declare interface StepperProps {
|
|
|
228
229
|
outerMobileDivClass?: string;
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
export declare const Switch:
|
|
232
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
232
233
|
|
|
233
234
|
export declare interface SwitchProps {
|
|
234
235
|
checked: boolean;
|
|
235
|
-
onChange: (event:
|
|
236
|
+
onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
236
237
|
disabled?: boolean;
|
|
237
238
|
htmlId?: string;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
|
-
export declare const Timer:
|
|
241
|
+
export declare const Timer: React_2.ForwardRefExoticComponent<TimerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
241
242
|
|
|
242
243
|
export declare interface TimerProps {
|
|
243
244
|
time: number;
|
|
@@ -245,7 +246,7 @@ export declare interface TimerProps {
|
|
|
245
246
|
outerDivClass?: string;
|
|
246
247
|
}
|
|
247
248
|
|
|
248
|
-
export declare const TopNavBar:
|
|
249
|
+
export declare const TopNavBar: React_2.ForwardRefExoticComponent<TopNavBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
249
250
|
|
|
250
251
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
251
252
|
text?: string | ReactNode;
|
|
@@ -254,7 +255,7 @@ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
254
255
|
direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
|
|
255
256
|
}
|
|
256
257
|
|
|
257
|
-
export declare const TopNavContainerMobile:
|
|
258
|
+
export declare const TopNavContainerMobile: React_2.ForwardRefExoticComponent<TopNavContainerMobileProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
258
259
|
|
|
259
260
|
export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
|
|
260
261
|
img: string;
|
|
@@ -266,7 +267,7 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
266
267
|
buttonText: string;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
export declare const TwoColumnDialog:
|
|
270
|
+
export declare const TwoColumnDialog: React_2.ForwardRefExoticComponent<TwoColumnDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
270
271
|
|
|
271
272
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
272
273
|
img: string;
|