@majoo-ui/react 1.60.2-rc.8 → 1.60.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- React
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- Running unit tests
6
-
7
- Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
1
+ React
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ Running unit tests
6
+
7
+ Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
@@ -40,14 +40,6 @@ interface TimePickerProps {
40
40
  */
41
41
  maxDate: Date;
42
42
  }
43
- interface IOptionsPicker {
44
- label: string;
45
- value: string;
46
- }
47
- interface IAdvanceOptions {
48
- options: IOptionsPicker[];
49
- reducer: () => void;
50
- }
51
43
  export interface InputDatePickerProps {
52
44
  /**
53
45
  * Specify the DatePicker type.
@@ -109,10 +101,6 @@ export interface InputDatePickerProps {
109
101
  * Specify the 'advance' typed InputDatePicker custom view.
110
102
  */
111
103
  advanceView?: React.ReactNode;
112
- /**
113
- * Specify the 'advance options' typed InputDatePicker custom view.
114
- */
115
- advanceOptions?: IAdvanceOptions;
116
104
  /**
117
105
  * Specify the picker popover placement.
118
106
  */
@@ -162,5 +150,5 @@ export interface InputDatePickerProps {
162
150
  */
163
151
  desktopOnly?: boolean;
164
152
  }
165
- export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, onDateSelected, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, timePickerProps, minDate, maxDate, readOnly, isInvalid, allowReset, portalled, portalledMobile, onClose, mobileOnly, desktopOnly, advanceOptions, }: InputDatePickerProps): JSX.Element;
153
+ export declare function InputDatePicker({ type, showRangeControl, rangePickerType, placeholder, size, disabled, onChange, onDateSelected, defaultValue: defaultDateValue, value: dateValue, defaultDate, date, advanceView, placement, css, showTimePicker, timePickerProps, minDate, maxDate, readOnly, isInvalid, allowReset, portalled, portalledMobile, onClose, mobileOnly, desktopOnly, }: InputDatePickerProps): JSX.Element;
166
154
  export {};
@@ -131,9 +131,6 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
131
131
  my: (value: {
132
132
  readonly [Stitches.$$ScaleValue]: "space";
133
133
  }) => {
134
- /**
135
- * alt prop when url image not found or invalid
136
- */
137
134
  marginTop: {
138
135
  readonly [Stitches.$$ScaleValue]: "space";
139
136
  };
@@ -1,13 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { CSS } from '../../../../config/stitches.config';
3
- interface IOptionsPicker {
4
- label: string;
5
- value: string;
6
- }
7
- interface IAdvanceOptions {
8
- options: IOptionsPicker[];
9
- reducer: () => void;
10
- }
11
3
  interface InputDateRangeProps {
12
4
  /**
13
5
  * Specify the InputDateRange placeholder.
@@ -41,10 +33,6 @@ interface InputDateRangeProps {
41
33
  * Additional CSS InputDateRange styles
42
34
  */
43
35
  css?: CSS;
44
- /**
45
- * Specify the 'advance options' typed InputDatePicker custom view.
46
- */
47
- advanceOptions?: IAdvanceOptions;
48
36
  }
49
37
  export declare const InputDateRange: React.ForwardRefExoticComponent<InputDateRangeProps & React.RefAttributes<HTMLInputElement>>;
50
38
  export default InputDateRange;
@@ -97,117 +97,7 @@ export declare const SelectContainer: import("@stitches/react/types/styled-compo
97
97
  backgroundColor: string;
98
98
  };
99
99
  }>>;
