@kvell-group/ui 1.12.8 → 1.12.9
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,5 +1,19 @@
|
|
|
1
|
-
import { ButtonProps as BaseButtonProps
|
|
1
|
+
import { ButtonProps as BaseButtonProps } from '@mantine/core';
|
|
2
2
|
import { ExtendedButtonVariant } from './types';
|
|
3
|
-
|
|
3
|
+
type ButtonProps = BaseButtonProps & {
|
|
4
4
|
variant?: ExtendedButtonVariant;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export declare const Button: (<C = "button">(props: import('@mantine/core').PolymorphicComponentProps<C, ButtonProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(BaseButtonProps & {
|
|
7
|
+
variant?: ExtendedButtonVariant;
|
|
8
|
+
} & {
|
|
9
|
+
component?: any;
|
|
10
|
+
} & Omit<Omit<any, "ref">, keyof BaseButtonProps | "component"> & {
|
|
11
|
+
ref?: any;
|
|
12
|
+
renderRoot?: (props: any) => any;
|
|
13
|
+
}) | (BaseButtonProps & {
|
|
14
|
+
variant?: ExtendedButtonVariant;
|
|
15
|
+
} & {
|
|
16
|
+
component: React.ElementType;
|
|
17
|
+
renderRoot?: (props: Record<string, any>) => any;
|
|
18
|
+
})>, never> & Record<string, never>;
|
|
19
|
+
export {};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { forwardRef as
|
|
2
|
+
import { createPolymorphicComponent as s, Button as m } from "@mantine/core";
|
|
3
|
+
import { forwardRef as e } from "react";
|
|
4
4
|
import '../../assets/Button.css';const n = "_root_1pws1_1", a = {
|
|
5
5
|
root: n
|
|
6
|
-
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
}, i = s(
|
|
7
|
+
e((o, t) => /* @__PURE__ */ r(
|
|
8
|
+
m,
|
|
9
|
+
{
|
|
10
|
+
ref: t,
|
|
11
|
+
...o,
|
|
12
|
+
classNames: a
|
|
13
|
+
}
|
|
14
|
+
))
|
|
15
|
+
);
|
|
14
16
|
export {
|
|
15
|
-
|
|
17
|
+
i as Button
|
|
16
18
|
};
|