@rehagro/ui 1.0.33 → 1.0.35

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
@@ -328,7 +328,7 @@ type RadioGroupProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, "onCh
328
328
  /** Name for all radio inputs */
329
329
  name?: string;
330
330
  /** Gap between items */
331
- gap?: "sm" | "md" | "lg";
331
+ gap?: "sm" | "md" | "lg" | "xl" | "xxl";
332
332
  };
333
333
  type RadioOptionProps = RadioProps & {
334
334
  /** Unique value for this option */
@@ -375,7 +375,7 @@ declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<React__d
375
375
  /** Name for all radio inputs */
376
376
  name?: string;
377
377
  /** Gap between items */
378
- gap?: "sm" | "md" | "lg";
378
+ gap?: "sm" | "md" | "lg" | "xl" | "xxl";
379
379
  } & React__default.RefAttributes<HTMLDivElement>>;
380
380
 
381
381
  type SelectSize = "sm" | "md" | "lg";
package/dist/index.d.ts CHANGED
@@ -328,7 +328,7 @@ type RadioGroupProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, "onCh
328
328
  /** Name for all radio inputs */
329
329
  name?: string;
330
330
  /** Gap between items */
331
- gap?: "sm" | "md" | "lg";
331
+ gap?: "sm" | "md" | "lg" | "xl" | "xxl";
332
332
  };
333
333
  type RadioOptionProps = RadioProps & {
334
334
  /** Unique value for this option */
@@ -375,7 +375,7 @@ declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<React__d
375
375
  /** Name for all radio inputs */
376
376
  name?: string;
377
377
  /** Gap between items */
378
- gap?: "sm" | "md" | "lg";
378
+ gap?: "sm" | "md" | "lg" | "xl" | "xxl";
379
379
  } & React__default.RefAttributes<HTMLDivElement>>;
380
380
 
381
381
  type SelectSize = "sm" | "md" | "lg";
package/dist/index.js CHANGED
@@ -747,30 +747,56 @@ var PRESET_COLORS = /* @__PURE__ */ new Set([
747
747
  "info"
748
748
  ]);
749
749
  var isPresetColor = (c) => PRESET_COLORS.has(c);
