@mmb-digital/design-system-web 0.1.0 → 0.1.1

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.
@@ -0,0 +1,29 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ButtonSize, ButtonStyle, ButtonType, Props } from './button.types';
3
+ import React from 'react';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {};
10
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
11
+ buttonStyle: ButtonStyle;
12
+ children: React.ReactNode;
13
+ disabled?: boolean | undefined;
14
+ displayOnlyIcon?: boolean | undefined;
15
+ iconLeft?: React.ReactNode;
16
+ iconRight?: React.ReactNode;
17
+ onClick?: (() => void) | undefined;
18
+ size: ButtonSize;
19
+ type?: ButtonType | undefined;
20
+ }>) => React.JSX.Element)[];
21
+ };
22
+ export default meta;
23
+ type Story = StoryObj<typeof meta>;
24
+ export declare const Default: Story;
25
+ export declare const TypeButton: Story;
26
+ export declare const TypePrimary: Story;
27
+ export declare const TypeSecondary: Story;
28
+ export declare const TypeTertiary: Story;
29
+ export declare const WithOnClick: Story;
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { MinMaxLabels, Props, SliderSteps, SliderStepType } from '@/components/slider/slider/slider.types';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {
10
+ stepType: {
11
+ type: {
12
+ name: "enum";
13
+ value: SliderStepType[];
14
+ };
15
+ };
16
+ value: {
17
+ table: {
18
+ disable: boolean;
19
+ };
20
+ };
21
+ onChange: {
22
+ table: {
23
+ disable: boolean;
24
+ };
25
+ };
26
+ disable: {
27
+ type: {
28
+ name: "boolean";
29
+ };
30
+ };
31
+ minMaxLabels: {
32
+ defaultValue: MinMaxLabels;
33
+ options: string[];
34
+ mapping: {
35
+ default: MinMaxLabels;
36
+ undefined: undefined;
37
+ };
38
+ control: {
39
+ type: string;
40
+ };
41
+ };
42
+ };
43
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
44
+ readonly disable?: boolean | undefined;
45
+ readonly max: number;
46
+ readonly min: number;
47
+ readonly minMaxLabels: MinMaxLabels | undefined;
48
+ readonly onChange: (values: number) => void;
49
+ readonly onFinalChange: (values: number) => void;
50
+ readonly stepType: SliderStepType;
51
+ readonly steps: SliderSteps;
52
+ readonly value: number;
53
+ }>, context: import("@storybook/types").StoryContext<import("@storybook/react/dist/types-0fc72a6d").R, {
54
+ readonly disable?: boolean | undefined;
55
+ readonly max: number;
56
+ readonly min: number;
57
+ readonly minMaxLabels: MinMaxLabels | undefined;
58
+ readonly onChange: (values: number) => void;
59
+ readonly onFinalChange: (values: number) => void;
60
+ readonly stepType: SliderStepType;
61
+ readonly steps: SliderSteps;
62
+ readonly value: number;
63
+ }>) => React.JSX.Element)[];
64
+ };
65
+ export default meta;
66
+ type Story = StoryObj<typeof meta>;
67
+ export declare const Default: Story;
68
+ export declare const LinearVisualSteps: Story;
69
+ export declare const AirBankMortgage: Story;
@@ -0,0 +1,20 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { StoreButtonSize, StoreButtonVariant, Props } from './storeButton.types';
3
+ import React from 'react';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {};
10
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
11
+ href: string;
12
+ size: StoreButtonSize;
13
+ variant: StoreButtonVariant;
14
+ }>) => React.JSX.Element)[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const AppleButton: Story;
20
+ export declare const AndroidButton: Story;
@@ -0,0 +1,29 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ButtonSize, ButtonStyle, ButtonType, Props } from './button.types';
3
+ import React from 'react';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {};
10
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
11
+ buttonStyle: ButtonStyle;
12
+ children: React.ReactNode;
13
+ disabled?: boolean | undefined;
14
+ displayOnlyIcon?: boolean | undefined;
15
+ iconLeft?: React.ReactNode;
16
+ iconRight?: React.ReactNode;
17
+ onClick?: (() => void) | undefined;
18
+ size: ButtonSize;
19
+ type?: ButtonType | undefined;
20
+ }>) => React.JSX.Element)[];
21
+ };
22
+ export default meta;
23
+ type Story = StoryObj<typeof meta>;
24
+ export declare const Default: Story;
25
+ export declare const TypeButton: Story;
26
+ export declare const TypePrimary: Story;
27
+ export declare const TypeSecondary: Story;
28
+ export declare const TypeTertiary: Story;
29
+ export declare const WithOnClick: Story;
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { MinMaxLabels, Props, SliderSteps, SliderStepType } from '@/components/slider/slider/slider.types';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {
10
+ stepType: {
11
+ type: {
12
+ name: "enum";
13
+ value: SliderStepType[];
14
+ };
15
+ };
16
+ value: {
17
+ table: {
18
+ disable: boolean;
19
+ };
20
+ };
21
+ onChange: {
22
+ table: {
23
+ disable: boolean;
24
+ };
25
+ };
26
+ disable: {
27
+ type: {
28
+ name: "boolean";
29
+ };
30
+ };
31
+ minMaxLabels: {
32
+ defaultValue: MinMaxLabels;
33
+ options: string[];
34
+ mapping: {
35
+ default: MinMaxLabels;
36
+ undefined: undefined;
37
+ };
38
+ control: {
39
+ type: string;
40
+ };
41
+ };
42
+ };
43
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
44
+ readonly disable?: boolean | undefined;
45
+ readonly max: number;
46
+ readonly min: number;
47
+ readonly minMaxLabels: MinMaxLabels | undefined;
48
+ readonly onChange: (values: number) => void;
49
+ readonly onFinalChange: (values: number) => void;
50
+ readonly stepType: SliderStepType;
51
+ readonly steps: SliderSteps;
52
+ readonly value: number;
53
+ }>, context: import("@storybook/types").StoryContext<import("@storybook/react/dist/types-0fc72a6d").R, {
54
+ readonly disable?: boolean | undefined;
55
+ readonly max: number;
56
+ readonly min: number;
57
+ readonly minMaxLabels: MinMaxLabels | undefined;
58
+ readonly onChange: (values: number) => void;
59
+ readonly onFinalChange: (values: number) => void;
60
+ readonly stepType: SliderStepType;
61
+ readonly steps: SliderSteps;
62
+ readonly value: number;
63
+ }>) => React.JSX.Element)[];
64
+ };
65
+ export default meta;
66
+ type Story = StoryObj<typeof meta>;
67
+ export declare const Default: Story;
68
+ export declare const LinearVisualSteps: Story;
69
+ export declare const AirBankMortgage: Story;
@@ -0,0 +1,20 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { StoreButtonSize, StoreButtonVariant, Props } from './storeButton.types';
3
+ import React from 'react';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.FC<Props>;
7
+ parameters: {};
8
+ tags: string[];
9
+ argTypes: {};
10
+ decorators: ((story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
11
+ href: string;
12
+ size: StoreButtonSize;
13
+ variant: StoreButtonVariant;
14
+ }>) => React.JSX.Element)[];
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const AppleButton: Story;
20
+ export declare const AndroidButton: Story;
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmb-digital/design-system-web",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MMB design-system-web",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -10,7 +10,7 @@
10
10
  "license": "UNLICENSED",
11
11
  "private": false,
12
12
  "engines": {
13
- "node": ">=16.20 <17"
13
+ "node": ">=16.20"
14
14
  },
15
15
  "scripts": {
16
16
  "build": "rollup -c --bundleConfigAsCjs",