allaw-ui 1.0.176 → 1.0.177

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.
@@ -12,9 +12,7 @@
12
12
  align-items: center;
13
13
  gap: 16px;
14
14
 
15
- transition:
16
- border-color 0.2s ease,
17
- border-width 0.2s ease;
15
+ transition: border-color 0.2s ease, border-width 0.2s ease;
18
16
  }
19
17
 
20
18
  .case-card-link:hover {
@@ -90,7 +88,7 @@
90
88
  width: 100%;
91
89
  flex-direction: row;
92
90
  justify-content: space-between;
93
- align-items: end;
91
+ align-items: flex-end;
94
92
  }
95
93
 
96
94
  .case-card-link-info-col {
@@ -9,7 +9,6 @@
9
9
  border-radius: 8px;
10
10
  border: 1px solid var(--venom-grey, #e6edf5);
11
11
  background: var(--Primary-Blanc, #fff);
12
- box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
13
12
  }
14
13
 
15
14
  .document-card-left {
@@ -132,3 +131,7 @@
132
131
  font-weight: 600;
133
132
  line-height: normal;
134
133
  }
134
+
135
+ .document-card.with-shadow {
136
+ box-shadow: 0px 1px 9px 0px rgba(15, 133, 168, 0.08);
137
+ }
@@ -10,6 +10,7 @@ export interface DocumentCardProps {
10
10
  };
11
11
  onCardClick?: () => any;
12
12
  documentCount?: string;
13
+ shadow?: boolean;
13
14
  }
14
15
  declare const DocumentCard: React.FC<DocumentCardProps>;
15
16
  export default DocumentCard;
@@ -4,7 +4,7 @@ import IconButton from "../../atoms/buttons/IconButton";
4
4
  import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
5
5
  import { Paragraph } from "../../atoms/typography";
6
6
  var DocumentCard = function (_a) {
7
- var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e;
7
+ var _b = _a.type, type = _b === void 0 ? "document" : _b, title = _a.title, _c = _a.date, date = _c === void 0 ? new Date() : _c, onCardClick = _a.onCardClick, status = _a.status, _d = _a.documents, documents = _d === void 0 ? {} : _d, _e = _a.documentCount, documentCount = _e === void 0 ? "" : _e, _f = _a.shadow, shadow = _f === void 0 ? true : _f;
8
8
  var getIconName = function () {
9
9
  switch (type) {
10
10
  case "document":
@@ -103,7 +103,7 @@ var DocumentCard = function (_a) {
103
103
  React.createElement(IconButton, { style: "smallFilled", iconName: "allaw-icon-document" }),
104
104
  React.createElement("span", { className: "document-count" }, documentCount))));
105
105
  }
106
- return (React.createElement("div", { className: "document-card", onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
106
+ return (React.createElement("div", { className: "document-card".concat(shadow ? " with-shadow" : ""), onClick: function () { return onCardClick && onCardClick(); }, style: { cursor: onCardClick ? "pointer" : "default" } },
107
107
  React.createElement("div", { className: "document-card-left" },
108
108
  React.createElement(IconButton, { style: "largeFilled", iconName: getIconName(), color: type == "payment" ? "#25BEEB" : "inherit" }),
109
109
  React.createElement("div", { className: "document-card-info" },
@@ -36,11 +36,17 @@ declare namespace _default {
36
36
  let control_5: string;
37
37
  export { control_5 as control };
38
38
  }
39
+ export namespace shadow {
40
+ let control_6: string;
41
+ export { control_6 as control };
42
+ }
39
43
  }
40
44
  export namespace args {
41
45
  export { defaultDocuments as documents };
42
46
  let documentCount_1: string;
43
47
  export { documentCount_1 as documentCount };
48
+ let shadow_1: boolean;
49
+ export { shadow_1 as shadow };
44
50
  }
45
51
  export namespace parameters {
46
52
  namespace backgrounds {
@@ -50,10 +50,12 @@ export default {
50
50
  control: "object",
51
51
  },
52
52
  documentCount: { control: "text" },
53
+ shadow: { control: "boolean" },
53
54
  },
54
55
  args: {
55
56
  documents: defaultDocuments,
56
57
  documentCount: "1/3",
58
+ shadow: true,
57
59
  },
58
60
  parameters: {
59
61
  backgrounds: {
@@ -69,9 +69,7 @@
69
69
  align-items: center;
70
70
  opacity: 0;
71
71
  visibility: hidden;
72
- transition:
73
- opacity 0.3s ease,
74
- visibility 0.3s ease;
72
+ transition: opacity 0.3s ease, visibility 0.3s ease;
75
73
  }
76
74
 
77
75
  .stepper-overlay.visible {
@@ -86,7 +84,7 @@
86
84
  overflow-y: auto;
87
85
  display: flex;
88
86
  justify-content: center;
89
- align-items: start;
87
+ align-items: flex-start;
90
88
  font-family: "Open Sans", sans-serif;
91
89
  font-size: 16px;
92
90
  font-weight: 400;
@@ -94,9 +92,8 @@
94
92
  letter-spacing: 0em;
95
93
  }
96
94
 
97
-
98
95
  @media (max-width: 800px) {
99
- .stepper-container {
96
+ .stepper-container {
100
97
  height: 99dvh;
101
98
  position: fixed;
102
99
  bottom: 0;
@@ -105,4 +102,4 @@
105
102
  border-bottom-left-radius: 0;
106
103
  border-bottom-right-radius: 0;
107
104
  }
108
- }
105
+ }
@@ -7,9 +7,9 @@ declare const meta: {
7
7
  layout: string;
8
8
  };
9
9
  args: {
10
- onLogin: import("@vitest/spy").Mock<[], void>;
11
- onLogout: import("@vitest/spy").Mock<[], void>;
12
- onCreateAccount: import("@vitest/spy").Mock<[], void>;
10
+ onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
11
+ onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
12
+ onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
13
13
  };
14
14
  };
15
15
  export default meta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",