@dialpad/dialtone-icons
Version:
Dialtone icon library
90 lines (89 loc) • 2.77 kB
JavaScript
import { I as r } from "../../constants-DeVuDy8J.js";
import { openBlock as i, createElementBlock as n, normalizeClass as s, createElementVNode as e } from "vue";
import { _ as o } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const c = {
name: "DtIconMastercard",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (t) => Object.keys(r).includes(t)
},
/**
* The label of the icon as read out by a screenreader. Leave this unset if your icon is purely presentational
*/
ariaLabel: {
type: String,
default: void 0
}
},
/**
* @TODO: Remove this emit once the icons migration is complete,
* they will no longer need this event.
* */
emits: ["loaded"],
computed: {
iconSizeClass() {
return r[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded");
}
}, u = ["aria-label", "data-qa", "aria-hidden"];
function f(t, l, d, m, p, a) {
return i(), n("svg", {
"aria-label": d.ariaLabel,
class: s([a.iconSizeClass, "d-icon d-icon--mastercard"]),
"data-qa": a.dataQA,
"aria-hidden": a.ariaHidden,
role: "img",
"data-name": "Mastercard",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, [...l[0] || (l[0] = [
e("rect", {
x: ".25",
y: "3.75",
width: "23.5",
height: "16.5",
rx: "1.75",
fill: "#fff",
stroke: "#E3E5E8",
"stroke-width": ".5"
}, null, -1),
e("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M12 15.694a4.867 4.867 0 0 1-3.148 1.145C6.172 16.84 4 14.693 4 12.045 4 9.397 6.173 7.25 8.852 7.25c1.201 0 2.3.431 3.148 1.145a4.868 4.868 0 0 1 3.148-1.145c2.68 0 4.852 2.147 4.852 4.795s-2.172 4.794-4.852 4.794c-1.201 0-2.3-.43-3.148-1.145Z",
fill: "#ED0006"
}, null, -1),
e("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M12 15.694a4.761 4.761 0 0 0 1.705-3.65c0-1.46-.662-2.77-1.705-3.649a4.868 4.868 0 0 1 3.148-1.145c2.68 0 4.852 2.147 4.852 4.795s-2.172 4.794-4.852 4.794c-1.201 0-2.3-.43-3.148-1.145Z",
fill: "#F9A000"
}, null, -1),
e("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M12 15.694a4.761 4.761 0 0 0 1.705-3.65c0-1.46-.662-2.77-1.705-3.649a4.761 4.761 0 0 0-1.705 3.65c0 1.461.662 2.77 1.705 3.649Z",
fill: "#FF5E00"
}, null, -1)
])], 10, u);
}
const E = /* @__PURE__ */ o(c, [["render", f]]);
export {
E as default
};
//# sourceMappingURL=mastercard.js.map