allaw-ui 0.1.71 → 1.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 (387) 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.d.ts +9 -0
  6. package/dist/components/atoms/buttons/ActionCircleButton.js +23 -0
  7. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
  8. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
  9. package/dist/components/atoms/buttons/AgendaSlot.d.ts +10 -0
  10. package/dist/components/atoms/buttons/AgendaSlot.js +7 -0
  11. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
  12. package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
  13. package/dist/components/atoms/buttons/FavoriteToggle.d.ts +8 -0
  14. package/dist/components/atoms/buttons/FavoriteToggle.js +11 -0
  15. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
  16. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
  17. package/dist/components/atoms/buttons/FilterButton.d.ts +9 -0
  18. package/dist/components/atoms/buttons/FilterButton.js +9 -0
  19. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
  20. package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
  21. package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +9 -0
  22. package/dist/components/atoms/buttons/FilterButtonPrimary.js +46 -0
  23. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
  24. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
  25. package/dist/components/atoms/buttons/GhostButton.d.ts +14 -0
  26. package/dist/components/atoms/buttons/GhostButton.js +11 -0
  27. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
  28. package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
  29. package/dist/components/atoms/buttons/IconButton.css +17 -0
  30. package/dist/components/atoms/buttons/IconButton.d.ts +11 -0
  31. package/dist/components/atoms/buttons/IconButton.js +19 -0
  32. package/dist/components/atoms/buttons/IconButton.stories.d.ts +48 -0
  33. package/dist/components/atoms/buttons/IconButton.stories.js +76 -0
  34. package/dist/components/atoms/buttons/OAuthProviderButton.css +25 -23
  35. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
  36. package/dist/components/atoms/buttons/OAuthProviderButton.js +176 -0
  37. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
  38. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
  39. package/dist/components/atoms/buttons/PendingDocuments.d.ts +9 -0
  40. package/dist/components/atoms/buttons/PendingDocuments.js +15 -0
  41. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
  42. package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
  43. package/dist/components/atoms/buttons/PrimaryButton.css +1 -0
  44. package/dist/components/atoms/buttons/PrimaryButton.d.ts +17 -0
  45. package/dist/components/atoms/buttons/PrimaryButton.js +117 -0
  46. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +86 -0
  47. package/dist/components/atoms/buttons/PrimaryButton.stories.js +147 -0
  48. package/dist/components/atoms/buttons/SecondaryButton.css +66 -0
  49. package/dist/components/atoms/buttons/SecondaryButton.d.ts +19 -0
  50. package/dist/components/atoms/buttons/SecondaryButton.js +117 -0
  51. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +72 -0
  52. package/dist/components/atoms/buttons/SecondaryButton.stories.js +149 -0
  53. package/dist/components/atoms/buttons/TabNavigation.css +78 -9
  54. package/dist/components/atoms/buttons/TabNavigation.d.ts +15 -0
  55. package/dist/components/atoms/buttons/TabNavigation.js +10 -0
  56. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +44 -0
  57. package/dist/components/atoms/buttons/TabNavigation.stories.js +66 -0
  58. package/dist/components/atoms/buttons/TertiaryButton.css +15 -6
  59. package/dist/components/atoms/buttons/TertiaryButton.d.ts +11 -0
  60. package/dist/components/atoms/buttons/TertiaryButton.js +10 -0
  61. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +42 -0
  62. package/dist/components/atoms/buttons/TertiaryButton.stories.js +60 -0
  63. package/dist/components/atoms/buttons/index.d.ts +22 -0
  64. package/dist/components/atoms/buttons/index.js +11 -0
  65. package/dist/components/atoms/buttons/{PendingDocuments.css → pendingDocuments.module.css} +9 -8
  66. package/dist/components/atoms/checkboxes/Checkbox.d.ts +14 -0
  67. package/dist/components/atoms/checkboxes/Checkbox.js +19 -0
  68. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
  69. package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
  70. package/dist/components/atoms/checkboxes/index.d.ts +2 -0
  71. package/dist/components/atoms/checkboxes/index.js +1 -0
  72. package/dist/components/atoms/datepickers/Datepicker.d.ts +14 -0
  73. package/dist/components/atoms/datepickers/Datepicker.js +151 -0
  74. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
  75. package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
  76. package/dist/components/atoms/datepickers/datepicker.css +241 -0
  77. package/dist/components/atoms/datepickers/index.d.ts +2 -0
  78. package/dist/components/atoms/datepickers/index.js +1 -0
  79. package/dist/components/atoms/filter/Basefiler.css +1 -1
  80. package/dist/components/atoms/filter/Filter.d.ts +17 -0
  81. package/dist/components/atoms/filter/Filter.js +70 -0
  82. package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
  83. package/dist/components/atoms/filter/Filter.stories.js +77 -0
  84. package/dist/components/atoms/filter/index.d.ts +2 -0
  85. package/dist/components/atoms/filter/index.js +1 -0
  86. package/dist/components/atoms/filters/SingleFilter.d.ts +17 -0
  87. package/dist/components/atoms/filters/SingleFilter.js +81 -0
  88. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
  89. package/dist/components/atoms/filters/SingleFilter.stories.js +34 -0
  90. package/dist/components/atoms/filters/index.d.ts +2 -0
  91. package/dist/components/atoms/filters/index.js +1 -0
  92. package/dist/components/atoms/inputs/Input.d.ts +26 -0
  93. package/dist/components/atoms/inputs/Input.js +86 -0
  94. package/dist/components/atoms/inputs/Input.stories.d.ts +62 -0
  95. package/dist/components/atoms/inputs/Input.stories.js +101 -0
  96. package/dist/components/atoms/inputs/SearchBar.css +1 -1
  97. package/dist/components/atoms/inputs/SearchBar.d.ts +12 -0
  98. package/dist/components/atoms/inputs/SearchBar.js +20 -0
  99. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +54 -0
  100. package/dist/components/atoms/inputs/SearchBar.stories.js +67 -0
  101. package/dist/components/atoms/inputs/TextArea.css +1 -1
  102. package/dist/components/atoms/inputs/TextArea.d.ts +23 -0
  103. package/dist/components/atoms/inputs/TextArea.js +66 -0
  104. package/dist/components/atoms/inputs/TextArea.stories.d.ts +70 -0
  105. package/dist/components/atoms/inputs/TextArea.stories.js +113 -0
  106. package/dist/components/atoms/inputs/index.d.ts +6 -0
  107. package/dist/components/atoms/inputs/index.js +3 -0
  108. package/dist/components/atoms/progressBars/ProgressBar.css +20 -15
  109. package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
  110. package/dist/components/atoms/progressBars/ProgressBar.js +25 -0
  111. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
  112. package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
  113. package/dist/components/atoms/progressBars/index.d.ts +2 -0
  114. package/dist/components/atoms/progressBars/index.js +1 -0
  115. package/dist/components/atoms/radios/RadioButton.d.ts +11 -0
  116. package/dist/components/atoms/radios/RadioButton.js +10 -0
  117. package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
  118. package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
  119. package/dist/components/atoms/radios/index.d.ts +2 -0
  120. package/dist/components/atoms/radios/index.js +1 -0
  121. package/dist/components/atoms/selects/ComboBox.css +5 -3
  122. package/dist/components/atoms/selects/ComboBox.d.ts +27 -0
  123. package/dist/components/atoms/selects/ComboBox.js +172 -0
  124. package/dist/components/atoms/selects/ComboBox.stories.d.ts +94 -0
  125. package/dist/components/atoms/selects/ComboBox.stories.js +122 -0
  126. package/dist/components/atoms/selects/Select.d.ts +24 -0
  127. package/dist/components/atoms/selects/Select.js +154 -0
  128. package/dist/components/atoms/selects/{Select.css → Select.module.css} +16 -15
  129. package/dist/components/atoms/selects/Select.stories.d.ts +86 -0
  130. package/dist/components/atoms/selects/Select.stories.js +154 -0
  131. package/dist/components/atoms/selects/SelectableListItem.d.ts +13 -0
  132. package/dist/components/atoms/selects/SelectableListItem.js +18 -0
  133. package/dist/components/atoms/selects/SelectableListItem.module.css +157 -0
  134. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
  135. package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
  136. package/dist/components/atoms/selects/index.d.ts +6 -0
  137. package/dist/components/atoms/selects/index.js +3 -0
  138. package/dist/components/atoms/tags/AppointementStatusTag.d.ts +8 -0
  139. package/dist/components/atoms/tags/AppointementStatusTag.js +42 -0
  140. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
  141. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
  142. package/dist/components/atoms/tags/FolderStatusTag.css +10 -8
  143. package/dist/components/atoms/tags/FolderStatusTag.d.ts +8 -0
  144. package/dist/components/atoms/tags/FolderStatusTag.js +25 -0
  145. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
  146. package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
  147. package/dist/components/atoms/tags/OtherStatusTag.css +54 -1
  148. package/dist/components/atoms/tags/OtherStatusTag.d.ts +13 -0
  149. package/dist/components/atoms/tags/OtherStatusTag.js +15 -0
  150. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
  151. package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
  152. package/dist/components/atoms/tags/index.d.ts +6 -0
  153. package/dist/components/atoms/tags/index.js +3 -0
  154. package/dist/components/atoms/typography/CardDate.d.ts +11 -0
  155. package/dist/components/atoms/typography/CardDate.js +52 -0
  156. package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
  157. package/dist/components/atoms/typography/CardDate.stories.js +103 -0
  158. package/dist/components/atoms/typography/Heading.d.ts +10 -0
  159. package/dist/components/atoms/typography/Heading.js +7 -0
  160. package/dist/components/atoms/typography/Heading.stories.d.ts +45 -0
  161. package/dist/components/atoms/typography/Heading.stories.js +90 -0
  162. package/dist/components/atoms/typography/Link.d.ts +13 -0
  163. package/dist/components/atoms/typography/Link.js +35 -0
  164. package/dist/components/atoms/typography/Link.module.css +60 -0
  165. package/dist/components/atoms/typography/Link.stories.d.ts +57 -0
  166. package/dist/components/atoms/typography/Link.stories.js +105 -0
  167. package/dist/components/atoms/typography/Paragraph.d.ts +14 -0
  168. package/dist/components/atoms/typography/Paragraph.js +33 -0
  169. package/dist/components/atoms/typography/Paragraph.stories.d.ts +56 -0
  170. package/dist/components/atoms/typography/Paragraph.stories.js +97 -0
  171. package/dist/components/atoms/typography/SmallTitle.d.ts +9 -0
  172. package/dist/components/atoms/typography/SmallTitle.js +7 -0
  173. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +42 -0
  174. package/dist/components/atoms/typography/SmallTitle.stories.js +72 -0
  175. package/dist/components/atoms/typography/Subtitle.d.ts +9 -0
  176. package/dist/components/atoms/typography/Subtitle.js +7 -0
  177. package/dist/components/atoms/typography/Subtitle.stories.d.ts +40 -0
  178. package/dist/components/atoms/typography/Subtitle.stories.js +60 -0
  179. package/dist/components/atoms/typography/TinyInfo.d.ts +13 -0
  180. package/dist/components/atoms/typography/TinyInfo.js +15 -0
  181. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +52 -0
  182. package/dist/components/atoms/typography/TinyInfo.stories.js +97 -0
  183. package/dist/components/atoms/typography/cardDate.css +135 -0
  184. package/dist/components/atoms/typography/index.d.ts +12 -0
  185. package/dist/components/atoms/typography/index.js +6 -0
  186. package/dist/components/atoms/uiVariables/AnimatedBorder.css +55 -0
  187. package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
  188. package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
  189. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
  190. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
  191. package/dist/components/atoms/uiVariables/BorderRadius.d.ts +6 -0
  192. package/dist/components/atoms/uiVariables/BorderRadius.js +12 -0
  193. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
  194. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
  195. package/dist/components/atoms/uiVariables/Shadows.d.ts +6 -0
  196. package/dist/components/atoms/uiVariables/Shadows.js +11 -0
  197. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
  198. package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
  199. package/dist/components/atoms/uiVariables/Strokes.d.ts +6 -0
  200. package/dist/components/atoms/uiVariables/Strokes.js +10 -0
  201. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
  202. package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
  203. package/dist/components/atoms/uiVariables/index.d.ts +3 -0
  204. package/dist/components/atoms/uiVariables/index.js +3 -0
  205. package/dist/components/molecules/appointmentSlot/AppointmentSlot.css +46 -3
  206. package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +26 -0
  207. package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -0
  208. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
  209. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
  210. package/dist/components/molecules/appointmentSlot/index.d.ts +2 -0
  211. package/dist/components/molecules/appointmentSlot/index.js +1 -0
  212. package/dist/components/molecules/billingCount/BillingCount.css +28 -0
  213. package/dist/components/molecules/billingCount/BillingCount.d.ts +8 -0
  214. package/dist/components/molecules/billingCount/BillingCount.js +75 -0
  215. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +21 -0
  216. package/dist/components/molecules/billingCount/BillingCount.stories.js +44 -0
  217. package/dist/components/molecules/billingCount/index.d.ts +2 -0
  218. package/dist/components/molecules/billingCount/index.js +1 -0
  219. package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
  220. package/dist/components/molecules/blogCard/BlogCard.js +33 -0
  221. package/dist/components/molecules/blogCard/BlogCard.module.css +148 -0
  222. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
  223. package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
  224. package/dist/components/molecules/blogCard/index.d.ts +2 -0
  225. package/dist/components/molecules/blogCard/index.js +1 -0
  226. package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
  227. package/dist/components/molecules/blogFooter/BlogFooter.js +14 -0
  228. package/dist/components/molecules/blogFooter/BlogFooter.module.css +48 -0
  229. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +60 -0
  230. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +67 -0
  231. package/dist/components/molecules/blogFooter/index.d.ts +2 -0
  232. package/dist/components/molecules/blogFooter/index.js +1 -0
  233. package/dist/components/molecules/blogHeader/BlogHeader.d.ts +11 -0
  234. package/dist/components/molecules/blogHeader/BlogHeader.js +21 -0
  235. package/dist/components/molecules/blogHeader/BlogHeader.module.css +150 -0
  236. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +49 -0
  237. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
  238. package/dist/components/molecules/blogHeader/index.d.ts +2 -0
  239. package/dist/components/molecules/blogHeader/index.js +1 -0
  240. package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
  241. package/dist/components/molecules/blogText/BlogText.js +11 -0
  242. package/dist/components/molecules/blogText/BlogText.module.css +59 -0
  243. package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
  244. package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
  245. package/dist/components/molecules/blogText/index.d.ts +2 -0
  246. package/dist/components/molecules/blogText/index.js +1 -0
  247. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
  248. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
  249. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.module.css +108 -0
  250. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
  251. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
  252. package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
  253. package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
  254. package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +12 -0
  255. package/dist/components/molecules/breadcrumb/Breadcrumb.js +12 -0
  256. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
  257. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
  258. package/dist/components/molecules/breadcrumb/index.d.ts +2 -0
  259. package/dist/components/molecules/breadcrumb/index.js +1 -0
  260. package/dist/components/molecules/caseCard/CaseCard.css +54 -48
  261. package/dist/components/molecules/caseCard/CaseCard.d.ts +23 -0
  262. package/dist/components/molecules/caseCard/CaseCard.js +19 -0
  263. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
  264. package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
  265. package/dist/components/molecules/caseCard/index.d.ts +2 -0
  266. package/dist/components/molecules/caseCard/index.js +1 -0
  267. package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +16 -0
  268. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +20 -0
  269. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
  270. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
  271. package/dist/components/molecules/caseCardCompact/caseCardCompact.css +80 -0
  272. package/dist/components/molecules/caseCardCompact/index.d.ts +2 -0
  273. package/dist/components/molecules/caseCardCompact/index.js +1 -0
  274. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
  275. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
  276. package/dist/components/molecules/caseLinkCard/CaseLinkCard.css +79 -35
  277. package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +13 -0
  278. package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +37 -0
  279. package/dist/components/molecules/caseLinkCard/index.d.ts +2 -0
  280. package/dist/components/molecules/caseLinkCard/index.js +1 -0
  281. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +18 -0
  282. package/dist/components/molecules/checkboxForm/CheckboxForm.js +24 -0
  283. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +90 -0
  284. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +149 -0
  285. package/dist/components/molecules/checkboxForm/index.d.ts +2 -0
  286. package/dist/components/molecules/checkboxForm/index.js +1 -0
  287. package/dist/components/molecules/clientLinkCard/ClientLinkCard.css +59 -28
  288. package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +15 -0
  289. package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +18 -0
  290. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
  291. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
  292. package/dist/components/molecules/clientLinkCard/index.d.ts +2 -0
  293. package/dist/components/molecules/clientLinkCard/index.js +1 -0
  294. package/dist/components/molecules/contactCard/ContactCard.d.ts +16 -0
  295. package/dist/components/molecules/contactCard/ContactCard.js +34 -0
  296. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +83 -0
  297. package/dist/components/molecules/contactCard/ContactCard.stories.js +86 -0
  298. package/dist/components/molecules/contactCard/DetailedContactCard.d.ts +18 -0
  299. package/dist/components/molecules/contactCard/DetailedContactCard.js +61 -0
  300. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
  301. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
  302. package/dist/components/molecules/contactCard/contactCard.module.css +140 -0
  303. package/dist/components/molecules/contactCard/{ContactCard.css → detailedContactCard.css} +43 -105
  304. package/dist/components/molecules/contactCard/index.d.ts +4 -0
  305. package/dist/components/molecules/contactCard/index.js +2 -0
  306. package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +16 -0
  307. package/dist/components/molecules/datepickerForm/DatepickerForm.js +13 -0
  308. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
  309. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -0
  310. package/dist/components/molecules/datepickerForm/datepickerForm.css +6 -0
  311. package/dist/components/molecules/datepickerForm/index.d.ts +2 -0
  312. package/dist/components/molecules/datepickerForm/index.js +1 -0
  313. package/dist/components/molecules/documentCard/DocumentCard.css +8 -1
  314. package/dist/components/molecules/documentCard/DocumentCard.d.ts +16 -0
  315. package/dist/components/molecules/documentCard/DocumentCard.js +119 -0
  316. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
  317. package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
  318. package/dist/components/molecules/documentCard/index.d.ts +2 -0
  319. package/dist/components/molecules/documentCard/index.js +1 -0
  320. package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
  321. package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -0
  322. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
  323. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
  324. package/dist/components/molecules/employeeCard/index.d.ts +2 -0
  325. package/dist/components/molecules/employeeCard/index.js +1 -0
  326. package/dist/components/molecules/loadingBox/LoadingBox.css +7 -8
  327. package/dist/components/molecules/loadingBox/LoadingBox.d.ts +12 -0
  328. package/dist/components/molecules/loadingBox/LoadingBox.js +11 -0
  329. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
  330. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
  331. package/dist/components/molecules/loadingBox/index.d.ts +2 -0
  332. package/dist/components/molecules/loadingBox/index.js +1 -0
  333. package/dist/components/molecules/pagination/Pagination.d.ts +10 -0
  334. package/dist/components/molecules/pagination/Pagination.js +64 -0
  335. package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
  336. package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
  337. package/dist/components/molecules/pagination/index.d.ts +2 -0
  338. package/dist/components/molecules/pagination/index.js +1 -0
  339. package/dist/components/molecules/pagination/pagination.css +120 -0
  340. package/dist/components/molecules/proCard/ProCard.d.ts +13 -0
  341. package/dist/components/molecules/proCard/ProCard.js +25 -0
  342. package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
  343. package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
  344. package/dist/components/molecules/proCard/index.d.ts +2 -0
  345. package/dist/components/molecules/proCard/index.js +1 -0
  346. package/dist/components/molecules/radioForm/RadioForm.d.ts +12 -0
  347. package/dist/components/molecules/radioForm/RadioForm.js +27 -0
  348. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
  349. package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
  350. package/dist/components/molecules/radioForm/index.d.ts +2 -0
  351. package/dist/components/molecules/radioForm/index.js +1 -0
  352. package/dist/components/molecules/selectForm/SelectForm.css +1 -1
  353. package/dist/components/molecules/selectForm/SelectForm.d.ts +18 -0
  354. package/dist/components/molecules/selectForm/SelectForm.js +15 -0
  355. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +58 -0
  356. package/dist/components/molecules/selectForm/SelectForm.stories.js +96 -0
  357. package/dist/components/molecules/selectForm/index.d.ts +2 -0
  358. package/dist/components/molecules/selectForm/index.js +1 -0
  359. package/dist/components/molecules/stepper/Stepper.css +17 -4
  360. package/dist/components/molecules/stepper/Stepper.d.ts +35 -0
  361. package/dist/components/molecules/stepper/Stepper.js +113 -0
  362. package/dist/components/molecules/stepper/Stepper.stories.d.ts +42 -0
  363. package/dist/components/molecules/stepper/Stepper.stories.js +132 -0
  364. package/dist/components/molecules/stepper/index.d.ts +2 -0
  365. package/dist/components/molecules/stepper/index.js +1 -0
  366. package/dist/index.d.ts +76 -0
  367. package/dist/index.js +88 -0
  368. package/dist/stories/Header.d.ts +13 -0
  369. package/dist/stories/Header.js +20 -0
  370. package/dist/stories/Header.stories.d.ts +18 -0
  371. package/dist/stories/Header.stories.js +26 -0
  372. package/dist/stories/Page.d.ts +3 -0
  373. package/dist/stories/Page.js +37 -0
  374. package/dist/stories/Page.stories.d.ts +12 -0
  375. package/dist/stories/Page.stories.js +76 -0
  376. package/dist/stories/header.css +32 -0
  377. package/dist/stories/page.css +69 -0
  378. package/dist/styles/colors.css +3 -0
  379. package/dist/styles/colors.module.css +107 -0
  380. package/dist/styles/global.css +1 -0
  381. package/dist/styles/icons.css +76 -107
  382. package/dist/utils/regex.d.ts +5 -0
  383. package/dist/utils/regex.js +7 -0
  384. package/dist/utils/utils.d.ts +2 -0
  385. package/dist/utils/utils.js +48 -0
  386. package/package.json +18 -14
  387. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,67 @@
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 SearchBar from "./SearchBar";
14
+ import "../../../styles/global.css";
15
+ import "../../../styles/icons.css";
16
+ export var ActionsData = {
17
+ onChange: { action: "changed" },
18
+ };
19
+ export default {
20
+ title: "Components/Atoms/Inputs/SearchBar",
21
+ component: SearchBar,
22
+ tags: ["autodocs"],
23
+ excludeStories: /.*Data$/,
24
+ args: __assign(__assign({}, ActionsData), { endIcon: "allaw-icon-search" }),
25
+ argTypes: {
26
+ placeholder: {
27
+ control: {
28
+ type: "text",
29
+ },
30
+ },
31
+ endIcon: {
32
+ control: {
33
+ type: "text",
34
+ },
35
+ },
36
+ value: {
37
+ control: {
38
+ type: "text",
39
+ },
40
+ },
41
+ onChange: { action: "changed" },
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) {
56
+ var _a = useState(""), value = _a[0], setValue = _a[1];
57
+ return (React.createElement(SearchBar, __assign({}, args, { value: value, onChange: function (newValue) {
58
+ setValue(newValue);
59
+ args.onChange(newValue);
60
+ } })));
61
+ };
62
+ export var Default = Template.bind({});
63
+ Default.args = {
64
+ placeholder: "Faites une recherche",
65
+ endIcon: "allaw-icon-search",
66
+ onChange: function (value) { return console.log("Search value:", value); },
67
+ };
@@ -4,7 +4,7 @@
4
4
  .text-area {
5
5
  display: flex;
6
6
  flex-direction: column;
7
- gap: 8px;
7
+ gap: 11px;
8
8
  /* field-sizing: content; */
9
9
  }
10
10
 
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import "./TextArea.css";
3
+ import "../../../styles/global.css";
4
+ import { commonRegex } from "../../../utils/regex";
5
+ export interface TextAreaProps {
6
+ title: string;
7
+ style?: "default" | "variation";
8
+ placeholder: string;
9
+ isRequired?: boolean;
10
+ validate?: RegExp | keyof typeof commonRegex;
11
+ onError?: (error: string) => void;
12
+ onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
13
+ value?: string;
14
+ error?: string;
15
+ maxHeight?: number;
16
+ variant?: "bold" | "semiBold" | "medium";
17
+ color?: "bleu-allaw" | "mid-grey" | "dark-grey" | "noir" | "pure-white" | "grey-venom" | "venom-grey-dark";
18
+ }
19
+ export interface TextAreaRef {
20
+ validate: () => boolean;
21
+ }
22
+ declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<TextAreaRef>>;
23
+ export default TextArea;
@@ -0,0 +1,66 @@
1
+ // TextArea.tsx
2
+ import React, { useState, useEffect, useCallback, forwardRef, useImperativeHandle, useRef, } from "react";
3
+ import "./TextArea.css";
4
+ import "../../../styles/global.css";
5
+ import { commonRegex } from "../../../utils/regex";
6
+ import TinyInfo from "../typography/TinyInfo";
7
+ import Paragraph from "../typography/Paragraph";
8
+ var TextArea = forwardRef(function (_a, ref) {
9
+ var title = _a.title, _b = _a.style, style = _b === void 0 ? "default" : _b, placeholder = _a.placeholder, _c = _a.isRequired, isRequired = _c === void 0 ? false : _c, validate = _a.validate, onError = _a.onError, onChange = _a.onChange, propValue = _a.value, propError = _a.error, _d = _a.maxHeight, maxHeight = _d === void 0 ? 400 : _d, _e = _a.variant, variant = _e === void 0 ? "medium" : _e, _f = _a.color, color = _f === void 0 ? "noir" : _f;
10
+ var _g = useState(propValue || ""), value = _g[0], setValue = _g[1];
11
+ var _h = useState(propError || ""), error = _h[0], setError = _h[1];
12
+ var _j = useState(false), isTouched = _j[0], setIsTouched = _j[1];
13
+ var textareaRef = useRef(null);
14
+ useEffect(function () {
15
+ setValue(propValue || "");
16
+ }, [propValue]);
17
+ useEffect(function () {
18
+ setError(propError || "");
19
+ }, [propError]);
20
+ var validateTextArea = useCallback(function () {
21
+ var _a;
22
+ var currentValue = ((_a = textareaRef.current) === null || _a === void 0 ? void 0 : _a.value) || value;
23
+ var errorMessage = "";
24
+ if (isRequired && currentValue.trim() === "") {
25
+ errorMessage = "Ce champ est requis";
26
+ }
27
+ else if (validate && currentValue) {
28
+ var regex = typeof validate === "string" ? commonRegex[validate] : validate;
29
+ if (!regex.test(currentValue)) {
30
+ errorMessage = "Veuillez vérifier votre saisie";
31
+ }
32
+ }
33
+ setError(errorMessage);
34
+ setIsTouched(true);
35
+ onError === null || onError === void 0 ? void 0 : onError(errorMessage);
36
+ return !errorMessage;
37
+ }, [isRequired, value, validate, onError]);
38
+ useImperativeHandle(ref, function () { return ({
39
+ validate: validateTextArea,
40
+ }); });
41
+ var handleChange = function (e) {
42
+ var newValue = e.target.value;
43
+ setValue(newValue);
44
+ onChange === null || onChange === void 0 ? void 0 : onChange(e);
45
+ if (isTouched) {
46
+ validateTextArea();
47
+ }
48
+ };
49
+ var handleBlur = function () {
50
+ setIsTouched(true);
51
+ validateTextArea();
52
+ };
53
+ return (React.createElement("div", { className: "TextArea text-area-".concat(style) },
54
+ React.createElement("div", { className: "text-area-title-container" },
55
+ React.createElement(Paragraph, { variant: variant, color: color, text: title }),
56
+ isRequired && title && (React.createElement("span", { className: "text-area-required" },
57
+ "\u00A0",
58
+ "*"))),
59
+ React.createElement("div", { className: "text-area-container" },
60
+ React.createElement("div", { className: "text-area-input" },
61
+ React.createElement("textarea", { ref: textareaRef, placeholder: placeholder, className: "text-area-placeholder", value: value, onChange: handleChange, onBlur: handleBlur, style: { maxHeight: "".concat(maxHeight, "px") } })),
62
+ error && isTouched && (React.createElement("div", { className: "error-message" },
63
+ React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error }))))));
64
+ });
65
+ TextArea.displayName = "TextArea";
66
+ export default TextArea;
@@ -0,0 +1,70 @@
1
+ export const ActionsData: {};
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { TextArea as component };
5
+ export let tags: string[];
6
+ export let excludeStories: RegExp;
7
+ export let args: {};
8
+ export namespace argTypes {
9
+ namespace style {
10
+ namespace control {
11
+ let type: string;
12
+ let options: string[];
13
+ }
14
+ }
15
+ namespace isRequired {
16
+ let control_1: string;
17
+ export { control_1 as control };
18
+ }
19
+ namespace validate {
20
+ export namespace control_2 {
21
+ let type_1: string;
22
+ export { type_1 as type };
23
+ }
24
+ export { control_2 as control };
25
+ }
26
+ namespace maxHeight {
27
+ export namespace control_3 {
28
+ let type_2: string;
29
+ export { type_2 as type };
30
+ export let min: number;
31
+ export let max: number;
32
+ export let step: number;
33
+ }
34
+ export { control_3 as control };
35
+ }
36
+ namespace variant {
37
+ export namespace control_4 {
38
+ let type_3: string;
39
+ export { type_3 as type };
40
+ let options_1: string[];
41
+ export { options_1 as options };
42
+ }
43
+ export { control_4 as control };
44
+ }
45
+ namespace color {
46
+ export namespace control_5 {
47
+ let type_4: string;
48
+ export { type_4 as type };
49
+ let options_2: string[];
50
+ export { options_2 as options };
51
+ }
52
+ export { control_5 as control };
53
+ }
54
+ }
55
+ export namespace parameters {
56
+ namespace backgrounds {
57
+ let _default: string;
58
+ export { _default as default };
59
+ export let values: {
60
+ name: string;
61
+ value: string;
62
+ }[];
63
+ }
64
+ }
65
+ }
66
+ export default _default;
67
+ export const Default: any;
68
+ export const Variation: any;
69
+ export const WithValidation: any;
70
+ import TextArea from "./TextArea";
@@ -0,0 +1,113 @@
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 { useForm, FormProvider } from "react-hook-form";
14
+ import TextArea from "./TextArea";
15
+ import "../../../styles/global.css";
16
+ export var ActionsData = {};
17
+ export default {
18
+ title: "Components/Atoms/Inputs/TextArea",
19
+ component: TextArea,
20
+ tags: ["autodocs"],
21
+ excludeStories: /.*Data$/,
22
+ args: __assign({}, ActionsData),
23
+ argTypes: {
24
+ style: {
25
+ control: {
26
+ type: "radio",
27
+ options: ["default", "variation"],
28
+ },
29
+ },
30
+ isRequired: {
31
+ control: "boolean",
32
+ },
33
+ validate: {
34
+ control: {
35
+ type: "text",
36
+ },
37
+ },
38
+ maxHeight: {
39
+ control: {
40
+ type: "number",
41
+ min: 100,
42
+ max: 1000,
43
+ step: 50,
44
+ },
45
+ },
46
+ variant: {
47
+ control: {
48
+ type: "select",
49
+ options: ["bold", "semiBold", "medium"],
50
+ },
51
+ },
52
+ color: {
53
+ control: {
54
+ type: "select",
55
+ options: [
56
+ "bleu-allaw",
57
+ "mid-grey",
58
+ "dark-grey",
59
+ "noir",
60
+ "pure-white",
61
+ "grey-venom",
62
+ "venom-grey-dark",
63
+ ],
64
+ },
65
+ },
66
+ },
67
+ parameters: {
68
+ backgrounds: {
69
+ default: "light",
70
+ values: [
71
+ { name: "light", value: "#ffffff" },
72
+ { name: "grey", value: "#728ea7" },
73
+ { name: "figma", value: "#404040" },
74
+ { name: "dark", value: "#171e25" },
75
+ ],
76
+ },
77
+ },
78
+ };
79
+ var Template = function (args) {
80
+ var methods = useForm();
81
+ return (React.createElement(FormProvider, __assign({}, methods),
82
+ React.createElement(TextArea, __assign({}, args))));
83
+ };
84
+ export var Default = Template.bind({});
85
+ Default.args = {
86
+ name: "defaultTextArea",
87
+ title: "Nommer le rendez-vous",
88
+ placeholder: "Entrez le motif du rendez-vous",
89
+ style: "default",
90
+ isRequired: false,
91
+ maxHeight: 400,
92
+ variant: "medium",
93
+ color: "noir",
94
+ };
95
+ export var Variation = Template.bind({});
96
+ Variation.args = {
97
+ name: "variationTextArea",
98
+ title: "Adresse e-mail",
99
+ placeholder: "Entrez le motif du rendez-vous",
100
+ style: "variation",
101
+ isRequired: true,
102
+ maxHeight: 400,
103
+ };
104
+ export var WithValidation = Template.bind({});
105
+ WithValidation.args = {
106
+ name: "validationTextArea",
107
+ title: "Email",
108
+ placeholder: "Entrez votre email",
109
+ style: "default",
110
+ isRequired: true,
111
+ validate: "email",
112
+ maxHeight: 400,
113
+ };
@@ -0,0 +1,6 @@
1
+ export { default as Input } from "./Input";
2
+ export { default as TextArea } from "./TextArea";
3
+ export { default as SearchBar } from "./SearchBar";
4
+ export type { InputProps, InputRef } from "./Input";
5
+ export type { SearchBarProps } from "./SearchBar";
6
+ export type { TextAreaProps, TextAreaRef } from "./TextArea";
@@ -0,0 +1,3 @@
1
+ export { default as Input } from "./Input";
2
+ export { default as TextArea } from "./TextArea";
3
+ export { default as SearchBar } from "./SearchBar";
@@ -6,17 +6,8 @@
6
6
  justify-content: space-between;
