allaw-ui 1.0.151 → 1.0.153

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.
Binary file
@@ -103,4 +103,19 @@
103
103
  <glyph unicode="&#xe94d;" d="M521.966 762.708c95.81 0 160.44-41.386 197.292-75.971l144.001 140.601c-88.439 82.205-203.53 132.663-341.293 132.663-199.563 0-371.911-114.52-455.817-281.197l164.977-128.129c41.39 123.025 155.91 212.034 290.839 212.034z" />
104
104
  <glyph unicode="&#xe94e;" glyph-name="apple" data-tags="apple" d="M798.293 128c-35.413-52.907-72.96-104.533-130.133-105.387-57.173-1.28-75.52 33.707-140.373 33.707-65.28 0-85.333-32.853-139.521-34.987-55.893-2.133-98.133 56.32-133.973 107.947-72.96 105.387-128.853 299.52-53.76 430.080 37.12 64.853 103.68 105.813 175.787 107.093 54.615 0.853 106.668-37.12 140.375-37.12 33.28 0 96.427 45.653 162.56 38.827 27.733-1.28 105.387-11.093 155.307-84.48-3.84-2.56-92.587-54.613-91.733-162.56 1.28-128.853 113.067-171.947 114.347-172.373-1.28-2.987-17.92-61.44-58.88-120.747zM554.667 810.667c31.147 35.413 82.773 62.293 125.44 64 5.547-49.92-14.507-100.267-44.373-136.107-29.44-36.267-78.080-64.427-125.867-60.587-6.4 49.067 17.493 100.267 44.8 132.693z" />
105
105
  <glyph unicode="&#xe94f;" glyph-name="linkedin" data-tags="linkedin" d="M1024-64h-204.8v358.349c0 98.304-43.366 153.139-121.139 153.139-84.634 0-134.861-57.139-134.861-153.139v-358.349h-204.8v665.6h204.8v-74.854c0 0 64.256 112.742 209.050 112.742 144.845 0 251.75-88.371 251.75-271.258v-432.23zM125.030 708.045c-69.069 0-125.030 56.422-125.030 126.003 0 69.53 55.962 125.952 125.030 125.952 69.018 0 124.979-56.422 124.979-125.952 0.051-69.581-55.962-126.003-124.979-126.003v0zM0-64h256v665.6h-256v-665.6z" />
