@rehagro/ui 1.0.45 → 1.0.46

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.d.mts CHANGED
@@ -248,6 +248,8 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
248
248
  label?: string;
249
249
  /** Label font weight */
250
250
  labelWeight?: TextInputLabelWeight;
251
+ /** Label text color. Defaults to the Rehsult input label color. */
252
+ labelColor?: string;
251
253
  /** Subtitle displayed next to the label */
252
254
  subtitle?: string;
253
255
  /** Validation status */
@@ -287,6 +289,8 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
287
289
  label?: string;
288
290
  /** Label font weight */
289
291
  labelWeight?: TextInputLabelWeight;
292
+ /** Label text color. Defaults to the Rehsult input label color. */
293
+ labelColor?: string;
290
294
  /** Subtitle displayed next to the label */
291
295
  subtitle?: string;
292
296
  /** Validation status */
package/dist/index.d.ts CHANGED
@@ -248,6 +248,8 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
248
248
  label?: string;
249
249
  /** Label font weight */
250
250
  labelWeight?: TextInputLabelWeight;
251
+ /** Label text color. Defaults to the Rehsult input label color. */
252
+ labelColor?: string;
251
253
  /** Subtitle displayed next to the label */
252
254
  subtitle?: string;
253
255
  /** Validation status */
@@ -287,6 +289,8 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
287
289
  label?: string;
288
290
  /** Label font weight */
289
291
  labelWeight?: TextInputLabelWeight;
292
+ /** Label text color. Defaults to the Rehsult input label color. */
293
+ labelColor?: string;
290
294
  /** Subtitle displayed next to the label */
291
295
  subtitle?: string;
292
296
  /** Validation status */
package/dist/index.js CHANGED
@@ -1105,6 +1105,7 @@ var getSubtitleClassName = (subtitle) => subtitle.trim() === "*" ? "rh-text-dang
1105
1105
  var TextInput = React9.forwardRef(function TextInput2({
1106
1106
  label,
1107
1107
  labelWeight = "medium",
1108
+ labelColor = "#080B12",
1108
1109
  subtitle,
1109
1110
  status = "default",
1110
1111
  size = "md",
@@ -1131,7 +1132,14 @@ var TextInput = React9.forwardRef(function TextInput2({
1131
1132
  className: ["rh-flex rh-flex-col rh-gap-[0.5rem] rh-font-body", wrapperClassName].filter(Boolean).join(" "),
1132
1133
  children: [
1133
1134
  label && /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: inputId, className: "rh-flex rh-items-baseline rh-gap-1", children: [
1134
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `rh-text-sm ${labelWeightClasses[labelWeight]} rh-text-text`, children: label }),
1135
+ /* @__PURE__ */ jsxRuntime.jsx(
1136
+ "span",
1137
+ {
1138
+ className: `rh-text-sm ${labelWeightClasses[labelWeight]}`,
1139
+ style: { color: labelColor },
1140
+ children: label
1141
+ }
1142
+ ),
1135
1143
  subtitle && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `rh-text-sm ${getSubtitleClassName(subtitle)}`, children: subtitle })
1136
1144
  ] }),
1137
1145
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1186,8 +1194,9 @@ var TextInput = React9.forwardRef(function TextInput2({
1186
1194
  "span",
1187
1195
  {
1188
1196
  className: [
1189
- "rh-inline-flex rh-shrink-0 rh-text-text-muted",
1190
- iconSizeClasses[size]
1197
+ "rh-inline-flex rh-shrink-0 rh-items-center rh-justify-center rh-whitespace-nowrap rh-text-text-muted",
1198
+ iconSizeClasses[size],
1199
+ "rh-w-auto rh-min-w-fit"
1191
1200
  ].join(" "),
1192
1201
  "aria-hidden": "true",
1193
1202
  children: rightIcon