@rehagro/ui 1.0.31 → 1.0.33

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
@@ -18,6 +18,12 @@ var TOKEN_MAP = {
18
18
  successHover: { var: "--rh-success-hover", isColor: true },
19
19
  info: { var: "--rh-info", isColor: true },
20
20
  infoHover: { var: "--rh-info-hover", isColor: true },
21
+ primarySubtle: { var: "--rh-primary-subtle", isColor: true, raw: true },
22
+ secondarySubtle: { var: "--rh-secondary-subtle", isColor: true, raw: true },
23
+ dangerSubtle: { var: "--rh-danger-subtle", isColor: true, raw: true },
24
+ warningSubtle: { var: "--rh-warning-subtle", isColor: true, raw: true },
25
+ successSubtle: { var: "--rh-success-subtle", isColor: true, raw: true },
26
+ infoSubtle: { var: "--rh-info-subtle", isColor: true, raw: true },
21
27
  text: { var: "--rh-text", isColor: true },
22
28
  textMuted: { var: "--rh-text-muted", isColor: true },
23
29
  surface: { var: "--rh-surface", isColor: true },
@@ -693,7 +699,9 @@ function RehagroProvider({ theme, toastPosition, children }) {
693
699
  for (const [key, config] of Object.entries(TOKEN_MAP)) {
694
700
  const value = theme[key];
695
701
  if (!value) continue;
696
- if (config.isColor) {
702
+ if (config.raw) {
703
+ vars[config.var] = value;
704
+ } else if (config.isColor) {
697
705
  const triplet = toRgbTriplet(value);
698
706
  if (triplet) vars[config.var] = triplet;
699
707
  } else {
@@ -743,12 +751,12 @@ var variantColorClasses = {
743
751
  info: "rh-bg-info rh-text-surface rh-border-info hover:rh-bg-info-hover hover:rh-border-info-hover"
744
752
  },
745
753
  outline: {
746
- primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary/[0.16]",
747
- secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary hover:rh-bg-secondary/[0.16]",
748
- danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger/[0.16]",
749
- warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning/[0.16]",
750
- success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success/[0.16]",
751
- info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info/[0.16]"
754
+ primary: "rh-bg-transparent rh-text-primary rh-border-primary hover:rh-bg-primary-subtle",
755
+ secondary: "rh-bg-transparent rh-text-secondary rh-border-secondary hover:rh-bg-secondary-subtle",
756
+ danger: "rh-bg-transparent rh-text-danger rh-border-danger hover:rh-bg-danger-subtle",
757
+ warning: "rh-bg-transparent rh-text-warning rh-border-warning hover:rh-bg-warning-subtle",
758
+ success: "rh-bg-transparent rh-text-success rh-border-success hover:rh-bg-success-subtle",
759
+ info: "rh-bg-transparent rh-text-info rh-border-info hover:rh-bg-info-subtle"
752
760
  },
753
761
  ghost: {
754
762
  primary: "rh-bg-transparent rh-text-primary rh-border-transparent hover:rh-bg-primary/10",