@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.d.mts CHANGED
@@ -239,7 +239,7 @@ declare const IconButton: React__default.ForwardRefExoticComponent<React__defaul
239
239
  } & React__default.RefAttributes<HTMLButtonElement>>;
240
240
 
241
241
  type TextInputStatus = "default" | "error";
242
- type TextInputSize = "sm" | "md" | "lg";
242
+ type TextInputSize = "sm" | "md" | "lg" | "xl";
243
243
  type TextInputRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
244
244
  type TextInputLabelWeight = "normal" | "medium" | "semibold" | "bold";
245
245
  type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
@@ -263,6 +263,15 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
263
263
  helperText?: React__default.ReactNode;
264
264
  /** Custom class for the outermost wrapper */
265
265
  wrapperClassName?: string;
266
+ /**
267
+ * Custom border color for the input container. Accepts any valid
268
+ * CSS color value (hex, rgb, CSS variable, etc). When provided,
269
+ * overrides the border color from the current `status`. Useful
270
+ * for highlighting cells/rows in tables, marking fields with
271
+ * non-error states, or theming. Does NOT change focus/ring
272
+ * colors — those still come from `statusClasses`.
273
+ */
274
+ borderColor?: string;
266
275
  };
267
276
  declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
268
277
  /** Label text displayed above the input */
@@ -285,6 +294,15 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
285
294
  helperText?: React__default.ReactNode;
286
295
  /** Custom class for the outermost wrapper */
287
296
  wrapperClassName?: string;
297
+ /**
298
+ * Custom border color for the input container. Accepts any valid
299
+ * CSS color value (hex, rgb, CSS variable, etc). When provided,
300
+ * overrides the border color from the current `status`. Useful
301
+ * for highlighting cells/rows in tables, marking fields with
302
+ * non-error states, or theming. Does NOT change focus/ring
303
+ * colors — those still come from `statusClasses`.
304
+ */
305
+ borderColor?: string;
288
306
  } & React__default.RefAttributes<HTMLInputElement>>;
289
307
 
290
308
  type CheckboxSize = "sm" | "md" | "lg";
package/dist/index.d.ts CHANGED
@@ -239,7 +239,7 @@ declare const IconButton: React__default.ForwardRefExoticComponent<React__defaul
239
239
  } & React__default.RefAttributes<HTMLButtonElement>>;
240
240
 
241
241
  type TextInputStatus = "default" | "error";
242
- type TextInputSize = "sm" | "md" | "lg";
242
+ type TextInputSize = "sm" | "md" | "lg" | "xl";
243
243
  type TextInputRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
244
244
  type TextInputLabelWeight = "normal" | "medium" | "semibold" | "bold";
245
245
  type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
@@ -263,6 +263,15 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
263
263
  helperText?: React__default.ReactNode;
264
264
  /** Custom class for the outermost wrapper */
265
265
  wrapperClassName?: string;
266
+ /**
267
+ * Custom border color for the input container. Accepts any valid
268
+ * CSS color value (hex, rgb, CSS variable, etc). When provided,
269
+ * overrides the border color from the current `status`. Useful
270
+ * for highlighting cells/rows in tables, marking fields with
271
+ * non-error states, or theming. Does NOT change focus/ring
272
+ * colors — those still come from `statusClasses`.
273
+ */
274
+ borderColor?: string;
266
275
  };
267
276
  declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
268
277
  /** Label text displayed above the input */
@@ -285,6 +294,15 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
285
294
  helperText?: React__default.ReactNode;
286
295
  /** Custom class for the outermost wrapper */
287
296
  wrapperClassName?: string;
297
+ /**
298
+ * Custom border color for the input container. Accepts any valid
299
+ * CSS color value (hex, rgb, CSS variable, etc). When provided,
300
+ * overrides the border color from the current `status`. Useful
301
+ * for highlighting cells/rows in tables, marking fields with
302
+ * non-error states, or theming. Does NOT change focus/ring
303
+ * colors — those still come from `statusClasses`.
304
+ */
305
+ borderColor?: string;
288
306
  } & React__default.RefAttributes<HTMLInputElement>>;
289
307
 
290
308
  type CheckboxSize = "sm" | "md" | "lg";
package/dist/index.js CHANGED
@@ -1064,7 +1064,8 @@ var statusClasses = {
1064
1064
  var sizeClasses3 = {
1065
1065
  sm: "rh-h-input-sm rh-text-sm rh-px-input-x-sm",
1066
1066
  md: "rh-h-input-md rh-text-sm rh-px-input-x-md",
1067
- lg: "rh-h-input-lg rh-text-base rh-px-input-x-lg"
1067
+ lg: "rh-h-input-lg rh-text-base rh-px-input-x-lg",
1068
+ xl: "rh-h-input-xl rh-text-sm rh-px-input-x-md"
1068
1069
  };
1069
1070
  var radiusClasses3 = {
1070
1071
  none: "rh-rounded-none",
@@ -1079,7 +1080,8 @@ var radiusClasses3 = {
1079
1080
  var iconSizeClasses = {
1080
1081
  sm: "rh-w-4 rh-h-4",
1081
1082
  md: "rh-w-5 rh-h-5",
1082
- lg: "rh-w-5 rh-h-5"
1083
+ lg: "rh-w-5 rh-h-5",
1084
+ xl: "rh-w-5 rh-h-5"
1083
1085
  };
1084
1086
  var helperStatusClasses = {
1085
1087
  default: "rh-text-text-muted",
@@ -1105,6 +1107,7 @@ var TextInput = React9.forwardRef(function TextInput2({
1105
1107
  disabled,
1106
1108
  className = "",
1107
1109
  wrapperClassName = "",
1110
+ borderColor,
1108
1111
  id,
1109
1112
  ...rest
1110
1113
  }, ref) {
@@ -1125,6 +1128,7 @@ var TextInput = React9.forwardRef(function TextInput2({
1125
1128
  /* @__PURE__ */ jsxRuntime.jsxs(
1126
1129
  "div",
1127
1130
  {
1131
+ style: borderColor ? { borderColor } : void 0,
1128
1132
  className: [
1129
1133
  "rh-flex rh-items-center rh-gap-2",
1130
1134
  "rh-border rh-bg-surface rh-font-body",
@@ -2311,6 +2315,7 @@ var addButtonSizeClasses = {
2311
2315
  md: "rh-w-5 rh-h-5",
2312
2316
  lg: "rh-w-5 rh-h-5"
2313
2317
  };
2318
+ var getSubtitleClassName3 = (subtitle) => subtitle.trim() === "*" ? "rh-text-danger" : "rh-text-text-muted";
2314
2319
  var TagInput = React9.forwardRef(function TagInput2({
2315
2320
  label,
2316
2321
  subtitle,
@@ -2367,7 +2372,7 @@ var TagInput = React9.forwardRef(function TagInput2({
2367
2372
  children: [
2368
2373
  label && /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: inputId, className: "rh-flex rh-items-baseline rh-gap-1", children: [
2369
2374
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rh-text-sm rh-font-semibold rh-text-text", children: label }),
2370
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rh-text-sm rh-text-text-muted", children: subtitle })
2375
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `rh-text-sm ${getSubtitleClassName3(subtitle)}`, children: subtitle })
2371
2376
  ] }),
2372
2377
  /* @__PURE__ */ jsxRuntime.jsxs(
2373
2378
  "div",