@rehagro/ui 1.0.29 → 1.0.30

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
@@ -39,6 +39,10 @@ var TOKEN_MAP = {
39
39
  inputPxSm: { var: "--rh-input-px-sm", isColor: false },
40
40
  inputPxMd: { var: "--rh-input-px-md", isColor: false },
41
41
  inputPxLg: { var: "--rh-input-px-lg", isColor: false },
42
+ buttonHeightSm: { var: "--rh-button-height-sm", isColor: false },
43
+ buttonHeightMd: { var: "--rh-button-height-md", isColor: false },
44
+ buttonHeightLg: { var: "--rh-button-height-lg", isColor: false },
45
+ buttonHeightXl: { var: "--rh-button-height-xl", isColor: false },
42
46
  fontFamilyBody: { var: "--rh-font-family", isColor: false },
43
47
  fontFamilyDisplay: { var: "--rh-font-family-display", isColor: false }
44
48
  };
@@ -685,7 +689,6 @@ function toRgbTriplet(value) {
685
689
  }
686
690
  function RehagroProvider({ theme, toastPosition, children }) {
687
691
  const style = useMemo(() => {
688
- if (!theme) return void 0;
689
692
  const vars = {};
690
693
  for (const [key, config] of Object.entries(TOKEN_MAP)) {
691
694
  const value = theme[key];
@@ -762,9 +765,10 @@ function getArbitraryColorStyle(variant, color) {
762
765
  return { color, borderColor: "transparent" };
763
766
  }
764
767
  var sizeClasses = {
765
- sm: "rh-text-sm rh-px-3 rh-py-1.5",
766
- md: "rh-text-sm rh-px-4 rh-py-2",
767
- lg: "rh-text-base rh-px-5 rh-py-2.5"
768
+ sm: "rh-text-sm rh-px-3 rh-h-button-sm",
769
+ md: "rh-text-sm rh-px-4 rh-h-button-md",
770
+ lg: "rh-text-base rh-px-5 rh-h-button-lg",
771
+ xl: "rh-text-lg rh-px-6 rh-h-button-xl"
768
772
  };
769
773
  var radiusClasses = {
770
774
  none: "rh-rounded-none",