@mycause/ui 0.0.0-cb8edf5f → 0.0.0-cba5b1d7

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 (255) hide show
  1. package/README.md +12 -2
  2. package/dist/components/avatar/image-avatar.d.ts +1 -0
  3. package/dist/components/avatar/text-avatar.d.ts +2 -1
  4. package/dist/components/charity-tags-filter-button/charity-tags-filter-button.stories.d.ts +2 -1
  5. package/dist/components/cropper/cropper.stories.d.ts +2 -1
  6. package/dist/components/donation-form/donation-form.stories.d.ts +33 -7
  7. package/dist/components/featured-campaign-card/featured-campaign-card.d.ts +2 -2
  8. package/dist/components/icon/material-icon.d.ts +0 -5
  9. package/dist/components/index.d.ts +2 -2
  10. package/dist/components/info-represent-campaign/info-represent-campaign.stories.d.ts +2 -1
  11. package/dist/components/input/input.stories.d.ts +2 -1
  12. package/dist/components/input-social/input-social.stories.d.ts +2 -1
  13. package/dist/components/layout/box.d.ts +0 -1
  14. package/dist/components/layout/flex.d.ts +0 -9
  15. package/dist/components/layout/flex.stories.d.ts +36 -8
  16. package/dist/components/layout/stack.d.ts +1 -8
  17. package/dist/components/modal/modal.stories.d.ts +2 -2
  18. package/dist/components/my-account-frp-closed/my-account-frp-closed.stories.d.ts +2 -1
  19. package/dist/components/my-account-frp-preview/my-account-frp-preview.stories.d.ts +2 -1
  20. package/dist/components/my-account-sidebar/my-account-sidebar.stories.d.ts +1 -1
  21. package/dist/components/my-account-stats-donated/my-account-stats-donated.stories.d.ts +2 -1
  22. package/dist/components/my-account-stats-raised/my-account-stats-raised.stories.d.ts +2 -1
  23. package/dist/components/nav/{nav-expanded-charity-new.d.ts → nav-expanded-charity-v2.d.ts} +2 -2
  24. package/dist/components/navigation/navigation-user-menu.d.ts +1 -0
  25. package/dist/components/partner-chart-stats/partner-chart-stats.stories.d.ts +2 -1
  26. package/dist/components/partner-monthly-donations/partner-monthly-donations.stories.d.ts +2 -1
  27. package/dist/components/partner-monthly-stats/partner-monthly-stats.stories.d.ts +2 -1
  28. package/dist/components/partner-toggle-button/partner-toggle-button-block.stories.d.ts +2 -1
  29. package/dist/components/phone-number-input/phone-number-input.stories.d.ts +22 -24
  30. package/dist/components/select/select.stories.d.ts +93 -13
  31. package/dist/components/switch/switch.d.ts +4 -1
  32. package/dist/components/table/partner-monthly-table.stories.d.ts +2 -1
  33. package/dist/components/text/text.stories.d.ts +55 -8
  34. package/dist/components/text-field/text-field.stories.d.ts +6 -14
  35. package/dist/components/this-month-card/this-month-card.stories.d.ts +2 -1
  36. package/dist/components/toast/toast.stories.d.ts +2 -1
  37. package/dist/donation/anchor.d.ts +2 -0
  38. package/dist/donation/button.d.ts +2 -0
  39. package/dist/donation/checkbox.d.ts +1 -0
  40. package/dist/donation/combo-field.d.ts +1 -0
  41. package/dist/donation/elevation.d.ts +1 -0
  42. package/dist/donation/field-label.d.ts +1 -0
  43. package/dist/donation/flex.d.ts +2 -0
  44. package/dist/donation/grid.d.ts +1 -0
  45. package/dist/donation/icon.d.ts +2 -0
  46. package/dist/donation/modal.d.ts +1 -0
  47. package/dist/donation/navigation.d.ts +1 -0
  48. package/dist/donation/phone-number-input.d.ts +1 -0
  49. package/dist/donation/radio.d.ts +1 -0
  50. package/dist/donation/select.d.ts +1 -0
  51. package/dist/donation/single-date-picker.d.ts +1 -0
  52. package/dist/donation/stack.d.ts +1 -0
  53. package/dist/donation/text-field.d.ts +24 -0
  54. package/dist/donation/text.d.ts +1 -0
  55. package/dist/donation.esm.js +2165 -23047
  56. package/dist/donation.js +2769 -23633
  57. package/dist/index.css +1 -1
  58. package/dist/index.css.map +1 -1
  59. package/dist/index.esm.css +1 -1
  60. package/dist/index.esm.css.map +1 -1
  61. package/dist/index.esm.js +3527 -24390
  62. package/dist/index.js +5314 -26122
  63. package/donation/anchor/package.json +5 -0
  64. package/donation/button/package.json +5 -0
  65. package/donation/checkbox/package.json +5 -0
  66. package/donation/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
  67. package/donation/cjs/components/anchor/anchor.js +50 -0
  68. package/donation/cjs/components/anchor/bold-anchor.js +61 -0
  69. package/donation/cjs/components/avatar/avatar.js +22 -0
  70. package/donation/cjs/components/avatar/image-avatar.js +51 -0
  71. package/donation/cjs/components/avatar/text-avatar.js +70 -0
  72. package/donation/cjs/components/button/button.js +143 -0
  73. package/donation/cjs/components/checkbox/checkbox.js +75 -0
  74. package/donation/cjs/components/combo-field/combo-field-expander.js +44 -0
  75. package/donation/cjs/components/combo-field/combo-field.js +103 -0
  76. package/donation/cjs/components/date-picker/single-date-picker.js +83 -0
  77. package/donation/cjs/components/elevation/elevation.js +61 -0
  78. package/donation/cjs/components/field-helpers/field-helper-text.js +45 -0
  79. package/donation/cjs/components/field-helpers/field-label.js +51 -0
  80. package/donation/cjs/components/icon/heart-toggle.js +49 -0
  81. package/donation/cjs/components/icon/icon-button-group.js +49 -0
  82. package/donation/cjs/components/icon/icon-button.js +64 -0
  83. package/donation/cjs/components/icon/icon.js +67 -0
  84. package/donation/cjs/components/icon/material-icon.js +44 -0
  85. package/donation/cjs/components/layout/box.js +115 -0
  86. package/donation/cjs/components/layout/flex.js +81 -0
  87. package/donation/cjs/components/layout/grid.js +46 -0
  88. package/donation/cjs/components/layout/stack.js +48 -0
  89. package/donation/cjs/components/list/list.js +163 -0
  90. package/donation/cjs/components/menu/menu-list-item-graphic.js +7 -0
  91. package/donation/cjs/components/menu/menu-list-item-meta.js +7 -0
  92. package/donation/cjs/components/menu/menu-list-item-text.js +7 -0
  93. package/donation/cjs/components/menu/menu-list-item.js +27 -0
  94. package/donation/cjs/components/menu/menu-list.js +38 -0
  95. package/donation/cjs/components/menu/menu-surface.js +20 -0
  96. package/donation/cjs/components/modal/modal.js +153 -0
  97. package/donation/cjs/components/navigation/navigation-actions.js +21 -0
  98. package/donation/cjs/components/navigation/navigation-bar.js +34 -0
  99. package/donation/cjs/components/navigation/navigation-call-to-action.js +18 -0
  100. package/donation/cjs/components/navigation/navigation-expanded.js +67 -0
  101. package/donation/cjs/components/navigation/navigation-list.js +78 -0
  102. package/donation/cjs/components/navigation/navigation-menu-control.js +50 -0
  103. package/donation/cjs/components/navigation/navigation-menu.js +104 -0
  104. package/donation/cjs/components/navigation/navigation-search-control.js +30 -0
  105. package/donation/cjs/components/navigation/navigation-search.js +90 -0
  106. package/donation/cjs/components/navigation/navigation-sign-in-control.js +57 -0
  107. package/donation/cjs/components/navigation/navigation-user-menu-items.js +83 -0
  108. package/donation/cjs/components/navigation/navigation-user-menu.js +96 -0
  109. package/donation/cjs/components/navigation/navigation.js +191 -0
  110. package/donation/cjs/components/phone-number-input/phone-number-input-v1.js +183 -0
  111. package/donation/cjs/components/radio/radio.js +84 -0
  112. package/donation/cjs/components/select/select-helper-text.js +19 -0
  113. package/donation/cjs/components/select/select.js +177 -0
  114. package/donation/cjs/components/statistics/statistics.js +79 -0
  115. package/donation/cjs/components/tabs/tab-bar.js +43 -0
  116. package/donation/cjs/components/tabs/tab-text-label.js +23 -0
  117. package/donation/cjs/components/tabs/tab.js +72 -0
  118. package/donation/cjs/components/tabs/tabs.js +102 -0
  119. package/donation/cjs/components/text/text.js +197 -0
  120. package/donation/cjs/components/text-field/text-field-helper-text.js +31 -0
  121. package/donation/cjs/components/text-field/text-field.js +169 -0
  122. package/donation/cjs/donation/anchor.js +9 -0
  123. package/donation/cjs/donation/button.js +9 -0
  124. package/donation/cjs/donation/checkbox.js +9 -0
  125. package/donation/cjs/donation/combo-field.js +9 -0
  126. package/donation/cjs/donation/elevation.js +9 -0
  127. package/donation/cjs/donation/field-label.js +9 -0
  128. package/donation/cjs/donation/flex.js +9 -0
  129. package/donation/cjs/donation/grid.js +9 -0
  130. package/donation/cjs/donation/icon.js +9 -0
  131. package/donation/cjs/donation/modal.js +9 -0
  132. package/donation/cjs/donation/navigation.js +9 -0
  133. package/donation/cjs/donation/phone-number-input.js +9 -0
  134. package/donation/cjs/donation/radio.js +9 -0
  135. package/donation/cjs/donation/select.js +9 -0
  136. package/donation/cjs/donation/single-date-picker.js +9 -0
  137. package/donation/cjs/donation/stack.js +9 -0
  138. package/donation/cjs/donation/text-field.js +9 -0
  139. package/donation/cjs/donation/text.js +9 -0
  140. package/donation/cjs/theme/colors.js +15 -0
  141. package/donation/cjs/theme/mycause-theme.js +42 -0
  142. package/donation/cjs/theme/theme.js +69 -0
  143. package/donation/cjs/utils/browser.js +15 -0
  144. package/donation/cjs/utils/flags.js +24 -0
  145. package/donation/cjs/utils/get-element-display-name.js +12 -0
  146. package/donation/cjs/utils/set-ref.js +30 -0
  147. package/donation/cjs/utils/tap-event.js +17 -0
  148. package/donation/cjs/utils/tap-ref.js +17 -0
  149. package/donation/cjs/utils/wrap.js +19 -0
  150. package/donation/combo-field/package.json +5 -0
  151. package/donation/elevation/package.json +5 -0
  152. package/donation/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
  153. package/donation/esm/components/anchor/anchor.js +42 -0
  154. package/donation/esm/components/anchor/bold-anchor.js +53 -0
  155. package/donation/esm/components/avatar/avatar.js +16 -0
  156. package/donation/esm/components/avatar/image-avatar.js +42 -0
  157. package/donation/esm/components/avatar/text-avatar.js +61 -0
  158. package/donation/esm/components/button/button.js +132 -0
  159. package/donation/esm/components/checkbox/checkbox.js +65 -0
  160. package/donation/esm/components/combo-field/combo-field-expander.js +35 -0
  161. package/donation/esm/components/combo-field/combo-field.js +94 -0
  162. package/donation/esm/components/date-picker/single-date-picker.js +75 -0
  163. package/donation/esm/components/elevation/elevation.js +52 -0
  164. package/donation/esm/components/field-helpers/field-helper-text.js +36 -0
  165. package/donation/esm/components/field-helpers/field-label.js +42 -0
  166. package/donation/esm/components/icon/heart-toggle.js +41 -0
  167. package/donation/esm/components/icon/icon-button-group.js +40 -0
  168. package/donation/esm/components/icon/icon-button.js +54 -0
  169. package/donation/esm/components/icon/icon.js +58 -0
  170. package/donation/esm/components/icon/material-icon.js +35 -0
  171. package/donation/esm/components/layout/box.js +106 -0
  172. package/donation/esm/components/layout/flex.js +72 -0
  173. package/donation/esm/components/layout/grid.js +37 -0
  174. package/donation/esm/components/layout/stack.js +39 -0
  175. package/donation/esm/components/list/list.js +152 -0
  176. package/donation/esm/components/menu/menu-list-item-graphic.js +2 -0
  177. package/donation/esm/components/menu/menu-list-item-meta.js +2 -0
  178. package/donation/esm/components/menu/menu-list-item-text.js +2 -0
  179. package/donation/esm/components/menu/menu-list-item.js +20 -0
  180. package/donation/esm/components/menu/menu-list.js +30 -0
  181. package/donation/esm/components/menu/menu-surface.js +2 -0
  182. package/donation/esm/components/modal/modal.js +143 -0
  183. package/donation/esm/components/navigation/navigation-actions.js +15 -0
  184. package/donation/esm/components/navigation/navigation-bar.js +26 -0
  185. package/donation/esm/components/navigation/navigation-call-to-action.js +12 -0
  186. package/donation/esm/components/navigation/navigation-expanded.js +58 -0
  187. package/donation/esm/components/navigation/navigation-list.js +70 -0
  188. package/donation/esm/components/navigation/navigation-menu-control.js +41 -0
  189. package/donation/esm/components/navigation/navigation-menu.js +93 -0
  190. package/donation/esm/components/navigation/navigation-search-control.js +23 -0
  191. package/donation/esm/components/navigation/navigation-search.js +81 -0
  192. package/donation/esm/components/navigation/navigation-sign-in-control.js +49 -0
  193. package/donation/esm/components/navigation/navigation-user-menu-items.js +76 -0
  194. package/donation/esm/components/navigation/navigation-user-menu.js +86 -0
  195. package/donation/esm/components/navigation/navigation.js +182 -0
  196. package/donation/esm/components/phone-number-input/phone-number-input-v1.js +171 -0
  197. package/donation/esm/components/radio/radio.js +73 -0
  198. package/donation/esm/components/select/select-helper-text.js +12 -0
  199. package/donation/esm/components/select/select.js +168 -0
  200. package/donation/esm/components/statistics/statistics.js +70 -0
  201. package/donation/esm/components/tabs/tab-bar.js +34 -0
  202. package/donation/esm/components/tabs/tab-text-label.js +16 -0
  203. package/donation/esm/components/tabs/tab.js +63 -0
  204. package/donation/esm/components/tabs/tabs.js +93 -0
  205. package/donation/esm/components/text/text.js +189 -0
  206. package/donation/esm/components/text-field/text-field-helper-text.js +24 -0
  207. package/donation/esm/components/text-field/text-field.js +159 -0
  208. package/donation/esm/donation/anchor.js +1 -0
  209. package/donation/esm/donation/button.js +1 -0
  210. package/donation/esm/donation/checkbox.js +1 -0
  211. package/donation/esm/donation/combo-field.js +1 -0
  212. package/donation/esm/donation/elevation.js +1 -0
  213. package/donation/esm/donation/field-label.js +1 -0
  214. package/donation/esm/donation/flex.js +1 -0
  215. package/donation/esm/donation/grid.js +1 -0
  216. package/donation/esm/donation/icon.js +1 -0
  217. package/donation/esm/donation/modal.js +1 -0
  218. package/donation/esm/donation/navigation.js +1 -0
  219. package/donation/esm/donation/phone-number-input.js +1 -0
  220. package/donation/esm/donation/radio.js +1 -0
  221. package/donation/esm/donation/select.js +1 -0
  222. package/donation/esm/donation/single-date-picker.js +1 -0
  223. package/donation/esm/donation/stack.js +1 -0
  224. package/donation/esm/donation/text-field.js +5 -0
  225. package/donation/esm/donation/text.js +1 -0
  226. package/donation/esm/theme/colors.js +7 -0
  227. package/donation/esm/theme/mycause-theme.js +40 -0
  228. package/donation/esm/theme/theme.js +59 -0
  229. package/donation/esm/utils/browser.js +11 -0
  230. package/donation/esm/utils/flags.js +20 -0
  231. package/donation/esm/utils/get-element-display-name.js +8 -0
  232. package/donation/esm/utils/set-ref.js +26 -0
  233. package/donation/esm/utils/tap-event.js +13 -0
  234. package/donation/esm/utils/tap-ref.js +13 -0
  235. package/donation/esm/utils/wrap.js +11 -0
  236. package/donation/field-label/package.json +5 -0
  237. package/donation/flex/package.json +5 -0
  238. package/donation/grid/package.json +5 -0
  239. package/donation/icon/package.json +5 -0
  240. package/donation/modal/package.json +5 -0
  241. package/donation/navigation/package.json +5 -0
  242. package/donation/phone-number-input/package.json +5 -0
  243. package/donation/radio/package.json +5 -0
  244. package/donation/select/package.json +5 -0
  245. package/donation/single-date-picker/package.json +5 -0
  246. package/donation/stack/package.json +5 -0
  247. package/donation/text/package.json +5 -0
  248. package/donation/text-field/package.json +5 -0
  249. package/donation.css +2 -0
  250. package/package.json +152 -26
  251. package/styles/index.css +1 -1
  252. package/styles/index.css.map +1 -1
  253. package/dist/components/nav/charity.d.ts +0 -3
  254. /package/{dist → styles}/_index.css.js +0 -0
  255. /package/{dist → styles}/_reset.css.js +0 -0
