allaw-ui 1.1.1 → 2.0.0

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.
Files changed (222) hide show
  1. package/dist/assets/allaw-font.eot +0 -0
  2. package/dist/assets/allaw-font.svg +15 -0
  3. package/dist/assets/allaw-font.ttf +0 -0
  4. package/dist/assets/allaw-font.woff +0 -0
  5. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
  6. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
  7. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
  8. package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
  9. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
  10. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
  11. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
  12. package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
  13. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
  14. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
  15. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
  16. package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
  17. package/dist/components/atoms/buttons/IconButton.js +2 -2
  18. package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
  19. package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
  20. package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
  21. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +2 -2
  22. package/dist/components/atoms/buttons/OAuthProviderButton.js +43 -10
  23. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
  24. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
  25. package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -1
  26. package/dist/components/atoms/buttons/PendingDocuments.js +6 -4
  27. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
  28. package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
  29. package/dist/components/atoms/buttons/PrimaryButton.css +1 -0
  30. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
  31. package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
  32. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
  33. package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
  34. package/dist/components/atoms/buttons/TabNavigation.css +2 -0
  35. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
  36. package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
  37. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
  38. package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
  39. package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
  40. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
  41. package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
  42. package/dist/components/atoms/datepickers/Datepicker.js +1 -0
  43. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
  44. package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
  45. package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
  46. package/dist/components/atoms/filter/Filter.stories.js +77 -0
  47. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
  48. package/dist/components/atoms/filters/SingleFilter.stories.js +34 -0
  49. package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
  50. package/dist/components/atoms/inputs/Input.stories.js +101 -0
  51. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
  52. package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
  53. package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
  54. package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
  55. package/dist/components/atoms/progressBars/ProgressBar.css +2 -3
  56. package/dist/components/atoms/progressBars/ProgressBar.js +2 -3
  57. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
  58. package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
  59. package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
  60. package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
  61. package/dist/components/atoms/selects/ComboBox.css +1 -1
  62. package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
  63. package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
  64. package/dist/components/atoms/selects/Select.d.ts +0 -1
  65. package/dist/components/atoms/selects/Select.js +47 -20
  66. package/dist/components/atoms/selects/{Select.css → Select.module.css} +12 -13
  67. package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
  68. package/dist/components/atoms/selects/Select.stories.js +154 -0
  69. package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
  70. package/dist/components/atoms/selects/SelectableListItem.js +18 -0
  71. package/dist/components/atoms/selects/SelectableListItem.module.css +157 -0
  72. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
  73. package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
  74. package/dist/components/atoms/selects/index.d.ts +2 -0
  75. package/dist/components/atoms/selects/index.js +1 -0
  76. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
  77. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
  78. package/dist/components/atoms/tags/FolderStatusTag.css +4 -4
  79. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
  80. package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
  81. package/dist/components/atoms/tags/OtherStatusTag.css +20 -1
  82. package/dist/components/atoms/tags/OtherStatusTag.d.ts +1 -0
  83. package/dist/components/atoms/tags/OtherStatusTag.js +2 -2
  84. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
  85. package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
  86. package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
  87. package/dist/components/atoms/typography/CardDate.stories.js +103 -0
  88. package/dist/components/atoms/typography/Heading.js +1 -1
  89. package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
  90. package/dist/components/atoms/typography/Heading.stories.js +90 -0
  91. package/dist/components/atoms/typography/Link.d.ts +13 -0
  92. package/dist/components/atoms/typography/Link.js +35 -0
  93. package/dist/components/atoms/typography/Link.module.css +60 -0
  94. package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
  95. package/dist/components/atoms/typography/Link.stories.js +105 -0
  96. package/dist/components/atoms/typography/Paragraph.d.ts +2 -0
  97. package/dist/components/atoms/typography/Paragraph.js +3 -3
  98. package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
  99. package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
  100. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
  101. package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
  102. package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
  103. package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
  104. package/dist/components/atoms/typography/TinyInfo.d.ts +1 -0
  105. package/dist/components/atoms/typography/TinyInfo.js +2 -2
  106. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
  107. package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
  108. package/dist/components/atoms/typography/index.d.ts +2 -0
  109. package/dist/components/atoms/typography/index.js +1 -0
  110. package/dist/components/atoms/uiVariables/AnimatedBorder.css +55 -0
  111. package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
  112. package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
  113. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
  114. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
  115. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
  116. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
  117. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
  118. package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
  119. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
  120. package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
  121. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
  122. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
  123. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
  124. package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -0
  125. package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
  126. package/dist/components/molecules/blogCard/BlogCard.js +33 -0
  127. package/dist/components/molecules/blogCard/BlogCard.module.css +148 -0
  128. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
  129. package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
  130. package/dist/components/molecules/blogCard/index.d.ts +2 -0
  131. package/dist/components/molecules/blogCard/index.js +1 -0
  132. package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
  133. package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
  134. package/dist/components/molecules/blogFooter/BlogFooter.module.css +48 -0
  135. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
  136. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
  137. package/dist/components/molecules/blogFooter/index.d.ts +2 -0
  138. package/dist/components/molecules/blogFooter/index.js +1 -0
  139. package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
  140. package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
  141. package/dist/components/molecules/blogHeader/BlogHeader.module.css +150 -0
  142. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
  143. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
  144. package/dist/components/molecules/blogHeader/index.d.ts +2 -0
  145. package/dist/components/molecules/blogHeader/index.js +1 -0
  146. package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
  147. package/dist/components/molecules/blogText/BlogText.js +11 -0
  148. package/dist/components/molecules/blogText/BlogText.module.css +59 -0
  149. package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
  150. package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
  151. package/dist/components/molecules/blogText/index.d.ts +2 -0
  152. package/dist/components/molecules/blogText/index.js +1 -0
  153. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
  154. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
  155. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.module.css +108 -0
  156. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
  157. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
  158. package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
  159. package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
  160. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
  161. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
  162. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
  163. package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
  164. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +2 -1
  165. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
  166. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
  167. package/dist/components/molecules/caseCardCompact/caseCardCompact.css +5 -2
  168. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
  169. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
  170. package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +2 -4
  171. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +1 -0
  172. package/dist/components/molecules/checkboxForm/CheckboxForm.js +2 -2
  173. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
  174. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
  175. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
  176. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
  177. package/dist/components/molecules/contactCard/ContactCard.d.ts +3 -2
  178. package/dist/components/molecules/contactCard/ContactCard.js +25 -23
  179. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +83 -0
  180. package/dist/components/molecules/contactCard/ContactCard.stories.js +86 -0
  181. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
  182. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
  183. package/dist/components/molecules/contactCard/{ContactCard.css → contactCard.module.css} +34 -28
  184. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
  185. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
  186. package/dist/components/molecules/documentCard/DocumentCard.css +4 -1
  187. package/dist/components/molecules/documentCard/DocumentCard.d.ts +3 -2
  188. package/dist/components/molecules/documentCard/DocumentCard.js +45 -7
  189. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
  190. package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
  191. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
  192. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
  193. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
  194. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
  195. package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
  196. package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
  197. package/dist/components/molecules/proCard/ProCard.js +0 -4
  198. package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
  199. package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
  200. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
  201. package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
  202. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
  203. package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -0
  204. package/dist/components/molecules/stepper/Stepper.css +17 -4
  205. package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
  206. package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
  207. package/dist/index.d.ts +14 -1
  208. package/dist/index.js +8 -1
  209. package/dist/stories/Header.d.ts +13 -0
  210. package/dist/stories/Header.js +20 -0
  211. package/dist/stories/Header.stories.d.ts +18 -0
  212. package/dist/stories/Header.stories.js +26 -0
  213. package/dist/stories/Page.d.ts +3 -0
  214. package/dist/stories/Page.js +37 -0
  215. package/dist/stories/Page.stories.d.ts +12 -0
  216. package/dist/stories/Page.stories.js +76 -0
  217. package/dist/stories/header.css +32 -0
  218. package/dist/stories/page.css +69 -0
  219. package/dist/styles/colors.css +2 -0
  220. package/dist/styles/colors.module.css +107 -0
  221. package/dist/styles/icons.css +76 -107
  222. package/package.json +16 -14
