armtek-uikit-react 1.0.67 → 1.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.
- package/package.json +1 -1
- package/ui/Button/Button.d.ts +5 -5
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.68","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
|
package/ui/Button/Button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ElementType,
|
|
1
|
+
import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { ColorThemeType, ColorType, SizeType, VariantType } from '../../types/theme';
|
|
3
|
-
type
|
|
4
|
-
|
|
3
|
+
type BtnType = 'button';
|
|
4
|
+
type OwnProps<T extends ElementType = BtnType> = {
|
|
5
5
|
size?: SizeType;
|
|
6
6
|
color?: ColorType | Exclude<ColorThemeType, 'white'>;
|
|
7
7
|
variant?: VariantType;
|
|
@@ -12,6 +12,6 @@ type OwnProps<T extends ElementType = ElementType<HTMLAttributes<HTMLButtonEleme
|
|
|
12
12
|
asIcon?: boolean;
|
|
13
13
|
as?: T;
|
|
14
14
|
};
|
|
15
|
-
export type ButtonProps<T extends ElementType =
|
|
16
|
-
declare const Button: <T extends ElementType>(props: ButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type ButtonProps<T extends ElementType = BtnType> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
16
|
+
declare const Button: <T extends ElementType = "button">(props: ButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default Button;
|