@ctlyst.id/internal-ui 4.1.6 → 4.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -498,6 +498,7 @@ import { Box as Box6, FormControl, FormErrorMessage, FormHelperText, FormLabel }
|
|
498
498
|
import { jsx as jsx17, jsxs as jsxs3 } from "react/jsx-runtime";
|
499
499
|
var Field = (props) => {
|
500
500
|
const {
|
501
|
+
id: id2,
|
501
502
|
label,
|
502
503
|
isError,
|
503
504
|
errorMessage,
|
@@ -520,7 +521,7 @@ var Field = (props) => {
|
|
520
521
|
};
|
521
522
|
const helperColor = getHelperColor();
|
522
523
|
const justifyHelper = getJustifyContentHelper();
|
523
|
-
return /* @__PURE__ */ jsxs3(FormControl, { isInvalid: isError, ...boxProps, children: [
|
524
|
+
return /* @__PURE__ */ jsxs3(FormControl, { isInvalid: isError, id: id2, ...boxProps, children: [
|
524
525
|
label && (typeof label === "string" ? /* @__PURE__ */ jsxs3(FormLabel, { mb: 1, fontSize: "text.sm", requiredIndicator: void 0, children: [
|
525
526
|
isRequired && /* @__PURE__ */ jsx17(Box6, { as: "span", color: "danger.500", ml: 0, mr: 1, children: "*" }),
|
526
527
|
label
|
@@ -693,6 +694,7 @@ var InputField = React2.forwardRef((props, ref) => {
|
|
693
694
|
return /* @__PURE__ */ jsx21(
|
694
695
|
field_default,
|
695
696
|
{
|
697
|
+
id: props.id || props.name,
|
696
698
|
label,
|
697
699
|
isSuccess,
|
698
700
|
isError,
|