@majoo-ui/react 1.61.19 → 1.61.20-rc.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/components/datePicker/DatePickerMulti.d.ts +10 -0
- package/components/datePicker/components/CalendarMulti.d.ts +21 -0
- package/components/datePicker/components/DateNumber.d.ts +1 -1
- package/components/datePicker/components/index.d.ts +1 -0
- package/components/datePicker/index.d.ts +1 -0
- package/components/devicePreview/DevicePreview.d.ts +1 -3
- package/components/modalDialog/ModalDialog.d.ts +12 -8
- package/index.esm.js +1079 -622
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DatePickerMulti: ({ onChange, onClose, selected, disabled, minDate, maxDate, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
onChange: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
selected: any;
|
|
7
|
+
disabled: any;
|
|
8
|
+
minDate: any;
|
|
9
|
+
maxDate: any;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RenderProps } from 'dayzed';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CSS } from '../../../config/stitches.config';
|
|
4
|
+
export declare const DATE_PICKER = 0;
|
|
5
|
+
export declare const MONTH_PICKER = 1;
|
|
6
|
+
export declare const YEAR_PICKER = 2;
|
|
7
|
+
export declare const YEAR_RANGE_PICKER = 3;
|
|
8
|
+
export interface CalendarProps extends RenderProps {
|
|
9
|
+
advanceView?: React.ReactNode;
|
|
10
|
+
onCalendarDateChange: (date: Date) => void;
|
|
11
|
+
selected?: Date[];
|
|
12
|
+
containerStyle?: CSS;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
showTimePicker?: boolean;
|
|
15
|
+
renderTimePicker?: () => React.ReactNode;
|
|
16
|
+
minDate?: Date;
|
|
17
|
+
maxDate?: Date;
|
|
18
|
+
disabledDate?: Date[];
|
|
19
|
+
}
|
|
20
|
+
declare const CalendarBox: ({ calendars, getDateProps, onCalendarDateChange, selected, containerStyle, disabled, minDate, maxDate, disabledDate, }: CalendarProps) => JSX.Element | null;
|
|
21
|
+
export default CalendarBox;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Stitches from '@stitches/react';
|
|
2
2
|
declare const DateNumber: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3
|
-
variant?: "end" | "start" | "default" | "disabled" | "neutral" | "selected" | "road" | undefined;
|
|
3
|
+
variant?: "end" | "start" | "default" | "disabled" | "neutral" | "selected" | "defaultv2" | "selectedv2" | "road" | undefined;
|
|
4
4
|
size?: "large" | "small" | undefined;
|
|
5
5
|
isSunday?: boolean | "true" | undefined;
|
|
6
6
|
}, {
|
|
@@ -134,9 +134,7 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
|
|
|
134
134
|
}) => {
|
|
135
135
|
marginTop: {
|
|
136
136
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
137
|
-
};
|
|
138
|
-
* alt prop when url image not found or invalid
|
|
139
|
-
*/
|
|
137
|
+
};
|
|
140
138
|
marginBottom: {
|
|
141
139
|
readonly [Stitches.$$ScaleValue]: "space";
|
|
142
140
|
};
|
|
@@ -78,7 +78,7 @@ export declare const ModalDialogFooter: import("@stitches/react/types/styled-com
|
|
|
78
78
|
}) => {
|
|
79
79
|
marginTop: {
|
|
80
80
|
readonly [$$ScaleValue]: "space";
|
|
81
|
-
};
|
|
81
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
82
82
|
marginBottom: {
|
|
83
83
|
readonly [$$ScaleValue]: "space";
|
|
84
84
|
};
|
|
@@ -175,7 +175,7 @@ export declare const ModalDialogTitle: import("@stitches/react/types/styled-comp
|
|
|
175
175
|
}) => {
|
|
176
176
|
marginTop: {
|
|
177
177
|
readonly [$$ScaleValue]: "space";
|
|
178
|
-
};
|
|
178
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
179
179
|
marginBottom: {
|
|
180
180
|
readonly [$$ScaleValue]: "space";
|
|
181
181
|
};
|
|
@@ -272,7 +272,7 @@ export declare const ModalDialogContent: import("@stitches/react/types/styled-co
|
|
|
272
272
|
}) => {
|
|
273
273
|
marginTop: {
|
|
274
274
|
readonly [$$ScaleValue]: "space";
|
|
275
|
-
};
|
|
275
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
276
276
|
marginBottom: {
|
|
277
277
|
readonly [$$ScaleValue]: "space";
|
|
278
278
|
};
|
|
@@ -369,7 +369,7 @@ export declare const ModalDialogTrigger: import("@stitches/react/types/styled-co
|
|
|
369
369
|
}) => {
|
|
370
370
|
marginTop: {
|
|
371
371
|
readonly [$$ScaleValue]: "space";
|
|
372
|
-
};
|
|
372
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
373
373
|
marginBottom: {
|
|
374
374
|
readonly [$$ScaleValue]: "space";
|
|
375
375
|
};
|
|
@@ -415,6 +415,10 @@ interface ModalDialogProps extends Omit<IDialog, 'children'>, DialogContentProps
|
|
|
415
415
|
* On dialog close click function
|
|
416
416
|
*/
|
|
417
417
|
onCloseClick?: () => void;
|
|
418
|
+
/**
|
|
419
|
+
* Theme configuration for the component
|
|
420
|
+
*/
|
|
421
|
+
theme?: string;
|
|
418
422
|
}
|
|
419
423
|
/**
|
|
420
424
|
* ModalDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.
|
|
@@ -513,7 +517,7 @@ declare const ModalDialog: {
|
|
|
513
517
|
}) => {
|
|
514
518
|
marginTop: {
|
|
515
519
|
readonly [$$ScaleValue]: "space";
|
|
516
|
-
};
|
|
520
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
517
521
|
marginBottom: {
|
|
518
522
|
readonly [$$ScaleValue]: "space";
|
|
519
523
|
};
|
|
@@ -610,7 +614,7 @@ declare const ModalDialog: {
|
|
|
610
614
|
}) => {
|
|
611
615
|
marginTop: {
|
|
612
616
|
readonly [$$ScaleValue]: "space";
|
|
613
|
-
};
|
|
617
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
614
618
|
marginBottom: {
|
|
615
619
|
readonly [$$ScaleValue]: "space";
|
|
616
620
|
};
|
|
@@ -707,7 +711,7 @@ declare const ModalDialog: {
|
|
|
707
711
|
}) => {
|
|
708
712
|
marginTop: {
|
|
709
713
|
readonly [$$ScaleValue]: "space";
|
|
710
|
-
};
|
|
714
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
711
715
|
marginBottom: {
|
|
712
716
|
readonly [$$ScaleValue]: "space";
|
|
713
717
|
};
|
|
@@ -804,7 +808,7 @@ declare const ModalDialog: {
|
|
|
804
808
|
}) => {
|
|
805
809
|
marginTop: {
|
|
806
810
|
readonly [$$ScaleValue]: "space";
|
|
807
|
-
};
|
|
811
|
+
}; /** Event handler called when a pointer event occurs outside the bounds of the component. It can be prevented by calling event.preventDefault.*/
|
|
808
812
|
marginBottom: {
|
|
809
813
|
readonly [$$ScaleValue]: "space";
|
|
810
814
|
};
|