@mdtl/uikit 0.0.63 → 0.0.65
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/interfaces.d.ts +9 -0
- package/dist/components/Title/Title.stories.d.ts +17 -0
- package/dist/themes/aps/controls/configs/buttons.d.ts +5 -5
- package/dist/uikit.js +7 -14
- package/package.json +23 -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,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;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export declare const buttonsConfig: {
|
|
2
|
-
defaultProps: {
|
|
3
|
-
disableRipple: boolean;
|
|
4
|
-
disableFocusRipple: boolean;
|
|
5
|
-
disableTouchRipple: boolean;
|
|
6
|
-
};
|
|
7
2
|
styleOverrides: {
|
|
8
3
|
root: {
|
|
9
4
|
textTransform: string;
|
|
@@ -224,4 +219,9 @@ export declare const buttonsConfig: {
|
|
|
224
219
|
})[];
|
|
225
220
|
};
|
|
226
221
|
};
|
|
222
|
+
defaultProps: {
|
|
223
|
+
disableRipple: boolean;
|
|
224
|
+
disableFocusRipple: boolean;
|
|
225
|
+
disableTouchRipple: boolean;
|
|
226
|
+
};
|
|
227
227
|
};
|
package/dist/uikit.js
CHANGED
|
@@ -304,11 +304,6 @@ const U = {
|
|
|
304
304
|
opacity: 0.4
|
|
305
305
|
}
|
|
306
306
|
}, nf = {
|
|
307
|
-
defaultProps: {
|
|
308
|
-
disableRipple: !0,
|
|
309
|
-
disableFocusRipple: !0,
|
|
310
|
-
disableTouchRipple: !0
|
|
311
|
-
},
|
|
312
307
|
styleOverrides: {
|
|
313
308
|
root: {
|
|
314
309
|
textTransform: "none",
|
|
@@ -508,6 +503,11 @@ const U = {
|
|
|
508
503
|
}
|
|
509
504
|
]
|
|
510
505
|
}
|
|
506
|
+
},
|
|
507
|
+
defaultProps: {
|
|
508
|
+
disableRipple: !0,
|
|
509
|
+
disableFocusRipple: !0,
|
|
510
|
+
disableTouchRipple: !0
|
|
511
511
|
}
|
|
512
512
|
}, _a = {
|
|
513
513
|
defaultProps: {
|
|
@@ -5715,12 +5715,7 @@ const Im = (e) => /* @__PURE__ */ f(ht, { ...e, children: /* @__PURE__ */ f("svg
|
|
|
5715
5715
|
MuiToggleButton: ag,
|
|
5716
5716
|
MuiToggleButtonGroup: sg,
|
|
5717
5717
|
MuiAutocomplete: lg,
|
|
5718
|
-
MuiFormControlLabel: cg
|
|
5719
|
-
MuiButtonBase: {
|
|
5720
|
-
defaultProps: {
|
|
5721
|
-
disableRipple: !0
|
|
5722
|
-
}
|
|
5723
|
-
}
|
|
5718
|
+
MuiFormControlLabel: cg
|
|
5724
5719
|
},
|
|
5725
5720
|
shadows: [
|
|
5726
5721
|
"none",
|
|
@@ -33902,9 +33897,7 @@ const GT = (e) => /* @__PURE__ */ f(ht, { ...e, children: /* @__PURE__ */ f("svg
|
|
|
33902
33897
|
itemsPerPage: T,
|
|
33903
33898
|
reqCatchHandler: O
|
|
33904
33899
|
}) => {
|
|
33905
|
-
const [w, x] = He(!1), [C, E] = He(null), [$, D] = He(!1), [P, m] = He(""), [I, k] = He(!1), [N, B] = He(null), L = Xn(null), [A, _] = He(0), z = _p()
|
|
33906
|
-
console.log("in ui: ", z);
|
|
33907
|
-
const M = wt(() => !!C && C.currentPage < C.totalPages, [C]), R = wt(() => t && P && (Array.isArray(i) ? !i.some((Y) => Y.value === P) : i?.value !== P) && !C?.data.some((Y) => Y.value === P), [t, P]), F = 2, ee = h === "xl" || h === "l" ? "m" : "s", ne = z.components?.MuiSvgIcon?.variants.find((Y) => Y.props.fontSize === ee)?.style.fontSize, te = wt(
|
|
33900
|
+
const [w, x] = He(!1), [C, E] = He(null), [$, D] = He(!1), [P, m] = He(""), [I, k] = He(!1), [N, B] = He(null), L = Xn(null), [A, _] = He(0), z = _p(), M = wt(() => !!C && C.currentPage < C.totalPages, [C]), R = wt(() => t && P && (Array.isArray(i) ? !i.some((Y) => Y.value === P) : i?.value !== P) && !C?.data.some((Y) => Y.value === P), [t, P]), F = 2, ee = h === "xl" || h === "l" ? "m" : "s", ne = z.components?.MuiSvgIcon.variants.find((Y) => Y.props.fontSize === ee)?.style.fontSize, te = wt(
|
|
33908
33901
|
() => o2({ inputSize: h, iconsCount: F, iconSizePx: ne }),
|
|
33909
33902
|
[h, F, ne]
|
|
33910
33903
|
), Z = async (Y) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdtl/uikit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"overrides": {
|
|
6
|
+
"rollup": "4.22.0"
|
|
7
|
+
},
|
|
8
|
+
"resolutions": {
|
|
9
|
+
"rollup": "4.22.0"
|
|
10
|
+
},
|
|
5
11
|
"main": "./dist/uikit.js",
|
|
6
12
|
"types": "./dist/index.d.ts",
|
|
7
13
|
"files": [
|
|
@@ -16,7 +22,9 @@
|
|
|
16
22
|
"lint:fix": "eslint \"lib/**/*.{ts,tsx,js,jsx,json,md}\" --ext .ts,.tsx,.js,.jsx --fix",
|
|
17
23
|
"preview": "vite preview",
|
|
18
24
|
"prepare": "husky",
|
|
19
|
-
"pub": "npm publish --access public"
|
|
25
|
+
"pub": "npm publish --access public",
|
|
26
|
+
"storybook": "storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build"
|
|
20
28
|
},
|
|
21
29
|
"peerDependencies": {
|
|
22
30
|
"@emotion/react": "^11.14.0",
|
|
@@ -78,6 +86,18 @@
|
|
|
78
86
|
"vite-plugin-checker": "^0.6.2",
|
|
79
87
|
"vite-plugin-circular-dependency": "^0.2.1",
|
|
80
88
|
"vite-plugin-dts": "^4.5.4",
|
|
89
|
+
"storybook": "^10.1.11",
|
|
90
|
+
"@storybook/react-vite": "^10.1.11",
|
|
91
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
92
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
93
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
94
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
95
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
96
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
97
|
+
"vitest": "^4.0.17",
|
|
98
|
+
"playwright": "^1.57.0",
|
|
99
|
+
"@vitest/browser-playwright": "^4.0.17",
|
|
100
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
81
101
|
"vite-plugin-html": "^3.2.0",
|
|
82
102
|
"date-fns": "^4.1.0",
|
|
83
103
|
"@tanstack/react-table": "^8.21.3",
|
|
@@ -87,4 +107,4 @@
|
|
|
87
107
|
"@dnd-kit/sortable": "^8.0.0",
|
|
88
108
|
"@dnd-kit/utilities": "^3.2.2"
|
|
89
109
|
}
|
|
90
|
-
}
|
|
110
|
+
}
|
package/dist/vite-env.d.ts
DELETED
|
File without changes
|