huspy-icons 0.2.0 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huspy-icons",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Cross-platform icon package for Huspy - React and React Native compatible",
5
5
  "author": "Huspy",
6
6
  "license": "MIT",
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Available icon names in the HuspyIcons font
6
6
  */
7
- export type IconName = 'whatsapp' | 'user' | 'trash-2' | 'share' | 'search' | 'search-x' | 'rent' | 'properties-linear' | 'properties-filled' | 'plus' | 'payments' | 'note' | 'mortgage' | 'mail' | 'logout' | 'lock' | 'leads-linear' | 'leads-filled' | 'keys_01' | 'icon-slot' | 'home-linear' | 'home-filled' | 'help-circle' | 'file-spreadsheet' | 'file-lock' | 'file-key' | 'file-check' | 'eye-visible' | 'eye-hidden' | 'explore-linear' | 'explore-filled' | 'edit' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'chevron-down' | 'check' | 'cancel' | 'cancel-circle-solid' | 'bell' | 'arrow-up' | 'arrow-up-right' | 'arrow-up-left' | 'arrow-right' | 'arrow-left' | 'arrow-down' | 'arrow-down-right' | 'arrow-down-left' | 'alert-triangle';
7
+ export type IconName = 'whatsapp' | 'user' | 'trash-2' | 'share' | 'search' | 'search-x' | 'rent' | 'properties-linear' | 'properties-filled' | 'plus' | 'payments' | 'note' | 'mortgage' | 'mail' | 'logout' | 'lock' | 'leads-linear' | 'leads-filled' | 'keys_01' | 'icon-slot' | 'home-linear' | 'home-filled' | 'help-circle' | 'file-text' | 'file-spreadsheet' | 'file-lock' | 'file-key' | 'file-check' | 'eye-visible' | 'eye-hidden' | 'explore-linear' | 'explore-filled' | 'edit' | 'chevron-up' | 'chevron-right' | 'chevron-left' | 'chevron-down' | 'check' | 'cancel' | 'cancel-circle-solid' | 'bell' | 'bell-linear' | 'arrow-up' | 'arrow-up-right' | 'arrow-up-left' | 'arrow-up-down' | 'arrow-right' | 'arrow-left' | 'arrow-down' | 'arrow-down-right' | 'arrow-down-left' | 'alert-triangle';
8
8
 
