@homecode/ui 4.27.16 → 4.27.18
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/.nvmrc +1 -1
- package/dist/esm/src/components/Form/Form.js +26 -33
- package/dist/esm/src/components/Input/Input.js +20 -3
- package/dist/esm/types/src/components/Icon/Icon.d.ts +92 -86
- package/dist/esm/types/src/components/Icon/icons/index.d.ts +92 -91
- package/dist/esm/types/src/components/Notifications/Notifications.d.ts +3 -2
- package/dist/esm/types/src/components/Tabs/Tabs.types.d.ts +4 -2
- package/package.json +1 -1
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
22
|
|
@@ -63,6 +63,8 @@ function Form(props) {
|
|
|
63
63
|
const touchedRef = useRef(touched);
|
|
64
64
|
const errorsRef = useRef(errors);
|
|
65
65
|
const onChangeRef = useRef(onChange);
|
|
66
|
+
const onChangeHandlerRef = useRef(null); // Add this
|
|
67
|
+
const onBlurHandlerRef = useRef(null); // Add this
|
|
66
68
|
const setValues = (newValues) => {
|
|
67
69
|
_setValues(newValues);
|
|
68
70
|
valuesRef.current = newValues;
|
|
@@ -182,14 +184,18 @@ function Form(props) {
|
|
|
182
184
|
const newValues = { ...valuesRef.current, [field]: val };
|
|
183
185
|
if (onChangeRef.current && !onChangeRef.current(newValues))
|
|
184
186
|
return;
|
|
187
|
+
const isTouched = !compare(val, initialValues[field]);
|
|
185
188
|
setValue(field, val);
|
|
186
|
-
setFieldTouched(field,
|
|
189
|
+
setFieldTouched(field, isTouched);
|
|
187
190
|
calcChanged(field, val);
|
|
188
191
|
validate();
|
|
189
|
-
}, [calcChanged, validate]);
|
|
192
|
+
}, [calcChanged, validate, initialValues]);
|
|
190
193
|
const onBlurHandler = useCallback((name) => {
|
|
191
194
|
setFieldTouched(name, true);
|
|
192
195
|
}, []);
|
|
196
|
+
// Update refs to always point to latest handlers
|
|
197
|
+
onChangeHandlerRef.current = onChangeHandler;
|
|
198
|
+
onBlurHandlerRef.current = onBlurHandler;
|
|
193
199
|
const onSubmitHandler = async (e) => {
|
|
194
200
|
e?.preventDefault();
|
|
195
201
|
dropFocusFromSubmit();
|
|
@@ -199,7 +205,6 @@ function Form(props) {
|
|
|
199
205
|
await onSubmit({ ...values });
|
|
200
206
|
setIsLoading(false);
|
|
201
207
|
};
|
|
202
|
-
// Simple field component - let memo on Field handle optimization
|
|
203
208
|
const FieldComponent = useRef((fieldProps) => {
|
|
204
209
|
const { name } = fieldProps;
|
|
205
210
|
const fullProps = {
|
|
@@ -209,8 +214,8 @@ function Form(props) {
|
|
|
209
214
|
markEdited,
|
|
210
215
|
isChanged: changedRef.current[name],
|
|
211
216
|
isTouched: touchedRef.current[name],
|
|
212
|
-
handleChange:
|
|
213
|
-
handleBlur:
|
|
217
|
+
handleChange: (...args) => onChangeHandlerRef.current(...args),
|
|
218
|
+
handleBlur: (...args) => onBlurHandlerRef.current(...args),
|
|
214
219
|
};
|
|
215
220
|
if (validationSchemaRef.current?.[name]?.empty === false) {
|
|
216
221
|
fullProps.required = true;
|
|
@@ -238,41 +243,29 @@ function Form(props) {
|
|
|
238
243
|
// Effects
|
|
239
244
|
useEffect(() => {
|
|
240
245
|
validationSchemaRef.current = validationSchema;
|
|
246
|
+
validate();
|
|
241
247
|
}, [validationSchema]);
|
|
248
|
+
useEffect(() => {
|
|
249
|
+
defaultValuesRef.current = updateDefaultValues();
|
|
250
|
+
calcChangedAll(initialValues);
|
|
251
|
+
}, [defaultValues]);
|
|
252
|
+
useEffect(() => {
|
|
253
|
+
setValues(cloneValues(initialValues));
|
|
254
|
+
setTouched({});
|
|
255
|
+
setChanged({});
|
|
256
|
+
setIsDirty(false);
|
|
257
|
+
updateIsEmpty();
|
|
258
|
+
validate();
|
|
259
|
+
if (onInit)
|
|
260
|
+
onInit(formAPI);
|
|
261
|
+
}, [initialValues]);
|
|
242
262
|
useEffect(() => {
|
|
243
263
|
calcChangedAll();
|
|
244
264
|
validate();
|
|
245
265
|
if (onInit)
|
|
246
266
|
onInit(formAPI);
|
|
247
267
|
}, []);
|
|
248
|
-
|
|
249
|
-
const validationChanged = !compare(validationSchema, validationSchemaRef.current);
|
|
250
|
-
const initialValsChanged = !compare(initialValues, props.initialValues);
|
|
251
|
-
const defaultValsChanged = !compare(defaultValues, props.defaultValues);
|
|
252
|
-
if (initialValsChanged) {
|
|
253
|
-
setValues(cloneValues(initialValues));
|
|
254
|
-
validate();
|
|
255
|
-
if (onInit)
|
|
256
|
-
onInit(formAPI);
|
|
257
|
-
}
|
|
258
|
-
if (defaultValsChanged) {
|
|
259
|
-
defaultValuesRef.current = updateDefaultValues();
|
|
260
|
-
}
|
|
261
|
-
if (initialValsChanged || defaultValsChanged) {
|
|
262
|
-
calcChangedAll(initialValues);
|
|
263
|
-
}
|
|
264
|
-
if (initialValsChanged || validationChanged) {
|
|
265
|
-
validate();
|
|
266
|
-
}
|
|
267
|
-
}, [
|
|
268
|
-
initialValues,
|
|
269
|
-
validationSchema,
|
|
270
|
-
defaultValues,
|
|
271
|
-
onInit,
|
|
272
|
-
formAPI,
|
|
273
|
-
calcChangedAll,
|
|
274
|
-
validate,
|
|
275
|
-
]);
|
|
268
|
+
console.log('FORM: initialValues', initialValues);
|
|
276
269
|
const classes = cn(S.root, className, isLoading && S.isLoading);
|
|
277
270
|
return (jsx("form", { className: classes, ...restProps, onSubmit: onSubmitHandler, children: children(formAPI) }));
|
|
278
271
|
}
|
|
@@ -68,7 +68,24 @@ const Input = forwardRef((props, ref) => {
|
|
|
68
68
|
return val;
|
|
69
69
|
};
|
|
70
70
|
const onTextareaPaste = e => {
|
|
71
|
-
//
|
|
71
|
+
// Prevent default paste behavior to strip formatting
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
// Get plain text from clipboard
|
|
74
|
+
const text = (e.clipboardData || window.clipboardData)?.getData('text/plain') || '';
|
|
75
|
+
// Insert plain text at cursor position
|
|
76
|
+
if (document.queryCommandSupported('insertText')) {
|
|
77
|
+
document.execCommand('insertText', false, text);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
// Fallback for older browsers
|
|
81
|
+
const selection = window.getSelection();
|
|
82
|
+
if (!selection.rangeCount)
|
|
83
|
+
return;
|
|
84
|
+
selection.deleteFromDocument();
|
|
85
|
+
selection.getRangeAt(0).insertNode(document.createTextNode(text));
|
|
86
|
+
selection.collapseToEnd();
|
|
87
|
+
}
|
|
88
|
+
// Update the value after paste
|
|
72
89
|
setTimeout(() => {
|
|
73
90
|
if (inputRef.current) {
|
|
74
91
|
const newValue = inputRef.current.innerText;
|
|
@@ -243,7 +260,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
243
260
|
updateAutoComplete();
|
|
244
261
|
if (value !== inputValue) {
|
|
245
262
|
if (isTextArea)
|
|
246
|
-
setTextareaValue(String(value));
|
|
263
|
+
setTextareaValue(String(value ?? ''));
|
|
247
264
|
setInputValue(value);
|
|
248
265
|
}
|
|
249
266
|
if (autoFocus && inputRef.current) {
|
|
@@ -252,7 +269,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
252
269
|
}, [value, autoFocus]);
|
|
253
270
|
useEffect(() => {
|
|
254
271
|
if (isTextArea)
|
|
255
|
-
setTextareaValue(String(value));
|
|
272
|
+
setTextareaValue(String(value ?? ''));
|
|
256
273
|
}, []);
|
|
257
274
|
const Control = isTextArea ? 'span' : 'input';
|
|
258
275
|
const classes = cn(S.root, isTextArea && S.isTextArea, S[`size-${size}`], S[`variant-${variant}`], isFocused && S.isFocused, error && S.hasError, hasClear && S.hasClear, disabled && S.isDisabled, round && S.round, className);
|
|
@@ -1,91 +1,97 @@
|
|
|
1
|
+
/// <reference types="uilib/declarations" />
|
|
1
2
|
import * as T from './Icon.types';
|
|
2
3
|
export declare const icons: {
|
|
3
|
-
attach: () => Promise<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
4
|
+
attach: () => Promise<typeof import("*.svg")>;
|
|
5
|
+
apple: () => Promise<typeof import("*.svg")>;
|
|
6
|
+
arrowRight: () => Promise<typeof import("*.svg")>;
|
|
7
|
+
arrowLeft: () => Promise<typeof import("*.svg")>;
|
|
8
|
+
arrowUp: () => Promise<typeof import("*.svg")>;
|
|
9
|
+
arrowDown: () => Promise<typeof import("*.svg")>;
|
|
10
|
+
avatar: () => Promise<typeof import("*.svg")>;
|
|
11
|
+
bookmark: () => Promise<typeof import("*.svg")>;
|
|
12
|
+
bookmarkAdd: () => Promise<typeof import("*.svg")>;
|
|
13
|
+
brain: () => Promise<typeof import("*.svg")>;
|
|
14
|
+
brokenImage: () => Promise<typeof import("*.svg")>;
|
|
15
|
+
camera: () => Promise<typeof import("*.svg")>;
|
|
16
|
+
chat: () => Promise<typeof import("*.svg")>;
|
|
17
|
+
check: () => Promise<typeof import("*.svg")>;
|
|
18
|
+
close: () => Promise<typeof import("*.svg")>;
|
|
19
|
+
colors: () => Promise<typeof import("*.svg")>;
|
|
20
|
+
compass: () => Promise<typeof import("*.svg")>;
|
|
21
|
+
copy: () => Promise<typeof import("*.svg")>;
|
|
22
|
+
checkers: () => Promise<typeof import("*.svg")>;
|
|
23
|
+
chevronUp: () => Promise<typeof import("*.svg")>;
|
|
24
|
+
chevronDown: () => Promise<typeof import("*.svg")>;
|
|
25
|
+
chevronRight: () => Promise<typeof import("*.svg")>;
|
|
26
|
+
chevronLeft: () => Promise<typeof import("*.svg")>;
|
|
27
|
+
clearAll: () => Promise<typeof import("*.svg")>;
|
|
28
|
+
cubes: () => Promise<typeof import("*.svg")>;
|
|
29
|
+
delete: () => Promise<typeof import("*.svg")>;
|
|
30
|
+
draft: () => Promise<typeof import("*.svg")>;
|
|
31
|
+
dragHandlerHorizontal: () => Promise<typeof import("*.svg")>;
|
|
32
|
+
dragHandlerVertical: () => Promise<typeof import("*.svg")>;
|
|
33
|
+
edit: () => Promise<typeof import("*.svg")>;
|
|
34
|
+
email: () => Promise<typeof import("*.svg")>;
|
|
35
|
+
externalLink: () => Promise<typeof import("*.svg")>;
|
|
36
|
+
eye: () => Promise<typeof import("*.svg")>;
|
|
37
|
+
forward: () => Promise<typeof import("*.svg")>;
|
|
38
|
+
folder: () => Promise<typeof import("*.svg")>;
|
|
39
|
+
folderOpen: () => Promise<typeof import("*.svg")>;
|
|
40
|
+
fullscreen: () => Promise<typeof import("*.svg")>;
|
|
41
|
+
fullscreenExit: () => Promise<typeof import("*.svg")>;
|
|
42
|
+
function: () => Promise<typeof import("*.svg")>;
|
|
43
|
+
flyover: () => Promise<typeof import("*.svg")>;
|
|
44
|
+
gear: () => Promise<typeof import("*.svg")>;
|
|
45
|
+
geolocation: () => Promise<typeof import("*.svg")>;
|
|
46
|
+
globe: () => Promise<typeof import("*.svg")>;
|
|
47
|
+
google: () => Promise<typeof import("*.svg")>;
|
|
48
|
+
group: () => Promise<typeof import("*.svg")>;
|
|
49
|
+
github: () => Promise<typeof import("*.svg")>;
|
|
50
|
+
history: () => Promise<typeof import("*.svg")>;
|
|
51
|
+
image: () => Promise<typeof import("*.svg")>;
|
|
52
|
+
instagram: () => Promise<typeof import("*.svg")>;
|
|
53
|
+
home: () => Promise<typeof import("*.svg")>;
|
|
54
|
+
layers: () => Promise<typeof import("*.svg")>;
|
|
55
|
+
link: () => Promise<typeof import("*.svg")>;
|
|
56
|
+
loader: () => Promise<typeof import("*.svg")>;
|
|
57
|
+
lock: () => Promise<typeof import("*.svg")>;
|
|
58
|
+
lockOpen: () => Promise<typeof import("*.svg")>;
|
|
59
|
+
map: () => Promise<typeof import("*.svg")>;
|
|
60
|
+
menu: () => Promise<typeof import("*.svg")>;
|
|
61
|
+
mic: () => Promise<typeof import("*.svg")>;
|
|
62
|
+
micMuted: () => Promise<typeof import("*.svg")>;
|
|
63
|
+
minus: () => Promise<typeof import("*.svg")>;
|
|
64
|
+
moreVertical: () => Promise<typeof import("*.svg")>;
|
|
65
|
+
moreHorizontal: () => Promise<typeof import("*.svg")>;
|
|
66
|
+
output: () => Promise<typeof import("*.svg")>;
|
|
67
|
+
pause: () => Promise<typeof import("*.svg")>;
|
|
68
|
+
play: () => Promise<typeof import("*.svg")>;
|
|
69
|
+
plus: () => Promise<typeof import("*.svg")>;
|
|
70
|
+
redo: () => Promise<typeof import("*.svg")>;
|
|
71
|
+
undo: () => Promise<typeof import("*.svg")>;
|
|
72
|
+
usage: () => Promise<typeof import("*.svg")>;
|
|
73
|
+
requiredStar: () => Promise<typeof import("*.svg")>;
|
|
74
|
+
rewind: () => Promise<typeof import("*.svg")>;
|
|
75
|
+
rocket: () => Promise<typeof import("*.svg")>;
|
|
76
|
+
route: () => Promise<typeof import("*.svg")>;
|
|
77
|
+
routeFrom: () => Promise<typeof import("*.svg")>;
|
|
78
|
+
routeTo: () => Promise<typeof import("*.svg")>;
|
|
79
|
+
save: () => Promise<typeof import("*.svg")>;
|
|
80
|
+
search: () => Promise<typeof import("*.svg")>;
|
|
81
|
+
send: () => Promise<typeof import("*.svg")>;
|
|
82
|
+
settings: () => Promise<typeof import("*.svg")>;
|
|
83
|
+
shoppingBag: () => Promise<typeof import("*.svg")>;
|
|
84
|
+
smile: () => Promise<typeof import("*.svg")>;
|
|
85
|
+
soundWave: () => Promise<typeof import("*.svg")>;
|
|
86
|
+
sparks: () => Promise<typeof import("*.svg")>;
|
|
87
|
+
star: () => Promise<typeof import("*.svg")>;
|
|
88
|
+
stop: () => Promise<typeof import("*.svg")>;
|
|
89
|
+
stopInCircle: () => Promise<typeof import("*.svg")>;
|
|
90
|
+
syncArrows: () => Promise<typeof import("*.svg")>;
|
|
91
|
+
table: () => Promise<typeof import("*.svg")>;
|
|
92
|
+
telegram: () => Promise<typeof import("*.svg")>;
|
|
93
|
+
tool: () => Promise<typeof import("*.svg")>;
|
|
94
|
+
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
89
95
|
};
|
|
90
96
|
export type { IconType } from './Icon.types';
|
|
91
97
|
export declare function Icon(props: T.Props): JSX.Element;
|
|
@@ -1,94 +1,95 @@
|
|
|
1
|
+
/// <reference types="uilib/declarations" />
|
|
1
2
|
declare const _default: {
|
|
2
|
-
attach: () => Promise<
|
|
3
|
-
apple: () => Promise<
|
|
4
|
-
arrowRight: () => Promise<
|
|
5
|
-
arrowLeft: () => Promise<
|
|
6
|
-
arrowUp: () => Promise<
|
|
7
|
-
arrowDown: () => Promise<
|
|
8
|
-
avatar: () => Promise<
|
|
9
|
-
bookmark: () => Promise<
|
|
10
|
-
bookmarkAdd: () => Promise<
|
|
11
|
-
brain: () => Promise<
|
|
12
|
-
brokenImage: () => Promise<
|
|
13
|
-
camera: () => Promise<
|
|
14
|
-
chat: () => Promise<
|
|
15
|
-
check: () => Promise<
|
|
16
|
-
close: () => Promise<
|
|
17
|
-
colors: () => Promise<
|
|
18
|
-
compass: () => Promise<
|
|
19
|
-
copy: () => Promise<
|
|
20
|
-
checkers: () => Promise<
|
|
21
|
-
chevronUp: () => Promise<
|
|
22
|
-
chevronDown: () => Promise<
|
|
23
|
-
chevronRight: () => Promise<
|
|
24
|
-
chevronLeft: () => Promise<
|
|
25
|
-
clearAll: () => Promise<
|
|
26
|
-
cubes: () => Promise<
|
|
27
|
-
delete: () => Promise<
|
|
28
|
-
draft: () => Promise<
|
|
29
|
-
dragHandlerHorizontal: () => Promise<
|
|
30
|
-
dragHandlerVertical: () => Promise<
|
|
31
|
-
edit: () => Promise<
|
|
32
|
-
email: () => Promise<
|
|
33
|
-
externalLink: () => Promise<
|
|
34
|
-
eye: () => Promise<
|
|
35
|
-
forward: () => Promise<
|
|
36
|
-
folder: () => Promise<
|
|
37
|
-
folderOpen: () => Promise<
|
|
38
|
-
fullscreen: () => Promise<
|
|
39
|
-
fullscreenExit: () => Promise<
|
|
40
|
-
function: () => Promise<
|
|
41
|
-
flyover: () => Promise<
|
|
42
|
-
gear: () => Promise<
|
|
43
|
-
geolocation: () => Promise<
|
|
44
|
-
globe: () => Promise<
|
|
45
|
-
google: () => Promise<
|
|
46
|
-
group: () => Promise<
|
|
47
|
-
github: () => Promise<
|
|
48
|
-
history: () => Promise<
|
|
49
|
-
image: () => Promise<
|
|
50
|
-
instagram: () => Promise<
|
|
51
|
-
home: () => Promise<
|
|
52
|
-
layers: () => Promise<
|
|
53
|
-
link: () => Promise<
|
|
54
|
-
loader: () => Promise<
|
|
55
|
-
lock: () => Promise<
|
|
56
|
-
lockOpen: () => Promise<
|
|
57
|
-
map: () => Promise<
|
|
58
|
-
menu: () => Promise<
|
|
59
|
-
mic: () => Promise<
|
|
60
|
-
micMuted: () => Promise<
|
|
61
|
-
minus: () => Promise<
|
|
62
|
-
moreVertical: () => Promise<
|
|
63
|
-
moreHorizontal: () => Promise<
|
|
64
|
-
output: () => Promise<
|
|
65
|
-
pause: () => Promise<
|
|
66
|
-
play: () => Promise<
|
|
67
|
-
plus: () => Promise<
|
|
68
|
-
redo: () => Promise<
|
|
69
|
-
undo: () => Promise<
|
|
70
|
-
usage: () => Promise<
|
|
71
|
-
requiredStar: () => Promise<
|
|
72
|
-
rewind: () => Promise<
|
|
73
|
-
rocket: () => Promise<
|
|
74
|
-
route: () => Promise<
|
|
75
|
-
routeFrom: () => Promise<
|
|
76
|
-
routeTo: () => Promise<
|
|
77
|
-
save: () => Promise<
|
|
78
|
-
search: () => Promise<
|
|
79
|
-
send: () => Promise<
|
|
80
|
-
settings: () => Promise<
|
|
81
|
-
shoppingBag: () => Promise<
|
|
82
|
-
smile: () => Promise<
|
|
83
|
-
soundWave: () => Promise<
|
|
84
|
-
sparks: () => Promise<
|
|
85
|
-
star: () => Promise<
|
|
86
|
-
stop: () => Promise<
|
|
87
|
-
stopInCircle: () => Promise<
|
|
88
|
-
syncArrows: () => Promise<
|
|
89
|
-
table: () => Promise<
|
|
90
|
-
telegram: () => Promise<
|
|
91
|
-
tool: () => Promise<
|
|
92
|
-
trafficLight: () => Promise<
|
|
3
|
+
attach: () => Promise<typeof import("*.svg")>;
|
|
4
|
+
apple: () => Promise<typeof import("*.svg")>;
|
|
5
|
+
arrowRight: () => Promise<typeof import("*.svg")>;
|
|
6
|
+
arrowLeft: () => Promise<typeof import("*.svg")>;
|
|
7
|
+
arrowUp: () => Promise<typeof import("*.svg")>;
|
|
8
|
+
arrowDown: () => Promise<typeof import("*.svg")>;
|
|
9
|
+
avatar: () => Promise<typeof import("*.svg")>;
|
|
10
|
+
bookmark: () => Promise<typeof import("*.svg")>;
|
|
11
|
+
bookmarkAdd: () => Promise<typeof import("*.svg")>;
|
|
12
|
+
brain: () => Promise<typeof import("*.svg")>;
|
|
13
|
+
brokenImage: () => Promise<typeof import("*.svg")>;
|
|
14
|
+
camera: () => Promise<typeof import("*.svg")>;
|
|
15
|
+
chat: () => Promise<typeof import("*.svg")>;
|
|
16
|
+
check: () => Promise<typeof import("*.svg")>;
|
|
17
|
+
close: () => Promise<typeof import("*.svg")>;
|
|
18
|
+
colors: () => Promise<typeof import("*.svg")>;
|
|
19
|
+
compass: () => Promise<typeof import("*.svg")>;
|
|
20
|
+
copy: () => Promise<typeof import("*.svg")>;
|
|
21
|
+
checkers: () => Promise<typeof import("*.svg")>;
|
|
22
|
+
chevronUp: () => Promise<typeof import("*.svg")>;
|
|
23
|
+
chevronDown: () => Promise<typeof import("*.svg")>;
|
|
24
|
+
chevronRight: () => Promise<typeof import("*.svg")>;
|
|
25
|
+
chevronLeft: () => Promise<typeof import("*.svg")>;
|
|
26
|
+
clearAll: () => Promise<typeof import("*.svg")>;
|
|
27
|
+
cubes: () => Promise<typeof import("*.svg")>;
|
|
28
|
+
delete: () => Promise<typeof import("*.svg")>;
|
|
29
|
+
draft: () => Promise<typeof import("*.svg")>;
|
|
30
|
+
dragHandlerHorizontal: () => Promise<typeof import("*.svg")>;
|
|
31
|
+
dragHandlerVertical: () => Promise<typeof import("*.svg")>;
|
|
32
|
+
edit: () => Promise<typeof import("*.svg")>;
|
|
33
|
+
email: () => Promise<typeof import("*.svg")>;
|
|
34
|
+
externalLink: () => Promise<typeof import("*.svg")>;
|
|
35
|
+
eye: () => Promise<typeof import("*.svg")>;
|
|
36
|
+
forward: () => Promise<typeof import("*.svg")>;
|
|
37
|
+
folder: () => Promise<typeof import("*.svg")>;
|
|
38
|
+
folderOpen: () => Promise<typeof import("*.svg")>;
|
|
39
|
+
fullscreen: () => Promise<typeof import("*.svg")>;
|
|
40
|
+
fullscreenExit: () => Promise<typeof import("*.svg")>;
|
|
41
|
+
function: () => Promise<typeof import("*.svg")>;
|
|
42
|
+
flyover: () => Promise<typeof import("*.svg")>;
|
|
43
|
+
gear: () => Promise<typeof import("*.svg")>;
|
|
44
|
+
geolocation: () => Promise<typeof import("*.svg")>;
|
|
45
|
+
globe: () => Promise<typeof import("*.svg")>;
|
|
46
|
+
google: () => Promise<typeof import("*.svg")>;
|
|
47
|
+
group: () => Promise<typeof import("*.svg")>;
|
|
48
|
+
github: () => Promise<typeof import("*.svg")>;
|
|
49
|
+
history: () => Promise<typeof import("*.svg")>;
|
|
50
|
+
image: () => Promise<typeof import("*.svg")>;
|
|
51
|
+
instagram: () => Promise<typeof import("*.svg")>;
|
|
52
|
+
home: () => Promise<typeof import("*.svg")>;
|
|
53
|
+
layers: () => Promise<typeof import("*.svg")>;
|
|
54
|
+
link: () => Promise<typeof import("*.svg")>;
|
|
55
|
+
loader: () => Promise<typeof import("*.svg")>;
|
|
56
|
+
lock: () => Promise<typeof import("*.svg")>;
|
|
57
|
+
lockOpen: () => Promise<typeof import("*.svg")>;
|
|
58
|
+
map: () => Promise<typeof import("*.svg")>;
|
|
59
|
+
menu: () => Promise<typeof import("*.svg")>;
|
|
60
|
+
mic: () => Promise<typeof import("*.svg")>;
|
|
61
|
+
micMuted: () => Promise<typeof import("*.svg")>;
|
|
62
|
+
minus: () => Promise<typeof import("*.svg")>;
|
|
63
|
+
moreVertical: () => Promise<typeof import("*.svg")>;
|
|
64
|
+
moreHorizontal: () => Promise<typeof import("*.svg")>;
|
|
65
|
+
output: () => Promise<typeof import("*.svg")>;
|
|
66
|
+
pause: () => Promise<typeof import("*.svg")>;
|
|
67
|
+
play: () => Promise<typeof import("*.svg")>;
|
|
68
|
+
plus: () => Promise<typeof import("*.svg")>;
|
|
69
|
+
redo: () => Promise<typeof import("*.svg")>;
|
|
70
|
+
undo: () => Promise<typeof import("*.svg")>;
|
|
71
|
+
usage: () => Promise<typeof import("*.svg")>;
|
|
72
|
+
requiredStar: () => Promise<typeof import("*.svg")>;
|
|
73
|
+
rewind: () => Promise<typeof import("*.svg")>;
|
|
74
|
+
rocket: () => Promise<typeof import("*.svg")>;
|
|
75
|
+
route: () => Promise<typeof import("*.svg")>;
|
|
76
|
+
routeFrom: () => Promise<typeof import("*.svg")>;
|
|
77
|
+
routeTo: () => Promise<typeof import("*.svg")>;
|
|
78
|
+
save: () => Promise<typeof import("*.svg")>;
|
|
79
|
+
search: () => Promise<typeof import("*.svg")>;
|
|
80
|
+
send: () => Promise<typeof import("*.svg")>;
|
|
81
|
+
settings: () => Promise<typeof import("*.svg")>;
|
|
82
|
+
shoppingBag: () => Promise<typeof import("*.svg")>;
|
|
83
|
+
smile: () => Promise<typeof import("*.svg")>;
|
|
84
|
+
soundWave: () => Promise<typeof import("*.svg")>;
|
|
85
|
+
sparks: () => Promise<typeof import("*.svg")>;
|
|
86
|
+
star: () => Promise<typeof import("*.svg")>;
|
|
87
|
+
stop: () => Promise<typeof import("*.svg")>;
|
|
88
|
+
stopInCircle: () => Promise<typeof import("*.svg")>;
|
|
89
|
+
syncArrows: () => Promise<typeof import("*.svg")>;
|
|
90
|
+
table: () => Promise<typeof import("*.svg")>;
|
|
91
|
+
telegram: () => Promise<typeof import("*.svg")>;
|
|
92
|
+
tool: () => Promise<typeof import("*.svg")>;
|
|
93
|
+
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
93
94
|
};
|
|
94
95
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import * as T from './Notifications.types';
|
|
1
2
|
type Props = {
|
|
2
3
|
store?: any;
|
|
3
4
|
};
|
|
4
5
|
export declare const NotificationsStore: import("justorm/dist/esm/proxy").ProxyStore<{
|
|
5
6
|
items: string[];
|
|
6
|
-
|
|
7
|
+
autoHide: string[];
|
|
7
8
|
data: {};
|
|
8
9
|
paused: boolean;
|
|
9
|
-
show(data:
|
|
10
|
+
show(data: T.ItemParams): any;
|
|
10
11
|
pause(): void;
|
|
11
12
|
unpause(): void;
|
|
12
13
|
close(id: any): void;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Size } from 'uilib/types';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
3
4
|
type ID = string | number;
|
|
4
|
-
export type Item = ButtonProps & {
|
|
5
|
+
export type Item = Omit<ButtonProps, 'children'> & {
|
|
5
6
|
id: ID;
|
|
6
7
|
label: string;
|
|
7
|
-
content:
|
|
8
|
+
content: ReactNode | (() => ReactNode);
|
|
8
9
|
contentClassName?: string;
|
|
9
10
|
forceRender?: boolean;
|
|
10
11
|
onClick?: (e: MouseEvent) => boolean | void;
|
|
12
|
+
children?: ButtonProps['children'];
|
|
11
13
|
};
|
|
12
14
|
export type RenderProps = {
|
|
13
15
|
tabs: React.ReactNode;
|