100
- export declare const SelectBox: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {
101
- direction?: "column" | "row" | "rowReverse" | "columnReverse" | undefined;
102
- align?: "stretch" | "center" | "end" | "start" | "baseline" | undefined;
103
- justify?: "center" | "end" | "start" | "between" | "evenly" | "around" | undefined;
104
- wrap?: "wrap" | "noWrap" | "wrapReverse" | undefined;
105
- gap?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
106
- m?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
107
- mt?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
108
- mb?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
109
- mr?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
110
- ml?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
111
- mx?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
112
- my?: 1 | "1" | "2" | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | undefined;
113
- mobileOnly?: boolean | "true" | undefined;
114
- desktopOnly?: boolean | "true" | undefined;
115
- }, {
116
- sm: "(min-width: 359px)";
117
- md: "(min-width: 767px)";
118
- lg: "(min-width: 1023px)";
119
- xl: "(min-width: 1199px)";
120
- '2xl': "(min-width: 1399px)";
121
- '3xl': "(min-width: 1600px)";
122
- }, import("@stitches/react/types/css-util").CSS<{
123
- sm: "(min-width: 359px)";
124
- md: "(min-width: 767px)";
125
- lg: "(min-width: 1023px)";
126
- xl: "(min-width: 1199px)";
127
- '2xl': "(min-width: 1399px)";
128
- '3xl': "(min-width: 1600px)";
129
- }, {
130
- colors: unknown;
131
- space: unknown;
132
- shadows: unknown;
133
- fontSizes: unknown;
134
- fonts: unknown;
135
- lineHeights: unknown;
136
- letterSpacings: unknown;
137
- radii: unknown;
138
- sizes: unknown;
139
- zIndices: unknown;
140
- }, import("@stitches/react/types/config").DefaultThemeMap, {
141
- m: (value: {
142
- readonly [$$ScaleValue]: "space";
143
- }) => {
144
- margin: {
145
- readonly [$$ScaleValue]: "space";
146
- };
147
- };
148
- mt: (value: {
149
- readonly [$$ScaleValue]: "space";
150
- }) => {
151
- marginTop: {
152
- readonly [$$ScaleValue]: "space";
153
- };
154
- };
155
- mr: (value: {
156
- readonly [$$ScaleValue]: "space";
157
- }) => {
158
- marginRight: {
159
- readonly [$$ScaleValue]: "space";
160
- };
161
- };
162
- mb: (value: {
163
- readonly [$$ScaleValue]: "space";
164
- }) => {
165
- marginBottom: {
166
- readonly [$$ScaleValue]: "space";
167
- };
168
- };
169
- ml: (value: {
170
- readonly [$$ScaleValue]: "space";
171
- }) => {
172
- marginLeft: {
173
- readonly [$$ScaleValue]: "space";
174
- };
175
- };
176
- mx: (value: {
177
- readonly [$$ScaleValue]: "space";
178
- }) => {
179
- marginLeft: {
180
- readonly [$$ScaleValue]: "space";
181
- };
182
- marginRight: {
183
- readonly [$$ScaleValue]: "space";
184
- };
185
- };
186
- my: (value: {
187
- readonly [$$ScaleValue]: "space";
188
- }) => {
189
- marginTop: {
190
- readonly [$$ScaleValue]: "space";
191
- };
192
- marginBottom: {
193
- readonly [$$ScaleValue]: "space";
194
- };
195
- };
196
- size: (value: {
197
- readonly [$$PropertyValue]: "width";
198
- }) => {
199
- width: {
200
- readonly [$$PropertyValue]: "width";
201
- };
202
- height: {
203
- readonly [$$PropertyValue]: "width";
204
- };
205
- };
206
- subtleColor: (value: string) => {
207
- color: string;
208
- backgroundColor: string;
209
- };
210
- }>>, {
100
+ export declare const SelectBox: import("@stitches/react/types/styled-component").StyledComponent<any, {
211
101
  size?: "sm" | "lg" | undefined;
212
102
  disabled?: boolean | "true" | undefined;
213
103
  readOnly?: boolean | "true" | undefined;
@@ -100,117 +100,7 @@ export declare const SelectContainer: import("@stitches/react/types/styled-compo
100
100
  backgroundColor: string;
101
101
  };
102
102
  }>>;
103
- export declare const SelectBox: import("@stitches/react/types/styled-component").StyledComponent<import("@stitches/react/types/styled-component").StyledComponent<"div", {
104
- direction?: "column" | "row" | "rowReverse" | "columnReverse" | undefined;
105
- align?: "stretch" | "center" | "end" | "start" | "baseline" | undefined;
106
- justify?: "center" | "end" | "start" | "between" | "evenly" | "around" | undefined;
107
- wrap?: "wrap" | "noWrap" | "wrapReverse" | undefined;
108
- gap?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
109
- m?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
110
- mt?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
111
- mb?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
112
- mr?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
113
- ml?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
114
- mx?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
115
- my?: 1 | 10 | 12 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | "1" | "2" | "3" | "4" | "10" | "12" | "5" | "6" | "7" | "8" | "9" | "11" | undefined;
116
- mobileOnly?: boolean | "true" | undefined;
117
- desktopOnly?: boolean | "true" | undefined;
118
- }, {
119
- sm: "(min-width: 359px)";
120
- md: "(min-width: 767px)";
121
- lg: "(min-width: 1023px)";
122
- xl: "(min-width: 1199px)";
123
- '2xl': "(min-width: 1399px)";
124
- '3xl': "(min-width: 1600px)";
125
- }, import("@stitches/react/types/css-util").CSS<{
126
- sm: "(min-width: 359px)";
127
- md: "(min-width: 767px)";
128
- lg: "(min-width: 1023px)";
129
- xl: "(min-width: 1199px)";
130
- '2xl': "(min-width: 1399px)";
131
- '3xl': "(min-width: 1600px)";
132
- }, {
133
- colors: unknown;
134
- space: unknown;
135
- shadows: unknown;
136
- fontSizes: unknown;
137
- fonts: unknown;
138
- lineHeights: unknown;
139
- letterSpacings: unknown;
140
- radii: unknown;
141
- sizes: unknown;
142
- zIndices: unknown;
143
- }, import("@stitches/react/types/config").DefaultThemeMap, {
144
- m: (value: {
145
- readonly [$$ScaleValue]: "space";
146
- }) => {
147
- margin: {
148
- readonly [$$ScaleValue]: "space";
149
- };
150
- };
151
- mt: (value: {
152
- readonly [$$ScaleValue]: "space";
153
- }) => {
154
- marginTop: {
155
- readonly [$$ScaleValue]: "space";
156
- };
157
- };
158
- mr: (value: {
159
- readonly [$$ScaleValue]: "space";
160
- }) => {
161
- marginRight: {
162
- readonly [$$ScaleValue]: "space";
163
- };
164
- };
165
- mb: (value: {
166
- readonly [$$ScaleValue]: "space";
167
- }) => {
168
- marginBottom: {
169
- readonly [$$ScaleValue]: "space";
170
- };
171
- };
172
- ml: (value: {
173
- readonly [$$ScaleValue]: "space";
174
- }) => {
175
- marginLeft: {
176
- readonly [$$ScaleValue]: "space";
177
- };
178
- };
179
- mx: (value: {
180
- readonly [$$ScaleValue]: "space";
181
- }) => {
182
- marginLeft: {
183
- readonly [$$ScaleValue]: "space";
184
- };
185
- marginRight: {
186
- readonly [$$ScaleValue]: "space";
187
- };
188
- };
189
- my: (value: {
190
- readonly [$$ScaleValue]: "space";
191
- }) => {
192
- marginTop: {
193
- readonly [$$ScaleValue]: "space";
194
- };
195
- marginBottom: {
196
- readonly [$$ScaleValue]: "space";
197
- };
198
- };
199
- size: (value: {
200
- readonly [$$PropertyValue]: "width";
201
- }) => {
202
- width: {
203
- readonly [$$PropertyValue]: "width";
204
- };
205
- height: {
206
- readonly [$$PropertyValue]: "width";
207
- };
208
- };
209
- subtleColor: (value: string) => {
210
- color: string;
211
- backgroundColor: string;
212
- };
213
- }>>, {
103
+ export declare const SelectBox: import("@stitches/react/types/styled-component").StyledComponent<any, {
214
104
  size?: "sm" | "lg" | undefined;
215
105
  disabled?: boolean | "true" | undefined;
216
106
  readOnly?: boolean | "true" | undefined;
@@ -37,18 +37,7 @@ interface LoadingBarProps {
37
37
  * Adjust loading bar size.
38
38
  */
39
39
  size?: 'sm' | 'md';
40
- /**
41
- * If true, the circular loading bar will be show.
42
- */
43
- isPageLoader?: boolean;
44
- /**
45
- * Additional text under circular loading bar.
46
- */
47
- pageLoaderLabel?: string;
48
40
  }
49
- export declare function CircularLoadingBar({ label }: {
50
- label?: string;
51
- }): JSX.Element;
52
41
  declare function LoadingBar(props: LoadingBarProps): JSX.Element;
53
42
  declare namespace LoadingBar {
54
43
  var defaultProps: {
@@ -57,7 +46,6 @@ declare namespace LoadingBar {
57
46
  interval: number;
58
47
  description: string;
59
48
  size: string;
60
- isPageLoader: boolean;
61
49
  };
62
50
  }
63
51
  export default LoadingBar;
@@ -11,7 +11,6 @@ declare namespace MapPicker {
11
11
  lat: number;
12
12
  lng: number;
13
13
  };
14
- showSelectButton: boolean;
15
14
  };
16
15
  }
17
16
  export default MapPicker;
@@ -41,14 +41,6 @@ export interface MapPickerProps {
41
41
  * Marker Click event handler.
42
42
  */
43
43
  onMarkerClick?: () => void;
44
- /**
45
- * Custom radius.
46
- */
47
- radius?: number;
48
- /**
49
- * on Show select button.
50
- */
51
- showSelectButton?: boolean;
52
44
  }
53
45
  export interface InputMapPickerProps {
54
46
  /**
@@ -88,12 +80,4 @@ export interface InputMapPickerProps {
88
80
  * on Marker click event handle
89
81
  */
90
82
  onMarkerClick: () => void;
91
- /**
92
- * Custom radius.
93
- */
94
- radius?: number;
95
- /**
96
- * on Show select button.
97
- */
98
- showSelectButton?: boolean;
99
83
  }
@@ -95,7 +95,9 @@ export declare const ModalDialogFooter: import("@stitches/react/types/styled-com
95
95
  };
96
96
  subtleColor: (value: string) => {
97
97
  color: string;
98
- backgroundColor: string;
98
+ backgroundColor: string; /**
99
+ * If true, the close icon button is hidden
100
+ */
99
101
  };
100
102
  }>>;
101
103
  export declare const ModalDialogTitle: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -191,7 +193,9 @@ export declare const ModalDialogTitle: import("@stitches/react/types/styled-comp
191
193
  };
192
194
  subtleColor: (value: string) => {
193
195
  color: string;
194
- backgroundColor: string;
196
+ backgroundColor: string; /**
197
+ * If true, the close icon button is hidden
198
+ */
195
199
  };
196
200
  }>>;
