@rehagro/ui 1.0.43 → 1.0.45

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
@@ -241,6 +241,7 @@ declare const IconButton: React__default.ForwardRefExoticComponent<React__defaul
241
241
  type TextInputStatus = "default" | "error";
242
242
  type TextInputSize = "sm" | "md" | "lg" | "xl";
243
243
  type TextInputRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
244
+ type TextInputBorderWidth = "sm" | "md" | "lg";
244
245
  type TextInputLabelWeight = "normal" | "medium" | "semibold" | "bold";
245
246
  type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
246
247
  /** Label text displayed above the input */
@@ -272,6 +273,14 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
272
273
  * colors — those still come from `statusClasses`.
273
274
  */
274
275
  borderColor?: string;
276
+ /**
277
+ * Border width token for the input container.
278
+ *
279
+ * - `sm`: default 1px border.
280
+ * - `md`: default 2px border.
281
+ * - `lg`: default 3px border.
282
+ */
283
+ borderWidth?: TextInputBorderWidth;
275
284
  };
276
285
  declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
277
286
  /** Label text displayed above the input */
@@ -303,6 +312,14 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
303
312
  * colors — those still come from `statusClasses`.
304
313
  */
305
314
  borderColor?: string;
315
+ /**
316
+ * Border width token for the input container.
317
+ *
318
+ * - `sm`: default 1px border.
319
+ * - `md`: default 2px border.
320
+ * - `lg`: default 3px border.
321
+ */
322
+ borderWidth?: TextInputBorderWidth;
306
323
  } & React__default.RefAttributes<HTMLInputElement>>;
307
324
 
308
325
  type CheckboxSize = "sm" | "md" | "lg";
package/dist/index.d.ts CHANGED
@@ -241,6 +241,7 @@ declare const IconButton: React__default.ForwardRefExoticComponent<React__defaul
241
241
  type TextInputStatus = "default" | "error";
242
242
  type TextInputSize = "sm" | "md" | "lg" | "xl";
243
243
  type TextInputRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
244
+ type TextInputBorderWidth = "sm" | "md" | "lg";
244
245
  type TextInputLabelWeight = "normal" | "medium" | "semibold" | "bold";
245
246
  type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
246
247
  /** Label text displayed above the input */
@@ -272,6 +273,14 @@ type TextInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>,
272
273
  * colors — those still come from `statusClasses`.
273
274
  */
274
275
  borderColor?: string;
276
+ /**
277
+ * Border width token for the input container.
278
+ *
279
+ * - `sm`: default 1px border.
280
+ * - `md`: default 2px border.
281
+ * - `lg`: default 3px border.
282
+ */
283
+ borderWidth?: TextInputBorderWidth;
275
284
  };
276
285
  declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
277
286
  /** Label text displayed above the input */
@@ -303,6 +312,14 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Omit<React__de
303
312
  * colors — those still come from `statusClasses`.
304
313
  */
305
314
  borderColor?: string;
315
+ /**
316
+ * Border width token for the input container.
317
+ *
318
+ * - `sm`: default 1px border.
319
+ * - `md`: default 2px border.
320
+ * - `lg`: default 3px border.
321
+ */
322
+ borderWidth?: TextInputBorderWidth;
306
323
  } & React__default.RefAttributes<HTMLInputElement>>;
307
324
 
308
325
  type CheckboxSize = "sm" | "md" | "lg";
package/dist/index.js CHANGED
@@ -978,12 +978,15 @@ var sizeClasses2 = {
978
978
  };
979
979
  var radiusClasses2 = {
980
980
  none: "rh-rounded-none",
981
- xxs: "rh-rounded-xxs",
982
- xs: "rh-rounded-xs",
983
- sm: "rh-rounded-sm",
984
- md: "rh-rounded-md",
985
- lg: "rh-rounded-lg",
986
- xl: "rh-rounded-xl",
981
+ // IconButton is a square control, so it uses the same compact radius
982
+ // scale as the native implementation. The global web radius tokens are
983
+ // larger (md = 16px), which makes a 32px icon button look circular.
984
+ xxs: "rh-rounded-[2px]",
985
+ xs: "rh-rounded-[4px]",
986
+ sm: "rh-rounded-[8px]",
987
+ md: "rh-rounded-[12px]",
988
+ lg: "rh-rounded-[16px]",
989
+ xl: "rh-rounded-[24px]",
987
990
  full: "rh-rounded-full"
988
991
  };
989
992
  var IconButton = React9.forwardRef(function IconButton2({
@@ -1077,6 +1080,11 @@ var radiusClasses3 = {
1077
1080
  xl: "rh-rounded-xl",
1078
1081
  full: "rh-rounded-full"
1079
1082
  };
1083
+ var borderWidthClasses = {
1084
+ sm: "rh-border-sm",
1085
+ md: "rh-border-md",
1086
+ lg: "rh-border-lg"
1087
+ };
1080
1088
  var iconSizeClasses = {
1081
1089
  sm: "rh-w-4 rh-h-4",
1082
1090
  md: "rh-w-5 rh-h-5",
@@ -1108,6 +1116,7 @@ var TextInput = React9.forwardRef(function TextInput2({
1108
1116
  className = "",
1109
1117
  wrapperClassName = "",
1110
1118
  borderColor,
1119
+ borderWidth = "sm",
1111
1120
  id,
1112
1121
  ...rest
1113
1122
  }, ref) {
@@ -1131,7 +1140,8 @@ var TextInput = React9.forwardRef(function TextInput2({
1131
1140
  style: borderColor ? { borderColor } : void 0,
1132
1141
  className: [
1133
1142
  "rh-flex rh-items-center rh-gap-2",
1134
- "rh-border rh-bg-surface rh-font-body",
1143
+ "rh-bg-surface rh-font-body",
1144
+ borderWidthClasses[borderWidth],
1135
1145
  "rh-transition-colors rh-duration-150",
1136
1146
  "rh-overflow-hidden",
1137
1147
  statusClasses[visualStatus],