armtek-uikit-react 1.0.272 → 1.0.274
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/_virtual/index10.cjs +2 -2
- package/lib/cjs/_virtual/index11.cjs +2 -2
- package/lib/cjs/_virtual/index9.cjs +2 -2
- package/lib/cjs/node_modules/is-bigint/index.cjs +1 -1
- package/lib/cjs/node_modules/is-symbol/index.cjs +1 -1
- package/lib/cjs/node_modules/is-weakset/index.cjs +1 -1
- package/lib/cjs/ui/Alert/Alert.cjs +1 -1
- package/lib/cjs/ui/Form/Checkbox/Checkbox.cjs +2 -2
- package/lib/cjs/ui/Form/DatePicker/DatePicker.cjs +2 -2
- package/lib/esm/_virtual/index10.js +2 -2
- package/lib/esm/_virtual/index11.js +2 -2
- package/lib/esm/_virtual/index9.js +2 -2
- package/lib/esm/node_modules/is-bigint/index.js +1 -1
- package/lib/esm/node_modules/is-symbol/index.js +1 -1
- package/lib/esm/node_modules/is-weakset/index.js +1 -1
- package/lib/esm/ui/Alert/Alert.js +1 -1
- package/lib/esm/ui/Form/Checkbox/Checkbox.js +2 -2
- package/lib/esm/ui/Form/DatePicker/DatePicker.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index10.cjs");
|
|
4
4
|
const index$1 = require("../has-bigints/index.cjs");
|
|
5
5
|
var hasRequiredIsBigint;
|
|
6
6
|
function requireIsBigint() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index9.cjs");
|
|
4
4
|
const index$2 = require("../call-bound/index.cjs");
|
|
5
5
|
const index$1 = require("../has-symbols/index.cjs");
|
|
6
6
|
const index$3 = require("../safe-regex-test/index.cjs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../../_virtual/
|
|
3
|
+
const index = require("../../_virtual/index11.cjs");
|
|
4
4
|
const index$1 = require("../get-intrinsic/index.cjs");
|
|
5
5
|
const index$2 = require("../call-bound/index.cjs");
|
|
6
6
|
var hasRequiredIsWeakset;
|
|
@@ -19,7 +19,7 @@ const Alert = (props) => {
|
|
|
19
19
|
else if (color === "warning") icon = "warning";
|
|
20
20
|
else if (color === "success") icon = "task_alt";
|
|
21
21
|
}
|
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "alert", ...restProps, className: clsx("arm-alert", {
|
|
23
23
|
["arm-alert_" + color]: !!color,
|
|
24
24
|
["arm-alert_" + variant]: !!variant,
|
|
25
25
|
"arm-alert_no_icon": icon === null
|
|
@@ -31,9 +31,9 @@ const Checkbox = (props) => {
|
|
|
31
31
|
"arm-checkbox__label_disabled": !!inputProps.disabled,
|
|
32
32
|
"arm-checkbox_error": !!error,
|
|
33
33
|
"arm-radio__label": props.type === "radio"
|
|
34
|
-
}), children: /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, className: clsx("arm-checkbox__input", {
|
|
34
|
+
}), children: /* @__PURE__ */ jsxRuntime.jsx("input", { "data-testid": "checkbox_input", ...inputProps, className: clsx("arm-checkbox__input", {
|
|
35
35
|
"arm-checkbox__input_checked": !!inputProps.checked
|
|
36
|
-
}), onChange: handleChange,
|
|
36
|
+
}), onChange: handleChange, type: props.type || "checkbox" }) }),
|
|
37
37
|
label && /* @__PURE__ */ jsxRuntime.jsx("span", { onClick: () => {
|
|
38
38
|
var _a;
|
|
39
39
|
return (_a = labelRef.current) == null ? void 0 : _a.click();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const
|
|
5
|
+
const reactDatepicker = require("react-datepicker");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const ru = require("date-fns/locale/ru");
|
|
8
8
|
const format = require("date-fns/format");
|
|
@@ -17,7 +17,7 @@ const renderDayContents = (day) => {
|
|
|
17
17
|
};
|
|
18
18
|
const DatePicker = React.forwardRef((props, ref) => {
|
|
19
19
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ui-datepicker", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
20
|
-
|
|
20
|
+
reactDatepicker.DatePicker,
|
|
21
21
|
{
|
|
22
22
|
ref,
|
|
23
23
|
locale: ru.ru,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as isSymbol } from "../../_virtual/
|
|
1
|
+
import { __module as isSymbol } from "../../_virtual/index9.js";
|
|
2
2
|
import { __require as requireCallBound } from "../call-bound/index.js";
|
|
3
3
|
import { __require as requireHasSymbols } from "../has-symbols/index.js";
|
|
4
4
|
import { __require as requireSafeRegexTest } from "../safe-regex-test/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as isWeakset } from "../../_virtual/
|
|
1
|
+
import { __module as isWeakset } from "../../_virtual/index11.js";
|
|
2
2
|
import { __require as requireGetIntrinsic } from "../get-intrinsic/index.js";
|
|
3
3
|
import { __require as requireCallBound } from "../call-bound/index.js";
|
|
4
4
|
var hasRequiredIsWeakset;
|
|
@@ -17,7 +17,7 @@ const Alert = (props) => {
|
|
|
17
17
|
else if (color === "warning") icon = "warning";
|
|
18
18
|
else if (color === "success") icon = "task_alt";
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { "data-testid": "alert", ...restProps, className: clsx("arm-alert", {
|
|
21
21
|
["arm-alert_" + color]: !!color,
|
|
22
22
|
["arm-alert_" + variant]: !!variant,
|
|
23
23
|
"arm-alert_no_icon": icon === null
|
|
@@ -29,9 +29,9 @@ const Checkbox = (props) => {
|
|
|
29
29
|
"arm-checkbox__label_disabled": !!inputProps.disabled,
|
|
30
30
|
"arm-checkbox_error": !!error,
|
|
31
31
|
"arm-radio__label": props.type === "radio"
|
|
32
|
-
}), children: /* @__PURE__ */ jsx("input", { ...inputProps, className: clsx("arm-checkbox__input", {
|
|
32
|
+
}), children: /* @__PURE__ */ jsx("input", { "data-testid": "checkbox_input", ...inputProps, className: clsx("arm-checkbox__input", {
|
|
33
33
|
"arm-checkbox__input_checked": !!inputProps.checked
|
|
34
|
-
}), onChange: handleChange,
|
|
34
|
+
}), onChange: handleChange, type: props.type || "checkbox" }) }),
|
|
35
35
|
label && /* @__PURE__ */ jsx("span", { onClick: () => {
|
|
36
36
|
var _a;
|
|
37
37
|
return (_a = labelRef.current) == null ? void 0 : _a.click();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import
|
|
3
|
+
import { DatePicker as DatePicker$1 } from "react-datepicker";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { ru } from "date-fns/locale/ru";
|
|
6
6
|
import { format } from "date-fns/format";
|
|
@@ -15,7 +15,7 @@ const renderDayContents = (day) => {
|
|
|
15
15
|
};
|
|
16
16
|
const DatePicker = forwardRef((props, ref) => {
|
|
17
17
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "ui-datepicker", children: /* @__PURE__ */ jsx(
|
|
18
|
-
|
|
18
|
+
DatePicker$1,
|
|
19
19
|
{
|
|
20
20
|
ref,
|
|
21
21
|
locale: ru,
|