@mycause/ui 0.0.0-c4be5cf7 → 0.0.0-c4d5b14e

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 (462) hide show
  1. package/README.md +29 -2
  2. package/dist/components/anchor/anchor.d.ts +1 -1
  3. package/dist/components/anchor/anchor.stories.d.ts +2 -2
  4. package/dist/components/anchor/bold-anchor.d.ts +1 -1
  5. package/dist/components/anchor/bold-anchor.stories.d.ts +2 -2
  6. package/dist/components/avatar/avatar.d.ts +3 -3
  7. package/dist/components/avatar/avatar.stories.d.ts +3 -3
  8. package/dist/components/avatar/image-avatar.d.ts +2 -1
  9. package/dist/components/avatar/text-avatar.d.ts +2 -1
  10. package/dist/components/button/button.d.ts +2 -2
  11. package/dist/components/button/button.stories.d.ts +10 -10
  12. package/dist/components/button-select/button-select-exhanced.d.ts +23 -0
  13. package/dist/components/button-select/button-select.d.ts +1 -1
  14. package/dist/components/button-select/button-select.stories.d.ts +8 -2
  15. package/dist/components/button-select/index.d.ts +1 -0
  16. package/dist/components/campaign-card/campaign-card.d.ts +2 -2
  17. package/dist/components/campaign-card/campaign-card.stories.d.ts +3 -3
  18. package/dist/components/campaign-of-month/campaign-of-month.d.ts +1 -1
  19. package/dist/components/campaign-of-month/campaign-of-month.stories.d.ts +3 -3
  20. package/dist/components/charity-card/charity-card.d.ts +2 -2
  21. package/dist/components/charity-card/charity-card.stories.d.ts +3 -3
  22. package/dist/components/charity-tags-filter-button/FilterIcon.d.ts +6 -0
  23. package/dist/components/charity-tags-filter-button/charity-tags-filter-button.d.ts +36 -0
  24. package/dist/components/{start-campaign-card/start-campaign-card.stories.d.ts → charity-tags-filter-button/charity-tags-filter-button.stories.d.ts} +3 -4
  25. package/dist/components/charity-tags-filter-button/index.d.ts +1 -0
  26. package/dist/components/checkbox/checkbox.d.ts +1 -1
  27. package/dist/components/checkbox/checkbox.stories.d.ts +4 -4
  28. package/dist/components/chips/chip.d.ts +2 -2
  29. package/dist/components/chips/chips.d.ts +2 -2
  30. package/dist/components/chips/chips.stories.d.ts +4 -4
  31. package/dist/components/chips/input-chips.d.ts +1 -1
  32. package/dist/components/chips/input-chips.stories.d.ts +2 -2
  33. package/dist/components/collapse/collapse.d.ts +21 -0
  34. package/dist/components/collapse/collapse.stories.d.ts +19 -0
  35. package/dist/components/collapse/icons.d.ts +4 -0
  36. package/dist/components/collapse/index.d.ts +1 -0
  37. package/dist/components/combo-field/combo-field-expander.d.ts +1 -1
  38. package/dist/components/combo-field/combo-field.d.ts +1 -1
  39. package/dist/components/combo-field/combo-field.stories.d.ts +3 -3
  40. package/dist/components/comment-section/comment-section-v2/comment-section-v2.d.ts +3 -3
  41. package/dist/components/comment-section/comment-section-v2/sub-comments-v2.d.ts +4 -4
  42. package/dist/components/comment-section/comment-section.d.ts +2 -11
  43. package/dist/components/comment-section/comment-section.stories.d.ts +3 -3
  44. package/dist/components/comment-section/comment-type.d.ts +10 -0
  45. package/dist/components/comment-section/index.d.ts +1 -1
  46. package/dist/components/comment-section/sub-comments.d.ts +4 -4
  47. package/dist/components/cropper/cropper.d.ts +1 -1
  48. package/dist/components/cropper/cropper.stories.d.ts +4 -3
  49. package/dist/components/date-picker/date-picker.d.ts +1 -1
  50. package/dist/components/date-picker/date-picker.stories.d.ts +6 -6
  51. package/dist/components/date-picker/index.d.ts +1 -1
  52. package/dist/components/date-picker/single-date-picker-custom-header.d.ts +3 -3
  53. package/dist/components/date-picker/single-date-picker.d.ts +4 -3
  54. package/dist/components/donate-card/donate-card.d.ts +2 -2
  55. package/dist/components/donate-card/donate-card.stories.d.ts +3 -3
  56. package/dist/components/donation-form/donation-details.d.ts +1 -1
  57. package/dist/components/donation-form/donation-form-v2/donation-form-v2.d.ts +2 -2
  58. package/dist/components/donation-form/donation-form.d.ts +2 -2
  59. package/dist/components/donation-form/donation-form.stories.d.ts +35 -9
  60. package/dist/components/donation-form/donation-payment.d.ts +2 -2
  61. package/dist/components/donation-form/donation-select.d.ts +2 -2
  62. package/dist/components/donation.d.ts +18 -0
  63. package/dist/components/elevation/elevation.d.ts +1 -1
  64. package/dist/components/elevation/elevation.stories.d.ts +2 -2
  65. package/dist/components/favorite-charity-item/favorite-charity-item.stories.d.ts +3 -3
  66. package/dist/components/featured-campaign-card/featured-campaign-card.d.ts +4 -4
  67. package/dist/components/featured-campaign-card/featured-campaign-card.stories.d.ts +3 -3
  68. package/dist/components/field-helpers/field-helper-text.d.ts +2 -2
  69. package/dist/components/field-helpers/field-label.d.ts +1 -1
  70. package/dist/components/footerV2/footerV2.d.ts +2 -2
  71. package/dist/components/footerV2/footerV2.stories.d.ts +2 -2
  72. package/dist/components/fundraising-section/fundraising-section.d.ts +2 -2
  73. package/dist/components/fundraising-section/fundraising-section.stories.d.ts +3 -3
  74. package/dist/components/hero-banner/hero-banner.d.ts +2 -2
  75. package/dist/components/hero-banner/hero-banner.stories.d.ts +3 -3
  76. package/dist/components/horizontalbar/horizontalbar.d.ts +2 -2
  77. package/dist/components/horizontalbar/horizontalbar.stories.d.ts +5 -5
  78. package/dist/components/icon/btn_google_light_normal_ios.svg.d.ts +1 -1
  79. package/dist/components/icon/facebook_6.svg.d.ts +1 -1
  80. package/dist/components/icon/heart-toggle.d.ts +1 -1
  81. package/dist/components/icon/heart-toggle.stories.d.ts +2 -2
  82. package/dist/components/icon/icon-button-group.d.ts +1 -1
  83. package/dist/components/icon/icon-button-group.stories.d.ts +2 -2
  84. package/dist/components/icon/icon-button.d.ts +1 -1
  85. package/dist/components/icon/icon-button.stories.d.ts +3 -3
  86. package/dist/components/icon/icon.d.ts +1 -1
  87. package/dist/components/icon/icon.stories.d.ts +4 -4
  88. package/dist/components/icon/material-icon.d.ts +2 -7
  89. package/dist/components/index.d.ts +2 -1
  90. package/dist/components/info-represent-campaign/info-represent-campaign.d.ts +2 -2
  91. package/dist/components/info-represent-campaign/info-represent-campaign.stories.d.ts +4 -3
  92. package/dist/components/input/InputDefault.d.ts +1 -1
  93. package/dist/components/input/input.stories.d.ts +6 -5
  94. package/dist/components/input-social/Icons.d.ts +5 -2
  95. package/dist/components/input-social/InputSocial.d.ts +1 -1
  96. package/dist/components/input-social/input-social.stories.d.ts +4 -3
  97. package/dist/components/layout/box.d.ts +231 -224
  98. package/dist/components/layout/flex.d.ts +4 -13
  99. package/dist/components/layout/flex.stories.d.ts +36 -8
  100. package/dist/components/layout/grid.d.ts +2 -2
  101. package/dist/components/layout/grid.stories.d.ts +2 -2
  102. package/dist/components/layout/stack.d.ts +3 -10
  103. package/dist/components/layout/stack.stories.d.ts +4 -4
  104. package/dist/components/list/list.d.ts +3 -3
  105. package/dist/components/list/list.stories.d.ts +7 -7
  106. package/dist/components/login/login.d.ts +6 -3
  107. package/dist/components/login/login.stories.d.ts +3 -3
  108. package/dist/components/logo/logo-type.d.ts +3 -3
  109. package/dist/components/menu/menu-list-item.d.ts +2 -2
  110. package/dist/components/menu/menu-list.d.ts +2 -2
  111. package/dist/components/menu/menu.stories.d.ts +2 -2
  112. package/dist/components/modal/modal-image.d.ts +2 -2
  113. package/dist/components/modal/modal.d.ts +1 -1
  114. package/dist/components/modal/modal.stories.d.ts +7 -7
  115. package/dist/components/my-account-choose-charity-card/index.d.ts +1 -1
  116. package/dist/components/my-account-choose-charity-card/my-account-choose-charity-card.d.ts +2 -2
  117. package/dist/components/my-account-choose-charity-card/my-account-choose-charity-card.stories.d.ts +3 -3
  118. package/dist/components/my-account-frp-closed/Icon.d.ts +2 -2
  119. package/dist/components/my-account-frp-closed/frp-closed-img.d.ts +2 -3
  120. package/dist/components/my-account-frp-closed/frp-information.d.ts +4 -1
  121. package/dist/components/my-account-frp-closed/my-account-frp-closed.d.ts +4 -1
  122. package/dist/components/my-account-frp-closed/my-account-frp-closed.stories.d.ts +6 -5
  123. package/dist/components/my-account-frp-preview/Icon.d.ts +2 -2
  124. package/dist/components/my-account-frp-preview/frp-information.d.ts +2 -2
  125. package/dist/components/my-account-frp-preview/frp-preview-img.d.ts +2 -2
  126. package/dist/components/my-account-frp-preview/my-account-frp-preview.d.ts +2 -2
  127. package/dist/components/my-account-frp-preview/my-account-frp-preview.stories.d.ts +6 -5
  128. package/dist/components/my-account-sidebar/Icon.d.ts +12 -12
  129. package/dist/components/my-account-sidebar/my-account-sidebar.d.ts +4 -4
  130. package/dist/components/my-account-sidebar/my-account-sidebar.stories.d.ts +3 -3
  131. package/dist/components/my-account-start-fundraise-card/index.d.ts +1 -1
  132. package/dist/components/my-account-start-fundraise-card/my-account-start-fundraise-card.d.ts +2 -2
  133. package/dist/components/my-account-start-fundraise-card/my-account-start-fundraise-card.stories.d.ts +4 -4
  134. package/dist/components/my-account-stats-donated/my-account-stats-donated.d.ts +2 -2
  135. package/dist/components/my-account-stats-donated/my-account-stats-donated.stories.d.ts +4 -3
  136. package/dist/components/my-account-stats-raised/my-account-stats-raised.d.ts +2 -2
  137. package/dist/components/my-account-stats-raised/my-account-stats-raised.stories.d.ts +4 -3
  138. package/dist/components/nav/icons/IconBigger.d.ts +2 -2
  139. package/dist/components/nav/icons/IconSmaller.d.ts +2 -2
  140. package/dist/components/nav/nav-actions.d.ts +1 -1
  141. package/dist/components/nav/nav-bar.d.ts +2 -2
  142. package/dist/components/nav/nav-call-to-action.d.ts +3 -3
  143. package/dist/components/nav/nav-charity.d.ts +7 -0
  144. package/dist/components/nav/nav-expanded-charity-v2.d.ts +12 -0
  145. package/dist/components/nav/nav-expanded-charity.d.ts +2 -2
  146. package/dist/components/nav/nav-expanded.d.ts +2 -2
  147. package/dist/components/nav/nav-list.d.ts +6 -6
  148. package/dist/components/nav/nav-menu-control.d.ts +1 -1
  149. package/dist/components/nav/nav-menu.d.ts +3 -3
  150. package/dist/components/nav/nav-myaccount.d.ts +4 -3
  151. package/dist/components/nav/nav-search-control.d.ts +2 -2
  152. package/dist/components/nav/nav-search.d.ts +2 -2
  153. package/dist/components/nav/nav-sign-in-control.d.ts +1 -1
  154. package/dist/components/nav/nav-user-menu-items.d.ts +6 -6
  155. package/dist/components/nav/nav-user-menu.d.ts +4 -4
  156. package/dist/components/nav/nav.d.ts +15 -10
  157. package/dist/components/nav/nav.stories.d.ts +3 -3
  158. package/dist/components/navigation/navigation-actions.d.ts +1 -1
  159. package/dist/components/navigation/navigation-bar.d.ts +2 -2
  160. package/dist/components/navigation/navigation-call-to-action.d.ts +3 -3
  161. package/dist/components/navigation/navigation-expanded.d.ts +2 -2
  162. package/dist/components/navigation/navigation-list.d.ts +6 -6
  163. package/dist/components/navigation/navigation-menu-control.d.ts +1 -1
  164. package/dist/components/navigation/navigation-menu.d.ts +3 -3
  165. package/dist/components/navigation/navigation-search-control.d.ts +2 -2
  166. package/dist/components/navigation/navigation-search.d.ts +2 -2
  167. package/dist/components/navigation/navigation-sign-in-control.d.ts +1 -1
  168. package/dist/components/navigation/navigation-user-menu-items.d.ts +6 -6
  169. package/dist/components/navigation/navigation-user-menu.d.ts +5 -4
  170. package/dist/components/navigation/navigation.d.ts +8 -8
  171. package/dist/components/navigation/navigation.stories.d.ts +4 -4
  172. package/dist/components/partner-chart-stats/partner-chart-stats.d.ts +2 -2
  173. package/dist/components/partner-chart-stats/partner-chart-stats.stories.d.ts +5 -4
  174. package/dist/components/partner-monthly-donations/index.d.ts +1 -1
  175. package/dist/components/partner-monthly-donations/partner-monthly-donations.d.ts +2 -2
  176. package/dist/components/partner-monthly-donations/partner-monthly-donations.stories.d.ts +4 -3
  177. package/dist/components/partner-monthly-stats/partner-monthly-stats.d.ts +2 -2
  178. package/dist/components/partner-monthly-stats/partner-monthly-stats.stories.d.ts +4 -3
  179. package/dist/components/partner-toggle-button/index.d.ts +1 -1
  180. package/dist/components/partner-toggle-button/partner-toggle-button-block.d.ts +2 -2
  181. package/dist/components/partner-toggle-button/partner-toggle-button-block.stories.d.ts +4 -3
  182. package/dist/components/partner-toggle-button/partner-toggle-button.d.ts +2 -2
  183. package/dist/components/phone-number-input/phone-number-input-v1.d.ts +5 -3
  184. package/dist/components/phone-number-input/phone-number-input-v2.d.ts +2 -2
  185. package/dist/components/phone-number-input/phone-number-input.d.ts +2 -2
  186. package/dist/components/phone-number-input/phone-number-input.stories.d.ts +25 -21
  187. package/dist/components/popup/popup.d.ts +2 -2
  188. package/dist/components/popup/popup.stories.d.ts +3 -3
  189. package/dist/components/progressbar/progress-bar-circle.d.ts +2 -2
  190. package/dist/components/progressbar/progressbar.d.ts +2 -2
  191. package/dist/components/progressbar/progressbar.stories.d.ts +4 -4
  192. package/dist/components/radio/radio-group.d.ts +1 -1
  193. package/dist/components/radio/radio-group.stories.d.ts +2 -2
  194. package/dist/components/radio/radio.d.ts +1 -1
  195. package/dist/components/radio/radio.stories.d.ts +4 -4
  196. package/dist/components/select/select-enhanced.d.ts +3 -2
  197. package/dist/components/select/select-helper-text.d.ts +1 -1
  198. package/dist/components/select/select-v2.d.ts +3 -2
  199. package/dist/components/select/select.d.ts +2 -2
  200. package/dist/components/select/select.stories.d.ts +95 -15
  201. package/dist/components/spinner/spinner.d.ts +4 -3
  202. package/dist/components/spinner/spinner.stories.d.ts +8 -2
  203. package/dist/components/statistics/statistics.d.ts +1 -1
  204. package/dist/components/statistics/statistics.stories.d.ts +2 -2
  205. package/dist/components/switch/index.d.ts +1 -0
  206. package/dist/components/switch/switch-v2.d.ts +8 -0
  207. package/dist/components/switch/switch.d.ts +4 -1
  208. package/dist/components/switch/switch.stories.d.ts +10 -4
  209. package/dist/components/table/partner-monthly-table.d.ts +5 -3
  210. package/dist/components/table/partner-monthly-table.stories.d.ts +5 -4
  211. package/dist/components/tabs/nav-tabs.d.ts +1 -1
  212. package/dist/components/tabs/tab-text-label.d.ts +1 -1
  213. package/dist/components/tabs/tabs.d.ts +1 -1
  214. package/dist/components/tabs/tabs.stories.d.ts +2 -2
  215. package/dist/components/text/text.d.ts +4 -5
  216. package/dist/components/text/text.stories.d.ts +61 -14
  217. package/dist/components/text-field/text-field-helper-text.d.ts +1 -1
  218. package/dist/components/text-field/text-field-search.d.ts +3 -2
  219. package/dist/components/text-field/text-field.d.ts +1 -0
  220. package/dist/components/text-field/text-field.stories.d.ts +6 -14
  221. package/dist/components/this-month-card/this-month-card.d.ts +2 -2
  222. package/dist/components/this-month-card/this-month-card.stories.d.ts +4 -3
  223. package/dist/components/toast/Icons.d.ts +4 -4
  224. package/dist/components/toast/toast.d.ts +2 -2
  225. package/dist/components/toast/toast.stories.d.ts +4 -3
  226. package/dist/components/transaction-card/Dot.d.ts +2 -2
  227. package/dist/components/transaction-card/transaction-card.d.ts +10 -8
  228. package/dist/components/transaction-card/transaction-card.stories.d.ts +9 -3
  229. package/dist/components/uploader/uploader.d.ts +1 -1
  230. package/dist/donation/anchor.d.ts +2 -0
  231. package/dist/donation/button.d.ts +2 -0
  232. package/dist/donation/checkbox.d.ts +1 -0
  233. package/dist/donation/combo-field.d.ts +1 -0
  234. package/dist/donation/elevation.d.ts +1 -0
  235. package/dist/donation/field-label.d.ts +1 -0
  236. package/dist/donation/flex.d.ts +2 -0
  237. package/dist/donation/grid.d.ts +1 -0
  238. package/dist/donation/icon.d.ts +2 -0
  239. package/dist/donation/modal.d.ts +1 -0
  240. package/dist/donation/navigation.d.ts +1 -0
  241. package/dist/donation/phone-number-input.d.ts +1 -0
  242. package/dist/donation/radio.d.ts +1 -0
  243. package/dist/donation/select.d.ts +1 -0
  244. package/dist/donation/single-date-picker.d.ts +1 -0
  245. package/dist/donation/stack.d.ts +1 -0
  246. package/dist/donation/text-field.d.ts +24 -0
  247. package/dist/donation/text.d.ts +1 -0
  248. package/dist/donation.css +2 -0
  249. package/dist/donation.css.map +1 -0
  250. package/dist/donation.d.ts +3 -0
  251. package/dist/donation.esm.css +2 -0
  252. package/dist/donation.esm.css.map +1 -0
  253. package/dist/donation.esm.js +4423 -0
  254. package/dist/donation.js +4496 -0
  255. package/dist/index.css +2 -0
  256. package/dist/index.css.map +1 -0
  257. package/dist/index.esm.css +2 -0
  258. package/dist/index.esm.css.map +1 -0
  259. package/dist/index.esm.js +7455 -34149
  260. package/dist/index.js +8023 -34660
  261. package/dist/theme/theme.d.ts +5 -5
  262. package/dist/utils/center-decorator.d.ts +1 -1
  263. package/dist/utils/component-matrix.d.ts +1 -1
  264. package/dist/utils/grid-decorator.d.ts +1 -1
  265. package/donation/anchor/package.json +5 -0
  266. package/donation/button/package.json +5 -0
  267. package/donation/checkbox/package.json +5 -0
  268. package/donation/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
  269. package/donation/cjs/components/anchor/anchor.js +50 -0
  270. package/donation/cjs/components/anchor/bold-anchor.js +61 -0
  271. package/donation/cjs/components/avatar/avatar.js +22 -0
  272. package/donation/cjs/components/avatar/image-avatar.js +51 -0
  273. package/donation/cjs/components/avatar/text-avatar.js +70 -0
  274. package/donation/cjs/components/button/button.js +143 -0
  275. package/donation/cjs/components/checkbox/checkbox.js +75 -0
  276. package/donation/cjs/components/combo-field/combo-field-expander.js +44 -0
  277. package/donation/cjs/components/combo-field/combo-field.js +103 -0
  278. package/donation/cjs/components/date-picker/single-date-picker.js +83 -0
  279. package/donation/cjs/components/elevation/elevation.js +61 -0
  280. package/donation/cjs/components/field-helpers/field-helper-text.js +45 -0
  281. package/donation/cjs/components/field-helpers/field-label.js +51 -0
  282. package/donation/cjs/components/icon/heart-toggle.js +49 -0
  283. package/donation/cjs/components/icon/icon-button-group.js +49 -0
  284. package/donation/cjs/components/icon/icon-button.js +64 -0
  285. package/donation/cjs/components/icon/icon.js +67 -0
  286. package/donation/cjs/components/icon/material-icon.js +44 -0
  287. package/donation/cjs/components/layout/box.js +115 -0
  288. package/donation/cjs/components/layout/flex.js +81 -0
  289. package/donation/cjs/components/layout/grid.js +46 -0
  290. package/donation/cjs/components/layout/stack.js +48 -0
  291. package/donation/cjs/components/list/list.js +163 -0
  292. package/donation/cjs/components/menu/menu-list-item-graphic.js +7 -0
  293. package/donation/cjs/components/menu/menu-list-item-meta.js +7 -0
  294. package/donation/cjs/components/menu/menu-list-item-text.js +7 -0
  295. package/donation/cjs/components/menu/menu-list-item.js +27 -0
  296. package/donation/cjs/components/menu/menu-list.js +38 -0
  297. package/donation/cjs/components/menu/menu-surface.js +20 -0
  298. package/donation/cjs/components/modal/modal.js +152 -0
  299. package/donation/cjs/components/navigation/navigation-actions.js +21 -0
  300. package/donation/cjs/components/navigation/navigation-bar.js +34 -0
  301. package/donation/cjs/components/navigation/navigation-call-to-action.js +18 -0
  302. package/donation/cjs/components/navigation/navigation-expanded.js +67 -0
  303. package/donation/cjs/components/navigation/navigation-list.js +78 -0
  304. package/donation/cjs/components/navigation/navigation-menu-control.js +50 -0
  305. package/donation/cjs/components/navigation/navigation-menu.js +104 -0
  306. package/donation/cjs/components/navigation/navigation-search-control.js +30 -0
  307. package/donation/cjs/components/navigation/navigation-search.js +90 -0
  308. package/donation/cjs/components/navigation/navigation-sign-in-control.js +57 -0
  309. package/donation/cjs/components/navigation/navigation-user-menu-items.js +83 -0
  310. package/donation/cjs/components/navigation/navigation-user-menu.js +96 -0
  311. package/donation/cjs/components/navigation/navigation.js +191 -0
  312. package/donation/cjs/components/phone-number-input/phone-number-input-v1.js +183 -0
  313. package/donation/cjs/components/radio/radio.js +84 -0
  314. package/donation/cjs/components/select/select-helper-text.js +19 -0
  315. package/donation/cjs/components/select/select.js +177 -0
  316. package/donation/cjs/components/statistics/statistics.js +79 -0
  317. package/donation/cjs/components/tabs/tab-bar.js +43 -0
  318. package/donation/cjs/components/tabs/tab-text-label.js +23 -0
  319. package/donation/cjs/components/tabs/tab.js +72 -0
  320. package/donation/cjs/components/tabs/tabs.js +102 -0
  321. package/donation/cjs/components/text/text.js +197 -0
  322. package/donation/cjs/components/text-field/text-field-helper-text.js +31 -0
  323. package/donation/cjs/components/text-field/text-field.js +169 -0
  324. package/donation/cjs/donation/anchor.js +9 -0
  325. package/donation/cjs/donation/button.js +9 -0
  326. package/donation/cjs/donation/checkbox.js +9 -0
  327. package/donation/cjs/donation/combo-field.js +9 -0
  328. package/donation/cjs/donation/elevation.js +9 -0
  329. package/donation/cjs/donation/field-label.js +9 -0
  330. package/donation/cjs/donation/flex.js +9 -0
  331. package/donation/cjs/donation/grid.js +9 -0
  332. package/donation/cjs/donation/icon.js +9 -0
  333. package/donation/cjs/donation/modal.js +9 -0
  334. package/donation/cjs/donation/navigation.js +9 -0
  335. package/donation/cjs/donation/phone-number-input.js +9 -0
  336. package/donation/cjs/donation/radio.js +9 -0
  337. package/donation/cjs/donation/select.js +9 -0
  338. package/donation/cjs/donation/single-date-picker.js +9 -0
  339. package/donation/cjs/donation/stack.js +9 -0
  340. package/donation/cjs/donation/text-field.js +9 -0
  341. package/donation/cjs/donation/text.js +9 -0
  342. package/donation/cjs/theme/colors.js +15 -0
  343. package/donation/cjs/theme/mycause-theme.js +42 -0
  344. package/donation/cjs/theme/theme.js +69 -0
  345. package/donation/cjs/utils/browser.js +15 -0
  346. package/donation/cjs/utils/flags.js +24 -0
  347. package/donation/cjs/utils/get-element-display-name.js +12 -0
  348. package/donation/cjs/utils/set-ref.js +30 -0
  349. package/donation/cjs/utils/tap-event.js +17 -0
  350. package/donation/cjs/utils/tap-ref.js +17 -0
  351. package/donation/cjs/utils/wrap.js +19 -0
  352. package/donation/combo-field/package.json +5 -0
  353. package/donation/elevation/package.json +5 -0
  354. package/donation/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
  355. package/donation/esm/components/anchor/anchor.js +42 -0
  356. package/donation/esm/components/anchor/bold-anchor.js +53 -0
  357. package/donation/esm/components/avatar/avatar.js +16 -0
  358. package/donation/esm/components/avatar/image-avatar.js +42 -0
  359. package/donation/esm/components/avatar/text-avatar.js +61 -0
  360. package/donation/esm/components/button/button.js +132 -0
  361. package/donation/esm/components/checkbox/checkbox.js +65 -0
  362. package/donation/esm/components/combo-field/combo-field-expander.js +35 -0
  363. package/donation/esm/components/combo-field/combo-field.js +94 -0
  364. package/donation/esm/components/date-picker/single-date-picker.js +75 -0
  365. package/donation/esm/components/elevation/elevation.js +52 -0
  366. package/donation/esm/components/field-helpers/field-helper-text.js +36 -0
  367. package/donation/esm/components/field-helpers/field-label.js +42 -0
  368. package/donation/esm/components/icon/heart-toggle.js +41 -0
  369. package/donation/esm/components/icon/icon-button-group.js +40 -0
  370. package/donation/esm/components/icon/icon-button.js +54 -0
  371. package/donation/esm/components/icon/icon.js +58 -0
  372. package/donation/esm/components/icon/material-icon.js +35 -0
  373. package/donation/esm/components/layout/box.js +106 -0
  374. package/donation/esm/components/layout/flex.js +72 -0
  375. package/donation/esm/components/layout/grid.js +37 -0
  376. package/donation/esm/components/layout/stack.js +39 -0
  377. package/donation/esm/components/list/list.js +152 -0
  378. package/donation/esm/components/menu/menu-list-item-graphic.js +2 -0
  379. package/donation/esm/components/menu/menu-list-item-meta.js +2 -0
  380. package/donation/esm/components/menu/menu-list-item-text.js +2 -0
  381. package/donation/esm/components/menu/menu-list-item.js +20 -0
  382. package/donation/esm/components/menu/menu-list.js +30 -0
  383. package/donation/esm/components/menu/menu-surface.js +2 -0
  384. package/donation/esm/components/modal/modal.js +142 -0
  385. package/donation/esm/components/navigation/navigation-actions.js +15 -0
  386. package/donation/esm/components/navigation/navigation-bar.js +26 -0
  387. package/donation/esm/components/navigation/navigation-call-to-action.js +12 -0
  388. package/donation/esm/components/navigation/navigation-expanded.js +58 -0
  389. package/donation/esm/components/navigation/navigation-list.js +70 -0
  390. package/donation/esm/components/navigation/navigation-menu-control.js +41 -0
  391. package/donation/esm/components/navigation/navigation-menu.js +93 -0
  392. package/donation/esm/components/navigation/navigation-search-control.js +23 -0
  393. package/donation/esm/components/navigation/navigation-search.js +81 -0
  394. package/donation/esm/components/navigation/navigation-sign-in-control.js +49 -0
  395. package/donation/esm/components/navigation/navigation-user-menu-items.js +76 -0
  396. package/donation/esm/components/navigation/navigation-user-menu.js +86 -0
  397. package/donation/esm/components/navigation/navigation.js +182 -0
  398. package/donation/esm/components/phone-number-input/phone-number-input-v1.js +171 -0
  399. package/donation/esm/components/radio/radio.js +73 -0
  400. package/donation/esm/components/select/select-helper-text.js +12 -0
  401. package/donation/esm/components/select/select.js +168 -0
  402. package/donation/esm/components/statistics/statistics.js +70 -0
  403. package/donation/esm/components/tabs/tab-bar.js +34 -0
  404. package/donation/esm/components/tabs/tab-text-label.js +16 -0
  405. package/donation/esm/components/tabs/tab.js +63 -0
  406. package/donation/esm/components/tabs/tabs.js +93 -0
  407. package/donation/esm/components/text/text.js +189 -0
  408. package/donation/esm/components/text-field/text-field-helper-text.js +24 -0
  409. package/donation/esm/components/text-field/text-field.js +159 -0
  410. package/donation/esm/donation/anchor.js +1 -0
  411. package/donation/esm/donation/button.js +1 -0
  412. package/donation/esm/donation/checkbox.js +1 -0
  413. package/donation/esm/donation/combo-field.js +1 -0
  414. package/donation/esm/donation/elevation.js +1 -0
  415. package/donation/esm/donation/field-label.js +1 -0
  416. package/donation/esm/donation/flex.js +1 -0
  417. package/donation/esm/donation/grid.js +1 -0
  418. package/donation/esm/donation/icon.js +1 -0
  419. package/donation/esm/donation/modal.js +1 -0
  420. package/donation/esm/donation/navigation.js +1 -0
  421. package/donation/esm/donation/phone-number-input.js +1 -0
  422. package/donation/esm/donation/radio.js +1 -0
  423. package/donation/esm/donation/select.js +1 -0
  424. package/donation/esm/donation/single-date-picker.js +1 -0
  425. package/donation/esm/donation/stack.js +1 -0
  426. package/donation/esm/donation/text-field.js +5 -0
  427. package/donation/esm/donation/text.js +1 -0
  428. package/donation/esm/theme/colors.js +7 -0
  429. package/donation/esm/theme/mycause-theme.js +40 -0
  430. package/donation/esm/theme/theme.js +59 -0
  431. package/donation/esm/utils/browser.js +11 -0
  432. package/donation/esm/utils/flags.js +20 -0
  433. package/donation/esm/utils/get-element-display-name.js +8 -0
  434. package/donation/esm/utils/set-ref.js +26 -0
  435. package/donation/esm/utils/tap-event.js +13 -0
  436. package/donation/esm/utils/tap-ref.js +13 -0
  437. package/donation/esm/utils/wrap.js +11 -0
  438. package/donation/field-label/package.json +5 -0
  439. package/donation/flex/package.json +5 -0
  440. package/donation/grid/package.json +5 -0
  441. package/donation/icon/package.json +5 -0
  442. package/donation/modal/package.json +5 -0
  443. package/donation/navigation/package.json +5 -0
  444. package/donation/phone-number-input/package.json +5 -0
  445. package/donation/radio/package.json +5 -0
  446. package/donation/select/package.json +5 -0
  447. package/donation/single-date-picker/package.json +5 -0
  448. package/donation/stack/package.json +5 -0
  449. package/donation/text/package.json +5 -0
  450. package/donation/text-field/package.json +5 -0
  451. package/donation.css +2 -0
  452. package/package.json +175 -41
  453. package/styles/index.css +5 -6887
  454. package/styles/index.css.map +1 -0
  455. package/styles/reset.css +2 -315
  456. package/styles/reset.css.map +1 -0
  457. package/CHANGELOG.md +0 -668
  458. package/dist/components/select/SelectV2.d.ts +0 -24
  459. package/dist/components/start-campaign-card/index.d.ts +0 -1
  460. package/dist/components/start-campaign-card/start-campaign-card.d.ts +0 -8
  461. /package/{dist → styles}/_index.css.js +0 -0
  462. /package/{dist → styles}/_reset.css.js +0 -0
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var flex = require('../components/layout/flex.js');
6
+
7
+
8
+
9
+ exports.Flex = flex;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var grid = require('../components/layout/grid.js');
6
+
7
+
8
+
9
+ exports.Grid = grid;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var icon = require('../components/icon/icon.js');
6
+
7
+
8
+
9
+ exports.Icon = icon;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var modal = require('../components/modal/modal.js');
6
+
7
+
8
+
9
+ exports.Modal = modal;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var navigation = require('../components/navigation/navigation.js');
6
+
7
+
8
+
9
+ exports.Navigation = navigation;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var phoneNumberInputV1 = require('../components/phone-number-input/phone-number-input-v1.js');
6
+
7
+
8
+
9
+ exports.PhoneNumberInputV1 = phoneNumberInputV1;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var radio = require('../components/radio/radio.js');
6
+
7
+
8
+
9
+ exports.Radio = radio;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var select = require('../components/select/select.js');
6
+
7
+
8
+
9
+ exports.Select = select;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var singleDatePicker = require('../components/date-picker/single-date-picker.js');
6
+
7
+
8
+
9
+ exports.SingleDatePicker = singleDatePicker;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var stack = require('../components/layout/stack.js');
6
+
7
+
8
+
9
+ exports.Stack = stack;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var textField = require('../components/text-field/text-field.js');
6
+
7
+ const TextField = textField;
8
+
9
+ exports.TextField = TextField;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var text = require('../components/text/text.js');
6
+
7
+
8
+
9
+ exports.Text = text;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const WHITE = "#ffffff";
6
+ const BRAND_DARK_GREY = "#3e3e3f";
7
+ const INACTIVE_GREY = "#9e9e9e";
8
+ const BACKGROUND_GREY = "#efefef";
9
+ const ON_BACKGROUND_GREY_GREY = "#dbdbdb";
10
+
11
+ exports.BACKGROUND_GREY = BACKGROUND_GREY;
12
+ exports.BRAND_DARK_GREY = BRAND_DARK_GREY;
13
+ exports.INACTIVE_GREY = INACTIVE_GREY;
14
+ exports.ON_BACKGROUND_GREY_GREY = ON_BACKGROUND_GREY_GREY;
15
+ exports.WHITE = WHITE;
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ const WHITE = "#ffffff";
4
+ const BRAND_GREEN_ACCESSIBLE = "#358b76";
5
+ const BRAND_GREEN_ACCENT = "#42ccae";
6
+ const BRAND_CORAL = "#f05c6a";
7
+ const BRAND_DARK_GREY = "#3e3e3f";
8
+ const BG_PARTNER = "linear-gradient(90deg, #e96a6d 0%, #e17221 100%), rgba(0, 0, 0, 0.2)";
9
+ const MyCauseTheme = {
10
+ typography: {
11
+ fontFamily: {
12
+ brand: "'Montserrat', sans-serif",
13
+ default: "'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
14
+ alternate: "'Montserrat Alternates', Montserrat, sans-serif"
15
+ }
16
+ },
17
+ color: {
18
+ foreground: {
19
+ neutral: BRAND_DARK_GREY,
20
+ primary: BRAND_GREEN_ACCESSIBLE,
21
+ accent: BRAND_GREEN_ACCENT,
22
+ secondary: BRAND_CORAL,
23
+ muted: "rgba(0, 0, 0, 0.6)",
24
+ inactive: "rgba(0, 0, 0, 0.37)",
25
+ partner: BG_PARTNER,
26
+ coral: "rgb(225, 114, 33)"
27
+ },
28
+ background: {
29
+ neutral: WHITE,
30
+ primary: WHITE,
31
+ accent: WHITE,
32
+ secondary: WHITE,
33
+ muted: WHITE,
34
+ inactive: "rgba(0, 0, 0, 0.12)",
35
+ partner: WHITE,
36
+ coral: WHITE
37
+ }
38
+ }
39
+ };
40
+ var MyCauseTheme$1 = MyCauseTheme;
41
+
42
+ module.exports = MyCauseTheme$1;
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _pt = require('prop-types');
6
+ require('styled-jsx/style');
7
+ var React = require('react');
8
+ var mycauseTheme = require('./mycause-theme.js');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ var _pt__default = /*#__PURE__*/_interopDefaultLegacy(_pt);
13
+
14
+ const ThemeContext = /*#__PURE__*/React.createContext(mycauseTheme);
15
+ ({
16
+ value: _pt__default["default"].shape({
17
+ typography: _pt__default["default"].shape({
18
+ fontFamily: _pt__default["default"].shape({
19
+ brand: _pt__default["default"].string.isRequired,
20
+ default: _pt__default["default"].string.isRequired,
21
+ alternate: _pt__default["default"].string.isRequired
22
+ }).isRequired
23
+ }).isRequired,
24
+ color: _pt__default["default"].shape({
25
+ foreground: _pt__default["default"].shape({
26
+ neutral: _pt__default["default"].string.isRequired,
27
+ primary: _pt__default["default"].string.isRequired,
28
+ accent: _pt__default["default"].string.isRequired,
29
+ secondary: _pt__default["default"].string.isRequired,
30
+ muted: _pt__default["default"].string.isRequired,
31
+ inactive: _pt__default["default"].string.isRequired,
32
+ partner: _pt__default["default"].string.isRequired,
33
+ coral: _pt__default["default"].string.isRequired
34
+ }).isRequired,
35
+ background: _pt__default["default"].shape({
36
+ neutral: _pt__default["default"].string.isRequired,
37
+ primary: _pt__default["default"].string.isRequired,
38
+ accent: _pt__default["default"].string.isRequired,
39
+ secondary: _pt__default["default"].string.isRequired,
40
+ muted: _pt__default["default"].string.isRequired,
41
+ inactive: _pt__default["default"].string.isRequired,
42
+ partner: _pt__default["default"].string.isRequired,
43
+ coral: _pt__default["default"].string.isRequired
44
+ }).isRequired
45
+ }).isRequired
46
+ }).isRequired,
47
+ children: _pt__default["default"].node
48
+ });
49
+ function useTheme() {
50
+ return React.useContext(ThemeContext);
51
+ }
52
+ function getColorToken(theme, kind, color) {
53
+ let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
54
+ if (options.invert) {
55
+ kind = kind === "foreground" ? "background" : "foreground";
56
+ }
57
+ if (typeof color === "object") {
58
+ return color[kind];
59
+ } else if (color in theme.color.foreground) {
60
+ return theme.color[kind][color];
61
+ } else {
62
+ return color;
63
+ }
64
+ }
65
+
66
+ exports.MyCauseTheme = mycauseTheme;
67
+ exports.ThemeContext = ThemeContext;
68
+ exports.getColorToken = getColorToken;
69
+ exports.useTheme = useTheme;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ // Checks whether the current browser is Internet Explorer
6
+ function isInternetExplorer() {
7
+ if (typeof window !== "undefined") {
8
+ const ua = window.navigator.userAgent;
9
+ const re = /MSIE|Trident/;
10
+ return !!ua.match(re);
11
+ }
12
+ return false;
13
+ }
14
+
15
+ exports.isInternetExplorer = isInternetExplorer;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* takes an object with flags and returns the key of the first flag set to true */
6
+ function flags(flags, def) {
7
+ let result = undefined;
8
+ for (const [flag, value] of Object.entries(flags)) {
9
+ if (value) {
10
+ if (process.env.NODE_ENV !== "production") {
11
+ if (result) {
12
+ console.warn(`[Warning] multiple clashing flags specified ${result}, ${flag}. You must only pass one.`);
13
+ }
14
+ }
15
+ result = flag;
16
+ if (process.env.NODE_ENV === "production") {
17
+ break;
18
+ }
19
+ }
20
+ }
21
+ return result || def;
22
+ }
23
+
24
+ exports.flags = flags;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function getElementDisplayName(element) {
6
+ if (typeof element.type === "string") {
7
+ return element.type;
8
+ }
9
+ return element.type.displayName || element.type.name || "Anonymous";
10
+ }
11
+
12
+ exports.getElementDisplayName = getElementDisplayName;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /**
6
+ * Sets a ReactRef<T>
7
+ *
8
+ * Works with function and object refs
9
+ */
10
+ function setRef(ref) {
11
+ let transform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : x => x;
12
+ return instance => {
13
+ if (!instance) return;
14
+ if (!ref) return;
15
+ let value = transform(instance);
16
+ if (Object.hasOwnProperty.call(ref, "current")) {
17
+ /* handle object refs */
18
+ ref.current = value;
19
+ } else if (typeof ref === "function") {
20
+ /* handle function refs */
21
+ ref(value);
22
+ } else {
23
+ if (process.env.NODE_ENV !== "production") {
24
+ console.warn("[setRef] setRef was passed a ref that it doesn't know how to handle. " + ref.toString());
25
+ }
26
+ }
27
+ };
28
+ }
29
+
30
+ exports.setRef = setRef;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* Perform an action on event, but also forward the event to
6
+ * the optionally passed event handler */
7
+ function tapEvent(op, forwardTo) {
8
+ const handler = e => {
9
+ op(e);
10
+ if (forwardTo) {
11
+ forwardTo(e);
12
+ }
13
+ };
14
+ return handler;
15
+ }
16
+
17
+ exports.tapEvent = tapEvent;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var setRef = require('./set-ref.js');
6
+
7
+ /**
8
+ * Create a ref that updates two refs
9
+ */
10
+ function tapRef(ref, intermediateRef) {
11
+ return instance => {
12
+ setRef.setRef(intermediateRef)(instance);
13
+ setRef.setRef(ref)(instance);
14
+ };
15
+ }
16
+
17
+ exports.tapRef = tapRef;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
+
11
+ // Conditionally wrap a React element with another
12
+ function wrap(children, Component, isNeeded) {
13
+ if (!isNeeded) {
14
+ return children;
15
+ }
16
+ return /*#__PURE__*/React__default["default"].createElement(Component, {}, children);
17
+ }
18
+
19
+ exports.wrap = wrap;
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../cjs/donation/combo-field.js",
3
+ "module": "../esm/donation/combo-field.js",
4
+ "types": "../../dist/donation/combo-field.d.ts"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../cjs/donation/elevation.js",
3
+ "module": "../esm/donation/elevation.js",
4
+ "types": "../../dist/donation/elevation.d.ts"
5
+ }
@@ -0,0 +1,74 @@
1
+ function _defineProperty(e, r, t) {
2
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
3
+ value: t,
4
+ enumerable: !0,
5
+ configurable: !0,
6
+ writable: !0
7
+ }) : e[r] = t, e;
8
+ }
9
+ function _extends() {
10
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
11
+ for (var e = 1; e < arguments.length; e++) {
12
+ var t = arguments[e];
13
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
14
+ }
15
+ return n;
16
+ }, _extends.apply(null, arguments);
17
+ }
18
+ function ownKeys(e, r) {
19
+ var t = Object.keys(e);
20
+ if (Object.getOwnPropertySymbols) {
21
+ var o = Object.getOwnPropertySymbols(e);
22
+ r && (o = o.filter(function (r) {
23
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
24
+ })), t.push.apply(t, o);
25
+ }
26
+ return t;
27
+ }
28
+ function _objectSpread2(e) {
29
+ for (var r = 1; r < arguments.length; r++) {
30
+ var t = null != arguments[r] ? arguments[r] : {};
31
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
32
+ _defineProperty(e, r, t[r]);
33
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
34
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
35
+ });
36
+ }
37
+ return e;
38
+ }
39
+ function _objectWithoutProperties(e, t) {
40
+ if (null == e) return {};
41
+ var o,
42
+ r,
43
+ i = _objectWithoutPropertiesLoose(e, t);
44
+ if (Object.getOwnPropertySymbols) {
45
+ var s = Object.getOwnPropertySymbols(e);
46
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
47
+ }
48
+ return i;
49
+ }
50
+ function _objectWithoutPropertiesLoose(r, e) {
51
+ if (null == r) return {};
52
+ var t = {};
53
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
54
+ if (e.includes(n)) continue;
55
+ t[n] = r[n];
56
+ }
57
+ return t;
58
+ }
59
+ function _toPrimitive(t, r) {
60
+ if ("object" != typeof t || !t) return t;
61
+ var e = t[Symbol.toPrimitive];
62
+ if (void 0 !== e) {
63
+ var i = e.call(t, r || "default");
64
+ if ("object" != typeof i) return i;
65
+ throw new TypeError("@@toPrimitive must return a primitive value.");
66
+ }
67
+ return ("string" === r ? String : Number)(t);
68
+ }
69
+ function _toPropertyKey(t) {
70
+ var i = _toPrimitive(t, "string");
71
+ return "symbol" == typeof i ? i : i + "";
72
+ }
73
+
74
+ export { _defineProperty as defineProperty, _extends as extends, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey };
@@ -0,0 +1,42 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import _JSXStyle from 'styled-jsx/style';
3
+ import React, { forwardRef } from 'react';
4
+ import classnames from 'classnames';
5
+ import { useTheme, getColorToken } from '../../theme/theme.js';
6
+
7
+ const _excluded = ["href", "children", "color", "invert", "className"];
8
+ /* A standard text anchor */
9
+ const Anchor = /*#__PURE__*/forwardRef(function Anchor(_ref, ref) {
10
+ let {
11
+ href,
12
+ children,
13
+ color = "primary",
14
+ invert,
15
+ className
16
+ } = _ref,
17
+ rest = _objectWithoutProperties(_ref, _excluded);
18
+ const theme = useTheme();
19
+ const foreground = getColorToken(theme, "foreground", color, {
20
+ invert
21
+ });
22
+ const scope = {
23
+ styles: /*#__PURE__*/React.createElement(_JSXStyle, {
24
+ id: "431832520",
25
+ dynamic: [foreground]
26
+ }, `a.__jsx-style-dynamic-selector,a.__jsx-style-dynamic-selector:visited{color:${foreground};}
27
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFuY2hvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEIyQixBQUkwQyxtQ0FDckMiLCJmaWxlIjoiYW5jaG9yLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBmb3J3YXJkUmVmIH0gZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgY24gZnJvbSBcImNsYXNzbmFtZXNcIjtcbmltcG9ydCBjc3MgZnJvbSBcInN0eWxlZC1qc3gvY3NzXCI7XG5pbXBvcnQgeyB1c2VUaGVtZSwgZ2V0Q29sb3JUb2tlbiwgQ29sb3JTcGVjaWZpZXIgfSBmcm9tIFwiLi4vLi4vdGhlbWUvdGhlbWVcIjtcblxuZXhwb3J0IGludGVyZmFjZSBBbmNob3JQcm9wc1xuICBleHRlbmRzIE9taXQ8UmVhY3QuSFRNTFByb3BzPEhUTUxBbmNob3JFbGVtZW50PiwgXCJjb2xvclwiPiB7XG4gIGNvbG9yPzogQ29sb3JTcGVjaWZpZXI7XG4gIGludmVydD86IGJvb2xlYW47XG59XG5cbi8qIEEgc3RhbmRhcmQgdGV4dCBhbmNob3IgKi9cbmNvbnN0IEFuY2hvciA9IGZvcndhcmRSZWYoZnVuY3Rpb24gQW5jaG9yKFxuICB7XG4gICAgaHJlZixcbiAgICBjaGlsZHJlbixcbiAgICBjb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== */
28
+ /*@ sourceURL=anchor.tsx */`),
29
+ className: _JSXStyle.dynamic([["431832520", [foreground]]])
30
+ };
31
+ return /*#__PURE__*/React.createElement("a", _extends({
32
+ href: href || "#"
33
+ }, rest, {
34
+ ref: ref,
35
+ className: "jsx-584794313" + " " + (rest && rest.className != null && rest.className || classnames(className, scope.className) || "")
36
+ }), children, /*#__PURE__*/React.createElement(_JSXStyle, {
37
+ id: "584794313"
38
+ }, "a.jsx-584794313:hover,a.jsx-584794313:focus{-webkit-text-decoration:underline;text-decoration:underline;}a.jsx-584794313:focus,a.jsx-584794313:active{outline:none;}a.jsx-584794313:active{-webkit-text-decoration:none;text-decoration:none;}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFuY2hvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNrQixBQUlxQyxBQUtiLEFBSVEsYUFIdkIscUNBSUEsVUFUQSIsImZpbGUiOiJhbmNob3IudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IGZvcndhcmRSZWYgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBjbiBmcm9tIFwiY2xhc3NuYW1lc1wiO1xuaW1wb3J0IGNzcyBmcm9tIFwic3R5bGVkLWpzeC9jc3NcIjtcbmltcG9ydCB7IHVzZVRoZW1lLCBnZXRDb2xvclRva2VuLCBDb2xvclNwZWNpZmllciB9IGZyb20gXCIuLi8uLi90aGVtZS90aGVtZVwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIEFuY2hvclByb3BzXG4gIGV4dGVuZHMgT21pdDxSZWFjdC5IVE1MUHJvcHM8SFRNTEFuY2hvckVsZW1lbnQ+LCBcImNvbG9yXCI+IHtcbiAgY29sb3I/OiBDb2xvclNwZWNpZmllcjtcbiAgaW52ZXJ0PzogYm9vbGVhbjtcbn1cblxuLyogQSBzdGFuZGFyZCB0ZXh0IGFuY2hvci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0eWxlPlxuICAgICAge3Njb3BlLnN0eWxlc31cbiAgICA8L2E+XG4gICk7XG59KTtcblxuZXhwb3J0IGRlZmF1bHQgQW5jaG9yO1xuIl19 */\n/*@ sourceURL=anchor.tsx */"), scope.styles);
39
+ });
40
+ var Anchor$1 = Anchor;
41
+
42
+ export { Anchor$1 as default };
@@ -0,0 +1,53 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import _JSXStyle from 'styled-jsx/style';
3
+ import React, { forwardRef } from 'react';
4
+ import classnames from 'classnames';
5
+ import { useTheme, getColorToken } from '../../theme/theme.js';
6
+
7
+ const _excluded = ["className", "href", "children", "active", "color", "invert", "analyticsId", "id"];
8
+ /* A bold anchor that turns green when active/focused */
9
+ const BoldAnchor = /*#__PURE__*/forwardRef(function EmboldenAnchor(_ref, ref) {
10
+ let {
11
+ className,
12
+ href,
13
+ children,
14
+ active,
15
+ color = "primary",
16
+ invert,
17
+ analyticsId,
18
+ id
19
+ } = _ref,
20
+ rest = _objectWithoutProperties(_ref, _excluded);
21
+ const theme = useTheme();
22
+ if (process.env.NODE_ENV !== "production") {
23
+ if (id && analyticsId) {
24
+ console.warn("[BoldAnchor] only one of the `id` and `analyticsId` props can be passed. Please remove one as `analyticsId` will override the id.");
25
+ }
26
+ }
27
+ const scope = {
28
+ styles: /*#__PURE__*/React.createElement(_JSXStyle, {
29
+ id: "2700453302",
30
+ dynamic: [getColorToken(theme, "foreground", color, {
31
+ invert
32
+ })]
33
+ }, `a.__jsx-style-dynamic-selector{position:relative;-webkit-text-decoration:none;text-decoration:none;color:inherit;font-weight:500;}a.__jsx-style-dynamic-selector:hover,a.__jsx-style-dynamic-selector:focus,a.__jsx-style-dynamic-selector:active,a.active.__jsx-style-dynamic-selector{color:${getColorToken(theme, "foreground", color, {
34
+ invert
35
+ })};}
36
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJz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WQ9e2FuYWx5dGljc0lkIHx8IGlkfVxuICAgICAgey4uLnJlc3R9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgICAge3Njb3BlLnN0eWxlc31cbiAgICA8L2E+XG4gICk7XG59KTtcblxuZXhwb3J0IGRlZmF1bHQgQm9sZEFuY2hvcjtcbiJdfQ== */
37
+ /*@ sourceURL=bold-anchor.tsx */`),
38
+ className: _JSXStyle.dynamic([["2700453302", [getColorToken(theme, "foreground", color, {
39
+ invert
40
+ })]]])
41
+ };
42
+ return /*#__PURE__*/React.createElement("a", _extends({
43
+ ref: ref,
44
+ href: href || "#",
45
+ className: classnames("bold-anchor", className, scope.className, {
46
+ active
47
+ }),
48
+ id: analyticsId || id
49
+ }, rest), children, scope.styles);
50
+ });
51
+ var BoldAnchor$1 = BoldAnchor;
52
+
53
+ export { BoldAnchor$1 as default };
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import ImageAvatar from './image-avatar.js';
3
+ import TextAvatar from './text-avatar.js';
4
+
5
+ /* Used to represent a user */
6
+ function Avatar(props) {
7
+ if (isImageAvatar(props)) {
8
+ return /*#__PURE__*/React.createElement(ImageAvatar, props);
9
+ }
10
+ return /*#__PURE__*/React.createElement(TextAvatar, props);
11
+ }
12
+ function isImageAvatar(props) {
13
+ return "src" in props && typeof props.src !== "undefined";
14
+ }
15
+
16
+ export { Avatar as default };
@@ -0,0 +1,42 @@
1
+ import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import _pt from 'prop-types';
3
+ import _JSXStyle from 'styled-jsx/style';
4
+ import React from 'react';
5
+ import classnames from 'classnames';
6
+ import { ON_BACKGROUND_GREY_GREY } from '../../theme/colors.js';
7
+
8
+ const _excluded = ["name", "src", "size"];
9
+ /* An avatar with an image */
10
+ function ImageAvatar(_ref) {
11
+ let {
12
+ name,
13
+ src,
14
+ size = "2.5rem"
15
+ } = _ref,
16
+ rest = _objectWithoutProperties(_ref, _excluded);
17
+ const scope = {
18
+ styles: /*#__PURE__*/React.createElement(_JSXStyle, {
19
+ id: "944252957",
20
+ dynamic: [ON_BACKGROUND_GREY_GREY, size, size]
21
+ }, `.avatar.__jsx-style-dynamic-selector{border-radius:100%;display:inline-block;overflow:hidden;border:1px solid ${ON_BACKGROUND_GREY_GREY};line-height:0;vertical-align:top;width:${size};height:${size};}img.__jsx-style-dynamic-selector{width:100%;height:100%;}
22
+ /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImltYWdlLWF2YXRhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0IyQixBQUcwQixBQVdSLFdBQ0MsUUFYUyxJQVl2QixpQkFYa0IsZ0JBQzhCLDhDQUNoQyxjQUNLLG1CQUNnQixtQ0FDQyxvQ0FDdEMiLCJmaWxlIjoiaW1hZ2UtYXZhdGFyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBjc3MgZnJvbSBcInN0eWxlZC1qc3gvY3NzXCI7XG5pbXBvcnQgY24gZnJvbSBcImNsYXNzbmFtZXNcIjtcbmltcG9ydCB7IE9OX0JBQ0tHUk9VTkRfR1JFWV9HUkVZIH0gZnJvbSBcIi4uLy4uL3RoZW1lL2NvbG9yc1wiO1xuXG5leHBvcnQgaW50ZXJmYWNlIEltYWdlQXZhdGFyUHJvcHNcbiAgZXh0ZW5kcyBPbWl0PFJlYWN0LkhUTUxQcm9wczxIVE1MU3BhbkVsZW1lbnQ+LCBcInNpemVcIj4ge1xuICBuYW1lOiBzdHJpbmc7XG4gIHNyYzogc3RyaW5nO1xuICBzaXplPzogc3RyaW5nO1xuICBhZG1pbklkPzogc3RyaW5nO1xufVxuXG4vKiBBbiBhdmF0YXIgd2l0aCBhbiBpbWFnZSAqL1xuZnVuY3Rpb24gSW1hZ2VBdmF0YXIoe1xuICBuYW1lLFxuICBzcmMsXG4gIHNpemUgPSBcIjIuNXJlbVwiLFxuICAuLi5yZXN0XG59OiBJbWFnZUF2YXRhclByb3BzKSB7XG4gIGNvbnN0IHNjb3BlID0gY3NzLnJlc29sdmVgXG4gICAgLmF2YXRhciB7XG4gICAgICBib3JkZXItcmFkaXVzOiAxMDAlO1xuICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkICR7T05fQkFDS0dST1VORF9HUkVZX0dSRVl9O1xuICAgICAgbGluZS1oZWlnaHQ6IDA7XG4gICAgICB2ZXJ0aWNhbC1hbGlnbjogdG9wO1xuICAgICAgd2lkdGg6ICR7c2l6ZX07XG4gICAgICBoZWlnaHQ6ICR7c2l6ZX07XG4gICAgfVxuXG4gICAgaW1nIHtcbiAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgIH1cbiAgYDtcblxuICByZXR1cm4gKFxuICAgIDxzcGFuIGNsYXNzTmFtZT17Y24oXCJhdmF0YXJcIiwgc2NvcGUuY2xhc3NOYW1lKX0gdGl0bGU9e25hbWV9IHsuLi5yZXN0fT5cbiAgICAgIDxpbWcgY2xhc3NOYW1lPXtzY29wZS5jbGFzc05hbWV9IGFsdD17bmFtZX0gc3JjPXtzcmN9IC8+XG4gICAgICB7c2NvcGUuc3R5bGVzfVxuICAgIDwvc3Bhbj5cbiAgKTtcbn1cblxuZXhwb3J0IGRlZmF1bHQgSW1hZ2VBdmF0YXI7XG4iXX0= */
23
+ /*@ sourceURL=image-avatar.tsx */`),
24
+ className: _JSXStyle.dynamic([["944252957", [ON_BACKGROUND_GREY_GREY, size, size]]])
25
+ };
26
+ return /*#__PURE__*/React.createElement("span", _extends({
27
+ className: classnames("avatar", scope.className),
28
+ title: name
29
+ }, rest), /*#__PURE__*/React.createElement("img", {
30
+ className: scope.className,
31
+ alt: name,
32
+ src: src
33
+ }), scope.styles);
34
+ }
35
+ ImageAvatar.propTypes = {
36
+ name: _pt.string.isRequired,
37
+ src: _pt.string.isRequired,
38
+ size: _pt.string,
39
+ adminId: _pt.string
40
+ };
41
+
42
+ export { ImageAvatar as default };