allaw-ui 1.0.167 → 1.0.170

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.
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export interface LinkProps {
3
+ variant: "bold" | "semiBold" | "medium";
4
+ color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
5
+ text: React.ReactNode;
6
+ maxLines?: number;
7
+ maxChars?: number;
8
+ size?: "default" | "small";
9
+ className?: string;
10
+ onClick?: () => void;
11
+ }
12
+ declare const Link: React.FC<LinkProps>;
13
+ export default Link;
@@ -0,0 +1,35 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from "react";
13
+ import styles from "./Link.module.css";
14
+ import { convertToHtml } from "../../../utils/utils";
15
+ var Link = function (_a) {
16
+ var variant = _a.variant, color = _a.color, text = _a.text, maxLines = _a.maxLines, maxChars = _a.maxChars, _b = _a.size, size = _b === void 0 ? "default" : _b, className = _a.className, onClick = _a.onClick;
17
+ var truncateText = function (text, maxChars) {
18
+ if (text.length <= maxChars)
19
+ return text;
20
+ return text.slice(0, maxChars) + "...";
21
+ };
22
+ var htmlText = convertToHtml(text);
23
+ var truncatedText = maxChars ? truncateText(htmlText, maxChars) : htmlText;
24
+ var isClickable = typeof onClick === "function";
25
+ var colorClassName = color ? "color-".concat(color) : "";
26
+ return (React.createElement("div", { className: "".concat(styles.link, " ").concat(styles[variant], " ").concat(size === "small" ? styles["link-small"] : "", " ").concat(className || "", " ").concat(isClickable ? styles.pointer : "", " ").concat(styles[colorClassName]), style: __assign({ whiteSpace: "pre-line" }, (maxLines
27
+ ? {
28
+ WebkitLineClamp: maxLines,
29
+ display: "-webkit-box",
30
+ WebkitBoxOrient: "vertical",
31
+ overflow: "hidden",
32
+ }
33
+ : {})), onClick: onClick, dangerouslySetInnerHTML: { __html: truncatedText } }));
34
+ };
35
+ export default Link;
@@ -0,0 +1,60 @@
1
+ @import "../../../styles/colors.module.css";
2
+
3
+ .link {
4
+ font-family: "Open Sans", sans-serif;
5
+ font-style: normal;
6
+ font-size: 1rem;
7
+ line-height: normal;
8
+ }
9
+
10
+ .link-small {
11
+ font-size: 0.875rem;
12
+ }
13
+
14
+ .link.bold {
15
+ font-weight: 700;
16
+ }
17
+
18
+ .link.semiBold {
19
+ font-weight: 600;
20
+ }
21
+
22
+ .link.medium {
23
+ font-weight: 400;
24
+ }
25
+
26
+ .link.color-bleu-allaw {
27
+ color: var(--bleu-allaw);
28
+ }
29
+
30
+ .link.color-mid-grey {
31
+ color: var(--mid-grey);
32
+ }
33
+
34
+ .link.color-dark-grey {
35
+ color: var(--dark-grey);
36
+ }
37
+
38
+ .link.color-noir {
39
+ color: var(--noir);
40
+ }
41
+
42
+ .link.color-pure-white {
43
+ color: var(--pure-white);
44
+ }
45
+
46
+ .link.color-grey-venom {
47
+ color: var(--grey-venom);
48
+ }
49
+
50
+ .link.color-venom-grey-dark {
51
+ color: var(--venom-grey-dark);
52
+ }
53
+
54
+ .pointer {
55
+ cursor: pointer;
56
+ }
57
+
58
+ .pointer:hover {
59
+ cursor: pointer;
60
+ }
@@ -0,0 +1,57 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { Link as component };
4
+ export let tags: string[];
5
+ export namespace argTypes {
6
+ namespace variant {
7
+ namespace control {
8
+ let type: string;
9
+ let options: string[];
10
+ }
11
+ }
12
+ namespace color {
13
+ export namespace control_1 {
14
+ let type_1: string;
15
+ export { type_1 as type };
16
+ let options_1: string[];
17
+ export { options_1 as options };
18
+ }
19
+ export { control_1 as control };
20
+ }
21
+ namespace text {
22
+ let control_2: string;
23
+ export { control_2 as control };
24
+ }
25
+ namespace size {
26
+ export namespace control_3 {
27
+ let type_2: string;
28
+ export { type_2 as type };
29
+ let options_2: string[];
30
+ export { options_2 as options };
31
+ }
32
+ export { control_3 as control };
33
+ }
34
+ namespace onClick {
35
+ let action: string;
36
+ }
37
+ }
38
+ export namespace parameters {
39
+ namespace backgrounds {
40
+ let _default: string;
41
+ export { _default as default };
42
+ export let values: {
43
+ name: string;
44
+ value: string;
45
+ }[];
46
+ }
47
+ }
48
+ }
49
+ export default _default;
50
+ export const Bold: any;
51
+ export const SemiBold: any;
52
+ export const Medium: any;
53
+ export const BoldSmall: any;
54
+ export const SemiBoldSmall: any;
55
+ export const MediumSmall: any;
56
+ export const ClickableLink: any;
57
+ import Link from "./Link";
@@ -0,0 +1,105 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React from "react";
13
+ import Link from "./Link";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/UI-Variables/Typography/Link",
17
+ component: Link,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ variant: {
21
+ control: {
22
+ type: "select",
23
+ options: ["bold", "semiBold", "medium"],
24
+ },
25
+ },
26
+ color: {
27
+ control: {
28
+ type: "select",
29
+ options: ["bleu-allaw", "mid-grey", "dark-grey", "noir", "pure-white"],
30
+ },
31
+ },
32
+ text: {
33
+ control: "text",
34
+ },
35
+ size: {
36
+ control: {
37
+ type: "select",
38
+ options: ["default", "small"],
39
+ },
40
+ },
41
+ onClick: { action: "clicked" },
42
+ },
43
+ parameters: {
44
+ backgrounds: {
45
+ default: "light",
46
+ values: [
47
+ { name: "light", value: "#ffffff" },
48
+ { name: "grey", value: "#728ea7" },
49
+ { name: "figma", value: "#404040" },
50
+ { name: "dark", value: "#171e25" },
51
+ ],
52
+ },
53
+ },
54
+ };
55
+ var Template = function (args) { return React.createElement(Link, __assign({}, args)); };
56
+ export var Bold = Template.bind({});
57
+ Bold.args = {
58
+ variant: "bold",
59
+ color: "noir",
60
+ text: "Open Sans - Bold - 16px",
61
+ size: "default",
62
+ };
63
+ export var SemiBold = Template.bind({});
64
+ SemiBold.args = {
65
+ variant: "semiBold",
66
+ color: "noir",
67
+ text: "Open Sans - SemiBold - 16px",
68
+ size: "default",
69
+ };
70
+ export var Medium = Template.bind({});
71
+ Medium.args = {
72
+ variant: "medium",
73
+ color: "noir",
74
+ text: "Open Sans - Medium - 16px",
75
+ size: "default",
76
+ };
77
+ export var BoldSmall = Template.bind({});
78
+ BoldSmall.args = {
79
+ variant: "bold",
80
+ color: "noir",
81
+ text: "Open Sans - Bold - 12px",
82
+ size: "small",
83
+ };
84
+ export var SemiBoldSmall = Template.bind({});
85
+ SemiBoldSmall.args = {
86
+ variant: "semiBold",
87
+ color: "noir",
88
+ text: "Open Sans - SemiBold - 12px",
89
+ size: "small",
90
+ };
91
+ export var MediumSmall = Template.bind({});
92
+ MediumSmall.args = {
93
+ variant: "medium",
94
+ color: "noir",
95
+ text: "Open Sans - Medium - 12px",
96
+ size: "small",
97
+ };
98
+ export var ClickableLink = Template.bind({});
99
+ ClickableLink.args = {
100
+ variant: "semiBold",
101
+ color: "bleu-allaw",
102
+ text: "Cliquez sur moi",
103
+ size: "small",
104
+ onClick: function () { return console.log("Linke cliqué"); },
105
+ };
@@ -1,10 +1,12 @@
1
1
  export { default as Heading } from "./Heading";