@@ -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
+ };
@@ -7,6 +7,8 @@ export interface ParagraphProps {
7
7
  maxLines?: number;
8
8
  maxChars?: number;
9
9
  size?: "default" | "small";
10
+ className?: string;
11
+ onClick?: () => void;
10
12
  }
11
13
  declare const Paragraph: React.FC<ParagraphProps>;
12
14
  export default Paragraph;
@@ -13,7 +13,7 @@ import React from "react";
13
13
  import "./Paragraph.css";
14
14
  import { convertToHtml } from "../../../utils/utils";
15
15
  var Paragraph = 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;
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
17
  var truncateText = function (text, maxChars) {
18
18
  if (text.length <= maxChars)
19
19
  return text;
@@ -21,13 +21,13 @@ var Paragraph = function (_a) {
21
21
  };
22
22
  var htmlText = convertToHtml(text);
23
23
  var truncatedText = maxChars ? truncateText(htmlText, maxChars) : htmlText;
24
- return (React.createElement("div", { className: "paragraph ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(size === "small" ? "paragraph-small" : ""), style: __assign({ whiteSpace: "pre-line" }, (maxLines
24
+ return (React.createElement("div", { className: "paragraph ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(size === "small" ? "paragraph-small" : "", " ").concat(className || "").trim(), style: __assign({ whiteSpace: "pre-line" }, (maxLines
25
25
  ? {
26
26
  WebkitLineClamp: maxLines,
27
27
  display: "-webkit-box",
28
28
  WebkitBoxOrient: "vertical",
29
29
  overflow: "hidden",
30
30
  }
31
- : {})), dangerouslySetInnerHTML: { __html: truncatedText } }));
31
+ : {})), onClick: onClick, dangerouslySetInnerHTML: { __html: truncatedText } }));
32
32
  };