9
9
  /**
10
10
  * Mapping of icon names to unicode codepoints
@@ -34,32 +34,35 @@ export const glyphMap: Record<IconName, number> = {
34
34
  "home-linear": 61717,
35
35
  "home-filled": 61718,
36
36
  "help-circle": 61719,
37
- "file-spreadsheet": 61720,
38
- "file-lock": 61721,
39
- "file-key": 61722,
40
- "file-check": 61723,
41
- "eye-visible": 61724,
42
- "eye-hidden": 61725,
43
- "explore-linear": 61726,
44
- "explore-filled": 61727,
45
- "edit": 61728,
46
- "chevron-up": 61729,
47
- "chevron-right": 61730,
48
- "chevron-left": 61731,
49
- "chevron-down": 61732,
50
- "check": 61733,
51
- "cancel": 61734,
52
- "cancel-circle-solid": 61735,
53
- "bell": 61736,
54
- "arrow-up": 61737,
55
- "arrow-up-right": 61738,
56
- "arrow-up-left": 61739,
57
- "arrow-right": 61740,
58
- "arrow-left": 61741,
59
- "arrow-down": 61742,
60
- "arrow-down-right": 61743,
61
- "arrow-down-left": 61744,
62
- "alert-triangle": 61745
37
+ "file-text": 61720,
38
+ "file-spreadsheet": 61721,
39
+ "file-lock": 61722,
40
+ "file-key": 61723,
41
+ "file-check": 61724,
42
+ "eye-visible": 61725,
43
+ "eye-hidden": 61726,
44
+ "explore-linear": 61727,
45
+ "explore-filled": 61728,
46
+ "edit": 61729,
47
+ "chevron-up": 61730,
48
+ "chevron-right": 61731,
49
+ "chevron-left": 61732,
50
+ "chevron-down": 61733,
51
+ "check": 61734,
52
+ "cancel": 61735,
53
+ "cancel-circle-solid": 61736,
54
+ "bell": 61737,
55
+ "bell-linear": 61738,
56
+ "arrow-up": 61739,
57
+ "arrow-up-right": 61740,
58
+ "arrow-up-left": 61741,
59
+ "arrow-up-down": 61742,
60
+ "arrow-right": 61743,
61
+ "arrow-left": 61744,
62
+ "arrow-down": 61745,
63
+ "arrow-down-right": 61746,
64
+ "arrow-down-left": 61747,
65
+ "alert-triangle": 61748
63
66
  };
64
67
 
65
68
  /**
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgArrowUpDown = ({ 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="M12.2929 15.2929C12.6834 14.9024 13.3166 14.9024 13.7071 15.2929L17 18.5858L20.2929 15.2929C20.6834 14.9024 21.3166 14.9024 21.7071 15.2929C22.0976 15.6834 22.0976 16.3166 21.7071 16.7071L17.7071 20.7071C17.3166 21.0976 16.6834 21.0976 16.2929 20.7071L12.2929 16.7071C11.9024 16.3166 11.9024 15.6834 12.2929 15.2929Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M17 3C17.5523 3 18 3.44772 18 4V20C18 20.5523 17.5523 21 17 21C16.4477 21 16 20.5523 16 20V4C16 3.44772 16.4477 3 17 3Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M6.29289 3.29289C6.68342 2.90237 7.31658 2.90237 7.70711 3.29289L11.7071 7.29289C12.0976 7.68342 12.0976 8.31658 11.7071 8.70711C11.3166 9.09763 10.6834 9.09763 10.2929 8.70711L7 5.41421L3.70711 8.70711C3.31658 9.09763 2.68342 9.09763 2.29289 8.70711C1.90237 8.31658 1.90237 7.68342 2.29289 7.29289L6.29289 3.29289Z"
32
+ fill="currentColor"
33
+ />
34
+ <path
35
+ fillRule="evenodd"
36
+ clipRule="evenodd"
37
+ d="M7 3C7.55228 3 8 3.44772 8 4V20C8 20.5523 7.55228 21 7 21C6.44772 21 6 20.5523 6 20V4C6 3.44772 6.44772 3 7 3Z"
38
+ fill="currentColor"
39
+ />
40
+ </svg>
41
+ );
42
+ };
43
+
44
+ export default SvgArrowUpDown;
@@ -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 SvgBellLinear = ({ 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="M12.0001 3C10.674 3 9.40223 3.52678 8.46454 4.46447C7.52686 5.40215 7.00008 6.67392 7.00008 8C7.00008 11.6473 6.21715 14.0654 5.37797 15.6039C5.30188 15.7434 5.22549 15.8753 5.1494 16H18.8508C18.7747 15.8753 18.6983 15.7434 18.6222 15.6039C17.783 14.0654 17.0001 11.6473 17.0001 8C17.0001 6.67392 16.4733 5.40215 15.5356 4.46447C14.5979 3.52678 13.3262 3 12.0001 3ZM21.5664 16.1758C21.5657 16.1753 21.5647 16.1746 21.5635 16.1737C21.5558 16.168 21.538 16.1544 21.5114 16.1322C21.4581 16.0878 21.3698 16.0091 21.2573 15.8904C21.0329 15.6535 20.7098 15.2544 20.378 14.6461C19.7171 13.4346 19.0001 11.3527 19.0001 8C19.0001 6.14349 18.2626 4.36301 16.9498 3.05025C15.6371 1.7375 13.8566 1 12.0001 1C10.1436 1 8.36309 1.7375 7.05033 3.05025C5.73758 4.36301 5.00008 6.14348 5.00008 8C5.00008 11.3527 4.28301 13.4346 3.62218 14.6461C3.29039 15.2544 2.9673 15.6535 2.74288 15.8904C2.6304 16.0091 2.54202 16.0878 2.4888 16.1322C2.46218 16.1544 2.44432 16.168 2.43663 16.1737C2.43542 16.1746 2.43447 16.1753 2.43377 16.1758C2.07528 16.4221 1.91664 16.8725 2.04299 17.2898C2.17068 17.7115 2.55941 18 3.00008 18H21.0001C21.4407 18 21.8295 17.7115 21.9572 17.2898C22.0835 16.8725 21.9249 16.4221 21.5664 16.1758Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M9.81829 20.1237C10.3023 19.8576 10.9103 20.0343 11.1764 20.5182C11.2575 20.6657 11.3767 20.7887 11.5216 20.8744C11.6665 20.9601 11.8317 21.0053 12.0001 21.0053C12.1684 21.0053 12.3337 20.9601 12.4786 20.8744C12.6235 20.7887 12.7427 20.6657 12.8238 20.5182C13.0899 20.0343 13.6979 19.8576 14.1819 20.1237C14.6658 20.3898 14.8424 20.9978 14.5764 21.4818C14.3227 21.9432 13.9498 22.3279 13.4966 22.5959C13.0434 22.8639 12.5266 23.0053 12.0001 23.0053C11.4736 23.0053 10.9567 22.8639 10.5035 22.5959C10.0504 22.3279 9.67745 21.9432 9.42379 21.4818C9.15771 20.9978 9.33433 20.3898 9.81829 20.1237Z"
26
+ fill="currentColor"
27
+ />
28
+ </svg>
29
+ );
30
+ };
31
+
32
+ export default SvgBellLinear;
@@ -0,0 +1,50 @@
1
+ import * as React from 'react';
2
+ import type { ReactIconProps } from '../shared/types';
3
+ import { resolveSize } from '../shared/types';
4
+
5
+ const SvgFileText = ({ 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="M3.87868 1.87868C4.44129 1.31607 5.20435 1 6 1H14.5C14.7652 1 15.0196 1.10536 15.2071 1.29289L20.7071 6.79289C20.8946 6.98043 21 7.23478 21 7.5V20C21 20.7957 20.6839 21.5587 20.1213 22.1213C19.5587 22.6839 18.7957 23 18 23H6C5.20435 23 4.44129 22.6839 3.87868 22.1213C3.31607 21.5587 3 20.7957 3 20V4C3 3.20435 3.31607 2.44129 3.87868 1.87868ZM6 3C5.73478 3 5.48043 3.10536 5.29289 3.29289C5.10536 3.48043 5 3.73478 5 4V20C5 20.2652 5.10536 20.5196 5.29289 20.7071C5.48043 20.8946 5.73478 21 6 21H18C18.2652 21 18.5196 20.8946 18.7071 20.7071C18.8946 20.5196 19 20.2652 19 20V7.91421L14.0858 3H6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M14 1C14.5523 1 15 1.44772 15 2V7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H14C13.4477 9 13 8.55228 13 8V2C13 1.44772 13.4477 1 14 1Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13Z"
32
+ fill="currentColor"
33
+ />
34
+ <path
35
+ fillRule="evenodd"
36
+ clipRule="evenodd"
37
+ d="M7 17C7 16.4477 7.44772 16 8 16H16C16.5523 16 17 16.4477 17 17C17 17.5523 16.5523 18 16 18H8C7.44772 18 7 17.5523 7 17Z"
38
+ fill="currentColor"
39
+ />
40
+ <path
41
+ fillRule="evenodd"
42
+ clipRule="evenodd"
43
+ d="M7 9C7 8.44772 7.44772 8 8 8H10C10.5523 8 11 8.44772 11 9C11 9.55228 10.5523 10 10 10H8C7.44772 10 7 9.55228 7 9Z"
44
+ fill="currentColor"
45
+ />
46
+ </svg>
47
+ );
48
+ };
49
+
50
+ export default SvgFileText;
@@ -12,9 +12,11 @@ import type { ReactIconProps } from '../shared/types';
12
12
  // Icon: arrow-left
13
13
  // Icon: arrow-right
14
14
  // Icon: arrow-up
15
+ // Icon: arrow-up-down
15
16
  // Icon: arrow-up-left
16
17
  // Icon: arrow-up-right
17
18
  // Icon: bell
19
+ // Icon: bell-linear
18
20
  // Icon: cancel
19
21
  // Icon: cancel-circle-solid
20
22
  // Icon: check
@@ -31,6 +33,7 @@ import type { ReactIconProps } from '../shared/types';
31
33
  // Icon: file-key
32
34
  // Icon: file-lock
33
35
  // Icon: file-spreadsheet
36
+ // Icon: file-text
34
37
  // Icon: help-circle
35
38
  // Icon: home-filled
36
39
  // Icon: home-linear
@@ -58,7 +61,7 @@ import type { ReactIconProps } from '../shared/types';
58
61
  /**
59
62
  * Available icon names
60
63
  */
