@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.mjs CHANGED
@@ -972,12 +972,15 @@ var sizeClasses2 = {
972
972
  };
973
973
  var radiusClasses2 = {
974
974
  none: "rh-rounded-none",
975
- xxs: "rh-rounded-xxs",
976
- xs: "rh-rounded-xs",
977
- sm: "rh-rounded-sm",
978
- md: "rh-rounded-md",
979
- lg: "rh-rounded-lg",
980
- xl: "rh-rounded-xl",
975
+ // IconButton is a square control, so it uses the same compact radius
976
+ // scale as the native implementation. The global web radius tokens are
977
+ // larger (md = 16px), which makes a 32px icon button look circular.
978
+ xxs: "rh-rounded-[2px]",
979
+ xs: "rh-rounded-[4px]",
980
+ sm: "rh-rounded-[8px]",
981
+ md: "rh-rounded-[12px]",
982
+ lg: "rh-rounded-[16px]",
983
+ xl: "rh-rounded-[24px]",
981
984
  full: "rh-rounded-full"
982
985
  };
983
986
  var IconButton = forwardRef(function IconButton2({
@@ -1071,6 +1074,11 @@ var radiusClasses3 = {
1071
1074
  xl: "rh-rounded-xl",
1072
1075
  full: "rh-rounded-full"
1073
1076
  };
1077
+ var borderWidthClasses = {
1078
+ sm: "rh-border-sm",
1079
+ md: "rh-border-md",
1080
+ lg: "rh-border-lg"
1081
+ };
1074
1082
  var iconSizeClasses = {
1075
1083
  sm: "rh-w-4 rh-h-4",
1076
1084
  md: "rh-w-5 rh-h-5",
@@ -1102,6 +1110,7 @@ var TextInput = forwardRef(function TextInput2({
1102
1110
  className = "",
1103
1111
  wrapperClassName = "",
1104
1112
  borderColor,
1113
+ borderWidth = "sm",
1105
1114
  id,
1106
1115
  ...rest
1107
1116
  }, ref) {
@@ -1125,7 +1134,8 @@ var TextInput = forwardRef(function TextInput2({
1125
1134
  style: borderColor ? { borderColor } : void 0,
1126
1135
  className: [
1127
1136
  "rh-flex rh-items-center rh-gap-2",
1128
- "rh-border rh-bg-surface rh-font-body",
1137
+ "rh-bg-surface rh-font-body",
1138
+ borderWidthClasses[borderWidth],
1129
1139
  "rh-transition-colors rh-duration-150",
1130
1140
  "rh-overflow-hidden",
1131
1141
  statusClasses[visualStatus],