fui-material 2.5.7 → 2.5.8
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/dist/f-ui-kit.es.js +65 -9
- package/dist/f-ui-kit.es.js.map +1 -1
- package/dist/types/material/FFullDateField/FFullDateField.d.ts +3 -3
- package/dist/types/material/FSearchBox/FSearchBox.d.ts +4 -4
- package/dist/types/material/FSearchableSelect/FSearchableSelect.d.ts +4 -4
- package/dist/types/material/FSelectSearchDb/FSelectSearchDb.d.ts +4 -3
- package/dist/types/material/FTextArea/FTextArea.d.ts +2 -2
- package/dist/types/material/FTextField/FTextField.d.ts +2 -2
- package/dist/types/material/SelectComponents/FSelect/FSelect.d.ts +3 -2
- package/package.json +1 -1
package/dist/f-ui-kit.es.js
CHANGED
|
@@ -1315,11 +1315,25 @@ const FTextField = forwardRef(
|
|
|
1315
1315
|
children: helpText
|
|
1316
1316
|
}
|
|
1317
1317
|
),
|
|
1318
|
+
typeof errText === "string" && errText && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1319
|
+
"div",
|
|
1320
|
+
{
|
|
1321
|
+
className: "f-form-element__errorblock",
|
|
1322
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1323
|
+
"p",
|
|
1324
|
+
{
|
|
1325
|
+
id: `${inputId}-errortext`,
|
|
1326
|
+
className: "f-form-element__errorblock_errortext",
|
|
1327
|
+
children: errText
|
|
1328
|
+
}
|
|
1329
|
+
)
|
|
1330
|
+
}
|
|
1331
|
+
),
|
|
1318
1332
|
errText && errText.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1319
1333
|
"div",
|
|
1320
1334
|
{
|
|
1321
1335
|
className: "f-form-element__errorblock",
|
|
1322
|
-
children: errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1336
|
+
children: typeof errText !== "string" && errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1323
1337
|
"p",
|
|
1324
1338
|
{
|
|
1325
1339
|
id: `${inputId}-errortext-${index}`,
|
|
@@ -2838,15 +2852,29 @@ const FSelect = forwardRef(
|
|
|
2838
2852
|
children: helpText
|
|
2839
2853
|
}
|
|
2840
2854
|
),
|
|
2855
|
+
typeof errText === "string" && errText && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2856
|
+
"div",
|
|
2857
|
+
{
|
|
2858
|
+
className: "f-form-element__errorblock",
|
|
2859
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2860
|
+
"p",
|
|
2861
|
+
{
|
|
2862
|
+
id: `${inputId}-errortext`,
|
|
2863
|
+
className: "f-form-element__errorblock_errortext",
|
|
2864
|
+
children: errText
|
|
2865
|
+
}
|
|
2866
|
+
)
|
|
2867
|
+
}
|
|
2868
|
+
),
|
|
2841
2869
|
errText && errText.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2842
2870
|
"div",
|
|
2843
2871
|
{
|
|
2844
|
-
className:
|
|
2845
|
-
children: errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2872
|
+
className: "f-form-element__errorblock",
|
|
2873
|
+
children: typeof errText !== "string" && errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
2846
2874
|
"p",
|
|
2847
2875
|
{
|
|
2848
2876
|
id: `${inputId}-errortext-${index}`,
|
|
2849
|
-
className:
|
|
2877
|
+
className: "f-form-element__errorblock_errortext",
|
|
2850
2878
|
children: error2
|
|
2851
2879
|
},
|
|
2852
2880
|
index
|
|
@@ -2899,7 +2927,7 @@ const FFullDateField = forwardRef(
|
|
|
2899
2927
|
value: load ? "" : value,
|
|
2900
2928
|
type: load ? "text" : "date",
|
|
2901
2929
|
helpText,
|
|
2902
|
-
errText,
|
|
2930
|
+
errText: typeof errText === "string" ? [errText] : errText,
|
|
2903
2931
|
...props
|
|
2904
2932
|
}
|
|
2905
2933
|
);
|
|
@@ -3117,7 +3145,7 @@ const FSelectSearchDb = ({
|
|
|
3117
3145
|
},
|
|
3118
3146
|
load,
|
|
3119
3147
|
helpText: load ? "Загрузка..." : textInput ? "После окончания ввода запрос отправится через 3 сек" : helpText,
|
|
3120
|
-
errText: errText || error2
|
|
3148
|
+
errText: typeof errText === "string" ? [errText] : errText || error2
|
|
3121
3149
|
}
|
|
3122
3150
|
),
|
|
3123
3151
|
!load && !disabled2 && arrObject.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -3213,11 +3241,25 @@ const FTextArea = forwardRef(
|
|
|
3213
3241
|
children: helpText
|
|
3214
3242
|
}
|
|
3215
3243
|
),
|
|
3244
|
+
typeof errText === "string" && errText && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3245
|
+
"div",
|
|
3246
|
+
{
|
|
3247
|
+
className: "f-form-element__errorblock",
|
|
3248
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3249
|
+
"p",
|
|
3250
|
+
{
|
|
3251
|
+
id: `${areaId}-errortext`,
|
|
3252
|
+
className: "f-form-element__errorblock_errortext",
|
|
3253
|
+
children: errText
|
|
3254
|
+
}
|
|
3255
|
+
)
|
|
3256
|
+
}
|
|
3257
|
+
),
|
|
3216
3258
|
errText && errText.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3217
3259
|
"div",
|
|
3218
3260
|
{
|
|
3219
3261
|
className: "f-form-element__errorblock",
|
|
3220
|
-
children: errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3262
|
+
children: typeof errText !== "string" && errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
3221
3263
|
"p",
|
|
3222
3264
|
{
|
|
3223
3265
|
id: `${areaId}-errortext-${index}`,
|
|
@@ -3716,7 +3758,7 @@ const FSearchBox = forwardRef(
|
|
|
3716
3758
|
readOnly: readOnly || load,
|
|
3717
3759
|
type: type ?? "text",
|
|
3718
3760
|
helpText,
|
|
3719
|
-
errText,
|
|
3761
|
+
errText: typeof errText === "string" ? [errText] : errText,
|
|
3720
3762
|
load,
|
|
3721
3763
|
...props,
|
|
3722
3764
|
className: `${styles$c["f-search-box__input"]} ${props.className || ""}`
|
|
@@ -4554,11 +4596,25 @@ const FSearchableSelect = forwardRef(
|
|
|
4554
4596
|
children: helpText
|
|
4555
4597
|
}
|
|
4556
4598
|
),
|
|
4599
|
+
typeof errText === "string" && errText && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4600
|
+
"div",
|
|
4601
|
+
{
|
|
4602
|
+
className: "f-form-element__errorblock",
|
|
4603
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4604
|
+
"p",
|
|
4605
|
+
{
|
|
4606
|
+
id: `${inputId}-errortext`,
|
|
4607
|
+
className: "f-form-element__errorblock_errortext",
|
|
4608
|
+
children: errText
|
|
4609
|
+
}
|
|
4610
|
+
)
|
|
4611
|
+
}
|
|
4612
|
+
),
|
|
4557
4613
|
errText && errText.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4558
4614
|
"div",
|
|
4559
4615
|
{
|
|
4560
4616
|
className: "f-form-element__errorblock",
|
|
4561
|
-
children: errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4617
|
+
children: typeof errText !== "string" && errText.map((error2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
4562
4618
|
"p",
|
|
4563
4619
|
{
|
|
4564
4620
|
id: `${inputId}-errortext-${index}`,
|