@mycause/ui 0.0.0-ce266ae8 → 0.0.0-ce26b4da

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 (57) hide show
  1. package/dist/components/anchor/anchor.d.ts +1 -1
  2. package/dist/components/anchor/anchor.stories.d.ts +1 -1
  3. package/dist/components/anchor/bold-anchor.d.ts +1 -1
  4. package/dist/components/campaign-of-month/campaign-of-month.d.ts +2 -1
  5. package/dist/components/campaign-of-month/campaign-of-month.stories.d.ts +1 -1
  6. package/dist/components/date-picker/date-picker.stories.d.ts +6 -0
  7. package/dist/components/date-picker/single-date-picker-custom-header.d.ts +31 -0
  8. package/dist/components/donate-card copy/donate-card.d.ts +8 -0
  9. package/dist/components/donate-card copy/donate-card.stories.d.ts +14 -0
  10. package/dist/components/donate-card copy/index.d.ts +1 -0
  11. package/dist/components/index.d.ts +5 -1
  12. package/dist/components/layout/box.d.ts +5 -5
  13. package/dist/components/modal/index.d.ts +1 -0
  14. package/dist/components/modal/modal-image.d.ts +8 -0
  15. package/dist/components/modal/modal.d.ts +2 -1
  16. package/dist/components/modal/modal.stories.d.ts +6 -0
  17. package/dist/components/nav/nav-expanded-charity.d.ts +2 -1
  18. package/dist/components/nav/nav.d.ts +1 -0
  19. package/dist/components/partner-chart-stats/index.d.ts +1 -0
  20. package/dist/components/partner-chart-stats/partner-chart-stats.d.ts +11 -0
  21. package/dist/components/{parnert-monthly-stats/parnert-monthly-stats.stories.d.ts → partner-chart-stats/partner-chart-stats.stories.d.ts} +7 -1
  22. package/dist/components/partner-monthly-stats/index.d.ts +1 -1
  23. package/dist/components/partner-monthly-stats/partner-monthly-stats.d.ts +1 -1
  24. package/dist/components/partner-toggle-button/index.d.ts +2 -0
  25. package/dist/components/partner-toggle-button/partner-toggle-button-block.d.ts +11 -0
  26. package/dist/components/{line-chart/partner-line-chart-block.stories.d.ts → partner-toggle-button/partner-toggle-button-block.stories.d.ts} +1 -1
  27. package/dist/components/partner-toggle-button/partner-toggle-button.d.ts +8 -0
  28. package/dist/components/table/partner-monthly-table.d.ts +3 -2
  29. package/dist/components/text/text.d.ts +1 -1
  30. package/dist/components/text-field/index.d.ts +1 -0
  31. package/dist/components/text-field/text-field.stories.d.ts +6 -0
  32. package/dist/components/this-month-card/index.d.ts +1 -0
  33. package/dist/components/this-month-card/this-month-card.d.ts +15 -0
  34. package/dist/components/{line-chart/partner-line-chart.stories.d.ts → this-month-card/this-month-card.stories.d.ts} +1 -1
  35. package/dist/components/transaction-card/donate-card.d.ts +8 -0
  36. package/dist/components/transaction-card/donate-card.stories.d.ts +14 -0
  37. package/dist/components/transaction-card/index.d.ts +1 -0
  38. package/dist/components/transaction-card/transaction-card.d.ts +8 -0
  39. package/dist/components/transaction-card/transaction-card.stories.d.ts +14 -0
  40. package/dist/components/transaction-card/transaction-cardstories.d.ts +14 -0
  41. package/dist/index.esm.js +24400 -383
  42. package/dist/index.js +24429 -391
  43. package/dist/utils/parse-numbers.d.ts +1 -1
  44. package/package.json +1 -2
  45. package/CHANGELOG.md +0 -565
  46. package/dist/components/line-chart/index.d.ts +0 -1
  47. package/dist/components/line-chart/parnert-line-chart.d.ts +0 -3
  48. package/dist/components/line-chart/parnert-line-chart.stories.d.ts +0 -12
  49. package/dist/components/line-chart/partner-line-chart-block copy.d.ts +0 -0
  50. package/dist/components/line-chart/partner-line-chart-block.d.ts +0 -8
  51. package/dist/components/line-chart/partner-line-chart.d.ts +0 -3
  52. package/dist/components/line-chart/partner-line-chart.stories-block.d.ts +0 -12
  53. package/dist/components/parnert-monthly-stats/index.d.ts +0 -1
  54. package/dist/components/parnert-monthly-stats/parnert-monthly-stats.d.ts +0 -7
  55. package/dist/components/partner-monthly-table/index.d.ts +0 -1
  56. package/dist/components/partner-monthly-table/partner-monthly-table.d.ts +0 -7
  57. package/dist/components/partner-monthly-table/partner-monthly-table.stories.d.ts +0 -12
