allaw-ui 3.4.1 → 3.4.3

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/tsconfig.tsbuildinfo +1 -0
  2. package/package.json +1 -1
  3. package/dist/app/[job]/[profile]/common/ProfileClientWrapper.d.ts +0 -0
  4. package/dist/app/[job]/[profile]/common/ProfileClientWrapper.js +0 -0
  5. package/dist/app/[job]/[profile]/page.d.ts +0 -0
  6. package/dist/app/[job]/[profile]/page.js +0 -0
  7. package/dist/components/atoms/buttons/ActionButton.d.ts +0 -18
  8. package/dist/components/atoms/buttons/ActionButton.js +0 -116
  9. package/dist/components/atoms/buttons/ActionButton.stories.d.ts +0 -108
  10. package/dist/components/atoms/buttons/ActionButton.stories.js +0 -167
  11. package/dist/components/atoms/buttons/ActionCircleButton.d.ts +0 -9
  12. package/dist/components/atoms/buttons/ActionCircleButton.js +0 -23
  13. package/dist/components/atoms/buttons/ActionCircleButton.stories.d.ts +0 -35
  14. package/dist/components/atoms/buttons/ActionCircleButton.stories.js +0 -54
  15. package/dist/components/atoms/buttons/AgendaSlot.d.ts +0 -10
  16. package/dist/components/atoms/buttons/AgendaSlot.js +0 -7
  17. package/dist/components/atoms/buttons/AgendaSlot.stories.d.ts +0 -41
  18. package/dist/components/atoms/buttons/AgendaSlot.stories.js +0 -77
  19. package/dist/components/atoms/buttons/FavoriteToggle.d.ts +0 -8
  20. package/dist/components/atoms/buttons/FavoriteToggle.js +0 -11
  21. package/dist/components/atoms/buttons/FavoriteToggle.stories.d.ts +0 -23
  22. package/dist/components/atoms/buttons/FavoriteToggle.stories.js +0 -61
  23. package/dist/components/atoms/buttons/FilterButton.d.ts +0 -9
  24. package/dist/components/atoms/buttons/FilterButton.js +0 -9
  25. package/dist/components/atoms/buttons/FilterButton.stories.d.ts +0 -36
  26. package/dist/components/atoms/buttons/FilterButton.stories.js +0 -56
  27. package/dist/components/atoms/buttons/FilterButtonPrimary.d.ts +0 -9
  28. package/dist/components/atoms/buttons/FilterButtonPrimary.js +0 -46
  29. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.d.ts +0 -7
  30. package/dist/components/atoms/buttons/FilterButtonPrimary.stories.js +0 -26
  31. package/dist/components/atoms/buttons/GhostButton.d.ts +0 -14
  32. package/dist/components/atoms/buttons/GhostButton.js +0 -11
  33. package/dist/components/atoms/buttons/GhostButton.stories.d.ts +0 -79
  34. package/dist/components/atoms/buttons/GhostButton.stories.js +0 -95
  35. package/dist/components/atoms/buttons/IconButton.d.ts +0 -11
  36. package/dist/components/atoms/buttons/IconButton.js +0 -14
  37. package/dist/components/atoms/buttons/IconButton.stories.d.ts +0 -49
  38. package/dist/components/atoms/buttons/IconButton.stories.js +0 -88
  39. package/dist/components/atoms/buttons/OAuthProviderButton.d.ts +0 -12
  40. package/dist/components/atoms/buttons/OAuthProviderButton.js +0 -165
  41. package/dist/components/atoms/buttons/OAuthProviderButton.stories.d.ts +0 -56
  42. package/dist/components/atoms/buttons/OAuthProviderButton.stories.js +0 -130
  43. package/dist/components/atoms/buttons/PendingDocuments.d.ts +0 -9
  44. package/dist/components/atoms/buttons/PendingDocuments.js +0 -15
  45. package/dist/components/atoms/buttons/PendingDocuments.stories.d.ts +0 -52
  46. package/dist/components/atoms/buttons/PendingDocuments.stories.js +0 -67
  47. package/dist/components/atoms/buttons/PrimaryButton.d.ts +0 -19
  48. package/dist/components/atoms/buttons/PrimaryButton.js +0 -117
  49. package/dist/components/atoms/buttons/PrimaryButton.stories.d.ts +0 -108
  50. package/dist/components/atoms/buttons/PrimaryButton.stories.js +0 -168
  51. package/dist/components/atoms/buttons/SecondaryButton.d.ts +0 -22
  52. package/dist/components/atoms/buttons/SecondaryButton.js +0 -151
  53. package/dist/components/atoms/buttons/SecondaryButton.stories.d.ts +0 -97
  54. package/dist/components/atoms/buttons/SecondaryButton.stories.js +0 -177
  55. package/dist/components/atoms/buttons/TabNavigation.d.ts +0 -17
  56. package/dist/components/atoms/buttons/TabNavigation.js +0 -68
  57. package/dist/components/atoms/buttons/TabNavigation.stories.d.ts +0 -81
  58. package/dist/components/atoms/buttons/TabNavigation.stories.js +0 -178
  59. package/dist/components/atoms/buttons/TertiaryButton.d.ts +0 -15
  60. package/dist/components/atoms/buttons/TertiaryButton.js +0 -23
  61. package/dist/components/atoms/buttons/TertiaryButton.stories.d.ts +0 -70
  62. package/dist/components/atoms/buttons/TertiaryButton.stories.js +0 -128
  63. package/dist/components/atoms/buttons/index.d.ts +0 -24
  64. package/dist/components/atoms/buttons/index.js +0 -12
  65. package/dist/components/atoms/checkboxes/Checkbox.d.ts +0 -15
  66. package/dist/components/atoms/checkboxes/Checkbox.js +0 -20
  67. package/dist/components/atoms/checkboxes/Checkbox.stories.d.ts +0 -77
  68. package/dist/components/atoms/checkboxes/Checkbox.stories.js +0 -123
  69. package/dist/components/atoms/checkboxes/index.d.ts +0 -2
  70. package/dist/components/atoms/checkboxes/index.js +0 -1
  71. package/dist/components/atoms/datepickers/Datepicker.d.ts +0 -15
  72. package/dist/components/atoms/datepickers/Datepicker.js +0 -151
  73. package/dist/components/atoms/datepickers/Datepicker.stories.d.ts +0 -90
  74. package/dist/components/atoms/datepickers/Datepicker.stories.js +0 -67
  75. package/dist/components/atoms/datepickers/index.d.ts +0 -2
  76. package/dist/components/atoms/datepickers/index.js +0 -1
  77. package/dist/components/atoms/featureCard/featureCard.d.ts +0 -15
  78. package/dist/components/atoms/featureCard/featureCard.js +0 -16
  79. package/dist/components/atoms/featureCard/featureCard.stories.d.ts +0 -21
  80. package/dist/components/atoms/featureCard/featureCard.stories.js +0 -101
  81. package/dist/components/atoms/featureCard/index.d.ts +0 -2
  82. package/dist/components/atoms/featureCard/index.js +0 -1
  83. package/dist/components/atoms/filter/Filter.d.ts +0 -17
  84. package/dist/components/atoms/filter/Filter.js +0 -70
  85. package/dist/components/atoms/filter/Filter.stories.d.ts +0 -9
  86. package/dist/components/atoms/filter/Filter.stories.js +0 -77
  87. package/dist/components/atoms/filter/index.d.ts +0 -2
  88. package/dist/components/atoms/filter/index.js +0 -1
  89. package/dist/components/atoms/filters/SingleFilter.d.ts +0 -16
  90. package/dist/components/atoms/filters/SingleFilter.js +0 -99
  91. package/dist/components/atoms/filters/SingleFilter.stories.d.ts +0 -7
  92. package/dist/components/atoms/filters/SingleFilter.stories.js +0 -33
  93. package/dist/components/atoms/filters/index.d.ts +0 -2
  94. package/dist/components/atoms/filters/index.js +0 -1
  95. package/dist/components/atoms/inputs/Input.d.ts +0 -29
  96. package/dist/components/atoms/inputs/Input.js +0 -94
  97. package/dist/components/atoms/inputs/Input.stories.d.ts +0 -63
  98. package/dist/components/atoms/inputs/Input.stories.js +0 -110
  99. package/dist/components/atoms/inputs/SearchBar.d.ts +0 -12
  100. package/dist/components/atoms/inputs/SearchBar.js +0 -20
  101. package/dist/components/atoms/inputs/SearchBar.stories.d.ts +0 -54
  102. package/dist/components/atoms/inputs/SearchBar.stories.js +0 -67
  103. package/dist/components/atoms/inputs/TextArea.d.ts +0 -25
  104. package/dist/components/atoms/inputs/TextArea.js +0 -77
  105. package/dist/components/atoms/inputs/TextArea.stories.d.ts +0 -95
  106. package/dist/components/atoms/inputs/TextArea.stories.js +0 -141
  107. package/dist/components/atoms/inputs/VerificationCodeInput.d.ts +0 -14
  108. package/dist/components/atoms/inputs/VerificationCodeInput.js +0 -155
  109. package/dist/components/atoms/inputs/VerificationCodeInput.stories.d.ts +0 -81
  110. package/dist/components/atoms/inputs/VerificationCodeInput.stories.js +0 -89
  111. package/dist/components/atoms/inputs/index.d.ts +0 -8
  112. package/dist/components/atoms/inputs/index.js +0 -4
  113. package/dist/components/atoms/progressBars/ProgressBar.d.ts +0 -18
  114. package/dist/components/atoms/progressBars/ProgressBar.js +0 -26
  115. package/dist/components/atoms/progressBars/ProgressBar.stories.d.ts +0 -83
  116. package/dist/components/atoms/progressBars/ProgressBar.stories.js +0 -88
  117. package/dist/components/atoms/progressBars/index.d.ts +0 -2
  118. package/dist/components/atoms/progressBars/index.js +0 -1
  119. package/dist/components/atoms/radios/RadioButton.d.ts +0 -12
  120. package/dist/components/atoms/radios/RadioButton.js +0 -10
  121. package/dist/components/atoms/radios/RadioButton.stories.d.ts +0 -36
  122. package/dist/components/atoms/radios/RadioButton.stories.js +0 -75
  123. package/dist/components/atoms/radios/SelectCard.d.ts +0 -24
  124. package/dist/components/atoms/radios/SelectCard.js +0 -100
  125. package/dist/components/atoms/radios/SelectCard.stories.d.ts +0 -92
  126. package/dist/components/atoms/radios/SelectCard.stories.js +0 -192
  127. package/dist/components/atoms/radios/index.d.ts +0 -4
  128. package/dist/components/atoms/radios/index.js +0 -2
  129. package/dist/components/atoms/selects/ComboBox.d.ts +0 -28
  130. package/dist/components/atoms/selects/ComboBox.js +0 -172
  131. package/dist/components/atoms/selects/ComboBox.stories.d.ts +0 -116
  132. package/dist/components/atoms/selects/ComboBox.stories.js +0 -136
  133. package/dist/components/atoms/selects/Select.d.ts +0 -25
  134. package/dist/components/atoms/selects/Select.js +0 -240
  135. package/dist/components/atoms/selects/Select.stories.d.ts +0 -95
  136. package/dist/components/atoms/selects/Select.stories.js +0 -161
  137. package/dist/components/atoms/selects/SelectableListItem.d.ts +0 -14
  138. package/dist/components/atoms/selects/SelectableListItem.js +0 -19
  139. package/dist/components/atoms/selects/SelectableListItem.stories.d.ts +0 -33
  140. package/dist/components/atoms/selects/SelectableListItem.stories.js +0 -53
  141. package/dist/components/atoms/selects/index.d.ts +0 -6
  142. package/dist/components/atoms/selects/index.js +0 -3
  143. package/dist/components/atoms/tags/AppointementStatusTag.d.ts +0 -8
  144. package/dist/components/atoms/tags/AppointementStatusTag.js +0 -42
  145. package/dist/components/atoms/tags/AppointementStatusTag.stories.d.ts +0 -17
  146. package/dist/components/atoms/tags/AppointementStatusTag.stories.js +0 -70
  147. package/dist/components/atoms/tags/FolderStatusTag.d.ts +0 -8
  148. package/dist/components/atoms/tags/FolderStatusTag.js +0 -25
  149. package/dist/components/atoms/tags/FolderStatusTag.stories.d.ts +0 -28
  150. package/dist/components/atoms/tags/FolderStatusTag.stories.js +0 -51
  151. package/dist/components/atoms/tags/OtherStatusTag.d.ts +0 -13
  152. package/dist/components/atoms/tags/OtherStatusTag.js +0 -15
  153. package/dist/components/atoms/tags/OtherStatusTag.stories.d.ts +0 -97
  154. package/dist/components/atoms/tags/OtherStatusTag.stories.js +0 -151
  155. package/dist/components/atoms/tags/index.d.ts +0 -6
  156. package/dist/components/atoms/tags/index.js +0 -3
  157. package/dist/components/atoms/typography/CardDate.d.ts +0 -11
  158. package/dist/components/atoms/typography/CardDate.js +0 -52
  159. package/dist/components/atoms/typography/CardDate.stories.d.ts +0 -119
  160. package/dist/components/atoms/typography/CardDate.stories.js +0 -103
  161. package/dist/components/atoms/typography/Heading.d.ts +0 -16
  162. package/dist/components/atoms/typography/Heading.js +0 -39
  163. package/dist/components/atoms/typography/Heading.stories.d.ts +0 -79
  164. package/dist/components/atoms/typography/Heading.stories.js +0 -150
  165. package/dist/components/atoms/typography/Link.d.ts +0 -15
  166. package/dist/components/atoms/typography/Link.js +0 -35
  167. package/dist/components/atoms/typography/Link.stories.d.ts +0 -72
  168. package/dist/components/atoms/typography/Link.stories.js +0 -164
  169. package/dist/components/atoms/typography/Paragraph.d.ts +0 -14
  170. package/dist/components/atoms/typography/Paragraph.js +0 -33
  171. package/dist/components/atoms/typography/Paragraph.stories.d.ts +0 -56
  172. package/dist/components/atoms/typography/Paragraph.stories.js +0 -97
  173. package/dist/components/atoms/typography/SmallTitle.d.ts +0 -9
  174. package/dist/components/atoms/typography/SmallTitle.js +0 -7
  175. package/dist/components/atoms/typography/SmallTitle.stories.d.ts +0 -42
  176. package/dist/components/atoms/typography/SmallTitle.stories.js +0 -72
  177. package/dist/components/atoms/typography/Subtitle.d.ts +0 -9
  178. package/dist/components/atoms/typography/Subtitle.js +0 -7
  179. package/dist/components/atoms/typography/Subtitle.stories.d.ts +0 -40
  180. package/dist/components/atoms/typography/Subtitle.stories.js +0 -60
  181. package/dist/components/atoms/typography/TinyInfo.d.ts +0 -14
  182. package/dist/components/atoms/typography/TinyInfo.js +0 -18
  183. package/dist/components/atoms/typography/TinyInfo.stories.d.ts +0 -58
  184. package/dist/components/atoms/typography/TinyInfo.stories.js +0 -117
  185. package/dist/components/atoms/typography/index.d.ts +0 -12
  186. package/dist/components/atoms/typography/index.js +0 -6
  187. package/dist/components/atoms/uiVariables/AnimatedBorder.d.ts +0 -4
  188. package/dist/components/atoms/uiVariables/AnimatedBorder.js +0 -11
  189. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.d.ts +0 -17
  190. package/dist/components/atoms/uiVariables/AnimatedBorder.stories.js +0 -20
  191. package/dist/components/atoms/uiVariables/BorderRadius.d.ts +0 -6
  192. package/dist/components/atoms/uiVariables/BorderRadius.js +0 -12
  193. package/dist/components/atoms/uiVariables/BorderRadius.stories.d.ts +0 -18
  194. package/dist/components/atoms/uiVariables/BorderRadius.stories.js +0 -34
  195. package/dist/components/atoms/uiVariables/Shadows.d.ts +0 -6
  196. package/dist/components/atoms/uiVariables/Shadows.js +0 -11
  197. package/dist/components/atoms/uiVariables/Shadows.stories.d.ts +0 -18
  198. package/dist/components/atoms/uiVariables/Shadows.stories.js +0 -34
  199. package/dist/components/atoms/uiVariables/Strokes.d.ts +0 -6
  200. package/dist/components/atoms/uiVariables/Strokes.js +0 -10
  201. package/dist/components/atoms/uiVariables/Strokes.stories.d.ts +0 -18
  202. package/dist/components/atoms/uiVariables/Strokes.stories.js +0 -34
  203. package/dist/components/atoms/uiVariables/index.d.ts +0 -3
  204. package/dist/components/atoms/uiVariables/index.js +0 -3
  205. package/dist/components/molecules/appointmentSlot/AppointmentSlot.d.ts +0 -26
  206. package/dist/components/molecules/appointmentSlot/AppointmentSlot.js +0 -109
  207. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.d.ts +0 -70
  208. package/dist/components/molecules/appointmentSlot/AppointmentSlot.stories.js +0 -186
  209. package/dist/components/molecules/appointmentSlot/index.d.ts +0 -2
  210. package/dist/components/molecules/appointmentSlot/index.js +0 -1
  211. package/dist/components/molecules/banner/Banner.d.ts +0 -20
  212. package/dist/components/molecules/banner/Banner.js +0 -28
  213. package/dist/components/molecules/banner/Banner.stories.d.ts +0 -31
  214. package/dist/components/molecules/banner/Banner.stories.js +0 -123
  215. package/dist/components/molecules/banner/index.d.ts +0 -2
  216. package/dist/components/molecules/banner/index.js +0 -1
  217. package/dist/components/molecules/billingCount/BillingCount.d.ts +0 -11
  218. package/dist/components/molecules/billingCount/BillingCount.js +0 -169
  219. package/dist/components/molecules/billingCount/BillingCount.stories.d.ts +0 -22
  220. package/dist/components/molecules/billingCount/BillingCount.stories.js +0 -49
  221. package/dist/components/molecules/billingCount/index.d.ts +0 -2
  222. package/dist/components/molecules/billingCount/index.js +0 -1
  223. package/dist/components/molecules/blogCard/BlogCard.d.ts +0 -13
  224. package/dist/components/molecules/blogCard/BlogCard.js +0 -32
  225. package/dist/components/molecules/blogCard/BlogCard.stories.d.ts +0 -10
  226. package/dist/components/molecules/blogCard/BlogCard.stories.js +0 -33
  227. package/dist/components/molecules/blogCard/index.d.ts +0 -2
  228. package/dist/components/molecules/blogCard/index.js +0 -1
  229. package/dist/components/molecules/blogFooter/BlogFooter.d.ts +0 -12
  230. package/dist/components/molecules/blogFooter/BlogFooter.js +0 -14
  231. package/dist/components/molecules/blogFooter/BlogFooter.stories.d.ts +0 -60
  232. package/dist/components/molecules/blogFooter/BlogFooter.stories.js +0 -67
  233. package/dist/components/molecules/blogFooter/index.d.ts +0 -2
  234. package/dist/components/molecules/blogFooter/index.js +0 -1
  235. package/dist/components/molecules/blogHeader/BlogHeader.d.ts +0 -11
  236. package/dist/components/molecules/blogHeader/BlogHeader.js +0 -21
  237. package/dist/components/molecules/blogHeader/BlogHeader.stories.d.ts +0 -49
  238. package/dist/components/molecules/blogHeader/BlogHeader.stories.js +0 -63
  239. package/dist/components/molecules/blogHeader/index.d.ts +0 -2
  240. package/dist/components/molecules/blogHeader/index.js +0 -1
  241. package/dist/components/molecules/blogText/BlogText.d.ts +0 -7
  242. package/dist/components/molecules/blogText/BlogText.js +0 -11
  243. package/dist/components/molecules/blogText/BlogText.stories.d.ts +0 -31
  244. package/dist/components/molecules/blogText/BlogText.stories.js +0 -51
  245. package/dist/components/molecules/blogText/index.d.ts +0 -2
  246. package/dist/components/molecules/blogText/index.js +0 -1
  247. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.d.ts +0 -8
  248. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.js +0 -15
  249. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.d.ts +0 -37
  250. package/dist/components/molecules/blogTextImageBlock/BlogTextImageBlock.stories.js +0 -58
  251. package/dist/components/molecules/blogTextImageBlock/index.d.ts +0 -2
  252. package/dist/components/molecules/blogTextImageBlock/index.js +0 -1
  253. package/dist/components/molecules/brands/Brands.d.ts +0 -9
  254. package/dist/components/molecules/brands/Brands.js +0 -13
  255. package/dist/components/molecules/brands/Brands.stories.d.ts +0 -8
  256. package/dist/components/molecules/brands/Brands.stories.js +0 -66
  257. package/dist/components/molecules/brands/index.d.ts +0 -2
  258. package/dist/components/molecules/brands/index.js +0 -1
  259. package/dist/components/molecules/breadcrumb/Breadcrumb.d.ts +0 -12
  260. package/dist/components/molecules/breadcrumb/Breadcrumb.js +0 -12
  261. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.d.ts +0 -24
  262. package/dist/components/molecules/breadcrumb/Breadcrumb.stories.js +0 -54
  263. package/dist/components/molecules/breadcrumb/index.d.ts +0 -2
  264. package/dist/components/molecules/breadcrumb/index.js +0 -1
  265. package/dist/components/molecules/caseCard/CaseCard.d.ts +0 -23
  266. package/dist/components/molecules/caseCard/CaseCard.js +0 -19
  267. package/dist/components/molecules/caseCard/CaseCard.stories.d.ts +0 -114
  268. package/dist/components/molecules/caseCard/CaseCard.stories.js +0 -200
  269. package/dist/components/molecules/caseCard/index.d.ts +0 -2
  270. package/dist/components/molecules/caseCard/index.js +0 -1
  271. package/dist/components/molecules/caseCardCompact/CaseCardCompact.d.ts +0 -16
  272. package/dist/components/molecules/caseCardCompact/CaseCardCompact.js +0 -20
  273. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.d.ts +0 -11
  274. package/dist/components/molecules/caseCardCompact/CaseCardCompact.stories.js +0 -59
  275. package/dist/components/molecules/caseCardCompact/index.d.ts +0 -2
  276. package/dist/components/molecules/caseCardCompact/index.js +0 -1
  277. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.d.ts +0 -9
  278. package/dist/components/molecules/caseLinkCard/CaseCardLink.stories.js +0 -37
  279. package/dist/components/molecules/caseLinkCard/CaseLinkCard.d.ts +0 -13
  280. package/dist/components/molecules/caseLinkCard/CaseLinkCard.js +0 -37
  281. package/dist/components/molecules/caseLinkCard/index.d.ts +0 -2
  282. package/dist/components/molecules/caseLinkCard/index.js +0 -1
  283. package/dist/components/molecules/checkboxForm/CheckboxForm.d.ts +0 -20
  284. package/dist/components/molecules/checkboxForm/CheckboxForm.js +0 -30
  285. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.d.ts +0 -94
  286. package/dist/components/molecules/checkboxForm/CheckboxForm.stories.js +0 -157
  287. package/dist/components/molecules/checkboxForm/ColoredCheckbox.d.ts +0 -20
  288. package/dist/components/molecules/checkboxForm/ColoredCheckbox.js +0 -81
  289. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.d.ts +0 -108
  290. package/dist/components/molecules/checkboxForm/ColoredCheckbox.stories.js +0 -141
  291. package/dist/components/molecules/checkboxForm/index.d.ts +0 -4
  292. package/dist/components/molecules/checkboxForm/index.js +0 -2
  293. package/dist/components/molecules/clientLinkCard/ClientLinkCard.d.ts +0 -15
  294. package/dist/components/molecules/clientLinkCard/ClientLinkCard.js +0 -18
  295. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.d.ts +0 -11
  296. package/dist/components/molecules/clientLinkCard/ClientLinkCard.stories.js +0 -59
  297. package/dist/components/molecules/clientLinkCard/index.d.ts +0 -2
  298. package/dist/components/molecules/clientLinkCard/index.js +0 -1
  299. package/dist/components/molecules/contactCard/ContactCard.d.ts +0 -16
  300. package/dist/components/molecules/contactCard/ContactCard.js +0 -31
  301. package/dist/components/molecules/contactCard/ContactCard.stories.d.ts +0 -68
  302. package/dist/components/molecules/contactCard/ContactCard.stories.js +0 -80
  303. package/dist/components/molecules/contactCard/DetailedContactCard.d.ts +0 -18
  304. package/dist/components/molecules/contactCard/DetailedContactCard.js +0 -61
  305. package/dist/components/molecules/contactCard/DetailedContactCard.stories.d.ts +0 -94
  306. package/dist/components/molecules/contactCard/DetailedContactCard.stories.js +0 -83
  307. package/dist/components/molecules/contactCard/index.d.ts +0 -4
  308. package/dist/components/molecules/contactCard/index.js +0 -2
  309. package/dist/components/molecules/datepickerForm/DatepickerForm.d.ts +0 -16
  310. package/dist/components/molecules/datepickerForm/DatepickerForm.js +0 -13
  311. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.d.ts +0 -164
  312. package/dist/components/molecules/datepickerForm/DatepickerForm.stories.js +0 -113
  313. package/dist/components/molecules/datepickerForm/index.d.ts +0 -2
  314. package/dist/components/molecules/datepickerForm/index.js +0 -1
  315. package/dist/components/molecules/documentCard/DocumentCard.d.ts +0 -16
  316. package/dist/components/molecules/documentCard/DocumentCard.js +0 -124
  317. package/dist/components/molecules/documentCard/DocumentCard.stories.d.ts +0 -71
  318. package/dist/components/molecules/documentCard/DocumentCard.stories.js +0 -100
  319. package/dist/components/molecules/documentCard/index.d.ts +0 -2
  320. package/dist/components/molecules/documentCard/index.js +0 -1
  321. package/dist/components/molecules/employeeCard/EmployeeCard.d.ts +0 -15
  322. package/dist/components/molecules/employeeCard/EmployeeCard.js +0 -34
  323. package/dist/components/molecules/employeeCard/EmployeeCard.stories.d.ts +0 -74
  324. package/dist/components/molecules/employeeCard/EmployeeCard.stories.js +0 -65
  325. package/dist/components/molecules/employeeCard/index.d.ts +0 -2
  326. package/dist/components/molecules/employeeCard/index.js +0 -1
  327. package/dist/components/molecules/entityAdminCard/EntityAdminCard.d.ts +0 -13
  328. package/dist/components/molecules/entityAdminCard/EntityAdminCard.js +0 -29
  329. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.d.ts +0 -8
  330. package/dist/components/molecules/entityAdminCard/entityAdminCard.stories.js +0 -35
  331. package/dist/components/molecules/entityCard/EntityCard.d.ts +0 -12
  332. package/dist/components/molecules/entityCard/EntityCard.js +0 -53
  333. package/dist/components/molecules/entityCard/EntityCard.stories.d.ts +0 -7
  334. package/dist/components/molecules/entityCard/EntityCard.stories.js +0 -30
  335. package/dist/components/molecules/entityCard/index.d.ts +0 -2
  336. package/dist/components/molecules/entityCard/index.js +0 -1
  337. package/dist/components/molecules/featureGrid/FeatureGrid.d.ts +0 -8
  338. package/dist/components/molecules/featureGrid/FeatureGrid.js +0 -27
  339. package/dist/components/molecules/featureGrid/FeatureGrid.stories.d.ts +0 -7
  340. package/dist/components/molecules/featureGrid/FeatureGrid.stories.js +0 -97
  341. package/dist/components/molecules/featureGrid/index.d.ts +0 -2
  342. package/dist/components/molecules/featureGrid/index.js +0 -1
  343. package/dist/components/molecules/fileUploader/FileUploader.d.ts +0 -41
  344. package/dist/components/molecules/fileUploader/FileUploader.js +0 -346
  345. package/dist/components/molecules/fileUploader/FileUploader.stories.d.ts +0 -107
  346. package/dist/components/molecules/fileUploader/FileUploader.stories.js +0 -232
  347. package/dist/components/molecules/fileUploader/ImageCropperModal.d.ts +0 -15
  348. package/dist/components/molecules/fileUploader/ImageCropperModal.js +0 -212
  349. package/dist/components/molecules/fileUploader/index.d.ts +0 -2
  350. package/dist/components/molecules/fileUploader/index.js +0 -1
  351. package/dist/components/molecules/flexContent/FlexContent.d.ts +0 -18
  352. package/dist/components/molecules/flexContent/FlexContent.js +0 -21
  353. package/dist/components/molecules/flexContent/FlexContent.stories.d.ts +0 -9
  354. package/dist/components/molecules/flexContent/FlexContent.stories.js +0 -47
  355. package/dist/components/molecules/flexContent/index.d.ts +0 -2
  356. package/dist/components/molecules/flexContent/index.js +0 -1
  357. package/dist/components/molecules/frameCTA/FrameCTA.d.ts +0 -19
  358. package/dist/components/molecules/frameCTA/FrameCTA.js +0 -18
  359. package/dist/components/molecules/frameCTA/FrameCTA.stories.d.ts +0 -8
  360. package/dist/components/molecules/frameCTA/FrameCTA.stories.js +0 -58
  361. package/dist/components/molecules/frameCTA/index.d.ts +0 -2
  362. package/dist/components/molecules/frameCTA/index.js +0 -1
  363. package/dist/components/molecules/heroSection/HeroSection.d.ts +0 -21
  364. package/dist/components/molecules/heroSection/HeroSection.js +0 -20
  365. package/dist/components/molecules/heroSection/HeroSection.stories.d.ts +0 -46
  366. package/dist/components/molecules/heroSection/HeroSection.stories.js +0 -100
  367. package/dist/components/molecules/heroSection/index.d.ts +0 -2
  368. package/dist/components/molecules/heroSection/index.js +0 -1
  369. package/dist/components/molecules/loadingBox/LoadingBox.d.ts +0 -12
  370. package/dist/components/molecules/loadingBox/LoadingBox.js +0 -11
  371. package/dist/components/molecules/loadingBox/LoadingBox.stories.d.ts +0 -54
  372. package/dist/components/molecules/loadingBox/LoadingBox.stories.js +0 -128
  373. package/dist/components/molecules/loadingBox/index.d.ts +0 -2
  374. package/dist/components/molecules/loadingBox/index.js +0 -1
  375. package/dist/components/molecules/modal/Modal.d.ts +0 -32
  376. package/dist/components/molecules/modal/Modal.js +0 -97
  377. package/dist/components/molecules/modal/Modal.stories.d.ts +0 -87
  378. package/dist/components/molecules/modal/Modal.stories.js +0 -126
  379. package/dist/components/molecules/modal/index.d.ts +0 -2
  380. package/dist/components/molecules/modal/index.js +0 -1
  381. package/dist/components/molecules/pagination/Pagination.d.ts +0 -10
  382. package/dist/components/molecules/pagination/Pagination.js +0 -64
  383. package/dist/components/molecules/pagination/Pagination.stories.d.ts +0 -44
  384. package/dist/components/molecules/pagination/Pagination.stories.js +0 -59
  385. package/dist/components/molecules/pagination/index.d.ts +0 -2
  386. package/dist/components/molecules/pagination/index.js +0 -1
  387. package/dist/components/molecules/proCard/ProCard.d.ts +0 -14
  388. package/dist/components/molecules/proCard/ProCard.js +0 -30
  389. package/dist/components/molecules/proCard/ProCard.stories.d.ts +0 -49
  390. package/dist/components/molecules/proCard/ProCard.stories.js +0 -69
  391. package/dist/components/molecules/proCard/index.d.ts +0 -2
  392. package/dist/components/molecules/proCard/index.js +0 -1
  393. package/dist/components/molecules/questionAnswer/QuestionAnswer.d.ts +0 -10
  394. package/dist/components/molecules/questionAnswer/QuestionAnswer.js +0 -33
  395. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.d.ts +0 -17
  396. package/dist/components/molecules/questionAnswer/QuestionAnswer.stories.js +0 -48
  397. package/dist/components/molecules/questionAnswer/index.d.ts +0 -2
  398. package/dist/components/molecules/questionAnswer/index.js +0 -1
  399. package/dist/components/molecules/radioForm/RadioForm.d.ts +0 -12
  400. package/dist/components/molecules/radioForm/RadioForm.js +0 -27
  401. package/dist/components/molecules/radioForm/RadioForm.stories.d.ts +0 -27
  402. package/dist/components/molecules/radioForm/RadioForm.stories.js +0 -52
  403. package/dist/components/molecules/radioForm/index.d.ts +0 -2
  404. package/dist/components/molecules/radioForm/index.js +0 -1
  405. package/dist/components/molecules/selectForm/SelectForm.d.ts +0 -19
  406. package/dist/components/molecules/selectForm/SelectForm.js +0 -15
  407. package/dist/components/molecules/selectForm/SelectForm.stories.d.ts +0 -72
  408. package/dist/components/molecules/selectForm/SelectForm.stories.js +0 -104
  409. package/dist/components/molecules/selectForm/index.d.ts +0 -2
  410. package/dist/components/molecules/selectForm/index.js +0 -1
  411. package/dist/components/molecules/stepper/ConfirmationModal.d.ts +0 -14
  412. package/dist/components/molecules/stepper/ConfirmationModal.js +0 -26
  413. package/dist/components/molecules/stepper/Stepper.d.ts +0 -51
  414. package/dist/components/molecules/stepper/Stepper.js +0 -156
  415. package/dist/components/molecules/stepper/Stepper.stories.d.ts +0 -52
  416. package/dist/components/molecules/stepper/Stepper.stories.js +0 -206
  417. package/dist/components/molecules/stepper/index.d.ts +0 -2
  418. package/dist/components/molecules/stepper/index.js +0 -1
  419. package/dist/index.d.ts +0 -109
  420. package/dist/index.js +0 -108
  421. package/dist/stories/Header.d.ts +0 -13
  422. package/dist/stories/Header.js +0 -20
  423. package/dist/stories/Header.stories.d.ts +0 -18
  424. package/dist/stories/Header.stories.js +0 -26
  425. package/dist/stories/Page.d.ts +0 -3
  426. package/dist/stories/Page.js +0 -37
  427. package/dist/stories/Page.stories.d.ts +0 -12
  428. package/dist/stories/Page.stories.js +0 -76
  429. package/dist/utils/regex.d.ts +0 -5
  430. package/dist/utils/regex.js +0 -7
  431. package/dist/utils/utils.d.ts +0 -3
  432. package/dist/utils/utils.js +0 -58
