huspy-icons 0.1.5 → 0.1.7

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.
@@ -4,17 +4,21 @@
4
4
  /**
5
5
  * Available icon names in the HuspyIcons font
6
6
  */
7
- export type IconName = 'icon-slot' | 'check' | 'arrow-up-right' | 'arrow-left';
7
+ export type IconName = 'user' | 'search' | 'icon-slot' | 'eye-visible' | 'eye-hidden' | 'check' | 'cancel' | 'arrow-left';
8
8
 
9
9
  /**
10
10
  * Mapping of icon names to unicode codepoints
11
11
  * Used by the Icon component to render the correct glyph
12
12
  */
13
13
  export const glyphMap: Record<IconName, number> = {
14
- "icon-slot": 61697,
15
- "check": 61698,
16
- "arrow-up-right": 61699,
17
- "arrow-left": 61700
14
+ "user": 61697,
15
+ "search": 61698,
16
+ "icon-slot": 61699,
17
+ "eye-visible": 61700,
18
+ "eye-hidden": 61701,
19
+ "check": 61702,
20
+ "cancel": 61703,
21
+ "arrow-left": 61704
18
22
  };
19
23
 
20
24
  /**
@@ -6,7 +6,13 @@ const SvgArrowLeft = ({ size = 16, ...props }: ReactIconProps) => {
6
6
  const sizeValue = resolveSize(size);
7
7
 
8
8
  return (
9
- <svg width={sizeValue} height={sizeValue} viewBox="0 0 24 24" fill="none" {...props}>
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
10
16
  <path
11
17
  fillRule="evenodd"
12
18
  clipRule="evenodd"
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgCancel = ({ size = 16, ...props }: ReactIconProps) => {
6
+ const sizeValue = resolveSize(size);
7
+
8
+ return (
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M18.7071 5.29289C19.0976 5.68342 19.0976 6.31658 18.7071 6.70711L6.70711 18.7071C6.31658 19.0976 5.68342 19.0976 5.29289 18.7071C4.90237 18.3166 4.90237 17.6834 5.29289 17.2929L17.2929 5.29289C17.6834 4.90237 18.3166 4.90237 18.7071 5.29289Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M5.29289 5.29289C5.68342 4.90237 6.31658 4.90237 6.70711 5.29289L18.7071 17.2929C19.0976 17.6834 19.0976 18.3166 18.7071 18.7071C18.3166 19.0976 17.6834 19.0976 17.2929 18.7071L5.29289 6.70711C4.90237 6.31658 4.90237 5.68342 5.29289 5.29289Z"
26
+ fill="currentColor"
27
+ />
28
+ </svg>
29
+ );
30
+ };
31
+
32
+ export default SvgCancel;
@@ -6,11 +6,17 @@ const SvgCheck = ({ size = 16, ...props }: ReactIconProps) => {
6
6
  const sizeValue = resolveSize(size);
7
7
 
8
8
  return (
9
- <svg width={sizeValue} height={sizeValue} viewBox="0 0 24 24" fill="none" {...props}>
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 16 16"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
10
16
  <path
11
17
  fillRule="evenodd"
12
18
  clipRule="evenodd"
13
- d="M20.7071 5.29289C21.0976 5.68342 21.0976 6.31658 20.7071 6.70711L9.70711 17.7071C9.31658 18.0976 8.68342 18.0976 8.29289 17.7071L3.29289 12.7071C2.90237 12.3166 2.90237 11.6834 3.29289 11.2929C3.68342 10.9024 4.31658 10.9024 4.70711 11.2929L9 15.5858L19.2929 5.29289C19.6834 4.90237 20.3166 4.90237 20.7071 5.29289Z"
19
+ d="M13.8047 3.52858C14.0651 3.78892 14.0651 4.21103 13.8047 4.47138L6.4714 11.8047C6.21106 12.0651 5.78894 12.0651 5.5286 11.8047L2.19526 8.47138C1.93491 8.21103 1.93491 7.78892 2.19526 7.52858C2.45561 7.26823 2.87772 7.26823 3.13807 7.52858L6 10.3905L12.8619 3.52858C13.1223 3.26823 13.5444 3.26823 13.8047 3.52858Z"
14
20
  fill="currentColor"
15
21
  />
16
22
  </svg>
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgEyeHidden = ({ size = 16, ...props }: ReactIconProps) => {
6
+ const sizeValue = resolveSize(size);
7
+
8
+ return (
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9907L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M20.7072 3.29289C21.0977 3.68342 21.0977 4.31658 20.7072 4.70711L4.70719 20.7071C4.31666 21.0976 3.6835 21.0976 3.29297 20.7071C2.90245 20.3166 2.90245 19.6834 3.29297 19.2929L19.293 3.29289C19.6835 2.90237 20.3167 2.90237 20.7072 3.29289Z"
32
+ fill="currentColor"
33
+ />
34
+ </svg>
35
+ );
36
+ };
37
+
38
+ export default SvgEyeHidden;
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgEyeVisible = ({ size = 16, ...props }: ReactIconProps) => {
6
+ const sizeValue = resolveSize(size);
7
+
8
+ return (
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2.02994 11.7575C2.61883 9.4019 5.4549 5 12.0001 5C18.5453 5 21.3813 9.4019 21.9702 11.7575L22.0285 11.9906L21.9745 12.2249C21.3836 14.7852 18.5247 19 12.0001 19C5.42044 19 2.6206 14.4091 2.03532 12.2631L1.96655 12.011L2.02994 11.7575ZM4.04308 11.9886C4.61202 13.6329 6.83349 17 12.0001 17C17.2425 17 19.4283 13.8356 19.9639 12.0101C19.4182 10.2828 17.2104 7 12.0001 7C6.81136 7 4.60029 10.2556 4.04308 11.9886Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M12.0001 10C10.8955 10 10.0001 10.8954 10.0001 12C10.0001 13.1046 10.8955 14 12.0001 14C13.1046 14 14.0001 13.1046 14.0001 12C14.0001 10.8954 13.1046 10 12.0001 10ZM8.00008 12C8.00008 9.79086 9.79094 8 12.0001 8C14.2092 8 16.0001 9.79086 16.0001 12C16.0001 14.2091 14.2092 16 12.0001 16C9.79094 16 8.00008 14.2091 8.00008 12Z"
26
+ fill="currentColor"
27
+ />
28
+ </svg>
29
+ );
30
+ };
31
+
32
+ export default SvgEyeVisible;
@@ -6,14 +6,18 @@ import type { ReactIconProps } from '../shared/types';
6
6
  * Auto-generated - do not edit manually
7
7
  */
