@hive-ui/icons 0.4.0 → 0.5.0
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/CutIcon.d.mts +18 -0
- package/dist/CutIcon.mjs +36 -0
- package/dist/PasteIcon.d.mts +18 -0
- package/dist/PasteIcon.mjs +36 -0
- package/package.json +6 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IconWrapperProps } from "./helpers/IconWrapper.mjs";
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
import * as _$_hive_ui_box0 from "@hive-ui/box";
|
|
4
|
+
import * as _$_hive_ui_style_props0 from "@hive-ui/style-props";
|
|
5
|
+
|
|
6
|
+
//#region src/CutIcon.d.ts
|
|
7
|
+
type CutIconProps = IconWrapperProps & {
|
|
8
|
+
title?: string;
|
|
9
|
+
decorative: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const CutIcon: _$react.ForwardRefExoticComponent<Pick<_$_hive_ui_box0.BoxProps<"span">, "as" | "children" | "color" | "display" | "element"> & {
|
|
12
|
+
size?: _$_hive_ui_style_props0.IconSize;
|
|
13
|
+
} & {
|
|
14
|
+
title?: string;
|
|
15
|
+
decorative: boolean;
|
|
16
|
+
} & _$react.RefAttributes<HTMLElement>>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CutIcon, CutIconProps };
|
package/dist/CutIcon.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IconWrapper } from "./helpers/IconWrapper.mjs";
|
|
2
|
+
import { forwardRef, useId } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/CutIcon.tsx
|
|
5
|
+
const CutIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
|
|
6
|
+
const titleId = `CutIcon-${useId()}`;
|
|
7
|
+
if (!decorative && title == null) throw new Error("[CutIcon]: Missing a title for non-decorative icon.");
|
|
8
|
+
return /* @__PURE__ */ jsx(IconWrapper, {
|
|
9
|
+
as,
|
|
10
|
+
display,
|
|
11
|
+
element,
|
|
12
|
+
size,
|
|
13
|
+
color,
|
|
14
|
+
ref,
|
|
15
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
16
|
+
role: "img",
|
|
17
|
+
"aria-hidden": decorative,
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: "100%",
|
|
21
|
+
viewBox: "0 0 20 20",
|
|
22
|
+
"aria-labelledby": titleId,
|
|
23
|
+
children: [title ? /* @__PURE__ */ jsx("title", {
|
|
24
|
+
id: titleId,
|
|
25
|
+
children: title
|
|
26
|
+
}) : null, /* @__PURE__ */ jsx("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
d: "M 17.695312,3.453125 C 17.164213,3.3160082 16.583229,3.3703997 16.068359,3.6464844 a 0.50005,0.50005 0 0 0 -0.01758,0.00977 L 3.4296875,11.095703 A 0.5,0.5 0 0 0 3.2539063,11.78125 0.5,0.5 0 0 0 3.9375,11.957031 L 16.542969,4.5273437 c 0.399265,-0.2132693 0.819472,-0.1211234 1.183593,0.09375 l -7.470703,4.4492188 a 0.5,0.5 0 0 0 -0.173828,0.6855469 0.5,0.5 0 0 0 0.685547,0.1738281 L 18.859375,5.1113281 A 0.50005,0.50005 0 0 0 19.023437,4.4101562 C 18.706564,3.9193357 18.226412,3.5902418 17.695312,3.453125 Z M 3.1660156,10.978516 c -0.8038194,0 -1.6137059,0.264917 -2.2363281,0.818359 -0.62262221,0.553442 -1.03320312,1.404514 -1.03320312,2.453125 -10e-9,1.048611 0.41058092,1.89773 1.03320312,2.451172 0.6226222,0.553442 1.4325087,0.818359 2.2363281,0.818359 0.8038194,0 1.6156591,-0.264917 2.2382813,-0.818359 C 6.0269191,16.14773 6.4375,15.298611 6.4375,14.25 6.4375,13.201389 6.0269191,12.350317 5.4042969,11.796875 4.7816747,11.243433 3.969835,10.978516 3.1660156,10.978516 Z m 0,1 c 0.5815973,0 1.1577785,0.196237 1.5742188,0.566406 C 5.1566747,12.915091 5.4375,13.451389 5.4375,14.25 c 0,0.798611 -0.2808253,1.332956 -0.6972656,1.703125 -0.4164403,0.370169 -0.9926215,0.566406 -1.5742188,0.566406 -0.5815972,0 -1.1558253,-0.196237 -1.5722656,-0.566406 C 1.1773097,15.582956 0.89648437,15.048611 0.89648438,14.25 c 0,-0.798611 0.28082532,-1.334909 0.69726562,-1.705078 0.4164403,-0.370169 0.9906684,-0.566406 1.5722656,-0.566406 z M 3.9375,7.0410156 A 0.5,0.5 0 0 0 3.2539063,7.21875 0.5,0.5 0 0 0 3.4296875,7.9023437 L 16.050781,15.341797 a 0.50005,0.50005 0 0 0 0.01758,0.01172 c 1.029709,0.5516 2.321083,0.217456 2.955078,-0.763672 A 0.50005,0.50005 0 0 0 18.859375,13.888672 L 9.0820313,8.0664063 A 0.5,0.5 0 0 0 8.3964844,8.2402344 0.5,0.5 0 0 0 8.5703125,8.9257813 l 9.1562495,5.4531247 c -0.36409,0.214496 -0.784465,0.30478 -1.183593,0.0918 h -0.002 z m -0.7714844,-5.5625 c -0.8038194,0 -1.6137059,0.2649177 -2.2363281,0.8183594 C 0.30706529,2.8503167 -0.10351562,3.7013892 -0.10351562,4.75 c -10e-9,1.0486108 0.41058092,1.8977302 1.03320312,2.4511719 0.6226222,0.5534417 1.4325087,0.8183594 2.2363281,0.8183594 0.8038194,0 1.6156591,-0.2649177 2.2382813,-0.8183594 C 6.0269191,6.6477302 6.4375,5.7986108 6.4375,4.75 6.4375,3.7013892 6.0269191,2.8503167 5.4042969,2.296875 4.7816747,1.7434333 3.969835,1.4785156 3.1660156,1.4785156 Z m 0,1 c 0.5815973,0 1.1577785,0.1962373 1.5742188,0.5664063 C 5.1566747,3.4150909 5.4375,3.9513893 5.4375,4.75 5.4375,5.5486107 5.1566747,6.082956 4.7402344,6.453125 4.3237941,6.823294 3.7476129,7.0195312 3.1660156,7.0195312 2.5844184,7.0195312 2.0101903,6.823294 1.59375,6.453125 1.1773097,6.082956 0.89648437,5.5486107 0.89648438,4.75 0.89648438,3.9513893 1.1773097,3.4150909 1.59375,3.0449219 2.0101903,2.6747529 2.5844184,2.4785156 3.1660156,2.4785156 Z"
|
|
30
|
+
})]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
CutIcon.displayName = "CutIcon";
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CutIcon };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IconWrapperProps } from "./helpers/IconWrapper.mjs";
|
|
2
|
+
import * as _$react from "react";
|
|
3
|
+
import * as _$_hive_ui_box0 from "@hive-ui/box";
|
|
4
|
+
import * as _$_hive_ui_style_props0 from "@hive-ui/style-props";
|
|
5
|
+
|
|
6
|
+
//#region src/PasteIcon.d.ts
|
|
7
|
+
type PasteIconProps = IconWrapperProps & {
|
|
8
|
+
title?: string;
|
|
9
|
+
decorative: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const PasteIcon: _$react.ForwardRefExoticComponent<Pick<_$_hive_ui_box0.BoxProps<"span">, "as" | "children" | "color" | "display" | "element"> & {
|
|
12
|
+
size?: _$_hive_ui_style_props0.IconSize;
|
|
13
|
+
} & {
|
|
14
|
+
title?: string;
|
|
15
|
+
decorative: boolean;
|
|
16
|
+
} & _$react.RefAttributes<HTMLElement>>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { PasteIcon, PasteIconProps };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IconWrapper } from "./helpers/IconWrapper.mjs";
|
|
2
|
+
import { forwardRef, useId } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/PasteIcon.tsx
|
|
5
|
+
const PasteIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
|
|
6
|
+
const titleId = `PasteIcon-${useId()}`;
|
|
7
|
+
if (!decorative && title == null) throw new Error("[PasteIcon]: Missing a title for non-decorative icon.");
|
|
8
|
+
return /* @__PURE__ */ jsx(IconWrapper, {
|
|
9
|
+
as,
|
|
10
|
+
display,
|
|
11
|
+
element,
|
|
12
|
+
size,
|
|
13
|
+
color,
|
|
14
|
+
ref,
|
|
15
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
16
|
+
role: "img",
|
|
17
|
+
"aria-hidden": decorative,
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: "100%",
|
|
21
|
+
viewBox: "0 0 20 20",
|
|
22
|
+
"aria-labelledby": titleId,
|
|
23
|
+
children: [title ? /* @__PURE__ */ jsx("title", {
|
|
24
|
+
id: titleId,
|
|
25
|
+
children: title
|
|
26
|
+
}) : null, /* @__PURE__ */ jsx("path", {
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
d: "m 17.292969,6.2246094 c -0.48302,-0.031464 -1.006649,0.1489497 -1.425781,0.5546875 a 0.50005,0.50005 0 0 0 -0.0059,0.00586 L 11.125,11.521484 a 0.50005,0.50005 0 0 0 -0.126953,0.216797 l -0.791016,2.769532 a 0.50005,0.50005 0 0 0 0.617188,0.61914 l 2.771484,-0.792969 A 0.50005,0.50005 0 0 0 13.8125,14.207031 l 4.734375,-4.7343747 a 0.50005,0.50005 0 0 0 0.0059,-0.00586 C 18.958472,9.0476647 19.138886,8.5240349 19.107422,8.0410156 19.075958,7.5579964 18.854145,7.1236762 18.53125,6.8007812 18.208355,6.4778863 17.775988,6.2560731 17.292969,6.2246094 Z m -0.06445,0.9980468 c 0.211305,0.013764 0.429076,0.1185297 0.595703,0.2851563 0.166626,0.1666266 0.271392,0.3863512 0.285156,0.5976563 0.01376,0.211305 -0.04257,0.4255114 -0.275391,0.6660156 l -4.636718,4.6367186 -1.783203,0.509766 0.509765,-1.78125 4.638672,-4.6386721 c 0.240504,-0.2328183 0.454711,-0.289155 0.666016,-0.2753907 z M 2.7714844,13.353516 a 0.5,0.5 0 0 0 -0.5,0.5 0.5,0.5 0 0 0 0.5,0.5 h 6.3183594 a 0.5,0.5 0 0 0 0.5,-0.5 0.5,0.5 0 0 0 -0.5,-0.5 z m 0,-3.166016 a 0.5,0.5 0 0 0 -0.5,0.5 0.5,0.5 0 0 0 0.5,0.5 h 7.4941406 a 0.5,0.5 0 0 0 0.5,-0.5 0.5,0.5 0 0 0 -0.5,-0.5 z m 0,-3.1679688 a 0.5,0.5 0 0 0 -0.5,0.5 0.5,0.5 0 0 0 0.5,0.5000001 h 9.4999996 a 0.5,0.5 0 0 0 0.5,-0.5000001 0.5,0.5 0 0 0 -0.5,-0.5 z M 4.3535156,1.4785156 C 3.6460701,1.4785156 3.0625,2.0640389 3.0625,2.7714844 V 3.5625 c 0,0.7074455 0.5835701,1.2910156 1.2910156,1.2910156 H 10.6875 c 0.707445,0 1.291016,-0.5835701 1.291016,-1.2910156 V 2.7714844 c 0,-0.7074455 -0.583571,-1.2929688 -1.291016,-1.2929688 H 8.640625 a 0.5,0.5 0 0 0 -0.5,0.5 0.5,0.5 0 0 0 0.5,0.5 H 10.6875 c 0.167005,0 0.291016,0.1259634 0.291016,0.2929688 V 3.5625 c 0,0.1670054 -0.124011,0.2910156 -0.291016,0.2910156 H 4.3535156 C 4.1865103,3.8535156 4.0625,3.7295054 4.0625,3.5625 V 2.7714844 c 0,-0.1670054 0.1240103,-0.2929688 0.2910156,-0.2929688 h 2.046875 a 0.5,0.5 0 0 0 0.5,-0.5 0.5,0.5 0 0 0 -0.5,-0.5 z m 3.1679688,-1.58398435 c -0.4079861,0 -0.8226903,0.13427518 -1.1484375,0.42382813 C 6.0472997,0.60791232 5.8339844,1.061198 5.8339844,1.5820312 c 0,0.5208333 0.2133153,0.9760721 0.5390625,1.2656251 0.3257472,0.2895529 0.7404514,0.421875 1.1484375,0.421875 0.407986,0 0.8226903,-0.1323221 1.1484375,-0.421875 C 8.9956691,2.5581033 9.2089844,2.1028645 9.2089844,1.5820312 9.2089844,1.061198 8.9956691,0.60791232 8.6699219,0.31835938 8.3441747,0.02880643 7.9294704,-0.10546875 7.5214844,-0.10546875 Z m 0,1 c 0.1857639,0 0.3648097,0.0655948 0.484375,0.17187495 0.1195653,0.1062803 0.203125,0.2447919 0.203125,0.515625 0,0.2708332 -0.08356,0.411298 -0.203125,0.5175782 -0.1195653,0.1062802 -0.2986111,0.1699219 -0.484375,0.1699219 -0.185764,0 -0.3648097,-0.063642 -0.484375,-0.1699219 -0.1195653,-0.1062802 -0.203125,-0.246745 -0.203125,-0.5175782 0,-0.2708331 0.08356,-0.4093447 0.203125,-0.515625 0.1195653,-0.10628017 0.298611,-0.17187495 0.484375,-0.17187495 z M 11.478516,2.2714844 a 0.5,0.5 0 0 0 -0.5,0.5 0.5,0.5 0 0 0 0.5,0.5 h 2.375 c 0.167005,0 0.292968,0.1240102 0.292968,0.2910156 v 2.7714844 a 0.5,0.5 0 0 0 0.5,0.5 0.5,0.5 0 0 0 0.5,-0.5 V 3.5625 c 0,-0.7074455 -0.585523,-1.2910156 -1.292968,-1.2910156 z m -10.291016,0 c -0.70744548,0 -1.29101562,0.5835701 -1.29101562,1.2910156 v 14.25 c -10e-9,0.707445 0.58357014,1.291016 1.29101562,1.291016 h 12.666016 c 0.707445,0 1.292968,-0.583571 1.292968,-1.291016 v -2.771484 a 0.5,0.5 0 0 0 -0.5,-0.5 0.5,0.5 0 0 0 -0.5,0.5 V 17.8125 c 0,0.167005 -0.125963,0.291016 -0.292968,0.291016 H 1.1875 c -0.1670054,0 -0.29101563,-0.124011 -0.29101562,-0.291016 v -14.25 c 0,-0.1670054 0.12401022,-0.2910156 0.29101562,-0.2910156 h 2.375 a 0.5,0.5 0 0 0 0.5,-0.5 0.5,0.5 0 0 0 -0.5,-0.5 z"
|
|
30
|
+
})]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
PasteIcon.displayName = "PasteIcon";
|
|
35
|
+
//#endregion
|
|
36
|
+
export { PasteIcon };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hive-ui/icons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Icons provide consistent visual symbols for actions, objects, and statuses. Each icon supports accessible or decorative usage, token colours, and standard sizes.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"./CloseIcon": "./dist/CloseIcon.mjs",
|
|
32
32
|
"./CodeIcon": "./dist/CodeIcon.mjs",
|
|
33
33
|
"./CopyIcon": "./dist/CopyIcon.mjs",
|
|
34
|
+
"./CutIcon": "./dist/CutIcon.mjs",
|
|
34
35
|
"./DarkModeIcon": "./dist/DarkModeIcon.mjs",
|
|
35
36
|
"./DeleteIcon": "./dist/DeleteIcon.mjs",
|
|
36
37
|
"./DirectoryIcon": "./dist/DirectoryIcon.mjs",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"./NotificationIcon": "./dist/NotificationIcon.mjs",
|
|
61
62
|
"./NotificationOrnamentIcon": "./dist/NotificationOrnamentIcon.mjs",
|
|
62
63
|
"./OrderedListIcon": "./dist/OrderedListIcon.mjs",
|
|
64
|
+
"./PasteIcon": "./dist/PasteIcon.mjs",
|
|
63
65
|
"./PinIcon": "./dist/PinIcon.mjs",
|
|
64
66
|
"./PlusIcon": "./dist/PlusIcon.mjs",
|
|
65
67
|
"./ProductSwitcherIcon": "./dist/ProductSwitcherIcon.mjs",
|
|
@@ -93,8 +95,8 @@
|
|
|
93
95
|
"prepublishOnly": "vp run build"
|
|
94
96
|
},
|
|
95
97
|
"dependencies": {
|
|
96
|
-
"@hive-ui/box": "^0.
|
|
97
|
-
"@hive-ui/style-props": "^0.
|
|
98
|
+
"@hive-ui/box": "^0.5.0",
|
|
99
|
+
"@hive-ui/style-props": "^0.5.0"
|
|
98
100
|
},
|
|
99
101
|
"devDependencies": {
|
|
100
102
|
"@types/node": "^25.6.2",
|