allaw-ui 0.0.325 → 0.0.326

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.
@@ -6,7 +6,6 @@
6
6
  justify-content: center;
7
7
  gap: 15px;
8
8
  cursor: pointer;
9
- max-width: 400px;
10
9
  min-width: 210px;
11
10
  border-radius: 10px;
12
11
  padding: 6px;
@@ -32,7 +32,25 @@ var OAuthProviderButton = function (_a) {
32
32
  var handleClick = function () {
33
33
  window.location.href = url;
34
34
  };
35
- return (React.createElement("button", { className: "oauth-provider-button ".concat(provider), onClick: handleClick, style: { height: "".concat(size * 2.25, "px") } },
35
+ var getMaxWidth = function () {
36
+ switch (size) {
37
+ case 14:
38
+ return "200px";
39
+ case 16:
40
+ return "300px";
41
+ case 18:
42
+ return "320px";
43
+ case 20:
44
+ return "370px";
45
+ case 22:
46
+ return "380px";
47
+ case 24:
48
+ return "400px";
49
+ default:
50
+ return "400px";
51
+ }
52
+ };
53
+ return (React.createElement("button", { className: "oauth-provider-button ".concat(provider), onClick: handleClick, style: { height: "".concat(size * 2.55, "px"), maxWidth: getMaxWidth() } },
36
54
  renderIcon(),
37
55
  React.createElement("span", { className: "label", style: { fontSize: "".concat(size, "px") } }, getLabel())));
38
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "0.0.325",
3
+ "version": "0.0.326",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",