@@ -1,2 +1,2 @@
1
- declare const intToString: (value: number) => string | number;
1
+ declare const intToString: (value: number) => import("csstype").AnimationIterationCountProperty;
2
2
  export { intToString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.0.0-ce266ae8",
3
+ "version": "0.0.0-ce26b4da",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -99,7 +99,6 @@
99
99
  "@types/nanoid": "^2.1.0",
100
100
  "@types/react-cropper": "^0.10.7",
101
101
  "@types/react-dates": "^17.1.5",
102
- "chart.js": "1.0.2",
103
102
  "classnames": "^2.2.6",
104
103
  "html5-file-selector": "^2.1.0",
105
104
  "i18n-iso-countries": "^4.3.1",
package/CHANGELOG.md DELETED
@@ -1,565 +0,0 @@
1
- ## 0.16.9
2
-
3
- ###### Thu, 15 Apr 2021
4
-
5
- - PhoneNumberInput
6
- - Update behavior sort country options
7
-
8
- ## 0.16.8
9
-
10
- ###### Tue, 23 Feb 2021
11
-
12
- - Navigation bar
13
- - Fixed container width - bug "for charities"
14
-
15
- ## 0.16.7
16
-
17
- ###### Wed, 2 Sep 2020
18
-
19
- - NavigationMenu
20
- - add `onClick` prop.
21
-
22
- ## 0.16.5
23
-
24
- ###### Sun, 19 Jul 2020
25
-
26
- - Statistics
27
- - add `dark` prop.
28
-
29
- ###### Mon, 15 06 2020
30
-
31
- - Select
32
-
33
- - Fixed event target bug
34
-
35
- ## 0.16.4
36
-
37
- ###### TUE, 20 05 2020
38
-
39
- - PhoneNumberInput, Select
40
-
41
- - add color prop
42
-
43
- ## 0.16.3
44
-
45
- ###### TUE, 19 05 2020
46
-
47
- - TextField
48
-
49
- - add color prop
50
-
51
- ## 0.16.2
52
-
53
- ###### Wed, 1 Apr 2020
54
-
55
- - DatePicker
56
-
57
- - Added new prop to single date picker to allow out of range date picks.## 0.16.2
58
-
59
- ## 0.16.1
60
-
61
- ###### Wed, 1 Apr 2020
62
-
63
- - DatePicker
64
-
65
- - Fixed typecheck bug on datepicker.
66
-
67
- ## 0.16.0
68
-
69
- ###### Tue, 31 Mar 2020
70
-
71
- - DonationForm
72
-
73
- - Added new donation form component.
74
-
75
- ## 0.15.2
76
-
77
- ###### Wed, 18 Mar 2020
78
-
79
- - Navigation
80
-
81
- - Added new navigation controls.
82
- - Added nav style v2 in navigation story
83
-
84
- ## 0.15.1
85
-
86
- ###### Tue, 10 Mar 2020
87
-
88
- - Spinner
89
-
90
- - Spinner component - fix bug building
91
-
92
- ## 0.15.0
93
-
94
- ###### Tue, 10 Mar 2020
95
-
96
- - Spinner
97
-
98
- - Spinner component
99
-
100
- ## 0.14.0
101
-
102
- ###### Tue, 10 Mar 2020
103
-
104
- - Login
105
-
106
- - Login component
107
-
108
- ## 0.13.10
109
-
110
- ###### Fri, 6 Mar 2020
111
-
112
- - List
113
-
114
- - Added listcontent and ability to toggle content.
115
-
116
- ## 0.13.10
117
-
118
- ###### Fri, 6 Mar 2020
119
-
120
- - List
121
-
122
- - Added listcontent and ability to toggle content.
123
-
124
- ## 0.13.9
125
-
126
- ###### Mon, 2 Mar 2020
127
-
128
- - CommentSection
129
-
130
- - Created CommentSection component.
131
-
132
- ## 0.13.8
133
-
134
- ###### Fri, 21 Feb 2020
135
-
136
- - PhoneNumberInput
137
-
138
- - Fixed flag postioning bug and added placeholder prop.
139
-
140
- ## 0.13.7
141
-
142
- ###### Tue, 18 Feb 2020
143
-
144
- - Cropper
145
-
146
- - Added quality and imageType prop to control image quality/type via dataUrl.
147
-
148
- ## 0.13.6
149
-
150
- ###### Monday, 17 Feb 2020
151
-
152
- - Navigation
153
-
154
- - Removed ExpandedRedirect.
155
- - Added actionRaised prop to menu item. Basically the exandedRedirect but now controlled by tab menu.
156
-
157
- ## 0.13.5
158
-
159
- ###### Friday, 14 Feb 2020
160
-
161
- - Navigation
162
-
163
- - Made sure that ExpandedRedirect does not turn into anchor. This is to address difficulty encountered with google analytics.
164
-
165
- ## 0.13.4
166
-
167
- ###### Friday, 14 Feb 2020
168
-
169
- - Navigation
170
- - Added ExpandedRedirect prop that overides stats prop.
171
-
172
- ## 0.13.3
173
-
174
- ###### Mon, 3 Feb 2020
175
-
176
- - PhoneNumberInput
177
- - hotfix added custom flag-icons to country select.
178
- - PhoneNumberField
179
- - this has been removed.
180
-
181
- ## 0.13.2
182
-
183
- ###### Fri, 31 Jan 2020
184
-
185
- - PhoneNumberInput
186
- - hotfix set disable country code to default.
187
-
188
- ## 0.13.1
189
-
190
- ###### Thu, 30 Jan 2020
191
-
192
- - PhoneNumberInput
193
- - Added new default values.
194
-
195
- ## 0.13.0
196
-
197
- ###### Thu, 30 Jan 2020
198
-
199
- - List
200
- - Added breakspace to allow for long names to be shown in list component.
201
- - ButtonSelect
202
- - Created a button component that has a dropdown.
203
- - Modal
204
- - Added minimal version of modal.
205
-
206
- ## 0.12.4
207
-
208
- ###### Thu, 9 Jan 2020
209
-
210
- - PhoneNumberInput
211
- - Improved functionality by adding default country prop and getCountry function.
212
-
213
- ## 0.12.3
214
-
215
- ###### Sat, 21 Dec 2019
216
-
217
- - PhoneNumberField
218
- - This is depricated but has not been removed yet.
219
- - PhoneNumberInput
220
- - Created new phonenumber component with input with better functionality.
221
- - Cropper
222
- - Set default crop size to max width of uploaded image.
223
- - List
224
- - fixed warnings from components.
225
-
226
- ## 0.12.1
227
-
228
- ###### Thu, 13 Dec 2019
229
-
230
- - Uploader
231
- - Type check improvements removed since Dropzone package causes typecheck error in app build.
232
- - Need to investiage why this is happening.
233
-
234
- ## 0.12.0
235
-
236
- ###### Thu, 12 Dec 2019
237
-
238
- - Modal
239
- - Added Modal component.
240
- - Uploader
241
- - Added Uploader component.
242
- - Cropper
243
- - Added Cropper component.
244
- - DatePicker
245
- - Added range DatePicker component.
246
- - Added single DatePicker component.
247
- - Switch
248
- - Set cursor:pointer on labels for Radio, Switch, and Checkbox.
249
- - Checkbox
250
- - Set cursor:pointer on labels for Radio, Switch, and Checkbox.
251
- - Select
252
- - Set cursor:pointer on labels for Radio, Switch, and Checkbox.
253
- - Add error prop to select.
254
- - TextField
255
- - Add list prop to TextField component.
256
- - List
257
- - Add style prop to List component.
258
-
259
- ## 0.11.2
260
-
261
- ###### Thu, 28 Nov 2019
262
-
263
- - Select
264
- - fixed the bug where the onChange event doesn't emit with the correct value on Firefox _again_.
265
-
266
- ## 0.11.1
267
-
268
- ###### Thu, 28 Nov 2019
269
-
270
- - Select
271
- - fixed the bug where the onChange event doesn't emit with the correct value on Firefox again.
272
-
273
- ## 0.11.0
274
-
275
- ###### Thu, 28 Nov 2019
276
-
277
- - PhoneNumberField
278
- - added PhoneNumberField component.
279
- - added parseNationalPhoneNumber utility function.
280
-
281
- ## 0.10.1
282
-
283
- ###### Thu, 28 Nov 2019
284
-
285
- - Select
286
- - following the Select fix in 0.9.0, select now emits an onChange event with both a valid target and currentTarget always.
287
-
288
- ## 0.10.0
289
-
290
- ###### Wed, 27 Nov 2019
291
-
292
- - Navigation
293
- - **breaking**: the `onLogin` and `loginAnalyticsId` props are now one optional prop `login` that takes an object.
294
- - **breaking**: the `onSearch` and `searchAnalyticsId` props are now one optional prop `search` that takes an object.
295
-
296
- ## 0.9.1
297
-
298
- > Version 0.9.0 was incorrectly published and does not include all the changes intended. Please use this version instead.
299
-
300
- ## 0.9.0
301
-
302
- ###### Tue, 26 Nov 2019
303
-
304
- > Version 0.9.0 was incorrectly published and does not include all the changes intended. Please use 0.9.1 instead.
305
-
306
- - FieldHelperText
307
- - added FieldHelperText component.
308
- - FieldLabel
309
- - added FieldLabel component.
310
- - List
311
- - added `iconsNotRounded`, `iconWidth`, and `overflowHidden` props.
312
- - Select
313
- - fixed a bug where the select options could not be selected on Firefox.
314
- - added `noArrow` prop.
315
- - TextField
316
- - fixed a bug where providing a boolean value for the `error` prop incorrectly added helper text.
317
-
318
- ## 0.8.0
319
-
320
- ###### Tue, 19 Nov 2019
321
-
322
- - Box
323
- - added Box base component.
324
- - Checkbox
325
- - fixed alignment of label.
326
- - Flex
327
- - now composes the Box component.
328
- - Grid
329
- - added the Grid component.
330
- - Stack
331
- - now composes the Box component.
332
- - Text
333
- - now composes the Box component.
334
-
335
- ## 0.7.2
336
-
337
- ###### Tue, 19 Nov 2019
338
-
339
- - Checkbox
340
- - fixed Checkbox not being exported.
341
- - adjusted label styling.
342
- - Select
343
- - fixed a bug where select element options were showing up as blank in some browsers.
344
-
345
- ## 0.7.1
346
-
347
- ###### Mon, 18 Nov 2019
348
-
349
- > Version 0.7.0 was incorrectly published and does not include all the changes intended. Please use this version instead.
350
-
351
- ## 0.7.0
352
-
353
- ###### Mon, 18 Nov 2019
354
-
355
- > Version 0.7.0 was incorrectly published and does not include all the changes intended. Please use 0.7.1 instead.
356
-
357
- ##### Components
358
-
359
- - Elevation
360
- - now has overflow set to hidden by default.
361
- - List
362
- - added List component.
363
- - RadioGroup
364
- - fixed RadioGroup not being exported.
365
- - Text
366
- - added the `align` prop.
367
- - TextField
368
- - notch now has a minimum width to avoid cutting off floating label text.
369
- - helper text no longer has horizontal padding.
370
-
371
- ##### Modules
372
-
373
- - Theme
374
- - added MyCauseTheme to exports.
375
-
376
- ## 0.6.0
377
-
378
- ###### Thu, 14 Nov 2019
379
-
380
- - TextField
381
- - **breaking**: replaced the `dense` prop with the `large` prop, the TextField is now dense by default.
382
- - **breaking**: removed the `outlined` prop, all TextFields are outlined now and the (old) default style can no longer be used.
383
- - Select
384
- - **breaking**: replaced the `dense` prop with the `large` prop, the TextField is now dense by default.
385
- - **breaking**: removed the `outlined` prop, the default style can no longer be used.
386
- - added a `helperText` prop similar to that of TextField.
387
- - SelectHelperText
388
- - added SelectHelperText component.
389
-
390
- ## 0.5.1
391
-
392
- ###### Thu, 14 Nov 2019
393
-
394
- - Navigation
395
- - fixed user menu submenus not being closable.
396
- - Radio
397
- - fixed bug where radio id would not be updated when the name or value is updated.
398
-
399
- ## 0.5.0
400
-
401
- ###### Thu, 14 Nov 2019
402
-
403
- - Radio
404
- - added Radio component.
405
- - RadioGroup
406
- - added RadioGroup component.
407
- - Switch
408
- - added Switch component.
409
- - Navigation
410
- - **breaking**: the `sticky` prop has been renamed to `isSticky`.
411
- - **breaking**: the `subMenuForMobule` prop has been removed, the user of the navigation component is now responsible for swapping out the user menu in response to screen size.
412
- - the `onSearch` prop is now optional, and hides search when not provided.
413
- - the `onLogin` prop is now optional, and hides the login button when not provided.
414
- - added new prop `isCompactHeight` which makes the navbar a restricted height on all screen sizes.
415
-
416
- ## 0.4.4
417
-
418
- ###### Wed, 13 Nov 2019
419
-
420
- - TextAvatar
421
- - fixed a bug where certain names would cause an error.
422
-
423
- ## 0.4.3
424
-
425
- ###### Thu, 7 Nov 2019
426
-
427
- - TextField
428
- - helper text now uses theme brand font.
429
- - fix issues with textarea mode's appearance.
430
-
431
- ## 0.4.2
432
-
433
- ###### Thu, 7 Nov 2019
434
-
435
- - Navigation
436
- - fixed bug where non-sticky menu has incorrect positioning on mobile
437
-
438
- ## 0.4.1
439
-
440
- ###### Wed, 6 Nov 2019
441
-
442
- Patch
443
-
444
- ## 0.4.0
445
-
446
- ###### Wed, 6 Nov 2019
447
-
448
- ##### Components
449
-
450
- - Checkbox
451
- - added Checkbox component.
452
- - Navigation
453
- - Use buttons for actions instead of anchors in Navigation.
454
-
455
- ## 0.3.0
456
-
457
- ###### Fri, 1 Nov 2019
458
-
459
- ##### Components
460
-
461
- - Elevation
462
- - added Elevation component.
463
- - Navigation
464
- - added submenu items to the user menu.
465
- - cta prop is now optional.
466
- - Statistics
467
- - **breaking**: renamed from MyCauseStatistics to Statistics
468
- - design improvements.
469
- - **breaking**: now forwards props to the root element.
470
- - **breaking**: no longer hides itself on small screens.
471
-
472
- ## 0.2.0
473
-
474
- ###### Fri, 25 Oct 2019
475
-
476
- ##### Components
477
-
478
- - Chips
479
- - added Chips component.
480
- - InputChips
481
- - added InputChips component.
482
- - IconButtonGroup
483
- - added IconButtonGroup component.
484
- - ComboField
485
- - added ComboField component.
486
- - ComboFieldExpander
487
- - added ComboFieldExpander component.
488
- - Flex
489
- - added Flex component.
490
- - Stack
491
- - now composes the Flex component.
492
- - **breaking**: replaced `vertical` and `horizontal` props with the `direction` prop from Flex.
493
- - Navigation
494
- - the user menu now opens/closes on hover in addition to the anchor being pressed.
495
- - the user menu now changes to a full width style on mobile.
496
-
497
- ## 0.1.0
498
-
499
- ###### Mon, 21 Oct 2019
500
-
501
- First release.
502
-
503
- ##### Components
504
-
505
- - BoldAnchor
506
- - added analyticsId prop.
507
- - Button
508
- - outlined button now turns solid on hover.
509
- - added the analyticsId prop.
510
- - Navigation
511
- - created.
512
- - Select
513
- - now forwards a ref to the underlying select element.
514
- - Stack
515
- - added Stack component.
516
- - Text
517
- - added Text component.
518
- - Tab
519
- - ripple colour changed from static theme color to grey.
520
- - added the analyticsId prop
521
-
522
- ##### Stylesheets
523
-
524
- - reset.css
525
- - default font and box sizing are now only applied to `html` instead of both `html` and `body`.
526
-
527
- ##### Modules
528
-
529
- - Theme
530
- - added `muted` and `inactive` colors.
531
- - ThemeProvider now sets the font of `body` to the default typography font.
532
- - Utils
533
- - Browser: no longer makes unguarded accesses to `window`.
534
-
535
- ## 0.0.0 (Never released)
536
-
537
- ###### Mon, 7 Oct 2019
538
-
539
- Welcome to the start of the `@mycause/ui` project.
540
-
541
- ##### Components
542
-
543
- - Anchor
544
- - BoldAnchor
545
- - Avatar
546
- - Button
547
- - Icon
548
- - IconButton
549
- - ToggleButton
550
- - Select
551
- - Tabs
552
- - TextField
553
-
554
- ##### Stylesheets
555
-
556
- - index.css
557
- - reset.css
558
-
559
- ##### Modules
560
-
561
- - Theme
562
- - ThemeProvider
563
- - ThemeContext
564
- - useTheme
565
- - getColorToken
@@ -1 +0,0 @@
1
- export { default as PartnerLineChart } from "./partner-line-chart";
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Linechart: (props: any) => JSX.Element;
3
- export default Linechart;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const PartnertLineChartStories: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ProgressBarProps {
3
- className?: string;
4
- completed?: number;
5
- barColor?: string;
6
- }
7
- declare const PartnerLineChartBlock: ({ currentYearData, totalDonation, chartData, }: any) => JSX.Element;
8
- export default PartnerLineChartBlock;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const PartnerLineChart: (props: any) => JSX.Element;
3
- export default PartnerLineChart;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const PartnertLineChartStories: {
8
- ({ chartData }: any): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
@@ -1 +0,0 @@
1
- export { default as PartnertMonthlyStart } from "./parnert-monthly-stats";
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PartnertMonthlyStatsProps {
3
- numeric: number;
4
- title: string;
5
- }
6
- declare const PartnertMonthlyStats: ({ numeric, title, }: PartnertMonthlyStatsProps) => JSX.Element;
7
- export default PartnertMonthlyStats;
@@ -1 +0,0 @@
1
- export { default as PartnerMonthlyTable } from "./partner-monthly-table";
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PartnerMonthlyTableProps {
3
- numeric: number;
4
- title: string;
5
- }
6
- declare const PartnerMonthlyTable: ({ numeric, title }: PartnerMonthlyTableProps) => JSX.Element;
7
- export default PartnerMonthlyTable;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- decorators: ((...args: any) => any)[];
5
- };
6
- export default _default;
7
- export declare const PartnerMonthlyTableStories: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };