aprog 2.2.93 → 2.2.95
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/package.json +1 -1
- package/src/svg.js +5 -2
package/package.json
CHANGED
package/src/svg.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export const svg = ({
|
|
2
2
|
fill = "#043458",
|
|
3
|
-
stroke =
|
|
3
|
+
stroke = undefined,
|
|
4
4
|
strokeWidth = 2,
|
|
5
5
|
w = 24,
|
|
6
6
|
h = 24,
|
|
7
7
|
classes = "",
|
|
8
8
|
id = ""
|
|
9
9
|
} = {}) => {
|
|
10
|
+
if (!stroke) stroke = fill;
|
|
11
|
+
|
|
10
12
|
return {
|
|
11
13
|
pen: `
|
|
12
14
|
<svg id="${id}"
|
|
@@ -230,7 +232,8 @@ export const svg = ({
|
|
|
230
232
|
stroke="${stroke}"
|
|
231
233
|
stroke-width="${strokeWidth}"
|
|
232
234
|
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
233
|
-
<path d="M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z"
|
|
235
|
+
<path d="M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z"></path>
|
|
236
|
+
<path d="M14 6C14 4.11438 14 3.17157 14.5858 2.58579C15.1716 2 16.1144 2 18 2C19.8856 2 20.8284 2 21.4142 2.58579C22 3.17157 22 4.11438 22 6V18C22 19.8856 22 20.8284 21.4142 21.4142C20.8284 22 19.8856 22 18 22C16.1144 22 15.1716 22 14.5858 21.4142C14 20.8284 14 19.8856 14 18V6Z"></path>
|
|
234
237
|
</svg>
|
|
235
238
|
`
|
|
236
239
|
}
|