allaw-ui 1.1.1 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +23 -24
  179. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +68 -0
  180. package/dist/components/molecules/contactCard/ContactCard.stories.js +80 -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,154 @@
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, { useState } from "react";
13
+ import Select from "./Select";
14
+ import "../../../styles/global.css";
15
+ export var ActionsData = {};
16
+ export default {
17
+ title: "Components/Atoms/Selects/Select",
18
+ component: Select,
19
+ tags: ["autodocs"],
20
+ excludeStories: /.*Data$/,
21
+ args: __assign({}, ActionsData),
22
+ argTypes: {
23
+ items: {
24
+ control: {
25
+ type: "array",
26
+ },
27
+ },
28
+ placeholder: {
29
+ control: {
30
+ type: "text",
31
+ },
32
+ },
33
+ multiple: {
34
+ control: {
35
+ type: "boolean",
36
+ },
37
+ },
38
+ isRequired: {
39
+ control: {
40
+ type: "boolean",
41
+ },
42
+ },
43
+ selectedItem: {
44
+ control: {
45
+ type: "text",
46
+ },
47
+ },
48
+ onChange: {
49
+ table: {
50
+ disable: true,
51
+ },
52
+ },
53
+ width: {
54
+ control: {
55
+ type: "number",
56
+ min: 1,
57
+ max: 100,
58
+ },
59
+ },
60
+ },
61
+ parameters: {
62
+ backgrounds: {
63
+ default: "light",
64
+ values: [
65
+ { name: "light", value: "#ffffff" },
66
+ { name: "grey", value: "#728ea7" },
67
+ { name: "figma", value: "#404040" },
68
+ { name: "dark", value: "#171e25" },
69
+ ],
70
+ },
71
+ layout: "padded",
72
+ viewport: {
73
+ viewports: {
74
+ responsive: {
75
+ name: "Responsive",
76
+ styles: {
77
+ height: "360px", // Définition de la hauteur du viewport
78
+ },
79
+ },
80
+ },
81
+ defaultViewport: "responsive", // Définition du viewport par défaut
82
+ },
83
+ },
84
+ };
85
+ var Template = function (args) {
86
+ var _a = useState(args.selectedItem), selected = _a[0], setSelected = _a[1];
87
+ var handleChange = function (newSelected) {
88
+ setSelected(newSelected);
89
+ };
90
+ return React.createElement(Select, __assign({}, args, { selectedItem: selected, onChange: handleChange }));
91
+ };
92
+ export var Default = Template.bind({});
93
+ Default.args = {
94
+ items: [
95
+ { label: "Lundi 12 août", value: "lundi-12-aout" },
96
+ { label: "Mardi 13 août", value: "mardi-13-aout" },
97
+ { label: "Mercredi 14 août", value: "mercredi-14-aout" },
98
+ { label: "Jeudi 15 août", value: "jeudi-15-aout" },
99
+ { label: "Vendredi 16 août", value: "vendredi-16-aout" },
100
+ { label: "Samedi 17 août", value: "samedi-17-aout" },
101
+ ],
102
+ selectedItem: "",
103
+ placeholder: "Select...",
104
+ multiple: false,
105
+ isRequired: false,
106
+ width: 100,
107
+ };
108
+ export var Pressed = Template.bind({});
109
+ Pressed.args = {
110
+ items: [
111
+ { label: "Lundi 12 août", value: "lundi-12-aout" },
112
+ { label: "Mardi 13 août", value: "mardi-13-aout" },
113
+ { label: "Mercredi 14 août", value: "mercredi-14-aout" },
114
+ { label: "Jeudi 15 août", value: "jeudi-15-aout" },
115
+ { label: "Vendredi 16 août", value: "vendredi-16-aout" },
116
+ { label: "Samedi 17 août", value: "samedi-17-aout" },
117
+ ],
118
+ selectedItem: "lundi-12-aout",
119
+ placeholder: "Select...",
120
+ multiple: false,
121
+ isRequired: false,
122
+ };
123
+ export var Multiple = Template.bind({});
124
+ Multiple.args = {
125
+ items: [
126
+ { label: "Lundi 12 août", value: "lundi-12-aout" },
127
+ { label: "Mardi 13 août", value: "mardi-13-aout" },
128
+ { label: "Mercredi 14 août", value: "mercredi-14-aout" },
129
+ { label: "Jeudi 15 août", value: "jeudi-15-aout" },
130
+ { label: "Vendredi 16 août", value: "vendredi-16-aout" },
131
+ { label: "Samedi 17 août", value: "samedi-17-aout" },
132
+ ],
133
+ selectedItem: [],
134
+ placeholder: "Select...",
135
+ multiple: true,
136
+ isRequired: false,
137
+ };
138
+ export var Required = Template.bind({});
139
+ Required.args = {
140
+ items: [
141
+ { label: "Lundi 12 août", value: "lundi-12-aout" },
142
+ { label: "Mardi 13 août", value: "mardi-13-aout" },
143
+ { label: "Mercredi 14 août", value: "mercredi-14-aout" },
144
+ { label: "Jeudi 15 août", value: "jeudi-15-aout" },
145
+ { label: "Vendredi 16 août", value: "vendredi-16-aout" },
146
+ { label: "Samedi 17 août", value: "samedi-17-aout" },
147
+ ],
148
+ selectedItem: "",
149
+ placeholder: "Select...",
150
+ multiple: false,
151
+ isRequired: true,
152
+ };
153
+ export var CustomWidth = Template.bind({});
154
+ CustomWidth.args = __assign(__assign({}, Default.args), { width: 50 });
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "../../../styles/global.css";
3
+ import "../../../styles/icons.css";
4
+ export interface SelectableListItemProps {
5
+ label: string;
6
+ duration?: string;
7
+ price?: string;
8
+ isActive: boolean;
9
+ onClick: () => void;
10
+ icon?: string;
11
+ }
12
+ declare const SelectableListItem: React.FC<SelectableListItemProps>;
13
+ export default SelectableListItem;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import styles from "./SelectableListItem.module.css";
3
+ import "../../../styles/global.css";
4
+ import "../../../styles/icons.css";
5
+ var SelectableListItem = function (_a) {
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))));
17
+ };
18
+ export default SelectableListItem;
@@ -0,0 +1,157 @@
1
+ .container {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ gap: 12px;
6
+ border: none;
7
+ background: none;
8
+ cursor: pointer;
9
+ transition: color 0.15s, border-bottom 0.15s;
10
+ padding: 12px 24px;
11
+ border-radius: 16px;
12
+ background: #f4f7fb;
13
+ width: 100%;
14
+ min-height: 48px;
15
+ }
16
+
17
+ .withIcon {
18
+ flex-direction: row !important;
19
+ }
20
+
21
+ .container:hover {
22
+ background-color: #e6edf5;
23
+ }
24
+
25
+ .active {
26
+ background: #e6edf5;
27
+ outline: 1px solid #728ea7;
28
+ }
29
+
30
+ .iconContainer {
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ border-radius: 50%;
35
+ background: #ffffff;
36
+ width: 24px;
37
+ min-width: 25px;
38
+ height: 24px;
39
+ border: 1px solid #d1dce7;
40
+ }
41
+
42
+ .activeIcon {
43
+ color: rgb(37, 190, 235);
44
+ font-size: 22px;
45
+ font-weight: 600;
46
+ width: 40px;
47
+ }
48
+
49
+ .iconWrapper {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ }
54
+
55
+ .icon {
56
+ color: rgb(37, 190, 235);
57
+ font-size: 22px;
58
+ font-weight: 600;
59
+ width: 40px;
60
+ }
61
+
62
+ .content {
63
+ flex-grow: 1;
64
+ }
65
+
66
+ .label {
67
+ font-family: "Open Sans", sans-serif;
68
+ color: #171e25;
69
+ font-style: normal;
70
+ font-weight: 600;
71
+ display: -webkit-box;
72
+ -webkit-box-orient: vertical;
73
+ -webkit-line-clamp: 3;
74
+ overflow: hidden;
75
+ text-overflow: ellipsis;
76
+ max-height: calc(16px * 1.3 * 3 + 2px);
77
+ text-align: left;
78
+ font-size: 16px;
79
+ font-style: normal;
80
+ text-align: start;
81
+ line-height: normal;
82
+ }
83
+
84
+ .columnsWrapper {
85
+ display: flex;
86
+ gap: 12px;
87
+ }
88
+
89
+ .duration,
90
+ .price {
91
+ flex-shrink: 0;
92
+ text-align: right;
93
+ font-family: "Open Sans", sans-serif;
94
+ font-size: 16px;
95
+ font-style: normal;
96
+ line-height: normal;
97
+ white-space: nowrap;
98
+ overflow: hidden;
99
+ text-overflow: ellipsis;
100
+ }
101
+
102
+ .duration {
103
+ color: var(--mid-grey, #728ea7);
104
+ width: 80px;
105
+ }
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
+
123
+ @media (max-width: 575px) {
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%;
139
+ }
140
+ }
141
+
142
+ @media (max-width: 575px) {
143
+ .duration {
144
+ text-align: left;
145
+ }
146
+ }
147
+
148
+ @media (max-width: 413px) {
149
+ .columnsWrapper {
150
+ flex-direction: column;
151
+ align-items: flex-start;
152
+ }
153
+
154
+ .price {
155
+ text-align: left;
156
+ }
157
+ }
@@ -0,0 +1,33 @@
1
+ export namespace ActionsData {
2
+ namespace onClick {
3
+ let action: string;
4
+ }
5
+ }
6
+ declare namespace _default {
7
+ export let title: string;
8
+ export { SelectableListItem as component };
9
+ export let tags: string[];
10
+ export let excludeStories: RegExp;
11
+ export namespace args {
12
+ let label: string;
13
+ let duration: string;
14
+ let price: string;
15
+ let isActive: boolean;
16
+ let icon: string;
17
+ }
18
+ export namespace parameters {
19
+ namespace backgrounds {
20
+ let _default: string;
21
+ export { _default as default };
22
+ export let values: {
23
+ name: string;
24
+ value: string;
25
+ }[];
26
+ }
27
+ let layout: string;
28
+ }
29
+ }
30
+ export default _default;
31
+ export const Default: any;
32
+ export const Active: any;
33
+ import SelectableListItem from "./SelectableListItem";
@@ -0,0 +1,53 @@
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, { useState } from "react";
13
+ import SelectableListItem from "./SelectableListItem";
14
+ import "../../../styles/global.css";
15
+ export var ActionsData = {
16
+ onClick: { action: "clicked" },
17
+ };
18
+ export default {
19
+ title: "Components/Atoms/selects/SelectableListItem",
20
+ component: SelectableListItem,
21
+ tags: ["autodocs"],
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.", duration: "(35 min)", price: "100 €", isActive: false, icon: "allaw-icon-visio" }),
24
+ parameters: {
25
+ backgrounds: {
26
+ default: "light",
27
+ values: [
28
+ { name: "light", value: "#ffffff" },
29
+ { name: "grey", value: "#728ea7" },
30
+ { name: "figma", value: "#404040" },
31
+ { name: "dark", value: "#171e25" },
32
+ ],
33
+ },
34
+ layout: "padded",
35
+ },
36
+ };
37
+ var Template = function (args) {
38
+ var _a = useState(false), isActive = _a[0], setIsActive = _a[1];
39
+ var handleClick = function () {
40
+ setIsActive(!isActive);
41
+ args.onClick();
42
+ };
43
+ return (React.createElement(SelectableListItem, __assign({}, args, { isActive: isActive, onClick: handleClick })));
44
+ };
45
+ export var Default = Template.bind({});
46
+ export var Active = Template.bind({});
47
+ Active.args = {
48
+ label: "Adoption",
49
+ duration: "(35 min)",
50
+ price: "100 €",
51
+ isActive: true,
52
+ icon: "allaw-icon-visio",
53
+ };
@@ -2,3 +2,5 @@ export { default as Select } from "./Select";
2
2
  export type { SelectItem, SelectProps, SelectRef } from "./Select";