@@ -1,165 +0,0 @@
1
- import React, { useState, useEffect, useRef } from "react";
2
- import "./OAuthProviderButton.css";
3
- import "../../../styles/global.css";
4
- var OAuthProviderButton = function (_a) {
5
- var provider = _a.provider, type = _a.type, url = _a.url, size = _a.size, onClick = _a.onClick;
6
- var _b = useState(""), label = _b[0], setLabel = _b[1];
7
- var buttonRef = useRef(null);
8
- var getLabels = function () {
9
- var labels = {
10
- login: {
11
- google: "Se connecter avec Google",
12
- apple: "Se connecter avec Apple",
13
- linkedin: "Se connecter avec LinkedIn",
14
- microsoft: "Se connecter avec Microsoft",
15
- },
16
- signup: {
17
- google: "S'inscrire avec Google",
18
- apple: "S'inscrire avec Apple",
19
- linkedin: "S'inscrire avec LinkedIn",
20
- microsoft: "S'inscrire avec Microsoft",
21
- },
22
- calendar: {
23
- google: "Connecter Google Calendar",
24
- apple: "Connecter Apple Calendar",
25
- linkedin: "Connecter LinkedIn",
26
- microsoft: "Connecter Microsoft Calendar",
27
- },
28
- };
29
- var shortLabels = {
30
- google: "Google",
31
- apple: "Apple",
32
- linkedin: "LinkedIn",
33
- microsoft: "Microsoft",
34
- };
35
- return { labels: labels, shortLabels: shortLabels };
36
- };
37
- var getThresholdWidth = function (size) {
38
- switch (size) {
39
- case 14:
40
- return 210;
41
- case 16:
42
- return 220;
43
- case 18:
44
- return 230;
45
- case 20:
46
- return 240;
47
- case 22:
48
- return 260;
49
- case 24:
50
- return 290;
51
- default:
52
- return 250;
53
- }
54
- };
55
- useEffect(function () {
56
- updateLabel();
57
- var timer = setTimeout(function () {
58
- updateLabel();
59
- }, 50);
60
- return function () { return clearTimeout(timer); };
61
- }, []);
62
- var updateLabel = function () {
63
- var _a = getLabels(), labels = _a.labels, shortLabels = _a.shortLabels;
64
- var thresholdWidth = getThresholdWidth(size);
65
- if (buttonRef.current) {
66
- var buttonWidth = buttonRef.current.offsetWidth;
67
- if (!label) {
68
- setLabel(labels[type][provider]);
69
- return;
70
- }
71
- if (buttonWidth < thresholdWidth) {
72
- setLabel(shortLabels[provider]);
73
- }
74
- else {
75
- setLabel(labels[type][provider]);
76
- }
77
- }
78
- };
79
- var renderIcon = function () {
80
- var iconSizes = {
81
- google: type === "calendar" ? size * 1.1 : size * 0.8,
82
- apple: size * 1.2,
83
- linkedin: size * 0.8,
84
- microsoft: size * 1,
85
- };
86
- var baseIconClass = {
87
- google: "allaw-icon-google",
88
- apple: "allaw-icon-apple",
89
- linkedin: "allaw-icon-linkedin",
90
- microsoft: "allaw-icon-microsoft",
91
- };
92
- var calendarIconClass = {
93
- google: "allaw-icon-google-calendar",
94
- microsoft: "allaw-icon-microsoft-outlook",
95
- };
96
- var iconClass = type === "calendar" && (provider === "google" || provider === "microsoft")
97
- ? calendarIconClass[provider]
98
- : baseIconClass[provider];
99
- if (provider === "google") {
100
- var isCalendar = type === "calendar";
101
- return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
102
- React.createElement("span", { className: "path1" }),
103
- React.createElement("span", { className: "path2" }),
104
- React.createElement("span", { className: "path3" }),
105
- React.createElement("span", { className: "path4" }),
106
- isCalendar && (React.createElement(React.Fragment, null,
107
- React.createElement("span", { className: "path5" }),
108
- React.createElement("span", { className: "path6" }),
109
- React.createElement("span", { className: "path7" }),
110
- React.createElement("span", { className: "path8" })))));
111
- }
112
- else if (provider === "linkedin") {
113
- var containerSize = size * 1.4;
114
- return (React.createElement("div", { className: "linkedin-icon-container", style: {
115
- fontSize: "".concat(iconSizes[provider], "px"),
116
- width: "".concat(containerSize, "px"),
117
- height: "".concat(containerSize, "px"),
118
- minWidth: "".concat(containerSize, "px"),
119
- minHeight: "".concat(containerSize, "px"),
120
- } },
121
- React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } })));
122
- }
123
- else if (provider === "microsoft") {
124
- return (React.createElement("span", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } },
125
- React.createElement("span", { className: "path1" }),
126
- React.createElement("span", { className: "path2" }),
127
- React.createElement("span", { className: "path3" }),
128
- React.createElement("span", { className: "path4" })));
129
- }
130
- else {
131
- return (React.createElement("i", { className: iconClass, style: { fontSize: "".concat(iconSizes[provider], "px") } }));
132
- }
133
- };
134
- var handleClick = function () {
135
- if (onClick) {
136
- onClick();
137
- }
138
- else {
139
- window.open(url, "_blank");
140
- }
141
- };
142
- var getMaxWidth = function () {
143
- switch (size) {
144
- case 14:
145
- return "200px";
146
- case 16:
147
- return "300px";
148
- case 18:
149
- return "320px";
150
- case 20:
151
- return "370px";
152
- case 22:
153
- return "380px";
154
- case 24:
155
- return "400px";
156
- default:
157
- return "400px";
158
- }
159
- };
160
- var maxWidth = getMaxWidth();
161
- return (React.createElement("button", { ref: buttonRef, className: "oauth-provider-button ".concat(provider), onClick: handleClick, style: { height: "".concat(size * 2.55, "px"), maxWidth: maxWidth } },
162
- renderIcon(),
163
- React.createElement("span", { className: "label", style: { fontSize: "".concat(size, "px") } }, label)));
164
- };
165
- export default OAuthProviderButton;
@@ -1,56 +0,0 @@
1
- declare namespace _default {
2
- export let title: string;
3
- export { OAuthProviderButton as component };
4
- export let tags: string[];
5
- export namespace argTypes {
6
- export namespace provider {
7
- namespace control {
8
- let type: string;
9
- let options: string[];
10
- }
11
- }
12
- export namespace type_1 {
13
- export namespace control_1 {
14
- let type_2: string;
15
- export { type_2 as type };
16
- let options_1: string[];
17
- export { options_1 as options };
18
- }
19
- export { control_1 as control };
20
- }
21
- export { type_1 as type };
22
- export namespace url {
23
- export namespace control_2 {
24
- let type_3: string;
25
- export { type_3 as type };
26
- }
27
- export { control_2 as control };
28
- }
29
- export namespace size {
30
- export namespace control_3 {
31
- let type_4: string;
32
- export { type_4 as type };
33
- let options_2: number[];
34
- export { options_2 as options };
35
- }
36
- export { control_3 as control };
37
- }
38
- export namespace onClick {
39
- let action: string;
40
- }
41
- }
42
- }
43
- export default _default;
44
- export const GoogleLogin: any;
45
- export const GoogleSignup: any;
46
- export const AppleLogin: any;
47
- export const AppleSignup: any;
48
- export const LinkedinLogin: any;
49
- export const LinkedinSignup: any;
50
- export const MicrosoftLogin: any;
51
- export const MicrosoftSignup: any;
52
- export const GoogleCalendar: any;
53
- export const AppleCalendar: any;
54
- export const LinkedinCalendar: any;
55
- export const MicrosoftCalendar: any;
56
- import OAuthProviderButton from "./OAuthProviderButton";
@@ -1,130 +0,0 @@
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 OAuthProviderButton from "./OAuthProviderButton";
14
- import "../../../styles/global.css";
15
- export default {
16
- title: "Components/Atoms/Buttons/OAuthProviderButton",
17
- component: OAuthProviderButton,
18
- tags: ["autodocs"],
19
- argTypes: {
20
- provider: {
21
- control: {
22
- type: "select",
23
- options: ["google", "apple", "linkedin", "microsoft"],
24
- },
25
- },
26
- type: {
27
- control: {
28
- type: "select",
29
- options: ["login", "signup"],
30
- },
31
- },
32
- url: {
33
- control: {
34
- type: "text",
35
- },
36
- },
37
- size: {
38
- control: {
39
- type: "select",
40
- options: [14, 16, 18, 20, 22, 24],
41
- },
42
- },
43
- onClick: { action: "clicked" },
44
- },
45
- };
46
- var Template = function (args) { return React.createElement(OAuthProviderButton, __assign({}, args)); };
47
- export var GoogleLogin = Template.bind({});
48
- GoogleLogin.args = {
49
- provider: "google",
50
- type: "login",
51
- url: "https://google.com",
52
- size: 20,
53
- };
54
- export var GoogleSignup = Template.bind({});
55
- GoogleSignup.args = {
56
- provider: "google",
57
- type: "signup",
58
- url: "https://google.com/signup",
59
- size: 20,
60
- };
61
- export var AppleLogin = Template.bind({});
62
- AppleLogin.args = {
63
- provider: "apple",
64
- type: "login",
65
- url: "https://apple.com",
66
- size: 20,
67
- };
68
- export var AppleSignup = Template.bind({});
69
- AppleSignup.args = {
70
- provider: "apple",
71
- type: "signup",
72
- url: "https://apple.com/signup",
73
- size: 20,
74
- };
75
- export var LinkedinLogin = Template.bind({});
76
- LinkedinLogin.args = {
77
- provider: "linkedin",
78
- type: "login",
79
- url: "https://linkedin.com",
80
- size: 20,
81
- };
82
- export var LinkedinSignup = Template.bind({});
83
- LinkedinSignup.args = {
84
- provider: "linkedin",
85
- type: "signup",
86
- url: "https://linkedin.com/signup",
87
- size: 20,
88
- };
89
- export var MicrosoftLogin = Template.bind({});
90
- MicrosoftLogin.args = {
91
- provider: "microsoft",
92
- type: "login",
93
- url: "https://microsoft.com",
94
- size: 20,
95
- };
96
- export var MicrosoftSignup = Template.bind({});
97
- MicrosoftSignup.args = {
98
- provider: "microsoft",
99
- type: "signup",
100
- url: "https://microsoft.com/signup",
101
- size: 20,
102
- };
103
- export var GoogleCalendar = Template.bind({});
104
- GoogleCalendar.args = {
105
- provider: "google",
106
- type: "calendar",
107
- url: "https://calendar.google.com/calendar/u/0/r/eventedit",
108
- size: 20,
109
- };
110
- export var AppleCalendar = Template.bind({});
111
- AppleCalendar.args = {
112
- provider: "apple",
113
- type: "calendar",
114
- url: "https://www.icloud.com/calendar",
115
- size: 20,
116
- };
117
- export var LinkedinCalendar = Template.bind({});
118
- LinkedinCalendar.args = {
119
- provider: "linkedin",
120
- type: "calendar",
121
- url: "#",
122
- size: 20,
123
- };
124
- export var MicrosoftCalendar = Template.bind({});
125
- MicrosoftCalendar.args = {
126
- provider: "microsoft",
127
- type: "calendar",
128
- url: "https://outlook.office.com/calendar",
129
- size: 20,
130
- };
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import "../../../styles/global.css";
3
- export interface PendingDocumentsProps {
4
- icon?: React.ReactNode;
5
- pendingCount: number;
6
- onClick?: () => void;
7
- }
8
- declare const PendingDocuments: React.FC<PendingDocumentsProps>;
9
- export default PendingDocuments;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import styles from "./pendingDocuments.module.css";
3
- import "../../../styles/global.css";
4
- var PendingDocuments = function (_a) {
5
- var icon = _a.icon, pendingCount = _a.pendingCount, onClick = _a.onClick;
6
- var isPending = pendingCount > 0;
7
- return (React.createElement("div", { className: "".concat(styles.pending_documents, " ").concat(isPending
8
- ? styles.pending_documents_pending
9
- : styles.pending_documents_none), onClick: isPending ? onClick : undefined },
10
- icon && React.createElement("span", { className: styles.pending_documents_icon }, icon),
11
- React.createElement("span", { className: styles.pending_documents_label }, isPending
12
- ? "".concat(pendingCount, " demandes en attente")
13
- : "Aucune demande en attente")));
14
- };
15
- export default PendingDocuments;
@@ -1,52 +0,0 @@
1
- export namespace ActionsData {
2
- namespace onClick {
3
- let action: string;
4
- }
5
- }
6
- declare namespace _default {
7
- export let title: string;
8
- export { PendingDocuments as component };
9
- export let tags: string[];
10
- export let excludeStories: RegExp;
11
- export namespace args { }
12
- export namespace argTypes {
13
- export namespace icon {
14
- namespace control {
15
- let type: string;
16
- }
17
- namespace mapping {
18
- let _true: React.JSX.Element;
19
- export { _true as true };
20
- let _false: null;
21
- export { _false as false };
22
- }
23
- }
24
- export namespace pendingCount {
25
- export namespace control_1 {
26
- let type_1: string;
27
- export { type_1 as type };
28
- }
29
- export { control_1 as control };
30
- }
31
- export namespace onClick_1 {
32
- let action_1: string;
33
- export { action_1 as action };
34
- }
35
- export { onClick_1 as onClick };
36
- }
37
- export namespace parameters {
38
- namespace backgrounds {
39
- let _default: string;
40
- export { _default as default };
41
- export let values: {
42
- name: string;
43
- value: string;
44
- }[];
45
- }
46
- }
47
- }
48
- export default _default;
49
- export const Default: any;
50
- export const NoPending: any;
51
- import PendingDocuments from "./PendingDocuments";
52
- import React from "react";
@@ -1,67 +0,0 @@
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 PendingDocuments from "./PendingDocuments";
14
- import "../../../styles/global.css";
15
- export var ActionsData = {
16
- onClick: { action: "clicked" },
17
- };
18
- export default {
19
- title: "Components/Atoms/Buttons/PendingDocuments",
20
- component: PendingDocuments,
21
- tags: ["autodocs"],
22
- excludeStories: /.*Data$/,
23
- args: __assign({}, ActionsData),
24
- argTypes: {
25
- icon: {
26
- control: {
27
- type: "boolean",
28
- },
29
- mapping: {
30
- true: React.createElement("span", { className: "allaw-icon-inbox" }),
31
- false: null,
32
- },
33
- },
34
- pendingCount: {
35
- control: {
36
- type: "number",
37
- },
38
- },
39
- onClick: {
40
- action: "clicked",
41
- },
42
- },
43
- parameters: {
44
- backgrounds: {
45
- default: "light",
46
- values: [
47
- { name: "light", value: "#ffffff" },
48
- { name: "grey", value: "#728ea7" },
49
- { name: "figma", value: "#404040" },
50
- { name: "dark", value: "#171e25" },
51
- ],
52
- },
53
- },
54
- };
55
- var Template = function (args) { return React.createElement(PendingDocuments, __assign({}, args)); };
56
- export var Default = Template.bind({});
57
- Default.args = {
58
- icon: React.createElement("span", { className: "allaw-icon-inbox" }),
59
- pendingCount: 5,
60
- onClick: function () { return console.log("Button clicked!"); },
61
- };
62
- export var NoPending = Template.bind({});
63
- NoPending.args = {
64
- icon: React.createElement("span", { className: "allaw-icon-inbox" }),
65
- pendingCount: 0,
66
- onClick: function () { return console.log("Button clicked!"); },
67
- };
@@ -1,19 +0,0 @@
1
- import React, { ButtonHTMLAttributes } from "react";
2
- import "./PrimaryButton.css";
3
- import "../../../styles/global.css";
4
- export interface PrimaryButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
5
- startIcon?: React.ReactNode;
6
- endIcon?: React.ReactNode;
7
- startIconName?: string;
8
- endIconName?: string;
9
- label: string;
10
- disabled?: boolean;
11
- onClick?: () => Promise<void> | void;
12
- fullWidth?: boolean;
13
- type?: "button" | "submit" | "reset";
14
- isLoading?: boolean;
15
- variant?: "default" | "warning";
16
- size?: "medium" | "large";
17
- }
18
- declare const PrimaryButton: React.ForwardRefExoticComponent<PrimaryButtonProps & React.RefAttributes<HTMLButtonElement>>;
19
- export default PrimaryButton;
@@ -1,117 +0,0 @@
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, useImperativeHandle, useState, useEffect, } from "react";
61
- import "./PrimaryButton.css";
62
- import "../../../styles/global.css";
63
- var PrimaryButton = forwardRef(function (_a, ref) {
64
- 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"]);
65
- var buttonRef = React.useRef(null);
66
- var _g = useState(false), internalIsLoading = _g[0], setInternalIsLoading = _g[1];
67
- var _h = useState(""), loadingDots = _h[0], setLoadingDots = _h[1];
68
- useImperativeHandle(ref, function () { return buttonRef.current; });
69
- var isButtonLoading = isLoading || internalIsLoading;
70
- useEffect(function () {
71
- var interval = null;
72
- if (isButtonLoading) {
73
- interval = setInterval(function () {
74
- setLoadingDots(function (prev) {
75
- if (prev.length >= 3)
76
- return "";
77
- return prev + ".";
78
- });
79
- }, 500);
80
- }
81
- return function () {
82
- if (interval) {
83
- clearInterval(interval);
84
- }
85
- };
86
- }, [isButtonLoading]);
87
- var handleClick = function (event) { return __awaiter(void 0, void 0, void 0, function () {
88
- return __generator(this, function (_a) {
89
- switch (_a.label) {
90
- case 0:
91
- if (isButtonLoading) {
92
- event.preventDefault();
93
- return [2 /*return*/];
94
- }
95
- if (!onClick) return [3 /*break*/, 4];
96
- setInternalIsLoading(true);
97
- _a.label = 1;
98
- case 1:
99
- _a.trys.push([1, , 3, 4]);
100
- return [4 /*yield*/, onClick()];
101
- case 2:
102
- _a.sent();
103
- return [3 /*break*/, 4];
104
- case 3:
105
- setInternalIsLoading(false);
106
- return [7 /*endfinally*/];
107
- case 4: return [2 /*return*/];
108
- }
109
- });
110
- }); };
111
- return (React.createElement("button", __assign({ ref: buttonRef, className: "primary-button ".concat(disabled ? "primary-button-disabled" : "primary-button-enabled", " ").concat(fullWidth ? "primary-button-full-width" : "", " ").concat(isButtonLoading ? "primary-button-loading" : "").concat(variant === "warning" ? "primary-button-warning" : "", " ").concat(size === "large" ? "primary-button-large" : ""), disabled: disabled, onClick: handleClick, type: type }, props),
112
- startIcon && (React.createElement("span", { className: "primary-button-icon ".concat(startIconName) })),
113
- React.createElement("span", { className: "primary-button-label" }, label),
114
- isButtonLoading ? (React.createElement("span", { className: "primary-button-loading-dots" }, loadingDots)) : (endIcon && React.createElement("span", { className: "primary-button-icon ".concat(endIconName) }))));
115
- });
116
- PrimaryButton.displayName = "PrimaryButton";
117
- export default PrimaryButton;