@coopdigital/react 1.22.0 → 1.22.2
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.
|
@@ -14,7 +14,7 @@ const RootSVG = () => {
|
|
|
14
14
|
children: /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
15
15
|
clipPathUnits: "objectBoundingBox",
|
|
16
16
|
id: "coop-squircle",
|
|
17
|
-
children: /* @__PURE__ */ jsx("path", { d: "M0
|
|
17
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0.96875 0.740625a0.90625 0.90625 0 0 0 0-0.48125A0.3125 0.3125 0 0 0 0.778125 0.046875a0.828125 0.828125 0 0 0-0.559375 0a0.3125 0.3125 0 0 0-0.1875 0.2109375a0.90625 0.90625 0 0 0 0 0.48125A0.3125 0.3125 0 0 0 0.21875 0.953125a0.8125 0.8125 0 0 0 0.559375 0a0.3125 0.3125 0 0 0 0.1875-0.2109375" })
|
|
18
18
|
}) })
|
|
19
19
|
});
|
|
20
20
|
};
|
|
@@ -27,7 +27,7 @@ const SquircleSvg = ({ size, ...props }) => {
|
|
|
27
27
|
viewBox: "0 0 64 64",
|
|
28
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29
29
|
children: /* @__PURE__ */ jsx("path", {
|
|
30
|
-
d: "
|
|
30
|
+
d: "M62 47.4a58 58 0 0 0 0-30.8A20 20 0 0 0 49.8 3a53 53 0 0 0-35.8 0 20 20 0 0 0-12 13.5 58 58 0 0 0 0 30.8A20 20 0 0 0 14 61a52 52 0 0 0 35.8 0 20 20 0 0 0 12-13.5",
|
|
31
31
|
vectorEffect: "non-scaling-stroke"
|
|
32
32
|
})
|
|
33
33
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"merge-refs": "^2.0.0",
|
|
111
111
|
"react-day-picker": "^10.0.1"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "2b2ef6224f2d46240d7ecc496680337e919d02dc"
|
|
114
114
|
}
|
|
@@ -14,7 +14,7 @@ const RootSVG = (): JSX.Element => {
|
|
|
14
14
|
>
|
|
15
15
|
<defs>
|
|
16
16
|
<clipPath clipPathUnits="objectBoundingBox" id="coop-squircle">
|
|
17
|
-
<path d="M0
|
|
17
|
+
<path d="M0.96875 0.740625a0.90625 0.90625 0 0 0 0-0.48125A0.3125 0.3125 0 0 0 0.778125 0.046875a0.828125 0.828125 0 0 0-0.559375 0a0.3125 0.3125 0 0 0-0.1875 0.2109375a0.90625 0.90625 0 0 0 0 0.48125A0.3125 0.3125 0 0 0 0.21875 0.953125a0.8125 0.8125 0 0 0 0.559375 0a0.3125 0.3125 0 0 0 0.1875-0.2109375" />
|
|
18
18
|
</clipPath>
|
|
19
19
|
</defs>
|
|
20
20
|
</svg>
|
|
@@ -2,10 +2,6 @@ import type { HTMLAttributes, JSX, Ref, SVGAttributes } from "react"
|
|
|
2
2
|
|
|
3
3
|
import clsx from "clsx"
|
|
4
4
|
|
|
5
|
-
// import { useSlots } from "@/hooks"
|
|
6
|
-
|
|
7
|
-
// import { hasUserBg } from "@/utils"
|
|
8
|
-
|
|
9
5
|
export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
6
|
/** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
|
|
11
7
|
children?: React.ReactNode
|
|
@@ -51,7 +47,7 @@ const SquircleSvg = ({ size, ...props }: SquircleSvgProps) => {
|
|
|
51
47
|
xmlns="http://www.w3.org/2000/svg"
|
|
52
48
|
>
|
|
53
49
|
<path
|
|
54
|
-
d="
|
|
50
|
+
d="M62 47.4a58 58 0 0 0 0-30.8A20 20 0 0 0 49.8 3a53 53 0 0 0-35.8 0 20 20 0 0 0-12 13.5 58 58 0 0 0 0 30.8A20 20 0 0 0 14 61a52 52 0 0 0 35.8 0 20 20 0 0 0 12-13.5"
|
|
55
51
|
vectorEffect="non-scaling-stroke"
|
|
56
52
|
/>
|
|
57
53
|
</svg>
|