armtek-uikit-react 1.0.275 → 1.0.276
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/lib/cjs/ui/HelperText/HelperText.cjs +2 -1
- package/lib/cjs/ui/HelperText/HelperText.d.ts +1 -0
- package/lib/cjs/ui/Slider/Slider.cjs +19 -1
- package/lib/esm/ui/HelperText/HelperText.d.ts +1 -0
- package/lib/esm/ui/HelperText/HelperText.js +2 -1
- package/lib/esm/ui/Slider/Slider.js +2 -1
- package/package.json +1 -1
|
@@ -4,13 +4,14 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const clsx = require("clsx");
|
|
5
5
|
const HelperText = (props) => {
|
|
6
6
|
let {
|
|
7
|
+
"data-testid": dataTestId,
|
|
7
8
|
className,
|
|
8
9
|
error,
|
|
9
10
|
success,
|
|
10
11
|
children,
|
|
11
12
|
...restProps
|
|
12
13
|
} = props;
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { ...restProps, "data-testid": "helper_text", className: clsx("arm-helper-text", {
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { ...restProps, "data-testid": dataTestId || "helper_text", className: clsx("arm-helper-text", {
|
|
14
15
|
"arm-helper-text_error": !!error,
|
|
15
16
|
"arm-helper-text_success": !!success && !error
|
|
16
17
|
}, className), children }) });
|
|
@@ -2,6 +2,7 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
export type HelperTextProps = {
|
|
3
3
|
error?: boolean;
|
|
4
4
|
success?: boolean;
|
|
5
|
+
'data-testid'?: string;
|
|
5
6
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
6
7
|
declare const HelperText: (props: HelperTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default HelperText;
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const
|
|
4
|
+
const RcSliderModule = require("rc-slider");
|
|
5
5
|
;/* empty css */
|
|
6
6
|
const ui_HelperText_HelperText = require("../HelperText/HelperText.cjs");
|
|
7
7
|
const clsx = require("clsx");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const RcSliderModule__namespace = /* @__PURE__ */ _interopNamespaceDefault(RcSliderModule);
|
|
25
|
+
const RcSlider = "default" in RcSliderModule__namespace ? RcSliderModule__namespace.default : RcSliderModule__namespace;
|
|
8
26
|
function Slider(props) {
|
|
9
27
|
const {
|
|
10
28
|
size = "large",
|
|
@@ -2,6 +2,7 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
export type HelperTextProps = {
|
|
3
3
|
error?: boolean;
|
|
4
4
|
success?: boolean;
|
|
5
|
+
'data-testid'?: string;
|
|
5
6
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
6
7
|
declare const HelperText: (props: HelperTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default HelperText;
|
|
@@ -2,13 +2,14 @@ import { jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
const HelperText = (props) => {
|
|
4
4
|
let {
|
|
5
|
+
"data-testid": dataTestId,
|
|
5
6
|
className,
|
|
6
7
|
error,
|
|
7
8
|
success,
|
|
8
9
|
children,
|
|
9
10
|
...restProps
|
|
10
11
|
} = props;
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { ...restProps, "data-testid": "helper_text", className: clsx("arm-helper-text", {
|
|
12
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { ...restProps, "data-testid": dataTestId || "helper_text", className: clsx("arm-helper-text", {
|
|
12
13
|
"arm-helper-text_error": !!error,
|
|
13
14
|
"arm-helper-text_success": !!success && !error
|
|
14
15
|
}, className), children }) });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import * as RcSliderModule from "rc-slider";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import HelperText from "../HelperText/HelperText.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
+
const RcSlider = "default" in RcSliderModule ? RcSliderModule.default : RcSliderModule;
|
|
6
7
|
function Slider(props) {
|
|
7
8
|
const {
|
|
8
9
|
size = "large",
|