design-system-silkhaus 0.0.85-beta.2 → 0.0.85-beta.3
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 +46 -46
- package/dist/index.js +7963 -7624
- 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,23 @@ 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
133
|
onMobileCloseClick?: () => void;
|
|
134
134
|
onOutsideClick?: (e: any) => void;
|
|
135
135
|
onPrevMonthClick?: (e: any) => void;
|
|
136
136
|
onNextMonthClick?: (e: any) => void;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
export declare const Dialog:
|
|
139
|
+
export declare const Dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
140
140
|
|
|
141
141
|
export declare interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
142
142
|
open: boolean;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export declare const Grid:
|
|
145
|
+
export declare const Grid: React_3.ForwardRefExoticComponent<GridProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
146
146
|
|
|
147
|
-
export declare interface GridProps extends
|
|
147
|
+
export declare interface GridProps extends React_3.HTMLAttributes<HTMLDivElement>, Omit<GridVariantProps, 'optional'> {
|
|
148
148
|
asChild?: boolean;
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -163,23 +163,23 @@ declare const gridVariants: (props?: ({
|
|
|
163
163
|
placeItems?: "start" | "end" | "center" | "stretch" | "baseline" | null | undefined;
|
|
164
164
|
} & ClassProp) | undefined) => string;
|
|
165
165
|
|
|
166
|
-
export declare const IconButton:
|
|
166
|
+
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
167
167
|
|
|
168
|
-
export declare interface IconButtonProps extends
|
|
168
|
+
export declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
169
169
|
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
170
170
|
size?: 'small' | 'large';
|
|
171
171
|
disabled?: true | false;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
export declare const ImageCarousel:
|
|
174
|
+
export declare const ImageCarousel: React_2.ForwardRefExoticComponent<ImageCarouselProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
175
175
|
|
|
176
|
-
export declare interface ImageCarouselProps extends
|
|
176
|
+
export declare interface ImageCarouselProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
177
177
|
images: string[];
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export declare const Input:
|
|
180
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
181
181
|
|
|
182
|
-
export declare interface InputProps extends
|
|
182
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
183
183
|
textarea?: true | false | undefined;
|
|
184
184
|
label?: string | undefined;
|
|
185
185
|
caption?: string | undefined;
|
|
@@ -190,17 +190,17 @@ export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLIn
|
|
|
190
190
|
captionClass?: string | undefined;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export declare const LongTermBanner:
|
|
193
|
+
export declare const LongTermBanner: React_2.ForwardRefExoticComponent<LongTermBannerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
194
194
|
|
|
195
195
|
export declare interface LongTermBannerProps {
|
|
196
196
|
image: string;
|
|
197
|
-
title: string |
|
|
198
|
-
desc: string |
|
|
197
|
+
title: string | React_2.ReactNode;
|
|
198
|
+
desc: string | React_2.ReactNode;
|
|
199
199
|
size: 'small' | 'large';
|
|
200
200
|
bgColor: string;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export declare const RoundedProgressBar:
|
|
203
|
+
export declare const RoundedProgressBar: React_2.ForwardRefExoticComponent<RoundedProgressBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
204
204
|
|
|
205
205
|
export declare interface RoundedProgressBarProps {
|
|
206
206
|
progress: number;
|
|
@@ -220,7 +220,7 @@ export declare interface Step {
|
|
|
220
220
|
mobileNextTitle: string;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
export declare const Stepper:
|
|
223
|
+
export declare const Stepper: React_2.ForwardRefExoticComponent<StepperProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
224
224
|
|
|
225
225
|
export declare interface StepperProps {
|
|
226
226
|
steps: Step[];
|
|
@@ -228,16 +228,16 @@ export declare interface StepperProps {
|
|
|
228
228
|
outerMobileDivClass?: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
export declare const Switch:
|
|
231
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
232
232
|
|
|
233
233
|
export declare interface SwitchProps {
|
|
234
234
|
checked: boolean;
|
|
235
|
-
onChange: (event:
|
|
235
|
+
onChange: (event: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
236
236
|
disabled?: boolean;
|
|
237
237
|
htmlId?: string;
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
export declare const Timer:
|
|
240
|
+
export declare const Timer: React_2.ForwardRefExoticComponent<TimerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
241
241
|
|
|
242
242
|
export declare interface TimerProps {
|
|
243
243
|
time: number;
|
|
@@ -245,7 +245,7 @@ export declare interface TimerProps {
|
|
|
245
245
|
outerDivClass?: string;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
export declare const TopNavBar:
|
|
248
|
+
export declare const TopNavBar: React_2.ForwardRefExoticComponent<TopNavBarProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
249
249
|
|
|
250
250
|
export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
251
251
|
text?: string | ReactNode;
|
|
@@ -254,7 +254,7 @@ export declare interface TopNavBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
254
254
|
direction?: 'marquee--left' | 'marquee--right' | 'marquee--up' | 'marquee--down';
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
export declare const TopNavContainerMobile:
|
|
257
|
+
export declare const TopNavContainerMobile: React_2.ForwardRefExoticComponent<TopNavContainerMobileProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
258
258
|
|
|
259
259
|
export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLDivElement> {
|
|
260
260
|
img: string;
|
|
@@ -266,7 +266,7 @@ export declare interface TopNavContainerMobileProps extends HTMLAttributes<HTMLD
|
|
|
266
266
|
buttonText: string;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
export declare const TwoColumnDialog:
|
|
269
|
+
export declare const TwoColumnDialog: React_2.ForwardRefExoticComponent<TwoColumnDialogProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
270
270
|
|
|
271
271
|
export declare interface TwoColumnDialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
272
272
|
img: string;
|