@max-ts/components 1.1.0 → 1.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.
@@ -5,6 +5,7 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
5
5
  loadingPosition?: "start" | "end" | "center";
6
6
  color?: `${import('../../Button').ButtonColors}`;
7
7
  selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
9
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
9
10
  export declare const StyledDropdownButton: import('@emotion/styled').StyledComponent<Omit<import('../../Button').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>, "onClick" | "endIcon" | "selected"> & {
10
11
  name: string;
@@ -5,4 +5,5 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
5
5
  loadingPosition?: "start" | "end" | "center";
6
6
  color?: `${import('../../Button').ButtonColors}`;
7
7
  selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
9
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -7,6 +7,7 @@ export declare const StyledIconButton: import('@emotion/styled').StyledComponent
7
7
  loadingPosition?: "start" | "end" | "center";
8
8
  color?: `${import('..').ButtonColors}`;
9
9
  selected?: boolean;
10
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
10
11
  } & {
11
12
  loading?: boolean;
12
13
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -27,5 +27,6 @@ export type ButtonProps<RootComponent extends ElementType> = Omit<WithoutEmotion
27
27
  * Состояние кнопки - selected
28
28
  */
29
29
  selected?: boolean;
30
+ component?: RootComponent;
30
31
  };
31
32
  export declare const Button: <RootComponent extends React.ElementType = ButtonTypeMap["defaultComponent"]>(props: ButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -5,4 +5,5 @@ export declare const CancelButton: import('@emotion/styled').StyledComponent<Omi
5
5
  loadingPosition?: "start" | "end" | "center";
6
6
  color?: `${import('../Button').ButtonColors}`;
7
7
  selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
9
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -25,6 +25,7 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
25
25
  loadingPosition?: "start" | "end" | "center";
26
26
  color?: `${import('../..').ButtonColors}`;
27
27
  selected?: boolean;
28
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
29
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
29
30
  $isActive: boolean;
30
31
  }, {}, {}>;
@@ -5,6 +5,7 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
5
5
  loadingPosition?: "start" | "end" | "center";
6
6
  color?: `${import('../..').ButtonColors}`;
7
7
  selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
9
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
9
10
  $isOutside?: boolean;
10
11
  $isToday?: boolean;
@@ -11,6 +11,7 @@ export declare const MonthButton: import('@emotion/styled').StyledComponent<Omit
11
11
  loadingPosition?: "start" | "end" | "center";
12
12
  color?: `${import('../Button').ButtonColors}`;
13
13
  selected?: boolean;
14
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
14
15
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
15
16
  export declare const StyledMonths: import('@emotion/styled').StyledComponent<import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
16
17
  export declare const StyledMonthCaption: import('@emotion/styled').StyledComponent<{
@@ -11,4 +11,13 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
11
11
  loadingPosition?: "start" | "end" | "center";
12
12
  color?: `${import('../Button').ButtonColors}`;
13
13
  selected?: boolean;
14
- } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<"button">>, "color" | "variant">, {}, {}>;
14
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<"button">>, "color" | "variant"> & {
16
+ variant?: `${import('../Button').ButtonVariants}`;
17
+ loading?: boolean;
18
+ loadingIndicator?: import('react').ReactNode;
19
+ loadingPosition?: "start" | "end" | "center";
20
+ color?: `${import('../Button').ButtonColors}`;
21
+ selected?: boolean;
22
+ component?: "button" | undefined;
23
+ }, {}, {}>;
@@ -6,6 +6,7 @@ export declare const StyledIconButton: import('@emotion/styled').StyledComponent
6
6
  loadingPosition?: "start" | "end" | "center";
7
7
  color?: `${import('..').ButtonColors}`;
8
8
  selected?: boolean;
9
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
10
  } & {
10
11
  loading?: boolean;
11
12
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
@@ -14,6 +14,7 @@ export declare const StyledIconButton: import('@emotion/styled').StyledComponent
14
14
  loadingPosition?: "start" | "end" | "center";
15
15
  color?: `${import('..').ButtonColors}`;
16
16
  selected?: boolean;
17
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
18
  } & {
18
19
  loading?: boolean;
19
20
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -5,6 +5,7 @@ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omi
5
5
  loadingPosition?: "start" | "end" | "center";
6
6
  color?: `${import('../Button').ButtonColors}`;
7
7
  selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
9
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
9
10
  collapsed?: boolean;
10
11
  }, {}, {}>;
package/lib/index.mjs CHANGED
@@ -9559,7 +9559,14 @@ const Uo = ({
9559
9559
  }, [t]), /* @__PURE__ */ l.jsxs(dv, { className: Rn(a, La), children: [
9560
9560
  /* @__PURE__ */ l.jsxs(fv, { children: [
9561
9561
  /* @__PURE__ */ l.jsx(we, { title: s ? "Развернуть" : "Свернуть", children: /* @__PURE__ */ l.jsx(Ue, { variant: "text", onClick: c, children: s ? /* @__PURE__ */ l.jsx(xs, { size: 20 }) : /* @__PURE__ */ l.jsx(ws, { size: 20 }) }) }),
9562
- i && /* @__PURE__ */ l.jsx(we, { title: "Назад", children: /* @__PURE__ */ l.jsx(Ue, { ...i, variant: "text", children: /* @__PURE__ */ l.jsx(ks, { size: 20 }) }) })
9562
+ i && /* @__PURE__ */ l.jsx(we, { title: "Назад", children: /* @__PURE__ */ l.jsx(
9563
+ Ue,
9564
+ {
9565
+ ...i,
9566
+ variant: "text",
9567
+ children: /* @__PURE__ */ l.jsx(ks, { size: 20 })
9568
+ }
9569
+ ) })
9563
9570
  ] }),
9564
9571
  r && /* @__PURE__ */ l.jsx(uv, { className: "breadcrumbs", children: r }),
9565
9572
  /* @__PURE__ */ l.jsx(pv, { children: o }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./lib/index.mjs",
6
6
  "module": "./lib/index.mjs",