@majoo-ui/react 1.59.11 → 1.59.12-rc.1
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/InputDatePicker.d.ts +13 -1
- package/components/datePicker/components/Calendar.d.ts +3 -2
- package/components/datePicker/components/CalendarTimePicker.d.ts +9 -0
- package/components/form/components/InputDateRange/InputDateRange.d.ts +12 -0
- package/components/form/components/InputSelect/InputSelect.backup.d.ts +111 -1
- package/components/form/components/InputSelect/InputSelect.d.ts +111 -1
- package/components/loadingBar/LoadingBar.d.ts +12 -0
- package/components/mapPicker/types/index.d.ts +8 -0
- package/components/table/Table.d.ts +111 -1
- package/components/tag/Tag.d.ts +16 -0
- package/components/tag/index.d.ts +2 -0
- package/components/tooltip/Tooltip.d.ts +218 -0
- package/components/tooltip/index.d.ts +2 -0
- package/index.esm.js +2349 -2073
- package/index.umd.js +2974 -2676
- package/layout/box/Box.d.ts +100 -0
- package/layout/flex/Flex.d.ts +112 -0
- package/layout/flex/index.d.ts +0 -1
- package/layout/grid/Grid.d.ts +40 -0
- package/package.json +1 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../../config/stitches.config';
|
|
3
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
4
|
+
export declare const TooltipBase: import("@stitches/react/types/styled-component").StyledComponent<React.FC<TooltipPrimitive.TooltipProps>, {}, {
|
|
5
|
+
sm: "(min-width: 359px)";
|
|
6
|
+
md: "(min-width: 767px)";
|
|
7
|
+
lg: "(min-width: 1023px)";
|
|
8
|
+
xl: "(min-width: 1199px)";
|
|
9
|
+
'2xl': "(min-width: 1399px)";
|
|
10
|
+
'3xl': "(min-width: 1600px)";
|
|
11
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
12
|
+
sm: "(min-width: 359px)";
|
|
13
|
+
md: "(min-width: 767px)";
|
|
14
|
+
lg: "(min-width: 1023px)";
|
|
15
|
+
xl: "(min-width: 1199px)";
|
|
16
|
+
'2xl': "(min-width: 1399px)";
|
|
17
|
+
'3xl': "(min-width: 1600px)";
|
|
18
|
+
}, {
|
|
19
|
+
colors: unknown;
|
|
20
|
+
space: unknown;
|
|
21
|
+
shadows: unknown;
|
|
22
|
+
fontSizes: unknown;
|
|
23
|
+
fonts: unknown;
|
|
24
|
+
lineHeights: unknown;
|
|
25
|
+
letterSpacings: unknown;
|
|
26
|
+
radii: unknown;
|
|
27
|
+
sizes: unknown;
|
|
28
|
+
zIndices: unknown;
|
|
29
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
30
|
+
m: (value: {
|
|
31
|
+
readonly [$$ScaleValue]: "space";
|
|
32
|
+
}) => {
|
|
33
|
+
margin: {
|
|
34
|
+
readonly [$$ScaleValue]: "space";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
mt: (value: {
|
|
38
|
+
readonly [$$ScaleValue]: "space";
|
|
39
|
+
}) => {
|
|
40
|
+
marginTop: {
|
|
41
|
+
readonly [$$ScaleValue]: "space";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
mr: (value: {
|
|
45
|
+
readonly [$$ScaleValue]: "space";
|
|
46
|
+
}) => {
|
|
47
|
+
marginRight: {
|
|
48
|
+
readonly [$$ScaleValue]: "space";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
mb: (value: {
|
|
52
|
+
readonly [$$ScaleValue]: "space";
|
|
53
|
+
}) => {
|
|
54
|
+
marginBottom: {
|
|
55
|
+
readonly [$$ScaleValue]: "space";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
ml: (value: {
|
|
59
|
+
readonly [$$ScaleValue]: "space";
|
|
60
|
+
}) => {
|
|
61
|
+
marginLeft: {
|
|
62
|
+
readonly [$$ScaleValue]: "space";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
mx: (value: {
|
|
66
|
+
readonly [$$ScaleValue]: "space";
|
|
67
|
+
}) => {
|
|
68
|
+
marginLeft: {
|
|
69
|
+
readonly [$$ScaleValue]: "space";
|
|
70
|
+
};
|
|
71
|
+
marginRight: {
|
|
72
|
+
readonly [$$ScaleValue]: "space";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
my: (value: {
|
|
76
|
+
readonly [$$ScaleValue]: "space";
|
|
77
|
+
}) => {
|
|
78
|
+
marginTop: {
|
|
79
|
+
readonly [$$ScaleValue]: "space";
|
|
80
|
+
};
|
|
81
|
+
marginBottom: {
|
|
82
|
+
readonly [$$ScaleValue]: "space";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
size: (value: {
|
|
86
|
+
readonly [$$PropertyValue]: "width";
|
|
87
|
+
}) => {
|
|
88
|
+
width: {
|
|
89
|
+
readonly [$$PropertyValue]: "width";
|
|
90
|
+
};
|
|
91
|
+
height: {
|
|
92
|
+
readonly [$$PropertyValue]: "width";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
subtleColor: (value: string) => {
|
|
96
|
+
color: string;
|
|
97
|
+
backgroundColor: string;
|
|
98
|
+
};
|
|
99
|
+
}>>;
|
|
100
|
+
export declare const Provider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
101
|
+
export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
102
|
+
export declare const TooltipContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
103
|
+
sm: "(min-width: 359px)";
|
|
104
|
+
md: "(min-width: 767px)";
|
|
105
|
+
lg: "(min-width: 1023px)";
|
|
106
|
+
xl: "(min-width: 1199px)";
|
|
107
|
+
'2xl': "(min-width: 1399px)";
|
|
108
|
+
'3xl': "(min-width: 1600px)";
|
|
109
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
110
|
+
sm: "(min-width: 359px)";
|
|
111
|
+
md: "(min-width: 767px)";
|
|
112
|
+
lg: "(min-width: 1023px)";
|
|
113
|
+
xl: "(min-width: 1199px)";
|
|
114
|
+
'2xl': "(min-width: 1399px)";
|
|
115
|
+
'3xl': "(min-width: 1600px)";
|
|
116
|
+
}, {
|
|
117
|
+
colors: unknown;
|
|
118
|
+
space: unknown;
|
|
119
|
+
shadows: unknown;
|
|
120
|
+
fontSizes: unknown;
|
|
121
|
+
fonts: unknown;
|
|
122
|
+
lineHeights: unknown;
|
|
123
|
+
letterSpacings: unknown;
|
|
124
|
+
radii: unknown;
|
|
125
|
+
sizes: unknown;
|
|
126
|
+
zIndices: unknown;
|
|
127
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
128
|
+
m: (value: {
|
|
129
|
+
readonly [$$ScaleValue]: "space";
|
|
130
|
+
}) => {
|
|
131
|
+
margin: {
|
|
132
|
+
readonly [$$ScaleValue]: "space";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
mt: (value: {
|
|
136
|
+
readonly [$$ScaleValue]: "space";
|
|
137
|
+
}) => {
|
|
138
|
+
marginTop: {
|
|
139
|
+
readonly [$$ScaleValue]: "space";
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
mr: (value: {
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
|
+
}) => {
|
|
145
|
+
marginRight: {
|
|
146
|
+
readonly [$$ScaleValue]: "space";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
mb: (value: {
|
|
150
|
+
readonly [$$ScaleValue]: "space";
|
|
151
|
+
}) => {
|
|
152
|
+
marginBottom: {
|
|
153
|
+
readonly [$$ScaleValue]: "space";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
ml: (value: {
|
|
157
|
+
readonly [$$ScaleValue]: "space";
|
|
158
|
+
}) => {
|
|
159
|
+
marginLeft: {
|
|
160
|
+
readonly [$$ScaleValue]: "space";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
mx: (value: {
|
|
164
|
+
readonly [$$ScaleValue]: "space";
|
|
165
|
+
}) => {
|
|
166
|
+
marginLeft: {
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
168
|
+
};
|
|
169
|
+
marginRight: {
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
my: (value: {
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
175
|
+
}) => {
|
|
176
|
+
marginTop: {
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
178
|
+
};
|
|
179
|
+
marginBottom: {
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
size: (value: {
|
|
184
|
+
readonly [$$PropertyValue]: "width";
|
|
185
|
+
}) => {
|
|
186
|
+
width: {
|
|
187
|
+
readonly [$$PropertyValue]: "width";
|
|
188
|
+
};
|
|
189
|
+
height: {
|
|
190
|
+
readonly [$$PropertyValue]: "width";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
subtleColor: (value: string) => {
|
|
194
|
+
color: string;
|
|
195
|
+
backgroundColor: string;
|
|
196
|
+
};
|
|
197
|
+
}>>;
|
|
198
|
+
export interface TooltipProps extends TooltipPrimitive.TooltipProps {
|
|
199
|
+
css?: CSS;
|
|
200
|
+
children: React.ReactNode;
|
|
201
|
+
label: string | React.ReactNode;
|
|
202
|
+
color?: string;
|
|
203
|
+
side?: 'top' | 'bottom' | 'right' | 'left';
|
|
204
|
+
align?: 'start' | 'center' | 'end';
|
|
205
|
+
withClick?: boolean;
|
|
206
|
+
}
|
|
207
|
+
declare const Tooltip: {
|
|
208
|
+
({ children, label, color, css, withClick, side, align, delayDuration, ...rest }: TooltipProps): JSX.Element;
|
|
209
|
+
defaultProps: {
|
|
210
|
+
color: string;
|
|
211
|
+
side: string;
|
|
212
|
+
align: string;
|
|
213
|
+
label: string;
|
|
214
|
+
children: JSX.Element;
|
|
215
|
+
delayDuration: number;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export default Tooltip;
|