@hive-ui/icons 0.1.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.
@@ -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/ChevronDownIcon.d.ts
7
+ type ChevronDownIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const ChevronDownIcon: _$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 { ChevronDownIcon, ChevronDownIconProps };
@@ -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/ChevronDownIcon.tsx
5
+ const ChevronDownIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `ChevronDownIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[ChevronDownIcon]: 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: "M6.293 8.293a1 1 0 011.32-.083l.094.083L10 10.585l2.293-2.292a1 1 0 011.32-.083l.094.083a1 1 0 01.083 1.32l-.083.094-3 3a1 1 0 01-1.32.083l-.094-.083-3-3a1 1 0 010-1.414z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ ChevronDownIcon.displayName = "ChevronDownIcon";
35
+ //#endregion
36
+ export { ChevronDownIcon };
@@ -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/ChevronRightIcon.d.ts
7
+ type ChevronRightIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const ChevronRightIcon: _$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 { ChevronRightIcon, ChevronRightIconProps };
@@ -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/ChevronRightIcon.tsx
5
+ const ChevronRightIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `ChevronRightIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[ChevronRightIcon]: 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: "M9.707 6.293a1 1 0 00-1.497 1.32l.083.094L10.585 10l-2.292 2.293a1 1 0 00-.083 1.32l.083.094a1 1 0 001.32.083l.094-.083 3-3a1 1 0 00.083-1.32l-.083-.094-3-3z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ ChevronRightIcon.displayName = "ChevronRightIcon";
35
+ //#endregion
36
+ export { ChevronRightIcon };
@@ -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/ChevronUpIcon.d.ts
7
+ type ChevronUpIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const ChevronUpIcon: _$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 { ChevronUpIcon, ChevronUpIconProps };
@@ -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/ChevronUpIcon.tsx
5
+ const ChevronUpIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `ChevronUpIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[ChevronUpIcon]: 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: "M9.293 7.293a1 1 0 011.32-.083l.094.083 3 3a1 1 0 01-1.32 1.497l-.094-.083L10 9.415l-2.293 2.292a1 1 0 01-1.32.083l-.094-.083a1 1 0 01-.083-1.32l.083-.094 3-3z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ ChevronUpIcon.displayName = "ChevronUpIcon";
35
+ //#endregion
36
+ export { ChevronUpIcon };
@@ -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/ClearIcon.d.ts
7
+ type ClearIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const ClearIcon: _$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 { ClearIcon, ClearIconProps };
@@ -0,0 +1,37 @@
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ import { forwardRef, useId } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/ClearIcon.tsx
5
+ const ClearIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `ClearIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[ClearIcon]: 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
+ clipRule: "evenodd",
30
+ d: "M10 16.5a6.5 6.5 0 100-13 6.5 6.5 0 000 13zm.897-6.5l1.917 1.917a.635.635 0 01-.897.897L10 10.897l-1.917 1.917a.635.635 0 01-.897-.897L9.103 10 7.186 8.083a.635.635 0 01.897-.897L10 9.103l1.917-1.917a.635.635 0 01.897.897L10.897 10z"
31
+ })]
32
+ })
33
+ });
34
+ });
35
+ ClearIcon.displayName = "ClearIcon";
36
+ //#endregion
37
+ export { ClearIcon };
@@ -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/CloseIcon.d.ts
7
+ type CloseIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const CloseIcon: _$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 { CloseIcon, CloseIconProps };
@@ -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/CloseIcon.tsx
5
+ const CloseIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `CloseIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[CloseIcon]: 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: "M15.16 13.514L11.645 10l3.515-3.514a1.165 1.165 0 00-1.646-1.646L10 8.355 6.486 4.84A1.165 1.165 0 004.84 6.486L8.355 10 4.84 13.514a1.165 1.165 0 001.646 1.646L10 11.645l3.514 3.515a1.165 1.165 0 001.646-1.646z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ CloseIcon.displayName = "CloseIcon";
35
+ //#endregion
36
+ export { CloseIcon };
@@ -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/ErrorIcon.d.ts
7
+ type ErrorIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const ErrorIcon: _$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 { ErrorIcon, ErrorIconProps };
@@ -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/ErrorIcon.tsx
5
+ const ErrorIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `ErrorIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[ErrorIcon]: 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: "M11.247 2.517l6.236 6.236a1.764 1.764 0 010 2.494l-6.236 6.236a1.764 1.764 0 01-2.494 0l-6.236-6.236a1.764 1.764 0 010-2.494l6.236-6.236a1.764 1.764 0 012.494 0zM10 12a1 1 0 100 2 1 1 0 000-2zm.01-5h-.02c-.604 0-1.073.592-.978 1.244l.428 2.238c.04.296.278.518.557.518h.006c.279 0 .516-.222.557-.518l.428-2.238c.095-.652-.367-1.237-.978-1.244z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ ErrorIcon.displayName = "ErrorIcon";
35
+ //#endregion
36
+ export { ErrorIcon };
@@ -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/LinkIcon.d.ts
7
+ type LinkIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const LinkIcon: _$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 { LinkIcon, LinkIconProps };
@@ -0,0 +1,43 @@
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ import { forwardRef, useId } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/LinkIcon.tsx
5
+ const LinkIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `LinkIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[LinkIcon]: 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
+ fill: "none",
22
+ viewBox: "0 0 20 20",
23
+ "aria-labelledby": titleId,
24
+ children: [
25
+ title ? /* @__PURE__ */ jsx("title", {
26
+ id: titleId,
27
+ children: title
28
+ }) : null,
29
+ /* @__PURE__ */ jsx("path", {
30
+ fill: "currentColor",
31
+ d: "M13.074 5.674a2.3 2.3 0 013.252 3.252l-2.97 2.97A2.3 2.3 0 019.869 8.92a.5.5 0 10-.808-.588 3.3 3.3 0 005.004 4.272l2.97-2.97a3.3 3.3 0 00-4.667-4.666l-.467.466a.5.5 0 10.707.707l.467-.466z"
32
+ }),
33
+ /* @__PURE__ */ jsx("path", {
34
+ fill: "currentColor",
35
+ d: "M9.18 7.163a2.3 2.3 0 011.952 3.65.5.5 0 10.809.59A3.3 3.3 0 006.936 7.13l-2.97 2.97a3.3 3.3 0 004.667 4.667l.58-.58a.5.5 0 10-.707-.707l-.58.58a2.3 2.3 0 11-3.252-3.252l2.97-2.97c.409-.41.958-.652 1.536-.675z"
36
+ })
37
+ ]
38
+ })
39
+ });
40
+ });
41
+ LinkIcon.displayName = "LinkIcon";
42
+ //#endregion
43
+ export { LinkIcon };
@@ -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/MenuIcon.d.ts
7
+ type MenuIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const MenuIcon: _$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 { MenuIcon, MenuIconProps };
@@ -0,0 +1,37 @@
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ import { forwardRef, useId } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/MenuIcon.tsx
5
+ const MenuIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `MenuIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[MenuIcon]: 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
+ clipRule: "evenodd",
30
+ d: "M4.496 6a.5.5 0 000 1h11.001a.5.5 0 000-1h-11zm-.5 4.002a.5.5 0 01.5-.5h11.001a.5.5 0 010 1h-11a.5.5 0 01-.5-.5zm0 3.498a.5.5 0 01.5-.5h11.001a.5.5 0 010 1h-11a.5.5 0 01-.5-.5z"
31
+ })]
32
+ })
33
+ });
34
+ });
35
+ MenuIcon.displayName = "MenuIcon";
36
+ //#endregion
37
+ export { MenuIcon };
@@ -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/NeutralIcon.d.ts
7
+ type NeutralIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const NeutralIcon: _$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 { NeutralIcon, NeutralIconProps };
@@ -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/NeutralIcon.tsx
5
+ const NeutralIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `NeutralIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[NeutralIcon]: 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: "M10 2a8 8 0 110 16 8 8 0 010-16zm0 7c-.26.01-.528.08-.707.24-.178.158-.292.355-.292.575v3.37c0 .21.11.428.292.577.173.14.457.247.707.237.26-.008.528-.078.707-.237.178-.16.292-.355.292-.577v-3.37a.766.766 0 00-.292-.575A1.14 1.14 0 0010 9zm0-3l-.266.036c-.17.047-.318.131-.441.253l-.156.198A.958.958 0 009 6.98v.04a.728.728 0 00.086.378c.04.121.108.227.206.315.09.094.197.163.321.202.12.06.248.09.386.084l.266-.035c.17-.047.318-.131.441-.253l.156-.198A.958.958 0 0011 7.02v-.04a.728.728 0 00-.086-.378.721.721 0 00-.206-.315.757.757 0 00-.321-.202.767.767 0 00-.386-.084z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ NeutralIcon.displayName = "NeutralIcon";
35
+ //#endregion
36
+ export { NeutralIcon };
@@ -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/NewIcon.d.ts
7
+ type NewIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const NewIcon: _$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 { NewIcon, NewIconProps };
@@ -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/NewIcon.tsx
5
+ const NewIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `NewIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[NewIcon]: 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: "M6.991 7.507c.003-.679 1.021-.675 1.019.004-.012 2.956 1.388 4.41 4.492 4.48.673.016.66 1.021-.013 1.019-2.898-.011-4.327 1.446-4.48 4.506-.033.658-1.01.639-1.018-.02-.03-3.027-1.382-4.49-4.481-4.486-.675 0-.682-1.009-.008-1.019 3.02-.042 4.478-1.452 4.49-4.484zm.505 2.757l-.115.242c-.459.9-1.166 1.558-2.115 1.976l.176.08c.973.465 1.664 1.211 2.083 2.22l.02.05.088-.192c.464-.973 1.173-1.685 2.123-2.124l.039-.018-.118-.05c-.963-.435-1.667-1.117-2.113-2.034l-.068-.15zm10.357-8.12c.174.17.194.434.058.625l-.058.068-1.954 1.905 1.954 1.908a.482.482 0 010 .694.512.512 0 01-.641.056l-.07-.056-1.954-1.908-1.954 1.908a.511.511 0 01-.71 0 .482.482 0 01-.058-.626l.058-.068 1.954-1.908-1.954-1.905a.482.482 0 010-.693.512.512 0 01.64-.057l.07.057 1.954 1.905 1.954-1.905a.511.511 0 01.71 0z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ NewIcon.displayName = "NewIcon";
35
+ //#endregion
36
+ export { NewIcon };
@@ -0,0 +1,11 @@
1
+ import { IconWrapperProps } from "./helpers/IconWrapper.mjs";
2
+ import * as _$react from "react";
3
+
4
+ //#region src/SelectedIcon.d.ts
5
+ interface SelectedIconProps extends IconWrapperProps {
6
+ title?: string;
7
+ decorative: boolean;
8
+ }
9
+ declare const SelectedIcon: _$react.ForwardRefExoticComponent<SelectedIconProps & _$react.RefAttributes<HTMLElement>>;
10
+ //#endregion
11
+ export { SelectedIcon, SelectedIconProps };
@@ -0,0 +1,38 @@
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ import { forwardRef, useId } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/SelectedIcon.tsx
5
+ const SelectedIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `SelectedIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[SelectedIcon]: 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
+ fill: "none",
22
+ viewBox: "0 0 20 20",
23
+ "aria-labelledby": titleId,
24
+ children: [title ? /* @__PURE__ */ jsx("title", {
25
+ id: titleId,
26
+ children: title
27
+ }) : null, /* @__PURE__ */ jsx("path", {
28
+ fill: "currentColor",
29
+ fillRule: "evenodd",
30
+ d: "M14.659 6.597a1.155 1.155 0 00-1.65 0l-4.2 4.281L6.99 9.026a1.15 1.15 0 00-1.65 0 1.207 1.207 0 000 1.682l2.643 2.694a1.151 1.151 0 001.65 0l5.024-5.123a1.206 1.206 0 000-1.682z",
31
+ clipRule: "evenodd"
32
+ })]
33
+ })
34
+ });
35
+ });
36
+ SelectedIcon.displayName = "SelectedIcon";
37
+ //#endregion
38
+ export { SelectedIcon };
@@ -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/SuccessIcon.d.ts
7
+ type SuccessIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const SuccessIcon: _$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 { SuccessIcon, SuccessIconProps };
@@ -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/SuccessIcon.tsx
5
+ const SuccessIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `SuccessIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[SuccessIcon]: 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: "M10 2a8 8 0 110 16 8 8 0 010-16zm2.997 5c-.266 0-.521.106-.71.294l-3.286 3.294L7.712 9.29a1.003 1.003 0 00-1.418 1.418l1.998 1.997a1 1 0 001.418 0l3.996-3.994A1.002 1.002 0 0012.996 7z"
30
+ })]
31
+ })
32
+ });
33
+ });
34
+ SuccessIcon.displayName = "SuccessIcon";
35
+ //#endregion
36
+ export { SuccessIcon };
@@ -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/WarningIcon.d.ts
7
+ type WarningIconProps = IconWrapperProps & {
8
+ title?: string;
9
+ decorative: boolean;
10
+ };
11
+ declare const WarningIcon: _$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 { WarningIcon, WarningIconProps };
@@ -0,0 +1,38 @@
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ import { forwardRef, useId } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/WarningIcon.tsx
5
+ const WarningIcon = forwardRef(({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
6
+ const titleId = `WarningIcon-${useId()}`;
7
+ if (!decorative && title == null) throw new Error("[WarningIcon]: 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
+ xmlns: "http://www.w3.org/2000/svg",
23
+ "aria-labelledby": titleId,
24
+ children: [title ? /* @__PURE__ */ jsx("title", {
25
+ id: titleId,
26
+ children: title
27
+ }) : null, /* @__PURE__ */ jsx("path", {
28
+ fill: "currentColor",
29
+ fillRule: "evenodd",
30
+ clipRule: "evenodd",
31
+ d: "M17.798 14.791L11.316 3.744c-.582-.992-2.05-.992-2.632 0L2.202 14.79C1.625 15.776 2.354 17 3.518 17h12.964c1.164 0 1.893-1.224 1.316-2.209zM9.99 8h.02c.611.007 1.073.592.978 1.244l-.428 2.238c-.04.296-.278.518-.557.518h-.006c-.279 0-.516-.222-.557-.518l-.428-2.238C8.917 8.592 9.386 8 9.99 8zm.01 7a1 1 0 100-2 1 1 0 000 2z"
32
+ })]
33
+ })
34
+ });
35
+ });
36
+ WarningIcon.displayName = "WarningIcon";
37
+ //#endregion
38
+ export { WarningIcon };
@@ -1,3 +1,4 @@
1
+ import * as _$react from "react";
1
2
  import { BoxProps } from "@hive-ui/box";
