allaw-ui 3.4.2 → 3.4.4

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 (432) hide show
  1. package/dist/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
  2. package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
  3. package/dist/app/[job]/[profile]/page.d.ts +0 -0
  4. package/dist/app/[job]/[profile]/page.js +0 -0
  5. package/dist/components/atoms/buttons/ActionButton.d.ts +18 -0
  6. package/dist/components/atoms/buttons/ActionButton.js +116 -0
  7. package/dist/components/atoms/buttons/ActionButton.stories.d.ts +108 -0
  8. package/dist/components/atoms/buttons/ActionButton.stories.js +167 -0
  9. package/dist/components/atoms/buttons/ActionCircleButton.d.ts +9 -0
  10. package/dist/components/atoms/buttons/ActionCircleButton.js +23 -0
  11. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +35 -0
  12. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +54 -0
  13. package/dist/components/atoms/buttons/AgendaSlot.d.ts +10 -0
  14. package/dist/components/atoms/buttons/AgendaSlot.js +7 -0
  15. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +41 -0
  16. package/dist/components/atoms/buttons/AgendaSlot.stories.js +77 -0
  17. package/dist/components/atoms/buttons/FavoriteToggle.d.ts +8 -0
  18. package/dist/components/atoms/buttons/FavoriteToggle.js +11 -0
  19. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +23 -0
  20. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +61 -0
  21. package/dist/components/atoms/buttons/FilterButton.d.ts +9 -0
  22. package/dist/components/atoms/buttons/FilterButton.js +9 -0
  23. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +36 -0
  24. package/dist/components/atoms/buttons/FilterButton.stories.js +56 -0
  25. package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +9 -0
  26. package/dist/components/atoms/buttons/FilterButtonPrimary.js +46 -0
  27. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +7 -0
  28. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +26 -0
  29. package/dist/components/atoms/buttons/GhostButton.d.ts +14 -0
  30. package/dist/components/atoms/buttons/GhostButton.js +11 -0
  31. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +79 -0
  32. package/dist/components/atoms/buttons/GhostButton.stories.js +95 -0
  33. package/dist/components/atoms/buttons/IconButton.d.ts +11 -0
  34. package/dist/components/atoms/buttons/IconButton.js +14 -0
  35. package/dist/components/atoms/buttons/IconButton.stories.d.ts +49 -0
  36. package/dist/components/atoms/buttons/IconButton.stories.js +88 -0
  37. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +12 -0
  38. package/dist/components/atoms/buttons/OAuthProviderButton.js +165 -0
  39. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +56 -0
  40. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +130 -0
  41. package/dist/components/atoms/buttons/PendingDocuments.d.ts +9 -0
  42. package/dist/components/atoms/buttons/PendingDocuments.js +15 -0
  43. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +52 -0
  44. package/dist/components/atoms/buttons/PendingDocuments.stories.js +67 -0
  45. package/dist/components/atoms/buttons/PrimaryButton.d.ts +19 -0
  46. package/dist/components/atoms/buttons/PrimaryButton.js +117 -0
  47. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +108 -0
  48. package/dist/components/atoms/buttons/PrimaryButton.stories.js +168 -0
  49. package/dist/components/atoms/buttons/SecondaryButton.d.ts +22 -0
  50. package/dist/components/atoms/buttons/SecondaryButton.js +151 -0
  51. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +97 -0
  52. package/dist/components/atoms/buttons/SecondaryButton.stories.js +177 -0
  53. package/dist/components/atoms/buttons/TabNavigation.d.ts +17 -0
  54. package/dist/components/atoms/buttons/TabNavigation.js +68 -0
  55. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +81 -0
  56. package/dist/components/atoms/buttons/TabNavigation.stories.js +178 -0
  57. package/dist/components/atoms/buttons/TertiaryButton.d.ts +15 -0
  58. package/dist/components/atoms/buttons/TertiaryButton.js +23 -0
  59. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +70 -0
  60. package/dist/components/atoms/buttons/TertiaryButton.stories.js +128 -0
  61. package/dist/components/atoms/buttons/index.d.ts +24 -0
  62. package/dist/components/atoms/buttons/index.js +12 -0
  63. package/dist/components/atoms/checkboxes/Checkbox.d.ts +15 -0
  64. package/dist/components/atoms/checkboxes/Checkbox.js +20 -0
  65. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +77 -0
  66. package/dist/components/atoms/checkboxes/Checkbox.stories.js +123 -0
  67. package/dist/components/atoms/checkboxes/index.d.ts +2 -0
  68. package/dist/components/atoms/checkboxes/index.js +1 -0
  69. package/dist/components/atoms/datepickers/Datepicker.d.ts +15 -0
  70. package/dist/components/atoms/datepickers/Datepicker.js +151 -0
  71. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +90 -0
  72. package/dist/components/atoms/datepickers/Datepicker.stories.js +67 -0
  73. package/dist/components/atoms/datepickers/index.d.ts +2 -0
  74. package/dist/components/atoms/datepickers/index.js +1 -0
  75. package/dist/components/atoms/featureCard/featureCard.d.ts +15 -0
  76. package/dist/components/atoms/featureCard/featureCard.js +16 -0
  77. package/dist/components/atoms/featureCard/featureCard.stories.d.ts +21 -0
  78. package/dist/components/atoms/featureCard/featureCard.stories.js +101 -0
  79. package/dist/components/atoms/featureCard/index.d.ts +2 -0
  80. package/dist/components/atoms/featureCard/index.js +1 -0
  81. package/dist/components/atoms/filter/Filter.d.ts +17 -0
  82. package/dist/components/atoms/filter/Filter.js +70 -0
  83. package/dist/components/atoms/filter/Filter.stories.d.ts +9 -0
  84. package/dist/components/atoms/filter/Filter.stories.js +77 -0
  85. package/dist/components/atoms/filter/index.d.ts +2 -0
  86. package/dist/components/atoms/filter/index.js +1 -0
  87. package/dist/components/atoms/filters/SingleFilter.d.ts +16 -0
  88. package/dist/components/atoms/filters/SingleFilter.js +99 -0
  89. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +7 -0
  90. package/dist/components/atoms/filters/SingleFilter.stories.js +33 -0
  91. package/dist/components/atoms/filters/index.d.ts +2 -0
  92. package/dist/components/atoms/filters/index.js +1 -0
  93. package/dist/components/atoms/inputs/Input.d.ts +29 -0
  94. package/dist/components/atoms/inputs/Input.js +94 -0
  95. package/dist/components/atoms/inputs/Input.stories.d.ts +63 -0
  96. package/dist/components/atoms/inputs/Input.stories.js +110 -0
  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.d.ts +25 -0
  102. package/dist/components/atoms/inputs/TextArea.js +77 -0
  103. package/dist/components/atoms/inputs/TextArea.stories.d.ts +95 -0
  104. package/dist/components/atoms/inputs/TextArea.stories.js +141 -0
  105. package/dist/components/atoms/inputs/VerificationCodeInput.d.ts +14 -0
  106. package/dist/components/atoms/inputs/VerificationCodeInput.js +155 -0
  107. package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +81 -0
  108. package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +89 -0
  109. package/dist/components/atoms/inputs/index.d.ts +8 -0
  110. package/dist/components/atoms/inputs/index.js +4 -0
  111. package/dist/components/atoms/progressBars/ProgressBar.d.ts +18 -0
  112. package/dist/components/atoms/progressBars/ProgressBar.js +26 -0
  113. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +83 -0
  114. package/dist/components/atoms/progressBars/ProgressBar.stories.js +88 -0
  115. package/dist/components/atoms/progressBars/index.d.ts +2 -0
  116. package/dist/components/atoms/progressBars/index.js +1 -0
  117. package/dist/components/atoms/radios/RadioButton.d.ts +12 -0
  118. package/dist/components/atoms/radios/RadioButton.js +10 -0
  119. package/dist/components/atoms/radios/RadioButton.stories.d.ts +36 -0
  120. package/dist/components/atoms/radios/RadioButton.stories.js +75 -0
  121. package/dist/components/atoms/radios/SelectCard.d.ts +24 -0
  122. package/dist/components/atoms/radios/SelectCard.js +100 -0
  123. package/dist/components/atoms/radios/SelectCard.stories.d.ts +92 -0
  124. package/dist/components/atoms/radios/SelectCard.stories.js +192 -0
  125. package/dist/components/atoms/radios/index.d.ts +4 -0
  126. package/dist/components/atoms/radios/index.js +2 -0
  127. package/dist/components/atoms/selects/ComboBox.d.ts +28 -0
  128. package/dist/components/atoms/selects/ComboBox.js +172 -0
  129. package/dist/components/atoms/selects/ComboBox.stories.d.ts +116 -0
  130. package/dist/components/atoms/selects/ComboBox.stories.js +136 -0
  131. package/dist/components/atoms/selects/Select.d.ts +25 -0
  132. package/dist/components/atoms/selects/Select.js +240 -0
  133. package/dist/components/atoms/selects/Select.stories.d.ts +95 -0
  134. package/dist/components/atoms/selects/Select.stories.js +161 -0
  135. package/dist/components/atoms/selects/SelectableListItem.d.ts +14 -0
  136. package/dist/components/atoms/selects/SelectableListItem.js +19 -0
  137. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +33 -0
  138. package/dist/components/atoms/selects/SelectableListItem.stories.js +53 -0
  139. package/dist/components/atoms/selects/index.d.ts +6 -0
  140. package/dist/components/atoms/selects/index.js +3 -0
  141. package/dist/components/atoms/tags/AppointementStatusTag.d.ts +8 -0
  142. package/dist/components/atoms/tags/AppointementStatusTag.js +42 -0
  143. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +17 -0
  144. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +70 -0
  145. package/dist/components/atoms/tags/FolderStatusTag.d.ts +8 -0
  146. package/dist/components/atoms/tags/FolderStatusTag.js +25 -0
  147. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +28 -0
  148. package/dist/components/atoms/tags/FolderStatusTag.stories.js +51 -0
  149. package/dist/components/atoms/tags/OtherStatusTag.d.ts +13 -0
  150. package/dist/components/atoms/tags/OtherStatusTag.js +15 -0
  151. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +97 -0
  152. package/dist/components/atoms/tags/OtherStatusTag.stories.js +151 -0
  153. package/dist/components/atoms/tags/index.d.ts +6 -0
  154. package/dist/components/atoms/tags/index.js +3 -0
  155. package/dist/components/atoms/typography/CardDate.d.ts +11 -0
  156. package/dist/components/atoms/typography/CardDate.js +52 -0
  157. package/dist/components/atoms/typography/CardDate.stories.d.ts +119 -0
  158. package/dist/components/atoms/typography/CardDate.stories.js +103 -0
  159. package/dist/components/atoms/typography/Heading.d.ts +16 -0
  160. package/dist/components/atoms/typography/Heading.js +39 -0
  161. package/dist/components/atoms/typography/Heading.stories.d.ts +79 -0
  162. package/dist/components/atoms/typography/Heading.stories.js +150 -0
  163. package/dist/components/atoms/typography/Link.d.ts +15 -0
  164. package/dist/components/atoms/typography/Link.js +35 -0
  165. package/dist/components/atoms/typography/Link.stories.d.ts +72 -0
  166. package/dist/components/atoms/typography/Link.stories.js +164 -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 +14 -0
  180. package/dist/components/atoms/typography/TinyInfo.js +18 -0
  181. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +58 -0
  182. package/dist/components/atoms/typography/TinyInfo.stories.js +117 -0
  183. package/dist/components/atoms/typography/index.d.ts +12 -0
  184. package/dist/components/atoms/typography/index.js +6 -0
  185. package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +4 -0
  186. package/dist/components/atoms/uiVariables/AnimatedBorder.js +11 -0
  187. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +17 -0
  188. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +20 -0
  189. package/dist/components/atoms/uiVariables/BorderRadius.d.ts +6 -0
  190. package/dist/components/atoms/uiVariables/BorderRadius.js +12 -0
  191. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +18 -0
  192. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +34 -0
  193. package/dist/components/atoms/uiVariables/Shadows.d.ts +6 -0
  194. package/dist/components/atoms/uiVariables/Shadows.js +11 -0
  195. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +18 -0
  196. package/dist/components/atoms/uiVariables/Shadows.stories.js +34 -0
  197. package/dist/components/atoms/uiVariables/Strokes.d.ts +6 -0
  198. package/dist/components/atoms/uiVariables/Strokes.js +10 -0
  199. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +18 -0
  200. package/dist/components/atoms/uiVariables/Strokes.stories.js +34 -0
  201. package/dist/components/atoms/uiVariables/index.d.ts +3 -0
  202. package/dist/components/atoms/uiVariables/index.js +3 -0
  203. package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +26 -0
  204. package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +109 -0
  205. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +70 -0
  206. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +186 -0
  207. package/dist/components/molecules/appointmentSlot/index.d.ts +2 -0
  208. package/dist/components/molecules/appointmentSlot/index.js +1 -0
  209. package/dist/components/molecules/banner/Banner.d.ts +20 -0
  210. package/dist/components/molecules/banner/Banner.js +28 -0
  211. package/dist/components/molecules/banner/Banner.stories.d.ts +31 -0
  212. package/dist/components/molecules/banner/Banner.stories.js +123 -0
  213. package/dist/components/molecules/banner/index.d.ts +2 -0
  214. package/dist/components/molecules/banner/index.js +1 -0
  215. package/dist/components/molecules/billingCount/BillingCount.d.ts +11 -0
  216. package/dist/components/molecules/billingCount/BillingCount.js +169 -0
  217. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +22 -0
  218. package/dist/components/molecules/billingCount/BillingCount.stories.js +49 -0
  219. package/dist/components/molecules/billingCount/index.d.ts +2 -0
  220. package/dist/components/molecules/billingCount/index.js +1 -0
  221. package/dist/components/molecules/blogCard/BlogCard.d.ts +13 -0
  222. package/dist/components/molecules/blogCard/BlogCard.js +32 -0
  223. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +10 -0
  224. package/dist/components/molecules/blogCard/BlogCard.stories.js +33 -0
  225. package/dist/components/molecules/blogCard/index.d.ts +2 -0
  226. package/dist/components/molecules/blogCard/index.js +1 -0
  227. package/dist/components/molecules/blogFooter/BlogFooter.d.ts +12 -0
  228. package/dist/components/molecules/blogFooter/BlogFooter.js +14 -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.stories.d.ts +49 -0
  236. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +63 -0
  237. package/dist/components/molecules/blogHeader/index.d.ts +2 -0
  238. package/dist/components/molecules/blogHeader/index.js +1 -0
  239. package/dist/components/molecules/blogText/BlogText.d.ts +7 -0
  240. package/dist/components/molecules/blogText/BlogText.js +11 -0
  241. package/dist/components/molecules/blogText/BlogText.stories.d.ts +31 -0
  242. package/dist/components/molecules/blogText/BlogText.stories.js +51 -0
  243. package/dist/components/molecules/blogText/index.d.ts +2 -0
  244. package/dist/components/molecules/blogText/index.js +1 -0
  245. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +8 -0
  246. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +15 -0
  247. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +37 -0
  248. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +58 -0
  249. package/dist/components/molecules/blogTextImageBlock/index.d.ts +2 -0
  250. package/dist/components/molecules/blogTextImageBlock/index.js +1 -0
  251. package/dist/components/molecules/brands/Brands.d.ts +9 -0
  252. package/dist/components/molecules/brands/Brands.js +13 -0
  253. package/dist/components/molecules/brands/Brands.stories.d.ts +8 -0
  254. package/dist/components/molecules/brands/Brands.stories.js +66 -0
  255. package/dist/components/molecules/brands/index.d.ts +2 -0
  256. package/dist/components/molecules/brands/index.js +1 -0
  257. package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +12 -0
  258. package/dist/components/molecules/breadcrumb/Breadcrumb.js +12 -0
  259. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +24 -0
  260. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +54 -0
  261. package/dist/components/molecules/breadcrumb/index.d.ts +2 -0
  262. package/dist/components/molecules/breadcrumb/index.js +1 -0
  263. package/dist/components/molecules/caseCard/CaseCard.d.ts +23 -0
  264. package/dist/components/molecules/caseCard/CaseCard.js +19 -0
  265. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +114 -0
  266. package/dist/components/molecules/caseCard/CaseCard.stories.js +200 -0
  267. package/dist/components/molecules/caseCard/index.d.ts +2 -0
  268. package/dist/components/molecules/caseCard/index.js +1 -0
  269. package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +16 -0
  270. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +20 -0
  271. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +11 -0
  272. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +59 -0
  273. package/dist/components/molecules/caseCardCompact/index.d.ts +2 -0
  274. package/dist/components/molecules/caseCardCompact/index.js +1 -0
  275. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +9 -0
  276. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +37 -0
  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 +20 -0
  282. package/dist/components/molecules/checkboxForm/CheckboxForm.js +30 -0
  283. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +94 -0
  284. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +157 -0
  285. package/dist/components/molecules/checkboxForm/ColoredCheckbox.d.ts +20 -0
  286. package/dist/components/molecules/checkboxForm/ColoredCheckbox.js +81 -0
  287. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +108 -0
  288. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +141 -0
  289. package/dist/components/molecules/checkboxForm/index.d.ts +4 -0
  290. package/dist/components/molecules/checkboxForm/index.js +2 -0
  291. package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +15 -0
  292. package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +18 -0
  293. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +11 -0
  294. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +59 -0
  295. package/dist/components/molecules/clientLinkCard/index.d.ts +2 -0
  296. package/dist/components/molecules/clientLinkCard/index.js +1 -0
  297. package/dist/components/molecules/contactCard/ContactCard.d.ts +16 -0
  298. package/dist/components/molecules/contactCard/ContactCard.js +31 -0
  299. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +68 -0
  300. package/dist/components/molecules/contactCard/ContactCard.stories.js +80 -0
  301. package/dist/components/molecules/contactCard/DetailedContactCard.d.ts +18 -0
  302. package/dist/components/molecules/contactCard/DetailedContactCard.js +61 -0
  303. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +94 -0
  304. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +83 -0
  305. package/dist/components/molecules/contactCard/index.d.ts +4 -0
  306. package/dist/components/molecules/contactCard/index.js +2 -0
  307. package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +16 -0
  308. package/dist/components/molecules/datepickerForm/DatepickerForm.js +13 -0
  309. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +164 -0
  310. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +113 -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.d.ts +16 -0
  314. package/dist/components/molecules/documentCard/DocumentCard.js +124 -0
  315. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +71 -0
  316. package/dist/components/molecules/documentCard/DocumentCard.stories.js +100 -0
  317. package/dist/components/molecules/documentCard/index.d.ts +2 -0
  318. package/dist/components/molecules/documentCard/index.js +1 -0
  319. package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +15 -0
  320. package/dist/components/molecules/employeeCard/EmployeeCard.js +34 -0
  321. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +74 -0
  322. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +65 -0
  323. package/dist/components/molecules/employeeCard/index.d.ts +2 -0
  324. package/dist/components/molecules/employeeCard/index.js +1 -0
  325. package/dist/components/molecules/entityAdminCard/EntityAdminCard.d.ts +13 -0
  326. package/dist/components/molecules/entityAdminCard/EntityAdminCard.js +34 -0
  327. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +8 -0
  328. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +34 -0
  329. package/dist/components/molecules/entityCard/EntityCard.d.ts +12 -0
  330. package/dist/components/molecules/entityCard/EntityCard.js +53 -0
  331. package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +7 -0
  332. package/dist/components/molecules/entityCard/EntityCard.stories.js +30 -0
  333. package/dist/components/molecules/entityCard/index.d.ts +2 -0
  334. package/dist/components/molecules/entityCard/index.js +1 -0
  335. package/dist/components/molecules/featureGrid/FeatureGrid.d.ts +8 -0
  336. package/dist/components/molecules/featureGrid/FeatureGrid.js +27 -0
  337. package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +7 -0
  338. package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +97 -0
  339. package/dist/components/molecules/featureGrid/index.d.ts +2 -0
  340. package/dist/components/molecules/featureGrid/index.js +1 -0
  341. package/dist/components/molecules/fileUploader/FileUploader.d.ts +41 -0
  342. package/dist/components/molecules/fileUploader/FileUploader.js +346 -0
  343. package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +107 -0
  344. package/dist/components/molecules/fileUploader/FileUploader.stories.js +232 -0
  345. package/dist/components/molecules/fileUploader/ImageCropperModal.d.ts +15 -0
  346. package/dist/components/molecules/fileUploader/ImageCropperModal.js +212 -0
  347. package/dist/components/molecules/fileUploader/index.d.ts +2 -0
  348. package/dist/components/molecules/fileUploader/index.js +1 -0
  349. package/dist/components/molecules/flexContent/FlexContent.d.ts +18 -0
  350. package/dist/components/molecules/flexContent/FlexContent.js +21 -0
  351. package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +9 -0
  352. package/dist/components/molecules/flexContent/FlexContent.stories.js +47 -0
  353. package/dist/components/molecules/flexContent/index.d.ts +2 -0
  354. package/dist/components/molecules/flexContent/index.js +1 -0
  355. package/dist/components/molecules/frameCTA/FrameCTA.d.ts +19 -0
  356. package/dist/components/molecules/frameCTA/FrameCTA.js +18 -0
  357. package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +8 -0
  358. package/dist/components/molecules/frameCTA/FrameCTA.stories.js +58 -0
  359. package/dist/components/molecules/frameCTA/index.d.ts +2 -0
  360. package/dist/components/molecules/frameCTA/index.js +1 -0
  361. package/dist/components/molecules/heroSection/HeroSection.d.ts +21 -0
  362. package/dist/components/molecules/heroSection/HeroSection.js +20 -0
  363. package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +46 -0
  364. package/dist/components/molecules/heroSection/HeroSection.stories.js +100 -0
  365. package/dist/components/molecules/heroSection/index.d.ts +2 -0
  366. package/dist/components/molecules/heroSection/index.js +1 -0
  367. package/dist/components/molecules/loadingBox/LoadingBox.d.ts +12 -0
  368. package/dist/components/molecules/loadingBox/LoadingBox.js +11 -0
  369. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +54 -0
  370. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +128 -0
  371. package/dist/components/molecules/loadingBox/index.d.ts +2 -0
  372. package/dist/components/molecules/loadingBox/index.js +1 -0
  373. package/dist/components/molecules/modal/Modal.d.ts +32 -0
  374. package/dist/components/molecules/modal/Modal.js +97 -0
  375. package/dist/components/molecules/modal/Modal.stories.d.ts +87 -0
  376. package/dist/components/molecules/modal/Modal.stories.js +126 -0
  377. package/dist/components/molecules/modal/index.d.ts +2 -0
  378. package/dist/components/molecules/modal/index.js +1 -0
  379. package/dist/components/molecules/pagination/Pagination.d.ts +10 -0
  380. package/dist/components/molecules/pagination/Pagination.js +64 -0
  381. package/dist/components/molecules/pagination/Pagination.stories.d.ts +44 -0
  382. package/dist/components/molecules/pagination/Pagination.stories.js +59 -0
  383. package/dist/components/molecules/pagination/index.d.ts +2 -0
  384. package/dist/components/molecules/pagination/index.js +1 -0
  385. package/dist/components/molecules/proCard/ProCard.d.ts +14 -0
  386. package/dist/components/molecules/proCard/ProCard.js +30 -0
  387. package/dist/components/molecules/proCard/ProCard.stories.d.ts +49 -0
  388. package/dist/components/molecules/proCard/ProCard.stories.js +69 -0
  389. package/dist/components/molecules/proCard/index.d.ts +2 -0
  390. package/dist/components/molecules/proCard/index.js +1 -0
  391. package/dist/components/molecules/questionAnswer/QuestionAnswer.d.ts +10 -0
  392. package/dist/components/molecules/questionAnswer/QuestionAnswer.js +33 -0
  393. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +17 -0
  394. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +48 -0
  395. package/dist/components/molecules/questionAnswer/index.d.ts +2 -0
  396. package/dist/components/molecules/questionAnswer/index.js +1 -0
  397. package/dist/components/molecules/radioForm/RadioForm.d.ts +12 -0
  398. package/dist/components/molecules/radioForm/RadioForm.js +27 -0
  399. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +27 -0
  400. package/dist/components/molecules/radioForm/RadioForm.stories.js +52 -0
  401. package/dist/components/molecules/radioForm/index.d.ts +2 -0
  402. package/dist/components/molecules/radioForm/index.js +1 -0
  403. package/dist/components/molecules/selectForm/SelectForm.d.ts +19 -0
  404. package/dist/components/molecules/selectForm/SelectForm.js +15 -0
  405. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +72 -0
  406. package/dist/components/molecules/selectForm/SelectForm.stories.js +104 -0
  407. package/dist/components/molecules/selectForm/index.d.ts +2 -0
  408. package/dist/components/molecules/selectForm/index.js +1 -0
  409. package/dist/components/molecules/stepper/ConfirmationModal.d.ts +14 -0
  410. package/dist/components/molecules/stepper/ConfirmationModal.js +26 -0
  411. package/dist/components/molecules/stepper/Stepper.d.ts +51 -0
  412. package/dist/components/molecules/stepper/Stepper.js +156 -0
  413. package/dist/components/molecules/stepper/Stepper.stories.d.ts +52 -0
  414. package/dist/components/molecules/stepper/Stepper.stories.js +206 -0
  415. package/dist/components/molecules/stepper/index.d.ts +2 -0
  416. package/dist/components/molecules/stepper/index.js +1 -0
  417. package/dist/index.d.ts +108 -0
  418. package/dist/index.js +108 -0
  419. package/dist/stories/Header.d.ts +13 -0
  420. package/dist/stories/Header.js +20 -0
  421. package/dist/stories/Header.stories.d.ts +18 -0
  422. package/dist/stories/Header.stories.js +26 -0
  423. package/dist/stories/Page.d.ts +3 -0
  424. package/dist/stories/Page.js +37 -0
  425. package/dist/stories/Page.stories.d.ts +12 -0
  426. package/dist/stories/Page.stories.js +76 -0
  427. package/dist/utils/regex.d.ts +5 -0
  428. package/dist/utils/regex.js +7 -0
  429. package/dist/utils/utils.d.ts +3 -0
  430. package/dist/utils/utils.js +58 -0
  431. package/package.json +1 -1
  432. package/dist/tsconfig.tsbuildinfo +0 -1
