UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

56 lines (55 loc) 2.45 kB
import { I as r } from "../constants-DeVuDy8J.js"; import { n as i } from "../_plugin-vue2_normalizer-DSLOjnn3.js"; const d = { 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"); } }; var s = function() { var a = this, e = a._self._c; return e("svg", { staticClass: "d-icon d-icon--mastercard", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "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" } }, [e("rect", { attrs: { x: ".25", y: "3.75", width: "23.5", height: "16.5", rx: "1.75", fill: "#fff", stroke: "#E3E5E8", "stroke-width": ".5" } }), e("path", { attrs: { "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" } }), e("path", { attrs: { "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" } }), e("path", { attrs: { "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" } })]); }, l = [], n = /* @__PURE__ */ i( d, s, l ); const f = n.exports; export { f as default }; //# sourceMappingURL=mastercard.js.map