@rehagro/ui 1.0.44 → 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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -9
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -972,12 +972,15 @@ var sizeClasses2 = {
|
|
|
972
972
|
};
|
|
973
973
|
var radiusClasses2 = {
|
|
974
974
|
none: "rh-rounded-none",
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
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({
|
|
@@ -1096,6 +1099,7 @@ var getSubtitleClassName = (subtitle) => subtitle.trim() === "*" ? "rh-text-dang
|
|
|
1096
1099
|
var TextInput = forwardRef(function TextInput2({
|
|
1097
1100
|
label,
|
|
1098
1101
|
labelWeight = "medium",
|
|
1102
|
+
labelColor = "#080B12",
|
|
1099
1103
|
subtitle,
|
|
1100
1104
|
status = "default",
|
|
1101
1105
|
size = "md",
|
|
@@ -1122,7 +1126,14 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
1122
1126
|
className: ["rh-flex rh-flex-col rh-gap-[0.5rem] rh-font-body", wrapperClassName].filter(Boolean).join(" "),
|
|
1123
1127
|
children: [
|
|
1124
1128
|
label && /* @__PURE__ */ jsxs("label", { htmlFor: inputId, className: "rh-flex rh-items-baseline rh-gap-1", children: [
|
|
1125
|
-
/* @__PURE__ */ jsx(
|
|
1129
|
+
/* @__PURE__ */ jsx(
|
|
1130
|
+
"span",
|
|
1131
|
+
{
|
|
1132
|
+
className: `rh-text-sm ${labelWeightClasses[labelWeight]}`,
|
|
1133
|
+
style: { color: labelColor },
|
|
1134
|
+
children: label
|
|
1135
|
+
}
|
|
1136
|
+
),
|
|
1126
1137
|
subtitle && /* @__PURE__ */ jsx("span", { className: `rh-text-sm ${getSubtitleClassName(subtitle)}`, children: subtitle })
|
|
1127
1138
|
] }),
|
|
1128
1139
|
/* @__PURE__ */ jsxs(
|
|
@@ -1177,8 +1188,9 @@ var TextInput = forwardRef(function TextInput2({
|
|
|
1177
1188
|
"span",
|
|
1178
1189
|
{
|
|
1179
1190
|
className: [
|
|
1180
|
-
"rh-inline-flex rh-shrink-0 rh-text-text-muted",
|
|
1181
|
-
iconSizeClasses[size]
|
|
1191
|
+
"rh-inline-flex rh-shrink-0 rh-items-center rh-justify-center rh-whitespace-nowrap rh-text-text-muted",
|
|
1192
|
+
iconSizeClasses[size],
|
|
1193
|
+
"rh-w-auto rh-min-w-fit"
|
|
1182
1194
|
].join(" "),
|
|
1183
1195
|
"aria-hidden": "true",
|
|
1184
1196
|
children: rightIcon
|