61
- export type IconName = 'alert-triangle' | 'arrow-down' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-left' | 'arrow-up-right' | 'bell' | 'cancel' | 'cancel-circle-solid' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'edit' | 'explore-filled' | 'explore-linear' | 'eye-hidden' | 'eye-visible' | 'file-check' | 'file-key' | 'file-lock' | 'file-spreadsheet' | 'help-circle' | 'home-filled' | 'home-linear' | 'icon-slot' | 'keys01' | 'leads-filled' | 'leads-linear' | 'lock' | 'logout' | 'mail' | 'mortgage' | 'note' | 'payments' | 'plus' | 'properties-filled' | 'properties-linear' | 'rent' | 'search' | 'search-x' | 'share' | 'trash2' | 'user' | 'whatsapp';
64
+ export type IconName = 'alert-triangle' | 'arrow-down' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-down' | 'arrow-up-left' | 'arrow-up-right' | 'bell' | 'bell-linear' | 'cancel' | 'cancel-circle-solid' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'edit' | 'explore-filled' | 'explore-linear' | 'eye-hidden' | 'eye-visible' | 'file-check' | 'file-key' | 'file-lock' | 'file-spreadsheet' | 'file-text' | 'help-circle' | 'home-filled' | 'home-linear' | 'icon-slot' | 'keys01' | 'leads-filled' | 'leads-linear' | 'lock' | 'logout' | 'mail' | 'mortgage' | 'note' | 'payments' | 'plus' | 'properties-filled' | 'properties-linear' | 'rent' | 'search' | 'search-x' | 'share' | 'trash2' | 'user' | 'whatsapp';
62
65
 
