bevi-icon 1.3.0 → 1.3.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/components/BvIcon/Icon.d.ts +22 -6
- package/dist/components/BvIcon/Icon.js +26 -10
- package/dist/components/BvIcon/index.d.ts +4 -1
- package/dist/components/BvIcon/index.js +18 -13
- package/dist/components/BvIcon/types/variant.d.ts +1 -0
- package/dist/components/BvIcon/types/variant.js +1 -0
- package/dist/components/BvIcon/types/weight.d.ts +1 -0
- package/dist/components/BvIcon/types/weight.js +1 -0
- package/dist/components/BvIcon/utils/notFound.d.ts +1 -0
- package/dist/components/BvIcon/utils/notFound.js +74 -0
- package/dist/components/BvIcon/utils/specialWeightIcons.d.ts +3 -0
- package/dist/components/BvIcon/utils/specialWeightIcons.js +7 -0
- package/dist/components/BvIcon/variant/dark.js +3272 -2770
- package/dist/components/BvIcon/variant/duo.js +2320 -1751
- package/dist/components/BvIcon/variant/light.js +3711 -3449
- package/dist/components/BvIcon/variant/solid.js +548 -379
- package/dist/components/BvIcon/weight/400.d.ts +6 -0
- package/dist/components/BvIcon/weight/400.js +96 -0
- package/dist/components/BvIcon/weight/600.d.ts +6 -0
- package/dist/components/BvIcon/weight/600.js +148 -0
- package/dist/index.js +6 -2
- package/package.json +1 -1
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { weightType } from './types/weight';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare const iconVariantMap: {
|
|
4
|
+
solid: {
|
|
5
|
+
[key: string]: import('react').ReactNode;
|
|
6
|
+
};
|
|
7
|
+
duo: {
|
|
8
|
+
[key: string]: import('react').ReactNode;
|
|
9
|
+
};
|
|
10
|
+
dark: {
|
|
11
|
+
[key: string]: import('react').ReactNode;
|
|
12
|
+
};
|
|
13
|
+
light: {
|
|
14
|
+
[key: string]: import('react').ReactNode;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare const iconWeightMap: Record<weightType, Record<string, React.ReactNode>>;
|
|
18
|
+
type VariationIconProps = {
|
|
5
19
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
variant?: keyof typeof iconVariantMap;
|
|
21
|
+
weight?: keyof typeof iconWeightMap;
|
|
22
|
+
};
|
|
23
|
+
export declare const Icon: ({ variant, weight, name }: VariationIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as o, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import d from "./variant/solid.js";
|
|
3
|
+
import e from "./variant/duo.js";
|
|
4
|
+
import s from "./variant/dark.js";
|
|
5
|
+
import u from "./variant/light.js";
|
|
6
|
+
import l from "./weight/400.js";
|
|
7
|
+
import h from "./weight/600.js";
|
|
8
|
+
import { NotFound as m } from "./utils/notFound.js";
|
|
9
|
+
import { specialWeightIcons as g } from "./utils/specialWeightIcons.js";
|
|
10
|
+
const c = {
|
|
11
|
+
solid: d,
|
|
12
|
+
duo: e,
|
|
13
|
+
dark: s,
|
|
14
|
+
light: u
|
|
15
|
+
}, x = {
|
|
16
|
+
400: l,
|
|
17
|
+
600: h
|
|
18
|
+
}, N = ({ variant: r, weight: t, name: i }) => {
|
|
19
|
+
var n;
|
|
20
|
+
if (t && ((n = g[t]) != null && n.includes(i))) {
|
|
21
|
+
const f = x[t];
|
|
22
|
+
return /* @__PURE__ */ o(p, { children: f[i] || /* @__PURE__ */ o(m, {}) });
|
|
23
|
+
}
|
|
24
|
+
return r && c[r] ? /* @__PURE__ */ o(p, { children: c[r][i] || /* @__PURE__ */ o(m, {}) }) : /* @__PURE__ */ o(m, {});
|
|
25
|
+
};
|
|
10
26
|
export {
|
|
11
|
-
|
|
27
|
+
N as Icon
|
|
12
28
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { FC, SVGProps } from 'react';
|
|
2
|
+
import { variantType } from './types/variant';
|
|
3
|
+
import { weightType } from './types/weight';
|
|
2
4
|
|
|
3
5
|
interface BvIconProps extends SVGProps<SVGSVGElement> {
|
|
4
6
|
name: string;
|
|
5
|
-
variant?: string | 'solid' | 'duo' | 'dark' | 'light';
|
|
6
7
|
size?: number;
|
|
7
8
|
title?: string;
|
|
9
|
+
variant?: variantType;
|
|
10
|
+
weight?: weightType;
|
|
8
11
|
}
|
|
9
12
|
declare const BvIcon: FC<BvIconProps>;
|
|
10
13
|
export default BvIcon;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as d, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as h } from "./Icon.js";
|
|
3
3
|
import "./variant/solid.js";
|
|
4
4
|
import "./variant/duo.js";
|
|
5
5
|
import "./variant/dark.js";
|
|
6
6
|
import "./variant/light.js";
|
|
7
|
-
|
|
7
|
+
import "./weight/400.js";
|
|
8
|
+
import "./weight/600.js";
|
|
9
|
+
import "./utils/notFound.js";
|
|
10
|
+
import "./utils/specialWeightIcons.js";
|
|
11
|
+
const l = {
|
|
8
12
|
solid: "222343",
|
|
9
13
|
dark: "222343",
|
|
10
14
|
light: "25CBDB",
|
|
11
15
|
duo: "inherit"
|
|
12
|
-
},
|
|
16
|
+
}, B = ({
|
|
13
17
|
name: r,
|
|
14
|
-
variant: t = "solid",
|
|
15
18
|
size: o,
|
|
16
|
-
title:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
title: t,
|
|
20
|
+
variant: i = "solid",
|
|
21
|
+
weight: n = 400,
|
|
22
|
+
...p
|
|
23
|
+
}) => /* @__PURE__ */ d(
|
|
19
24
|
"svg",
|
|
20
25
|
{
|
|
21
26
|
width: o ? o * 16 : 32,
|
|
@@ -23,16 +28,16 @@ const e = {
|
|
|
23
28
|
viewBox: "0 0 32 32",
|
|
24
29
|
"aria-hidden": "true",
|
|
25
30
|
"data-icon": `bv-${r}`,
|
|
26
|
-
color: `#${
|
|
31
|
+
color: `#${l[i]}`,
|
|
27
32
|
fill: "none",
|
|
28
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
-
...
|
|
34
|
+
...p,
|
|
30
35
|
children: [
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */
|
|
36
|
+
t ? /* @__PURE__ */ m("title", { children: t }) : "",
|
|
37
|
+
/* @__PURE__ */ m(h, { variant: i, weight: n, name: r })
|
|
33
38
|
]
|
|
34
39
|
}
|
|
35
40
|
);
|
|
36
41
|
export {
|
|
37
|
-
|
|
42
|
+
B as default
|
|
38
43
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type variantType = ('solid' | 'duo' | 'dark' | 'light');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type weightType = (400 | 600);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs as V, Fragment as H, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
const l = () => /* @__PURE__ */ V(H, { children: [
|
|
3
|
+
/* @__PURE__ */ C("rect", { width: "32", height: "32", fill: "white" }),
|
|
4
|
+
/* @__PURE__ */ C(
|
|
5
|
+
"rect",
|
|
6
|
+
{
|
|
7
|
+
x: "0.5",
|
|
8
|
+
y: "0.5",
|
|
9
|
+
width: "31",
|
|
10
|
+
height: "31",
|
|
11
|
+
rx: "3.5",
|
|
12
|
+
stroke: "#222343"
|
|
13
|
+
}
|
|
14
|
+
),
|
|
15
|
+
/* @__PURE__ */ C(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M2.90542 14.4037V7H3.62082L8.63977 13.2905H8.3715V7H9.22103V14.4037H8.52799L3.50904 8.11319H3.76613V14.4037H2.90542Z",
|
|
19
|
+
fill: "#222343"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ C(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M13.3148 14.4983C12.7857 14.4983 12.3274 14.3897 11.9399 14.1727C11.5524 13.9557 11.2506 13.6511 11.0345 13.259C10.8258 12.86 10.7215 12.3909 10.7215 11.8518C10.7215 11.3127 10.8258 10.8471 11.0345 10.4551C11.2506 10.056 11.5524 9.74796 11.9399 9.53092C12.3274 9.31389 12.7857 9.20537 13.3148 9.20537C13.8439 9.20537 14.3022 9.31389 14.6897 9.53092C15.0772 9.74796 15.3753 10.056 15.584 10.4551C15.8001 10.8471 15.9081 11.3127 15.9081 11.8518C15.9081 12.3909 15.8001 12.86 15.584 13.259C15.3753 13.6511 15.0772 13.9557 14.6897 14.1727C14.3022 14.3897 13.8439 14.4983 13.3148 14.4983ZM13.3148 13.8156C13.829 13.8156 14.2351 13.6476 14.5332 13.3116C14.8388 12.9685 14.9915 12.4784 14.9915 11.8413C14.9915 11.2112 14.8388 10.7281 14.5332 10.3921C14.2351 10.056 13.829 9.88798 13.3148 9.88798C12.8081 9.88798 12.4019 10.056 12.0964 10.3921C11.7909 10.7281 11.6381 11.2112 11.6381 11.8413C11.6381 12.4784 11.7909 12.9685 12.0964 13.3116C12.4019 13.6476 12.8081 13.8156 13.3148 13.8156Z",
|
|
26
|
+
fill: "#222343"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ C(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
d: "M19.3932 14.4983C18.7524 14.4983 18.2717 14.3372 17.9513 14.0152C17.6308 13.6931 17.4706 13.2345 17.4706 12.6394V9.96149H16.4087V9.29988H17.4706V7.73512H18.376V9.29988H20.0975V9.96149H18.376V12.5554C18.376 12.9545 18.4655 13.259 18.6443 13.4691C18.8232 13.6721 19.1138 13.7736 19.5162 13.7736C19.6354 13.7736 19.7547 13.7596 19.8739 13.7316C19.9931 13.7036 20.1012 13.6756 20.1981 13.6476L20.3546 14.2987C20.2577 14.3477 20.1161 14.3932 19.9298 14.4352C19.7435 14.4772 19.5646 14.4983 19.3932 14.4983Z",
|
|
33
|
+
fill: "#222343"
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ C(
|
|
37
|
+
"path",
|
|
38
|
+
{
|
|
39
|
+
d: "M3.07309 24.9055V20.4632H2V19.8016H3.31901L3.07309 20.0222V19.6231C3.07309 18.944 3.25194 18.4294 3.60964 18.0793C3.97479 17.7293 4.53369 17.5333 5.28635 17.4912L5.7223 17.4702L5.80054 18.1214L5.28635 18.1529C4.98082 18.1739 4.73117 18.2369 4.53742 18.3419C4.34367 18.4469 4.20208 18.5974 4.11265 18.7935C4.02323 18.9895 3.97852 19.231 3.97852 19.5181V19.9592L3.84438 19.8016H5.54345V20.4632H3.97852V24.9055H3.07309Z",
|
|
40
|
+
fill: "#222343"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ C(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
d: "M8.60999 25C8.0809 25 7.62259 24.8915 7.23509 24.6744C6.84758 24.4574 6.54577 24.1529 6.32967 23.7608C6.12101 23.3617 6.01668 22.8926 6.01668 22.3536C6.01668 21.8145 6.12101 21.3489 6.32967 20.9568C6.54577 20.5578 6.84758 20.2497 7.23509 20.0327C7.62259 19.8156 8.0809 19.7071 8.60999 19.7071C9.13909 19.7071 9.59739 19.8156 9.98489 20.0327C10.3724 20.2497 10.6705 20.5578 10.8791 20.9568C11.0952 21.3489 11.2033 21.8145 11.2033 22.3536C11.2033 22.8926 11.0952 23.3617 10.8791 23.7608C10.6705 24.1529 10.3724 24.4574 9.98489 24.6744C9.59739 24.8915 9.13909 25 8.60999 25ZM8.60999 24.3174C9.12418 24.3174 9.53032 24.1494 9.8284 23.8133C10.1339 23.4702 10.2867 22.9802 10.2867 22.3431C10.2867 21.713 10.1339 21.2299 9.8284 20.8938C9.53032 20.5578 9.12418 20.3897 8.60999 20.3897C8.10325 20.3897 7.69712 20.5578 7.39158 20.8938C7.08605 21.2299 6.93328 21.713 6.93328 22.3431C6.93328 22.9802 7.08605 23.4702 7.39158 23.8133C7.69712 24.1494 8.10325 24.3174 8.60999 24.3174Z",
|
|
47
|
+
fill: "#222343"
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ C(
|
|
51
|
+
"path",
|
|
52
|
+
{
|
|
53
|
+
d: "M14.4859 25C14.0462 25 13.6811 24.9265 13.3904 24.7795C13.1073 24.6254 12.8912 24.3979 12.7421 24.0968C12.6005 23.7958 12.5297 23.4212 12.5297 22.9732V19.8016H13.4352V22.9627C13.4352 23.2637 13.4761 23.5158 13.5581 23.7188C13.6475 23.9148 13.7854 24.0618 13.9717 24.1599C14.158 24.2509 14.389 24.2964 14.6647 24.2964C14.9777 24.2964 15.2497 24.2299 15.4807 24.0968C15.7118 23.9638 15.8943 23.7783 16.0285 23.5403C16.1626 23.3022 16.2297 23.0222 16.2297 22.7001V19.8016H17.1351V24.9055H16.252V23.7293H16.3973C16.2483 24.1424 16.0024 24.4574 15.6596 24.6744C15.3243 24.8915 14.933 25 14.4859 25Z",
|
|
54
|
+
fill: "#222343"
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ C(
|
|
58
|
+
"path",
|
|
59
|
+
{
|
|
60
|
+
d: "M18.8291 24.9055V19.8016H19.7122V20.9358H19.5892C19.7457 20.5298 19.9991 20.2252 20.3493 20.0222C20.707 19.8121 21.1169 19.7071 21.5789 19.7071C22.0111 19.7071 22.3688 19.7806 22.652 19.9277C22.9426 20.0677 23.1587 20.2882 23.3003 20.5893C23.4419 20.8903 23.5127 21.2684 23.5127 21.7235V24.9055H22.6073V21.776C22.6073 21.4609 22.5626 21.2019 22.4731 20.9988C22.3912 20.7958 22.257 20.6453 22.0707 20.5473C21.8919 20.4492 21.6571 20.4002 21.3665 20.4002C21.0386 20.4002 20.7517 20.4667 20.5058 20.5998C20.2599 20.7328 20.0699 20.9183 19.9357 21.1564C19.8016 21.3944 19.7345 21.6744 19.7345 21.9965V24.9055H18.8291Z",
|
|
61
|
+
fill: "#222343"
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ C(
|
|
65
|
+
"path",
|
|
66
|
+
{
|
|
67
|
+
d: "M27.2502 25C26.7658 25 26.341 24.8915 25.9759 24.6744C25.6182 24.4574 25.3387 24.1529 25.1375 23.7608C24.9438 23.3617 24.8469 22.8926 24.8469 22.3536C24.8469 21.8075 24.9438 21.3384 25.1375 20.9463C25.3387 20.5473 25.6182 20.2427 25.9759 20.0327C26.341 19.8156 26.7658 19.7071 27.2502 19.7071C27.742 19.7071 28.1631 19.8226 28.5133 20.0537C28.8636 20.2847 29.0983 20.5963 29.2175 20.9883H29.0946V17.5017H30V24.9055H29.1169V23.6873H29.2287C29.1095 24.0863 28.871 24.4049 28.5133 24.6429C28.1631 24.881 27.742 25 27.2502 25ZM27.4402 24.3174C27.9544 24.3174 28.3606 24.1494 28.6586 23.8133C28.9642 23.4702 29.1169 22.9837 29.1169 22.3536C29.1169 21.7165 28.9642 21.2299 28.6586 20.8938C28.3606 20.5578 27.9544 20.3897 27.4402 20.3897C26.9335 20.3897 26.5273 20.5578 26.2218 20.8938C25.9163 21.2299 25.7635 21.7165 25.7635 22.3536C25.7635 22.9837 25.9163 23.4702 26.2218 23.8133C26.5273 24.1494 26.9335 24.3174 27.4402 24.3174Z",
|
|
68
|
+
fill: "#222343"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
export {
|
|
73
|
+
l as NotFound
|
|
74
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
400: ["arrowBack", "arrowForward", "arrowNorthEast", "arrowNorth", "arrowNorthWeast", "arrowSouth", "chevronBack", "chevronDown", "chevronForward", "chevronLeft", "chevronRight", "chevronUp"],
|
|
3
|
+
600: ["add", "arrowBack", "arrowForward", "arrowNorthEast", "arrowNorth", "arrowNorthWeast", "arrowSouth", "chevronBack", "check", "chevronDown", "chevronDownward", "chevronForward", "chevronLeft", "chevronRight", "chevronUp", "chevronUpward", "close", "remove"]
|
|
4
|
+
};
|
|
5
|
+
export {
|
|
6
|
+
r as specialWeightIcons
|
|
7
|
+
};
|