@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, ElementProps } from '@mantine/core';
1
+ import { ButtonProps as BaseButtonProps } from '@mantine/core';
2
2
  import { ExtendedButtonVariant } from './types';
3
- export declare const Button: import('react').ForwardRefExoticComponent<BaseButtonProps & ElementProps<"button"> & {
3
+ type ButtonProps = BaseButtonProps & {
4
4
  variant?: ExtendedButtonVariant;
5
- } & import('react').RefAttributes<HTMLButtonElement>>;
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 { Button as s } from "@mantine/core";
3
- import { forwardRef as m } from "react";
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
- }, p = m((o, t) => /* @__PURE__ */ r(
7
- s,
8
- {
9
- ref: t,
10
- ...o,
11
- classNames: a
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
- p as Button
17
+ i as Button
16
18
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kvell-group/ui",
3
3
  "author": "Kvell Group",
4
4
  "private": false,
5
- "version": "1.12.8",
5
+ "version": "1.12.9",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",