2
2
  export { default as Paragraph } from "./Paragraph";
3
+ export { default as Link } from "./Link";
3
4
  export { default as SmallTitle } from "./SmallTitle";
4
5
  export { default as Subtitle } from "./Subtitle";
5
6
  export { default as TinyInfo } from "./TinyInfo";
6
7
  export type { HeadingProps } from "./Heading";
7
8
  export type { ParagraphProps } from "./Paragraph";
9
+ export type { LinkProps } from "./Link";
8
10
  export type { SmallTitleProps } from "./SmallTitle";
9
11
  export type { SubtitleProps } from "./Subtitle";
10
12
  export type { TinyInfoProps } from "./TinyInfo";
@@ -1,5 +1,6 @@
1
1
  export { default as Heading } from "./Heading";
2
2
  export { default as Paragraph } from "./Paragraph";
3
+ export { default as Link } from "./Link";
3
4
  export { default as SmallTitle } from "./SmallTitle";
4
5
  export { default as Subtitle } from "./Subtitle";
5
6
  export { default as TinyInfo } from "./TinyInfo";
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import "./ContactCard.css";
3
2
  export interface ContactCardProps {
4
3
  name: string;
5
4
  status: string;
@@ -10,6 +9,7 @@ export interface ContactCardProps {
10
9
  onClick?: () => void;
11
10
  gender: "male" | "female";
12
11
  actionIconName?: string;
12
+ clientLabel?: string;
13
13
  }
14
14
  declare const ContactCard: React.FC<ContactCardProps>;
15
15
  export default ContactCard;
@@ -1,33 +1,33 @@
1
1
  import React from "react";
2
- import "./ContactCard.css";
2
+ import styles from "./contactCard.module.css";
3
3
  import OtherStatusTag from "../../atoms/tags/OtherStatusTag";
4
4
  import IconButton from "../../atoms/buttons/IconButton";
5
5
  import Link from "next/link";
6
6
  var ContactCard = function (_a) {
7
- var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, onClick = _a.onClick, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b;
7
+ var name = _a.name, status = _a.status, phone = _a.phone, email = _a.email, isEditable = _a.isEditable, onEdit = _a.onEdit, onClick = _a.onClick, gender = _a.gender, _b = _a.actionIconName, actionIconName = _b === void 0 ? "allaw-icon-edit-2" : _b, clientLabel = _a.clientLabel;
8
8
  var isPhoneEmpty = !phone || phone.trim() === "";
9
9
  var isEmailEmpty = !email || email.trim() === "";
10
- return (React.createElement("div", { className: "contact-card", onClick: function () { return onClick && onClick(); }, style: { cursor: "pointer" } },
11
- React.createElement("div", { className: "content-container" },
12
- React.createElement("div", { className: "name-tag-container" },
13
- React.createElement("h3", { className: "contact-name" }, name),
10
+ var defaultClientLabel = gender === "male" ? "Client" : "Cliente";
11
+ var displayClientLabel = clientLabel || "".concat(defaultClientLabel, " de l'\u00E9tude");
12
+ return (React.createElement("div", { className: styles.contactCard, onClick: function () { return onClick && onClick(); }, style: { cursor: "pointer" } },
13
+ React.createElement("div", { className: styles.contentContainer },
14
+ React.createElement("div", { className: styles.nameTagContainer },
15
+ React.createElement("h3", { className: styles.contactName }, name),
14
16
  React.createElement(OtherStatusTag, { label: status, type: "readonly" })),
15
- React.createElement("div", { className: "info-container" },
16
- React.createElement("div", { className: "info-item" },
17
- React.createElement("i", { className: "allaw-icon-user info-icon" }),
18
- React.createElement("span", { className: "info-text" },
19
- gender === "male" ? "Client" : "Cliente",
20
- " de l'\u00E9tude")),
21
- React.createElement("div", { className: "telephone-email-items" },
22
- React.createElement("div", { className: "info-item" },
23
- React.createElement("i", { className: "allaw-icon-phone info-icon ".concat(isPhoneEmpty ? "info-icon-disabled" : "") }),
24
- React.createElement("span", { className: "info-text contact ".concat(isPhoneEmpty ? "empty-field" : "") }, isPhoneEmpty ? "Non renseigné" : React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "tel:".concat(phone) }, phone))),
25
- React.createElement("div", { className: "info-item" },
26
- React.createElement("i", { className: "allaw-icon-mail info-icon ".concat(isEmailEmpty ? "info-icon-disabled" : "") }),
27
- React.createElement("span", { className: "info-text contact ".concat(isEmailEmpty ? "empty-field" : "") }, isEmailEmpty ? "Non renseigné" : React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "mailTo:".concat(email) }, email)))))),
28
- isEditable && (React.createElement("div", { className: "action-button-container" },
17
+ React.createElement("div", { className: styles.infoContainer },
18
+ React.createElement("div", { className: styles.infoItem },
19
+ React.createElement("i", { className: "allaw-icon-user ".concat(styles.infoIcon) }),
20
+ React.createElement("span", { className: styles.infoText }, displayClientLabel)),
21
+ React.createElement("div", { className: styles.telephoneEmailItems },
22
+ React.createElement("div", { className: styles.infoItem },
23
+ React.createElement("i", { className: "allaw-icon-phone ".concat(styles.infoIcon, " ").concat(isPhoneEmpty ? styles.infoIconDisabled : "") }),
24
+ React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isPhoneEmpty ? styles.emptyField : "") }, isPhoneEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "tel:".concat(phone) }, phone)))),
25
+ React.createElement("div", { className: styles.infoItem },
26
+ React.createElement("i", { className: "allaw-icon-mail ".concat(styles.infoIcon, " ").concat(isEmailEmpty ? styles.infoIconDisabled : "") }),
27
+ React.createElement("span", { className: "".concat(styles.infoText, " ").concat(styles.contact, " ").concat(isEmailEmpty ? styles.emptyField : "") }, isEmailEmpty ? ("Non renseigné") : (React.createElement(Link, { style: { color: "#171E25", textDecoration: "underline" }, href: "mailTo:".concat(email) }, email))))))),
28
+ isEditable && (React.createElement("div", { className: styles.actionButtonContainer },
29
29
  React.createElement(IconButton, { style: "largeFilled", iconName: actionIconName, onClick: onEdit }))),