8
8
  // Icon: arrow-left
9
- // Icon: arrow-up-right
9
+ // Icon: cancel
10
10
  // Icon: check
11
+ // Icon: eye-hidden
12
+ // Icon: eye-visible
11
13
  // Icon: icon-slot
14
+ // Icon: search
15
+ // Icon: user
12
16
 
13
17
  /**
14
18
  * Available icon names
15
19
  */
16
- export type IconName = 'arrow-left' | 'arrow-up-right' | 'check' | 'icon-slot';
20
+ export type IconName = 'arrow-left' | 'cancel' | 'check' | 'eye-hidden' | 'eye-visible' | 'icon-slot' | 'search' | 'user';
17
21
 
18
22
  /**
19
23
  * Props for the unified Icon component
@@ -35,12 +39,20 @@ function loadIcon(name: IconName): Promise<React.ComponentType<any>> {
35
39
  switch (name) {
36
40
  case 'arrow-left':
37
41
  return import('./ArrowLeft').then(m => m.default);
38
- case 'arrow-up-right':
39
- return import('./ArrowUpRight').then(m => m.default);
42
+ case 'cancel':
43
+ return import('./Cancel').then(m => m.default);
40
44
  case 'check':
41
45
  return import('./Check').then(m => m.default);
46
+ case 'eye-hidden':
47
+ return import('./EyeHidden').then(m => m.default);
48
+ case 'eye-visible':
49
+ return import('./EyeVisible').then(m => m.default);
42
50
  case 'icon-slot':
43
51
  return import('./IconSlot').then(m => m.default);
52
+ case 'search':
53
+ return import('./Search').then(m => m.default);
54
+ case 'user':
55
+ return import('./User').then(m => m.default);
44
56
  default:
45
57
  return Promise.reject(new Error(`Icon "${name}" not found`));
46
58
  }
@@ -6,9 +6,15 @@ const SvgIconSlot = ({ size = 16, ...props }: ReactIconProps) => {
6
6
  const sizeValue = resolveSize(size);
7
7
 
8
8
  return (
9
- <svg width={sizeValue} height={sizeValue} viewBox="0 0 15 15" fill="none" {...props}>
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
10
16
  <path
11
- d="M13.3333 7.33333C13.3333 4.01962 10.647 1.33333 7.33333 1.33333C4.01962 1.33333 1.33333 4.01962 1.33333 7.33333C1.33333 10.647 4.01962 13.3333 7.33333 13.3333C10.647 13.3333 13.3333 10.647 13.3333 7.33333ZM14.6667 7.33333C14.6667 11.3834 11.3834 14.6667 7.33333 14.6667C3.28325 14.6667 0 11.3834 0 7.33333C0 3.28325 3.28325 0 7.33333 0C11.3834 0 14.6667 3.28325 14.6667 7.33333Z"
17
+ d="M21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12Z"
12
18
  fill="currentColor"
13
19
  />
14
20
  </svg>
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgSearch = ({ size = 16, ...props }: ReactIconProps) => {
6
+ const sizeValue = resolveSize(size);
7
+
8
+ return (
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4ZM2 11C2 6.02944 6.02944 2 11 2C15.9706 2 20 6.02944 20 11C20 15.9706 15.9706 20 11 20C6.02944 20 2 15.9706 2 11Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M15.9929 15.9929C16.3834 15.6024 17.0166 15.6024 17.4071 15.9929L21.7071 20.2929C22.0976 20.6834 22.0976 21.3166 21.7071 21.7071C21.3166 22.0976 20.6834 22.0976 20.2929 21.7071L15.9929 17.4071C15.6024 17.0166 15.6024 16.3834 15.9929 15.9929Z"
26
+ fill="currentColor"
27
+ />
28
+ </svg>
29
+ );
30
+ };
31
+
32
+ export default SvgSearch;
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgUser = ({ size = 16, ...props }: ReactIconProps) => {
6
+ const sizeValue = resolveSize(size);
7
+
8
+ return (
9
+ <svg
10
+ width={sizeValue} height={sizeValue}
11
+ viewBox="0 0 24 24"
12
+ fill="none"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M5.46447 15.4645C6.40215 14.5268 7.67392 14 9 14H15C16.3261 14 17.5979 14.5268 18.5355 15.4645C19.4732 16.4021 20 17.6739 20 19V21C20 21.5523 19.5523 22 19 22C18.4477 22 18 21.5523 18 21V19C18 18.2044 17.6839 17.4413 17.1213 16.8787C16.5587 16.3161 15.7956 16 15 16H9C8.20435 16 7.44129 16.3161 6.87868 16.8787C6.31607 17.4413 6 18.2043 6 19V21C6 21.5523 5.55228 22 5 22C4.44772 22 4 21.5523 4 21V19C4 17.6739 4.52678 16.4021 5.46447 15.4645Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M12 4C10.3431 4 9 5.34315 9 7C9 8.65685 10.3431 10 12 10C13.6569 10 15 8.65685 15 7C15 5.34315 13.6569 4 12 4ZM7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7C17 9.76142 14.7614 12 12 12C9.23858 12 7 9.76142 7 7Z"
26
+ fill="currentColor"
27
+ />
28
+ </svg>
29
+ );
30
+ };
31
+
32
+ export default SvgUser;
@@ -1,8 +1,12 @@
1
1
  // Auto-generated exports
2
2
  export { default as ArrowLeft } from './ArrowLeft';
3
- export { default as ArrowUpRight } from './ArrowUpRight';
3
+ export { default as Cancel } from './Cancel';
4
4
  export { default as Check } from './Check';
5
+ export { default as EyeHidden } from './EyeHidden';
6
+ export { default as EyeVisible } from './EyeVisible';
5
7
  export { default as IconSlot } from './IconSlot';
8
+ export { default as Search } from './Search';
9
+ export { default as User } from './User';
6
10
 
7
11
  // Unified Icon component
8
12
  export { default as Icon } from './Icon';
@@ -1,4 +1,8 @@
1
1
  export { default as ArrowLeft } from './ArrowLeft';
2
- export { default as ArrowUpRight } from './ArrowUpRight';
2
+ export { default as Cancel } from './Cancel';
3
3
  export { default as Check } from './Check';
4
+ export { default as EyeHidden } from './EyeHidden';
5
+ export { default as EyeVisible } from './EyeVisible';
4
6
  export { default as IconSlot } from './IconSlot';
7
+ export { default as Search } from './Search';
8
+ export { default as User } from './User';
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import type { ReactIconProps } from '../shared/types';
3
- import { resolveSize } from '../shared/types';
4
-
5
- const SvgArrowUpRight = ({ size = 16, ...props }: ReactIconProps) => {
6
- const sizeValue = resolveSize(size);
7
-
8
- return (
9
- <svg width={sizeValue} height={sizeValue} viewBox="0 0 24 24" fill="none" {...props}>
10
- <path
11
- fillRule="evenodd"
12
- clipRule="evenodd"
13
- d="M6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V8H7C6.44772 8 6 7.55228 6 7Z"
14
- fill="currentColor"
15
- />
16
- <path
17
- fillRule="evenodd"
18
- clipRule="evenodd"
19
- d="M17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289Z"
20
- fill="currentColor"
21
- />
22
- </svg>
23
- );
24
- };
25
-
26
- export default SvgArrowUpRight;