@myelmut/design-system 0.1.2
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 +164 -0
- package/dist/index.cjs.js +23 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.es.js +3055 -0
- package/dist/index.es.js.map +1 -0
- package/dist/types/index.d.ts +671 -0
- package/package.json +81 -0
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { ReactComponent as ArrowIcon } from './arrow.svg';
|
|
2
|
+
import { ReactComponent as ArrowPlainIcon } from './arrow-plain.svg';
|
|
3
|
+
import { ReactComponent as CalendarIcon } from './calendar.svg';
|
|
4
|
+
import { ReactComponent as CheckIcon } from './check.svg';
|
|
5
|
+
import { ReactComponent as CrossIcon } from './cross.svg';
|
|
6
|
+
import { ReactComponent as CrossRoundedIcon } from './cross-rounded.svg';
|
|
7
|
+
import { default as default_2 } from 'react';
|
|
8
|
+
import { ReactComponent as FacebookIcon } from './Facebook.svg';
|
|
9
|
+
import { ReactComponent as FiltersIcon } from './filters.svg';
|
|
10
|
+
import { ReactComponent as HatCookIcon } from './hat-cook.svg';
|
|
11
|
+
import { ReactComponent as HomeHeroShape } from './home-hero-shape.svg';
|
|
12
|
+
import { ReactComponent as HomeHeroShapeMobile } from './home-hero-shape-mobile.svg';
|
|
13
|
+
import { ReactComponent as HomeHeroShapeSmall } from './home-hero-shape-small.svg';
|
|
14
|
+
import { ReactComponent as InfoIcon } from './info.svg';
|
|
15
|
+
import { ReactComponent as InstagramIcon } from './Instagram.svg';
|
|
16
|
+
import { JSX } from 'react/jsx-runtime';
|
|
17
|
+
import { ReactComponent as LinkedinIcon } from './Linkedin.svg';
|
|
18
|
+
import { ReactComponent as MagicWandIcon } from './magic-wand.svg';
|
|
19
|
+
import { MemoExoticComponent } from 'react';
|
|
20
|
+
import { ReactComponent as MenuIcon } from './menu.svg';
|
|
21
|
+
import { ReactComponent as MinusIcon } from './minus.svg';
|
|
22
|
+
import { ReactComponent as PlusIcon } from './plus.svg';
|
|
23
|
+
import { ReactComponent as PolaroidThreadIcon } from './polaroid-thread.svg';
|
|
24
|
+
import { ReactComponent as ProfilIcon } from './profil.svg';
|
|
25
|
+
import { ReactComponent as QuoteIcon } from './quote.svg';
|
|
26
|
+
import { ReactComponent as SubtractIcon } from './subtract.svg';
|
|
27
|
+
import { ReactComponent as TiktokIcon } from './Tiktok.svg';
|
|
28
|
+
import { ReactComponent as TrustpilotIcon } from './trustpilot.svg';
|
|
29
|
+
|
|
30
|
+
export { ArrowIcon }
|
|
31
|
+
|
|
32
|
+
export { ArrowPlainIcon }
|
|
33
|
+
|
|
34
|
+
export declare const Banner: ({ content, className }: BannerProps) => JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare type BannerProps = {
|
|
37
|
+
content: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export declare const Button: MemoExoticComponent<({ as, variant, color, children, disabled, className, size, ...props }: ButtonProps) => JSX.Element>;
|
|
42
|
+
|
|
43
|
+
declare type ButtonAsButtonProps = CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
|
+
as?: 'button';
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare type ButtonAsLinkProps = CommonProps & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
48
|
+
as: 'a';
|
|
49
|
+
href: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
declare type ButtonProps = ButtonAsButtonProps | ButtonAsLinkProps;
|
|
53
|
+
|
|
54
|
+
export declare const ButtonSelect: ({ label, id, options, value, onChange, required, hasError, error }: ButtonSelectProps) => JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare interface ButtonSelectProps {
|
|
57
|
+
label: string;
|
|
58
|
+
options: {
|
|
59
|
+
label: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}[];
|
|
62
|
+
value: string;
|
|
63
|
+
required?: boolean;
|
|
64
|
+
onChange: (value: string) => void;
|
|
65
|
+
hasError?: boolean;
|
|
66
|
+
error?: string;
|
|
67
|
+
id: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { CalendarIcon }
|
|
71
|
+
|
|
72
|
+
export declare const CardButton: ({ label, description, disabled, className, ...props }: CardButtonProps) => JSX.Element;
|
|
73
|
+
|
|
74
|
+
declare type CardButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
75
|
+
label: string;
|
|
76
|
+
description: string;
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export declare const Checkbox: ({ children, checked, name, onChange, className }: CheckboxProps) => JSX.Element;
|
|
81
|
+
|
|
82
|
+
declare interface CheckboxProps {
|
|
83
|
+
children?: React.ReactNode;
|
|
84
|
+
checked: boolean;
|
|
85
|
+
name: string;
|
|
86
|
+
onChange: (value: boolean) => void;
|
|
87
|
+
className?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { CheckIcon }
|
|
91
|
+
|
|
92
|
+
export declare const ClearButton: MemoExoticComponent<({ className, onClick, ...props }: ClearButtonProps) => JSX.Element>;
|
|
93
|
+
|
|
94
|
+
declare interface ClearButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
95
|
+
className?: string;
|
|
96
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare type CommonProps = {
|
|
100
|
+
variant?: 'primary' | 'secondary' | 'terciary';
|
|
101
|
+
color?: 'light' | 'dark';
|
|
102
|
+
size?: 'sm' | 'md';
|
|
103
|
+
children: React.ReactNode;
|
|
104
|
+
disabled?: boolean;
|
|
105
|
+
className?: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
declare type CommonProps_2 = {
|
|
109
|
+
isOpen: boolean;
|
|
110
|
+
options: {
|
|
111
|
+
label: string;
|
|
112
|
+
value: string;
|
|
113
|
+
}[];
|
|
114
|
+
name: string;
|
|
115
|
+
value?: string;
|
|
116
|
+
values?: string[];
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
className?: string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { CrossIcon }
|
|
122
|
+
|
|
123
|
+
export { CrossRoundedIcon }
|
|
124
|
+
|
|
125
|
+
export declare const Dropdown: ({ label, id, options, placeholder, name, className, error, hasError, disabled, onChange, value, required }: DropdownProps) => JSX.Element;
|
|
126
|
+
|
|
127
|
+
export declare const DropdownMenu: ({ name, options, value, values, disabled, className, onChange, onChangeMultiple, isOpen, multiple }: DropdownMenuProps) => JSX.Element;
|
|
128
|
+
|
|
129
|
+
declare type DropdownMenuProps = SingleDropdownMenuProps | MultipleDropdownMenuProps;
|
|
130
|
+
|
|
131
|
+
declare interface DropdownOption {
|
|
132
|
+
value: string;
|
|
133
|
+
label: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare interface DropdownProps {
|
|
137
|
+
label?: string;
|
|
138
|
+
placeholder: string;
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
options: DropdownOption[];
|
|
142
|
+
className?: string;
|
|
143
|
+
disabled?: boolean;
|
|
144
|
+
onChange: (value: string) => void;
|
|
145
|
+
value: string;
|
|
146
|
+
required?: boolean;
|
|
147
|
+
hasError?: boolean;
|
|
148
|
+
error?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export declare const Emblem: ({ variant, className }: EmblemProps) => JSX.Element;
|
|
152
|
+
|
|
153
|
+
declare interface EmblemProps {
|
|
154
|
+
variant?: 'primary' | 'secondary';
|
|
155
|
+
className?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare const ErrorMessage: ({ message, hasError, className, id }: ErrorMessageProps) => JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare interface ErrorMessageProps {
|
|
161
|
+
hasError: boolean;
|
|
162
|
+
message: string;
|
|
163
|
+
id?: string;
|
|
164
|
+
className?: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export { FacebookIcon }
|
|
168
|
+
|
|
169
|
+
export declare const FAQButton: ({ variant, disabled, className, ...props }: FAQButtonProps) => JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare interface FAQButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
172
|
+
variant: 'plus' | 'minus';
|
|
173
|
+
disabled?: boolean;
|
|
174
|
+
className?: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare const FaqItem: ({ question, answer, className }: FaqItemProps) => JSX.Element;
|
|
178
|
+
|
|
179
|
+
declare type FaqItemProps = {
|
|
180
|
+
question: string;
|
|
181
|
+
answer: string;
|
|
182
|
+
className?: string;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export declare const Filters: ({ placeholder, label, options, values, onChange, disabled, name, className }: FiltersProps) => JSX.Element;
|
|
186
|
+
|
|
187
|
+
export { FiltersIcon }
|
|
188
|
+
|
|
189
|
+
declare interface FiltersProps {
|
|
190
|
+
placeholder: string;
|
|
191
|
+
label: string;
|
|
192
|
+
options: {
|
|
193
|
+
label: string;
|
|
194
|
+
value: string;
|
|
195
|
+
}[];
|
|
196
|
+
values: string[];
|
|
197
|
+
onChange: (values: string[]) => void;
|
|
198
|
+
disabled: boolean;
|
|
199
|
+
name: string;
|
|
200
|
+
className?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export declare const FoodCard: ({ title, description, illustration, className }: FoodCardProps) => JSX.Element;
|
|
204
|
+
|
|
205
|
+
declare interface FoodCardProps {
|
|
206
|
+
title: string;
|
|
207
|
+
description: string;
|
|
208
|
+
illustration: string;
|
|
209
|
+
className?: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export declare const Footer: ({ className }: FooterProps) => JSX.Element;
|
|
213
|
+
|
|
214
|
+
declare type FooterProps = {
|
|
215
|
+
className?: string;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export declare const FooterTips: ({ className }: {
|
|
219
|
+
className?: string;
|
|
220
|
+
}) => JSX.Element;
|
|
221
|
+
|
|
222
|
+
export declare const frDesign: {
|
|
223
|
+
"navigation": {
|
|
224
|
+
"home": "Accueil",
|
|
225
|
+
"recipes": "Recettes",
|
|
226
|
+
"history": "Histoire",
|
|
227
|
+
"blog": "Blog",
|
|
228
|
+
"sponsorship": "Parrainage",
|
|
229
|
+
"signIn": "Se connecter",
|
|
230
|
+
"tryTwoWeeks": "Essayer 2 semaines",
|
|
231
|
+
"contact": "Contact",
|
|
232
|
+
"help": "Aide",
|
|
233
|
+
"dog": "Chien",
|
|
234
|
+
"cat": "Chat",
|
|
235
|
+
"homemadeRation": "Ration ménagère",
|
|
236
|
+
"ourStory": "Notre histoire",
|
|
237
|
+
"whyElmut": "Pourquoi Elmut",
|
|
238
|
+
"faq": "FAQ",
|
|
239
|
+
"legal": "Mentions légales",
|
|
240
|
+
"terms": "CGV",
|
|
241
|
+
"sitemap": "Plan du site",
|
|
242
|
+
"back": "Retour"
|
|
243
|
+
},
|
|
244
|
+
"footer": {
|
|
245
|
+
"copyright": "Tous droits réservés · Elmut"
|
|
246
|
+
},
|
|
247
|
+
"newsletter": {
|
|
248
|
+
"emailPlaceholder": "Email",
|
|
249
|
+
"subscribeLabel": "S'abonner"
|
|
250
|
+
},
|
|
251
|
+
"wizard": {
|
|
252
|
+
"myPet": "Mon poilu",
|
|
253
|
+
"promotionBanner": "30% de réduction sur votre commande d'essai"
|
|
254
|
+
},
|
|
255
|
+
"tips": {
|
|
256
|
+
"claudineAlt": "Claudine",
|
|
257
|
+
"footerMessage": "Recevez régulièrement de mes nouvelles ! Et un peu d'Elmut aussi !"
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export declare const H1: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
262
|
+
|
|
263
|
+
export declare const H2: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
264
|
+
|
|
265
|
+
export declare const H3: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
266
|
+
|
|
267
|
+
export declare const H4: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
268
|
+
|
|
269
|
+
export declare const H5: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
270
|
+
|
|
271
|
+
export declare const H6: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
272
|
+
|
|
273
|
+
export { HatCookIcon }
|
|
274
|
+
|
|
275
|
+
export { HomeHeroShape }
|
|
276
|
+
|
|
277
|
+
export { HomeHeroShapeMobile }
|
|
278
|
+
|
|
279
|
+
export { HomeHeroShapeSmall }
|
|
280
|
+
|
|
281
|
+
export declare const IllustratedCard: ({ variant, title, description, illustration, className, illustrationClassName }: IllustratedCardProps) => JSX.Element;
|
|
282
|
+
|
|
283
|
+
export declare const IllustratedCardButton: ({ label, layout, description, illustration, disabled, className, ...props }: IllustratedCardButtonProps) => JSX.Element;
|
|
284
|
+
|
|
285
|
+
declare type IllustratedCardButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
286
|
+
label: string;
|
|
287
|
+
illustration: string;
|
|
288
|
+
description: string;
|
|
289
|
+
layout?: 'vertical' | 'horizontal';
|
|
290
|
+
className?: string;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
declare interface IllustratedCardProps {
|
|
294
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
295
|
+
title: string;
|
|
296
|
+
description: string;
|
|
297
|
+
illustration: string;
|
|
298
|
+
className?: string;
|
|
299
|
+
illustrationClassName?: string;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export { InfoIcon }
|
|
303
|
+
|
|
304
|
+
export declare const Ingredient: ({ label, description, name, variant, className }: IngredientProps) => JSX.Element;
|
|
305
|
+
|
|
306
|
+
declare interface IngredientProps {
|
|
307
|
+
label?: string;
|
|
308
|
+
description?: string;
|
|
309
|
+
name?: string;
|
|
310
|
+
variant?: 'carrot' | 'quinoa' | 'potatoe' | 'dry-potatoe' | 'dry-apple' | 'dry-carrot' | 'beef' | 'chicken' | 'courgette' | 'duck' | 'fish' | 'lactoserum' | 'oil' | 'pork' | 'turkey' | 'vitamines' | 'vegetal-oil';
|
|
311
|
+
className?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export { InstagramIcon }
|
|
315
|
+
|
|
316
|
+
export declare const Label: ({ label, id, className, required, ...props }: LabelProps) => JSX.Element;
|
|
317
|
+
|
|
318
|
+
declare interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
319
|
+
label: string;
|
|
320
|
+
required?: boolean;
|
|
321
|
+
className?: string;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export { LinkedinIcon }
|
|
325
|
+
|
|
326
|
+
export declare const Logo: React.FC<LogoProps>;
|
|
327
|
+
|
|
328
|
+
declare interface LogoProps {
|
|
329
|
+
variant?: 'primary' | 'secondary';
|
|
330
|
+
className?: string;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export { MagicWandIcon }
|
|
334
|
+
|
|
335
|
+
export { MenuIcon }
|
|
336
|
+
|
|
337
|
+
export { MinusIcon }
|
|
338
|
+
|
|
339
|
+
export declare const MobileMenu: ({ variant, className }: MobileMenuProps) => JSX.Element;
|
|
340
|
+
|
|
341
|
+
declare type MobileMenuProps = {
|
|
342
|
+
variant: 'dark' | 'light';
|
|
343
|
+
className?: string;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
declare type MultipleDropdownMenuProps = CommonProps_2 & {
|
|
347
|
+
multiple: true;
|
|
348
|
+
onChange?: (value: string) => void;
|
|
349
|
+
onChangeMultiple: (values: string[]) => void;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export declare const Navbar: (props: NavbarProps) => JSX.Element;
|
|
353
|
+
|
|
354
|
+
export declare const NavbarDesktop: ({ variant, className }: NavbarProps) => JSX.Element;
|
|
355
|
+
|
|
356
|
+
export declare const NavbarMobile: ({ variant, className }: NavbarProps) => JSX.Element;
|
|
357
|
+
|
|
358
|
+
declare type NavbarProps = {
|
|
359
|
+
variant: 'light' | 'dark';
|
|
360
|
+
connected?: boolean;
|
|
361
|
+
className?: string;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export declare const Newsletter: ({ variant, className, placeholder, label, disabled, onSubscribe, hasError, error }: NewsletterProps) => JSX.Element;
|
|
365
|
+
|
|
366
|
+
declare interface NewsletterProps {
|
|
367
|
+
placeholder?: string;
|
|
368
|
+
label?: string;
|
|
369
|
+
variant?: 'light' | 'dark' | 'footer';
|
|
370
|
+
disabled?: boolean;
|
|
371
|
+
className?: string;
|
|
372
|
+
onSubscribe: (email: string) => void;
|
|
373
|
+
hasError?: boolean;
|
|
374
|
+
error?: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export declare const ParagraphTitle: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
378
|
+
|
|
379
|
+
export declare const PaymentCard: ({ content, className }: PaymentCardProps) => JSX.Element;
|
|
380
|
+
|
|
381
|
+
declare interface PaymentCardProps {
|
|
382
|
+
content: string;
|
|
383
|
+
className?: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export { PlusIcon }
|
|
387
|
+
|
|
388
|
+
export declare const Polaroid: ({ size, overflow, variant, title, mobileImage, desktopImage, mobileImage2x, desktopImage2x, showThread, className, imageClassName }: PolaroidProps) => JSX.Element;
|
|
389
|
+
|
|
390
|
+
declare interface PolaroidProps {
|
|
391
|
+
size: 'sm' | 'md' | 'lg';
|
|
392
|
+
variant?: 'neutral' | 'primary' | 'secondary' | 'tertiary';
|
|
393
|
+
title: string;
|
|
394
|
+
mobileImage: string;
|
|
395
|
+
desktopImage: string;
|
|
396
|
+
mobileImage2x?: string;
|
|
397
|
+
desktopImage2x?: string;
|
|
398
|
+
overflow?: 'hidden' | 'visible';
|
|
399
|
+
className?: string;
|
|
400
|
+
showThread?: boolean;
|
|
401
|
+
imageClassName?: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export { PolaroidThreadIcon }
|
|
405
|
+
|
|
406
|
+
export { ProfilIcon }
|
|
407
|
+
|
|
408
|
+
export declare const QuantityInput: ({ label, id, value, onChange, required, metric, min, max, hasError, error, disabled }: QuantityInputProps) => JSX.Element;
|
|
409
|
+
|
|
410
|
+
declare interface QuantityInputProps {
|
|
411
|
+
label: string;
|
|
412
|
+
id: string;
|
|
413
|
+
value: number;
|
|
414
|
+
onChange: (value: number) => void;
|
|
415
|
+
required: boolean;
|
|
416
|
+
metric: string;
|
|
417
|
+
min?: number;
|
|
418
|
+
max?: number;
|
|
419
|
+
hasError?: boolean;
|
|
420
|
+
error?: string;
|
|
421
|
+
disabled?: boolean;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export { QuoteIcon }
|
|
425
|
+
|
|
426
|
+
export declare const RecetteCard: ({ className, variant, title, description, imageMobile, imageDesktop, imageMobile2x, imageDesktop2x, href }: RecetteCardProps) => JSX.Element;
|
|
427
|
+
|
|
428
|
+
declare interface RecetteCardProps {
|
|
429
|
+
variant?: 'violet' | 'pink' | 'beige' | 'lavender';
|
|
430
|
+
title: string;
|
|
431
|
+
description: string;
|
|
432
|
+
imageMobile: string;
|
|
433
|
+
imageDesktop: string;
|
|
434
|
+
imageMobile2x?: string;
|
|
435
|
+
imageDesktop2x?: string;
|
|
436
|
+
className?: string;
|
|
437
|
+
href: string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export declare const ResponsiveImage: ({ mobile, desktop, mobile2x, desktop2x, type, loading, decoding, alt, className }: ResponsiveImageProps) => JSX.Element;
|
|
441
|
+
|
|
442
|
+
declare interface ResponsiveImageProps {
|
|
443
|
+
alt: string;
|
|
444
|
+
className?: string;
|
|
445
|
+
mobile: string;
|
|
446
|
+
desktop: string;
|
|
447
|
+
mobile2x?: string;
|
|
448
|
+
desktop2x?: string;
|
|
449
|
+
type?: 'image/webp' | 'image/jpeg' | 'image/png' | 'image/svg+xml';
|
|
450
|
+
loading?: 'lazy' | 'eager';
|
|
451
|
+
decoding?: 'async' | 'auto' | 'sync';
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export declare const SimpleIllustratedCardButton: ({ label, layout, illustration, disabled, className, illustrationClassName, ...props }: SimpleIllustratedCardButtonProps) => JSX.Element;
|
|
455
|
+
|
|
456
|
+
declare type SimpleIllustratedCardButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
457
|
+
label: string;
|
|
458
|
+
illustration: string;
|
|
459
|
+
layout?: 'vertical' | 'horizontal';
|
|
460
|
+
className?: string;
|
|
461
|
+
illustrationClassName?: string;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
declare type SingleDropdownMenuProps = CommonProps_2 & {
|
|
465
|
+
multiple?: false;
|
|
466
|
+
onChange: (value: string) => void;
|
|
467
|
+
onChangeMultiple?: (values: string[]) => void;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
export declare const SocialButton: ({ variant, labelVisible, className }: SocialButtonProps) => JSX.Element;
|
|
471
|
+
|
|
472
|
+
declare type SocialButtonProps = {
|
|
473
|
+
variant: 'Facebook' | 'Instagram' | 'LinkedIn' | 'Tiktok';
|
|
474
|
+
labelVisible?: boolean;
|
|
475
|
+
className?: string;
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
export declare const SpanTitle: (props: Omit<TitleProps, "variant">) => JSX.Element;
|
|
479
|
+
|
|
480
|
+
export declare const StatCard: ({ variant, size, value, metric, description, className }: StatCardProps) => JSX.Element;
|
|
481
|
+
|
|
482
|
+
declare interface StatCardProps {
|
|
483
|
+
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
484
|
+
size?: 'small' | 'large';
|
|
485
|
+
value: string;
|
|
486
|
+
metric: string;
|
|
487
|
+
description: string;
|
|
488
|
+
className?: string;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export declare const Stepper: ({ totalSteps, currentStep, className }: StepperProps) => JSX.Element;
|
|
492
|
+
|
|
493
|
+
declare type StepperProps = {
|
|
494
|
+
totalSteps: number;
|
|
495
|
+
currentStep: number;
|
|
496
|
+
className?: string;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
export { SubtractIcon }
|
|
500
|
+
|
|
501
|
+
export declare const Tag: ({ label, value, onRemove, className }: TagProps) => JSX.Element;
|
|
502
|
+
|
|
503
|
+
declare interface TagProps {
|
|
504
|
+
label: string;
|
|
505
|
+
value: string;
|
|
506
|
+
onRemove: (value: string) => void;
|
|
507
|
+
className?: string;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export declare const TagSelect: ({ label, id, options, onChange, values, required, placeholder, className }: TagSelectProps) => JSX.Element;
|
|
511
|
+
|
|
512
|
+
declare interface TagSelectProps {
|
|
513
|
+
label: string;
|
|
514
|
+
id: string;
|
|
515
|
+
options: {
|
|
516
|
+
label: string;
|
|
517
|
+
value: string;
|
|
518
|
+
}[];
|
|
519
|
+
onChange: (values: string[]) => void;
|
|
520
|
+
values: string[];
|
|
521
|
+
required: boolean;
|
|
522
|
+
placeholder: string;
|
|
523
|
+
className?: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export declare const Testimonial: ({ variant, quote, author, role, imageMobile, imageDesktop, imageMobile2x, imageDesktop2x, className }: TestimonialProps) => JSX.Element;
|
|
527
|
+
|
|
528
|
+
declare interface TestimonialProps {
|
|
529
|
+
variant: 'primary' | 'secondary';
|
|
530
|
+
quote: string;
|
|
531
|
+
author: string;
|
|
532
|
+
role: string;
|
|
533
|
+
imageMobile: string;
|
|
534
|
+
imageDesktop: string;
|
|
535
|
+
imageMobile2x?: string;
|
|
536
|
+
imageDesktop2x?: string;
|
|
537
|
+
className?: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
declare const Text_2: ({ variant, size, children, className, ...props }: TextProps) => JSX.Element | undefined;
|
|
541
|
+
export { Text_2 as Text }
|
|
542
|
+
|
|
543
|
+
export declare const TextInput: ({ label, placeholder, id, name, type, className, disabled, error, required, hasError, ...props }: TextInputProps) => JSX.Element;
|
|
544
|
+
|
|
545
|
+
declare interface TextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
546
|
+
label?: string;
|
|
547
|
+
placeholder: string;
|
|
548
|
+
id: string;
|
|
549
|
+
name: string;
|
|
550
|
+
type?: string;
|
|
551
|
+
disabled?: boolean;
|
|
552
|
+
hasError?: boolean;
|
|
553
|
+
error?: string;
|
|
554
|
+
required?: boolean;
|
|
555
|
+
className?: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare interface TextProps extends React.HTMLAttributes<HTMLParagraphElement | HTMLSpanElement> {
|
|
559
|
+
size?: 'button' | 'legend' | 'sm' | 'md' | 'lg' | 'xl';
|
|
560
|
+
variant?: 'p' | 'span';
|
|
561
|
+
children: React.ReactNode;
|
|
562
|
+
className?: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export { TiktokIcon }
|
|
566
|
+
|
|
567
|
+
export declare const Tips: ({ content, className }: TipsProps) => JSX.Element;
|
|
568
|
+
|
|
569
|
+
declare interface TipsProps {
|
|
570
|
+
content: string;
|
|
571
|
+
className?: string;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
export declare const Title: ({ variant, size, italic, children, className }: TitleProps) => JSX.Element;
|
|
575
|
+
|
|
576
|
+
declare type TitleProps = {
|
|
577
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
578
|
+
size?: 'display-md' | 'display-lg' | 'display-xl' | 'heading-md' | 'heading-lg' | 'heading-xl';
|
|
579
|
+
italic?: boolean;
|
|
580
|
+
children: default_2.ReactNode;
|
|
581
|
+
className?: string;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
export declare const Toggle: ({ data, onChange, value, disabled, className, "aria-label": ariaLabel }: ToggleProps) => JSX.Element | null;
|
|
585
|
+
|
|
586
|
+
declare interface ToggleData {
|
|
587
|
+
label: string;
|
|
588
|
+
labelMobile?: string;
|
|
589
|
+
value: string;
|
|
590
|
+
image?: string;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
declare interface ToggleProps {
|
|
594
|
+
data: ToggleData[];
|
|
595
|
+
onChange: (value: string) => void;
|
|
596
|
+
value: string;
|
|
597
|
+
disabled?: boolean;
|
|
598
|
+
className?: string;
|
|
599
|
+
'aria-label'?: string;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export declare const TransitionCard: ({ variant, disabled, className }: TransitionCardProps) => JSX.Element;
|
|
603
|
+
|
|
604
|
+
declare interface TransitionCardProps {
|
|
605
|
+
variant: '25%' | '50%' | '75%' | '100%';
|
|
606
|
+
disabled?: boolean;
|
|
607
|
+
className?: string;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export { TrustpilotIcon }
|
|
611
|
+
|
|
612
|
+
export declare const UpCard: ({ title1, description1, title2, description2, step, illustration, className, illustrationClassName, align }: UpCardProps) => JSX.Element;
|
|
613
|
+
|
|
614
|
+
declare interface UpCardProps {
|
|
615
|
+
title1: string;
|
|
616
|
+
description1: string;
|
|
617
|
+
title2: string;
|
|
618
|
+
description2: string;
|
|
619
|
+
step: string;
|
|
620
|
+
illustration: string;
|
|
621
|
+
align?: 'top' | 'bottom';
|
|
622
|
+
className?: string;
|
|
623
|
+
illustrationClassName?: string;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export declare const WizardDropdown: ({ placeholder, options, value, onChange, name, disabled, className }: WizardDropdownProps) => JSX.Element;
|
|
627
|
+
|
|
628
|
+
declare interface WizardDropdownProps {
|
|
629
|
+
placeholder?: string;
|
|
630
|
+
options: {
|
|
631
|
+
label: string;
|
|
632
|
+
value: string;
|
|
633
|
+
}[];
|
|
634
|
+
value: string;
|
|
635
|
+
name: string;
|
|
636
|
+
onChange: (value: string) => void;
|
|
637
|
+
disabled?: boolean;
|
|
638
|
+
className?: string;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
export declare const WizardNavbar: ({ variant, totalSteps, currentStep, className }: WizardNavbarProps) => JSX.Element;
|
|
642
|
+
|
|
643
|
+
declare type WizardNavbarProps = {
|
|
644
|
+
variant: 'default' | 'form' | 'payment';
|
|
645
|
+
totalSteps?: number;
|
|
646
|
+
currentStep?: number;
|
|
647
|
+
className?: string;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
export declare const WizardTextInput: ({ placeholder, name, disabled, className, hasError, error, ...props }: WizardTextInputProps) => JSX.Element;
|
|
651
|
+
|
|
652
|
+
declare interface WizardTextInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
653
|
+
placeholder: string;
|
|
654
|
+
name: string;
|
|
655
|
+
disabled: boolean;
|
|
656
|
+
error: string;
|
|
657
|
+
hasError: boolean;
|
|
658
|
+
className?: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export declare const WizardTips: ({ content, className, checkbox, onChange, checked }: WizardTipsProps) => JSX.Element;
|
|
662
|
+
|
|
663
|
+
declare interface WizardTipsProps {
|
|
664
|
+
content: string;
|
|
665
|
+
checkbox?: boolean;
|
|
666
|
+
onChange?: (value: boolean) => void;
|
|
667
|
+
checked?: boolean;
|
|
668
|
+
className?: string;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
export { }
|