@mdtl/uikit 0.0.66 → 0.0.67
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/components/Snackbar/Snackbar.d.ts +1 -2
- package/dist/components/Snackbar/Snackbar.stories.d.ts +26 -0
- package/dist/components/Snackbar/interfaces.d.ts +5 -0
- package/dist/components/Stepper/Stepper.d.ts +1 -2
- package/dist/components/Stepper/Stepper.stories.d.ts +19 -0
- package/dist/components/Tabs/Tabs.d.ts +3 -11
- package/dist/components/Tabs/Tabs.stories.d.ts +26 -0
- package/dist/components/Tabs/Test.stories.d.ts +14 -0
- package/dist/components/Tabs/interfaces.d.ts +9 -0
- package/dist/components/Title/Title.stories.d.ts +17 -0
- package/dist/themes/aps/controls/configs/checkbox.d.ts +1 -0
- package/dist/themes/aps/controls/configs/radio.d.ts +1 -0
- package/dist/themes/aps/controls/shared/createCheckConfig.d.ts +1 -0
- package/dist/uikit.js +8 -0
- package/package.json +17 -3
- package/dist/vite-env.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, FC } from 'react';
|
|
2
2
|
import { SnackbarStyle } from './interfaces';
|
|
3
|
-
interface ISnackbarProps {
|
|
3
|
+
export interface ISnackbarProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
style: SnackbarStyle;
|
|
6
6
|
label: string;
|
|
@@ -9,4 +9,3 @@ interface ISnackbarProps {
|
|
|
9
9
|
setConfig: (config: Partial<ISnackbarProps>) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const Snackbar: FC<ISnackbarProps>;
|
|
12
|
-
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
|
+
import { ISnackbarProps } from './Snackbar';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: React.FC<ISnackbarProps>;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
tags: string[];
|
|
11
|
+
args: {
|
|
12
|
+
isOpen: true;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Primary: Story;
|
|
19
|
+
export declare const Secondary: Story;
|
|
20
|
+
export declare const Warning: Story;
|
|
21
|
+
export declare const Error: Story;
|
|
22
|
+
export declare const Success: Story;
|
|
23
|
+
export declare const MultipleDescription: Story;
|
|
24
|
+
export declare const EmptyDescription: Story;
|
|
25
|
+
export declare const Action: Story;
|
|
26
|
+
export declare const LargeLabelAndDescription: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { IStepperProps } from './Stepper';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').FC<IStepperProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
args: {
|
|
11
|
+
activeStep: number;
|
|
12
|
+
steps: {
|
|
13
|
+
title: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Primary: Story;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
to?: string;
|
|
6
|
-
startTemplate?: React.ReactNode;
|
|
7
|
-
endTemplate?: React.ReactNode;
|
|
8
|
-
count?: number;
|
|
9
|
-
}
|
|
10
|
-
interface ITabsProps {
|
|
11
|
-
tabs: TabProps[];
|
|
2
|
+
import { Tab } from './interfaces';
|
|
3
|
+
export interface ITabsProps {
|
|
4
|
+
tabs: Tab[];
|
|
12
5
|
activeTab: number;
|
|
13
6
|
onChange: (tab: number) => void;
|
|
14
7
|
}
|
|
15
8
|
export declare const Tabs: React.FC<ITabsProps>;
|
|
16
|
-
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
3
|
+
import { ITabsProps } from './Tabs';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: ITabsProps) => React.JSX.Element;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
tags: string[];
|
|
11
|
+
args: {
|
|
12
|
+
tabs: {
|
|
13
|
+
id: number;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
activeTab: number;
|
|
17
|
+
onChange: () => void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const Default: Story;
|
|
23
|
+
export declare const StartTemplate: Story;
|
|
24
|
+
export declare const EndTemplate: Story;
|
|
25
|
+
export declare const Count: Story;
|
|
26
|
+
export declare const To: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Checkbox } from '@mui/material';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Checkbox;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ITitleProps } from './Title';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').FC<ITitleProps>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
args: {
|
|
11
|
+
caption: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const WithCount: Story;
|
|
17
|
+
export declare const withLargeCount: Story;
|
package/dist/uikit.js
CHANGED
|
@@ -4249,6 +4249,7 @@ const Im = (e) => /* @__PURE__ */ f(mt, { ...e, children: /* @__PURE__ */ f("svg
|
|
|
4249
4249
|
disableTouchRipple: !0,
|
|
4250
4250
|
icon: e,
|
|
4251
4251
|
checkedIcon: t,
|
|
4252
|
+
id: "test-default-props",
|
|
4252
4253
|
...n && { indeterminateIcon: n }
|
|
4253
4254
|
},
|
|
4254
4255
|
variants: [
|
|
@@ -5503,6 +5504,13 @@ const Im = (e) => /* @__PURE__ */ f(mt, { ...e, children: /* @__PURE__ */ f("svg
|
|
|
5503
5504
|
},
|
|
5504
5505
|
typography: Pe,
|
|
5505
5506
|
components: {
|
|
5507
|
+
MuiButtonBase: {
|
|
5508
|
+
defaultProps: {
|
|
5509
|
+
// The props to apply
|
|
5510
|
+
disableRipple: !0
|
|
5511
|
+
// No more ripple, on the whole application 💣!
|
|
5512
|
+
}
|
|
5513
|
+
},
|
|
5506
5514
|
MuiDialog: {
|
|
5507
5515
|
styleOverrides: {
|
|
5508
5516
|
paperWidthMd: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdtl/uikit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/uikit.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"lint:fix": "eslint \"lib/**/*.{ts,tsx,js,jsx,json,md}\" --ext .ts,.tsx,.js,.jsx --fix",
|
|
17
17
|
"preview": "vite preview",
|
|
18
18
|
"prepare": "husky",
|
|
19
|
-
"pub": "npm publish --access public"
|
|
19
|
+
"pub": "npm publish --access public",
|
|
20
|
+
"storybook": "storybook dev -p 6006",
|
|
21
|
+
"build-storybook": "storybook build"
|
|
20
22
|
},
|
|
21
23
|
"peerDependencies": {
|
|
22
24
|
"@emotion/react": "^11.14.0",
|
|
@@ -78,6 +80,18 @@
|
|
|
78
80
|
"vite-plugin-checker": "^0.6.2",
|
|
79
81
|
"vite-plugin-circular-dependency": "^0.2.1",
|
|
80
82
|
"vite-plugin-dts": "^4.5.4",
|
|
83
|
+
"storybook": "^10.1.11",
|
|
84
|
+
"@storybook/react-vite": "^10.1.11",
|
|
85
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
86
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
87
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
88
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
89
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
90
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
91
|
+
"vitest": "^4.0.17",
|
|
92
|
+
"playwright": "^1.57.0",
|
|
93
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
94
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
81
95
|
"vite-plugin-html": "^3.2.0",
|
|
82
96
|
"date-fns": "^4.1.0",
|
|
83
97
|
"@tanstack/react-table": "^8.21.3",
|
|
@@ -87,4 +101,4 @@
|
|
|
87
101
|
"@dnd-kit/sortable": "^8.0.0",
|
|
88
102
|
"@dnd-kit/utilities": "^3.2.2"
|
|
89
103
|
}
|
|
90
|
-
}
|
|
104
|
+
}
|
package/dist/vite-env.d.ts
DELETED
|
File without changes
|