File without changes
File without changes
@@ -0,0 +1,18 @@
1
+ import React, { ButtonHTMLAttributes } from "react";
2
+ export interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ startIcon?: React.ReactNode;
4
+ endIcon?: React.ReactNode;
5
+ startIconName?: string;
6
+ endIconName?: string;
7
+ label: string;
8
+ disabled?: boolean;
9
+ onClick?: () => Promise<void> | void;
10
+ fullWidth?: boolean;
11
+ type?: "button" | "submit" | "reset";
12
+ isLoading?: boolean;
13
+ variant?: "default" | "warning";
14
+ size?: "medium" | "large";
15
+ dataTestId?: string;
16
+ }
17
+ declare const ActionButton: React.ForwardRefExoticComponent<ActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
18
+ export default ActionButton;
@@ -0,0 +1,116 @@
1
+ "use client";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
24
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __rest = (this && this.__rest) || function (s, e) {
50
+ var t = {};
51
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
52
+ t[p] = s[p];
53
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
54
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
55
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
56
+ t[p[i]] = s[p[i]];
57
+ }
58
+ return t;
59
+ };
60
+ import React, { forwardRef, useEffect, useImperativeHandle, useState, } from "react";
61
+ import styles from "./ActionButton.module.css";
62
+ var ActionButton = forwardRef(function (_a, ref) {
63
+ var startIcon = _a.startIcon, endIcon = _a.endIcon, startIconName = _a.startIconName, endIconName = _a.endIconName, label = _a.label, _b = _a.disabled, disabled = _b === void 0 ? false : _b, onClick = _a.onClick, _c = _a.fullWidth, fullWidth = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? "button" : _d, _e = _a.isLoading, isLoading = _e === void 0 ? false : _e, variant = _a.variant, _f = _a.size, size = _f === void 0 ? "medium" : _f, props = __rest(_a, ["startIcon", "endIcon", "startIconName", "endIconName", "label", "disabled", "onClick", "fullWidth", "type", "isLoading", "variant", "size"]);
64
+ var buttonRef = React.useRef(null);
65
+ var _g = useState(false), internalIsLoading = _g[0], setInternalIsLoading = _g[1];
66
+ var _h = useState(""), loadingDots = _h[0], setLoadingDots = _h[1];
67
+ useImperativeHandle(ref, function () { return buttonRef.current; });
68
+ var isButtonLoading = isLoading || internalIsLoading;
69
+ useEffect(function () {
70
+ var interval = null;
71
+ if (isButtonLoading) {
72
+ interval = setInterval(function () {
73
+ setLoadingDots(function (prev) {
74
+ if (prev.length >= 3)
75
+ return "";
76
+ return prev + ".";
77
+ });
78
+ }, 500);
79
+ }
80
+ return function () {
81
+ if (interval) {
82
+ clearInterval(interval);
83
+ }
84
+ };
85
+ }, [isButtonLoading]);
86
+ var handleClick = function (event) { return __awaiter(void 0, void 0, void 0, function () {
87
+ return __generator(this, function (_a) {
88
+ switch (_a.label) {
89
+ case 0:
90
+ if (isButtonLoading) {
91
+ event.preventDefault();
92
+ return [2 /*return*/];
93
+ }
94
+ if (!onClick) return [3 /*break*/, 4];
95
+ setInternalIsLoading(true);
96
+ _a.label = 1;
97
+ case 1:
98
+ _a.trys.push([1, , 3, 4]);
99
+ return [4 /*yield*/, onClick()];
100
+ case 2:
101
+ _a.sent();
102
+ return [3 /*break*/, 4];
103
+ case 3:
104
+ setInternalIsLoading(false);
105
+ return [7 /*endfinally*/];
106
+ case 4: return [2 /*return*/];
107
+ }
108
+ });
109
+ }); };
110
+ return (React.createElement("button", __assign({ ref: buttonRef, "data-testid": props.dataTestId, className: "".concat(styles.actionButton, " ").concat(disabled ? styles.actionButtonDisabled : styles.actionButtonEnabled, " ").concat(fullWidth ? styles.actionButtonFullWidth : "", " ").concat(isButtonLoading ? styles.actionButtonLoading : "", " ").concat(variant === "warning" ? styles.actionButtonWarning : "", " ").concat(size === "large" ? styles.actionButtonLarge : ""), disabled: disabled, onClick: handleClick, type: type }, props),
111
+ startIcon && (React.createElement("span", { className: "".concat(styles.actionButtonIcon, " ").concat(startIconName) })),
112
+ React.createElement("span", { className: styles.actionButtonLabel }, label),
113
+ isButtonLoading ? (React.createElement("span", { className: styles.actionButtonLoadingDots }, loadingDots)) : (endIcon && (React.createElement("span", { className: "".concat(styles.actionButtonIcon, " ").concat(endIconName) })))));
114
+ });
115
+ ActionButton.displayName = "ActionButton";
116
+ export default ActionButton;
@@ -0,0 +1,108 @@
1
+ export const ActionsData: {};
2
+ declare namespace _default {
3
+ export let title: string;
4
+ export { ActionButton as component };
5
+ export let tags: string[];
6
+ export let excludeStories: RegExp;
7
+ export let args: {};
8
+ export namespace argTypes {
9
+ export namespace startIcon {
10
+ namespace control {
11
+ let type: string;
12
+ }
13
+ namespace mapping {
14
+ let _true: string;
15
+ export { _true as true };
16
+ let _false: null;
17
+ export { _false as false };
18
+ }
19
+ }
20
+ export namespace endIcon {
21
+ export namespace control_1 {
22
+ let type_1: string;
23
+ export { type_1 as type };
24
+ }
25
+ export { control_1 as control };
26
+ export namespace mapping_1 {
27
+ let _true_1: string;
28
+ export { _true_1 as true };
29
+ let _false_1: null;
30
+ export { _false_1 as false };
31
+ }
32
+ export { mapping_1 as mapping };
33
+ }
34
+ export namespace startIconName {
35
+ export namespace control_2 {
36
+ let type_2: string;
37
+ export { type_2 as type };
38
+ }
39
+ export { control_2 as control };
40
+ }
41
+ export namespace endIconName {
42
+ export namespace control_3 {
43
+ let type_3: string;
44
+ export { type_3 as type };
45
+ }
46
+ export { control_3 as control };
47
+ }
48
+ export namespace type_4 {
49
+ export namespace control_4 {
50
+ let type_5: string;
51
+ export { type_5 as type };
52
+ export let options: string[];
53
+ }
54
+ export { control_4 as control };
55
+ }
56
+ export { type_4 as type };
57
+ export namespace isLoading {
58
+ export namespace control_5 {
59
+ let type_6: string;
60
+ export { type_6 as type };
61
+ }
62
+ export { control_5 as control };
63
+ }
64
+ export namespace variant {
65
+ export namespace control_6 {
66
+ let type_7: string;
67
+ export { type_7 as type };
68
+ let options_1: string[];
69
+ export { options_1 as options };
70
+ }
71
+ export { control_6 as control };
72
+ }
73
+ export namespace size {
74
+ export namespace control_7 {
75
+ let type_8: string;
76
+ export { type_8 as type };
77
+ let options_2: string[];
78
+ export { options_2 as options };
79
+ }
80
+ export { control_7 as control };
81
+ }
82
+ }
83
+ export namespace parameters {
84
+ namespace backgrounds {
85
+ let _default: string;
86
+ export { _default as default };
87
+ export let values: {
88
+ name: string;
89
+ value: string;
90
+ }[];
91
+ }
92
+ }
93
+ }
94
+ export default _default;
95
+ export const Default: any;
96
+ export const WithStartIcon: any;
97
+ export const WithEndIcon: any;
98
+ export const WithStartAndEndIcons: any;
99
+ export const Disabled: any;
100
+ export const Loading: any;
101
+ export const SubmitButton: any;
102
+ export const ResetButton: any;
103
+ export const AsyncButton: any;
104
+ export const WarningButton: any;
105
+ export const LargeButton: any;
106
+ export const LargeButtonWithIcons: any;
107
+ export const LargeWarningButton: any;
108
+ import ActionButton from "./ActionButton";
@@ -0,0 +1,167 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ import React from "react";
49
+ import ActionButton from "./ActionButton";
50
+ export var ActionsData = {};
51
+ export default {
52
+ title: "Components/Atoms/Buttons/ActionButton",
53
+ component: ActionButton,
54
+ tags: ["autodocs"],
55
+ excludeStories: /.*Data$/,
56
+ args: __assign({}, ActionsData),
57
+ argTypes: {
58
+ startIcon: {
59
+ control: {
60
+ type: "boolean",
61
+ },
62
+ mapping: {
63
+ true: "allaw-icon-arrow-right",
64
+ false: null,
65
+ },
66
+ },
67
+ endIcon: {
68
+ control: {
69
+ type: "boolean",
70
+ },
71
+ mapping: {
72
+ true: "allaw-icon-arrow-right",
73
+ false: null,
74
+ },
75
+ },
76
+ startIconName: {
77
+ control: {
78
+ type: "text",
79
+ },
80
+ },
81
+ endIconName: {
82
+ control: {
83
+ type: "text",
84
+ },
85
+ },
86
+ type: {
87
+ control: {
88
+ type: "select",
89
+ options: ["button", "submit", "reset"],
90
+ },
91
+ },
92
+ isLoading: {
93
+ control: {
94
+ type: "boolean",
95
+ },
96
+ },
97
+ variant: {
98
+ control: {
99
+ type: "select",
100
+ options: ["default", "warning"],
101
+ },
102
+ },
103
+ size: {
104
+ control: {
105
+ type: "select",
106
+ options: ["medium", "large"],
107
+ },
108
+ },
109
+ },
110
+ parameters: {
111
+ backgrounds: {
112
+ default: "light",
113
+ values: [
114
+ { name: "light", value: "#ffffff" },
115
+ { name: "grey", value: "#728ea7" },
116
+ { name: "figma", value: "#404040" },
117
+ { name: "dark", value: "#171e25" },
118
+ ],
119
+ },
120
+ },
121
+ };
122
+ var Template = function (args) { return React.createElement(ActionButton, __assign({}, args)); };
123
+ export var Default = Template.bind({});
124
+ Default.args = {
125
+ label: "Bouton",
126
+ startIcon: false,
127
+ endIcon: false,
128
+ startIconName: "allaw-icon-arrow-right",
129
+ endIconName: "allaw-icon-arrow-right",
130
+ disabled: false,
131
+ type: "button",
132
+ isLoading: false,
133
+ size: "medium",
134
+ };
135
+ export var WithStartIcon = Template.bind({});
136
+ WithStartIcon.args = __assign(__assign({}, Default.args), { startIcon: true });
137
+ export var WithEndIcon = Template.bind({});
138
+ WithEndIcon.args = __assign(__assign({}, Default.args), { endIcon: true });
139
+ export var WithStartAndEndIcons = Template.bind({});
140
+ WithStartAndEndIcons.args = __assign(__assign({}, Default.args), { startIcon: true, endIcon: true });
141
+ export var Disabled = Template.bind({});
142
+ Disabled.args = __assign(__assign({}, Default.args), { disabled: true });
143
+ export var Loading = Template.bind({});
144
+ Loading.args = __assign(__assign({}, Default.args), { isLoading: true });
145
+ export var SubmitButton = Template.bind({});
146
+ SubmitButton.args = __assign(__assign({}, Default.args), { type: "submit", label: "Submit" });
147
+ export var ResetButton = Template.bind({});
148
+ ResetButton.args = __assign(__assign({}, Default.args), { type: "reset", label: "Reset" });
149
+ export var AsyncButton = Template.bind({});
150
+ AsyncButton.args = __assign(__assign({}, Default.args), { label: "Async Action", onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
151
+ return __generator(this, function (_a) {
152
+ switch (_a.label) {
153
+ case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, 2000); })];
154
+ case 1:
155
+ _a.sent();
156
+ return [2 /*return*/];
157
+ }
158
+ });
159
+ }); } });
160
+ export var WarningButton = Template.bind({});
161
+ WarningButton.args = __assign(__assign({}, Default.args), { label: "Warning", variant: "warning" });
162
+ export var LargeButton = Template.bind({});
163
+ LargeButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton", size: "large" });
164
+ export var LargeButtonWithIcons = Template.bind({});
165
+ LargeButtonWithIcons.args = __assign(__assign({}, Default.args), { label: "Grand Bouton avec Icônes", startIcon: true, endIcon: true, size: "large" });
166
+ export var LargeWarningButton = Template.bind({});
167
+ LargeWarningButton.args = __assign(__assign({}, Default.args), { label: "Grand Bouton d'Alerte", variant: "warning", size: "large" });
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./ActionCircleButton.css";
3
+ interface ActionCircleButtonProps {
4
+ status: "approved" | "rejected" | "dual";
5
+ onApprove?: () => void;
6
+ onReject?: () => void;
7
+ }
8
+ declare const ActionCircleButton: React.FC<ActionCircleButtonProps>;
9
+ export default ActionCircleButton;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import "./ActionCircleButton.css";
3
+ var ActionCircleButton = function (_a) {
4
+ var status = _a.status, onApprove = _a.onApprove, onReject = _a.onReject;
5
+ if (status === "approved") {
6
+ return (React.createElement("button", { className: "approved-circle", onClick: onApprove },
7
+ React.createElement("span", { className: "allaw-icon-check approved-icon" })));
8
+ }
9
+ if (status === "rejected") {
10
+ return (React.createElement("button", { className: "rejected-circle", onClick: onReject },
11
+ React.createElement("span", { className: "allaw-icon-close rejected-icon" })));
12
+ }
13
+ if (status === "dual") {
14
+ return (React.createElement("div", { className: "dual-button" },
15
+ React.createElement("button", { className: "dual-rejected-icon", onClick: onReject },
16
+ React.createElement("span", { className: "allaw-icon-close" })),
17
+ React.createElement("span", { className: "separator" }),
18
+ React.createElement("button", { className: "dual-approved-icon", onClick: onApprove },
19
+ React.createElement("span", { className: "allaw-icon-check" }))));
20
+ }
21
+ return null;
22
+ };
23
+ export default ActionCircleButton;
@@ -0,0 +1,35 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { ActionCircleButton 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
+ namespace onApprove {
13
+ let action: string;
14
+ }
15
+ namespace onReject {
16
+ let action_1: string;
17
+ export { action_1 as action };
18
+ }
19
+ }
20
+ export namespace parameters {
21
+ namespace backgrounds {
22
+ let _default: string;
23
+ export { _default as default };
24
+ export let values: {
25
+ name: string;
26
+ value: string;
27
+ }[];
28
+ }
29
+ }
30
+ }
31
+ export default _default;
32
+ export const Approved: any;
33
+ export const Rejected: any;
34
+ export const Dual: any;
35
+ import ActionCircleButton from "./ActionCircleButton";
@@ -0,0 +1,54 @@
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 ActionCircleButton from "./ActionCircleButton";
14
+ import "../../../styles/global.css";
15
+ export default {
16
+ title: "Components/Atoms/Buttons/ActionCircleButton",
17
+ component: ActionCircleButton,
18
+ tags: ["autodocs"],
19
+ argTypes: {
20
+ status: {
21
+ control: {
22
+ type: "select",
23
+ options: ["approved", "rejected", "dual"],
24
+ },
25
+ },
26
+ onApprove: { action: "approved" },
27
+ onReject: { action: "rejected" },
28
+ },
29
+ parameters: {
30
+ backgrounds: {
31
+ default: "light",
32
+ values: [
33
+ { name: "light", value: "#ffffff" },
34
+ { name: "grey", value: "#728ea7" },
35
+ { name: "figma", value: "#404040" },
36
+ { name: "dark", value: "#171e25" },
37
+ ],
38
+ },
39
+ },
40
+ };
41
+ var Template = function (args) { return React.createElement(ActionCircleButton, __assign({}, args)); };
42
+ export var Approved = Template.bind({});
43
+ Approved.args = {
44
+ status: "approved",
45
+ };
46
+ export var Rejected = Template.bind({});
47
+ Rejected.args = {
48
+ status: "rejected",
49
+ };
50
+ export var Dual = Template.bind({});
51
+ Dual.args = {
52
+ status: "dual",
53
+ };
54
+ //
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./AgendaSlot.css";
3
+ interface AgendaSlotProps {
4
+ time: string;
5
+ appearance: "pro" | "hybride" | "user";
6
+ isDisabled?: boolean;
7
+ onClick?: () => void;
8
+ }
9
+ declare const AgendaSlot: React.FC<AgendaSlotProps>;
10
+ export default AgendaSlot;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./AgendaSlot.css";
3
+ var AgendaSlot = function (_a) {
4
+ var time = _a.time, appearance = _a.appearance, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, onClick = _a.onClick;
5
+ return (React.createElement("div", { className: "agenda-slot ".concat(appearance, " ").concat(isDisabled ? "disabled" : ""), onClick: !isDisabled ? onClick : undefined }, time));
6
+ };
7
+ export default AgendaSlot;
@@ -0,0 +1,41 @@
1
+ declare namespace _default {
2
+ export let title: string;
3
+ export { AgendaSlot as component };
4
+ export let tags: string[];
5
+ export namespace argTypes {
6
+ namespace appearance {
7
+ namespace control {
8
+ let type: string;
9
+ let options: string[];
10
+ }
11
+ }
12
+ namespace isDisabled {
13
+ export namespace control_1 {
14
+ let type_1: string;
15
+ export { type_1 as type };
16
+ }
17
+ export { control_1 as control };
18
+ }
19
+ namespace onClick {
20
+ namespace table {
21
+ let disable: boolean;
22
+ }
23
+ }
24
+ }
25
+ export namespace parameters {
26
+ namespace backgrounds {
27
+ let _default: string;
28
+ export { _default as default };
29
+ export let values: {
30
+ name: string;
31
+ value: string;
32
+ }[];
33
+ }
34
+ }
35
+ }
36
+ export default _default;
37
+ export const Default: any;
38
+ export const Hybride: any;
39
+ export const User: any;
40
+ export const Disabled: any;
41
+ import AgendaSlot from "./AgendaSlot";