63
66
  /**
64
67
  * Props for the unified Icon component
@@ -92,12 +95,16 @@ function loadIcon(name: IconName): Promise<React.ComponentType<any>> {
92
95
  return import('./ArrowRight').then(m => m.default);
93
96
  case 'arrow-up':
94
97
  return import('./ArrowUp').then(m => m.default);
98
+ case 'arrow-up-down':
99
+ return import('./ArrowUpDown').then(m => m.default);
95
100
  case 'arrow-up-left':
96
101
  return import('./ArrowUpLeft').then(m => m.default);
97
102
  case 'arrow-up-right':
98
103
  return import('./ArrowUpRight').then(m => m.default);
99
104
  case 'bell':
100
105
  return import('./Bell').then(m => m.default);
106
+ case 'bell-linear':
107
+ return import('./BellLinear').then(m => m.default);
101
108
  case 'cancel':
102
109
  return import('./Cancel').then(m => m.default);
103
110
  case 'cancel-circle-solid':
@@ -130,6 +137,8 @@ function loadIcon(name: IconName): Promise<React.ComponentType<any>> {
130
137
  return import('./FileLock').then(m => m.default);
131
138
  case 'file-spreadsheet':
132
139
  return import('./FileSpreadsheet').then(m => m.default);
140
+ case 'file-text':
141
+ return import('./FileText').then(m => m.default);
133
142
  case 'help-circle':
134
143
  return import('./HelpCircle').then(m => m.default);
135
144
  case 'home-filled':
@@ -6,9 +6,11 @@ export { default as ArrowDownRight } from './ArrowDownRight';
6
6
  export { default as ArrowLeft } from './ArrowLeft';
7
7
  export { default as ArrowRight } from './ArrowRight';
8
8
  export { default as ArrowUp } from './ArrowUp';
9
+ export { default as ArrowUpDown } from './ArrowUpDown';
9
10
  export { default as ArrowUpLeft } from './ArrowUpLeft';
10
11
  export { default as ArrowUpRight } from './ArrowUpRight';
11
12
  export { default as Bell } from './Bell';
13
+ export { default as BellLinear } from './BellLinear';
12
14
  export { default as Cancel } from './Cancel';
13
15
  export { default as CancelCircleSolid } from './CancelCircleSolid';
14
16
  export { default as Check } from './Check';
@@ -25,6 +27,7 @@ export { default as FileCheck } from './FileCheck';
25
27
  export { default as FileKey } from './FileKey';
26
28
  export { default as FileLock } from './FileLock';
27
29
  export { default as FileSpreadsheet } from './FileSpreadsheet';
30
+ export { default as FileText } from './FileText';
28
31
  export { default as HelpCircle } from './HelpCircle';
29
32
  export { default as HomeFilled } from './HomeFilled';
30
33
  export { default as HomeLinear } from './HomeLinear';
@@ -4,9 +4,11 @@ export { default as ArrowDownRight } from './ArrowDownRight';
4
4
  export { default as ArrowDown } from './ArrowDown';
5
5
  export { default as ArrowLeft } from './ArrowLeft';
6
6
  export { default as ArrowRight } from './ArrowRight';
7
+ export { default as ArrowUpDown } from './ArrowUpDown';
7
8
  export { default as ArrowUpLeft } from './ArrowUpLeft';
8
9
  export { default as ArrowUpRight } from './ArrowUpRight';
9
10
  export { default as ArrowUp } from './ArrowUp';
11
+ export { default as BellLinear } from './BellLinear';
10
12
  export { default as Bell } from './Bell';
11
13
  export { default as CancelCircleSolid } from './CancelCircleSolid';
12
14
  export { default as Cancel } from './Cancel';
@@ -24,6 +26,7 @@ export { default as FileCheck } from './FileCheck';
24
26
  export { default as FileKey } from './FileKey';
25
27
  export { default as FileLock } from './FileLock';
26
28
  export { default as FileSpreadsheet } from './FileSpreadsheet';
29
+ export { default as FileText } from './FileText';
27
30
  export { default as HelpCircle } from './HelpCircle';
28
31
  export { default as HomeFilled } from './HomeFilled';
29
32
  export { default as HomeLinear } from './HomeLinear';