197
201
  export declare const ModalDialogContent: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -287,7 +291,9 @@ export declare const ModalDialogContent: import("@stitches/react/types/styled-co
287
291
  };
288
292
  subtleColor: (value: string) => {
289
293
  color: string;
290
- backgroundColor: string;
294
+ backgroundColor: string; /**
295
+ * If true, the close icon button is hidden
296
+ */
291
297
  };
292
298
  }>>;
293
299
  export declare const ModalDialogTrigger: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -383,7 +389,9 @@ export declare const ModalDialogTrigger: import("@stitches/react/types/styled-co
383
389
  };
384
390
  subtleColor: (value: string) => {
385
391
  color: string;
386
- backgroundColor: string;
392
+ backgroundColor: string; /**
393
+ * If true, the close icon button is hidden
394
+ */
387
395
  };
388
396
  }>>;
389
397
  declare type IDialog = React.ComponentProps<typeof Dialog>;
@@ -522,7 +530,9 @@ declare const ModalDialog: {
522
530
  };
523
531
  subtleColor: (value: string) => {
524
532
  color: string;
525
- backgroundColor: string;
533
+ backgroundColor: string; /**
534
+ * If true, the close icon button is hidden
535
+ */
526
536
  };
527
537
  }>>;
528
538
  Title: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -618,7 +628,9 @@ declare const ModalDialog: {
618
628
  };