30
- onClick && (React.createElement("div", { className: "action-button-container" },
31
- React.createElement("i", { className: "allaw-icon-arrow-right" })))));
30
+ onClick && (React.createElement("div", { className: styles.actionButtonContainer },
31
+ React.createElement("i", { className: "allaw-icon-right ".concat(styles.infoIcon) })))));
32
32
  };
33
33
  export default ContactCard;
@@ -37,6 +37,12 @@ declare namespace _default {
37
37
  export { control_6 as control };
38
38
  export let description: string;
39
39
  }
40
+ namespace clientLabel {
41
+ let control_7: string;
42
+ export { control_7 as control };
43
+ let description_1: string;
44
+ export { description_1 as description };
45
+ }
40
46
  }
41
47
  export namespace args {
42
48
  let name_1: string;
@@ -53,6 +59,8 @@ declare namespace _default {
53
59
  export { gender_1 as gender };
54
60
  let actionIconName_1: string;
55
61
  export { actionIconName_1 as actionIconName };
62
+ let clientLabel_1: string;
63
+ export { clientLabel_1 as clientLabel };
56
64
  }
57
65
  export namespace parameters {
58
66
  namespace backgrounds {
@@ -71,4 +79,5 @@ export const Editable: any;
71
79
  export const WithCustomIcon: any;
72
80
  export const EmptyFields: any;
73
81
  export const PartiallyEmpty: any;
82
+ export const CustomClientLabel: any;
74
83
  import ContactCard from "./ContactCard";
@@ -33,6 +33,10 @@ export default {
33
33
  control: "text",
34
34
  description: "Nom de l'icône pour le bouton d'action",
35
35
  },
36
+ clientLabel: {
37
+ control: "text",
38
+ description: "Texte personnalisé pour 'Client/Cliente de l'étude'",
39
+ },
36
40
  },
37
41
  args: {
38
42
  name: "Jane DOE",
@@ -42,6 +46,7 @@ export default {
42
46
  isEditable: false,
43
47
  gender: "female",
44
48
  actionIconName: "allaw-icon-edit-2",
49
+ clientLabel: "", // Valeur par défaut vide
45
50
  },
46
51
  parameters: {
47
52
  backgrounds: {
@@ -75,3 +80,7 @@ PartiallyEmpty.args = {
75
80
  phone: "06 12 34 56 78",
76
81
  email: "",
77
82
  };
83
+ export var CustomClientLabel = Template.bind({});
84
+ CustomClientLabel.args = {
85
+ clientLabel: "Utilisateur professionnel",
86
+ };
@@ -1,6 +1,6 @@
1
1
  @import "../../../styles/colors.css";
2
2
 
3
- .contact-card {
3
+ .contactCard {
4
4
  font-family: "Open Sans", sans-serif;
5
5
  border-radius: 16px;
6
6
  border: 1px solid var(--venom-grey, #e6edf5);
@@ -16,14 +16,14 @@
16
16
  background: var(--Primary-Blanc, #fff);
17
17
  }
18
18
 
19
- .content-container {
19
+ .contentContainer {
20
20
  display: flex;
21
21
  flex-direction: row;
22
22
  align-items: center;
23
23
  gap: 24px;
24
24
  }
25
25
 
26
- .name-tag-container {
26
+ .nameTagContainer {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  justify-content: center;
@@ -32,7 +32,7 @@
32
32
  padding-left: 2px;
33
33
  }
34
34
 
35
- .contact-name {
35
+ .contactName {
36
36
  color: var(--Primary-Mid-black, #171e25);
37
37
  font-family: Poppins;
38
38
  font-size: 24px;
@@ -41,7 +41,7 @@
41
41
  line-height: 24px;
42
42
  }
43
43
 
44
- .info-container {
44
+ .infoContainer {
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  align-items: flex-start;
@@ -49,13 +49,13 @@
49
49
  padding-left: 6px;
50
50
  }
51
51
 
52
- .info-item {
52
+ .infoItem {
53
53
  display: flex;
54
54
  align-items: center;
55
55
  gap: 8px;
56
56
  }
57
57
 
58
- .info-icon {
58
+ .infoIcon {
59
59
  width: 24px;
60
60
  height: 24px;
61
61
  color: #25beeb;
@@ -65,11 +65,11 @@
65
65
  align-items: center;
66
66
  }
67
67
 
68
- .info-icon-disabled {
68
+ .infoIconDisabled {
69
69
  color: var(--Tags-Mid-grey, #728ea7);
70
70
  }
71
71
 
72
- .info-text {
72
+ .infoText {
73
73
  color: var(--Primary-Mid-black, #171e25);
74
74
  font-family: "Open Sans";
75
75
  font-size: 16px;
@@ -78,12 +78,12 @@
78
78
  line-height: normal;
79
79
  }
80
80
 
81
- .info-text.contact.empty-field {
81
+ .infoText.contact.emptyField {
82
82
  color: var(--Tags-Mid-grey, #728ea7);
83
83
  font-style: italic;
84
84
  }
85
85
 
86
- .telephone-email-items {
86
+ .telephoneEmailItems {
87
87
  display: flex;
88
88
  flex-direction: row;
89
89
  justify-content: center;
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  @media (max-width: 800px) {
95
- .telephone-email-items {
95
+ .telephoneEmailItems {
96
96
  flex-direction: column;
97
97
  align-items: flex-start;
98
98
  gap: 10px;
@@ -100,16 +100,16 @@
100
100
  }
101
101
 
102
102
  @media (max-width: 600px) {
103
- .content-container {
103
+ .contentContainer {
104
104
  flex-direction: column;
105
105
  }
106
- .name-tag-container {
106
+ .nameTagContainer {
107
107
  align-items: flex-start;
108
108
  width: 100%;
109
109
  }
110
110
  }
111
111
 
112
- .action-button-container {
112
+ .actionButtonContainer {
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  justify-content: center;
@@ -119,7 +119,7 @@
119
119
  }
120
120
 
121
121
  @media (max-width: 450px) {
122
- .action-button-container {
122
+ .actionButtonContainer {
123
123
  display: block;
124
124
  position: absolute;
125
125
  top: 24px;
@@ -128,7 +128,7 @@
128
128
  }
129
129
  }
130
130
 
131
- .empty-field {
131
+ .emptyField {
132
132
  color: var(--Tags-Mid-grey, #728ea7) !important;
133
133
  font-style: italic;
134
134
  }
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export { default as FolderStatusTag } from "./components/atoms/tags/FolderStatus
33
33
  export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTag";
34
34
  export { default as Heading } from "./components/atoms/typography/Heading";
35
35
  export { default as Paragraph } from "./components/atoms/typography/Paragraph";
36
+ export { default as Link } from "./components/atoms/typography/Link";
36
37
  export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
37
38
  export { default as Subtitle } from "./components/atoms/typography/Subtitle";
38
39
  export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ export { default as OtherStatusTag } from "./components/atoms/tags/OtherStatusTa
39
39
  // Typography
40
40
  export { default as Heading } from "./components/atoms/typography/Heading";
41
41
  export { default as Paragraph } from "./components/atoms/typography/Paragraph";
42
+ export { default as Link } from "./components/atoms/typography/Link";
42
43
  export { default as SmallTitle } from "./components/atoms/typography/SmallTitle";
43
44
  export { default as Subtitle } from "./components/atoms/typography/Subtitle";
44
45
  export { default as TinyInfo } from "./components/atoms/typography/TinyInfo";
@@ -7,9 +7,9 @@ declare const meta: {
7
7
  layout: string;
8
8
  };
9
9
  args: {
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>;
10
+ onLogin: import("@vitest/spy").Mock<[], void>;
11
+ onLogout: import("@vitest/spy").Mock<[], void>;
12
+ onCreateAccount: import("@vitest/spy").Mock<[], void>;
13
13
  };
14
14
  };
15
15
  export default meta;
@@ -1,44 +1,107 @@
1
- :root {
2
- /* Primary colors */
3
- --bleu-allaw: #25beeb;
4
- --mid-grey: #728ea7;
5
- --dark-grey: #456073;
6
- --noir: #171e25;
7
- --pure-white: #ffffff;
8
-
9
- /* Greyscale */
10
- --grey-venom: #e6edf5;
11
- --venom-grey-dark: #d1dce8;
12
- --grey-light: #f6fcfe;
13
- --grey-light-2: #f2f8fc;
14
- --active-grey: #e9eef5;
15
- --blue-lightning: #f6fcfe;
16
- --fond-de-selection: #f6fcfe;
17
- --lightSteelBlue: #a2b5c8;
18
-
19
- /* Tag colors */
20
- --tag-white: #eef5fc;
21
- --green-tag-dark: #29a36a;
22
- --green-tag-light: #daf6e9;
23
- --red-tag-dark: #e15151;
24
- --red-tag-light: #fdf2f2;
25
- --blue-tag-dark: #1985e8;
26
- --blue-tag-light: #daebfb;
27
- --gris-clair: #dee8f2;
28
-
29
- /* Actions */
30
- --actions-valid: #29a36a;
31
- --actions-error: #e15151;
32
-
33
- /* Background */
34
- --background-pro: #fcfdfd;
35
- --background-usager: #ffffff;
36
- }
37
-
38
- .bgBleuAllaw {
39
- background-color: var(--bleu-allaw);
40
- }
41
-
42
- .textMidGrey {
43
- color: var(--mid-grey);
44
- }
1
+ .bgBleuAllaw {
2
+ background-color: var(--bleu-allaw);
3
+ }
4
+
5
+ .textMidGrey {
6
+ color: var(--mid-grey);
7
+ }
8
+
9
+ .bleuAllaw {
10
+ --bleu-allaw: #25beeb;
11
+ }
12
+
13
+ .midGrey {
14
+ --mid-grey: #728ea7;
15
+ }
16
+
17
+ .darkGrey {
18
+ --dark-grey: #456073;
19
+ }
20
+
21
+ .noir {
22
+ --noir: #171e25;
23
+ }
24
+
25
+ .pureWhite {
26
+ --pure-white: #ffffff;
27
+ }
28
+
29
+ .greyVenom {
30
+ --grey-venom: #e6edf5;
31
+ }
32
+
33
+ .venomGreyDark {
34
+ --venom-grey-dark: #d1dce8;
35
+ }
36
+
37
+ .greyLight {
38
+ --grey-light: #f6fcfe;
39
+ }
40
+
41
+ .greyLight2 {
42
+ --grey-light-2: #f2f8fc;
43
+ }
44
+
45
+ .activeGrey {
46
+ --active-grey: #e9eef5;
47
+ }
48
+
49
+ .blueLightning {
50
+ --blue-lightning: #f6fcfe;
51
+ }
52
+
53
+ .fondDeSelection {
54
+ --fond-de-selection: #f6fcfe;
55
+ }
56
+
57
+ .lightSteelBlue {
58
+ --lightSteelBlue: #a2b5c8;
59
+ }
60
+
61
+ .tagWhite {
62
+ --tag-white: #eef5fc;
63
+ }
64
+
65
+ .greenTagDark {
66
+ --green-tag-dark: #29a36a;
67
+ }
68
+
69
+ .greenTagLight {
70
+ --green-tag-light: #daf6e9;
71
+ }
72
+
73
+ .redTagDark {
74
+ --red-tag-dark: #e15151;
75
+ }
76
+
77
+ .redTagLight {
78
+ --red-tag-light: #fdf2f2;
79
+ }
80
+
81
+ .blueTagDark {
82
+ --blue-tag-dark: #1985e8;
83
+ }
84
+
85
+ .blueTagLight {
86
+ --blue-tag-light: #daebfb;
87
+ }
88
+
89
+ .grisClair {
90
+ --gris-clair: #dee8f2;
91
+ }
92
+
93
+ .actionsValid {
94
+ --actions-valid: #29a36a;
95
+ }
96
+
97
+ .actionsError {
98
+ --actions-error: #e15151;
99
+ }
100
+
101
+ .backgroundPro {
102
+ --background-pro: #fcfdfd;
103
+ }
104
+
105
+ .backgroundUsager {
106
+ --background-usager: #ffffff;
107
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.167",
3
+ "version": "1.0.170",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",