@blockspoon/cert-badge-renderer 1.0.35 → 1.0.36
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/cjs/templates/ribbons/RibbonWing15.d.ts +1 -1
- package/dist/cjs/templates/ribbons/RibbonWing15.js +2 -2
- package/dist/cjs/templates/ribbons/RibbonWing16.d.ts +1 -1
- package/dist/cjs/templates/ribbons/RibbonWing16.js +2 -2
- package/dist/cjs/templates/ribbons/RibbonWing17.d.ts +1 -1
- package/dist/cjs/templates/ribbons/RibbonWing17.js +2 -2
- package/dist/cjs/templates/ribbons/index.d.ts +6 -0
- package/dist/cjs/templates/ribbons/index.js +6 -0
- package/dist/cjs/templates/svgTemplate.js +12 -0
- package/dist/cjs/utils/generateAchievementHTML.js +2 -2
- package/dist/cjs/utils/generateDesignHTML.js +2 -2
- package/dist/esm/templates/ribbons/RibbonWing15.d.ts +1 -1
- package/dist/esm/templates/ribbons/RibbonWing15.js +2 -2
- package/dist/esm/templates/ribbons/RibbonWing16.d.ts +1 -1
- package/dist/esm/templates/ribbons/RibbonWing16.js +2 -2
- package/dist/esm/templates/ribbons/RibbonWing17.d.ts +1 -1
- package/dist/esm/templates/ribbons/RibbonWing17.js +2 -2
- package/dist/esm/templates/ribbons/index.d.ts +6 -0
- package/dist/esm/templates/ribbons/index.js +6 -0
- package/dist/esm/templates/svgTemplate.js +12 -0
- package/dist/esm/utils/generateAchievementHTML.js +2 -2
- package/dist/esm/utils/generateDesignHTML.js +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing15({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing15 = createRibbonWing15;
|
|
4
|
+
function createRibbonWing15({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing16({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing16 = createRibbonWing16;
|
|
4
|
+
function createRibbonWing16({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing17({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing17 = createRibbonWing17;
|
|
4
|
+
function createRibbonWing17({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -61,6 +61,9 @@ import { createRibbonWing10 } from "./RibbonWing10.js";
|
|
|
61
61
|
import { createRibbonWing11 } from "./RibbonWing11.js";
|
|
62
62
|
import { createRibbonWing12 } from "./RibbonWing12.js";
|
|
63
63
|
import { createRibbonWing14 } from "./RibbonWing14.js";
|
|
64
|
+
import { createRibbonWing15 } from "./RibbonWing15.js";
|
|
65
|
+
import { createRibbonWing16 } from "./RibbonWing16.js";
|
|
66
|
+
import { createRibbonWing17 } from "./RibbonWing17.js";
|
|
64
67
|
import { createRibbonWing104 } from "./RibbonWing104.js";
|
|
65
68
|
import { createRibbonWing105 } from "./RibbonWing105.js";
|
|
66
69
|
import { createRibbonWing106 } from "./RibbonWing106.js";
|
|
@@ -128,6 +131,9 @@ declare const Ribbons: {
|
|
|
128
131
|
RibbonWing11: typeof createRibbonWing11;
|
|
129
132
|
RibbonWing12: typeof createRibbonWing12;
|
|
130
133
|
RibbonWing14: typeof createRibbonWing14;
|
|
134
|
+
RibbonWing15: typeof createRibbonWing15;
|
|
135
|
+
RibbonWing16: typeof createRibbonWing16;
|
|
136
|
+
RibbonWing17: typeof createRibbonWing17;
|
|
131
137
|
RibbonWing104: typeof createRibbonWing104;
|
|
132
138
|
RibbonWing105: typeof createRibbonWing105;
|
|
133
139
|
RibbonWing106: typeof createRibbonWing106;
|
|
@@ -63,6 +63,9 @@ const RibbonWing10_js_1 = require("./RibbonWing10.js");
|
|
|
63
63
|
const RibbonWing11_js_1 = require("./RibbonWing11.js");
|
|
64
64
|
const RibbonWing12_js_1 = require("./RibbonWing12.js");
|
|
65
65
|
const RibbonWing14_js_1 = require("./RibbonWing14.js");
|
|
66
|
+
const RibbonWing15_js_1 = require("./RibbonWing15.js");
|
|
67
|
+
const RibbonWing16_js_1 = require("./RibbonWing16.js");
|
|
68
|
+
const RibbonWing17_js_1 = require("./RibbonWing17.js");
|
|
66
69
|
const RibbonWing104_js_1 = require("./RibbonWing104.js");
|
|
67
70
|
const RibbonWing105_js_1 = require("./RibbonWing105.js");
|
|
68
71
|
const RibbonWing106_js_1 = require("./RibbonWing106.js");
|
|
@@ -132,6 +135,9 @@ const Ribbons = {
|
|
|
132
135
|
RibbonWing11: RibbonWing11_js_1.createRibbonWing11,
|
|
133
136
|
RibbonWing12: RibbonWing12_js_1.createRibbonWing12,
|
|
134
137
|
RibbonWing14: RibbonWing14_js_1.createRibbonWing14,
|
|
138
|
+
RibbonWing15: RibbonWing15_js_1.createRibbonWing15,
|
|
139
|
+
RibbonWing16: RibbonWing16_js_1.createRibbonWing16,
|
|
140
|
+
RibbonWing17: RibbonWing17_js_1.createRibbonWing17,
|
|
135
141
|
RibbonWing104: RibbonWing104_js_1.createRibbonWing104,
|
|
136
142
|
RibbonWing105: RibbonWing105_js_1.createRibbonWing105,
|
|
137
143
|
RibbonWing106: RibbonWing106_js_1.createRibbonWing106,
|
|
@@ -751,6 +751,18 @@ exports.ribbonTemplates = [
|
|
|
751
751
|
id: "RibbonWing104",
|
|
752
752
|
Component: index_js_2.default.RibbonWing104,
|
|
753
753
|
},
|
|
754
|
+
{
|
|
755
|
+
id: "RibbonWing15",
|
|
756
|
+
Component: index_js_2.default.RibbonWing15,
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
id: "RibbonWing16",
|
|
760
|
+
Component: index_js_2.default.RibbonWing16,
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
id: "RibbonWing17",
|
|
764
|
+
Component: index_js_2.default.RibbonWing17,
|
|
765
|
+
},
|
|
754
766
|
{
|
|
755
767
|
id: "RibbonWing105",
|
|
756
768
|
Component: index_js_2.default.RibbonWing105,
|
|
@@ -136,8 +136,8 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
|
|
|
136
136
|
: element.textAlign === "left"
|
|
137
137
|
? "flex-start"
|
|
138
138
|
: "flex-end"};
|
|
139
|
-
word-break: break-word;
|
|
140
|
-
white-space: pre-wrap;
|
|
139
|
+
word-break: ${type === "badge" ? "break-word" : "normal"};
|
|
140
|
+
white-space: ${type === "badge" ? "pre-wrap" : "normal"};
|
|
141
141
|
opacity: ${element.opacity || 1};
|
|
142
142
|
`;
|
|
143
143
|
if (element.controlType === "svg") {
|
|
@@ -136,8 +136,8 @@ async function generateDesignHTML(data, options = {}) {
|
|
|
136
136
|
: element.textAlign === "left"
|
|
137
137
|
? "flex-start"
|
|
138
138
|
: "flex-end"};
|
|
139
|
-
word-break: break-word;
|
|
140
|
-
white-space: pre-wrap;
|
|
139
|
+
word-break: ${isBadge ? "break-word" : "normal"};
|
|
140
|
+
white-space: ${isBadge ? "pre-wrap" : "normal"};
|
|
141
141
|
opacity: ${element.opacity || 1};
|
|
142
142
|
`;
|
|
143
143
|
if (element.controlType === "svg") {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing15({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing15 = createRibbonWing15;
|
|
4
|
+
function createRibbonWing15({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing16({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing16 = createRibbonWing16;
|
|
4
|
+
function createRibbonWing16({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function createRibbonWing17({ mainColor, subColor, }: ISvgProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createRibbonWing17 = createRibbonWing17;
|
|
4
|
+
function createRibbonWing17({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
|
|
5
5
|
return `
|
|
6
6
|
<svg
|
|
7
7
|
width="100%"
|
|
@@ -61,6 +61,9 @@ import { createRibbonWing10 } from "./RibbonWing10.js";
|
|
|
61
61
|
import { createRibbonWing11 } from "./RibbonWing11.js";
|
|
62
62
|
import { createRibbonWing12 } from "./RibbonWing12.js";
|
|
63
63
|
import { createRibbonWing14 } from "./RibbonWing14.js";
|
|
64
|
+
import { createRibbonWing15 } from "./RibbonWing15.js";
|
|
65
|
+
import { createRibbonWing16 } from "./RibbonWing16.js";
|
|
66
|
+
import { createRibbonWing17 } from "./RibbonWing17.js";
|
|
64
67
|
import { createRibbonWing104 } from "./RibbonWing104.js";
|
|
65
68
|
import { createRibbonWing105 } from "./RibbonWing105.js";
|
|
66
69
|
import { createRibbonWing106 } from "./RibbonWing106.js";
|
|
@@ -128,6 +131,9 @@ declare const Ribbons: {
|
|
|
128
131
|
RibbonWing11: typeof createRibbonWing11;
|
|
129
132
|
RibbonWing12: typeof createRibbonWing12;
|
|
130
133
|
RibbonWing14: typeof createRibbonWing14;
|
|
134
|
+
RibbonWing15: typeof createRibbonWing15;
|
|
135
|
+
RibbonWing16: typeof createRibbonWing16;
|
|
136
|
+
RibbonWing17: typeof createRibbonWing17;
|
|
131
137
|
RibbonWing104: typeof createRibbonWing104;
|
|
132
138
|
RibbonWing105: typeof createRibbonWing105;
|
|
133
139
|
RibbonWing106: typeof createRibbonWing106;
|
|
@@ -63,6 +63,9 @@ const RibbonWing10_js_1 = require("./RibbonWing10.js");
|
|
|
63
63
|
const RibbonWing11_js_1 = require("./RibbonWing11.js");
|
|
64
64
|
const RibbonWing12_js_1 = require("./RibbonWing12.js");
|
|
65
65
|
const RibbonWing14_js_1 = require("./RibbonWing14.js");
|
|
66
|
+
const RibbonWing15_js_1 = require("./RibbonWing15.js");
|
|
67
|
+
const RibbonWing16_js_1 = require("./RibbonWing16.js");
|
|
68
|
+
const RibbonWing17_js_1 = require("./RibbonWing17.js");
|
|
66
69
|
const RibbonWing104_js_1 = require("./RibbonWing104.js");
|
|
67
70
|
const RibbonWing105_js_1 = require("./RibbonWing105.js");
|
|
68
71
|
const RibbonWing106_js_1 = require("./RibbonWing106.js");
|
|
@@ -132,6 +135,9 @@ const Ribbons = {
|
|
|
132
135
|
RibbonWing11: RibbonWing11_js_1.createRibbonWing11,
|
|
133
136
|
RibbonWing12: RibbonWing12_js_1.createRibbonWing12,
|
|
134
137
|
RibbonWing14: RibbonWing14_js_1.createRibbonWing14,
|
|
138
|
+
RibbonWing15: RibbonWing15_js_1.createRibbonWing15,
|
|
139
|
+
RibbonWing16: RibbonWing16_js_1.createRibbonWing16,
|
|
140
|
+
RibbonWing17: RibbonWing17_js_1.createRibbonWing17,
|
|
135
141
|
RibbonWing104: RibbonWing104_js_1.createRibbonWing104,
|
|
136
142
|
RibbonWing105: RibbonWing105_js_1.createRibbonWing105,
|
|
137
143
|
RibbonWing106: RibbonWing106_js_1.createRibbonWing106,
|
|
@@ -751,6 +751,18 @@ exports.ribbonTemplates = [
|
|
|
751
751
|
id: "RibbonWing104",
|
|
752
752
|
Component: index_js_2.default.RibbonWing104,
|
|
753
753
|
},
|
|
754
|
+
{
|
|
755
|
+
id: "RibbonWing15",
|
|
756
|
+
Component: index_js_2.default.RibbonWing15,
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
id: "RibbonWing16",
|
|
760
|
+
Component: index_js_2.default.RibbonWing16,
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
id: "RibbonWing17",
|
|
764
|
+
Component: index_js_2.default.RibbonWing17,
|
|
765
|
+
},
|
|
754
766
|
{
|
|
755
767
|
id: "RibbonWing105",
|
|
756
768
|
Component: index_js_2.default.RibbonWing105,
|
|
@@ -136,8 +136,8 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
|
|
|
136
136
|
: element.textAlign === "left"
|
|
137
137
|
? "flex-start"
|
|
138
138
|
: "flex-end"};
|
|
139
|
-
word-break: break-word;
|
|
140
|
-
white-space: pre-wrap;
|
|
139
|
+
word-break: ${type === "badge" ? "break-word" : "normal"};
|
|
140
|
+
white-space: ${type === "badge" ? "pre-wrap" : "normal"};
|
|
141
141
|
opacity: ${element.opacity || 1};
|
|
142
142
|
`;
|
|
143
143
|
if (element.controlType === "svg") {
|
|
@@ -136,8 +136,8 @@ async function generateDesignHTML(data, options = {}) {
|
|
|
136
136
|
: element.textAlign === "left"
|
|
137
137
|
? "flex-start"
|
|
138
138
|
: "flex-end"};
|
|
139
|
-
word-break: break-word;
|
|
140
|
-
white-space: pre-wrap;
|
|
139
|
+
word-break: ${isBadge ? "break-word" : "normal"};
|
|
140
|
+
white-space: ${isBadge ? "pre-wrap" : "normal"};
|
|
141
141
|
opacity: ${element.opacity || 1};
|
|
142
142
|
`;
|
|
143
143
|
if (element.controlType === "svg") {
|
package/package.json
CHANGED