armtek-uikit-react 1.0.275 → 1.0.277

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.
@@ -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,11 @@
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 RcSlider = require("rc-slider");
4
+ const RcSliderImport = require("rc-slider");
5
5
  ;/* empty css */
6
6
  const ui_HelperText_HelperText = require("../HelperText/HelperText.cjs");
7
7
  const clsx = require("clsx");
8
+ const RcSlider = RcSliderImport.default || RcSliderImport;
8
9
  function Slider(props) {
9
10
  const {
10
11
  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 RcSlider from "rc-slider";
2
+ import RcSliderImport from "rc-slider";
3
3
  /* empty css */
4
4
  import HelperText from "../HelperText/HelperText.js";
5
5
  import clsx from "clsx";
6
+ const RcSlider = RcSliderImport.default || RcSliderImport;
6
7
  function Slider(props) {
7
8
  const {
8
9
  size = "large",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "armtek-uikit-react",
3
- "version": "1.0.275",
3
+ "version": "1.0.277",
4
4
  "description": "Armtek UIKit for React",
5
5
  "main": "lib/cjs/index.cjs",
6
6
  "module": "lib/esm/index.js",