@ctlyst.id/internal-ui 4.1.6 → 4.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.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,