@myelmut/design-system 0.1.39 → 0.1.44
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 +4 -3
- package/assets/images/frequency/food-in-fridge.webp +0 -0
- package/assets/images/full-cat.png +0 -0
- package/dist/design-system/images/frequency/food-in-fridge.webp +0 -0
- package/dist/design-system/images/full-cat.png +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1000 -765
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +98 -1
- package/package.json +8 -8
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ReactComponent as ArrowIcon } from './arrow.svg';
|
|
2
2
|
import { ReactComponent as ArrowPlainIcon } from './arrow-plain.svg';
|
|
3
3
|
import { ReactComponent as CalendarIcon } from './calendar.svg';
|
|
4
|
+
import { ReactComponent as CheckCircleIcon } from './check-circle.svg';
|
|
4
5
|
import { ReactComponent as CheckIcon } from './check.svg';
|
|
6
|
+
import { ReactComponent as CheckRoundedIcon } from './check-rounded.svg';
|
|
5
7
|
import { ReactComponent as CrossIcon } from './cross.svg';
|
|
6
8
|
import { ReactComponent as CrossRoundedIcon } from './cross-rounded.svg';
|
|
7
9
|
import { default as default_2 } from 'react';
|
|
10
|
+
import { ReactComponent as DollarRoundedIcon } from './dollar-rounded.svg';
|
|
8
11
|
import { ReactComponent as FacebookIcon } from './Facebook.svg';
|
|
9
12
|
import { ReactComponent as FiltersIcon } from './filters.svg';
|
|
10
13
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -99,8 +102,12 @@ declare interface CheckboxProps {
|
|
|
99
102
|
className?: string;
|
|
100
103
|
}
|
|
101
104
|
|
|
105
|
+
export { CheckCircleIcon }
|
|
106
|
+
|
|
102
107
|
export { CheckIcon }
|
|
103
108
|
|
|
109
|
+
export { CheckRoundedIcon }
|
|
110
|
+
|
|
104
111
|
export declare const ClearButton: MemoExoticComponent<({ className, onClick, ...props }: ClearButtonProps) => JSX.Element>;
|
|
105
112
|
|
|
106
113
|
declare interface ClearButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -137,10 +144,26 @@ export { CrossIcon }
|
|
|
137
144
|
|
|
138
145
|
export { CrossRoundedIcon }
|
|
139
146
|
|
|
147
|
+
export declare const CTACard: ({ title, description, ctaText, onClick, illustration, variant, className, secondaryCtaText, secondaryCtaOnClick }: CTACardProps) => JSX.Element;
|
|
148
|
+
|
|
149
|
+
declare interface CTACardProps {
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
ctaText: string;
|
|
153
|
+
secondaryCtaText?: string;
|
|
154
|
+
onClick: () => void;
|
|
155
|
+
secondaryCtaOnClick?: () => void;
|
|
156
|
+
illustration: string;
|
|
157
|
+
variant: 'light' | 'dark';
|
|
158
|
+
className?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
140
161
|
export declare const debounce: (func: (...args: any[]) => void, wait: number) => (...args: any[]) => void;
|
|
141
162
|
|
|
142
163
|
export declare const disableScroll: () => void;
|
|
143
164
|
|
|
165
|
+
export { DollarRoundedIcon }
|
|
166
|
+
|
|
144
167
|
export declare const Dropdown: ({ label, id, options, placeholder, name, className, error, hasError, disabled, onChange, value, required, searchable }: DropdownProps) => JSX.Element;
|
|
145
168
|
|
|
146
169
|
export declare const DropdownMenu: ({ name, options, value, values, disabled, className, onChange, onChangeMultiple, isOpen, multiple }: DropdownMenuProps) => JSX.Element;
|
|
@@ -204,6 +227,31 @@ declare type FaqItemProps = {
|
|
|
204
227
|
className?: string;
|
|
205
228
|
};
|
|
206
229
|
|
|
230
|
+
export declare const FeatureCard: ({ features, className, backgroundColor, }: FeatureCardProps) => JSX.Element;
|
|
231
|
+
|
|
232
|
+
declare interface FeatureCardProps {
|
|
233
|
+
features: FeatureItem[];
|
|
234
|
+
className?: string;
|
|
235
|
+
backgroundColor?: 'lavender' | 'beige' | 'white';
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export declare const FeatureIllustration: ({ src, alt, title, className, illustrationClassName, titleClassName, }: FeatureIllustrationProps) => JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare interface FeatureIllustrationProps {
|
|
241
|
+
src: string;
|
|
242
|
+
alt: string;
|
|
243
|
+
title: string;
|
|
244
|
+
className?: string;
|
|
245
|
+
illustrationClassName?: string;
|
|
246
|
+
titleClassName?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare interface FeatureItem {
|
|
250
|
+
id: string;
|
|
251
|
+
text: string;
|
|
252
|
+
icon?: default_2.ReactNode;
|
|
253
|
+
}
|
|
254
|
+
|
|
207
255
|
export declare const Filters: ({ placeholder, label, options, values, onChange, disabled, name, className }: FiltersProps) => JSX.Element;
|
|
208
256
|
|
|
209
257
|
export { FiltersIcon }
|
|
@@ -284,6 +332,18 @@ export declare const frDesign: {
|
|
|
284
332
|
}
|
|
285
333
|
};
|
|
286
334
|
|
|
335
|
+
export declare const FrequencySelectorCard: ({ title, description, priceLabel, isSelected, badgeLabel, onClick, className }: FrequencySelectorCardProps) => JSX.Element;
|
|
336
|
+
|
|
337
|
+
declare interface FrequencySelectorCardProps {
|
|
338
|
+
title: string;
|
|
339
|
+
description: string;
|
|
340
|
+
priceLabel: string;
|
|
341
|
+
isSelected?: boolean;
|
|
342
|
+
badgeLabel?: string;
|
|
343
|
+
onClick?: () => void;
|
|
344
|
+
className?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
287
347
|
export declare const H1: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
288
348
|
|
|
289
349
|
export declare const H2: default_2.ForwardRefExoticComponent<Omit<TitleProps, "variant"> & default_2.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -333,7 +393,7 @@ export declare const Ingredient: ({ label, description, image, className }: Ingr
|
|
|
333
393
|
declare interface IngredientProps {
|
|
334
394
|
label: string;
|
|
335
395
|
description: string;
|
|
336
|
-
image: 'carrot' | 'quinoa' | 'potato' | 'apple' | 'dry-carrot' | 'beef' | 'chicken' | 'courgette' | 'duck' | 'fish' | 'liquid' | 'oil' | 'pork' | 'turkey' | 'vitamins' | 'seaweed' | 'rice' | 'beer-yeast' | 'calcium';
|
|
396
|
+
image: 'carrot' | 'quinoa' | 'potato' | 'dry-apple' | 'dry-carrot' | 'beef' | 'chicken' | 'courgette' | 'duck' | 'fish' | 'liquid' | 'oil' | 'pork' | 'turkey' | 'vitamins' | 'seaweed' | 'rice' | 'beer-yeast' | 'calcium';
|
|
337
397
|
className?: string;
|
|
338
398
|
}
|
|
339
399
|
|
|
@@ -425,6 +485,23 @@ declare interface PaymentCardProps {
|
|
|
425
485
|
className?: string;
|
|
426
486
|
}
|
|
427
487
|
|
|
488
|
+
export declare const PlanCard: ({ title, description, dailyAmount, price, originalPrice, discountPercentage, planImage, planImageAlt, className, pricePrefix, priceSuffix, originalPriceSuffix, }: PlanCardProps) => JSX.Element;
|
|
489
|
+
|
|
490
|
+
declare interface PlanCardProps {
|
|
491
|
+
title: string;
|
|
492
|
+
description: string;
|
|
493
|
+
dailyAmount?: string;
|
|
494
|
+
price: string;
|
|
495
|
+
originalPrice?: string;
|
|
496
|
+
discountPercentage?: string;
|
|
497
|
+
planImage: string;
|
|
498
|
+
planImageAlt?: string;
|
|
499
|
+
className?: string;
|
|
500
|
+
pricePrefix?: string;
|
|
501
|
+
priceSuffix?: string;
|
|
502
|
+
originalPriceSuffix?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
428
505
|
export { PlayIcon }
|
|
429
506
|
|
|
430
507
|
export { PlusIcon }
|
|
@@ -547,6 +624,26 @@ declare type StepperProps = {
|
|
|
547
624
|
|
|
548
625
|
export { SubtractIcon }
|
|
549
626
|
|
|
627
|
+
declare interface TabItem {
|
|
628
|
+
id: string;
|
|
629
|
+
label: string;
|
|
630
|
+
content: default_2.ReactNode;
|
|
631
|
+
disabled?: boolean;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export declare const Tabs: ({ tabs, defaultActiveTab, onTabChange, className, tabClassName, activeTabClassName, contentClassName, variant }: TabsProps) => JSX.Element;
|
|
635
|
+
|
|
636
|
+
declare interface TabsProps {
|
|
637
|
+
tabs: TabItem[];
|
|
638
|
+
defaultActiveTab?: string;
|
|
639
|
+
onTabChange?: (tabId: string) => void;
|
|
640
|
+
className?: string;
|
|
641
|
+
tabClassName?: string;
|
|
642
|
+
activeTabClassName?: string;
|
|
643
|
+
contentClassName?: string;
|
|
644
|
+
variant?: 'default';
|
|
645
|
+
}
|
|
646
|
+
|
|
550
647
|
export declare const Tag: ({ label, value, onRemove, className }: TagProps) => JSX.Element;
|
|
551
648
|
|
|
552
649
|
declare interface TagProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myelmut/design-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"description": "Design system for Elmut project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"react-i18next": "^16.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@storybook/addon-docs": "^9.1.
|
|
30
|
-
"@storybook/addon-links": "^9.1.
|
|
31
|
-
"@storybook/react-vite": "^9.1.
|
|
29
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
30
|
+
"@storybook/addon-links": "^9.1.16",
|
|
31
|
+
"@storybook/react-vite": "^9.1.16",
|
|
32
32
|
"@tailwindcss/postcss": "^4.1.16",
|
|
33
33
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
34
34
|
"@types/react": "^19.1.9",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"autoprefixer": "^10.4.21",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
41
|
"concurrently": "^9.2.1",
|
|
42
|
-
"eslint": "^9.
|
|
42
|
+
"eslint": "^9.39.0",
|
|
43
43
|
"eslint-plugin-react": "^7.37.5",
|
|
44
|
-
"eslint-plugin-storybook": "^9.1.
|
|
44
|
+
"eslint-plugin-storybook": "^9.1.16",
|
|
45
45
|
"i18next": "^25.6.0",
|
|
46
46
|
"install": "^0.13.0",
|
|
47
47
|
"postcss": "^8.4.49",
|
|
48
48
|
"prettier": "^3.6.2",
|
|
49
49
|
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
50
50
|
"react-docgen-typescript": "^2.4.0",
|
|
51
|
-
"react-i18next": "^16.2.
|
|
52
|
-
"storybook": "^9.1.
|
|
51
|
+
"react-i18next": "^16.2.3",
|
|
52
|
+
"storybook": "^9.1.16",
|
|
53
53
|
"tailwindcss": "^4.1.16",
|
|
54
54
|
"typescript": "^5.7.3",
|
|
55
55
|
"vite": "^7.1.12",
|