@homecode/ui 4.28.4 → 4.29.0
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/dist/esm/index.js +1 -1
- package/dist/esm/src/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/esm/src/components/Icon/Icon.js +6 -11
- package/dist/esm/src/components/Icon/icons/index.js +95 -99
- package/dist/esm/src/components/Router/Router.js +0 -3
- package/dist/esm/src/components/Select/Select2.js +3 -3
- package/dist/esm/types/src/components/Icon/Icon.d.ts +0 -98
- package/dist/esm/types/src/components/Icon/Icon.types.d.ts +1 -1
- package/dist/esm/types/src/components/Icon/icons/index.d.ts +95 -99
- package/dist/esm/types/src/components/Lazy/Lazy.types.d.ts +1 -1
- package/dist/esm/types/src/components/Select/Select.types.d.ts +2 -0
- package/package.json +11 -1
package/dist/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { Flex } from './src/components/Flex/Flex.js';
|
|
|
14
14
|
export { Form } from './src/components/Form/Form.js';
|
|
15
15
|
export { Gallery } from './src/components/Gallery/Gallery.js';
|
|
16
16
|
export { Heading } from './src/components/Heading/Heading.js';
|
|
17
|
-
export { Icon
|
|
17
|
+
export { Icon } from './src/components/Icon/Icon.js';
|
|
18
18
|
export { Input } from './src/components/Input/Input.js';
|
|
19
19
|
export { InputFile } from './src/components/InputFile/InputFile.js';
|
|
20
20
|
export { Label } from './src/components/Label/Label.js';
|
|
@@ -13,10 +13,8 @@ import '../ButtonGroup/ButtonGroup.styl.js';
|
|
|
13
13
|
import '../Calendar/Calendar.styl.js';
|
|
14
14
|
import { Input } from '../Input/Input.js';
|
|
15
15
|
import '../../tools/dom.js';
|
|
16
|
-
import 'timen';
|
|
17
|
-
import 'justorm/react';
|
|
18
|
-
import '../Flex/Flex.styl.js';
|
|
19
16
|
import '../Icon/Icon.styl.js';
|
|
17
|
+
import 'timen';
|
|
20
18
|
import '../Label/Label.styl.js';
|
|
21
19
|
import { Popup } from '../Popup/Popup.js';
|
|
22
20
|
import '../RequiredStar/RequiredStar.styl.js';
|
|
@@ -24,6 +22,7 @@ import '../Select/Select.styl.js';
|
|
|
24
22
|
import 'compareq';
|
|
25
23
|
import 'lodash.pick';
|
|
26
24
|
import '../Scroll/Scroll.styl.js';
|
|
25
|
+
import 'justorm/react';
|
|
27
26
|
import 'lodash.omit';
|
|
28
27
|
import 'nanoid';
|
|
29
28
|
import '../Checkbox/Checkbox.styl.js';
|
|
@@ -34,6 +33,7 @@ import '../DatePickerInput/DatePickerInput.styl.js';
|
|
|
34
33
|
import '../../tools/queryParams.js';
|
|
35
34
|
import '../Draggable/Draggable.styl.js';
|
|
36
35
|
import '../Expand/Expand.styl.js';
|
|
36
|
+
import '../Flex/Flex.styl.js';
|
|
37
37
|
import '../Form/Form.styl.js';
|
|
38
38
|
import '../Form/Validator.js';
|
|
39
39
|
import '../Form/SubmitButtons/SubmitButtons.styl.js';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Lazy } from '../Lazy/Lazy.js';
|
|
4
3
|
import S from './Icon.styl.js';
|
|
5
|
-
import
|
|
4
|
+
import * as index from './icons/index.js';
|
|
6
5
|
|
|
7
|
-
const icons = ICONS;
|
|
8
6
|
function Icon(props) {
|
|
9
7
|
const { className, icon: CustomIcon, type, size = 'm', ...rest } = props;
|
|
10
8
|
const iconProps = {
|
|
@@ -14,13 +12,10 @@ function Icon(props) {
|
|
|
14
12
|
};
|
|
15
13
|
if (CustomIcon)
|
|
16
14
|
return jsx(CustomIcon, { ...iconProps });
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
return jsx(Lazy, { loader: localIcon, hideSpinner: true, ...iconProps });
|
|
15
|
+
const LibIcon = index[type];
|
|
16
|
+
if (LibIcon)
|
|
17
|
+
return jsx(LibIcon, { ...iconProps });
|
|
18
|
+
return null;
|
|
24
19
|
}
|
|
25
20
|
|
|
26
|
-
export { Icon
|
|
21
|
+
export { Icon };
|
|
@@ -1,99 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
youtube: () => import('./youtube.svg.js'),
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export { ICONS as default };
|
|
1
|
+
export { default as attach } from './attach.svg.js';
|
|
2
|
+
export { default as apple } from './apple.svg.js';
|
|
3
|
+
export { default as arrowRight } from './arrowRight.svg.js';
|
|
4
|
+
export { default as arrowLeft } from './arrowLeft.svg.js';
|
|
5
|
+
export { default as arrowUp } from './arrowUp.svg.js';
|
|
6
|
+
export { default as arrowDown } from './arrowDown.svg.js';
|
|
7
|
+
export { default as avatar } from './avatar.svg.js';
|
|
8
|
+
export { default as bookmark } from './bookmark.svg.js';
|
|
9
|
+
export { default as bookmarkAdd } from './bookmarkAdd.svg.js';
|
|
10
|
+
export { default as brain } from './brain.svg.js';
|
|
11
|
+
export { default as brokenImage } from './brokenImage.svg.js';
|
|
12
|
+
export { default as call } from './call.svg.js';
|
|
13
|
+
export { default as camera } from './camera.svg.js';
|
|
14
|
+
export { default as chat } from './chat.svg.js';
|
|
15
|
+
export { default as check } from './check.svg.js';
|
|
16
|
+
export { default as close } from './close.svg.js';
|
|
17
|
+
export { default as colors } from './colors.svg.js';
|
|
18
|
+
export { default as compass } from './compass.svg.js';
|
|
19
|
+
export { default as copy } from './copy.svg.js';
|
|
20
|
+
export { default as checkers } from './checkers.svg.js';
|
|
21
|
+
export { default as chevronUp } from './chevronUp.svg.js';
|
|
22
|
+
export { default as chevronDown } from './chevronDown.svg.js';
|
|
23
|
+
export { default as chevronRight } from './chevronRight.svg.js';
|
|
24
|
+
export { default as chevronLeft } from './chevronLeft.svg.js';
|
|
25
|
+
export { default as clearAll } from './clearAll.svg.js';
|
|
26
|
+
export { default as cubes } from './cubes.svg.js';
|
|
27
|
+
export { default as delete } from './delete.svg.js';
|
|
28
|
+
export { default as discord } from './discord.svg.js';
|
|
29
|
+
export { default as draft } from './draft.svg.js';
|
|
30
|
+
export { default as dragHandlerHorizontal } from './dragHandlerHorizontal.svg.js';
|
|
31
|
+
export { default as dragHandlerVertical } from './dragHandlerVertical.svg.js';
|
|
32
|
+
export { default as edit } from './edit.svg.js';
|
|
33
|
+
export { default as email } from './email.svg.js';
|
|
34
|
+
export { default as externalLink } from './externalLink.svg.js';
|
|
35
|
+
export { default as eye } from './eye.svg.js';
|
|
36
|
+
export { default as forward } from './forward.svg.js';
|
|
37
|
+
export { default as folder } from './folder.svg.js';
|
|
38
|
+
export { default as folderOpen } from './folderOpen.svg.js';
|
|
39
|
+
export { default as fullscreen } from './fullscreen.svg.js';
|
|
40
|
+
export { default as fullscreenExit } from './fullscreenExit.svg.js';
|
|
41
|
+
export { default as function } from './function.svg.js';
|
|
42
|
+
export { default as flyover } from './flyover.svg.js';
|
|
43
|
+
export { default as gear } from './gear.svg.js';
|
|
44
|
+
export { default as geolocation } from './geolocation.svg.js';
|
|
45
|
+
export { default as globe } from './globe.svg.js';
|
|
46
|
+
export { default as google } from './google.svg.js';
|
|
47
|
+
export { default as group } from './group.svg.js';
|
|
48
|
+
export { default as github } from './github.svg.js';
|
|
49
|
+
export { default as history } from './history.svg.js';
|
|
50
|
+
export { default as image } from './image.svg.js';
|
|
51
|
+
export { default as instagram } from './instagram.svg.js';
|
|
52
|
+
export { default as home } from './home.svg.js';
|
|
53
|
+
export { default as layers } from './layers.svg.js';
|
|
54
|
+
export { default as link } from './link.svg.js';
|
|
55
|
+
export { default as linkedin } from './linkedin.svg.js';
|
|
56
|
+
export { default as loader } from './loader.svg.js';
|
|
57
|
+
export { default as lock } from './lock.svg.js';
|
|
58
|
+
export { default as lockOpen } from './lockOpen.svg.js';
|
|
59
|
+
export { default as map } from './map.svg.js';
|
|
60
|
+
export { default as menu } from './menu.svg.js';
|
|
61
|
+
export { default as mic } from './mic.svg.js';
|
|
62
|
+
export { default as micMuted } from './micMuted.svg.js';
|
|
63
|
+
export { default as minus } from './minus.svg.js';
|
|
64
|
+
export { default as moreVertical } from './moreVertical.svg.js';
|
|
65
|
+
export { default as moreHorizontal } from './moreHorizontal.svg.js';
|
|
66
|
+
export { default as output } from './output.svg.js';
|
|
67
|
+
export { default as pause } from './pause.svg.js';
|
|
68
|
+
export { default as play } from './play.svg.js';
|
|
69
|
+
export { default as plus } from './plus.svg.js';
|
|
70
|
+
export { default as redo } from './redo.svg.js';
|
|
71
|
+
export { default as undo } from './undo.svg.js';
|
|
72
|
+
export { default as usage } from './usage.svg.js';
|
|
73
|
+
export { default as requiredStar } from './requiredStar.svg.js';
|
|
74
|
+
export { default as rewind } from './rewind.svg.js';
|
|
75
|
+
export { default as rocket } from './rocket.svg.js';
|
|
76
|
+
export { default as route } from './route.svg.js';
|
|
77
|
+
export { default as routeFrom } from './routeFrom.svg.js';
|
|
78
|
+
export { default as routeTo } from './routeTo.svg.js';
|
|
79
|
+
export { default as save } from './save.svg.js';
|
|
80
|
+
export { default as search } from './search.svg.js';
|
|
81
|
+
export { default as send } from './send.svg.js';
|
|
82
|
+
export { default as settings } from './settings.svg.js';
|
|
83
|
+
export { default as shoppingBag } from './shoppingBag.svg.js';
|
|
84
|
+
export { default as smile } from './smile.svg.js';
|
|
85
|
+
export { default as soundWave } from './soundWave.svg.js';
|
|
86
|
+
export { default as sparks } from './sparks.svg.js';
|
|
87
|
+
export { default as star } from './star.svg.js';
|
|
88
|
+
export { default as stop } from './stop.svg.js';
|
|
89
|
+
export { default as stopInCircle } from './stopInCircle.svg.js';
|
|
90
|
+
export { default as syncArrows } from './syncArrows.svg.js';
|
|
91
|
+
export { default as table } from './table.svg.js';
|
|
92
|
+
export { default as telegram } from './telegram.svg.js';
|
|
93
|
+
export { default as tool } from './tool.svg.js';
|
|
94
|
+
export { default as trafficLight } from './trafficLight.svg.js';
|
|
95
|
+
export { default as youtube } from './youtube.svg.js';
|
|
@@ -7,9 +7,6 @@ import { parsePath, replaceParamsInPath } from './Router.helpers.js';
|
|
|
7
7
|
export { Route } from './Route.js';
|
|
8
8
|
export { Redirect } from './Redirect.js';
|
|
9
9
|
import 'classnames';
|
|
10
|
-
import 'timen';
|
|
11
|
-
import '../Spinner/Spinner.styl.js';
|
|
12
|
-
import '../Flex/Flex.styl.js';
|
|
13
10
|
import '../Icon/Icon.styl.js';
|
|
14
11
|
import './Link/Link.styl.js';
|
|
15
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useRef, useState, useMemo, useEffect, useCallback, createElement } from 'react';
|
|
1
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
3
|
import { mapById, isMultiple, renderLabel } from './Select.helpers.js';
|
|
3
|
-
import { useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
4
4
|
import { INTERACTION_MODE, getInteractionMode } from '../../tools/dom.js';
|
|
5
5
|
import cn from 'classnames';
|
|
6
6
|
import omit from 'lodash.omit';
|
|
@@ -17,7 +17,7 @@ import useEvent from '../../hooks/useEvent.js';
|
|
|
17
17
|
import S from './Select.styl.js';
|
|
18
18
|
|
|
19
19
|
function Select2(props) {
|
|
20
|
-
const { className, value, onChange, onSearchChange, disableTriggerArrow, inputProps, popupProps, size = 'm', round, optionClassName, additionalOptions = [], options, variant, label, error, blur, disabled, trigger, required, hideRequiredStar, isSearchable, presets = [], selectAllButton, clearButton, showSelectedCount, disableLabel, } = props;
|
|
20
|
+
const { className, value, onChange, onSearchChange, disableTriggerArrow, inputProps, popupProps, scrollProps, size = 'm', round, optionClassName, additionalOptions = [], options, variant, label, error, blur, disabled, trigger, required, hideRequiredStar, isSearchable, presets = [], selectAllButton, clearButton, showSelectedCount, disableLabel, } = props;
|
|
21
21
|
const isMultiple$1 = isMultiple(value);
|
|
22
22
|
const closeOnSelect = props.closeOnSelect ?? !isMultiple$1;
|
|
23
23
|
const contentRef = useRef(null);
|
|
@@ -300,7 +300,7 @@ function Select2(props) {
|
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
});
|
|
303
|
-
const optionsList = useMemo(() => (jsxs("div", { ref: contentRef, children: [renderPresets(),
|
|
303
|
+
const optionsList = useMemo(() => (jsxs("div", { ref: contentRef, children: [renderPresets(), createElement(Scroll, { y: true, ...scrollProps, offset: { y: { before: 10, after: 10 } }, className: cn(S.options, S[`size-${size}`], scrollProps?.className), onInnerRef: elem => (scrollInnerRef.current = elem), key: "items-scroll" }, renderOptions())] })), [items, searchVal, focusedItemIndex]);
|
|
304
304
|
const classes = cn(S.root, className, S[`size-${size}`]);
|
|
305
305
|
return (jsxs(Fragment, { children: [jsx(Popup, { className: classes, direction: "bottom", size: size, focusControl: true, hoverControl: isFocused, blur: blur, isOpen: isOpen, disabled: disabled, ...popupProps, onOpen: onPopupOpen, onClose: onPopupClose, trigger: renderTrigger(), triggerProps: {
|
|
306
306
|
onFocus: onFocus,
|
|
@@ -1,101 +1,3 @@
|
|
|
1
|
-
/// <reference types="uilib/declarations" />
|
|
2
1
|
import * as T from './Icon.types';
|
|
3
|
-
export declare const icons: {
|
|
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
|
-
call: () => Promise<typeof import("*.svg")>;
|
|
16
|
-
camera: () => Promise<typeof import("*.svg")>;
|
|
17
|
-
chat: () => Promise<typeof import("*.svg")>;
|
|
18
|
-
check: () => Promise<typeof import("*.svg")>;
|
|
19
|
-
close: () => Promise<typeof import("*.svg")>;
|
|
20
|
-
colors: () => Promise<typeof import("*.svg")>;
|
|
21
|
-
compass: () => Promise<typeof import("*.svg")>;
|
|
22
|
-
copy: () => Promise<typeof import("*.svg")>;
|
|
23
|
-
checkers: () => Promise<typeof import("*.svg")>;
|
|
24
|
-
chevronUp: () => Promise<typeof import("*.svg")>;
|
|
25
|
-
chevronDown: () => Promise<typeof import("*.svg")>;
|
|
26
|
-
chevronRight: () => Promise<typeof import("*.svg")>;
|
|
27
|
-
chevronLeft: () => Promise<typeof import("*.svg")>;
|
|
28
|
-
clearAll: () => Promise<typeof import("*.svg")>;
|
|
29
|
-
cubes: () => Promise<typeof import("*.svg")>;
|
|
30
|
-
delete: () => Promise<typeof import("*.svg")>;
|
|
31
|
-
discord: () => Promise<typeof import("*.svg")>;
|
|
32
|
-
draft: () => Promise<typeof import("*.svg")>;
|
|
33
|
-
dragHandlerHorizontal: () => Promise<typeof import("*.svg")>;
|
|
34
|
-
dragHandlerVertical: () => Promise<typeof import("*.svg")>;
|
|
35
|
-
edit: () => Promise<typeof import("*.svg")>;
|
|
36
|
-
email: () => Promise<typeof import("*.svg")>;
|
|
37
|
-
externalLink: () => Promise<typeof import("*.svg")>;
|
|
38
|
-
eye: () => Promise<typeof import("*.svg")>;
|
|
39
|
-
forward: () => Promise<typeof import("*.svg")>;
|
|
40
|
-
folder: () => Promise<typeof import("*.svg")>;
|
|
41
|
-
folderOpen: () => Promise<typeof import("*.svg")>;
|
|
42
|
-
fullscreen: () => Promise<typeof import("*.svg")>;
|
|
43
|
-
fullscreenExit: () => Promise<typeof import("*.svg")>;
|
|
44
|
-
function: () => Promise<typeof import("*.svg")>;
|
|
45
|
-
flyover: () => Promise<typeof import("*.svg")>;
|
|
46
|
-
gear: () => Promise<typeof import("*.svg")>;
|
|
47
|
-
geolocation: () => Promise<typeof import("*.svg")>;
|
|
48
|
-
globe: () => Promise<typeof import("*.svg")>;
|
|
49
|
-
google: () => Promise<typeof import("*.svg")>;
|
|
50
|
-
group: () => Promise<typeof import("*.svg")>;
|
|
51
|
-
github: () => Promise<typeof import("*.svg")>;
|
|
52
|
-
history: () => Promise<typeof import("*.svg")>;
|
|
53
|
-
image: () => Promise<typeof import("*.svg")>;
|
|
54
|
-
instagram: () => Promise<typeof import("*.svg")>;
|
|
55
|
-
home: () => Promise<typeof import("*.svg")>;
|
|
56
|
-
layers: () => Promise<typeof import("*.svg")>;
|
|
57
|
-
link: () => Promise<typeof import("*.svg")>;
|
|
58
|
-
linkedin: () => Promise<typeof import("*.svg")>;
|
|
59
|
-
loader: () => Promise<typeof import("*.svg")>;
|
|
60
|
-
lock: () => Promise<typeof import("*.svg")>;
|
|
61
|
-
lockOpen: () => Promise<typeof import("*.svg")>;
|
|
62
|
-
map: () => Promise<typeof import("*.svg")>;
|
|
63
|
-
menu: () => Promise<typeof import("*.svg")>;
|
|
64
|
-
mic: () => Promise<typeof import("*.svg")>;
|
|
65
|
-
micMuted: () => Promise<typeof import("*.svg")>;
|
|
66
|
-
minus: () => Promise<typeof import("*.svg")>;
|
|
67
|
-
moreVertical: () => Promise<typeof import("*.svg")>;
|
|
68
|
-
moreHorizontal: () => Promise<typeof import("*.svg")>;
|
|
69
|
-
output: () => Promise<typeof import("*.svg")>;
|
|
70
|
-
pause: () => Promise<typeof import("*.svg")>;
|
|
71
|
-
play: () => Promise<typeof import("*.svg")>;
|
|
72
|
-
plus: () => Promise<typeof import("*.svg")>;
|
|
73
|
-
redo: () => Promise<typeof import("*.svg")>;
|
|
74
|
-
undo: () => Promise<typeof import("*.svg")>;
|
|
75
|
-
usage: () => Promise<typeof import("*.svg")>;
|
|
76
|
-
requiredStar: () => Promise<typeof import("*.svg")>;
|
|
77
|
-
rewind: () => Promise<typeof import("*.svg")>;
|
|
78
|
-
rocket: () => Promise<typeof import("*.svg")>;
|
|
79
|
-
route: () => Promise<typeof import("*.svg")>;
|
|
80
|
-
routeFrom: () => Promise<typeof import("*.svg")>;
|
|
81
|
-
routeTo: () => Promise<typeof import("*.svg")>;
|
|
82
|
-
save: () => Promise<typeof import("*.svg")>;
|
|
83
|
-
search: () => Promise<typeof import("*.svg")>;
|
|
84
|
-
send: () => Promise<typeof import("*.svg")>;
|
|
85
|
-
settings: () => Promise<typeof import("*.svg")>;
|
|
86
|
-
shoppingBag: () => Promise<typeof import("*.svg")>;
|
|
87
|
-
smile: () => Promise<typeof import("*.svg")>;
|
|
88
|
-
soundWave: () => Promise<typeof import("*.svg")>;
|
|
89
|
-
sparks: () => Promise<typeof import("*.svg")>;
|
|
90
|
-
star: () => Promise<typeof import("*.svg")>;
|
|
91
|
-
stop: () => Promise<typeof import("*.svg")>;
|
|
92
|
-
stopInCircle: () => Promise<typeof import("*.svg")>;
|
|
93
|
-
syncArrows: () => Promise<typeof import("*.svg")>;
|
|
94
|
-
table: () => Promise<typeof import("*.svg")>;
|
|
95
|
-
telegram: () => Promise<typeof import("*.svg")>;
|
|
96
|
-
tool: () => Promise<typeof import("*.svg")>;
|
|
97
|
-
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
98
|
-
youtube: () => Promise<typeof import("*.svg")>;
|
|
99
|
-
};
|
|
100
2
|
export type { IconType } from './Icon.types';
|
|
101
3
|
export declare function Icon(props: T.Props): JSX.Element;
|
|
@@ -1,99 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
97
|
-
youtube: () => Promise<typeof import("*.svg")>;
|
|
98
|
-
};
|
|
99
|
-
export default _default;
|
|
1
|
+
export { default as attach } from './attach.svg';
|
|
2
|
+
export { default as apple } from './apple.svg';
|
|
3
|
+
export { default as arrowRight } from './arrowRight.svg';
|
|
4
|
+
export { default as arrowLeft } from './arrowLeft.svg';
|
|
5
|
+
export { default as arrowUp } from './arrowUp.svg';
|
|
6
|
+
export { default as arrowDown } from './arrowDown.svg';
|
|
7
|
+
export { default as avatar } from './avatar.svg';
|
|
8
|
+
export { default as bookmark } from './bookmark.svg';
|
|
9
|
+
export { default as bookmarkAdd } from './bookmarkAdd.svg';
|
|
10
|
+
export { default as brain } from './brain.svg';
|
|
11
|
+
export { default as brokenImage } from './brokenImage.svg';
|
|
12
|
+
export { default as call } from './call.svg';
|
|
13
|
+
export { default as camera } from './camera.svg';
|
|
14
|
+
export { default as chat } from './chat.svg';
|
|
15
|
+
export { default as check } from './check.svg';
|
|
16
|
+
export { default as close } from './close.svg';
|
|
17
|
+
export { default as colors } from './colors.svg';
|
|
18
|
+
export { default as compass } from './compass.svg';
|
|
19
|
+
export { default as copy } from './copy.svg';
|
|
20
|
+
export { default as checkers } from './checkers.svg';
|
|
21
|
+
export { default as chevronUp } from './chevronUp.svg';
|
|
22
|
+
export { default as chevronDown } from './chevronDown.svg';
|
|
23
|
+
export { default as chevronRight } from './chevronRight.svg';
|
|
24
|
+
export { default as chevronLeft } from './chevronLeft.svg';
|
|
25
|
+
export { default as clearAll } from './clearAll.svg';
|
|
26
|
+
export { default as cubes } from './cubes.svg';
|
|
27
|
+
export { default as delete } from './delete.svg';
|
|
28
|
+
export { default as discord } from './discord.svg';
|
|
29
|
+
export { default as draft } from './draft.svg';
|
|
30
|
+
export { default as dragHandlerHorizontal } from './dragHandlerHorizontal.svg';
|
|
31
|
+
export { default as dragHandlerVertical } from './dragHandlerVertical.svg';
|
|
32
|
+
export { default as edit } from './edit.svg';
|
|
33
|
+
export { default as email } from './email.svg';
|
|
34
|
+
export { default as externalLink } from './externalLink.svg';
|
|
35
|
+
export { default as eye } from './eye.svg';
|
|
36
|
+
export { default as forward } from './forward.svg';
|
|
37
|
+
export { default as folder } from './folder.svg';
|
|
38
|
+
export { default as folderOpen } from './folderOpen.svg';
|
|
39
|
+
export { default as fullscreen } from './fullscreen.svg';
|
|
40
|
+
export { default as fullscreenExit } from './fullscreenExit.svg';
|
|
41
|
+
export { default as function } from './function.svg';
|
|
42
|
+
export { default as flyover } from './flyover.svg';
|
|
43
|
+
export { default as gear } from './gear.svg';
|
|
44
|
+
export { default as geolocation } from './geolocation.svg';
|
|
45
|
+
export { default as globe } from './globe.svg';
|
|
46
|
+
export { default as google } from './google.svg';
|
|
47
|
+
export { default as group } from './group.svg';
|
|
48
|
+
export { default as github } from './github.svg';
|
|
49
|
+
export { default as history } from './history.svg';
|
|
50
|
+
export { default as image } from './image.svg';
|
|
51
|
+
export { default as instagram } from './instagram.svg';
|
|
52
|
+
export { default as home } from './home.svg';
|
|
53
|
+
export { default as layers } from './layers.svg';
|
|
54
|
+
export { default as link } from './link.svg';
|
|
55
|
+
export { default as linkedin } from './linkedin.svg';
|
|
56
|
+
export { default as loader } from './loader.svg';
|
|
57
|
+
export { default as lock } from './lock.svg';
|
|
58
|
+
export { default as lockOpen } from './lockOpen.svg';
|
|
59
|
+
export { default as map } from './map.svg';
|
|
60
|
+
export { default as menu } from './menu.svg';
|
|
61
|
+
export { default as mic } from './mic.svg';
|
|
62
|
+
export { default as micMuted } from './micMuted.svg';
|
|
63
|
+
export { default as minus } from './minus.svg';
|
|
64
|
+
export { default as moreVertical } from './moreVertical.svg';
|
|
65
|
+
export { default as moreHorizontal } from './moreHorizontal.svg';
|
|
66
|
+
export { default as output } from './output.svg';
|
|
67
|
+
export { default as pause } from './pause.svg';
|
|
68
|
+
export { default as play } from './play.svg';
|
|
69
|
+
export { default as plus } from './plus.svg';
|
|
70
|
+
export { default as redo } from './redo.svg';
|
|
71
|
+
export { default as undo } from './undo.svg';
|
|
72
|
+
export { default as usage } from './usage.svg';
|
|
73
|
+
export { default as requiredStar } from './requiredStar.svg';
|
|
74
|
+
export { default as rewind } from './rewind.svg';
|
|
75
|
+
export { default as rocket } from './rocket.svg';
|
|
76
|
+
export { default as route } from './route.svg';
|
|
77
|
+
export { default as routeFrom } from './routeFrom.svg';
|
|
78
|
+
export { default as routeTo } from './routeTo.svg';
|
|
79
|
+
export { default as save } from './save.svg';
|
|
80
|
+
export { default as search } from './search.svg';
|
|
81
|
+
export { default as send } from './send.svg';
|
|
82
|
+
export { default as settings } from './settings.svg';
|
|
83
|
+
export { default as shoppingBag } from './shoppingBag.svg';
|
|
84
|
+
export { default as smile } from './smile.svg';
|
|
85
|
+
export { default as soundWave } from './soundWave.svg';
|
|
86
|
+
export { default as sparks } from './sparks.svg';
|
|
87
|
+
export { default as star } from './star.svg';
|
|
88
|
+
export { default as stop } from './stop.svg';
|
|
89
|
+
export { default as stopInCircle } from './stopInCircle.svg';
|
|
90
|
+
export { default as syncArrows } from './syncArrows.svg';
|
|
91
|
+
export { default as table } from './table.svg';
|
|
92
|
+
export { default as telegram } from './telegram.svg';
|
|
93
|
+
export { default as tool } from './tool.svg';
|
|
94
|
+
export { default as trafficLight } from './trafficLight.svg';
|
|
95
|
+
export { default as youtube } from './youtube.svg';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { Size } from 'uilib/types';
|
|
3
|
-
export type ImportData = Record<string
|
|
3
|
+
export type ImportData = Record<string, any>;
|
|
4
4
|
export type Loader = () => Promise<ImportData>;
|
|
5
5
|
type RenderFunction = (importData: ImportData) => ReactNode;
|
|
6
6
|
export type Props = {
|
|
@@ -2,6 +2,7 @@ import { RefObject, ReactNode, HTMLAttributes } from 'react';
|
|
|
2
2
|
import type { FormControl, Size } from 'uilib/types';
|
|
3
3
|
import { InputProps } from '../Input/Input';
|
|
4
4
|
import { PopupProps } from '../Popup/Popup';
|
|
5
|
+
import { ScrollProps } from 'uilib/components/Scroll/Scroll';
|
|
5
6
|
export type Id = string | number;
|
|
6
7
|
export type Option = {
|
|
7
8
|
id: Id;
|
|
@@ -53,6 +54,7 @@ export type Props = FormControl<Value> & InheritedInputProps & {
|
|
|
53
54
|
onClose?: () => void;
|
|
54
55
|
isSearchable?: boolean;
|
|
55
56
|
inputProps?: Omit<InputProps, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'size'>;
|
|
57
|
+
scrollProps?: Partial<ScrollProps>;
|
|
56
58
|
round?: boolean;
|
|
57
59
|
trigger?: ReactNode;
|
|
58
60
|
triggerProps?: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homecode/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.29.0",
|
|
4
4
|
"description": "React UI components library",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tests": "jest",
|
|
@@ -40,6 +40,16 @@
|
|
|
40
40
|
"module": "dist/esm",
|
|
41
41
|
"types": "dist/esm/types/index.d.ts",
|
|
42
42
|
"type": "module",
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"import": "./dist/esm/index.js",
|
|
46
|
+
"types": "./dist/esm/types/index.d.ts"
|
|
47
|
+
},
|
|
48
|
+
"./icons": {
|
|
49
|
+
"import": "./dist/esm/src/components/Icon/icons/index.js",
|
|
50
|
+
"types": "./dist/esm/types/src/components/Icon/icons/index.d.ts"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
43
53
|
"bugs": {
|
|
44
54
|
"url": "https://github.com/apostololeg/uilib/issues"
|
|
45
55
|
},
|