@mdtl/uikit 0.0.66 → 0.0.68

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.
@@ -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;
@@ -1 +1,6 @@
1
1
  export type SnackbarStyle = 'primary' | 'secondary' | 'warning' | 'error' | 'success';
2
+ export type SnackbarStyles = {
3
+ [key in SnackbarStyle]: {
4
+ backgroundColor: string;
5
+ };
6
+ };
@@ -1,9 +1,8 @@
1
1
  import { FC } from 'react';
2
- interface IStepperProps {
2
+ export interface IStepperProps {
3
3
  activeStep: number;
4
4
  steps: {
5
5
  title: string;
6
6
  }[];
7
7
  }
8
8
  export declare const Stepper: FC<IStepperProps>;
9
- export {};
@@ -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
- interface TabProps {
3
- id: number;
4
- label: string;
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,9 @@
1
+ export type Tab = {
2
+ id: number;
3
+ label: string;
4
+ /** Опция для навигации */
5
+ to?: string;
6
+ startTemplate?: React.ReactNode;
7
+ endTemplate?: React.ReactNode;
8
+ count?: number;
9
+ };
@@ -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
@@ -5503,6 +5503,13 @@ const Im = (e) => /* @__PURE__ */ f(mt, { ...e, children: /* @__PURE__ */ f("svg
5503
5503
  },
5504
5504
  typography: Pe,
5505
5505
  components: {
5506
+ MuiButtonBase: {
5507
+ defaultProps: {
5508
+ // The props to apply
5509
+ disableRipple: !0
5510
+ // No more ripple, on the whole application 💣!
5511
+ }
5512
+ },
5506
5513
  MuiDialog: {
5507
5514
  styleOverrides: {
5508
5515
  paperWidthMd: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdtl/uikit",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "type": "module",
5
5
  "main": "./dist/uikit.js",
6
6
  "types": "./dist/index.d.ts",
File without changes