3
3
  export { default as ComboBox } from "./ComboBox";
4
4
  export type { ComboBoxProps, ComboBoxRef } from "./ComboBox";
5
+ export { default as SelectableListItem } from "./SelectableListItem";
6
+ export type { SelectableListItemProps } from "./SelectableListItem";
@@ -1,2 +1,3 @@
1
1
  export { default as Select } from "./Select";
2
2
  export { default as ComboBox } from "./ComboBox";
3
+ export { default as SelectableListItem } from "./SelectableListItem";
@@ -0,0 +1,17 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { AppointementStatusTag as component };
4
+ export let tags: string[];
5
+ }
6
+ export default _default;
7
+ export const Confirmed: any;
8
+ export const Pending: any;
9
+ export const Available: any;
10
+ export const Unavailable: any;
11
+ export const Cancelled: any;
12
+ export const Passed: any;
13
+ export const RefusedStatus: any;
14
+ export const ConfirmedBig: any;
15
+ export const PassedBig: any;
16
+ export const CancelledBigVariant: any;
17
+ import AppointementStatusTag from "./AppointementStatusTag";
@@ -0,0 +1,70 @@
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 AppointementStatusTag from "./AppointementStatusTag";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/Atoms/Tags/AppointementStatusTag",
17
+ component: AppointementStatusTag,
18
+ tags: ["autodocs"],
19
+ };
20
+ var Template = function (args) { return React.createElement(AppointementStatusTag, __assign({}, args)); };
21
+ export var Confirmed = Template.bind({});
22
+ Confirmed.args = {
23
+ status: "confirmed",
24
+ variant: "default",
25
+ };
26
+ export var Pending = Template.bind({});
27
+ Pending.args = {
28
+ status: "pending",
29
+ variant: "default",
30
+ };
31
+ export var Available = Template.bind({});
32
+ Available.args = {
33
+ status: "available",
34
+ variant: "default",
35
+ };
36
+ export var Unavailable = Template.bind({});
37
+ Unavailable.args = {
38
+ status: "unavailable",
39
+ variant: "default",
40
+ };
41
+ export var Cancelled = Template.bind({});
42
+ Cancelled.args = {
43
+ status: "cancelled",
44
+ variant: "default",
45
+ };
46
+ export var Passed = Template.bind({});
47
+ Passed.args = {
48
+ status: "passed",
49
+ variant: "default",
50
+ };
51
+ export var RefusedStatus = Template.bind({});
52
+ RefusedStatus.args = {
53
+ status: "refused",
54
+ variant: "default",
55
+ };
56
+ export var ConfirmedBig = Template.bind({});
57
+ ConfirmedBig.args = {
58
+ status: "confirmed",
59
+ variant: "big",
60
+ };
61
+ export var PassedBig = Template.bind({});
62
+ PassedBig.args = {
63
+ status: "passed",
64
+ variant: "big",
65
+ };
66
+ export var CancelledBigVariant = Template.bind({});
67
+ CancelledBigVariant.args = {
68
+ status: "cancelled",
69
+ variant: "big",
70
+ };
@@ -2,15 +2,15 @@
2
2
 
