@wikicasa-dev/svg-icons 0.0.24 → 0.0.25

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,5 +1,5 @@
1
1
  import { h as a } from "vue";
2
- import { s as c } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as c } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const f = (l) => c({
4
4
  props: l,
5
5
  svgNodeAttrs: {
package/dist/ShieldImg.js CHANGED
@@ -1,26 +1,29 @@
1
- import { h as t } from "vue";
2
- const i = (a, { attrs: e }) => t(
3
- "svg",
4
- {
1
+ import { h as a } from "vue";
2
+ import { s as o } from "./svgImagefactory-B0dzgxZn.js";
3
+ const h = (i, { attrs: e }) => o({
4
+ props: i,
5
+ svgNodeAttrs: {
5
6
  xmlns: "http://www.w3.org/2000/svg",
6
7
  viewBox: "0 0 30.845 38.014",
7
- width: a.width ?? 128,
8
- height: a.height ?? 36
8
+ width: e.width ?? 30,
9
+ height: e.height ?? 38,
10
+ class: i.class ?? "",
11
+ "aria-hidden": e["aria-hidden"] ?? "true"
9
12
  },
10
- t(
13
+ childrenNodes: a(
11
14
  "g",
12
- t("g", [
13
- t("path", {
15
+ a("g", [
16
+ a("path", {
14
17
  fill: "none",
15
18
  stroke: "#2a3761",
16
19
  "stroke-width": "2",
17
20
  d: "M16.245 36.831Q26.5 32.385 29.406 22.872a10.2 10.2 0 0 0 .439-2.975V6.262A2.06 2.06 0 0 0 28.3 4.277L15.95 1.068a2.1 2.1 0 0 0-1.055 0L2.548 4.277A2.056 2.056 0 0 0 1 6.262v13.639a10.2 10.2 0 0 0 .438 2.975Q4.346 32.385 14.6 36.831a2.1 2.1 0 0 0 1.645 0Z"
18
21
  }),
19
- t("path", {
22
+ a("path", {
20
23
  fill: "#2b5dff",
21
24
  d: "M15.895 32.411a1.08 1.08 0 0 1-.946 0c-4.951-2.458-8.078-5.982-9.537-10.738a6 6 0 0 1-.26-1.78V8.673a1.026 1.026 0 0 1 .774-.99l9.232-2.39a1.05 1.05 0 0 1 .527 0l9.232 2.39a1.03 1.03 0 0 1 .775.99v11.221a6 6 0 0 1-.261 1.781c-1.458 4.755-4.585 8.279-9.537 10.737"
22
25
  }),
23
- t("path", {
26
+ a("path", {
24
27
  fill: "none",
25
28
  stroke: "#fff",
26
29
  "stroke-linecap": "round",
@@ -30,7 +33,7 @@ const i = (a, { attrs: e }) => t(
30
33
  })
31
34
  ])
32
35
  )
33
- );
36
+ });
34
37
  export {
35
- i as ShieldImg
38
+ h as ShieldImg
36
39
  };
package/dist/SnapImg.js CHANGED
@@ -1,13 +1,16 @@
1
1
  import { h as t } from "vue";
2
- const a = (o, { attrs: e }) => t(
3
- "svg",
4
- {
2
+ import { s as a } from "./svgImagefactory-B0dzgxZn.js";
3
+ const s = (o, { attrs: e }) => a({
4
+ props: o,
5
+ svgNodeAttrs: {
5
6
  xmlns: "http://www.w3.org/2000/svg",
6
7
  viewBox: "0 0 23.474 38.174",
7
- width: o.width ?? 128,
8
- height: o.height ?? 36
8
+ width: e.width ?? 23,
9
+ height: e.height ?? 38,
10
+ class: o.class ?? "",
11
+ "aria-hidden": e["aria-hidden"] ?? "true"
9
12
  },
10
- t(
13
+ childrenNodes: t(
11
14
  "g",
12
15
  t(
13
16
  "g",
@@ -32,7 +35,7 @@ const a = (o, { attrs: e }) => t(
32
35
  ]
33
36
  )
34
37
  )
35
- );
38
+ });
36
39
  export {
37
- a as SnapImg
40
+ s as SnapImg
38
41
  };
@@ -1,13 +1,16 @@
1
1
  import { h as t } from "vue";
2
- const n = (o, { attrs: e }) => t(
3
- "svg",
4
- {
2
+ import { s as r } from "./svgImagefactory-B0dzgxZn.js";
3
+ const l = (e, { attrs: o }) => r({
4
+ props: e,
5
+ svgNodeAttrs: {
5
6
  xmlns: "http://www.w3.org/2000/svg",
6
7
  viewBox: "0 0 46.974 38",
7
- width: o.width ?? 128,
8
- height: o.height ?? 36
8
+ width: o.width ?? 46,
9
+ height: o.height ?? 38,
10
+ class: e.class ?? "",
11
+ "aria-hidden": o["aria-hidden"] ?? "true"
9
12
  },
10
- t("g", [
13
+ childrenNodes: t("g", [
11
14
  t("path", { fill: "#fff", d: "m37.293 13.001 3.1-2.522 2.21 2.522-3.1 2.212Z" }),
12
15
  t("path", {
13
16
  fill: "none",
@@ -113,7 +116,7 @@ const n = (o, { attrs: e }) => t(
113
116
  ])
114
117
  )
115
118
  ])
116
- );
119
+ });
117
120
  export {
118
- n as StopWatchImg
121
+ l as StopWatchImg
119
122
  };
package/dist/WikiNerd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { h as a } from "vue";
2
- import { s as c } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as c } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const s = (l, { attrs: t }) => c({
4
4
  props: l,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h as A } from "vue";
2
- import { s as g } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as g } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const E = (B, { attrs: Q }) => g({
4
4
  props: B,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h as a } from "vue";
2
- import { s as r } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as r } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const f = (t, { attrs: l }) => r({
4
4
  props: t,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h as a } from "vue";
2
- import { s as r } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as r } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const f = (t, { attrs: c }) => r({
4
4
  props: t,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h as a } from "vue";
2
- import { s as r } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as r } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const c = (t, { attrs: f }) => r({
4
4
  props: t,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h as l } from "vue";
2
- import { s as h } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as h } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const i = (o, { attrs: a }) => h({
4
4
  props: o,
5
5
  svgNodeAttrs: {
@@ -1,5 +1,5 @@
1
1
  import { h } from "vue";
2
- import { s as v } from "./svgImagefactory-fcIp3A8Z.js";
2
+ import { s as v } from "./svgImagefactory-B0dzgxZn.js";
3
3
  const i = (c) => v({
4
4
  props: c,
5
5
  svgNodeAttrs: {
@@ -1,3 +1,3 @@
1
1
  import type { FunctionalComponent } from 'vue';
2
- import type { SvgProps } from '@wikicasa-dev/types';
3
- export declare const ShieldImg: FunctionalComponent<Partial<SvgProps>>;
2
+ import type { SvgImageProps } from '@wikicasa-dev/types';
3
+ export declare const ShieldImg: FunctionalComponent<SvgImageProps>;
@@ -1,3 +1,3 @@
1
1
  import type { FunctionalComponent } from 'vue';
2
- import type { SvgProps } from '@wikicasa-dev/types';
3
- export declare const SnapImg: FunctionalComponent<Partial<SvgProps>>;
2
+ import type { SvgImageProps } from '@wikicasa-dev/types';
3
+ export declare const SnapImg: FunctionalComponent<SvgImageProps>;
@@ -1,3 +1,3 @@
1
1
  import type { FunctionalComponent } from 'vue';
2
- import type { SvgProps } from '@wikicasa-dev/types';
3
- export declare const StopWatchImg: FunctionalComponent<Partial<SvgProps>>;
2
+ import type { SvgImageProps } from '@wikicasa-dev/types';
3
+ export declare const StopWatchImg: FunctionalComponent<SvgImageProps>;
@@ -0,0 +1,15 @@
1
+ import { h as e } from "vue";
2
+ const n = (t) => {
3
+ const i = [];
4
+ if (!t.id)
5
+ throw Error("The image must provide an ID");
6
+ if (!t.title)
7
+ throw Error("The image must have a title");
8
+ return i.push(e("title", { id: `${t.id}_title`, innerHTML: t.title })), t.description && i.push(e("desc", { id: `${t.id}_desc`, innerHTML: t.description })), i;
9
+ }, o = ({ props: t, svgNodeAttrs: i, childrenNodes: r }) => {
10
+ const a = n(t);
11
+ return Array.isArray(r) ? e("svg", i, [...a, ...r]) : e("svg", i, [...a, r]);
12
+ };
13
+ export {
14
+ o as s
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/svg-icons",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
@@ -1,15 +0,0 @@
1
- import { h as i } from "vue";
2
- const n = (t) => {
3
- const e = [];
4
- if (!t.id)
5
- throw Error("The image must provide an ID");
6
- if (!t.title)
7
- throw Error("The image must have a title");
8
- return e.push(i("title", { id: `${t.id}_title`, innerHTML: t.title })), t.description && e.push(i("desc", { id: `${t.id}_desc`, innerHTML: t.description })), e;
9
- }, o = ({ props: t, svgNodeAttrs: e, childrenNodes: r }) => {
10
- const d = n(t);
11
- return i("svg", e, [...d, ...r]);
12
- };
13
- export {
14
- o as s
15
- };