huspy-icons 0.2.0 → 0.2.1
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/fonts/HuspyIcons.css +13 -10
- package/dist/fonts/HuspyIcons.eot +0 -0
- package/dist/fonts/HuspyIcons.json +7 -6
- package/dist/fonts/HuspyIcons.ts +9 -6
- package/dist/fonts/HuspyIcons.ttf +0 -0
- package/dist/fonts/HuspyIcons.woff +0 -0
- package/dist/fonts/HuspyIcons.woff2 +0 -0
- package/dist/native/index.d.ts +1 -1
- package/dist/native/index.js +7 -6
- package/dist/native/index.js.map +1 -1
- package/dist/react/index.d.mts +4 -2
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +307 -238
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +265 -196
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/native/glyphMap.ts +8 -7
- package/src/react/ArrowUpDown.tsx +44 -0
- package/src/react/Icon.tsx +4 -1
- package/src/react/index.ts +1 -0
- package/src/react/index.tsx +1 -0
package/package.json
CHANGED
package/src/native/glyphMap.ts
CHANGED
|
@@ -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-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-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
|
|
@@ -54,12 +54,13 @@ export const glyphMap: Record<IconName, number> = {
|
|
|
54
54
|
"arrow-up": 61737,
|
|
55
55
|
"arrow-up-right": 61738,
|
|
56
56
|
"arrow-up-left": 61739,
|
|
57
|
-
"arrow-
|
|
58
|
-
"arrow-
|
|
59
|
-
"arrow-
|
|
60
|
-
"arrow-down
|
|
61
|
-
"arrow-down-
|
|
62
|
-
"
|
|
57
|
+
"arrow-up-down": 61740,
|
|
58
|
+
"arrow-right": 61741,
|
|
59
|
+
"arrow-left": 61742,
|
|
60
|
+
"arrow-down": 61743,
|
|
61
|
+
"arrow-down-right": 61744,
|
|
62
|
+
"arrow-down-left": 61745,
|
|
63
|
+
"alert-triangle": 61746
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
/**
|
|
@@ -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;
|
package/src/react/Icon.tsx
CHANGED
|
@@ -12,6 +12,7 @@ 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
|
|
@@ -58,7 +59,7 @@ import type { ReactIconProps } from '../shared/types';
|
|
|
58
59
|
/**
|
|
59
60
|
* Available icon names
|
|
60
61
|
*/
|
|
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';
|
|
62
|
+
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' | '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';
|
|
62
63
|
|
|
63
64
|
/**
|
|
64
65
|
* Props for the unified Icon component
|
|
@@ -92,6 +93,8 @@ function loadIcon(name: IconName): Promise<React.ComponentType<any>> {
|
|
|
92
93
|
return import('./ArrowRight').then(m => m.default);
|
|
93
94
|
case 'arrow-up':
|
|
94
95
|
return import('./ArrowUp').then(m => m.default);
|
|
96
|
+
case 'arrow-up-down':
|
|
97
|
+
return import('./ArrowUpDown').then(m => m.default);
|
|
95
98
|
case 'arrow-up-left':
|
|
96
99
|
return import('./ArrowUpLeft').then(m => m.default);
|
|
97
100
|
case 'arrow-up-right':
|
package/src/react/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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';
|
package/src/react/index.tsx
CHANGED
|
@@ -4,6 +4,7 @@ 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';
|