7
7
  align-items: center;
8
8
  height: 1.5rem;
9
- gap: 4rem;
10
- }
11
-
12
- .progress-bar-background {
13
- display: flex;
14
- width: 100%;
15
- height: 8px;
16
- align-items: center;
17
- border-radius: 8px;
18
- background: var(--venom-grey, #e6edf5);
19
- margin: 0 10px;
9
+ gap: 2rem;
10
+ padding-left: 0.7rem;
20
11
  }
21
12
 
22
13
  .progress-bar-background.hidden-content {
@@ -58,7 +49,7 @@
58
49
  .progress-bar-background {
59
50
  display: flex;
60
51
  width: 100%;
61
- height: 8px;
52
+ height: 6px;
62
53
  align-items: center;
63
54
  border-radius: 8px;
64
55
  background: var(--venom-grey, #e6edf5);
@@ -66,12 +57,27 @@
66
57
  }
67
58
 
68
59
  .progress-bar-fill {
69
- height: 8px;
60
+ height: 6px;
70
61
  border-radius: 8px;
71
- background: var(--primary-blue, #25beeb);
72
62
  transition: width 0.35s ease;
73
63
  }
74
64
 
65
+ .progress-bar-fill-blue {
66
+ background: var(--primary-blue, #25beeb);
67
+ }
68
+
69
+ .progress-bar-fill-red {
70
+ background: var(--actions-error, #e15151);
71
+ }
72
+
73
+ .progress-bar-fill-green {
74
+ background: var(--actions-valid, #29a36a);
75
+ }
76
+
77
+ .progress-bar-fill-grey {
78
+ background: var(--mid-grey, #728ea7);
79
+ }
80
+
75
81
  .progress-bar-close {
76
82
  display: flex;
77
83
  flex-direction: row;
@@ -79,7 +85,6 @@
79
85
  align-items: center;
80
86
  width: 32px;
81
87
  height: 32px;
82
- /* padding: 5px; */
83
88
  padding-right: 2px;
84
89
  flex-shrink: 0;
85
90
  cursor: pointer;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import "./ProgressBar.css";
3
+ import "../../../styles/global.css";
4
+ import "../../../styles/icons.css";
5
+ export type BarColor = "blue" | "red" | "green" | "grey";
6
+ export interface ProgressBarProps {
7
+ steps: number;
8
+ currentStep: number;
9
+ startIcon?: boolean;
10
+ endIcon?: boolean;
11
+ onStartIconClick?: () => void;
12
+ onEndIconClick?: () => void;
13
+ showProgressBar?: boolean;
14
+ barColor?: BarColor;
15
+ isWrapperProgressBar?: boolean;
16
+ }
17
+ declare const ProgressBar: React.FC<ProgressBarProps>;
18
+ export default ProgressBar;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import "./ProgressBar.css";
3
+ import "../../../styles/global.css";
4
+ import "../../../styles/icons.css";
5
+ var ProgressBar = function (_a) {
6
+ var steps = _a.steps, currentStep = _a.currentStep, _b = _a.startIcon, startIcon = _b === void 0 ? true : _b, _c = _a.endIcon, endIcon = _c === void 0 ? true : _c, onStartIconClick = _a.onStartIconClick, onEndIconClick = _a.onEndIconClick, _d = _a.showProgressBar, showProgressBar = _d === void 0 ? true : _d, _e = _a.barColor, barColor = _e === void 0 ? "blue" : _e, _f = _a.isWrapperProgressBar, isWrapperProgressBar = _f === void 0 ? true : _f;
7
+ var constrainedCurrentStep = Math.max(0, Math.min(currentStep, steps));
8
+ var progressWidth = constrainedCurrentStep === 0 ? 0 : (constrainedCurrentStep / steps) * 100;
9
+ var noIconsMargin = !startIcon && !endIcon ? "0px" : "0 10px";
10
+ return (React.createElement("div", { className: "progress-bar-container" },
11
+ isWrapperProgressBar && React.createElement("div", { className: "progress-bar-icon-container" }, startIcon && (React.createElement("button", { className: "progress-bar-chevron", onClick: onStartIconClick },
12
+ React.createElement("i", { className: "allaw-icon-chevron-left" })))),
13
+ React.createElement("div", { className: "progress-bar-background ".concat(showProgressBar ? "" : "hidden-content"), style: {
14
+ height: isWrapperProgressBar ? "6px" : "8px",
15
+ width: startIcon ? "calc(100% - 32px)" : "100%",
16
+ margin: noIconsMargin,
17
+ } },
18
+ React.createElement("div", { className: "progress-bar-fill progress-bar-fill-".concat(barColor), style: {
19
+ width: "".concat(progressWidth, "%"),
20
+ height: isWrapperProgressBar ? "6px" : "8px",
21
+ } })),
22
+ endIcon && (React.createElement("button", { className: "progress-bar-close", onClick: onEndIconClick },
23
+ React.createElement("i", { className: "allaw-icon-close" })))));
24
+ };
25
+ export default ProgressBar;
@@ -0,0 +1,83 @@
1
+ export const ActionsData: {};
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { ProgressBar as component };
5
+ export let tags: string[];
6
+ export let excludeStories: RegExp;
7
+ export namespace args {
8
+ let steps: number;
9
+ let currentStep: number;
10
+ let startIcon: boolean;
11
+ let endIcon: boolean;
12
+ let showProgressBar: boolean;
13
+ let barColor: string;
14
+ }
15
+ export namespace argTypes {
16
+ export namespace steps_1 {
17
+ namespace control {
18
+ let type: string;
19
+ }
20
+ }
21
+ export { steps_1 as steps };
22
+ export namespace currentStep_1 {
23
+ export namespace control_1 {
24
+ let type_1: string;
25
+ export { type_1 as type };
26
+ }
27
+ export { control_1 as control };
28
+ }
29
+ export { currentStep_1 as currentStep };
30
+ export namespace startIcon_1 {
31
+ export namespace control_2 {
32
+ let type_2: string;
33
+ export { type_2 as type };
34
+ }
35
+ export { control_2 as control };
36
+ }
37
+ export { startIcon_1 as startIcon };
38
+ export namespace endIcon_1 {
39
+ export namespace control_3 {
40
+ let type_3: string;
41
+ export { type_3 as type };
42
+ }
43
+ export { control_3 as control };
44
+ }
45
+ export { endIcon_1 as endIcon };
46
+ export namespace showProgressBar_1 {
47
+ export namespace control_4 {
48
+ let type_4: string;
49
+ export { type_4 as type };
50
+ }
51
+ export { control_4 as control };
52
+ }
53
+ export { showProgressBar_1 as showProgressBar };
54
+ export namespace barColor_1 {
55
+ export namespace control_5 {
56
+ let type_5: string;
57
+ export { type_5 as type };
58
+ export let options: string[];
59
+ }
60
+ export { control_5 as control };
61
+ export let description: string;
62
+ }
63
+ export { barColor_1 as barColor };
64
+ }
65
+ export namespace parameters {
66
+ namespace backgrounds {
67
+ let _default: string;
68
+ export { _default as default };
69
+ export let values: {
70
+ name: string;
71
+ value: string;
72
+ }[];
73
+ }
74
+ }
75
+ }
76
+ export default _default;
77
+ export const Default: any;
78
+ export const FirstStep: any;
79
+ export const Hidden: any;
80
+ export const RedProgress: any;
81
+ export const GreenProgress: any;
82
+ export const GreyProgress: any;
83
+ import ProgressBar from "./ProgressBar";
@@ -0,0 +1,88 @@
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 ProgressBar from "./ProgressBar";
14
+ import "../../../styles/global.css";
15
+ import "../../../styles/icons.css";
16
+ export var ActionsData = {};
17
+ export default {
18
+ title: "Components/Atoms/ProgressBars/ProgressBar",
19
+ component: ProgressBar,
20
+ tags: ["autodocs"],
21
+ excludeStories: /.*Data$/,
22
+ args: __assign(__assign({}, ActionsData), { steps: 5, currentStep: 2, startIcon: true, endIcon: true, showProgressBar: true, barColor: "blue" }),
23
+ argTypes: {
24
+ steps: {
25
+ control: {
26
+ type: "number",
27
+ },
28
+ },
29
+ currentStep: {
30
+ control: {
31
+ type: "number",
32
+ },
33
+ },
34
+ startIcon: {
35
+ control: {
36
+ type: "boolean",
37
+ },
38
+ },
39
+ endIcon: {
40
+ control: {
41
+ type: "boolean",
42
+ },
43
+ },
44
+ showProgressBar: {
45
+ control: {
46
+ type: "boolean",
47
+ },
48
+ },
49
+ barColor: {
50
+ control: {
51
+ type: "select",
52
+ options: ["blue", "red", "green", "grey"],
53
+ },
54
+ description: "Couleur de la barre de progression",
55
+ },
56
+ },
57
+ parameters: {
58
+ backgrounds: {
59
+ default: "light",
60
+ values: [
61
+ { name: "light", value: "#ffffff" },
62
+ { name: "grey", value: "#728ea7" },
63
+ { name: "figma", value: "#404040" },
64
+ { name: "dark", value: "#171e25" },
65
+ ],
66
+ },
67
+ },
68
+ };
69
+ var Template = function (args) { return React.createElement(ProgressBar, __assign({}, args)); };
70
+ export var Default = Template.bind({});
71
+ Default.args = {
72
+ steps: 5,
73
+ currentStep: 2,
74
+ startIcon: true,
75
+ endIcon: true,
76
+ showProgressBar: true,
77
+ barColor: "blue",
78
+ };
79
+ export var FirstStep = Template.bind({});
80
+ FirstStep.args = __assign(__assign({}, Default.args), { currentStep: 1 });
81
+ export var Hidden = Template.bind({});
82
+ Hidden.args = __assign(__assign({}, Default.args), { showProgressBar: false });
83
+ export var RedProgress = Template.bind({});
84
+ RedProgress.args = __assign(__assign({}, Default.args), { barColor: "red" });
85
+ export var GreenProgress = Template.bind({});
86
+ GreenProgress.args = __assign(__assign({}, Default.args), { barColor: "green" });
87
+ export var GreyProgress = Template.bind({});
88
+ GreyProgress.args = __assign(__assign({}, Default.args), { barColor: "grey" });
@@ -0,0 +1,2 @@
1
+ export { default as ProgressBar } from "./ProgressBar";
2
+ export type { ProgressBarProps } from "./ProgressBar";
@@ -0,0 +1 @@
1
+ export { default as ProgressBar } from "./ProgressBar";
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import "./RadioButton.css";
3
+ import "../../../styles/global.css";
4
+ export interface RadioButtonProps {
5
+ label: string;
6
+ style?: "user" | "hybride";
7
+ isActive: boolean;
8
+ onClick: () => void;
9
+ }
10
+ declare const RadioButton: React.FC<RadioButtonProps>;
11
+ export default RadioButton;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./RadioButton.css";
3
+ import "../../../styles/global.css";
4
+ var RadioButton = function (_a) {
5
+ var label = _a.label, _b = _a.style, style = _b === void 0 ? "user" : _b, isActive = _a.isActive, onClick = _a.onClick;
6
+ return (React.createElement("button", { className: "radio-button radio-button-".concat(style, " ").concat(isActive ? "radio-button-".concat(style, "-active") : ""), onClick: onClick },
7
+ React.createElement("span", { className: "radio-button-icon" }, isActive && React.createElement("span", { className: "radio-button-icon-inner" })),
8
+ React.createElement("span", { className: "radio-button-label" }, label)));
9
+ };
10
+ export default RadioButton;