@rehagro/ui 1.0.42 → 1.0.43

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
@@ -1058,7 +1058,8 @@ var statusClasses = {
1058
1058
  var sizeClasses3 = {
1059
1059
  sm: "rh-h-input-sm rh-text-sm rh-px-input-x-sm",
1060
1060
  md: "rh-h-input-md rh-text-sm rh-px-input-x-md",
1061
- lg: "rh-h-input-lg rh-text-base rh-px-input-x-lg"
1061
+ lg: "rh-h-input-lg rh-text-base rh-px-input-x-lg",
1062
+ xl: "rh-h-input-xl rh-text-sm rh-px-input-x-md"
1062
1063
  };
1063
1064
  var radiusClasses3 = {
1064
1065
  none: "rh-rounded-none",
@@ -1073,7 +1074,8 @@ var radiusClasses3 = {
1073
1074
  var iconSizeClasses = {
1074
1075
  sm: "rh-w-4 rh-h-4",
1075
1076
  md: "rh-w-5 rh-h-5",
1076
- lg: "rh-w-5 rh-h-5"
1077
+ lg: "rh-w-5 rh-h-5",
1078
+ xl: "rh-w-5 rh-h-5"
1077
1079
  };
1078
1080
  var helperStatusClasses = {
1079
1081
  default: "rh-text-text-muted",
@@ -1099,6 +1101,7 @@ var TextInput = forwardRef(function TextInput2({
1099
1101
  disabled,
1100
1102
  className = "",
1101
1103
  wrapperClassName = "",
1104
+ borderColor,
1102
1105
  id,
1103
1106
  ...rest
1104
1107
  }, ref) {
@@ -1119,6 +1122,7 @@ var TextInput = forwardRef(function TextInput2({
1119
1122
  /* @__PURE__ */ jsxs(
1120
1123
  "div",
1121
1124
  {
1125
+ style: borderColor ? { borderColor } : void 0,
1122
1126
  className: [
1123
1127
  "rh-flex rh-items-center rh-gap-2",
1124
1128
  "rh-border rh-bg-surface rh-font-body",
@@ -2305,6 +2309,7 @@ var addButtonSizeClasses = {
2305
2309
  md: "rh-w-5 rh-h-5",
2306
2310
  lg: "rh-w-5 rh-h-5"
2307
2311
  };
2312
+ var getSubtitleClassName3 = (subtitle) => subtitle.trim() === "*" ? "rh-text-danger" : "rh-text-text-muted";
2308
2313
  var TagInput = forwardRef(function TagInput2({
2309
2314
  label,
2310
2315
  subtitle,
@@ -2361,7 +2366,7 @@ var TagInput = forwardRef(function TagInput2({
2361
2366
  children: [
2362
2367
  label && /* @__PURE__ */ jsxs("label", { htmlFor: inputId, className: "rh-flex rh-items-baseline rh-gap-1", children: [
2363
2368
  /* @__PURE__ */ jsx("span", { className: "rh-text-sm rh-font-semibold rh-text-text", children: label }),
2364
- subtitle && /* @__PURE__ */ jsx("span", { className: "rh-text-sm rh-text-text-muted", children: subtitle })
2369
+ subtitle && /* @__PURE__ */ jsx("span", { className: `rh-text-sm ${getSubtitleClassName3(subtitle)}`, children: subtitle })
2365
2370
  ] }),
2366
2371
  /* @__PURE__ */ jsxs(
2367
2372
  "div",