package/README.md CHANGED
@@ -202,7 +202,7 @@ git push origin <version>
202
202
 
203
203
  ### Publishing an unstable version
204
204
 
205
- Use the following commands to publish an unstable version. These versions are tagged with the version number `0.0.0-cHASH` where `HASH` is the abbreviated git commit hash. These should only be used for internal development purposes.
205
+ Use the following commands to publish an unstable version manually. These versions are tagged with the version number `0.0.0-cHASH` where `HASH` is the abbreviated git commit hash. These should only be used for internal development purposes.
206
206
 
207
207
  The version `0.0.0` indicates that these releases have no stability guarantees and do not necessarily have any relationship with other versions.
208
208
 
@@ -214,7 +214,17 @@ npm publish mycause-ui-0.0.0-c$(git rev-parse --short HEAD).tgz --access public
214
214
  git reset --hard
215
215
  ```
216
216
 
217
- > The `c` prefix prevents an issue where npm doesn't accept numeric identifiers that start with 0, the abbreviated git commit has may be all numeric and start with 0, so `c` is prepended to avoid this.
217
+ CircleCI can also publish unstable versions using the npm token configured in CI. Create and push an `unstable-*` tag from a commit that is already in `test_env`; normal pushes or merges to `test_env` do not publish. CI publishes version `0.0.0-c<SHORT_HASH>` with the npm dist-tag `unstable`.
218
+
219
+ ```
220
+ git checkout test_env
221
+ git pull
222
+ SHORT_HASH=$(git rev-parse --short HEAD)
223
+ git tag "unstable-${SHORT_HASH}"
224
+ git push origin "unstable-${SHORT_HASH}"
225
+ ```
226
+
227
+ > The `c` prefix prevents an issue where npm doesn't accept numeric identifiers that start with 0. The abbreviated git commit hash may be all numeric and start with 0, so `c` is prepended to avoid this.
218
228
 
219
229
  ## License
220
230
 
@@ -3,6 +3,7 @@ export interface ImageAvatarProps extends Omit<React.HTMLProps<HTMLSpanElement>,
3
3
  name: string;
4
4
  src: string;
5
5
  size?: string;
6
+ adminId?: string;
6
7
  }
7
8
  declare function ImageAvatar({ name, src, size, ...rest }: ImageAvatarProps): React.JSX.Element;
8
9
  export default ImageAvatar;
@@ -6,6 +6,7 @@ export interface TextAvatarProps extends Omit<React.HTMLProps<HTMLSpanElement>,
6
6
  color?: ColorSpecifier;
7
7
  invert?: boolean;
8
8
  size?: string;
9
+ adminId?: string;
9
10
  }
10
- declare function TextAvatar({ name, initials, color, invert, size, ...rest }: TextAvatarProps): React.JSX.Element;
11
+ declare function TextAvatar({ name, initials, color, invert, size, adminId, ...rest }: TextAvatarProps): React.JSX.Element;
11
12
  export default TextAvatar;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const CharityTagsFilterButtonStories: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const CropperStory: {
@@ -1,15 +1,41 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const DonationFormStories: {
8
- (): React.JSX.Element;
9
- story: {
10
- name: string;
5
+ decorators: (typeof CenterDecorator)[];
6
+ argTypes: {
7
+ prefix: {
8
+ control: string;
9
+ defaultValue: string;
10
+ };
11
+ currency: {
12
+ control: string;
13
+ defaultValue: string;
14
+ };
15
+ control: {
16
+ control: string;
17
+ defaultValue: boolean;
18
+ };
19
+ hasCard: {
20
+ control: string;
21
+ defaultValue: boolean;
22
+ };
23
+ hasError: {
24
+ control: string;
25
+ defaultValue: boolean;
26
+ };
27
+ noContianer: {
28
+ control: string;
29
+ defaultValue: boolean;
30
+ };
31
+ maxWidth: {
32
+ control: string;
33
+ defaultValue: string;
34
+ };
11
35
  };
12
36
  };
37
+ export default _default;
38
+ export declare const DonationFormStories: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
13
39
  export declare const DonationCampaignFormStories: {
14
40
  (): React.JSX.Element;
15
41
  story: {
@@ -7,8 +7,8 @@ export interface FeaturedCampaignCardProps {
7
7
  completed?: number;
8
8
  maxWidth?: number;
9
9
  donation?: number;
10
- raised?: number;
11
- goal?: number;
10
+ raised?: number | string;
11
+ goal?: number | string;
12
12
  onClick: () => void;
13
13
  fundraisingText: string;
14
14
  handleImageError?: () => void;
@@ -6,9 +6,4 @@ export interface MaterialIconProps extends Omit<React.HTMLProps<HTMLOrSVGElement
6
6
  size?: string;
7
7
  }
8
8
  declare function MaterialIcon({ icon, iconSet, className, size, ...rest }: MaterialIconProps): React.JSX.Element;
9
- declare namespace MaterialIcon {
10
- var defaultProps: {
11
- iconSet: string;
12
- };
13
- }
14
9
  export default MaterialIcon;
@@ -46,8 +46,6 @@ export * from "./partner-chart-stats";
46
46
  export * from "./this-month-card";
47
47
  export * from "./partner-toggle-button";
48
48
  export * from "./footerV2";
49
- export * from "./input";
50
- export * from "./toast";
51
49
  export * from "./my-account-start-fundraise-card";
52
50
  export * from "./my-account-choose-charity-card";
53
51
  export * from "./favorite-charity-item";
@@ -55,8 +53,10 @@ export * from "./my-account-sidebar";
55
53
  export * from "./my-account-frp-preview";
56
54
  export * from "./my-account-stats-donated";
57
55
  export * from "./my-account-stats-raised";
56
+ export * from "./input";
58
57
  export * from "./my-account-frp-closed";
59
58
  export * from "./transaction-card";
59
+ export * from "./toast";
60
60
  export * from "./input-social";
61
61
  export * from "./charity-tags-filter-button";
62
62
  export * from "./collapse";
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const InforRepresentCampaignStories: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const InputExample: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const InputExample: {
@@ -382,7 +382,6 @@ declare function Box({ as, ma, mv, mh, mt, mr, mb, ml, pa, pv, ph, pt, pb, pl, p
382
382
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLElement> | undefined;
383
383
  onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
384
384
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
385
- css?: import("@emotion/core").InterpolationWithTheme<any>;
386
385
  ref?: React.LegacyRef<HTMLElement> | undefined;
387
386
  key?: React.Key | null | undefined;
388
387
  className: string;
@@ -13,13 +13,4 @@ export interface FlexProps extends Omit<BoxProps, "wrap"> {
13
13
  children?: React.ReactNode;
14
14
  }
15
15
  declare function Flex({ direction, justify, align, reverse, wrap, center, className, children, ...rest }: FlexProps): React.JSX.Element;
16
- declare namespace Flex {
17
- var defaultProps: {
18
- direction: string;
19
- justify: string;
20
- align: string;
21
- reverse: boolean;
22
- wrap: boolean;
23
- };
24
- }
25
16
  export default Flex;
@@ -1,14 +1,42 @@
1
- import React from "react";
2
1
  import CenterDecorator from "../../utils/center-decorator";
3
2
  declare const _default: {
4
3
  title: string;
5
4
  decorators: (typeof CenterDecorator)[];
6
- };
7
- export default _default;
8
- export declare const FlexStory: {
9
- (): React.JSX.Element;
10
- story: {
11
- name: string;
12
- decorators: ((...args: any) => any)[];
5
+ argTypes: {
6
+ number: {
7
+ control: string;
8
+ defaultValue: number;
9
+ };
10
+ reverse: {
11
+ control: string;
12
+ defaultValue: boolean;
13
+ };
14
+ wrap: {
15
+ control: string;
16
+ defaultValue: boolean;
17
+ };
18
+ align: {
19
+ control: {
20
+ type: string;
21
+ options: string[];
22
+ };
23
+ defaultValue: string;
24
+ };
25
+ direction: {
26
+ control: {
27
+ type: string;
28
+ options: string[];
29
+ };
30
+ defaultValue: string;
31
+ };
32
+ justify: {
33
+ control: {
34
+ type: string;
35
+ options: string[];
36
+ };
37
+ defaultValue: string;
38
+ };
13
39
  };
14
40
  };
41
+ export default _default;
42
+ export declare const FlexStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
@@ -3,14 +3,7 @@ import { FlexProps } from "./flex";
3
3
  interface StackProps extends FlexProps {
4
4
  horizontal?: boolean;
5
5
  vertical?: boolean;
6
- gap: string;
6
+ gap?: string;
7
7
  }
8
8
  declare function Stack({ gap, direction, reverse, className, children, ...rest }: StackProps): React.JSX.Element;
9
- declare namespace Stack {
10
- var defaultProps: {
11
- gap: string;
12
- direction: string;
13
- reverse: boolean;
14
- };
15
- }
16
9
  export default Stack;
@@ -29,13 +29,13 @@ export declare const ModalStoriesMinimal: {
29
29
  name: string;
30
30
  };
31
31
  };
32
- export declare const ModalConfirmation: {
32
+ export declare const ModalStoriesImage: {
33
33
  (): React.JSX.Element;
34
34
  story: {
35
35
  name: string;
36
36
  };
37
37
  };
38
- export declare const ModalStoriesImage: {
38
+ export declare const ModalConfirmation: {
39
39
  (): React.JSX.Element;
40
40
  story: {
41
41
  name: string;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const MyAccountFrpCloseStory: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const MyAccountFrpPreviewStory: {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
- decorators: ((...args: any) => any)[];
4
+ decorators: never[];
5
5
  };
6
6
  export default _default;
7
7
  export declare const MyAccountSidebarStory: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const MyAccountStatsDonatedStory: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const MyAccountStatsRaisedStory: {
@@ -8,5 +8,5 @@ export type NavigationExpandedProps = {
8
8
  className?: string;
9
9
  menu: NavMenuProps;
10
10
  };
11
- declare function NavigationExpandedCharityNew({ children, onRequestClose, className, menu, }: NavigationExpandedProps): React.JSX.Element;
12
- export default NavigationExpandedCharityNew;
11
+ declare function NavigationExpandedCharityV2({ children, onRequestClose, className, menu, }: NavigationExpandedProps): React.JSX.Element;
12
+ export default NavigationExpandedCharityV2;
@@ -5,6 +5,7 @@ export type UserData = {
5
5
  avatar?: {
6
6
  src: string;
7
7
  };
8
+ adminId?: string;
8
9
  };
9
10
  export type UserMenuItems = Array<UserMenuItemWithSubmenu>;
10
11
  interface NavigationUserMenuProps {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const PartnerChartStatsActive: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const PartnerMonthlyStatsStories: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const PartnerMonthlyStatsStories: {
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const PartnerToggleButtonBlockStory: {
@@ -3,20 +3,28 @@ import CenterDecorator from "../../utils/center-decorator";
3
3
  declare const _default: {
4
4
  title: string;
5
5
  decorators: (typeof CenterDecorator)[];
6
- };
7
- export default _default;
8
- export declare const PhoneNumberInputStory: {
9
- (): React.JSX.Element;
10
- story: {
11
- name: string;
12
- };
13
- };
14
- export declare const PhoneNumberInputDisableStory: {
15
- (): React.JSX.Element;
16
- story: {
17
- name: string;
6
+ argTypes: {
7
+ label: {
8
+ control: string;
9
+ defaultValue: string;
10
+ };
11
+ required: {
12
+ control: string;
13
+ defaultValue: boolean;
14
+ };
15
+ helperText: {
16
+ control: string;
17
+ defaultValue: string;
18
+ };
19
+ error: {
20
+ control: string;
21
+ defaultValue: string;
22
+ };
18
23
  };
19
24
  };
25
+ export default _default;
26
+ export declare const PhoneNumberInputStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
27
+ export declare const PhoneNumberInputDisableStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
20
28
  export declare const PhoneInputStory: {
21
29
  (): React.JSX.Element;
22
30
  story: {
@@ -29,15 +37,5 @@ export declare const PhoneNumberInputV2: {
29
37
  name: string;
30
38
  };
31
39
  };
32
- export declare const PhoneNumberInputStoryV1: {
33
- (): React.JSX.Element;
34
- story: {
35
- name: string;
36
- };
37
- };
38
- export declare const PhoneNumberInputIsDisableCountriesStoryV1: {
39
- (): React.JSX.Element;
40
- story: {
41
- name: string;
42
- };
43
- };
40
+ export declare const PhoneNumberInputStoryV1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
41
+ export declare const PhoneNumberInputIsDisableCountriesStoryV1: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
@@ -1,24 +1,104 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const SelectStory: {
8
- (): React.JSX.Element;
9
- story: {
10
- name: string;
5
+ decorators: (typeof CenterDecorator)[];
6
+ argTypes: {
7
+ large: {
8
+ control: string;
9
+ defaultValue: boolean;
10
+ };
11
+ label: {
12
+ control: string;
13
+ defaultValue: string;
14
+ };
15
+ labelKind: {
16
+ control: {
17
+ type: string;
18
+ options: {
19
+ External: string;
20
+ Floating: string;
21
+ };
22
+ };
23
+ defaultValue: string;
24
+ };
25
+ required: {
26
+ control: string;
27
+ defaultValue: boolean;
28
+ };
29
+ helperText: {
30
+ control: string;
31
+ defaultValue: string;
32
+ };
33
+ persistent: {
34
+ control: string;
35
+ defaultValue: boolean;
36
+ };
37
+ leadingIcon: {
38
+ control: string;
39
+ defaultValue: boolean;
40
+ };
41
+ arrow: {
42
+ control: string;
43
+ defaultValue: boolean;
44
+ };
45
+ error: {
46
+ control: string;
47
+ defaultValue: string;
48
+ };
11
49
  };
12
50
  };
51
+ export default _default;
52
+ export declare const SelectStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
13
53
  export declare const SelectStoryV2: {
14
54
  (): React.JSX.Element;
15
55
  story: {
16
56
  name: string;
57
+ decorators: (typeof CenterDecorator)[];
58
+ argTypes: {
59
+ large: {
60
+ control: string;
61
+ defaultValue: boolean;
62
+ };
63
+ label: {
64
+ control: string;
65
+ defaultValue: string;
66
+ };
67
+ labelKind: {
68
+ control: {
69
+ type: string;
70
+ options: {
71
+ External: string;
72
+ Floating: string;
73
+ };
74
+ };
75
+ defaultValue: string;
76
+ };
77
+ required: {
78
+ control: string;
79
+ defaultValue: boolean;
80
+ };
81
+ helperText: {
82
+ control: string;
83
+ defaultValue: string;
84
+ };
85
+ persistent: {
86
+ control: string;
87
+ defaultValue: boolean;
88
+ };
89
+ leadingIcon: {
90
+ control: string;
91
+ defaultValue: boolean;
92
+ };
93
+ arrow: {
94
+ control: string;
95
+ defaultValue: boolean;
96
+ };
97
+ error: {
98
+ control: string;
99
+ defaultValue: string;
100
+ };
101
+ };
17
102
  };
18
103
  };
19
- export declare const SelectEnhancedStory: {
20
- (): React.JSX.Element;
21
- story: {
22
- name: string;
23
- };
24
- };
104
+ export declare const SelectEnhancedStory: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("@storybook/types").Args>;
@@ -10,5 +10,8 @@ export interface SwitchProps extends Omit<MDCSwitchProps, "ref" | "color"> {
10
10
  disabled?: boolean;
11
11
  onChange?: (e: React.FormEvent<HTMLInputElement>) => void;
12
12
  }
13
- declare const Switch: ({ id, label, color, className, ...rest }: SwitchProps) => React.JSX.Element;
13
+ declare const Switch: {
14
+ ({ id, label, color, className, ...rest }: SwitchProps): React.JSX.Element;
15
+ displayName: string;
16
+ };
14
17
  export default Switch;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import CenterDecorator from "../../utils/center-decorator";
2
3
  declare const _default: {
3
4
  title: string;
4
- decorators: ((...args: any) => any)[];
5
+ decorators: (typeof CenterDecorator)[];
5
6
  };
6
7
  export default _default;
7
8
  export declare const PartnerMonthlyTableStories: {