@fctc/sme-widget-ui 1.1.5 → 1.1.7
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/index.js +14 -15
- package/dist/index.mjs +14 -15
- package/dist/widgets.js +14 -15
- package/dist/widgets.mjs +14 -15
- package/package.json +1 -1
- package/dist/.babelrc +0 -7
- package/dist/.editorconfig +0 -10
- package/dist/.eslintignore +0 -6
- package/dist/.eslintrc.cjs +0 -66
- package/dist/.gitattributes +0 -4
- package/dist/.prettierrc +0 -4
package/dist/index.js
CHANGED
|
@@ -32725,9 +32725,11 @@ var FloatField = (props) => {
|
|
|
32725
32725
|
isForm,
|
|
32726
32726
|
string,
|
|
32727
32727
|
defaultValue,
|
|
32728
|
+
isEditTable,
|
|
32728
32729
|
onChange: handleOnchange
|
|
32729
32730
|
} = props;
|
|
32730
|
-
|
|
32731
|
+
const { t: t3 } = useTranslation();
|
|
32732
|
+
if (!isForm && !isEditTable) {
|
|
32731
32733
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32732
32734
|
}
|
|
32733
32735
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
@@ -32736,8 +32738,8 @@ var FloatField = (props) => {
|
|
|
32736
32738
|
name: name2 ?? "",
|
|
32737
32739
|
control: methods.control,
|
|
32738
32740
|
rules: {
|
|
32739
|
-
required: required && !invisible ? { value: true, message: `${string} ${
|
|
32740
|
-
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) ||
|
|
32741
|
+
required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false,
|
|
32742
|
+
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) || t3("invalid_number")
|
|
32741
32743
|
},
|
|
32742
32744
|
render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
|
|
32743
32745
|
const { setError, clearErrors } = methods;
|
|
@@ -32773,7 +32775,7 @@ var FloatField = (props) => {
|
|
|
32773
32775
|
if (parsedValue < 0) {
|
|
32774
32776
|
setError(name2, {
|
|
32775
32777
|
type: "validate",
|
|
32776
|
-
message:
|
|
32778
|
+
message: t3("invalid_number")
|
|
32777
32779
|
});
|
|
32778
32780
|
} else {
|
|
32779
32781
|
onChange2(parsedValue);
|
|
@@ -32787,17 +32789,13 @@ var FloatField = (props) => {
|
|
|
32787
32789
|
}
|
|
32788
32790
|
};
|
|
32789
32791
|
const handleInputMouseLeave = () => {
|
|
32790
|
-
if (!isDirtyRef.current) {
|
|
32791
|
-
inputRef.current?.blur();
|
|
32792
|
-
return;
|
|
32793
|
-
}
|
|
32794
32792
|
const rawValue = inputValue.replace(/,/g, "");
|
|
32795
32793
|
const parsedValue = parseFloat(rawValue);
|
|
32796
32794
|
if (rawValue === "" || rawValue === ".") {
|
|
32797
32795
|
if (required) {
|
|
32798
32796
|
setError(name2, {
|
|
32799
32797
|
type: "required",
|
|
32800
|
-
message: `${string} ${
|
|
32798
|
+
message: `${string} ${t3("must_required")}`
|
|
32801
32799
|
});
|
|
32802
32800
|
}
|
|
32803
32801
|
onChange2(null);
|
|
@@ -32807,7 +32805,7 @@ var FloatField = (props) => {
|
|
|
32807
32805
|
if (parsedValue < 0) {
|
|
32808
32806
|
setError(name2, {
|
|
32809
32807
|
type: "validate",
|
|
32810
|
-
message:
|
|
32808
|
+
message: t3("invalid_number")
|
|
32811
32809
|
});
|
|
32812
32810
|
setInputValue("");
|
|
32813
32811
|
lastCommittedValueRef.current = null;
|
|
@@ -32828,13 +32826,12 @@ var FloatField = (props) => {
|
|
|
32828
32826
|
} else {
|
|
32829
32827
|
setError(name2, {
|
|
32830
32828
|
type: "validate",
|
|
32831
|
-
message:
|
|
32829
|
+
message: t3("invalid_number")
|
|
32832
32830
|
});
|
|
32833
32831
|
setInputValue("");
|
|
32834
32832
|
lastCommittedValueRef.current = null;
|
|
32835
32833
|
}
|
|
32836
32834
|
isDirtyRef.current = false;
|
|
32837
|
-
inputRef.current?.blur();
|
|
32838
32835
|
};
|
|
32839
32836
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
32840
32837
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
@@ -32850,12 +32847,14 @@ var FloatField = (props) => {
|
|
|
32850
32847
|
placeholder,
|
|
32851
32848
|
required: !invisible && required,
|
|
32852
32849
|
style: invisible ? { display: "none" } : {},
|
|
32853
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none
|
|
32854
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#
|
|
32850
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none outline-0 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
|
|
32851
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
|
|
32852
|
+
${!isEditTable ? "bg-[#f7f7f7] borer-input-primary rounded-[10px] px-3" : "border-b-primary bg-transparent "}
|
|
32853
|
+
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32855
32854
|
`
|
|
32856
32855
|
}
|
|
32857
32856
|
),
|
|
32858
|
-
error2 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32857
|
+
error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32859
32858
|
] });
|
|
32860
32859
|
}
|
|
32861
32860
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -32606,9 +32606,11 @@ var FloatField = (props) => {
|
|
|
32606
32606
|
isForm,
|
|
32607
32607
|
string,
|
|
32608
32608
|
defaultValue,
|
|
32609
|
+
isEditTable,
|
|
32609
32610
|
onChange: handleOnchange
|
|
32610
32611
|
} = props;
|
|
32611
|
-
|
|
32612
|
+
const { t: t3 } = useTranslation();
|
|
32613
|
+
if (!isForm && !isEditTable) {
|
|
32612
32614
|
return /* @__PURE__ */ jsx85("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32613
32615
|
}
|
|
32614
32616
|
return /* @__PURE__ */ jsx85(
|
|
@@ -32617,8 +32619,8 @@ var FloatField = (props) => {
|
|
|
32617
32619
|
name: name2 ?? "",
|
|
32618
32620
|
control: methods.control,
|
|
32619
32621
|
rules: {
|
|
32620
|
-
required: required && !invisible ? { value: true, message: `${string} ${
|
|
32621
|
-
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) ||
|
|
32622
|
+
required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false,
|
|
32623
|
+
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) || t3("invalid_number")
|
|
32622
32624
|
},
|
|
32623
32625
|
render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
|
|
32624
32626
|
const { setError, clearErrors } = methods;
|
|
@@ -32654,7 +32656,7 @@ var FloatField = (props) => {
|
|
|
32654
32656
|
if (parsedValue < 0) {
|
|
32655
32657
|
setError(name2, {
|
|
32656
32658
|
type: "validate",
|
|
32657
|
-
message:
|
|
32659
|
+
message: t3("invalid_number")
|
|
32658
32660
|
});
|
|
32659
32661
|
} else {
|
|
32660
32662
|
onChange2(parsedValue);
|
|
@@ -32668,17 +32670,13 @@ var FloatField = (props) => {
|
|
|
32668
32670
|
}
|
|
32669
32671
|
};
|
|
32670
32672
|
const handleInputMouseLeave = () => {
|
|
32671
|
-
if (!isDirtyRef.current) {
|
|
32672
|
-
inputRef.current?.blur();
|
|
32673
|
-
return;
|
|
32674
|
-
}
|
|
32675
32673
|
const rawValue = inputValue.replace(/,/g, "");
|
|
32676
32674
|
const parsedValue = parseFloat(rawValue);
|
|
32677
32675
|
if (rawValue === "" || rawValue === ".") {
|
|
32678
32676
|
if (required) {
|
|
32679
32677
|
setError(name2, {
|
|
32680
32678
|
type: "required",
|
|
32681
|
-
message: `${string} ${
|
|
32679
|
+
message: `${string} ${t3("must_required")}`
|
|
32682
32680
|
});
|
|
32683
32681
|
}
|
|
32684
32682
|
onChange2(null);
|
|
@@ -32688,7 +32686,7 @@ var FloatField = (props) => {
|
|
|
32688
32686
|
if (parsedValue < 0) {
|
|
32689
32687
|
setError(name2, {
|
|
32690
32688
|
type: "validate",
|
|
32691
|
-
message:
|
|
32689
|
+
message: t3("invalid_number")
|
|
32692
32690
|
});
|
|
32693
32691
|
setInputValue("");
|
|
32694
32692
|
lastCommittedValueRef.current = null;
|
|
@@ -32709,13 +32707,12 @@ var FloatField = (props) => {
|
|
|
32709
32707
|
} else {
|
|
32710
32708
|
setError(name2, {
|
|
32711
32709
|
type: "validate",
|
|
32712
|
-
message:
|
|
32710
|
+
message: t3("invalid_number")
|
|
32713
32711
|
});
|
|
32714
32712
|
setInputValue("");
|
|
32715
32713
|
lastCommittedValueRef.current = null;
|
|
32716
32714
|
}
|
|
32717
32715
|
isDirtyRef.current = false;
|
|
32718
|
-
inputRef.current?.blur();
|
|
32719
32716
|
};
|
|
32720
32717
|
return /* @__PURE__ */ jsxs59(Fragment24, { children: [
|
|
32721
32718
|
/* @__PURE__ */ jsx85(
|
|
@@ -32731,12 +32728,14 @@ var FloatField = (props) => {
|
|
|
32731
32728
|
placeholder,
|
|
32732
32729
|
required: !invisible && required,
|
|
32733
32730
|
style: invisible ? { display: "none" } : {},
|
|
32734
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none
|
|
32735
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#
|
|
32731
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none outline-0 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
|
|
32732
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
|
|
32733
|
+
${!isEditTable ? "bg-[#f7f7f7] borer-input-primary rounded-[10px] px-3" : "border-b-primary bg-transparent "}
|
|
32734
|
+
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32736
32735
|
`
|
|
32737
32736
|
}
|
|
32738
32737
|
),
|
|
32739
|
-
error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32738
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32740
32739
|
] });
|
|
32741
32740
|
}
|
|
32742
32741
|
}
|
package/dist/widgets.js
CHANGED
|
@@ -32370,9 +32370,11 @@ var FloatField = (props) => {
|
|
|
32370
32370
|
isForm,
|
|
32371
32371
|
string,
|
|
32372
32372
|
defaultValue,
|
|
32373
|
+
isEditTable,
|
|
32373
32374
|
onChange: handleOnchange
|
|
32374
32375
|
} = props;
|
|
32375
|
-
|
|
32376
|
+
const { t: t3 } = useTranslation();
|
|
32377
|
+
if (!isForm && !isEditTable) {
|
|
32376
32378
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32377
32379
|
}
|
|
32378
32380
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
@@ -32381,8 +32383,8 @@ var FloatField = (props) => {
|
|
|
32381
32383
|
name: name2 ?? "",
|
|
32382
32384
|
control: methods.control,
|
|
32383
32385
|
rules: {
|
|
32384
|
-
required: required && !invisible ? { value: true, message: `${string} ${
|
|
32385
|
-
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) ||
|
|
32386
|
+
required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false,
|
|
32387
|
+
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) || t3("invalid_number")
|
|
32386
32388
|
},
|
|
32387
32389
|
render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
|
|
32388
32390
|
const { setError, clearErrors } = methods;
|
|
@@ -32418,7 +32420,7 @@ var FloatField = (props) => {
|
|
|
32418
32420
|
if (parsedValue < 0) {
|
|
32419
32421
|
setError(name2, {
|
|
32420
32422
|
type: "validate",
|
|
32421
|
-
message:
|
|
32423
|
+
message: t3("invalid_number")
|
|
32422
32424
|
});
|
|
32423
32425
|
} else {
|
|
32424
32426
|
onChange2(parsedValue);
|
|
@@ -32432,17 +32434,13 @@ var FloatField = (props) => {
|
|
|
32432
32434
|
}
|
|
32433
32435
|
};
|
|
32434
32436
|
const handleInputMouseLeave = () => {
|
|
32435
|
-
if (!isDirtyRef.current) {
|
|
32436
|
-
inputRef.current?.blur();
|
|
32437
|
-
return;
|
|
32438
|
-
}
|
|
32439
32437
|
const rawValue = inputValue.replace(/,/g, "");
|
|
32440
32438
|
const parsedValue = parseFloat(rawValue);
|
|
32441
32439
|
if (rawValue === "" || rawValue === ".") {
|
|
32442
32440
|
if (required) {
|
|
32443
32441
|
setError(name2, {
|
|
32444
32442
|
type: "required",
|
|
32445
|
-
message: `${string} ${
|
|
32443
|
+
message: `${string} ${t3("must_required")}`
|
|
32446
32444
|
});
|
|
32447
32445
|
}
|
|
32448
32446
|
onChange2(null);
|
|
@@ -32452,7 +32450,7 @@ var FloatField = (props) => {
|
|
|
32452
32450
|
if (parsedValue < 0) {
|
|
32453
32451
|
setError(name2, {
|
|
32454
32452
|
type: "validate",
|
|
32455
|
-
message:
|
|
32453
|
+
message: t3("invalid_number")
|
|
32456
32454
|
});
|
|
32457
32455
|
setInputValue("");
|
|
32458
32456
|
lastCommittedValueRef.current = null;
|
|
@@ -32473,13 +32471,12 @@ var FloatField = (props) => {
|
|
|
32473
32471
|
} else {
|
|
32474
32472
|
setError(name2, {
|
|
32475
32473
|
type: "validate",
|
|
32476
|
-
message:
|
|
32474
|
+
message: t3("invalid_number")
|
|
32477
32475
|
});
|
|
32478
32476
|
setInputValue("");
|
|
32479
32477
|
lastCommittedValueRef.current = null;
|
|
32480
32478
|
}
|
|
32481
32479
|
isDirtyRef.current = false;
|
|
32482
|
-
inputRef.current?.blur();
|
|
32483
32480
|
};
|
|
32484
32481
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
32485
32482
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
@@ -32495,12 +32492,14 @@ var FloatField = (props) => {
|
|
|
32495
32492
|
placeholder,
|
|
32496
32493
|
required: !invisible && required,
|
|
32497
32494
|
style: invisible ? { display: "none" } : {},
|
|
32498
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none
|
|
32499
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#
|
|
32495
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none outline-0 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
|
|
32496
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
|
|
32497
|
+
${!isEditTable ? "bg-[#f7f7f7] borer-input-primary rounded-[10px] px-3" : "border-b-primary bg-transparent "}
|
|
32498
|
+
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32500
32499
|
`
|
|
32501
32500
|
}
|
|
32502
32501
|
),
|
|
32503
|
-
error2 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32502
|
+
error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32504
32503
|
] });
|
|
32505
32504
|
}
|
|
32506
32505
|
}
|
package/dist/widgets.mjs
CHANGED
|
@@ -32308,9 +32308,11 @@ var FloatField = (props) => {
|
|
|
32308
32308
|
isForm,
|
|
32309
32309
|
string,
|
|
32310
32310
|
defaultValue,
|
|
32311
|
+
isEditTable,
|
|
32311
32312
|
onChange: handleOnchange
|
|
32312
32313
|
} = props;
|
|
32313
|
-
|
|
32314
|
+
const { t: t3 } = useTranslation();
|
|
32315
|
+
if (!isForm && !isEditTable) {
|
|
32314
32316
|
return /* @__PURE__ */ jsx85("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32315
32317
|
}
|
|
32316
32318
|
return /* @__PURE__ */ jsx85(
|
|
@@ -32319,8 +32321,8 @@ var FloatField = (props) => {
|
|
|
32319
32321
|
name: name2 ?? "",
|
|
32320
32322
|
control: methods.control,
|
|
32321
32323
|
rules: {
|
|
32322
|
-
required: required && !invisible ? { value: true, message: `${string} ${
|
|
32323
|
-
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) ||
|
|
32324
|
+
required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false,
|
|
32325
|
+
validate: (val) => val === void 0 || val === null || val === "" || !isNaN(parseFloat(String(val).replace(",", "."))) || t3("invalid_number")
|
|
32324
32326
|
},
|
|
32325
32327
|
render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
|
|
32326
32328
|
const { setError, clearErrors } = methods;
|
|
@@ -32356,7 +32358,7 @@ var FloatField = (props) => {
|
|
|
32356
32358
|
if (parsedValue < 0) {
|
|
32357
32359
|
setError(name2, {
|
|
32358
32360
|
type: "validate",
|
|
32359
|
-
message:
|
|
32361
|
+
message: t3("invalid_number")
|
|
32360
32362
|
});
|
|
32361
32363
|
} else {
|
|
32362
32364
|
onChange2(parsedValue);
|
|
@@ -32370,17 +32372,13 @@ var FloatField = (props) => {
|
|
|
32370
32372
|
}
|
|
32371
32373
|
};
|
|
32372
32374
|
const handleInputMouseLeave = () => {
|
|
32373
|
-
if (!isDirtyRef.current) {
|
|
32374
|
-
inputRef.current?.blur();
|
|
32375
|
-
return;
|
|
32376
|
-
}
|
|
32377
32375
|
const rawValue = inputValue.replace(/,/g, "");
|
|
32378
32376
|
const parsedValue = parseFloat(rawValue);
|
|
32379
32377
|
if (rawValue === "" || rawValue === ".") {
|
|
32380
32378
|
if (required) {
|
|
32381
32379
|
setError(name2, {
|
|
32382
32380
|
type: "required",
|
|
32383
|
-
message: `${string} ${
|
|
32381
|
+
message: `${string} ${t3("must_required")}`
|
|
32384
32382
|
});
|
|
32385
32383
|
}
|
|
32386
32384
|
onChange2(null);
|
|
@@ -32390,7 +32388,7 @@ var FloatField = (props) => {
|
|
|
32390
32388
|
if (parsedValue < 0) {
|
|
32391
32389
|
setError(name2, {
|
|
32392
32390
|
type: "validate",
|
|
32393
|
-
message:
|
|
32391
|
+
message: t3("invalid_number")
|
|
32394
32392
|
});
|
|
32395
32393
|
setInputValue("");
|
|
32396
32394
|
lastCommittedValueRef.current = null;
|
|
@@ -32411,13 +32409,12 @@ var FloatField = (props) => {
|
|
|
32411
32409
|
} else {
|
|
32412
32410
|
setError(name2, {
|
|
32413
32411
|
type: "validate",
|
|
32414
|
-
message:
|
|
32412
|
+
message: t3("invalid_number")
|
|
32415
32413
|
});
|
|
32416
32414
|
setInputValue("");
|
|
32417
32415
|
lastCommittedValueRef.current = null;
|
|
32418
32416
|
}
|
|
32419
32417
|
isDirtyRef.current = false;
|
|
32420
|
-
inputRef.current?.blur();
|
|
32421
32418
|
};
|
|
32422
32419
|
return /* @__PURE__ */ jsxs59(Fragment24, { children: [
|
|
32423
32420
|
/* @__PURE__ */ jsx85(
|
|
@@ -32433,12 +32430,14 @@ var FloatField = (props) => {
|
|
|
32433
32430
|
placeholder,
|
|
32434
32431
|
required: !invisible && required,
|
|
32435
32432
|
style: invisible ? { display: "none" } : {},
|
|
32436
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none
|
|
32437
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#
|
|
32433
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none outline-0 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden
|
|
32434
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
|
|
32435
|
+
${!isEditTable ? "bg-[#f7f7f7] borer-input-primary rounded-[10px] px-3" : "border-b-primary bg-transparent "}
|
|
32436
|
+
${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}
|
|
32438
32437
|
`
|
|
32439
32438
|
}
|
|
32440
32439
|
),
|
|
32441
|
-
error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32440
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32442
32441
|
] });
|
|
32443
32442
|
}
|
|
32444
32443
|
}
|
package/package.json
CHANGED
package/dist/.babelrc
DELETED
package/dist/.editorconfig
DELETED
package/dist/.eslintignore
DELETED
package/dist/.eslintrc.cjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: { browser: true, es2020: true },
|
|
4
|
-
extends: [
|
|
5
|
-
'eslint:recommended',
|
|
6
|
-
'plugin:@typescript-eslint/recommended',
|
|
7
|
-
'plugin:prettier/recommended',
|
|
8
|
-
],
|
|
9
|
-
ignorePatterns: ['dist', '.eslintrc.cjs', 'commitlint.config.cjs'],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
overrides: [
|
|
12
|
-
{
|
|
13
|
-
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs'],
|
|
14
|
-
plugins: [
|
|
15
|
-
'@typescript-eslint',
|
|
16
|
-
'unused-imports',
|
|
17
|
-
'simple-import-sort',
|
|
18
|
-
'react-refresh',
|
|
19
|
-
],
|
|
20
|
-
rules: {
|
|
21
|
-
'react-refresh/only-export-components': [
|
|
22
|
-
'warn',
|
|
23
|
-
{ allowConstantExport: true },
|
|
24
|
-
],
|
|
25
|
-
'import/prefer-default-export': 'off',
|
|
26
|
-
'simple-import-sort/imports': [
|
|
27
|
-
'error',
|
|
28
|
-
{
|
|
29
|
-
groups: [
|
|
30
|
-
// Packages `react` related packages come first.
|
|
31
|
-
['^react', '^@?\\w'],
|
|
32
|
-
// Internal packages.
|
|
33
|
-
['^(@|components)(/.*|$)'],
|
|
34
|
-
// Side effect imports.
|
|
35
|
-
['^\\u0000'],
|
|
36
|
-
// Parent imports. Put `..` last.
|
|
37
|
-
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
|
|
38
|
-
// Other relative imports. Put same-folder imports and `.` last.
|
|
39
|
-
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
|
|
40
|
-
// Style imports.
|
|
41
|
-
['^.+\\.?(css)$'],
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
'prettier/prettier': [
|
|
46
|
-
'error',
|
|
47
|
-
{
|
|
48
|
-
endOfLine: 'auto',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
'react/react-in-jsx-scope': 'off',
|
|
52
|
-
'no-param-reassign': 'off',
|
|
53
|
-
'simple-import-sort/exports': 'error',
|
|
54
|
-
'@typescript-eslint/no-unused-vars': 'off',
|
|
55
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
56
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
57
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
58
|
-
'@typescript-eslint/ban-types': 'off',
|
|
59
|
-
'unused-imports/no-unused-imports': 'error',
|
|
60
|
-
'unused-imports/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
61
|
-
'no-plusplus': 'off',
|
|
62
|
-
'no-case-declarations': 'off',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
}
|
package/dist/.gitattributes
DELETED
package/dist/.prettierrc
DELETED