106
+ <glyph unicode="&#xe950;" glyph-name="microsoft-outlook" data-tags="microsoft-outlook" d="M1024 644.821v-447.061c0-9.813-3.413-18.091-10.155-24.576-6.741-6.571-15.019-9.813-24.747-9.813h-364.672v296.917l68.267-52.437c4.352-3.627 9.771-5.376 16.171-5.376 6.315 0 11.819 1.749 16.597 5.419zM624.427 731.051h364.672c9.003 0 16.768-2.688 23.168-8.192 6.4-5.461 9.984-12.8 10.581-21.76l-314.411-250.709-84.011 66.091zM571.904 923.136v-950.229l-571.904 98.816v749.867l571.989 101.547zM399.147 446.123c-0.853 48.341-13.355 88.405-37.504 120.064-23.68 31.573-54.4 48.256-90.923 49.664-35.157-1.408-65.237-18.048-89.6-49.664-24.32-31.659-36.48-71.765-37.12-120.064 0.64-47.659 13.44-87.339 37.76-119.083 24.363-31.573 54.357-48.341 89.643-50.176 36.48 1.493 67.157 18.091 91.52 49.92 24.32 31.915 37.12 71.68 37.76 119.339zM266.027 552.021c18.389-0.853 33.877-10.923 46.208-30.592 12.16-19.669 18.56-44.587 18.56-74.752 0-30.763-6.357-55.765-18.56-75.563-12.843-19.797-28.16-30.037-46.763-30.037s-33.92 9.643-46.72 29.44-18.56 44.8-18.56 74.837c0 30.080 5.76 55.083 18.56 74.24 12.117 19.2 27.563 29.44 46.123 30.763z" />
107
+ <glyph unicode="&#xe951;" d="M277.333 682.667h469.333v-469.333h-469.333v469.333z" />
108
+ <glyph unicode="&#xe952;" d="M547.84 513.707l21.504-30.72 33.792 24.576v-178.176h36.864v233.472h-30.72z" />
109
+ <glyph unicode="&#xe953;" glyph-name="microsoftoutlook" data-tags="microsoft-outlook" d="M1024 644.821v-447.061c0-9.813-3.413-18.091-10.155-24.576-6.741-6.571-15.019-9.813-24.747-9.813h-364.672v296.917l68.267-52.437c4.352-3.627 9.771-5.376 16.171-5.376 6.315 0 11.819 1.749 16.597 5.419zM624.427 731.051h364.672c9.003 0 16.768-2.688 23.168-8.192 6.4-5.461 9.984-12.8 10.581-21.76l-314.411-250.709-84.011 66.091zM571.904 923.136v-950.229l-571.904 98.816v749.867l571.989 101.547zM399.147 446.123c-0.853 48.341-13.355 88.405-37.504 120.064-23.68 31.573-54.4 48.256-90.923 49.664-35.157-1.408-65.237-18.048-89.6-49.664-24.32-31.659-36.48-71.765-37.12-120.064 0.64-47.659 13.44-87.339 37.76-119.083 24.363-31.573 54.357-48.341 89.643-50.176 36.48 1.493 67.157 18.091 91.52 49.92 24.32 31.915 37.12 71.68 37.76 119.339zM266.027 552.021c18.389-0.853 33.877-10.923 46.208-30.592 12.16-19.669 18.56-44.587 18.56-74.752 0-30.763-6.357-55.765-18.56-75.563-12.843-19.797-28.16-30.037-46.763-30.037s-33.92 9.643-46.72 29.44-18.56 44.8-18.56 74.837c0 30.080 5.76 55.083 18.56 74.24 12.117 19.2 27.563 29.44 46.123 30.763z" />
110
+ <glyph unicode="&#xe954;" d="M489.451 453.44c13.333 12.245 21.611 29.227 21.611 47.979 0 37.269-32.704 67.584-72.896 67.584-34.176 0-63.403-21.525-71.040-52.331l35.349-8.981c3.52 14.165 18.517 24.448 35.691 24.448 20.096 0 36.459-13.781 36.459-30.72s-16.363-30.72-36.459-30.72h-21.269v-36.864h21.269c23.061 0 42.517-16.021 42.517-34.987 0-19.285-18.475-34.987-41.195-34.987-20.523 0-38.059 13.013-40.832 30.251l-35.989-5.888c5.589-34.901 38.613-61.227 76.8-61.227 42.816 0 77.653 32.235 77.653 71.851 0 21.824-10.752 41.408-27.669 54.592z" />
111
+ <glyph unicode="&#xe955;" d="M725.333 64h-426.667l-21.333 85.333 21.333 85.333h426.667l21.333-85.333z" />
112
+ <glyph unicode="&#xe956;" d="M810.667 213.333l85.333 21.333v426.667l-85.333 21.333-85.333-21.333v-426.667z" />
113
+ <glyph unicode="&#xe957;" d="M725.333 661.333l21.333 85.333-21.333 85.333h-533.333c-35.349 0-64-28.651-64-64v-533.333l85.333-21.333 85.333 21.333v426.667h426.667z" />
114
+ <glyph unicode="&#xe958;" d="M725.333 234.667v-170.667l170.667 170.667z" />
115
+ <glyph unicode="&#xe959;" d="M832 832h-106.667v-170.667h170.667v106.667c0 35.349-28.651 64-64 64z" />
116
+ <glyph unicode="&#xe95a;" d="M48.762 911.238h438.857v-438.857h-438.857v438.857z" />
117
+ <glyph unicode="&#xe95b;" d="M48.762 423.619h438.857v-438.857h-438.857v438.857z" />
118
+ <glyph unicode="&#xe95c;" d="M536.381 911.238h438.857v-438.857h-438.857v438.857z" />
119
+ <glyph unicode="&#xe95d;" d="M536.381 423.619h438.857v-438.857h-438.857v438.857z" />
120
+ <glyph unicode="&#xe95e;" d="M192 64h106.667v170.667h-170.667v-106.667c0-35.349 28.651-64 64-64z" />
106
121
  </font></defs></svg>
Binary file
Binary file
@@ -22,9 +22,7 @@
22
22
  .oauth-provider-button.google {
23
23
  width: 100%;
24
24
  background: #ffffff;
25
- box-shadow:
26
- 0px 2px 3px 0px #0000002b,
27
- 0px 0px 3px 0px #00000015;
25
+ box-shadow: 0px 2px 3px 0px #0000002b, 0px 0px 3px 0px #00000015;
28
26
  }
29
27
 
30
28
  .oauth-provider-button.google .label {
@@ -86,26 +84,6 @@
86
84
  padding-bottom: 0px;
87
85
  }
88
86
 
89
- .allaw-icon-google .path1:before {
90
- content: "\e94a";
91
- color: rgb(66, 133, 244);
92
- }
93
- .allaw-icon-google .path2:before {
94
- content: "\e94b";
95
- margin-left: -1em;
96
- color: rgb(52, 168, 83);
97
- }
98
- .allaw-icon-google .path3:before {
99
- content: "\e94c";
100
- margin-left: -1em;
101
- color: rgb(251, 188, 5);
102
- }
103
- .allaw-icon-google .path4:before {
104
- content: "\e94d";
105
- margin-left: -1em;
106
- color: rgb(235, 67, 53);
107
- }
108
-
109
87
  .linkedin-icon-container {
110
88
  display: flex;
111
89
  align-items: center;
@@ -115,3 +93,28 @@
115
93
  border-radius: 4px;
116
94
  background: #ffffff;
117
95
  }
96
+
97
+ .oauth-provider-button.microsoft {
98
+ font-family: "Segoe UI";
99
+ font-size: 15px;
100
+ font-weight: 600;
101
+ color: #5e5e5e;
102
+ background-color: #ffffff;
103
+ border: 1px solid #8c8c8c;
104
+ height: 41px;
105
+ display: flex;
106
+ align-items: center;
107
+ gap: 12px;
108
+ padding-left: 12px;
109
+ padding-right: 12px;
110
+ cursor: pointer;
111
+ width: 100%;
112
+ }
113
+
114
+ .oauth-provider-button.microsoft:hover {
115
+ background-color: #f3f3f3;
116
+ }
117
+
118
+ .oauth-provider-button.microsoft:active {
119
+ background-color: #e5e5e5;
120
+ }
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import "./OAuthProviderButton.css";
3
3
  import "../../../styles/global.css";
