@rehagro/ui 1.0.24 → 1.0.26

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
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import React8, { forwardRef, createContext, useState, useRef, useCallback, useEffect, useMemo, useContext } from 'react';
2
+ import React9, { forwardRef, createContext, useState, useRef, useCallback, useEffect, useMemo, useContext } from 'react';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
5
  // src/provider/RehagroProvider.tsx
@@ -740,12 +740,12 @@ var variantColorClasses = {
740
740
  info: "rh-bg-info rh-text-surface rh-border-info hover:rh-bg-info-hover hover:rh-border-info-hover"
741
741
  },
742
742
  outline: {
743
- primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary hover:rh-text-surface",
744
- secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary hover:rh-bg-secondary hover:rh-text-surface",
745
- danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger hover:rh-text-surface",
746
- warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning hover:rh-text-surface",
747
- success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success hover:rh-text-surface",
748
- info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info hover:rh-text-surface"
743
+ primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary/[0.16]",
744
+ secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary hover:rh-bg-secondary/[0.16]",
745
+ danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger/[0.16]",
746
+ warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning/[0.16]",
747
+ success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success/[0.16]",
748
+ info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info/[0.16]"
749
749
  },
750
750
  ghost: {
751
751
  primary: "rh-bg-transparent rh-text-primary rh-border-transparent hover:rh-bg-primary/10",
@@ -792,9 +792,9 @@ var Button = forwardRef(function Button2({
792
792
  children,
793
793
  ...rest
794
794
  }, ref) {
795
- const isDisabled = React8.useMemo(() => disabled || loading, [disabled, loading]);
795
+ const isDisabled = React9.useMemo(() => disabled || loading, [disabled, loading]);
796
796
  const preset = isPresetColor(color);
797
- const computedStyle = React8.useMemo(() => {
797
+ const computedStyle = React9.useMemo(() => {
798
798
  const baseStyle = preset ? hoverColor ? { [`--rh-${color}-hover`]: toRgbTriplet2(hoverColor) ?? hoverColor } : {} : getArbitraryColorStyle(variant, color);
799
799
  const hoverVars = hoverStyle ? {
800
800
  "--btn-hover-bg": hoverStyle.backgroundColor,
@@ -813,7 +813,7 @@ var Button = forwardRef(function Button2({
813
813
  style: computedStyle,
814
814
  className: [
815
815
  "rh-inline-flex rh-items-center rh-justify-center rh-gap-2",
816
- "rh-border rh-font-display",
816
+ "rh-border rh-font-display rh-font-medium",
817
817
  "rh-transition-colors rh-duration-150",
818
818
  "focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring focus-visible:rh-ring-offset-2",
819
819
  preset && !hasCustomHover ? variantColorClasses[variant][color] : "",
@@ -933,7 +933,7 @@ var IconButton = forwardRef(function IconButton2({
933
933
  }, ref) {
934
934
  const isDisabled = disabled || loading;
935
935
  const preset = isPresetColor2(color);
936
- const computedStyle = React8.useMemo(
936
+ const computedStyle = React9.useMemo(
937
937
  () => preset ? style ?? {} : { ...style, ...getArbitraryColorStyle2(variant, color) },
938
938
  [preset, color, variant, style]
939
939
  );
@@ -1040,7 +1040,7 @@ var TextInput = forwardRef(function TextInput2({
1040
1040
  id,
1041
1041
  ...rest
1042
1042
  }, ref) {
1043
- const inputId = id || React8.useId();
1043
+ const inputId = id || React9.useId();
1044
1044
  return /* @__PURE__ */ jsxs(
1045
1045
  "div",
1046
1046
  {
@@ -1181,10 +1181,10 @@ var Checkbox = forwardRef(function Checkbox2({
1181
1181
  onChange,
1182
1182
  ...rest
1183
1183
  }, ref) {
1184
- const innerRef = React8.useRef(null);
1185
- const inputId = id || React8.useId();
1186
- React8.useImperativeHandle(ref, () => innerRef.current);
1187
- React8.useEffect(() => {
1184
+ const innerRef = React9.useRef(null);
1185
+ const inputId = id || React9.useId();
1186
+ React9.useImperativeHandle(ref, () => innerRef.current);
1187
+ React9.useEffect(() => {
1188
1188
  if (innerRef.current) {
1189
1189
  innerRef.current.indeterminate = indeterminate;
1190
1190
  }
@@ -1239,6 +1239,177 @@ var Checkbox = forwardRef(function Checkbox2({
1239
1239
  }
1240
1240
  );
1241
1241
  });
1242
+ var RadioGroupContext = createContext(null);
1243
+ var useRadioGroup = () => useContext(RadioGroupContext);
1244
+ var labelSizeClasses2 = {
1245
+ sm: "rh-text-sm",
1246
+ md: "rh-text-sm",
1247
+ lg: "rh-text-base"
1248
+ };
1249
+ var descriptionSizeClasses = {
1250
+ sm: "rh-text-xs",
1251
+ md: "rh-text-xs",
1252
+ lg: "rh-text-sm"
1253
+ };
1254
+ var gapClasses = {
1255
+ sm: "rh-gap-2",
1256
+ md: "rh-gap-3",
1257
+ lg: "rh-gap-4"
1258
+ };
1259
+ var PRESET_COLORS3 = /* @__PURE__ */ new Set([
1260
+ "primary",
1261
+ "secondary",
1262
+ "danger",
1263
+ "warning",
1264
+ "success",
1265
+ "info"
1266
+ ]);
1267
+ var isPresetColor3 = (color) => PRESET_COLORS3.has(color);
1268
+ var inputSizeClasses = {
1269
+ sm: "rh-w-4 rh-h-4",
1270
+ md: "rh-w-5 rh-h-5",
1271
+ lg: "rh-w-6 rh-h-6"
1272
+ };
1273
+ var Radio = forwardRef(function Radio2({
1274
+ size = "md",
1275
+ label,
1276
+ description,
1277
+ color = "primary",
1278
+ disabled,
1279
+ checked,
1280
+ defaultChecked,
1281
+ className = "",
1282
+ id,
1283
+ onChange,
1284
+ ...rest
1285
+ }, ref) {
1286
+ const inputId = id || React9.useId();
1287
+ const getAccentColor = () => {
1288
+ if (isPresetColor3(color)) {
1289
+ return `rgb(var(--rh-${color}))`;
1290
+ }
1291
+ return color;
1292
+ };
1293
+ return /* @__PURE__ */ jsxs(
1294
+ "label",
1295
+ {
1296
+ htmlFor: inputId,
1297
+ className: [
1298
+ "rh-inline-flex rh-items-start rh-gap-2 rh-font-body rh-select-none",
1299
+ disabled ? "rh-cursor-not-allowed rh-opacity-50" : "rh-cursor-pointer",
1300
+ className
1301
+ ].filter(Boolean).join(" "),
1302
+ children: [
1303
+ /* @__PURE__ */ jsx(
1304
+ "input",
1305
+ {
1306
+ ref,
1307
+ id: inputId,
1308
+ type: "radio",
1309
+ disabled,
1310
+ checked,
1311
+ defaultChecked,
1312
+ onChange,
1313
+ className: [
1314
+ inputSizeClasses[size],
1315
+ "rh-accent-current rh-cursor-pointer",
1316
+ disabled ? "rh-cursor-not-allowed" : ""
1317
+ ].filter(Boolean).join(" "),
1318
+ style: { accentColor: getAccentColor() },
1319
+ ...rest
1320
+ }
1321
+ ),
1322
+ (label || description) && /* @__PURE__ */ jsxs("span", { className: "rh-flex rh-flex-col", children: [
1323
+ label && /* @__PURE__ */ jsx("span", { className: ["rh-text-text", labelSizeClasses2[size]].join(" "), children: label }),
1324
+ description && /* @__PURE__ */ jsx(
1325
+ "span",
1326
+ {
1327
+ className: [
1328
+ "rh-text-text-muted",
1329
+ descriptionSizeClasses[size]
1330
+ ].join(" "),
1331
+ children: description
1332
+ }
1333
+ )
1334
+ ] })
1335
+ ]
1336
+ }
1337
+ );
1338
+ });
1339
+ var RadioOption = forwardRef(function RadioOption2({ value, size, color, disabled, ...rest }, ref) {
1340
+ const group = useRadioGroup();
1341
+ const mergedSize = size ?? group?.size ?? "md";
1342
+ const mergedColor = color ?? group?.color ?? "primary";
1343
+ const mergedDisabled = disabled ?? group?.disabled ?? false;
1344
+ const isChecked = group?.value === value;
1345
+ const handleChange = () => {
1346
+ group?.onChange?.(value);
1347
+ };
1348
+ return /* @__PURE__ */ jsx(
1349
+ Radio,
1350
+ {
1351
+ ref,
1352
+ name: group?.name,
1353
+ value,
1354
+ size: mergedSize,
1355
+ color: mergedColor,
1356
+ disabled: mergedDisabled,
1357
+ checked: isChecked,
1358
+ onChange: handleChange,
1359
+ ...rest
1360
+ }
1361
+ );
1362
+ });
1363
+ var RadioGroup = forwardRef(function RadioGroup2({
1364
+ children,
1365
+ value,
1366
+ defaultValue,
1367
+ onChange,
1368
+ size = "md",
1369
+ orientation = "vertical",
1370
+ color = "primary",
1371
+ disabled = false,
1372
+ name,
1373
+ gap = "md",
1374
+ className = "",
1375
+ ...rest
1376
+ }, ref) {
1377
+ const [internalValue, setInternalValue] = React9.useState(defaultValue);
1378
+ const groupName = name || React9.useId();
1379
+ const currentValue = value ?? internalValue;
1380
+ const handleChange = (newValue) => {
1381
+ setInternalValue(newValue);
1382
+ onChange?.(newValue);
1383
+ };
1384
+ return /* @__PURE__ */ jsx(
1385
+ RadioGroupContext.Provider,
1386
+ {
1387
+ value: {
1388
+ name: groupName,
1389
+ value: currentValue,
1390
+ onChange: handleChange,
1391
+ size,
1392
+ color,
1393
+ disabled
1394
+ },
1395
+ children: /* @__PURE__ */ jsx(
1396
+ "div",
1397
+ {
1398
+ ref,
1399
+ role: "radiogroup",
1400
+ className: [
1401
+ "rh-flex",
1402
+ orientation === "vertical" ? "rh-flex-col" : "rh-flex-row rh-flex-wrap",
1403
+ gapClasses[gap],
1404
+ className
1405
+ ].filter(Boolean).join(" "),
1406
+ ...rest,
1407
+ children
1408
+ }
1409
+ )
1410
+ }
1411
+ );
1412
+ });
1242
1413
  var statusClasses2 = {
1243
1414
  default: "rh-border-border focus-within:rh-ring-2 focus-within:rh-ring-ring focus-within:rh-ring-offset-2",
1244
1415
  error: "rh-border-danger focus-within:rh-ring-2 focus-within:rh-ring-danger focus-within:rh-ring-offset-2"
@@ -1330,16 +1501,16 @@ var Select = forwardRef(function Select2(props, ref) {
1330
1501
  wrapperClassName = "",
1331
1502
  multiple = false
1332
1503
  } = props;
1333
- const triggerId = React8.useId();
1334
- const listboxId = React8.useId();
1335
- const helperId = React8.useId();
1336
- const [isOpen, setIsOpen] = React8.useState(false);
1337
- const [activeIndex, setActiveIndex] = React8.useState(-1);
1338
- const wrapperRef = React8.useRef(null);
1339
- const innerRef = React8.useRef(null);
1340
- const listboxRef = React8.useRef(null);
1341
- React8.useImperativeHandle(ref, () => innerRef.current);
1342
- const [internalValue, setInternalValue] = React8.useState(() => {
1504
+ const triggerId = React9.useId();
1505
+ const listboxId = React9.useId();
1506
+ const helperId = React9.useId();
1507
+ const [isOpen, setIsOpen] = React9.useState(false);
1508
+ const [activeIndex, setActiveIndex] = React9.useState(-1);
1509
+ const wrapperRef = React9.useRef(null);
1510
+ const innerRef = React9.useRef(null);
1511
+ const listboxRef = React9.useRef(null);
1512
+ React9.useImperativeHandle(ref, () => innerRef.current);
1513
+ const [internalValue, setInternalValue] = React9.useState(() => {
1343
1514
  if (props.defaultValue !== void 0) {
1344
1515
  return Array.isArray(props.defaultValue) ? props.defaultValue : [props.defaultValue];
1345
1516
  }
@@ -1361,7 +1532,7 @@ var Select = forwardRef(function Select2(props, ref) {
1361
1532
  innerRef.current?.focus();
1362
1533
  }
1363
1534
  };
1364
- const displayText = React8.useMemo(() => {
1535
+ const displayText = React9.useMemo(() => {
1365
1536
  if (selectedValues.length === 0) return null;
1366
1537
  if (!multiple) {
1367
1538
  return options.find((o) => o.value === selectedValues[0])?.label ?? null;
@@ -1371,7 +1542,7 @@ var Select = forwardRef(function Select2(props, ref) {
1371
1542
  if (selectedLabels.length === 1) return selectedLabels[0];
1372
1543
  return `${selectedLabels.length} selected`;
1373
1544
  }, [selectedValues, options, multiple]);
1374
- React8.useEffect(() => {
1545
+ React9.useEffect(() => {
1375
1546
  if (!isOpen) return;
1376
1547
  const handleClickOutside = (e) => {
1377
1548
  if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
@@ -1381,7 +1552,7 @@ var Select = forwardRef(function Select2(props, ref) {
1381
1552
  document.addEventListener("mousedown", handleClickOutside);
1382
1553
  return () => document.removeEventListener("mousedown", handleClickOutside);
1383
1554
  }, [isOpen]);
1384
- React8.useEffect(() => {
1555
+ React9.useEffect(() => {
1385
1556
  if (!isOpen) return;
1386
1557
  const handleEscape = (e) => {
1387
1558
  if (e.key === "Escape") {
@@ -1392,7 +1563,7 @@ var Select = forwardRef(function Select2(props, ref) {
1392
1563
  document.addEventListener("keydown", handleEscape);
1393
1564
  return () => document.removeEventListener("keydown", handleEscape);
1394
1565
  }, [isOpen]);
1395
- React8.useEffect(() => {
1566
+ React9.useEffect(() => {
1396
1567
  if (!isOpen || activeIndex < 0) return;
1397
1568
  const listbox = listboxRef.current;
1398
1569
  if (!listbox) return;
@@ -1401,7 +1572,7 @@ var Select = forwardRef(function Select2(props, ref) {
1401
1572
  activeEl.scrollIntoView({ block: "nearest" });
1402
1573
  }
1403
1574
  }, [activeIndex, isOpen]);
1404
- React8.useEffect(() => {
1575
+ React9.useEffect(() => {
1405
1576
  if (isOpen) {
1406
1577
  const firstSelectedIdx = options.findIndex(
1407
1578
  (o) => !o.disabled && selectedValues.includes(o.value)
@@ -1720,8 +1891,8 @@ var Tooltip = forwardRef(
1720
1891
  useEffect(() => {
1721
1892
  return () => clearTimers();
1722
1893
  }, [clearTimers]);
1723
- const triggerChild = React8.Children.only(children);
1724
- const triggerElement = React8.cloneElement(triggerChild, {
1894
+ const triggerChild = React9.Children.only(children);
1895
+ const triggerElement = React9.cloneElement(triggerChild, {
1725
1896
  onMouseEnter: (e) => {
1726
1897
  handleEnter();
1727
1898
  triggerChild.props.onMouseEnter?.(e);
@@ -1917,7 +2088,7 @@ var Avatar = forwardRef(function Avatar2({ src, alt = "", initials, size = "md",
1917
2088
  }
1918
2089
  );
1919
2090
  });
1920
- var PRESET_COLORS3 = /* @__PURE__ */ new Set([
2091
+ var PRESET_COLORS4 = /* @__PURE__ */ new Set([
1921
2092
  "primary",
1922
2093
  "secondary",
1923
2094
  "danger",
@@ -1925,7 +2096,7 @@ var PRESET_COLORS3 = /* @__PURE__ */ new Set([
1925
2096
  "success",
1926
2097
  "info"
1927
2098
  ]);
1928
- var isPresetColor3 = (color) => PRESET_COLORS3.has(color);
2099
+ var isPresetColor4 = (color) => PRESET_COLORS4.has(color);
1929
2100
  var activePresetClasses = {
1930
2101
  primary: "rh-bg-primary rh-text-surface rh-border-primary",
1931
2102
  secondary: "rh-bg-secondary rh-text-surface rh-border-secondary",
@@ -1986,7 +2157,7 @@ var Tag = forwardRef(function Tag2({
1986
2157
  children,
1987
2158
  ...rest
1988
2159
  }, ref) {
1989
- const preset = isPresetColor3(color);
2160
+ const preset = isPresetColor4(color);
1990
2161
  const clickable = !!rest.onClick && !disabled;
1991
2162
  const colorClasses3 = preset ? active ? activePresetClasses[color] : inactivePresetClasses[color] : "";
1992
2163
  const hoverClasses = clickable && preset ? active ? hoverActivePresetClasses[color] : hoverInactivePresetClasses[color] : clickable ? "hover:rh-brightness-95" : "";
@@ -2075,7 +2246,7 @@ var TagInput = forwardRef(function TagInput2({
2075
2246
  className = "",
2076
2247
  wrapperClassName = ""
2077
2248
  }, ref) {
2078
- const inputId = React8.useId();
2249
+ const inputId = React9.useId();
2079
2250
  const [isOpen, setIsOpen] = useState(false);
2080
2251
  const containerRef = useRef(null);
2081
2252
  useEffect(() => {
@@ -2368,7 +2539,7 @@ var ProgressBar = forwardRef(function ProgressBar2({ value, label, size = "sm",
2368
2539
  }
2369
2540
  );
2370
2541
  });
2371
- var PRESET_COLORS4 = /* @__PURE__ */ new Set([
2542
+ var PRESET_COLORS5 = /* @__PURE__ */ new Set([
2372
2543
  "primary",
2373
2544
  "secondary",
2374
2545
  "danger",
@@ -2376,7 +2547,7 @@ var PRESET_COLORS4 = /* @__PURE__ */ new Set([
2376
2547
  "success",
2377
2548
  "info"
2378
2549
  ]);
2379
- var isPresetColor4 = (color) => PRESET_COLORS4.has(color);
2550
+ var isPresetColor5 = (color) => PRESET_COLORS5.has(color);
2380
2551
  var sizeClasses10 = {
2381
2552
  sm: { container: "rh-h-8", button: "rh-px-2 rh-text-xs" },
2382
2553
  md: { container: "rh-h-9", button: "rh-px-3 rh-text-sm" },
@@ -2406,7 +2577,7 @@ function ToggleGroupInner({
2406
2577
  className = "",
2407
2578
  ...rest
2408
2579
  }, ref) {
2409
- const preset = isPresetColor4(color);
2580
+ const preset = isPresetColor5(color);
2410
2581
  return /* @__PURE__ */ jsx(
2411
2582
  "div",
2412
2583
  {
@@ -2536,7 +2707,7 @@ var CardFooter = forwardRef(function CardFooter2({ className = "", children, ...
2536
2707
  }
2537
2708
  );
2538
2709
  });
2539
- var PRESET_COLORS5 = /* @__PURE__ */ new Set([
2710
+ var PRESET_COLORS6 = /* @__PURE__ */ new Set([
2540
2711
  "primary",
2541
2712
  "secondary",
2542
2713
  "danger",
@@ -2544,7 +2715,7 @@ var PRESET_COLORS5 = /* @__PURE__ */ new Set([
2544
2715
  "success",
2545
2716
  "info"
2546
2717
  ]);
2547
- var isPresetColor5 = (color) => PRESET_COLORS5.has(color);
2718
+ var isPresetColor6 = (color) => PRESET_COLORS6.has(color);
2548
2719
  var sizeClasses11 = {
2549
2720
  xs: "rh-w-3 rh-h-3",
2550
2721
  sm: "rh-w-4 rh-h-4",
@@ -2561,7 +2732,7 @@ var colorClasses = {
2561
2732
  info: "rh-text-info"
2562
2733
  };
2563
2734
  var Spinner = forwardRef(function Spinner2({ size = "md", color = "primary", label = "Carregando...", className = "", style, ...rest }, ref) {
2564
- const preset = isPresetColor5(color);
2735
+ const preset = isPresetColor6(color);
2565
2736
  const colorClass = preset ? colorClasses[color] : "";
2566
2737
  const customStyle = preset ? style : { ...style, color };
2567
2738
  return /* @__PURE__ */ jsxs(
@@ -2780,66 +2951,105 @@ var defaultElements = {
2780
2951
  h6: "h6",
2781
2952
  bodyLg: "p",
2782
2953
  body: "p",
2954
+ bodySm: "p",
2783
2955
  label: "span",
2784
2956
  labelSm: "span",
2957
+ labelLg: "span",
2958
+ formLabel: "label",
2959
+ formText: "span",
2960
+ formHelper: "span",
2961
+ sectionTitle: "h3",
2962
+ modalTitle: "h2",
2785
2963
  caption: "span",
2786
2964
  captionSm: "span",
2787
2965
  menu: "span",
2788
- overline: "span"
2966
+ overline: "span",
2967
+ link: "span"
2789
2968
  };
2790
2969
  var variantClasses4 = {
2791
2970
  // Headings - Sora font
2792
2971
  h1: "rh-text-4xl rh-font-bold rh-leading-tight rh-font-display",
2793
- // 32px
2972
+ // 36px Sora Bold
2794
2973
  h2: "rh-text-2xl rh-font-bold rh-leading-snug rh-font-display",
2795
- // 24px
2974
+ // 24px Sora Bold
2796
2975
  h3: "rh-text-xl rh-font-semibold rh-leading-snug rh-font-display",
2797
- // 20px
2976
+ // 20px Sora SemiBold
2798
2977
  h4: "rh-text-lg rh-font-semibold rh-leading-snug rh-font-display",
2799
- // 18px
2978
+ // 18px Sora SemiBold
2800
2979
  h5: "rh-text-base rh-font-bold rh-leading-normal rh-font-display",
2801
2980
  // 16px Sora Bold
2802
2981
  h6: "rh-text-sm rh-font-bold rh-leading-normal rh-font-display",
2803
2982
  // 14px Sora Bold
2804
2983
  // Body - Inter font
2805
2984
  bodyLg: "rh-text-base rh-font-normal rh-leading-normal rh-font-body",
2806
- // 16px
2985
+ // 16px Inter
2807
2986
  body: "rh-text-sm rh-font-normal rh-leading-normal rh-font-body",
2808
- // 14px
2987
+ // 14px Inter
2988
+ bodySm: "rh-text-xs rh-font-normal rh-leading-normal rh-font-body",
2989
+ // 12px Inter
2809
2990
  // Labels - Inter font
2810
2991
  label: "rh-text-sm rh-font-medium rh-leading-normal rh-font-body",
2811
- // 14px Medium
2812
- labelSm: "rh-text-sm rh-font-semibold rh-leading-normal rh-font-body",
2813
- // 14px SemiBold
2992
+ // 14px Inter Medium
2993
+ labelSm: "rh-text-xs rh-font-medium rh-leading-normal rh-font-body",
2994
+ // 12px Inter Medium
2995
+ labelLg: "rh-text-base rh-font-medium rh-leading-normal rh-font-body",
2996
+ // 16px Inter Medium
2997
+ // Form specific - Inter font (mais usados no projeto)
2998
+ formLabel: "rh-text-sm rh-font-semibold rh-leading-normal rh-font-body",
2999
+ // 14px Inter SemiBold
3000
+ formText: "rh-text-sm rh-font-normal rh-leading-normal rh-font-body",
3001
+ // 14px Inter Normal
3002
+ formHelper: "rh-text-xs rh-font-normal rh-leading-normal rh-font-body",
3003
+ // 12px Inter Normal
3004
+ // Section titles - Inter font
3005
+ sectionTitle: "rh-text-base rh-font-semibold rh-leading-normal rh-font-body",
3006
+ // 16px Inter SemiBold (Dados da empresa:)
3007
+ modalTitle: "rh-text-base rh-font-bold rh-leading-normal rh-font-display",
3008
+ // 16px Sora Bold (títulos de modal)
2814
3009
  // Captions - Inter font
2815
3010
  caption: "rh-text-xs rh-font-normal rh-leading-normal rh-font-body",
2816
- // 12px
3011
+ // 12px Inter
2817
3012
  captionSm: "rh-text-2xs rh-font-normal rh-leading-tight rh-font-body",
2818
- // 10px
2819
- // Special - Sora/Inter font
3013
+ // 10px Inter
3014
+ // Special
2820
3015
  menu: "rh-text-xs rh-font-bold rh-leading-normal rh-font-display",
2821
3016
  // 12px Sora Bold
2822
- overline: "rh-text-2xs rh-font-semibold rh-leading-tight rh-font-body rh-tracking-wide"
2823
- // 10px Inter SemiBold
3017
+ overline: "rh-text-2xs rh-font-semibold rh-leading-tight rh-font-body rh-tracking-wide rh-uppercase",
3018
+ // 10px Inter SemiBold UPPERCASE
3019
+ link: "rh-text-sm rh-font-medium rh-leading-normal rh-font-body rh-underline"
3020
+ // 14px Inter Medium underline
2824
3021
  };
2825
3022
  var colorClasses2 = {
2826
3023
  default: "rh-text-text",
2827
3024
  muted: "rh-text-text-muted",
2828
3025
  primary: "rh-text-primary",
3026
+ secondary: "rh-text-secondary",
2829
3027
  danger: "rh-text-danger",
2830
3028
  success: "rh-text-success",
2831
- warning: "rh-text-warning"
3029
+ warning: "rh-text-warning",
3030
+ info: "rh-text-info"
2832
3031
  };
2833
- var Typography = forwardRef(function Typography2({ variant = "body", color = "default", bold = false, as, className = "", children, ...rest }, ref) {
3032
+ var Typography = forwardRef(function Typography2({
3033
+ variant = "body",
3034
+ color = "default",
3035
+ bold = false,
3036
+ semibold = false,
3037
+ medium = false,
3038
+ as,
3039
+ className = "",
3040
+ children,
3041
+ ...rest
3042
+ }, ref) {
2834
3043
  const element = as ?? defaultElements[variant];
2835
- return React8.createElement(
3044
+ const weightClass = bold ? "rh-font-bold" : semibold ? "rh-font-semibold" : medium ? "rh-font-medium" : "";
3045
+ return React9.createElement(
2836
3046
  element,
2837
3047
  {
2838
3048
  ref,
2839
3049
  className: [
2840
3050
  variantClasses4[variant],
2841
3051
  colorClasses2[color],
2842
- bold ? "rh-font-bold" : "",
3052
+ weightClass,
2843
3053
  className
2844
3054
  ].filter(Boolean).join(" "),
2845
3055
  ...rest
@@ -3169,6 +3379,6 @@ var GridItem = forwardRef(
3169
3379
  }
3170
3380
  );
3171
3381
 
3172
- export { Avatar, Button, Card, CardContent, CardFooter, CardHeader, CaretLeftIcon, CaretRightIcon, Checkbox, CloseIcon, Container, DeleteIcon, EditIcon, ErrorIcon, GridContainer, GridItem, IconButton, InfoIcon, NeutralIcon, Pagination, PlusIcon, ProgressBar, RehagroProvider, SearchIcon, Select, Spinner, SuccessIcon, Table, Tag, TagInput, TextInput, Toast, ToastContainer, ToastProvider, ToggleGroup, Tooltip, Typography, WarningIcon, useToast };
3382
+ export { Avatar, Button, Card, CardContent, CardFooter, CardHeader, CaretLeftIcon, CaretRightIcon, Checkbox, CloseIcon, Container, DeleteIcon, EditIcon, ErrorIcon, GridContainer, GridItem, IconButton, InfoIcon, NeutralIcon, Pagination, PlusIcon, ProgressBar, Radio, RadioGroup, RadioOption, RehagroProvider, SearchIcon, Select, Spinner, SuccessIcon, Table, Tag, TagInput, TextInput, Toast, ToastContainer, ToastProvider, ToggleGroup, Tooltip, Typography, WarningIcon, useToast };
3173
3383
  //# sourceMappingURL=index.mjs.map
3174
3384
  //# sourceMappingURL=index.mjs.map