design-system-silkhaus 0.0.85-beta.10 → 0.0.85-beta.11
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 +33 -58
- package/dist/index.d.ts +50 -50
- package/dist/index.js +7668 -8007
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { CalendarDayShape } from 'react-dates';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
3
4
|
import { HTMLAttributes } from 'react';
|
|
4
5
|
import { ModifiersShape } from 'react-dates';
|
|
5
6
|
import { Moment } from 'moment';
|
|
6
|
-
import
|
|
7
|
-
import * as React_3 from 'react';
|
|
7
|
+
import * as React_2 from 'react';
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
|
|
11
|
-
export declare const Accordion:
|
|
11
|
+
export declare const Accordion: default_2.ForwardRefExoticComponent<AccordionProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
|
|
13
13
|
export declare interface AccordionProps {
|
|
14
14
|
title: string | ReactNode;
|
|
@@ -23,7 +23,7 @@ export declare interface AccordionProps {
|
|
|
23
23
|
isExpanded?: boolean;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export declare const ActionFooter:
|
|
26
|
+
export declare const ActionFooter: default_2.ForwardRefExoticComponent<ActionFooterProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
|
|
28
28
|
export declare interface ActionFooterProps {
|
|
29
29
|
className?: string;
|
|
@@ -31,12 +31,12 @@ export declare interface ActionFooterProps {
|
|
|
31
31
|
primaryBtnClick: () => void;
|
|
32
32
|
primaryBtnDisabled?: boolean;
|
|
33
33
|
secondaryBtnDisabled?: boolean;
|
|
34
|
-
primaryBtnTxt: string |
|
|
35
|
-
secondaryBtnTxt?: string |
|
|
36
|
-
thirdColumn?:
|
|
34
|
+
primaryBtnTxt: string | default_2.ReactNode;
|
|
35
|
+
secondaryBtnTxt?: string | default_2.ReactNode;
|
|
36
|
+
thirdColumn?: default_2.ReactNode;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export declare const AlertDialog:
|
|
39
|
+
export declare const AlertDialog: default_2.ForwardRefExoticComponent<AlertDialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
40
40
|
|
|
41
41
|
export declare interface AlertDialogProps {
|
|
42
42
|
outerDivClassName?: string;
|
|
@@ -53,7 +53,7 @@ export declare interface AlertDialogProps {
|
|
|
53
53
|
onSecondaryBtnClick?: () => void;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export declare const AnimatedModal:
|
|
56
|
+
export declare const AnimatedModal: default_2.ForwardRefExoticComponent<AnimatedModalProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
57
57
|
|
|
58
58
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
59
59
|
show: boolean;
|
|
@@ -62,15 +62,15 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
62
62
|
animation?: 'slideUp' | 'slideDown' | 'fadeIn';
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export declare const Asterisk:
|
|
65
|
+
export declare const Asterisk: default_2.ForwardRefExoticComponent<AsteriskProps & default_2.RefAttributes<HTMLSpanElement>>;
|
|
66
66
|
|
|
67
67
|
declare interface AsteriskProps {
|
|
68
68
|
className?: string;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export declare const BookingQuoteCard:
|
|
71
|
+
export declare const BookingQuoteCard: default_2.ForwardRefExoticComponent<BookingQuoteCardProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
72
72
|
|
|
73
|
-
export declare interface BookingQuoteCardProps extends
|
|
73
|
+
export declare interface BookingQuoteCardProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
74
74
|
items: BookingQuoteLineItemType[];
|
|
75
75
|
isExpandedInMobile?: boolean;
|
|
76
76
|
}
|
|
@@ -82,32 +82,32 @@ export declare interface BookingQuoteLineItemType {
|
|
|
82
82
|
type: string;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export declare const Button:
|
|
85
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
86
86
|
|
|
87
|
-
export declare interface ButtonProps extends
|
|
87
|
+
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
88
88
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
89
89
|
size?: 'small' | 'large';
|
|
90
90
|
disabled?: true | false;
|
|
91
|
-
startIcon?:
|
|
92
|
-
endIcon?:
|
|
91
|
+
startIcon?: default_2.ReactNode;
|
|
92
|
+
endIcon?: default_2.ReactNode;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export declare const Card:
|
|
95
|
+
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
96
96
|
|
|
97
|
-
export declare const CardContent:
|
|
97
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
98
98
|
|
|
99
|
-
export declare const CardDescription:
|
|
99
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
100
100
|
|
|
101
|
-
export declare const CardFooter:
|
|
101
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
102
102
|
|
|
103
|
-
export declare const CardHeader:
|
|
103
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
104
104
|
|
|
105
|
-
declare interface CardProps extends
|
|
105
|
+
declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement>, CardVariantProps {
|
|
106
106
|
asChild?: boolean;
|
|
107
107
|
as?: string;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
export declare const CardTitle:
|
|
110
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
111
111
|
|
|
112
112
|
export declare type CardVariantProps = VariantProps<typeof cardVariants>;
|
|
113
113
|
|
|
@@ -115,7 +115,7 @@ declare const cardVariants: (props?: ({
|
|
|
115
115
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
116
116
|
} & ClassProp) | undefined) => string;
|
|
117
117
|
|
|
118
|
-
export declare const DateRangePicker:
|
|
118
|
+
export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
119
119
|
|
|
120
120
|
declare interface DateRangePickerProps {
|
|
121
121
|
startDatePlaceholderText?: string;
|
|
@@ -133,31 +133,31 @@ declare interface DateRangePickerProps {
|
|
|
133
133
|
focusedInput?: 'startDate' | 'endDate' | null;
|
|
134
134
|
onFocusChange?: (focusedInput: 'startDate' | 'endDate' | null) => void;
|
|
135
135
|
lTBannerImage?: string;
|
|
136
|
-
lTBannerTitle?: string |
|
|
137
|
-
lTBannerDesc?: string |
|
|
136
|
+
lTBannerTitle?: string | default_2.ReactNode;
|
|
137
|
+
lTBannerDesc?: string | default_2.ReactNode;
|
|
138
138
|
lTBannerBgColor?: string;
|
|
139
|
-
thirdColumn?: string |
|
|
139
|
+
thirdColumn?: string | default_2.ReactNode;
|
|
140
140
|
onMobileCloseClick: () => void;
|
|
141
141
|
onOutsideClick?: (e: unknown) => void;
|
|
142
142
|
onPrevMonthClick?: (e: unknown) => void;
|
|
143
143
|
onNextMonthClick?: (e: unknown) => void;
|
|
144
|
-
renderCalendarDay?: (props: CalendarDayShape) =>
|
|
145
|
-
renderDayContents?: (day: Moment, modifiers: ModifiersShape) =>
|
|
146
|
-
renderCalendarInfo?: () =>
|
|
144
|
+
renderCalendarDay?: (props: CalendarDayShape) => default_2.ReactNode | undefined;
|
|
145
|
+
renderDayContents?: (day: Moment, modifiers: ModifiersShape) => default_2.ReactNode | null | undefined;
|
|
146
|
+
renderCalendarInfo?: () => default_2.ReactNode | null | undefined;
|
|
147
147
|
_daySize?: number;
|
|
148
148
|
_mobileDaySize?: number;
|
|
149
149
|
mobileBreakPoint?: number;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
export declare const Dialog:
|
|
152
|
+
export declare const Dialog: default_2.ForwardRefExoticComponent<DialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
153
153
|
|
|
154
154
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
155
155
|
open: boolean;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export declare const Grid:
|
|
158
|
+
export declare const Grid: React_2.ForwardRefExoticComponent<GridProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
159
159
|
|
|
160
|
-
export declare interface GridProps extends
|
|
160
|
+
export declare interface GridProps extends React_2.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
161
161
|
asChild?: boolean;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -176,23 +176,23 @@ declare const gridVariants: (props?: ({
|
|
|
176
176
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
177
177
|
} & ClassProp) | undefined) => string;
|
|
178
178
|
|
|
179
|
-
export declare const IconButton:
|
|
179
|
+
export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
180
180
|
|
|
181
|
-
export declare interface IconButtonProps extends
|
|
181
|
+
export declare interface IconButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
182
182
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
183
183
|
size?: 'small' | 'large';
|
|
184
184
|
disabled?: true | false;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export declare const ImageCarousel:
|
|
187
|
+
export declare const ImageCarousel: default_2.ForwardRefExoticComponent<ImageCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
188
188
|
|
|
189
|
-
export declare interface ImageCarouselProps extends
|
|
189
|
+
export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
190
190
|
images: string[];
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export declare const Input:
|
|
193
|
+
export declare const Input: default_2.ForwardRefExoticComponent<InputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
194
194
|
|
|
195
|
-
export declare interface InputProps extends
|
|
195
|
+
export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
196
196
|
textarea?: true | false | undefined;
|
|
197
197
|
label?: string | undefined;
|
|
198
198
|
caption?: string | undefined;
|
|
@@ -203,18 +203,18 @@ export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInpu
|
|
|
203
203
|
captionClass?: string | undefined;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
export declare const LongTermBanner:
|
|
206
|
+
export declare const LongTermBanner: default_2.ForwardRefExoticComponent<LongTermBannerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
207
207
|
|
|
208
208
|
export declare interface LongTermBannerProps {
|
|
209
209
|
image: string;
|
|
210
|
-
title: string |
|
|
211
|
-
desc: string |
|
|
210
|
+
title: string | default_2.ReactNode;
|
|
211
|
+
desc: string | default_2.ReactNode;
|
|
212
212
|
size: 'small' | 'large';
|
|
213
213
|
bgColor: string;
|
|
214
214
|
className?: string;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
export declare const RoundedProgressBar:
|
|
217
|
+
export declare const RoundedProgressBar: default_2.ForwardRefExoticComponent<RoundedProgressBarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
218
218
|
|
|
219
219
|
export declare interface RoundedProgressBarProps {
|
|
220
220
|
progress: number;
|
|
@@ -234,7 +234,7 @@ export declare interface Step {
|
|
|
234
234
|
mobileNextTitle: string;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export declare const Stepper:
|
|
237
|
+
export declare const Stepper: default_2.ForwardRefExoticComponent<StepperProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
238
238
|
|
|
239
239
|
export declare interface StepperProps {
|
|
240
240
|
steps: Step[];
|
|
@@ -242,16 +242,16 @@ export declare interface StepperProps {
|
|
|
242
242
|
outerMobileDivClass?: string;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
export declare const Switch:
|
|
245
|
+
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
246
246
|
|
|
247
247
|
export declare interface SwitchProps {
|
|
248
248
|
checked: boolean;
|
|
249
|
-
onChange: (event:
|
|
249
|
+
onChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
250
250
|
disabled?: boolean;
|
|
251
251
|
htmlId?: string;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export declare const Timer:
|
|
254
|
+
export declare const Timer: default_2.ForwardRefExoticComponent<TimerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
255
255
|
|
|
256
256
|
export declare interface TimerProps {
|
|
257
257
|
time: number;
|
|
@@ -259,7 +259,7 @@ export declare interface TimerProps {
|
|
|
259
259
|
outerDivClass?: string;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
export declare const TopNavBar:
|
|
262
|
+
export declare const TopNavBar: default_2.ForwardRefExoticComponent<TopNavBarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
263
263
|
|
|
264
264
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
265
265
|
text?: string | ReactNode;
|
|
@@ -268,7 +268,7 @@ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
268
268
|
direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export declare const TopNavContainerMobile:
|
|
271
|
+
export declare const TopNavContainerMobile: default_2.ForwardRefExoticComponent<TopNavContainerMobileProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
272
272
|
|
|
273
273
|
export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
|
|
274
274
|
img: string;
|
|
@@ -280,7 +280,7 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
280
280
|
buttonText: string;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
export declare const TwoColumnDialog:
|
|
283
|
+
export declare const TwoColumnDialog: default_2.ForwardRefExoticComponent<TwoColumnDialogProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
284
284
|
|
|
285
285
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
286
286
|
img: string;
|