4
4
  export interface OAuthProviderButtonProps {
5
- provider: "google" | "apple" | "linkedin";
6
- type: "login" | "signup";
5
+ provider: "google" | "apple" | "linkedin" | "microsoft";
6
+ type: "login" | "signup" | "calendar";
7
7
  url: string;
8
8
  size: 14 | 16 | 18 | 20 | 22 | 24;
9
9
  onClick?: () => void;
@@ -10,20 +10,29 @@ var OAuthProviderButton = function (_a) {
10
10
  google: {
11
11
  login: "Continuer avec Google",
12
12
  signup: "S'inscrire avec Google",
13
+ calendar: "Google Calendar",
13
14
  },
14
15
  apple: {
15
16
  login: "Continuer avec Apple",
16
17
  signup: "S'inscrire avec Apple",
18
+ calendar: "Apple Calendar",
17
19
  },
18
20
  linkedin: {
19
21
  login: "Continuer avec LinkedIn",
20
22
  signup: "S'inscrire avec LinkedIn",
23
+ calendar: "Ajouter à l'Agenda",
24
+ },
25
+ microsoft: {
26
+ login: "Continuer avec Microsoft",
27
+ signup: "S'inscrire avec Microsoft",
28
+ calendar: "Microsoft Outlook",
21
29
  },
22
30
  };
23
31
  var shortLabels = {
24
32
  google: "Google",
25
33
  apple: "Apple",
26
34
  linkedin: "LinkedIn",
35
+ microsoft: "Microsoft",
27
36
  };
28
37
  return { labels: labels, shortLabels: shortLabels };
29
38
  };
@@ -48,6 +57,11 @@ var OAuthProviderButton = function (_a) {
48
57
  var updateLabel = function () {
49
58
  var _a, _b;
50
59
  var _c = getLabels(), labels = _c.labels, shortLabels = _c.shortLabels;
60
+ if (!labels[provider][type]) {
61
+ console.warn("Type \"".concat(type, "\" non pris en charge pour le provider \"").concat(provider, "\"."));
62
+ setLabel("Type inconnu");
63
+ return;
64
+ }
51
65
  var maxWidth = (_b = (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) !== null && _b !== void 0 ? _b : 0;
52
66
  var thresholdWidth = getThresholdWidth(size);
53
67
  var newLabel = maxWidth < thresholdWidth
@@ -68,7 +82,6 @@ var OAuthProviderButton = function (_a) {
68
82
  }
69
83
  };
70
84
  }, [provider, type, size]);
71
- // Force an update after the first render to ensure the correct label is set
72
85
  useEffect(function () {
73
86
  if (buttonRef.current) {
74
87
  updateLabel();
@@ -76,37 +89,57 @@ var OAuthProviderButton = function (_a) {
76
89
  }, []);
77
90
  var renderIcon = function () {
78
91
  var iconSizes = {
79
- google: size * 0.8,
92
+ google: type === "calendar" ? size * 1.2 : size * 0.8,
80
93
  apple: size * 1.2,
81
94
  linkedin: size * 0.8,
95
+ microsoft: type === "calendar" ? size * 1.2 : size * 1.2,
82
96
  };
83
- var iconClasses = {
97
+ var baseIconClass = {
84
98
  google: "allaw-icon-google",
85
99
  apple: "allaw-icon-apple",
86
100
  linkedin: "allaw-icon-linkedin",
101
+ microsoft: "allaw-icon-microsoft",
102
+ };
103
+ var calendarIconClass = {
104
+ google: "allaw-icon-google-calendar",
105
+ microsoft: "allaw-icon-microsoft-outlook",
87
106
  };
88
- var iconSize = iconSizes[provider];
89
- var iconClass = iconClasses[provider];
107
+ var iconClass = type === "calendar" && (provider === "google" || provider === "microsoft")
108
+ ? calendarIconClass[provider]
109
+ : baseIconClass[provider];
90
110
  if (provider === "google") {
91
- return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSize, "px") } },
111
+ var isCalendar = type === "calendar";
112
+ return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
92
113
  React.createElement("span", { className: "path1" }),
93
114
  React.createElement("span", { className: "path2" }),
94
115
  React.createElement("span", { className: "path3" }),
95
- React.createElement("span", { className: "path4" })));
116
+ React.createElement("span", { className: "path4" }),
117
+ isCalendar && (React.createElement(React.Fragment, null,
118
+ React.createElement("span", { className: "path5" }),
119
+ React.createElement("span", { className: "path6" }),
120
+ React.createElement("span", { className: "path7" }),
121
+ React.createElement("span", { className: "path8" })))));
96
122
  }
97
123
  else if (provider === "linkedin") {
98
124
  var containerSize = size * 1.4;
99
125
  return (React.createElement("div", { className: "linkedin-icon-container", style: {
100
- fontSize: "".concat(iconSize, "px"),
126
+ fontSize: "".concat(iconSizes[provider], "px"),
101
127
  width: "".concat(containerSize, "px"),
102
128
  height: "".concat(containerSize, "px"),
103
129
  minWidth: "".concat(containerSize, "px"),
104
130
  minHeight: "".concat(containerSize, "px"),
105
131
  } },
106
- React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSize, "px") } })));
132
+ React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } })));
133
+ }
134
+ else if (provider === "microsoft") {
135
+ return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
136
+ React.createElement("span", { className: "path1" }),
137
+ React.createElement("span", { className: "path2" }),
138
+ React.createElement("span", { className: "path3" }),
139
+ React.createElement("span", { className: "path4" })));
107
140
  }
