@hive-ui/icons 0.2.4 → 0.3.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.
|
@@ -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/CheckboxCheckIcon.d.ts
|
|
7
|
+
type CheckboxCheckIconProps = IconWrapperProps & {
|
|
8
|
+
title?: string;
|
|
9
|
+
decorative: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const CheckboxCheckIcon: _$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 { CheckboxCheckIcon, CheckboxCheckIconProps };
|
|
@@ -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/CheckboxCheckIcon.tsx
|
|
5
|
+
const CheckboxCheckIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
|
|
6
|
+
const titleId = `CheckboxCheckIcon-${useId()}`;
|
|
7
|
+
if (!decorative && title == null) throw new Error("[CheckboxCheckIcon]: 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
|
+
width: "100%",
|
|
19
|
+
height: "100%",
|
|
20
|
+
viewBox: "0 0 20 20",
|
|
21
|
+
fill: "none",
|
|
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: "M15.59 5.916a1.386 1.386 0 00-1.98 0l-5.04 5.138L6.39 8.83a1.38 1.38 0 00-1.98 0 1.448 1.448 0 000 2.018l3.171 3.233a1.382 1.382 0 001.98 0l6.03-6.148a1.448 1.448 0 000-2.018z"
|
|
30
|
+
})]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
CheckboxCheckIcon.displayName = "CheckboxCheckIcon";
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CheckboxCheckIcon };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hive-ui/icons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Hive UI Icons",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"./BusinessIcon": "./dist/BusinessIcon.mjs",
|
|
16
16
|
"./CalendarIcon": "./dist/CalendarIcon.mjs",
|
|
17
17
|
"./ChatIcon": "./dist/ChatIcon.mjs",
|
|
18
|
+
"./CheckboxCheckIcon": "./dist/CheckboxCheckIcon.mjs",
|
|
18
19
|
"./ChevronDisclosureIcon": "./dist/ChevronDisclosureIcon.mjs",
|
|
19
20
|
"./ChevronDownIcon": "./dist/ChevronDownIcon.mjs",
|
|
20
21
|
"./ChevronLeftIcon": "./dist/ChevronLeftIcon.mjs",
|
|
@@ -81,8 +82,8 @@
|
|
|
81
82
|
"prepublishOnly": "vp run build"
|
|
82
83
|
},
|
|
83
84
|
"dependencies": {
|
|
84
|
-
"@hive-ui/box": "^0.
|
|
85
|
-
"@hive-ui/style-props": "^0.
|
|
85
|
+
"@hive-ui/box": "^0.3.0",
|
|
86
|
+
"@hive-ui/style-props": "^0.3.0"
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
88
89
|
"@types/node": "^25.6.2",
|