33
33
  export default Paragraph;
@@ -0,0 +1,56 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { Paragraph 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
+ import Paragraph from "./Paragraph";
@@ -0,0 +1,97 @@
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 Paragraph from "./Paragraph";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/UI-Variables/Typography/Paragraph",
17
+ component: Paragraph,
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(Paragraph, __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
+ };
@@ -0,0 +1,42 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { SmallTitle 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
+ }
26
+ export namespace parameters {
27
+ namespace backgrounds {
28
+ let _default: string;
29
+ export { _default as default };
30
+ export let values: {
31
+ name: string;
32
+ value: string;
33
+ }[];
34
+ }
35
+ }
36
+ }
37
+ export default _default;
38
+ export const Bold20: any;
39
+ export const Medium32: any;
40
+ export const SemiBold12: any;
41
+ export const Medium12: any;
42
+ import SmallTitle from "./SmallTitle";
@@ -0,0 +1,72 @@
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 SmallTitle from "./SmallTitle";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/UI-Variables/Typography/SmallTitle",
17
+ component: SmallTitle,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ variant: {
21
+ control: {
22
+ type: "select",
23
+ options: ["bold20", "medium32", "semiBold12", "medium12"],
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
+ },
36
+ parameters: {
37
+ backgrounds: {
38
+ default: "light",
39
+ values: [
40
+ { name: "light", value: "#ffffff" },
41
+ { name: "grey", value: "#728ea7" },
42
+ { name: "figma", value: "#404040" },
43
+ { name: "dark", value: "#171e25" },
44
+ ],
45
+ },
46
+ },
47
+ };
48
+ var Template = function (args) { return React.createElement(SmallTitle, __assign({}, args)); };
49
+ export var Bold20 = Template.bind({});
50
+ Bold20.args = {
51
+ variant: "bold20",
52
+ color: "noir",
53
+ text: "Open Sans - Bold - 20px",
54
+ };
55
+ export var Medium32 = Template.bind({});
56
+ Medium32.args = {
57
+ variant: "medium32",
58
+ color: "noir",
59
+ text: "Open Sans - Medium - 32px",
60
+ };
61
+ export var SemiBold12 = Template.bind({});
62
+ SemiBold12.args = {
63
+ variant: "semiBold12",
64
+ color: "noir",
65
+ text: "Open Sans - SemiBold - 12px",
66
+ };
67
+ export var Medium12 = Template.bind({});
68
+ Medium12.args = {
69
+ variant: "medium12",
70
+ color: "noir",
71
+ text: "Open Sans - Medium - 12px",
72
+ };
@@ -0,0 +1,40 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { Subtitle 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
+ }
26
+ export namespace parameters {
27
+ namespace backgrounds {
28
+ let _default: string;
29
+ export { _default as default };
30
+ export let values: {
31
+ name: string;
32
+ value: string;
33
+ }[];
34
+ }
35
+ }
36
+ }
37
+ export default _default;
38
+ export const Bold: any;
39
+ export const Medium: any;
40
+ import Subtitle from "./Subtitle";
@@ -0,0 +1,60 @@
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 Subtitle from "./Subtitle";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/UI-Variables/Typography/Subtitle",
17
+ component: Subtitle,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ variant: {
21
+ control: {
22
+ type: "select",
23
+ options: ["bold", "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
+ },
36
+ parameters: {
37
+ backgrounds: {
38
+ default: "light",
39
+ values: [
40
+ { name: "light", value: "#ffffff" },
41
+ { name: "grey", value: "#728ea7" },
42
+ { name: "figma", value: "#404040" },
43
+ { name: "dark", value: "#171e25" },
44
+ ],
45
+ },
46
+ },
47
+ };
48
+ var Template = function (args) { return React.createElement(Subtitle, __assign({}, args)); };
49
+ export var Bold = Template.bind({});
50
+ Bold.args = {
51
+ variant: "bold",
52
+ color: "noir",
53
+ text: "Open Sans - Bold - 18px",
54
+ };
55
+ export var Medium = Template.bind({});
56
+ Medium.args = {
57
+ variant: "medium",
58
+ color: "noir",
59
+ text: "Open Sans - Medium - 18px",
60
+ };
@@ -6,6 +6,7 @@ export interface TinyInfoProps {
6
6
  text: string;
7
7
  href?: string;
8
8
  className?: string;
9
+ align?: "left" | "center" | "right";
9
10
  uppercase?: boolean;
10
11
  }
11
12
  declare const TinyInfo: React.FC<TinyInfoProps>;
@@ -6,9 +6,9 @@ var toUpperCaseWithAccents = function (str) {
6
6
  });
7
7
  };
8
8
  var TinyInfo = function (_a) {
9
- var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text, href = _a.href, className = _a.className, _c = _a.uppercase, uppercase = _c === void 0 ? false : _c;
9
+ var variant = _a.variant, _b = _a.color, color = _b === void 0 ? "noir" : _b, text = _a.text, href = _a.href, className = _a.className, _c = _a.uppercase, uppercase = _c === void 0 ? false : _c, _d = _a.align, align = _d === void 0 ? "center" : _d;
10
10
  var processedText = uppercase ? toUpperCaseWithAccents(text) : text;
11
- var content = (React.createElement("span", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(className || ""), dangerouslySetInnerHTML: { __html: processedText } }));
11
+ var content = (React.createElement("span", { className: "tiny-info ".concat(variant, " ").concat(color ? "color-".concat(color) : "", " ").concat(className || ""), dangerouslySetInnerHTML: { __html: processedText }, style: { textAlign: align } }));
12
12
  return href ? (React.createElement("a", { href: href, className: "tiny-info-link ".concat(className || "") }, content)) : (content);
13
13
  };
14
14
  export default TinyInfo;