@myelmut/design-system 0.1.5 → 0.1.7
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/assets/images/elmut-footer-mobile.webp +0 -0
- package/assets/images/elmut-footer.webp +0 -0
- package/assets/images/newsletter-bg-mobile@2x.webp +0 -0
- package/assets/images/newsletter-bg@2x.webp +0 -0
- package/assets/images/polaroids/claudine-polaroid-mobile.webp +0 -0
- package/assets/images/polaroids/claudine-polaroid-mobile@2x.webp +0 -0
- package/assets/images/polaroids/claudine-polaroid.webp +0 -0
- package/assets/images/polaroids/claudine-polaroid@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4.webp +0 -0
- package/assets/images/polaroids/polaroid-4@2x.webp +0 -0
- package/assets/images/rocky@2x.webp +0 -0
- package/assets/images/testimonials/testimonials-mobile.webp +0 -0
- package/assets/images/testimonials/testimonials-mobile@2x.webp +0 -0
- package/assets/images/testimonials/testimonials.webp +0 -0
- package/assets/images/testimonials/testimonials@2x.webp +0 -0
- package/assets/images/tips/payment-mobile.webp +0 -0
- package/assets/images/tips/payment-mobile@2x.webp +0 -0
- package/assets/images/tips/payment.webp +0 -0
- package/assets/images/tips/payment@2x.webp +0 -0
- package/dist/design-system/fonts/PPMori-Regular.woff2 +0 -0
- package/dist/design-system/fonts/PPMori-RegularItalic.woff2 +0 -0
- package/dist/design-system/fonts/PPMori-SemiBold.woff2 +0 -0
- package/dist/design-system/fonts/PPPangaia-Medium.woff2 +0 -0
- package/dist/design-system/fonts/PPPangaia-MediumItalic.woff2 +0 -0
- package/dist/design-system/fonts/PPPangaia-Ultralight.woff2 +0 -0
- package/dist/design-system/illustrations/balls-light.webp +0 -0
- package/dist/design-system/illustrations/balls.webp +0 -0
- package/dist/design-system/illustrations/basket-light.webp +0 -0
- package/dist/design-system/illustrations/basket.webp +0 -0
- package/dist/design-system/illustrations/bowl-2-light.webp +0 -0
- package/dist/design-system/illustrations/bowl-2.webp +0 -0
- package/dist/design-system/illustrations/bowl-light.webp +0 -0
- package/dist/design-system/illustrations/bowl.webp +0 -0
- package/dist/design-system/illustrations/box-2-light.webp +0 -0
- package/dist/design-system/illustrations/box-2.webp +0 -0
- package/dist/design-system/illustrations/box-light.webp +0 -0
- package/dist/design-system/illustrations/box.webp +0 -0
- package/dist/design-system/illustrations/calendar-light.webp +0 -0
- package/dist/design-system/illustrations/calendar.webp +0 -0
- package/dist/design-system/illustrations/can-light.webp +0 -0
- package/dist/design-system/illustrations/can.webp +0 -0
- package/dist/design-system/illustrations/carrot-light.webp +0 -0
- package/dist/design-system/illustrations/carrot.webp +0 -0
- package/dist/design-system/illustrations/cat-light.webp +0 -0
- package/dist/design-system/illustrations/cat.webp +0 -0
- package/dist/design-system/illustrations/check-rounded.webp +0 -0
- package/dist/design-system/illustrations/chicken-light.webp +0 -0
- package/dist/design-system/illustrations/chicken.webp +0 -0
- package/dist/design-system/illustrations/cross-rounded.webp +0 -0
- package/dist/design-system/illustrations/crown-light.webp +0 -0
- package/dist/design-system/illustrations/crown.webp +0 -0
- package/dist/design-system/illustrations/dog-light.webp +0 -0
- package/dist/design-system/illustrations/dog.webp +0 -0
- package/dist/design-system/illustrations/face-light.webp +0 -0
- package/dist/design-system/illustrations/face.webp +0 -0
- package/dist/design-system/illustrations/food-bag-light.webp +0 -0
- package/dist/design-system/illustrations/food-bag.webp +0 -0
- package/dist/design-system/illustrations/france-light.webp +0 -0
- package/dist/design-system/illustrations/france.webp +0 -0
- package/dist/design-system/illustrations/fridge-light.webp +0 -0
- package/dist/design-system/illustrations/fridge.webp +0 -0
- package/dist/design-system/illustrations/glasses-light.webp +0 -0
- package/dist/design-system/illustrations/glasses.webp +0 -0
- package/dist/design-system/illustrations/half-label-light.webp +0 -0
- package/dist/design-system/illustrations/half-label.webp +0 -0
- package/dist/design-system/illustrations/kitten-light.webp +0 -0
- package/dist/design-system/illustrations/kitten.webp +0 -0
- package/dist/design-system/illustrations/label-light.webp +0 -0
- package/dist/design-system/illustrations/label.webp +0 -0
- package/dist/design-system/illustrations/leaf-light.webp +0 -0
- package/dist/design-system/illustrations/leaf.webp +0 -0
- package/dist/design-system/illustrations/liquid-light.webp +0 -0
- package/dist/design-system/illustrations/liquid.webp +0 -0
- package/dist/design-system/illustrations/magnifying-glass-light.webp +0 -0
- package/dist/design-system/illustrations/magnifying-glass.webp +0 -0
- package/dist/design-system/illustrations/meat-light.webp +0 -0
- package/dist/design-system/illustrations/meat.webp +0 -0
- package/dist/design-system/illustrations/molecule-light.webp +0 -0
- package/dist/design-system/illustrations/molecule.webp +0 -0
- package/dist/design-system/illustrations/paws-light.webp +0 -0
- package/dist/design-system/illustrations/paws.webp +0 -0
- package/dist/design-system/illustrations/plate-light.webp +0 -0
- package/dist/design-system/illustrations/plate.webp +0 -0
- package/dist/design-system/illustrations/pot-big-2-light.webp +0 -0
- package/dist/design-system/illustrations/pot-big-2.webp +0 -0
- package/dist/design-system/illustrations/pot-big-light.webp +0 -0
- package/dist/design-system/illustrations/pot-big.webp +0 -0
- package/dist/design-system/illustrations/pot-light.webp +0 -0
- package/dist/design-system/illustrations/pot.webp +0 -0
- package/dist/design-system/illustrations/puppy-light.webp +0 -0
- package/dist/design-system/illustrations/puppy.webp +0 -0
- package/dist/design-system/illustrations/quantity-light.webp +0 -0
- package/dist/design-system/illustrations/quantity.webp +0 -0
- package/dist/design-system/illustrations/sausage-light.webp +0 -0
- package/dist/design-system/illustrations/sausage.webp +0 -0
- package/dist/design-system/illustrations/sausages-light.webp +0 -0
- package/dist/design-system/illustrations/sausages.webp +0 -0
- package/dist/design-system/illustrations/skeleton-light.webp +0 -0
- package/dist/design-system/illustrations/skeleton.webp +0 -0
- package/dist/design-system/illustrations/sofa-light.webp +0 -0
- package/dist/design-system/illustrations/sofa.webp +0 -0
- package/dist/design-system/illustrations/sport-light.webp +0 -0
- package/dist/design-system/illustrations/sport.webp +0 -0
- package/dist/design-system/illustrations/steak-light.webp +0 -0
- package/dist/design-system/illustrations/steak.webp +0 -0
- package/dist/design-system/illustrations/truck-light.webp +0 -0
- package/dist/design-system/illustrations/truck.webp +0 -0
- package/dist/design-system/illustrations/warning-light.webp +0 -0
- package/dist/design-system/illustrations/warning.webp +0 -0
- package/dist/design-system/images/cat.webp +0 -0
- package/dist/design-system/images/dog.webp +0 -0
- package/dist/design-system/images/dogs/milou-mobile.webp +0 -0
- package/dist/design-system/images/dogs/milou-mobile@2x.webp +0 -0
- package/dist/design-system/images/dogs/milou.webp +0 -0
- package/dist/design-system/images/dogs/milou@2x.webp +0 -0
- package/dist/design-system/images/elmut-footer-mobile.webp +0 -0
- package/dist/design-system/images/elmut-footer.webp +0 -0
- package/dist/design-system/images/elmut-sausage-chicken.webp +0 -0
- package/dist/design-system/images/elmut-sausage-chicken@2x.webp +0 -0
- package/dist/design-system/images/home-video-placeholder-mobile.webp +0 -0
- package/dist/design-system/images/home-video-placeholder-mobile@2x.webp +0 -0
- package/dist/design-system/images/home-video-placeholder.webp +0 -0
- package/dist/design-system/images/home-video-placeholder@2x.webp +0 -0
- package/dist/design-system/images/ingredients/beef.webp +0 -0
- package/dist/design-system/images/ingredients/carrot.webp +0 -0
- package/dist/design-system/images/ingredients/chicken.webp +0 -0
- package/dist/design-system/images/ingredients/courgette.webp +0 -0
- package/dist/design-system/images/ingredients/dry-apple.webp +0 -0
- package/dist/design-system/images/ingredients/dry-carrot.webp +0 -0
- package/dist/design-system/images/ingredients/dry-potatoe.webp +0 -0
- package/dist/design-system/images/ingredients/duck.webp +0 -0
- package/dist/design-system/images/ingredients/fish.webp +0 -0
- package/dist/design-system/images/ingredients/lactoserum.webp +0 -0
- package/dist/design-system/images/ingredients/oil.webp +0 -0
- package/dist/design-system/images/ingredients/pork.webp +0 -0
- package/dist/design-system/images/ingredients/potatoe.webp +0 -0
- package/dist/design-system/images/ingredients/quinoa.webp +0 -0
- package/dist/design-system/images/ingredients/turkey.webp +0 -0
- package/dist/design-system/images/ingredients/vegetal-oil.webp +0 -0
- package/dist/design-system/images/ingredients/vitamines.webp +0 -0
- package/dist/design-system/images/ingredients-parralax-mobile.webp +0 -0
- package/dist/design-system/images/ingredients-parralax-mobile@2x.webp +0 -0
- package/dist/design-system/images/ingredients-parralax.webp +0 -0
- package/dist/design-system/images/ingredients-parralax@2x.webp +0 -0
- package/dist/design-system/images/newsletter-bg-mobile@2x.webp +0 -0
- package/dist/design-system/images/newsletter-bg@2x.webp +0 -0
- package/dist/design-system/images/polaroids/claudine-polaroid-mobile.webp +0 -0
- package/dist/design-system/images/polaroids/claudine-polaroid-mobile@2x.webp +0 -0
- package/dist/design-system/images/polaroids/claudine-polaroid.webp +0 -0
- package/dist/design-system/images/polaroids/claudine-polaroid@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-1-mobile.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-1-mobile@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-1.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-1@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-2-mobile@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-2-mobilex.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-2.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-2@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-3.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-3@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-4-mobile.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-4-mobile@2x.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-4.webp +0 -0
- package/dist/design-system/images/polaroids/polaroid-4@2x.webp +0 -0
- package/dist/design-system/images/rocky@2x.webp +0 -0
- package/dist/design-system/images/testimonials/testimonial-1-mobile.webp +0 -0
- package/dist/design-system/images/testimonials/testimonial-1-mobile@2x.webp +0 -0
- package/dist/design-system/images/testimonials/testimonial-1.webp +0 -0
- package/dist/design-system/images/testimonials/testimonial-1@2x.webp +0 -0
- package/dist/design-system/images/testimonials/testimonials-mobile.webp +0 -0
- package/dist/design-system/images/testimonials/testimonials-mobile@2x.webp +0 -0
- package/dist/design-system/images/testimonials/testimonials.webp +0 -0
- package/dist/design-system/images/testimonials/testimonials@2x.webp +0 -0
- package/dist/design-system/images/tips/claudine-head.webp +0 -0
- package/dist/design-system/images/tips/claudine-tips-mobile.webp +0 -0
- package/dist/design-system/images/tips/claudine-tips-mobile@2x.webp +0 -0
- package/dist/design-system/images/tips/claudine-tips.webp +0 -0
- package/dist/design-system/images/tips/claudine-tips@2x.webp +0 -0
- package/dist/design-system/images/tips/payment-mobile.webp +0 -0
- package/dist/design-system/images/tips/payment-mobile@2x.webp +0 -0
- package/dist/design-system/images/tips/payment.webp +0 -0
- package/dist/design-system/images/tips/payment@2x.webp +0 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1081 -818
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +76 -21
- package/package.json +2 -1
- package/styles/globals.css +19 -13
- /package/assets/images/polaroids/{polaroid-2-mobilex.webp → polaroid-2-mobile.webp} +0 -0
- /package/{assets → dist/design-system}/images/trash/claudine-polaroid.webp +0 -0
- /package/{assets → dist/design-system}/images/trash/payment-card.webp +0 -0
- /package/{assets → dist/design-system}/images/trash/polaroid.webp +0 -0
- /package/{assets → dist/design-system}/images/trash/recette.webp +0 -0
- /package/{assets → dist/design-system}/images/trash/testimonial.webp +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ReactComponent as CrossRoundedIcon } from './cross-rounded.svg';
|
|
|
7
7
|
import { default as default_2 } from 'react';
|
|
8
8
|
import { ReactComponent as FacebookIcon } from './Facebook.svg';
|
|
9
9
|
import { ReactComponent as FiltersIcon } from './filters.svg';
|
|
10
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
10
11
|
import { ReactComponent as HatCookIcon } from './hat-cook.svg';
|
|
11
12
|
import { ReactComponent as HomeHeroShape } from './home-hero-shape.svg';
|
|
12
13
|
import { ReactComponent as HomeHeroShapeMobile } from './home-hero-shape-mobile.svg';
|
|
@@ -19,13 +20,19 @@ import { ReactComponent as MagicWandIcon } from './magic-wand.svg';
|
|
|
19
20
|
import { MemoExoticComponent } from 'react';
|
|
20
21
|
import { ReactComponent as MenuIcon } from './menu.svg';
|
|
21
22
|
import { ReactComponent as MinusIcon } from './minus.svg';
|
|
23
|
+
import { ReactComponent as MuteIcon } from './mute.svg';
|
|
24
|
+
import { ReactComponent as PauseIcon } from './pause.svg';
|
|
25
|
+
import { ReactComponent as PlayIcon } from './play.svg';
|
|
22
26
|
import { ReactComponent as PlusIcon } from './plus.svg';
|
|
23
27
|
import { ReactComponent as PolaroidThreadIcon } from './polaroid-thread.svg';
|
|
24
28
|
import { ReactComponent as ProfilIcon } from './profil.svg';
|
|
25
29
|
import { ReactComponent as QuoteIcon } from './quote.svg';
|
|
30
|
+
import { RefAttributes } from 'react';
|
|
31
|
+
import { ReactComponent as StarIcon } from './star.svg';
|
|
26
32
|
import { ReactComponent as SubtractIcon } from './subtract.svg';
|
|
27
33
|
import { ReactComponent as TiktokIcon } from './Tiktok.svg';
|
|
28
34
|
import { ReactComponent as TrustpilotIcon } from './trustpilot.svg';
|
|
35
|
+
import { ReactComponent as UnmuteIcon } from './unmute.svg';
|
|
29
36
|
|
|
30
37
|
export { ArrowIcon }
|
|
31
38
|
|
|
@@ -38,7 +45,7 @@ declare type BannerProps = {
|
|
|
38
45
|
className?: string;
|
|
39
46
|
};
|
|
40
47
|
|
|
41
|
-
export declare const Button: MemoExoticComponent<({ as, variant, color, children, disabled, className, size, ...props }: ButtonProps) => JSX.Element>;
|
|
48
|
+
export declare const Button: MemoExoticComponent<({ as, variant, color, active, children, disabled, className, size, ...props }: ButtonProps) => JSX.Element>;
|
|
42
49
|
|
|
43
50
|
declare type ButtonAsButtonProps = CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
44
51
|
as?: 'button';
|
|
@@ -51,10 +58,10 @@ declare type ButtonAsLinkProps = CommonProps & React.AnchorHTMLAttributes<HTMLAn
|
|
|
51
58
|
|
|
52
59
|
declare type ButtonProps = ButtonAsButtonProps | ButtonAsLinkProps;
|
|
53
60
|
|
|
54
|
-
export declare const ButtonSelect: ({ label, id, options, value, onChange, required, hasError, error }: ButtonSelectProps) => JSX.Element;
|
|
61
|
+
export declare const ButtonSelect: ({ label, id, options, value, onChange, required, hasError, error, className }: ButtonSelectProps) => JSX.Element;
|
|
55
62
|
|
|
56
63
|
declare interface ButtonSelectProps {
|
|
57
|
-
label
|
|
64
|
+
label?: string;
|
|
58
65
|
options: {
|
|
59
66
|
label: string;
|
|
60
67
|
value: string;
|
|
@@ -65,6 +72,7 @@ declare interface ButtonSelectProps {
|
|
|
65
72
|
hasError?: boolean;
|
|
66
73
|
error?: string;
|
|
67
74
|
id: string;
|
|
75
|
+
className?: string;
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
export { CalendarIcon }
|
|
@@ -103,6 +111,7 @@ declare type CommonProps = {
|
|
|
103
111
|
children: React.ReactNode;
|
|
104
112
|
disabled?: boolean;
|
|
105
113
|
className?: string;
|
|
114
|
+
active?: boolean;
|
|
106
115
|
};
|
|
107
116
|
|
|
108
117
|
declare type CommonProps_2 = {
|
|
@@ -122,7 +131,7 @@ export { CrossIcon }
|
|
|
122
131
|
|
|
123
132
|
export { CrossRoundedIcon }
|
|
124
133
|
|
|
125
|
-
export declare const Dropdown: ({ label, id, options, placeholder, name, className, error, hasError, disabled, onChange, value, required }: DropdownProps) => JSX.Element;
|
|
134
|
+
export declare const Dropdown: ({ label, id, options, placeholder, name, className, error, hasError, disabled, onChange, value, required, searchable }: DropdownProps) => JSX.Element;
|
|
126
135
|
|
|
127
136
|
export declare const DropdownMenu: ({ name, options, value, values, disabled, className, onChange, onChangeMultiple, isOpen, multiple }: DropdownMenuProps) => JSX.Element;
|
|
128
137
|
|
|
@@ -146,6 +155,7 @@ declare interface DropdownProps {
|
|
|
146
155
|
required?: boolean;
|
|
147
156
|
hasError?: boolean;
|
|
148
157
|
error?: string;
|
|
158
|
+
searchable?: boolean;
|
|
149
159
|
}
|
|
150
160
|
|
|
151
161
|
export declare const Emblem: ({ variant, className }: EmblemProps) => JSX.Element;
|
|
@@ -220,6 +230,10 @@ export declare const FooterTips: ({ className }: {
|
|
|
220
230
|
}) => JSX.Element;
|
|
221
231
|
|
|
222
232
|
export declare const frDesign: {
|
|
233
|
+
"homeVoucher": "PROMO : -{{percentage}}% SUR VOTRE PREMIÈRE COMMANDE + LIVRAISON OFFERTE",
|
|
234
|
+
"dropdown": {
|
|
235
|
+
"noResults": "Aucun résultat trouvé"
|
|
236
|
+
},
|
|
223
237
|
"navigation": {
|
|
224
238
|
"home": "Accueil",
|
|
225
239
|
"recipes": "Recettes",
|
|
@@ -245,7 +259,7 @@ export declare const frDesign: {
|
|
|
245
259
|
"copyright": "Tous droits réservés · Elmut"
|
|
246
260
|
},
|
|
247
261
|
"newsletter": {
|
|
248
|
-
"emailPlaceholder": "
|
|
262
|
+
"emailPlaceholder": "claudinethequeen@gmail.com",
|
|
249
263
|
"subscribeLabel": "S'abonner"
|
|
250
264
|
},
|
|
251
265
|
"wizard": {
|
|
@@ -258,17 +272,17 @@ export declare const frDesign: {
|
|
|
258
272
|
}
|
|
259
273
|
};
|
|
260
274
|
|
|
261
|
-
export declare const H1:
|
|
275
|
+
export declare const H1: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
262
276
|
|
|
263
|
-
export declare const H2:
|
|
277
|
+
export declare const H2: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
264
278
|
|
|
265
|
-
export declare const H3:
|
|
279
|
+
export declare const H3: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
266
280
|
|
|
267
|
-
export declare const H4:
|
|
281
|
+
export declare const H4: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
268
282
|
|
|
269
|
-
export declare const H5:
|
|
283
|
+
export declare const H5: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
270
284
|
|
|
271
|
-
export declare const H6:
|
|
285
|
+
export declare const H6: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
272
286
|
|
|
273
287
|
export { HatCookIcon }
|
|
274
288
|
|
|
@@ -278,7 +292,7 @@ export { HomeHeroShapeMobile }
|
|
|
278
292
|
|
|
279
293
|
export { HomeHeroShapeSmall }
|
|
280
294
|
|
|
281
|
-
export declare const IllustratedCard:
|
|
295
|
+
export declare const IllustratedCard: ForwardRefExoticComponent<IllustratedCardProps & RefAttributes<HTMLDivElement>>;
|
|
282
296
|
|
|
283
297
|
export declare const IllustratedCardButton: ({ label, layout, description, illustration, disabled, className, ...props }: IllustratedCardButtonProps) => JSX.Element;
|
|
284
298
|
|
|
@@ -297,6 +311,7 @@ declare interface IllustratedCardProps {
|
|
|
297
311
|
illustration: string;
|
|
298
312
|
className?: string;
|
|
299
313
|
illustrationClassName?: string;
|
|
314
|
+
value?: string;
|
|
300
315
|
}
|
|
301
316
|
|
|
302
317
|
export { InfoIcon }
|
|
@@ -334,18 +349,19 @@ export { MagicWandIcon }
|
|
|
334
349
|
|
|
335
350
|
export { MenuIcon }
|
|
336
351
|
|
|
337
|
-
export declare const menuNavLinks:
|
|
352
|
+
export declare const menuNavLinks: {
|
|
338
353
|
label: string;
|
|
339
354
|
href: string;
|
|
340
355
|
}[];
|
|
341
356
|
|
|
342
357
|
export { MinusIcon }
|
|
343
358
|
|
|
344
|
-
export declare const MobileMenu: ({ variant, className }: MobileMenuProps) => JSX.Element;
|
|
359
|
+
export declare const MobileMenu: ({ variant, className, activeNavLink }: MobileMenuProps) => JSX.Element;
|
|
345
360
|
|
|
346
361
|
declare type MobileMenuProps = {
|
|
347
362
|
variant: 'dark' | 'light';
|
|
348
363
|
className?: string;
|
|
364
|
+
activeNavLink: string;
|
|
349
365
|
};
|
|
350
366
|
|
|
351
367
|
declare type MultipleDropdownMenuProps = CommonProps_2 & {
|
|
@@ -354,14 +370,18 @@ declare type MultipleDropdownMenuProps = CommonProps_2 & {
|
|
|
354
370
|
onChangeMultiple: (values: string[]) => void;
|
|
355
371
|
};
|
|
356
372
|
|
|
373
|
+
export { MuteIcon }
|
|
374
|
+
|
|
357
375
|
export declare const Navbar: (props: NavbarProps) => JSX.Element;
|
|
358
376
|
|
|
359
|
-
export declare const NavbarDesktop: ({ variant, className }: NavbarProps) => JSX.Element;
|
|
377
|
+
export declare const NavbarDesktop: ({ variant, className, voucher, activeNavLink }: NavbarProps) => JSX.Element;
|
|
360
378
|
|
|
361
|
-
export declare const NavbarMobile: ({ variant, className }: NavbarProps) => JSX.Element;
|
|
379
|
+
export declare const NavbarMobile: ({ variant, className, voucher, activeNavLink }: NavbarProps) => JSX.Element;
|
|
362
380
|
|
|
363
381
|
declare type NavbarProps = {
|
|
364
382
|
variant: 'light' | 'dark';
|
|
383
|
+
activeNavLink: string;
|
|
384
|
+
voucher?: string;
|
|
365
385
|
connected?: boolean;
|
|
366
386
|
className?: string;
|
|
367
387
|
};
|
|
@@ -379,7 +399,9 @@ declare interface NewsletterProps {
|
|
|
379
399
|
error?: string;
|
|
380
400
|
}
|
|
381
401
|
|
|
382
|
-
export declare const ParagraphTitle:
|
|
402
|
+
export declare const ParagraphTitle: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLParagraphElement>>;
|
|
403
|
+
|
|
404
|
+
export { PauseIcon }
|
|
383
405
|
|
|
384
406
|
export declare const PaymentCard: ({ content, className }: PaymentCardProps) => JSX.Element;
|
|
385
407
|
|
|
@@ -388,6 +410,8 @@ declare interface PaymentCardProps {
|
|
|
388
410
|
className?: string;
|
|
389
411
|
}
|
|
390
412
|
|
|
413
|
+
export { PlayIcon }
|
|
414
|
+
|
|
391
415
|
export { PlusIcon }
|
|
392
416
|
|
|
393
417
|
export declare const Polaroid: ({ size, overflow, variant, title, mobileImage, desktopImage, mobileImage2x, desktopImage2x, showThread, className, imageClassName }: PolaroidProps) => JSX.Element;
|
|
@@ -442,7 +466,7 @@ declare interface RecetteCardProps {
|
|
|
442
466
|
href: string;
|
|
443
467
|
}
|
|
444
468
|
|
|
445
|
-
export declare const ResponsiveImage:
|
|
469
|
+
export declare const ResponsiveImage: default_2.ForwardRefExoticComponent<ResponsiveImageProps & default_2.RefAttributes<HTMLImageElement>>;
|
|
446
470
|
|
|
447
471
|
declare interface ResponsiveImageProps {
|
|
448
472
|
alt: string;
|
|
@@ -454,6 +478,7 @@ declare interface ResponsiveImageProps {
|
|
|
454
478
|
type?: 'image/webp' | 'image/jpeg' | 'image/png' | 'image/svg+xml';
|
|
455
479
|
loading?: 'lazy' | 'eager';
|
|
456
480
|
decoding?: 'async' | 'auto' | 'sync';
|
|
481
|
+
fadeOnLoad?: boolean;
|
|
457
482
|
}
|
|
458
483
|
|
|
459
484
|
export declare const SimpleIllustratedCardButton: ({ label, layout, illustration, disabled, className, illustrationClassName, ...props }: SimpleIllustratedCardButtonProps) => JSX.Element;
|
|
@@ -480,7 +505,9 @@ declare type SocialButtonProps = {
|
|
|
480
505
|
className?: string;
|
|
481
506
|
};
|
|
482
507
|
|
|
483
|
-
export declare const SpanTitle:
|
|
508
|
+
export declare const SpanTitle: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLSpanElement>>;
|
|
509
|
+
|
|
510
|
+
export { StarIcon }
|
|
484
511
|
|
|
485
512
|
export declare const StatCard: ({ variant, size, value, metric, description, className }: StatCardProps) => JSX.Element;
|
|
486
513
|
|
|
@@ -542,6 +569,18 @@ declare interface TestimonialProps {
|
|
|
542
569
|
className?: string;
|
|
543
570
|
}
|
|
544
571
|
|
|
572
|
+
export declare const TestimonialSliderCard: ForwardRefExoticComponent<TestimonialSliderCardProps & RefAttributes<HTMLQuoteElement>>;
|
|
573
|
+
|
|
574
|
+
declare interface TestimonialSliderCardProps {
|
|
575
|
+
variant?: 'dark' | 'light';
|
|
576
|
+
quote: string;
|
|
577
|
+
author: string;
|
|
578
|
+
role: string;
|
|
579
|
+
image: string;
|
|
580
|
+
score: number;
|
|
581
|
+
className?: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
545
584
|
declare const Text_2: ({ variant, size, children, className, ...props }: TextProps) => JSX.Element | undefined;
|
|
546
585
|
export { Text_2 as Text }
|
|
547
586
|
|
|
@@ -576,7 +615,7 @@ declare interface TipsProps {
|
|
|
576
615
|
className?: string;
|
|
577
616
|
}
|
|
578
617
|
|
|
579
|
-
export declare const Title:
|
|
618
|
+
export declare const Title: default_2.ForwardRefExoticComponent<TitleProps & default_2.RefAttributes<HTMLElement>>;
|
|
580
619
|
|
|
581
620
|
declare type TitleProps = {
|
|
582
621
|
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
@@ -614,6 +653,8 @@ declare interface TransitionCardProps {
|
|
|
614
653
|
|
|
615
654
|
export { TrustpilotIcon }
|
|
616
655
|
|
|
656
|
+
export { UnmuteIcon }
|
|
657
|
+
|
|
617
658
|
export declare const UpCard: ({ title1, description1, title2, description2, step, illustration, className, illustrationClassName, align }: UpCardProps) => JSX.Element;
|
|
618
659
|
|
|
619
660
|
declare interface UpCardProps {
|
|
@@ -628,7 +669,20 @@ declare interface UpCardProps {
|
|
|
628
669
|
illustrationClassName?: string;
|
|
629
670
|
}
|
|
630
671
|
|
|
631
|
-
export declare const
|
|
672
|
+
export declare const VideoPlayer: ({ videoId, alt, className, placeholderImageMobile, hasSound, placeholderImageDesktop, placeholderImageMobile2x, placeholderImageDesktop2x }: VideoPlayerProps) => JSX.Element;
|
|
673
|
+
|
|
674
|
+
declare interface VideoPlayerProps {
|
|
675
|
+
videoId: string;
|
|
676
|
+
alt: string;
|
|
677
|
+
className?: string;
|
|
678
|
+
placeholderImageMobile: string;
|
|
679
|
+
placeholderImageDesktop: string;
|
|
680
|
+
placeholderImageMobile2x: string;
|
|
681
|
+
placeholderImageDesktop2x: string;
|
|
682
|
+
hasSound?: boolean;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export declare const WizardDropdown: ({ placeholder, options, value, onChange, name, disabled, className, searchable }: WizardDropdownProps) => JSX.Element;
|
|
632
686
|
|
|
633
687
|
declare interface WizardDropdownProps {
|
|
634
688
|
placeholder?: string;
|
|
@@ -641,6 +695,7 @@ declare interface WizardDropdownProps {
|
|
|
641
695
|
onChange: (value: string) => void;
|
|
642
696
|
disabled?: boolean;
|
|
643
697
|
className?: string;
|
|
698
|
+
searchable?: boolean;
|
|
644
699
|
}
|
|
645
700
|
|
|
646
701
|
export declare const WizardNavbar: ({ variant, totalSteps, currentStep, className }: WizardNavbarProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myelmut/design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Design system for Elmut project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"build": "vite build && pnpm run copy-static-assets",
|
|
73
73
|
"copy-static-assets": "cp -r src/styles styles && cp -r src/assets assets",
|
|
74
74
|
"build:with-assets": "vite build && pnpm run copy-assets",
|
|
75
|
+
"design-system:copy-assets": "mkdir -p public/design-system/ && cp -r src/assets/* public/design-system/",
|
|
75
76
|
"copy-assets": "mkdir -p dist/public/assets && cp -r src/assets/* dist/public/assets/ && cp -r dist/public/assets/* ../public/design-system/",
|
|
76
77
|
"storybook": "storybook dev -p 6006",
|
|
77
78
|
"build-storybook": "storybook build",
|
package/styles/globals.css
CHANGED
|
@@ -110,14 +110,11 @@
|
|
|
110
110
|
--container-lg: 1024px;
|
|
111
111
|
--container-xl: 1280px;
|
|
112
112
|
--container-2xl: 1536px;
|
|
113
|
-
}
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
background-color: var(--color-beige-light);
|
|
120
|
-
}
|
|
114
|
+
/* animation */
|
|
115
|
+
--animate-fade-in: fade-in 300ms ease-in;
|
|
116
|
+
--animate-fade-out: fade-out 300ms ease-out;
|
|
117
|
+
--animate-banner: banner 15s linear infinite;
|
|
121
118
|
}
|
|
122
119
|
|
|
123
120
|
@layer utilities {
|
|
@@ -131,6 +128,14 @@
|
|
|
131
128
|
@apply [appearance:textfield]; /* standard + Firefox */
|
|
132
129
|
}
|
|
133
130
|
|
|
131
|
+
summary {
|
|
132
|
+
list-style: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
summary::-webkit-details-marker {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
134
139
|
@keyframes fade-in {
|
|
135
140
|
from {
|
|
136
141
|
opacity: 0;
|
|
@@ -149,12 +154,13 @@
|
|
|
149
154
|
}
|
|
150
155
|
}
|
|
151
156
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
157
|
+
@keyframes banner {
|
|
158
|
+
from {
|
|
159
|
+
transform: translateX(0);
|
|
160
|
+
}
|
|
161
|
+
to {
|
|
162
|
+
transform: translateX(-50%);
|
|
163
|
+
}
|
|
158
164
|
}
|
|
159
165
|
}
|
|
160
166
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|