2
3
  import { IconSize } from "@hive-ui/style-props";
3
4
 
@@ -12,5 +13,19 @@ type IconWrapperProps = Pick<BoxProps<"span">, "as" | "element" | "color" | "dis
12
13
  */
13
14
  size?: IconSize;
14
15
  };
16
+ type GenericIconProps = IconWrapperProps & {
17
+ title?: string;
18
+ decorative: boolean;
19
+ };
20
+ declare const IconWrapper: _$react.ForwardRefExoticComponent<Pick<BoxProps<"span">, "as" | "children" | "color" | "display" | "element"> & {
21
+ /**
22
+ * Sets the size of the icon.
23
+ *
24
+ * @default "sizeIcon30"
25
+ * @type {IconSize}
26
+ * @memberof IconWrapperProps
27
+ */
28
+ size?: IconSize;
29
+ } & _$react.RefAttributes<HTMLElement>>;
15
30
  //#endregion
16
- export { IconWrapperProps };
31
+ export { GenericIconProps, IconWrapper, IconWrapperProps };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,2 @@
1
- import { ArrowForwardIcon, ArrowForwardIconProps } from "./ArrowForwardIcon.mjs";
2
- import { ChevronDisclosureIcon, ChevronDisclosureIconProps } from "./ChevronDisclosureIcon.mjs";
3
- import { LinkExternalIcon, LinkExternalIconProps } from "./LinkExternalIcon.mjs";
4
- export { ArrowForwardIcon, ArrowForwardIconProps, ChevronDisclosureIcon, ChevronDisclosureIconProps, LinkExternalIcon, LinkExternalIconProps };
1
+ import { GenericIconProps, IconWrapper, IconWrapperProps } from "./helpers/IconWrapper.mjs";
2
+ export { type GenericIconProps, IconWrapper, type IconWrapperProps };
package/dist/index.mjs CHANGED
@@ -1,4 +1,2 @@
1
- import { ArrowForwardIcon } from "./ArrowForwardIcon.mjs";
2
- import { ChevronDisclosureIcon } from "./ChevronDisclosureIcon.mjs";
3
- import { LinkExternalIcon } from "./LinkExternalIcon.mjs";
4
- export { ArrowForwardIcon, ChevronDisclosureIcon, LinkExternalIcon };
1
+ import { IconWrapper } from "./helpers/IconWrapper.mjs";
2
+ export { IconWrapper };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-ui/icons",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Hive UI Icons",
5
5
  "files": [
6
6
  "dist"
@@ -10,7 +10,20 @@
10
10
  ".": "./dist/index.mjs",
11
11
  "./ArrowForwardIcon": "./dist/ArrowForwardIcon.mjs",
12
12
  "./ChevronDisclosureIcon": "./dist/ChevronDisclosureIcon.mjs",
13
+ "./ChevronDownIcon": "./dist/ChevronDownIcon.mjs",
14
+ "./ChevronRightIcon": "./dist/ChevronRightIcon.mjs",
15
+ "./ChevronUpIcon": "./dist/ChevronUpIcon.mjs",
16
+ "./ClearIcon": "./dist/ClearIcon.mjs",
17
+ "./CloseIcon": "./dist/CloseIcon.mjs",
18
+ "./ErrorIcon": "./dist/ErrorIcon.mjs",
13
19
  "./LinkExternalIcon": "./dist/LinkExternalIcon.mjs",
20
+ "./LinkIcon": "./dist/LinkIcon.mjs",
21
+ "./MenuIcon": "./dist/MenuIcon.mjs",
22
+ "./NeutralIcon": "./dist/NeutralIcon.mjs",
23
+ "./NewIcon": "./dist/NewIcon.mjs",
24
+ "./SelectedIcon": "./dist/SelectedIcon.mjs",
25
+ "./SuccessIcon": "./dist/SuccessIcon.mjs",
26
+ "./WarningIcon": "./dist/WarningIcon.mjs",
14
27
  "./package.json": "./package.json"
15
28
  },
16
29
  "publishConfig": {
@@ -24,8 +37,8 @@
24
37
  "prepublishOnly": "vp run build"
25
38
  },
26
39
  "dependencies": {
27
- "@hive-ui/box": "^0.1.0",
28
- "@hive-ui/style-props": "^0.1.0"
40
+ "@hive-ui/box": "^0.2.1",
41
+ "@hive-ui/style-props": "^0.2.1"
29
42
  },
30
43
  "devDependencies": {
31
44
  "@types/node": "^25.6.2",