3
3
  .folder-status-tag {
4
4
  display: inline-flex;
5
- padding: 8px;
5
+ padding: 6px;
6
6
  justify-content: center;
7
7
  align-items: center;
8
8
  gap: 8px;
9
- border-radius: 8px;
9
+ border-radius: 6px;
10
10
  font-family: "Open Sans", sans-serif;
11
- font-size: 14px;
11
+ font-size: 12px;
12
12
  font-style: normal;
13
- font-weight: 700;
13
+ font-weight: 600;
14
14
  line-height: normal;
15
15
  text-align: right;
16
16
  }
@@ -0,0 +1,28 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { FolderStatusTag as component };
4
+ export let tags: string[];
5
+ export namespace argTypes {
6
+ namespace status {
7
+ namespace control {
8
+ let type: string;
9
+ let options: string[];
10
+ }
11
+ }
12
+ }
13
+ export namespace parameters {
14
+ namespace backgrounds {
15
+ let _default: string;
16
+ export { _default as default };
17
+ export let values: {
18
+ name: string;
19
+ value: string;
20
+ }[];
21
+ }
22
+ }
23
+ }
24
+ export default _default;
25
+ export const Open: any;
26
+ export const Closed: any;
27
+ export const Bloqued: any;
28
+ import FolderStatusTag from "./FolderStatusTag";
@@ -0,0 +1,51 @@
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 FolderStatusTag from "./FolderStatusTag";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/Atoms/Tags/FolderStatusTag",
17
+ component: FolderStatusTag,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ status: {
21
+ control: {
22
+ type: "select",
23
+ options: ["OPEN", "CLOSED", "BLOCKED"],
24
+ },
25
+ },
26
+ },
27
+ parameters: {
28
+ backgrounds: {
29
+ default: "light",
30
+ values: [
31
+ { name: "light", value: "#ffffff" },
32
+ { name: "grey", value: "#728ea7" },
33
+ { name: "figma", value: "#404040" },
34
+ { name: "dark", value: "#171e25" },
35
+ ],
36
+ },
37
+ },
38
+ };
39
+ var Template = function (args) { return React.createElement(FolderStatusTag, __assign({}, args)); };
40
+ export var Open = Template.bind({});
41
+ Open.args = {
42
+ status: "OPEN",
43
+ };
44
+ export var Closed = Template.bind({});
45
+ Closed.args = {
46
+ status: "CLOSED",
47
+ };
48
+ export var Bloqued = Template.bind({});
49
+ Bloqued.args = {
50
+ status: "BLOCKED",
51
+ };
@@ -58,7 +58,6 @@
58
58
  gap: 4px;
