allaw-ui 4.6.9 → 4.7.1

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.
@@ -7,6 +7,9 @@
7
7
  align-items: center;
8
8
  height: 1.5rem;
9
9
  gap: 2rem;
10
+ }
11
+
12
+ .progress-bar-container.with-icons {
10
13
  padding-left: 0.7rem;
11
14
  }
12
15
 
@@ -7,7 +7,8 @@ var ProgressBar = function (_a) {
7
7
  var constrainedCurrentStep = Math.max(0, Math.min(currentStep, steps));
8
8
  var progressWidth = constrainedCurrentStep === 0 ? 0 : (constrainedCurrentStep / steps) * 100;
9
9
  var noIconsMargin = !startIcon && !endIcon ? "0px" : "0 10px";
10
- return (React.createElement("div", { className: "progress-bar-container" },
10
+ var hasIcons = startIcon || endIcon;
11
+ return (React.createElement("div", { className: "progress-bar-container ".concat(hasIcons ? "with-icons" : "") },
11
12
  isWrapperProgressBar && startIcon && (React.createElement("div", { className: "progress-bar-icon-container" },
12
13
  React.createElement("button", { className: "progress-bar-chevron", onClick: onStartIconClick },
13
14
  React.createElement("i", { className: "allaw-icon-chevron-left" })))),
@@ -91,7 +91,7 @@ var AppointmentCard = function (_a) {
91
91
  React.createElement("div", { id: "appointmentStatusBadge", className: styles.statusBadge },
92
92
  React.createElement(AppointementStatusTag, { status: statusTagVariant, variant: "default" }))),
93
93
  React.createElement("div", { id: "appointmentCardBody", className: styles.cardBody },
94
- React.createElement(Paragraph, { variant: "semiBold", color: "dark-grey", text: appointment.title, className: styles.title }),
94
+ appointment.title && (React.createElement(Paragraph, { variant: "semiBold", color: "dark-grey", text: appointment.title, className: styles.title })),
95
95
  appointment.description && (React.createElement(Paragraph, { variant: "medium", color: "mid-grey", text: appointment.description, className: styles.description })),
96
96
  primaryAttendee && (React.createElement("div", { id: "appointmentAttendee", className: styles.attendee },
97
97
  React.createElement(TinyInfo, { variant: "medium14", color: "dark-grey", text: primaryAttendee, startIcon: "allaw-icon-user", align: "left" })))),
@@ -13,9 +13,7 @@
13
13
  flex-shrink: 0;
14
14
  border-radius: 18px;
15
15
  background: rgba(255, 255, 255, 1);
16
- box-shadow:
17
- 0 4px 24px rgba(0, 0, 0, 0.06),
18
- 0 1px 2px rgba(0, 0, 0, 0.04);
16
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
19
17
  cursor: pointer;
20
18
  transition: all 0.18s cubic-bezier(0.4, 0.2, 0.2, 1);
21
19
  width: 100%;
@@ -32,15 +30,16 @@
32
30
  inset: 0;
33
31
  border-radius: 18px;
34
32
  pointer-events: none;
35
- border: 1px solid rgba(255,255,255,0.10);
33
+ border: 1px solid rgba(255, 255, 255, 0.1);
36
34
  z-index: 1;
37
35
  }
38
36
 
39
37
  .case-card-wrapper:hover {
40
- box-shadow: 0 6px 18px 0 rgba(37, 190, 235, 0.13), 0 2px 8px 0 rgba(114, 142, 167, 0.08);
38
+ box-shadow: 0 6px 18px 0 rgba(37, 190, 235, 0.13),
39
+ 0 2px 8px 0 rgba(114, 142, 167, 0.08);
41
40
  transform: scale(1.01) translateY(-2px);
42
41
  border: 1.5px solid var(--bleu-allaw, #25beeb);
43
- background: rgba(255,255,255,0.28);
42
+ background: rgba(255, 255, 255, 0.28);
44
43
  }
45
44
 
46
45
  .case-card-wrapper:active {
@@ -60,7 +59,7 @@
60
59
  justify-content: space-between;
61
60
  align-items: flex-start;
62
61
  align-self: stretch;
63
- width: max-content;
62
+ flex: 1;
64
63
  overflow: visible;
65
64
  position: relative;
66
65
  z-index: 2;
@@ -84,7 +83,7 @@
84
83
  font-weight: 400;
85
84
  line-height: 15px;
86
85
  letter-spacing: 0.3px;
87
- text-shadow: 0 1px 2px rgba(255,255,255,0.5);
86
+ text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
88
87
  }
89
88
 
90
89
  .case-card-title {
@@ -100,7 +99,7 @@
100
99
  letter-spacing: 0.1px;
101
100
  padding-top: 4px;
102
101
  margin: 0;
103
- text-shadow: 0 1px 2px rgba(255,255,255,0.4);
102
+ text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
104
103
  flex-shrink: 1;
105
104
  min-width: 0;
106
105
  }
@@ -129,7 +128,7 @@
129
128
  font-weight: 400;
130
129
  line-height: normal;
131
130
  letter-spacing: 0.12px;
132
- text-shadow: 0 1px 2px rgba(255,255,255,0.5);
131
+ text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
133
132
  }
134
133
 
135
134
  .case-card-categories {
@@ -137,6 +136,8 @@
137
136
  gap: 8px;
138
137
  margin-top: 16px;
139
138
  overflow: visible;
139
+ flex-wrap: wrap;
140
+ width: 100%;
140
141
  }
141
142
 
142
143
  .case-card-mobile .case-card-next-appointment-label {
@@ -153,7 +154,6 @@
153
154
 
154
155
  .case-card-progress-bar {
155
156
  width: 100%;
156
- margin-left: -10px;
157
157
  margin-bottom: 2px;
158
158
  z-index: 2;
159
159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "4.6.9",
3
+ "version": "4.7.1",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",