619
629
  subtleColor: (value: string) => {
620
630
  color: string;
621
- backgroundColor: string;
631
+ backgroundColor: string; /**
632
+ * If true, the close icon button is hidden
633
+ */
622
634
  };
623
635
  }>>;
624
636
  Content: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -714,7 +726,9 @@ declare const ModalDialog: {
714
726
  };
715
727
  subtleColor: (value: string) => {
716
728
  color: string;
717
- backgroundColor: string;
729
+ backgroundColor: string; /**
730
+ * If true, the close icon button is hidden
731
+ */
718
732
  };
719
733
  }>>;
720
734
  Footer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
@@ -810,7 +824,9 @@ declare const ModalDialog: {
810
824
  };
811
825
  subtleColor: (value: string) => {
812
826
  color: string;
813
- backgroundColor: string;
827
+ backgroundColor: string; /**
828
+ * If true, the close icon button is hidden
829
+ */
814
830
  };
815
831
  }>>;
816
832
  defaultProps: {
@@ -92,7 +92,7 @@ export declare const PageDialogFooter: import("@stitches/react/types/styled-comp
92
92
  };
93
93
  height: {
94
94
  readonly [$$PropertyValue]: "width";
95
- }; /** set PageDialog zIndex, default is set to 1400 */
95
+ };
96
96
  };
