@homecode/ui 4.27.22 → 4.27.24
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/src/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/esm/src/components/Icon/Icon.js +2 -5
- package/dist/esm/src/components/Icon/icons/discord.svg.js +17 -0
- package/dist/esm/src/components/Icon/icons/index.js +3 -0
- package/dist/esm/src/components/Icon/icons/linkedin.svg.js +20 -0
- package/dist/esm/src/components/Icon/icons/youtube.svg.js +20 -0
- package/dist/esm/src/components/Router/Router.js +4 -1
- package/dist/esm/types/src/components/Icon/Icon.d.ts +4 -5
- package/dist/esm/types/src/components/Icon/Icon.types.d.ts +1 -1
- package/dist/esm/types/src/components/Icon/icons/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -13,8 +13,10 @@ 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 '../Icon/Icon.js';
|
|
17
16
|
import 'timen';
|
|
17
|
+
import 'justorm/react';
|
|
18
|
+
import '../Flex/Flex.styl.js';
|
|
19
|
+
import '../Icon/Icon.styl.js';
|
|
18
20
|
import '../Label/Label.styl.js';
|
|
19
21
|
import { Popup } from '../Popup/Popup.js';
|
|
20
22
|
import '../RequiredStar/RequiredStar.styl.js';
|
|
@@ -22,7 +24,6 @@ import '../Select/Select.styl.js';
|
|
|
22
24
|
import 'compareq';
|
|
23
25
|
import 'lodash.pick';
|
|
24
26
|
import '../Scroll/Scroll.styl.js';
|
|
25
|
-
import 'justorm/react';
|
|
26
27
|
import 'lodash.omit';
|
|
27
28
|
import 'nanoid';
|
|
28
29
|
import '../Checkbox/Checkbox.styl.js';
|
|
@@ -33,7 +34,6 @@ import '../DatePickerInput/DatePickerInput.styl.js';
|
|
|
33
34
|
import '../../tools/queryParams.js';
|
|
34
35
|
import '../Draggable/Draggable.styl.js';
|
|
35
36
|
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';
|
|
@@ -6,7 +6,7 @@ import ICONS from './icons/index.js';
|
|
|
6
6
|
|
|
7
7
|
const icons = ICONS;
|
|
8
8
|
function Icon(props) {
|
|
9
|
-
const { className, icon: CustomIcon, type, size, ...rest } = props;
|
|
9
|
+
const { className, icon: CustomIcon, type, size = 'm', ...rest } = props;
|
|
10
10
|
const iconProps = {
|
|
11
11
|
className: cn(S.root, S[`size-${size}`], className),
|
|
12
12
|
role: 'img',
|
|
@@ -21,9 +21,6 @@ function Icon(props) {
|
|
|
21
21
|
}
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
return jsx(Lazy, { loader: localIcon, hideSpinner: true, ...iconProps });
|
|
24
|
-
}
|
|
25
|
-
Icon.defaultProps = {
|
|
26
|
-
size: 'm',
|
|
27
|
-
};
|
|
24
|
+
}
|
|
28
25
|
|
|
29
26
|
export { Icon, icons };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
var SvgDiscord = function SvgDiscord(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
viewBox: "0 0 24 24"
|
|
8
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
fill: "#5865f2",
|
|
10
|
+
d: "M20.21 4.295a19.3 19.3 0 0 0-4.86-1.523 16 16 0 0 0-.622 1.29 17.7 17.7 0 0 0-5.388 0 12 12 0 0 0-.631-1.293 19.3 19.3 0 0 0-4.863 1.533C.768 8.95-.065 13.482.351 17.95a19.6 19.6 0 0 0 5.964 3.056q.721-.995 1.274-2.105a12.4 12.4 0 0 1-2.008-.976q.252-.187.491-.392c3.877 1.813 8.09 1.813 11.92 0q.243.2.492.392-.958.575-2.012.98.55 1.11 1.275 2.101a19.3 19.3 0 0 0 5.966-3.056c.489-5.18-.836-9.67-3.504-13.656M8.118 15.205c-1.163 0-2.117-1.088-2.117-2.41 0-1.32.932-2.409 2.117-2.409s2.14 1.088 2.117 2.41c.003 1.324-.932 2.41-2.114 2.41m7.829 0c-1.163 0-2.117-1.089-2.117-2.41s.932-2.41 2.114-2.41c1.188 0 2.142 1.088 2.12 2.41 0 1.324-.932 2.41-2.117 2.41",
|
|
11
|
+
style: {
|
|
12
|
+
strokeWidth: 3.10913
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { SvgDiscord as default };
|
|
@@ -26,6 +26,7 @@ var ICONS = {
|
|
|
26
26
|
clearAll: () => import('./clearAll.svg.js'),
|
|
27
27
|
cubes: () => import('./cubes.svg.js'),
|
|
28
28
|
delete: () => import('./delete.svg.js'),
|
|
29
|
+
discord: () => import('./discord.svg.js'),
|
|
29
30
|
draft: () => import('./draft.svg.js'),
|
|
30
31
|
dragHandlerHorizontal: () => import('./dragHandlerHorizontal.svg.js'),
|
|
31
32
|
dragHandlerVertical: () => import('./dragHandlerVertical.svg.js'),
|
|
@@ -52,6 +53,7 @@ var ICONS = {
|
|
|
52
53
|
home: () => import('./home.svg.js'),
|
|
53
54
|
layers: () => import('./layers.svg.js'),
|
|
54
55
|
link: () => import('./link.svg.js'),
|
|
56
|
+
linkedin: () => import('./linkedin.svg.js'),
|
|
55
57
|
loader: () => import('./loader.svg.js'),
|
|
56
58
|
lock: () => import('./lock.svg.js'),
|
|
57
59
|
lockOpen: () => import('./lockOpen.svg.js'),
|
|
@@ -91,6 +93,7 @@ var ICONS = {
|
|
|
91
93
|
telegram: () => import('./telegram.svg.js'),
|
|
92
94
|
tool: () => import('./tool.svg.js'),
|
|
93
95
|
trafficLight: () => import('./trafficLight.svg.js'),
|
|
96
|
+
youtube: () => import('./youtube.svg.js'),
|
|
94
97
|
};
|
|
95
98
|
|
|
96
99
|
export { ICONS as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
var SvgLinkedin = function SvgLinkedin(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
xmlSpace: "preserve",
|
|
8
|
+
width: 24,
|
|
9
|
+
height: 24,
|
|
10
|
+
viewBox: "0 0 11.46 11.46"
|
|
11
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
12
|
+
d: "M10.406 0H1.035C.463 0 0 .463 0 1.035v9.371c0 .572.463 1.035 1.035 1.035h9.371c.572 0 1.035-.463 1.035-1.035V1.035C11.441.463 10.978 0 10.406 0M3.54 9.88a.3.3 0 0 1-.3.3H1.956a.3.3 0 0 1-.301-.3V4.504a.3.3 0 0 1 .301-.301H3.24a.3.3 0 0 1 .301.3zm-.942-6.183a1.218 1.218 0 1 1 0-2.436 1.218 1.218 0 0 1 0 2.436m7.643 6.206a.277.277 0 0 1-.277.277H8.588a.277.277 0 0 1-.277-.277v-2.52c0-.377.11-1.648-.983-1.648-.848 0-1.02.87-1.054 1.26v2.908a.277.277 0 0 1-.277.277h-1.33a.277.277 0 0 1-.278-.277V4.48c0-.152.124-.276.277-.276h1.33c.154 0 .278.124.278.276v.47c.314-.472.781-.837 1.776-.837 2.203 0 2.19 2.059 2.19 3.19z",
|
|
13
|
+
style: {
|
|
14
|
+
fill: "#0077b7",
|
|
15
|
+
strokeWidth: 0.0299512
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { SvgLinkedin as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
var SvgYoutube = function SvgYoutube(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
xmlSpace: "preserve",
|
|
8
|
+
width: 24,
|
|
9
|
+
height: 24,
|
|
10
|
+
viewBox: "0 0 13.83 13.83"
|
|
11
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
12
|
+
d: "M365.257 67.393H95.744C42.866 67.393 0 110.259 0 163.137v134.728c0 52.878 42.866 95.744 95.744 95.744h269.513c52.878 0 95.744-42.866 95.744-95.744V163.137c0-52.878-42.866-95.744-95.744-95.744m-64.751 169.663-126.06 60.123c-3.359 1.602-7.239-.847-7.239-4.568V168.607c0-3.774 3.982-6.22 7.348-4.514l126.06 63.881c3.748 1.899 3.683 7.274-.109 9.082",
|
|
13
|
+
style: {
|
|
14
|
+
fill: "#f61c0d"
|
|
15
|
+
},
|
|
16
|
+
transform: "translate(.05 .083) scale(.02983)"
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { SvgYoutube as default };
|
|
@@ -7,7 +7,10 @@ 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 '
|
|
10
|
+
import 'timen';
|
|
11
|
+
import '../Spinner/Spinner.styl.js';
|
|
12
|
+
import '../Flex/Flex.styl.js';
|
|
13
|
+
import '../Icon/Icon.styl.js';
|
|
11
14
|
import './Link/Link.styl.js';
|
|
12
15
|
|
|
13
16
|
const Router = (props) => {
|
|
@@ -12,6 +12,7 @@ export declare const icons: {
|
|
|
12
12
|
bookmarkAdd: () => Promise<typeof import("*.svg")>;
|
|
13
13
|
brain: () => Promise<typeof import("*.svg")>;
|
|
14
14
|
brokenImage: () => Promise<typeof import("*.svg")>;
|
|
15
|
+
call: () => Promise<typeof import("*.svg")>;
|
|
15
16
|
camera: () => Promise<typeof import("*.svg")>;
|
|
16
17
|
chat: () => Promise<typeof import("*.svg")>;
|
|
17
18
|
check: () => Promise<typeof import("*.svg")>;
|
|
@@ -27,6 +28,7 @@ export declare const icons: {
|
|
|
27
28
|
clearAll: () => Promise<typeof import("*.svg")>;
|
|
28
29
|
cubes: () => Promise<typeof import("*.svg")>;
|
|
29
30
|
delete: () => Promise<typeof import("*.svg")>;
|
|
31
|
+
discord: () => Promise<typeof import("*.svg")>;
|
|
30
32
|
draft: () => Promise<typeof import("*.svg")>;
|
|
31
33
|
dragHandlerHorizontal: () => Promise<typeof import("*.svg")>;
|
|
32
34
|
dragHandlerVertical: () => Promise<typeof import("*.svg")>;
|
|
@@ -53,6 +55,7 @@ export declare const icons: {
|
|
|
53
55
|
home: () => Promise<typeof import("*.svg")>;
|
|
54
56
|
layers: () => Promise<typeof import("*.svg")>;
|
|
55
57
|
link: () => Promise<typeof import("*.svg")>;
|
|
58
|
+
linkedin: () => Promise<typeof import("*.svg")>;
|
|
56
59
|
loader: () => Promise<typeof import("*.svg")>;
|
|
57
60
|
lock: () => Promise<typeof import("*.svg")>;
|
|
58
61
|
lockOpen: () => Promise<typeof import("*.svg")>;
|
|
@@ -92,11 +95,7 @@ export declare const icons: {
|
|
|
92
95
|
telegram: () => Promise<typeof import("*.svg")>;
|
|
93
96
|
tool: () => Promise<typeof import("*.svg")>;
|
|
94
97
|
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
98
|
+
youtube: () => Promise<typeof import("*.svg")>;
|
|
95
99
|
};
|
|
96
100
|
export type { IconType } from './Icon.types';
|
|
97
101
|
export declare function Icon(props: T.Props): JSX.Element;
|
|
98
|
-
export declare namespace Icon {
|
|
99
|
-
var defaultProps: {
|
|
100
|
-
size: T.IconSize;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
clearAll: () => Promise<typeof import("*.svg")>;
|
|
28
28
|
cubes: () => Promise<typeof import("*.svg")>;
|
|
29
29
|
delete: () => Promise<typeof import("*.svg")>;
|
|
30
|
+
discord: () => Promise<typeof import("*.svg")>;
|
|
30
31
|
draft: () => Promise<typeof import("*.svg")>;
|
|
31
32
|
dragHandlerHorizontal: () => Promise<typeof import("*.svg")>;
|
|
32
33
|
dragHandlerVertical: () => Promise<typeof import("*.svg")>;
|
|
@@ -53,6 +54,7 @@ declare const _default: {
|
|
|
53
54
|
home: () => Promise<typeof import("*.svg")>;
|
|
54
55
|
layers: () => Promise<typeof import("*.svg")>;
|
|
55
56
|
link: () => Promise<typeof import("*.svg")>;
|
|
57
|
+
linkedin: () => Promise<typeof import("*.svg")>;
|
|
56
58
|
loader: () => Promise<typeof import("*.svg")>;
|
|
57
59
|
lock: () => Promise<typeof import("*.svg")>;
|
|
58
60
|
lockOpen: () => Promise<typeof import("*.svg")>;
|
|
@@ -92,5 +94,6 @@ declare const _default: {
|
|
|
92
94
|
telegram: () => Promise<typeof import("*.svg")>;
|
|
93
95
|
tool: () => Promise<typeof import("*.svg")>;
|
|
94
96
|
trafficLight: () => Promise<typeof import("*.svg")>;
|
|
97
|
+
youtube: () => Promise<typeof import("*.svg")>;
|
|
95
98
|
};
|
|
96
99
|
export default _default;
|