@brightlocal/icons 2.2.0 → 2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=require("react");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=s(u),i=d.forwardRef(({className:e="fill-yellow-400 stroke-yellow-400",size:t=16,strokeWidth:r=1.33,absoluteStrokeWidth:o=!0,...a},c)=>{const l=o?Number(r)*24/Number(t):r;return n.jsx("svg",{ref:c,"aria-hidden":"true",className:e,fill:"currentColor",height:t,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"miter",strokeWidth:l,viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg",...a,children:n.jsx("path",{d:"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"})})});i.displayName="StarRating";exports.StarRating=i;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
const
|
|
2
|
+
import * as L from "react";
|
|
3
|
+
const d = L.forwardRef(
|
|
4
4
|
({
|
|
5
|
-
className: o,
|
|
5
|
+
className: o = "fill-yellow-400 stroke-yellow-400",
|
|
6
6
|
size: r = 16,
|
|
7
7
|
strokeWidth: t = 1.33,
|
|
8
8
|
absoluteStrokeWidth: i = !0,
|
|
9
9
|
...n
|
|
10
10
|
}, a) => {
|
|
11
|
-
const
|
|
11
|
+
const l = i ? Number(t) * 24 / Number(r) : t;
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"svg",
|
|
14
14
|
{
|
|
15
15
|
ref: a,
|
|
16
16
|
"aria-hidden": "true",
|
|
17
17
|
className: o,
|
|
18
|
-
fill: "
|
|
18
|
+
fill: "currentColor",
|
|
19
19
|
height: r,
|
|
20
20
|
stroke: "currentColor",
|
|
21
21
|
strokeLinecap: "round",
|
|
22
22
|
strokeLinejoin: "miter",
|
|
23
|
-
strokeWidth:
|
|
23
|
+
strokeWidth: l,
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
25
|
width: r,
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -30,7 +30,7 @@ const m = d.forwardRef(
|
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
d.displayName = "StarRating";
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
d as StarRating
|
|
36
36
|
};
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import type { LucideProps } from "lucide-react";
|
|
|
10
10
|
export const StarRating = React.forwardRef<SVGSVGElement, LucideProps>(
|
|
11
11
|
(
|
|
12
12
|
{
|
|
13
|
-
className,
|
|
13
|
+
className = "fill-yellow-400 stroke-yellow-400",
|
|
14
14
|
size = 16,
|
|
15
15
|
strokeWidth = 1.33,
|
|
16
16
|
absoluteStrokeWidth = true,
|
|
@@ -27,7 +27,7 @@ export const StarRating = React.forwardRef<SVGSVGElement, LucideProps>(
|
|
|
27
27
|
ref={ref}
|
|
28
28
|
aria-hidden="true"
|
|
29
29
|
className={className}
|
|
30
|
-
fill="
|
|
30
|
+
fill="currentColor"
|
|
31
31
|
height={size}
|
|
32
32
|
stroke="currentColor"
|
|
33
33
|
strokeLinecap="round"
|