97
97
  subtleColor: (value: string) => {
98
98
  color: string;
@@ -188,7 +188,7 @@ export declare const PageDialogTitle: import("@stitches/react/types/styled-compo
188
188
  };
189
189
  height: {
190
190
  readonly [$$PropertyValue]: "width";
191
- }; /** set PageDialog zIndex, default is set to 1400 */
191
+ };
192
192
  };
193
193
  subtleColor: (value: string) => {
194
194
  color: string;
@@ -284,7 +284,7 @@ export declare const PageDialogContent: import("@stitches/react/types/styled-com
284
284
  };
285
285
  height: {
286
286
  readonly [$$PropertyValue]: "width";
287
- }; /** set PageDialog zIndex, default is set to 1400 */
287
+ };
288
288
  };
289
289
  subtleColor: (value: string) => {
290
290
  color: string;
@@ -380,7 +380,7 @@ export declare const PageDialogTrigger: import("@stitches/react/types/styled-com
380
380
  };
381
381
  height: {
382
382
  readonly [$$PropertyValue]: "width";
383
- }; /** set PageDialog zIndex, default is set to 1400 */
383
+ };
384
384
  };
385
385
  subtleColor: (value: string) => {
386
386
  color: string;
@@ -495,7 +495,7 @@ export declare const PageDialog: {
495
495
  };
496
496
  height: {
497
497
  readonly [$$PropertyValue]: "width";
498
- }; /** set PageDialog zIndex, default is set to 1400 */
498
+ };
499
499
  };
500
500
  subtleColor: (value: string) => {
501
501
  color: string;
@@ -591,7 +591,7 @@ export declare const PageDialog: {
591
591
  };
592
592
  height: {
593
593
  readonly [$$PropertyValue]: "width";
594
- }; /** set PageDialog zIndex, default is set to 1400 */
594
+ };
595
595
  };
596
596
  subtleColor: (value: string) => {
597
597
  color: string;
@@ -687,7 +687,7 @@ export declare const PageDialog: {
687
687
  };
688
688
  height: {
689
689
  readonly [$$PropertyValue]: "width";
690
- }; /** set PageDialog zIndex, default is set to 1400 */
690
+ };
691
691
  };
692
692
  subtleColor: (value: string) => {
693
693
  color: string;
@@ -783,7 +783,7 @@ export declare const PageDialog: {
783
783
  };
784
784
  height: {
785
785
  readonly [$$PropertyValue]: "width";
786
- }; /** set PageDialog zIndex, default is set to 1400 */
786
+ };
787
787
  };
788
788
  subtleColor: (value: string) => {
789
789
  color: string;