@mycause/ui 0.18.11 → 0.18.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.18.11",
3
+ "version": "0.18.13",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -104,10 +104,12 @@
104
104
  "i18n-iso-countries": "^4.3.1",
105
105
  "js-cookie": "^2.2.1",
106
106
  "libphonenumber-js": "^1.7.29",
107
+ "moment": "2.29.1",
108
+ "moment-timezone": "^0.5.45",
107
109
  "nanoid": "^2.1.6",
108
110
  "ramda": "^0.26.1",
109
111
  "react-cropper": "^1.3.0",
110
- "react-dates": "^21.5.0",
112
+ "react-dates": "^21.8.0",
111
113
  "react-dropzone-uploader": "^2.11.0",
112
114
  "react-toastify": "8.1.0",
113
115
  "styled-jsx": "^3.2.1",
@@ -122,5 +124,8 @@
122
124
  "files": [
123
125
  "dist",
124
126
  "styles"
125
- ]
127
+ ],
128
+ "resolutions": {
129
+ "moment": "2.29.1"
130
+ }
126
131
  }
package/styles/index.css CHANGED
@@ -1668,12 +1668,9 @@ svg.mdc-button__icon {
1668
1668
  position: absolute;
1669
1669
  left: 9px; }
1670
1670
 
1671
- .CalendarMonthGrid__vertical {
1672
- margin: 0 auto; }
1673
-
1671
+ .CalendarMonthGrid__vertical,
1674
1672
  .CalendarMonthGrid__vertical_scrollable {
1675
- margin: 0 auto;
1676
- overflow-y: scroll; }
1673
+ margin: 0 auto; }
1677
1674
 
1678
1675
  .CalendarMonthGrid_month__horizontal {
1679
1676
  display: inline-block;
@@ -1696,6 +1693,9 @@ svg.mdc-button__icon {
1696
1693
  .DayPickerNavigation__horizontal {
1697
1694
  height: 0; }
1698
1695
 
1696
+ .DayPickerNavigation__verticalScrollable_prevNav {
1697
+ z-index: 1; }
1698
+
1699
1699
  .DayPickerNavigation__verticalDefault {
1700
1700
  position: absolute;
1701
1701
  width: 100%;
@@ -1778,7 +1778,8 @@ svg.mdc-button__icon {
1778
1778
  .DayPickerNavigation_nextButton__verticalDefault {
1779
1779
  border-left: 0; }
1780
1780
 
1781
- .DayPickerNavigation_nextButton__verticalScrollableDefault {
1781
+ .DayPickerNavigation_nextButton__verticalScrollableDefault,
1782
+ .DayPickerNavigation_prevButton__verticalScrollableDefault {
1782
1783
  width: 100%; }
1783
1784
 
1784
1785
  .DayPickerNavigation_svg__horizontal {
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- declare type FormValuesProps = {
3
- number: string;
4
- name: string;
5
- expiry: string;
6
- cvc: string;
7
- };
8
- declare type CreditCardFormProps = {
9
- formValues: FormValuesProps;
10
- setFormValues: (values: FormValuesProps) => void;
11
- };
12
- declare function CreditCardForm({ formValues, setFormValues }: CreditCardFormProps): JSX.Element;
13
- export default CreditCardForm;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Icons: {
3
- close: (props: any) => JSX.Element;
4
- error: (props: any) => JSX.Element;
5
- warning: () => JSX.Element;
6
- };
7
- export default Icons;
@@ -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 SwitchDefault: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
@@ -1 +0,0 @@
1
- export { default as CreditCardForm } from "./CreditCardForm";
@@ -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 SwitchDefault: {
8
- (): JSX.Element;
9
- story: {
10
- name: string;
11
- };
12
- };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Icons: {
3
- upload: (props?: {}) => JSX.Element;
4
- remove: (props?: {}) => JSX.Element;
5
- };
6
- export default Icons;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export interface UploadAndCropperProps {
3
- imageDefault: string;
4
- width?: number;
5
- border?: number;
6
- borderRadius?: number;
7
- color?: Array<number> | undefined;
8
- handleOnRemove?: () => void;
9
- imagePreview?: string;
10
- setImagePreview?: (e: any) => void;
11
- }
12
- declare const UploadAndCropper: ({ width, border, borderRadius, color, handleOnRemove, imagePreview, setImagePreview, }: UploadAndCropperProps) => JSX.Element;
13
- export default UploadAndCropper;