@appquality/unguess-design-system 4.0.33 → 4.0.34

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/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v4.0.34 (Fri Mar 28 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Add support to disabled stato to "isAccent" buttons [#512](https://github.com/AppQuality/unguess-design-system/pull/512) ([@cannarocks](https://github.com/cannarocks))
6
+ - Add disabled state handling in button component [#511](https://github.com/AppQuality/unguess-design-system/pull/511) ([@cannarocks](https://github.com/cannarocks))
7
+
8
+ #### Authors: 1
9
+
10
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
11
+
12
+ ---
13
+
1
14
  # v4.0.33 (Fri Mar 28 2025)
2
15
 
3
16
  #### 🐛 Bug Fix
package/build/index.d.ts CHANGED
@@ -11967,7 +11967,7 @@ export declare const theme: {
11967
11967
  width?: string | undefined;
11968
11968
  };
11969
11969
  };
11970
- "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, }: ButtonArgs) => {
11970
+ "buttons.button": ({ isAccent, isBright, isPrimary, isBasic, isLink, disabled, }: ButtonArgs) => {
11971
11971
  backgroundColor?: string | undefined;
11972
11972
  color?: string | undefined;
11973
11973
  border?: string | undefined;
package/build/index.js CHANGED
@@ -6882,7 +6882,7 @@ const Pce = {
6882
6882
  isPrimary: r,
6883
6883
  isBasic: i
6884
6884
  }) => ({
6885
- ...n && !r && !i && {
6885
+ ...n && !r && !e && !i && {
6886
6886
  borderColor: Ke(Zt.accentHue, 700),
6887
6887
  color: Ke(Zt.accentHue, 700),
6888
6888
  "&:hover": {
@@ -6896,7 +6896,7 @@ const Pce = {
6896
6896
  backgroundColor: Hn.blue[100]
6897
6897
  }
6898
6898
  },
6899
- ...n && i && {
6899
+ ...n && i && !e && {
6900
6900
  color: Ke(Zt.accentHue, 700),
6901
6901
  "&:hover": {
6902
6902
  backgroundColor: Ke(Zt.primaryHue, 600, void 0, 0.08),
@@ -6907,7 +6907,7 @@ const Pce = {
6907
6907
  color: Ke(Zt.accentHue, 800)
6908
6908
  }
6909
6909
  },
6910
- ...n && r && {
6910
+ ...n && r && !e && {
6911
6911
  backgroundColor: Ke(Zt.accentHue, 600),
6912
6912
  color: "white",
6913
6913
  "&:hover": {
@@ -6919,7 +6919,7 @@ const Pce = {
6919
6919
  color: "white"
6920
6920
  }
6921
6921
  },
6922
- ...t && {
6922
+ ...t && !e && {
6923
6923
  backgroundColor: "transparent",
6924
6924
  color: "white",
6925
6925
  border: "none",
@@ -6950,9 +6950,10 @@ const Pce = {
6950
6950
  isBright: t,
6951
6951
  isPrimary: n,
6952
6952
  isBasic: r,
6953
- isLink: i
6953
+ isLink: i,
6954
+ disabled: o
6954
6955
  }) => ({
6955
- ...e && !n && !r && !i && {
6956
+ ...e && !n && !r && !i && !o && {
6956
6957
  borderColor: Ke(Zt.accentHue, 700),
6957
6958
  color: Ke(Zt.accentHue, 700),
6958
6959
  "&:hover": {
@@ -6966,7 +6967,7 @@ const Pce = {
6966
6967
  backgroundColor: Hn.blue[100]
6967
6968
  }
6968
6969
  },
6969
- ...e && n && {
6970
+ ...e && n && !o && {
6970
6971
  backgroundColor: Ke(Zt.accentHue, 600),
6971
6972
  "&:hover": {
6972
6973
  backgroundColor: Ke(Zt.accentHue, 700)
@@ -6975,7 +6976,7 @@ const Pce = {
6975
6976
  backgroundColor: Ke(Zt.accentHue, 800)
6976
6977
  }
6977
6978
  },
6978
- ...e && r && {
6979
+ ...e && r && !o && {
6979
6980
  color: Ke(Zt.accentHue, 700),
6980
6981
  "&:hover": {
6981
6982
  backgroundColor: Ke(Zt.primaryHue, 600, void 0, 0.08),
@@ -6986,7 +6987,7 @@ const Pce = {
6986
6987
  color: Ke(Zt.accentHue, 800)
6987
6988
  }
6988
6989
  },
6989
- ...e && i && {
6990
+ ...e && i && !o && {
6990
6991
  color: Ke(Zt.accentHue, 700),
6991
6992
  "&:hover": {
6992
6993
  color: Ke(Zt.accentHue, 800)
@@ -6995,7 +6996,7 @@ const Pce = {
6995
6996
  color: Ke(Zt.accentHue, 800)
6996
6997
  }
6997
6998
  },
6998
- ...t && {
6999
+ ...t && !o && {
6999
7000
  backgroundColor: "transparent",
7000
7001
  color: "white",
7001
7002
  border: "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "4.0.33",
3
+ "version": "4.0.34",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",