armtek-uikit-react 1.0.160 → 1.0.162
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 +19 -2
- package/ui/Button/Button.js +1 -1
- package/ui/ButtonIcon/ButtonIcon.d.ts +4 -15
- package/ui/Link/Link.d.ts +1 -1
- package/ui/Link/Link.js +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"armtek-uikit-react","version":"1.0.
|
|
1
|
+
{"name":"armtek-uikit-react","version":"1.0.162","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","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":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
|
package/ui/Button/Button.d.ts
CHANGED
|
@@ -12,9 +12,26 @@ type OwnProps<T extends ElementType = BtnType> = {
|
|
|
12
12
|
asIcon?: boolean;
|
|
13
13
|
theme?: ThemeType;
|
|
14
14
|
fullWidth?: boolean;
|
|
15
|
-
disablestyles?:
|
|
15
|
+
disablestyles?: string;
|
|
16
16
|
as?: T;
|
|
17
|
+
} & {
|
|
18
|
+
[dataAttibute: `data-${string}`]: string;
|
|
17
19
|
};
|
|
18
20
|
export type ButtonProps<T extends ElementType = BtnType> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
19
|
-
declare const _default: <T extends ElementType = "button">(props:
|
|
21
|
+
declare const _default: <T extends ElementType = "button">(props: {
|
|
22
|
+
size?: SizeType | undefined;
|
|
23
|
+
color?: "black" | "green" | "red" | ColorType | undefined;
|
|
24
|
+
variant?: VariantType | undefined;
|
|
25
|
+
startAdornment?: ReactNode;
|
|
26
|
+
endAdornment?: ReactNode;
|
|
27
|
+
group?: "column" | "inline" | undefined;
|
|
28
|
+
radius?: boolean | undefined;
|
|
29
|
+
asIcon?: boolean | undefined;
|
|
30
|
+
theme?: ThemeType | undefined;
|
|
31
|
+
fullWidth?: boolean | undefined;
|
|
32
|
+
disablestyles?: string | undefined;
|
|
33
|
+
as?: T | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
[dataAttibute: `data-${string}`]: string;
|
|
36
|
+
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<T>>, "color" | "size" | "radius" | "as" | "group" | `data-${string}` | "variant" | "startAdornment" | "endAdornment" | "asIcon" | "theme" | "fullWidth" | "disablestyles"> & import("react").RefAttributes<any>) => JSX.Element;
|
|
20
37
|
export default _default;
|
package/ui/Button/Button.js
CHANGED
|
@@ -34,7 +34,7 @@ const Button = (props, ref) => {
|
|
|
34
34
|
['arm-button_theme_' + theme]: !!theme
|
|
35
35
|
});
|
|
36
36
|
const polymorphProps = !!as && typeof as !== 'string' ? {
|
|
37
|
-
disablestyles: true
|
|
37
|
+
disablestyles: 'true'
|
|
38
38
|
} : {};
|
|
39
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
40
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
|
|
@@ -16,20 +16,9 @@ declare const _default: <T extends ElementType = "button">(props: ButtonIconProp
|
|
|
16
16
|
asIcon?: boolean | undefined;
|
|
17
17
|
theme?: import("../../types/theme").ThemeType | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined;
|
|
19
|
-
disablestyles?:
|
|
19
|
+
disablestyles?: string | undefined;
|
|
20
20
|
as?: T | undefined;
|
|
21
|
-
} &
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
variant?: import("../../types/theme").VariantType | undefined;
|
|
25
|
-
startAdornment?: import("react").ReactNode;
|
|
26
|
-
endAdornment?: import("react").ReactNode;
|
|
27
|
-
group?: "column" | "inline" | undefined;
|
|
28
|
-
radius?: boolean | undefined;
|
|
29
|
-
asIcon?: boolean | undefined;
|
|
30
|
-
theme?: import("../../types/theme").ThemeType | undefined;
|
|
31
|
-
fullWidth?: boolean | undefined;
|
|
32
|
-
disablestyles?: boolean | undefined;
|
|
33
|
-
as?: T_1 | undefined;
|
|
34
|
-
}> & import("react").RefAttributes<T>) => JSX.Element;
|
|
21
|
+
} & {
|
|
22
|
+
[dataAttibute: `data-${string}`]: string;
|
|
23
|
+
} & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<T>>, "color" | "size" | "radius" | "as" | "group" | `data-${string}` | "variant" | "startAdornment" | "endAdornment" | "asIcon" | "theme" | "fullWidth" | "disablestyles"> & import("react").RefAttributes<T>) => JSX.Element;
|
|
35
24
|
export default _default;
|
package/ui/Link/Link.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type OwnProps<T extends ElementType = LinkType> = {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
theme?: ThemeType;
|
|
10
10
|
size?: SizeType;
|
|
11
|
-
disablestyles?:
|
|
11
|
+
disablestyles?: string;
|
|
12
12
|
};
|
|
13
13
|
export type LinkProps<T extends ElementType = LinkType> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps<T>>;
|
|
14
14
|
declare const Link: <T extends ElementType = "a">(props: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/ui/Link/Link.js
CHANGED
|
@@ -28,7 +28,7 @@ const Link = props => {
|
|
|
28
28
|
['arm-link_color_' + color]: !!color
|
|
29
29
|
}, className);
|
|
30
30
|
const polymorphProps = !!as && typeof as !== 'string' ? {
|
|
31
|
-
disablestyles: true
|
|
31
|
+
disablestyles: 'true'
|
|
32
32
|
} : {};
|
|
33
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
34
34
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|