108
141
  else {
109
- return (React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSize, "px") } }));
142
+ return (React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } }));
110
143
  }
111
144
  };
112
145
  var handleClick = function () {
@@ -47,4 +47,10 @@ export const AppleLogin: any;
47
47
  export const AppleSignup: any;
48
48
  export const LinkedinLogin: any;
49
49
  export const LinkedinSignup: any;
50
+ export const MicrosoftLogin: any;
51
+ export const MicrosoftSignup: any;
52
+ export const GoogleCalendar: any;
53
+ export const AppleCalendar: any;
54
+ export const LinkedinCalendar: any;
55
+ export const MicrosoftCalendar: any;
50
56
  import OAuthProviderButton from "./OAuthProviderButton";
@@ -20,7 +20,7 @@ export default {
20
20
  provider: {
21
21
  control: {
22
22
  type: "select",
23
- options: ["google", "apple", "linkedin"],
23
+ options: ["google", "apple", "linkedin", "microsoft"],
24
24
  },
25
25
  },
26
26
  type: {
@@ -86,3 +86,45 @@ LinkedinSignup.args = {
86
86
  url: "https://linkedin.com/signup",
87
87
  size: 20,
88
88
  };
89
+ export var MicrosoftLogin = Template.bind({});
90
+ MicrosoftLogin.args = {
91
+ provider: "microsoft",
92
+ type: "login",
93
+ url: "https://microsoft.com",
94
+ size: 20,
95
+ };
96
+ export var MicrosoftSignup = Template.bind({});
97
+ MicrosoftSignup.args = {
98
+ provider: "microsoft",
99
+ type: "signup",
100
+ url: "https://microsoft.com/signup",
101
+ size: 20,
102
+ };
103
+ export var GoogleCalendar = Template.bind({});
104
+ GoogleCalendar.args = {
105
+ provider: "google",
106
+ type: "calendar",
107
+ url: "https://calendar.google.com/calendar/u/0/r/eventedit",
108
+ size: 20,
109
+ };
110
+ export var AppleCalendar = Template.bind({});
111
+ AppleCalendar.args = {
112
+ provider: "apple",
113
+ type: "calendar",
114
+ url: "https://www.icloud.com/calendar",
115
+ size: 20,
116
+ };
117
+ export var LinkedinCalendar = Template.bind({});
118
+ LinkedinCalendar.args = {
119
+ provider: "linkedin",
120
+ type: "calendar",
121
+ url: "#",
122
+ size: 20,
123
+ };
124
+ export var MicrosoftCalendar = Template.bind({});
125
+ MicrosoftCalendar.args = {
126
+ provider: "microsoft",
127
+ type: "calendar",
128
+ url: "https://outlook.office.com/calendar",
129
+ size: 20,
130
+ };
@@ -1,11 +1,13 @@
1
1
  import React from "react";
2
2
  import "../../../styles/global.css";
3
+ import "../../../styles/icons.css";
3
4
  export interface SelectableListItemProps {
4
5
  label: string;
5
- column2?: string;
6
- column3?: string;
6
+ duration?: string;
7
+ price?: string;
7
8
  isActive: boolean;
8
9
  onClick: () => void;
10
+ icon?: string;
9
11
  }
10
12
  declare const SelectableListItem: React.FC<SelectableListItemProps>;
11
13
  export default SelectableListItem;
@@ -1,13 +1,18 @@
1
1
  import React from "react";
2
2
  import styles from "./SelectableListItem.module.css";
3
3
  import "../../../styles/global.css";
4
+ import "../../../styles/icons.css";
4
5
  var SelectableListItem = function (_a) {
5
- var label = _a.label, column2 = _a.column2, column3 = _a.column3, isActive = _a.isActive, onClick = _a.onClick;
6
- return (React.createElement("button", { className: "".concat(styles.selectableListItem, " ").concat(isActive ? styles.selectableListItemActive : ""), onClick: onClick },
7
- React.createElement("div", { className: styles.selectableListItemIcon }, isActive && React.createElement("span", { className: styles.selectableListItemIconInner })),
8
- React.createElement("span", { className: styles.selectableListItemLabel }, label),
9
- React.createElement("div", { className: styles.selectableListItemColumnsWrapper },
10
- column2 && (React.createElement("span", { className: styles.selectableListItemColumn2 }, column2)),
11
- column3 && (React.createElement("span", { className: styles.selectableListItemColumn3 }, column3)))));
6
+ var label = _a.label, duration = _a.duration, price = _a.price, isActive = _a.isActive, onClick = _a.onClick, icon = _a.icon;
7
+ var hasIcon = icon && icon.length > 0;
8
+ return (React.createElement("button", { className: "".concat(styles.container, " ").concat(isActive ? styles.active : "", " ").concat(hasIcon ? styles.withIcon : ""), onClick: onClick },
9
+ React.createElement("div", { className: styles.iconContainer }, isActive && React.createElement("span", { className: styles.activeIcon })),
10
+ hasIcon && (React.createElement("div", { className: styles.iconWrapper },
11
+ React.createElement("i", { className: "".concat(icon, " ").concat(styles.icon) }))),
12
+ React.createElement("div", { className: styles.content },
13
+ React.createElement("span", { className: styles.label }, label)),
14
+ React.createElement("div", { className: styles.columnsWrapper },
15
+ duration && React.createElement("span", { className: styles.duration }, duration),
16
+ price && React.createElement("span", { className: styles.price }, price))));
12
17
  };
13
18
  export default SelectableListItem;
@@ -1,4 +1,4 @@
1
- .selectableListItem {
1
+ .container {
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -11,103 +11,83 @@
11
11
  border-radius: 16px;
12
12
  background: #f4f7fb;
13
13
  width: 100%;
14
+ min-height: 48px;
14
15
  }
15
16
 
16
- @media (max-width: 767px) {
17
- .selectableListItem {
18
- padding: 12px 16px;
19
- }
20
-
21
- .selectableListItemIcon {
22
- display: none;
23
- }
24
- }
25
-
26
- @media (max-width: 575px) {
27
- .selectableListItem {
28
- flex-direction: column;
29
- align-items: flex-start;
30
- padding: 12px;
31
- }
32
-
33
- .selectableListItemLabel {
34
- margin-bottom: 8px;
35
- }
36
-
37
- .selectableListItemColumnsWrapper {
38
- flex-direction: row;
39
- align-items: center;
40
- }
41
- }
42
-
43
- @media (max-width: 413px) {
44
- .selectableListItemColumnsWrapper {
45
- flex-direction: column;
46
- align-items: flex-start;
47
- }
17
+ .withIcon {
18
+ flex-direction: row !important;
48
19
  }
49
20
 
50
- .selectableListItem:hover {
21
+ .container:hover {
51
22
  background-color: #e6edf5;
52
23
  }
53
24
 
54
- .selectableListItemActive {
25
+ .active {
55
26
  background: #e6edf5;
56
27
  outline: 1px solid #728ea7;
57
28
  }
58
29
 
59
- .selectableListItemIcon {
30
+ .iconContainer {
60
31
  display: flex;
61
32
  align-items: center;
62
33
  justify-content: center;
63
34
  border-radius: 50%;
64
- background: #fff;
35
+ background: #ffffff;
65
36
  width: 24px;
66
37
  min-width: 25px;
67
38
  height: 24px;
68
39
  border: 1px solid #d1dce7;
69
40
  }
70
41
 
71
- @media (max-width: 767px) {
72
- .selectableListItemIcon {
73
- display: none;
74
- }
42
+ .activeIcon {
43
+ color: rgb(37, 190, 235);
44
+ font-size: 22px;
45
+ font-weight: 600;
46
+ width: 40px;
75
47
  }
76
48
 
77
- .selectableListItemActive .selectableListItemIcon {
78
- padding: 3px;
79
- border: 1px solid #d1dce7;
49
+ .iconWrapper {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
80
53
  }
81
54
 
82
- .selectableListItemActive .selectableListItemIconInner {
83
- width: 16px;
84
- height: 16px;
85
- border-radius: 50%;
86
- background: #25beeb;
55
+ .icon {
56
+ color: rgb(37, 190, 235);
57
+ font-size: 22px;
58
+ font-weight: 600;
59
+ width: 40px;
87
60
  }
88
61
 
89
- .selectableListItemLabel {
62
+ .content {
90
63
  flex-grow: 1;
64
+ }
65
+
66
+ .label {
91
67
  font-family: "Open Sans", sans-serif;
92
- font-size: 16px;
68
+
93
69
  font-style: normal;
94
- line-height: 1.2;
70
+ font-weight: 600;
95
71
  display: -webkit-box;
96
72
  -webkit-box-orient: vertical;
97
73
  -webkit-line-clamp: 3;
98
74
  overflow: hidden;
99
75
  text-overflow: ellipsis;
100
- max-height: calc(16px * 1.2 * 3);
76
+ max-height: calc(16px * 1.3 * 3);
101
77
  text-align: left;
78
+ font-size: 16px;
79
+ font-style: normal;
80
+ text-align: start;
81
+ line-height: normal;
102
82
  }
103
83
 
104
- .selectableListItemColumnsWrapper {
84
+ .columnsWrapper {
105
85
  display: flex;
106
86
  gap: 12px;
107
87
  }
108
88
 
109
- .selectableListItemColumn2,
110
- .selectableListItemColumn3 {
89
+ .duration,
90
+ .price {
111
91
  flex-shrink: 0;
112
92
  text-align: right;
113
93
  font-family: "Open Sans", sans-serif;
@@ -119,25 +99,59 @@
119
99
  text-overflow: ellipsis;
120
100
  }
121
101
 
122
- .selectableListItemColumn2 {
102
+ .duration {
123
103
  color: var(--mid-grey, #728ea7);
124
104
  width: 80px;
125
105
  }
126
106
 
107
+ .price {
108
+ color: var(--noir, #171e25);
109
+ font-weight: 700;
110
+ width: 80px;
111
+ }
112
+
113
+ @media (max-width: 767px) {
114
+ .container {
115
+ padding: 12px 16px;
116
+ }
117
+
118
+ .iconContainer {
119
+ display: none;
120
+ }
121
+ }
122
+
127
123
  @media (max-width: 575px) {
128
- .selectableListItemColumn2 {
129
- text-align: left;
124
+ .container:not(.withIcon) {
125
+ flex-direction: column;
126
+ align-items: flex-start;
127
+ padding: 12px;
128
+ }
129
+
130
+ .container:not(.withIcon) .label {
131
+ margin-bottom: 8px;
132
+ }
133
+
134
+ .container:not(.withIcon) .columnsWrapper {
135
+ flex-direction: row;
136
+ align-items: center;
137
+ justify-content: space-between;
138
+ width: 100%;
130
139
  }
131
140
  }
132
141
 
133
- .selectableListItemColumn3 {
134
- color: var(--noir, #171e25);
135
- font-weight: 700;
136
- width: 80px;
142
+ @media (max-width: 575px) {
143
+ .duration {
144
+ text-align: left;
145
+ }
137
146
  }
138
147
 
139
148
  @media (max-width: 413px) {
140
- .selectableListItemColumn3 {
149
+ .columnsWrapper {
150
+ flex-direction: column;
151
+ align-items: flex-start;
152
+ }
153
+
154
+ .price {
141
155
  text-align: left;
142
156
  }
143
157
  }
@@ -10,9 +10,10 @@ declare namespace _default {
10
10
  export let excludeStories: RegExp;
11
11
  export namespace args {
12
12
  let label: string;
13
- let column2: string;
14
- let column3: string;
13
+ let duration: string;
14
+ let price: string;
15
15
  let isActive: boolean;
16
+ let icon: string;
16
17
  }
17
18
  export namespace parameters {
18
19
  namespace backgrounds {
@@ -20,7 +20,7 @@ export default {
20
20
  component: SelectableListItem,
21
21
  tags: ["autodocs"],
22
22
  excludeStories: /.*Data$/,
23
- args: __assign(__assign({}, ActionsData), { label: "Consultation juridique personnalisée visant à analyser votre situation et à vous fournir des conseils adaptés à vos besoins. Cette prestation inclut l'étude des documents pertinents, une évaluation des solutions juridiques envisageables, et des recommandations pour défendre efficacement vos intérêts.", column2: "(35 min)", column3: "100 €", isActive: false }),
23
+ args: __assign(__assign({}, ActionsData), { label: "Consultation juridique personnalisée visant à analyser votre situation et à vous fournir des conseils adaptés à vos besoins. Cette prestation inclut l'étude des documents pertinents, une évaluation des solutions juridiques envisageables, et des recommandations pour défendre efficacement vos intérêts.", duration: "(35 min)", price: "100 €", isActive: false, icon: "allaw-icon-visio" }),
24
24
  parameters: {
25
25
  backgrounds: {
26
26
  default: "light",
@@ -46,7 +46,8 @@ export var Default = Template.bind({});
46
46
  export var Active = Template.bind({});
47
47
  Active.args = {
48
48
  label: "Adoption",
49
- column2: "(35 min)",
50
- column3: "100 €",
49
+ duration: "(35 min)",
50
+ price: "100 €",
51
51
  isActive: true,
52
+ icon: "allaw-icon-visio",
52
53
  };
@@ -17,8 +17,7 @@ li {
17
17
  @font-face {
18
18
  font-family: "allaw-font";
19
19
  src: url("../assets/allaw-font.eot");
20
- src:
21
- url("../assets/allaw-font.eot?#iefix") format("embedded-opentype"),
20
+ src: url("../assets/allaw-font.eot?#iefix") format("embedded-opentype"),
22
21
  url("../assets/allaw-font.ttf") format("truetype"),
23
22
  url("../assets/allaw-font.woff") format("woff"),
24
23
  url("../assets/allaw-font.svg#allaw-font") format("svg");
@@ -46,315 +45,225 @@ li {
46
45
  .allaw-icon-cam:before {
47
46
  content: "\e942";
48
47
  }
49
-
50
- .allaw-icon-cam-outline:before {
48
+ .allaw-icon-camOutline:before {
51
49
  content: "\e944";
52
50
  }
53
-
54
- .allaw-icon-hung-up:before {
55
- content: "\e944";
51
+ .allaw-icon-hungUp:before {
52
+ content: "\e945";
56
53
  }
57
-
58
54
  .allaw-icon-mic:before {
59
55
  content: "\e946";
60
56
  }
61
-
62
- .allaw-icon-mic-outline:before {
57
+ .allaw-icon-micOutline:before {
63
58
  content: "\e947";
64
59
  }
65
-
66
- .allaw-icon-presentation:before {
60
+ .allaw-icon-presIcon:before {
67
61
  content: "\e948";
68
62
  }
69
-
70
- .allaw-icon-presentation-outline:before {
63
+ .allaw-icon-presIconOutline:before {
71
64
  content: "\e949";
72
65
  }
73
-
66
+ .allaw-icon-visio:before {
67
+ content: "\e943";
68
+ }
74
69
  .allaw-icon-verified:before {
75
70
  content: "\e90a";
76
71
  }
77
-
78
72
  .allaw-icon-logo:before {
79
73
  content: "\e941";
80
74
  }
81
-
82
75
  .allaw-icon-document:before {
83
76
  content: "\e915";
84
77
  }
85
-
86
78
  .allaw-icon-export:before {
87
79
  content: "\e916";
88
80
  }
89
-
90
- .allaw-icon-visio:before {
91
- content: "\e943";
92
- }
93
-
94
- .allaw-icon-cam-off:before {
95
- content: "\e946";
96
- }
97
-
98
- .allaw-icon-hung-up:before {
99
- content: "\e945";
100
- }
101
-
102
- .allaw-icon-mic-off:before {
103
- content: "\e944";
104
- }
105
-
106
81
  .allaw-icon-eye-off:before {
107
82
  content: "\e917";
108
83
  }
109
-
110
- .allaw-icon-visio::before {
111
- content: "\e942";
112
- }
113
-
114
84
  .allaw-icon-arrow-up:before {
115
85
  content: "\e918";
116
86
  }
117
-
118
87
  .allaw-icon-file-not-found:before {
119
88
  content: "\e919";
120
89
  }
121
-
122
90
  .allaw-icon-arrow-left:before {
123
91
  content: "\e91a";
124
92
  }
125
-
126
93
  .allaw-icon-file:before {
127
94
  content: "\e91b";
128
95
  }
129
-
130
96
  .allaw-icon-archive:before {
131
97
  content: "\e91c";
132
98
  }
133
-
134
99
  .allaw-icon-arrow-right:before {
135
100
  content: "\e91d";
136
101
  }
137
-
138
102
  .allaw-icon-arrow-up-right:before {
139
103
  content: "\e91e";
140
104
  }
141
-
142
105
  .allaw-icon-calendar:before {
143
106
  content: "\e91f";
144
107
  }
145
-
146
108
  .allaw-icon-carefull:before {
147
109
  content: "\e920";
148
110
  }
149
-
150
111
  .allaw-icon-check-circle:before {
151
112
  content: "\e921";
152
113
  }
153
-
154
114
  .allaw-icon-check:before {
155
115
  content: "\e922";
156
116
  }
157
-
158
117
  .allaw-icon-chevron-down:before {
159
118
  content: "\e923";
160
119
  }
161
-
162
120
  .allaw-icon-chevron-left:before {
163
121
  content: "\e924";
164
122
  }
165
-
166
123
  .allaw-icon-chevron-right:before {
167
124
  content: "\e925";
168
125
  }
169
-
170
126
  .allaw-icon-chevron-up:before {
171
127
  content: "\e926";
172
128
  }
173
-
174
129
  .allaw-icon-deconnexion:before {
175
130
  content: "\e927";
176
131
  }
177
-
178
132
  .allaw-icon-download:before {
179
133
  content: "\e928";
180
134
  }
181
-
182
135
  .allaw-icon-edit-2:before {
183
136
  content: "\e929";
184
137
  }
185
-
186
138
  .allaw-icon-edit-3:before {
187
139
  content: "\e92a";
188
140
  }
189
-
190
141
  .allaw-icon-encrypted-file:before {
191
142
  content: "\e92b";
192
143
  }
193
-
194
144
  .allaw-icon-external-link:before {
195
145
  content: "\e92c";
196
146
  }
197
-
198
147
  .allaw-icon-eye:before {
199
148
  content: "\e92d";
200
149
  }
201
-
202
150
  .allaw-icon-folder:before {
203
151
  content: "\e92e";
204
152
  }
205
-
206
153
  .allaw-icon-grid:before {
207
154
  content: "\e92f";
208
155
  }
209
-
210
156
  .allaw-icon-help-circle:before {
211
157
  content: "\e930";
212
158
  }
213
-
214
159
  .allaw-icon-home:before {
215
160
  content: "\e931";
216
161
  }
217
-
218
162
  .allaw-icon-inbox:before {
219
163
  content: "\e932";
220
164
  }
221
-
222
165
  .allaw-icon-info:before {
223
166
  content: "\e933";
224
167
  }
225
-
226
168
  .allaw-icon-link-off:before {
227
169
  content: "\e934";
228
170
  }
229
-
230
171
  .allaw-icon-link:before {
231
172
  content: "\e935";
232
173
  }
233
-
234
174
  .allaw-icon-loader:before {
235
175
  content: "\e936";
236
176
  }
237
-
238
177
  .allaw-icon-lock:before {
239
178
  content: "\e937";
240
179
  }
241
-
242
180
  .allaw-icon-map-pin:before {
243
181
  content: "\e938";
244
182
  }
245
-
246
183
  .allaw-icon-map:before {
247
184
  content: "\e939";
248
185
  }
249
-
250
186
  .allaw-icon-more-vertical:before {
251
187
  content: "\e93a";
252
188
  }
253
-
254
189
  .allaw-icon-play-circle:before {
255
190
  content: "\e93b";
256
191
  }
257
-
258
192
  .allaw-icon-refresh-cw:before {
259
193
  content: "\e93c";
260
194
  }
261
-
262
195
  .allaw-icon-rss:before {
263
196
  content: "\e93d";
264
197
  }
265
-
266
198
  .allaw-icon-search:before {
267
199
  content: "\e93e";
268
200
  }
269
-
270
201
  .allaw-icon-settings:before {
271
202
  content: "\e93f";
272
203
  }
273
-
274
204
  .allaw-icon-share:before {
275
205
  content: "\e940";
276
206
  }
277
-
278
207
  .allaw-icon-contact-support:before {
279
208
  content: "\e900";
280
209
  }
281
-
282
210
  .allaw-icon-phone:before {
283
211
  content: "\e901";
284
212
  }
285
-
286
213
  .allaw-icon-user:before {
287
214
  content: "\e902";
288
215
  }
289
-
290
216
  .allaw-icon-users:before {
291
217
  content: "\e903";
292
218
  }
293
-
294
219
  .allaw-icon-add:before {
295
220
  content: "\e904";
296
221
  }
297
-
298
222
  .allaw-icon-warning:before {
299
223
  content: "\e905";
300
224
  }
301
-
302
225
  .allaw-icon-website:before {
303
226
  content: "\e906";
304
227
  }
305
-
306
228
  .allaw-icon-close:before {
307
229
  content: "\e907";
308
230
  }
309
-
310
231
  .allaw-icon-carefull1:before {
311
232
  content: "\e908";
312
233
  }
313
-
314
234
  .allaw-icon-loading:before {
315
235
  content: "\e909";
316
236
  }
317
-
318
237
  .allaw-icon-near-me:before {
319
238
  content: "\e90b";
320
239
  }
321
-
322
240
  .allaw-icon-filter:before {
323
241
  content: "\e90c";
324
242
  }
325
-
326
243
  .allaw-icon-clock:before {
327
244
  content: "\e90d";
328
245
  }
329
-
330
246
  .allaw-icon-pmr:before {
331
247
  content: "\e90e";
332
248
  }
333
-
334
249
  .allaw-icon-prestation:before {
335
250
  content: "\e90f";
336
251
  }
337
-
338
252
  .allaw-icon-mail:before {
339
253
  content: "\e910";
340
254
  }
341
-
342
255
  .allaw-icon-upload-file:before {
343
256
  content: "\e911";
344
257
  }
345
-
346
258
  .allaw-icon-burger:before {
347
259
  content: "\e912";
348
260
  }
349
-
350
261
  .allaw-icon-star-fill:before {
351
262
  content: "\e913";
352
263
  }
353
-
354
264
  .allaw-icon-star-unfill:before {
355
265
  content: "\e914";
356
266
  }
357
-
358
267
  .allaw-icon-google .path1:before {
359
268
  content: "\e94a";
360
269
  color: rgb(66, 133, 244);
@@ -374,15 +283,75 @@ li {
374
283
  margin-left: -1em;
375
284
  color: rgb(235, 67, 53);
376
285
  }
377
-
378
286
  .allaw-icon-apple:before {
379
287
  content: "\e94e";
380
288
  }
381
-
382
- .allaw-icon-linkedin:before {
383
- content: "\e94e";
384
- }
385
-
386
289
  .allaw-icon-linkedin:before {
387
290
  content: "\e94f";
388
291
  }
292
+ .allaw-icon-microsoft-outlook:before {
293
+ content: "\e950";
294
+ color: #0072c6;
295
+ }
296
+ .allaw-icon-google-calendar .path1:before {
297
+ content: "\e951";
298
+ color: rgb(255, 255, 255);
299
+ }
300
+ .allaw-icon-google-calendar .path2:before {
301
+ content: "\e952";
302
+ margin-left: -1em;
303
+ color: rgb(66, 133, 244);
304
+ }
305
+ .allaw-icon-google-calendar .path3:before {
306
+ content: "\e954";
307
+ margin-left: -1em;
308
+ color: rgb(25, 103, 210);
309
+ }
310
+ .allaw-icon-google-calendar .path4:before {
311
+ content: "\e955";
312
+ margin-left: -1em;
313
+ color: rgb(251, 188, 4);
314
+ }
315
+ .allaw-icon-google-calendar .path5:before {
316
+ content: "\e956";
317
+ margin-left: -1em;
318
+ color: rgb(24, 128, 56);
319
+ }
320
+ .allaw-icon-google-calendar .path6:before {
321
+ content: "\e957";
322
+ margin-left: -1em;
323
+ color: rgb(52, 168, 83);
324
+ }
325
+ .allaw-icon-google-calendar .path7:before {
326
+ content: "\e958";
327
+ margin-left: -1em;
328
+ color: rgb(234, 67, 53);
329
+ }
330
+ .allaw-icon-google-calendar .path8:before {
331
+ content: "\e959";
332
+ margin-left: -1em;
333
+ color: none;
334
+ }
335
+ .allaw-icon-microsoft .path1:before {
336
+ content: "\e95a";
337
+ color: rgb(242, 80, 34);
338
+ }
339
+ .allaw-icon-microsoft .path2:before {
340
+ content: "\e95b";
341
+ margin-left: -1em;
342
+ color: rgb(0, 164, 239);
343
+ }
344
+ .allaw-icon-microsoft .path3:before {
345
+ content: "\e95c";
346
+ margin-left: -1em;
347
+ color: rgb(127, 186, 0);
348
+ }
349
+ .allaw-icon-microsoft .path4:before {
350
+ content: "\e95d";
351
+ margin-left: -1em;
352
+ color: rgb(255, 185, 0);
353
+ }
354
+ .allaw-icon-microsoftoutlook:before {
355
+ content: "\e953";
356
+ color: #0072c6;
357
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",