750
- var variantColorClasses = {
750
+ var variantBaseClasses = {
751
751
  solid: {
752
- primary: "rh-bg-primary rh-text-surface rh-border-primary hover:rh-bg-primary-hover hover:rh-border-primary-hover",
753
- secondary: "rh-bg-secondary rh-text-surface rh-border-secondary hover:rh-bg-secondary-hover hover:rh-border-secondary-hover",
754
- danger: "rh-bg-danger rh-text-surface rh-border-danger hover:rh-bg-danger-hover hover:rh-border-danger-hover",
755
- warning: "rh-bg-warning rh-text-surface rh-border-warning hover:rh-bg-warning-hover hover:rh-border-warning-hover",
756
- success: "rh-bg-success rh-text-surface rh-border-success hover:rh-bg-success-hover hover:rh-border-success-hover",
757
- info: "rh-bg-info rh-text-surface rh-border-info hover:rh-bg-info-hover hover:rh-border-info-hover"
752
+ primary: "rh-bg-primary rh-text-surface rh-border-primary",
753
+ secondary: "rh-bg-secondary rh-text-surface rh-border-secondary",
754
+ danger: "rh-bg-danger rh-text-surface rh-border-danger",
755
+ warning: "rh-bg-warning rh-text-surface rh-border-warning",
756
+ success: "rh-bg-success rh-text-surface rh-border-success",
757
+ info: "rh-bg-info rh-text-surface rh-border-info"
758
758
  },
759
759
  outline: {
760
- primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary-subtle",
761
- secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary hover:rh-bg-secondary-subtle",
762
- danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger-subtle",
763
- warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning-subtle",
764
- success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success-subtle",
765
- info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info-subtle"
760
+ primary: "rh-bg-transparent rh-text-primary rh-border-primary",
761
+ secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary",
762
+ danger: "rh-bg-transparent rh-text-danger rh-border-danger",
763
+ warning: "rh-bg-transparent rh-text-warning rh-border-warning",
764
+ success: "rh-bg-transparent rh-text-success rh-border-success",
765
+ info: "rh-bg-transparent rh-text-info rh-border-info"
766
766
  },
767
767
  ghost: {
768
- primary: "rh-bg-transparent rh-text-primary rh-border-transparent hover:rh-bg-primary/10",
769
- secondary: "rh-bg-transparent rh-text-secondary rh-border-transparent hover:rh-bg-secondary/10",
770
- danger: "rh-bg-transparent rh-text-danger rh-border-transparent hover:rh-bg-danger/10",
771
- warning: "rh-bg-transparent rh-text-warning rh-border-transparent hover:rh-bg-warning/10",
772
- success: "rh-bg-transparent rh-text-success rh-border-transparent hover:rh-bg-success/10",
773
- info: "rh-bg-transparent rh-text-info rh-border-transparent hover:rh-bg-info/10"
768
+ primary: "rh-bg-transparent rh-text-primary rh-border-transparent",
769
+ secondary: "rh-bg-transparent rh-text-secondary rh-border-transparent",
770
+ danger: "rh-bg-transparent rh-text-danger rh-border-transparent",
771
+ warning: "rh-bg-transparent rh-text-warning rh-border-transparent",
772
+ success: "rh-bg-transparent rh-text-success rh-border-transparent",
773
+ info: "rh-bg-transparent rh-text-info rh-border-transparent"
774
+ }
775
+ };
776
+ var variantHoverClasses = {
777
+ solid: {
778
+ primary: "hover:rh-bg-primary-hover hover:rh-border-primary-hover",
779
+ secondary: "hover:rh-bg-secondary-hover hover:rh-border-secondary-hover",
780
+ danger: "hover:rh-bg-danger-hover hover:rh-border-danger-hover",
781
+ warning: "hover:rh-bg-warning-hover hover:rh-border-warning-hover",
782
+ success: "hover:rh-bg-success-hover hover:rh-border-success-hover",
783
+ info: "hover:rh-bg-info-hover hover:rh-border-info-hover"
784
+ },
785
+ outline: {
786
+ primary: "hover:rh-bg-primary-subtle",
787
+ secondary: "hover:rh-bg-secondary-subtle",
788
+ danger: "hover:rh-bg-danger-subtle",
789
+ warning: "hover:rh-bg-warning-subtle",
790
+ success: "hover:rh-bg-success-subtle",
791
+ info: "hover:rh-bg-info-subtle"
792
+ },
793
+ ghost: {
794
+ primary: "hover:rh-bg-primary/10",
795
+ secondary: "hover:rh-bg-secondary/10",
796
+ danger: "hover:rh-bg-danger/10",
797
+ warning: "hover:rh-bg-warning/10",
798
+ success: "hover:rh-bg-success/10",
799
+ info: "hover:rh-bg-info/10"
774
800
  }
775
801
  };
776
802
  function getArbitraryColorStyle(variant, color) {
@@ -834,7 +860,8 @@ var Button = React9.forwardRef(function Button2({
834
860
  "rh-border rh-font-display rh-font-medium",
835
861
  "rh-transition-colors rh-duration-150",
836
862
  "focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring focus-visible:rh-ring-offset-2",
837
- preset && !hasCustomHover ? variantColorClasses[variant][color] : "",
863
+ preset ? variantBaseClasses[variant][color] : "",
864
+ preset && !hasCustomHover ? variantHoverClasses[variant][color] : "",
838
865
  !preset && !hasCustomHover ? "hover:rh-brightness-90" : "",
839
866
  hasCustomHover ? "btn-custom-hover" : "",
840
867
  sizeClasses[size],
@@ -891,7 +918,7 @@ var PRESET_COLORS2 = /* @__PURE__ */ new Set([
891
918
  "info"
892
919
  ]);
893
920
  var isPresetColor2 = (c) => PRESET_COLORS2.has(c);
894
- var variantColorClasses2 = {
921
+ var variantColorClasses = {
895
922
  solid: {
896
923
  primary: "rh-bg-primary rh-text-surface rh-border-primary hover:rh-bg-primary-hover hover:rh-border-primary-hover",
897
924
  secondary: "rh-bg-secondary rh-text-surface rh-border-secondary hover:rh-bg-secondary-hover hover:rh-border-secondary-hover",
@@ -967,7 +994,7 @@ var IconButton = React9.forwardRef(function IconButton2({
967
994
  "rh-border rh-font-display",
968
995
  "rh-transition-colors rh-duration-150",
969
996
  "focus-visible:rh-outline-none focus-visible:rh-ring-2 focus-visible:rh-ring-ring focus-visible:rh-ring-offset-2",
970
- preset ? variantColorClasses2[variant][color] : "hover:rh-brightness-90",
997
+ preset ? variantColorClasses[variant][color] : "hover:rh-brightness-90",
971
998
  sizeClasses2[size],
972
999
  radiusClasses2[radius],
973
1000
  isDisabled ? "rh-opacity-50 rh-cursor-not-allowed rh-pointer-events-none" : "",
@@ -1273,7 +1300,9 @@ var descriptionSizeClasses = {
1273
1300
  var gapClasses = {
1274
1301
  sm: "rh-gap-2",
1275
1302
  md: "rh-gap-3",
1276
- lg: "rh-gap-4"
1303
+ lg: "rh-gap-4",
1304
+ xl: "rh-gap-5",
1305
+ xxl: "rh-gap-6"
1277
1306
  };
1278
1307
  var PRESET_COLORS3 = /* @__PURE__ */ new Set([
1279
1308
  "primary",
@@ -1340,16 +1369,7 @@ var Radio = React9.forwardRef(function Radio2({
1340
1369
  ),
1341
1370
  (label || description) && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "rh-flex rh-flex-col", children: [
1342
1371
  label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ["rh-text-text", labelSizeClasses2[size]].join(" "), children: label }),
1343
- description && /* @__PURE__ */ jsxRuntime.jsx(
1344
- "span",
1345
- {
1346
- className: [
1347
- "rh-text-text-muted",
1348
- descriptionSizeClasses[size]
1349
- ].join(" "),
1350
- children: description
1351
- }
1352
- )
1372
+ description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: ["rh-text-text-muted", descriptionSizeClasses[size]].join(" "), children: description })
1353
1373
  ] })
1354
1374
  ]
1355
1375
  }