@dialpad/dialtone-icons
Version:
Dialtone icon library
78 lines (77 loc) • 2.52 kB
JavaScript
import { I as t } from "../../constants-DeVuDy8J.js";
import { openBlock as r, createElementBlock as d, normalizeClass as s, createElementVNode as l } from "vue";
import { _ as h } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const n = {
name: "DtIconAmex",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (a) => Object.keys(t).includes(a)
},
/**
* 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 t[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded");
}
}, o = ["aria-label", "data-qa", "aria-hidden"], c = /* @__PURE__ */ l("rect", {
x: ".25",
y: "3.75",
width: "23.5",
height: "16.5",
rx: "1.75",
fill: "#1F72CD",
stroke: "#E3E5E8",
"stroke-width": ".5"
}, null, -1), m = /* @__PURE__ */ l("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M4.257 9.4 2 14.542h2.702l.335-.82h.766l.335.82h2.974v-.626l.265.626h1.539l.265-.639v.639h6.185l.753-.799.704.799 3.177.007-2.264-2.564L22 9.4h-3.128l-.732.784-.682-.784h-6.73l-.577 1.327L9.559 9.4H6.863v.604l-.3-.604H4.257Zm.523.73h1.317l1.497 3.487V10.13h1.443l1.157 2.5 1.065-2.5h1.436v3.69h-.873l-.008-2.891-1.273 2.89h-.782l-1.28-2.89v2.89H6.68l-.34-.826H4.5l-.34.826h-.963L4.78 10.13Zm12.266 0h-3.552v3.688h3.497l1.128-1.222 1.086 1.222h1.136l-1.651-1.833 1.65-1.855h-1.086l-1.121 1.208-1.087-1.208Zm-11.625.624-.607 1.474h1.212l-.605-1.473Zm8.95.814v-.674h2.217l.967 1.077-1.01 1.083h-2.174v-.736h1.938v-.75h-1.938Z",
fill: "#fff"
}, null, -1), _ = [
c,
m
];
function f(a, u, i, v, p, e) {
return r(), d("svg", {
"aria-label": i.ariaLabel,
class: s([e.iconSizeClass, "d-icon d-icon--amex"]),
"data-qa": e.dataQA,
"aria-hidden": e.ariaHidden,
role: "img",
"data-name": "Amex",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, _, 10, o);
}
const w = /* @__PURE__ */ h(n, [["render", f]]);
export {
w as default
};
//# sourceMappingURL=amex.js.map