59
59
  flex-shrink: 0;
60
60
  border-radius: 8px;
61
- border: 1px solid var(--tag-blue, #1985e8);
62
61
  color: var(--tag-blue, #1985e8);
63
62
  text-align: center;
64
63
  font-family: "Open Sans";
@@ -69,6 +68,26 @@
69
68
  letter-spacing: 0.12px;
70
69
  }
71
70
 
71
+ .other-status-tag.information.information-color-blue {
72
+ border: 1px solid var(--tag-blue, #1985e8);
73
+ color: var(--tag-blue, #1985e8);
74
+ }
75
+
76
+ .other-status-tag.information.information-color-green {
77
+ border: 1px solid var(--green-tag-dark, #29a36a);
78
+ color: var(--green-tag-dark, #29a36a);
79
+ }
80
+
81
+ .other-status-tag.information.information-color-red {
82
+ border: 1px solid var(--red-tag-dark, #e15151);
83
+ color: var(--red-tag-dark, #e15151);
84
+ }
85
+
86
+ .other-status-tag.information.information-color-orange {
87
+ border: 1px solid var(--orange-tag-dark, #ff9f43);
88
+ color: var(--orange-tag-dark, #ff9f43);
89
+ }
90
+
72
91
  .other-status-tag.information .icon {
73
92
  display: flex;
74
93
  width: 16px;
@@ -7,6 +7,7 @@ export interface OtherStatusTagProps {
7
7
  startIconName?: string;
8
8
  labelLimit?: number;
9
9
  style?: "normal" | "compact";
10
+ informationColor?: "blue" | "green" | "red" | "orange";
10
11
  }
11
12
  declare const OtherStatusTag: React.FC<OtherStatusTagProps>;
12
13
  export default OtherStatusTag;