@homecode/ui 4.27.23 → 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.
@@ -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 };
@@ -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 '../Icon/Icon.js';
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
- }
@@ -5,5 +5,5 @@ export type IconType = keyof typeof CUSTOM_ICONS;
5
5
  export type Props = ComponentType & {
6
6
  icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
7
7
  type?: IconType;
8
- size: IconSize;
8
+ size?: IconSize;
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "4.27.23",
3
+ "version": "4.27.24",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "tests": "jest",