@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 4.1 kB
JavaScript
import { g as s } from "../utils-BOfnFgIH.js";
import { I as r } from "../constants-DeVuDy8J.js";
import { n as i } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
name: "DtIconJcb",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (e) => Object.keys(r).includes(e)
},
/**
* 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"), this.uniqueID = s();
}
};
var o = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--jcb", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Jcb", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("rect", { attrs: { x: ".25", y: "3.75", width: "23.5", height: "16.5", rx: "1.75", fill: "#fff", stroke: "#E3E5E8", "stroke-width": ".5" } }), t("path", { attrs: { d: "M15.424 12.393c.375.008.752-.017 1.126.013.378.07.469.643.133.83-.23.124-.502.047-.75.069h-.51v-.912Zm1.342-1.032c.084.295-.2.559-.483.518h-.86c.007-.277-.01-.578.01-.84.344.009.691-.02 1.033.014a.41.41 0 0 1 .3.308Zm2.068-4.36c.016.561.002 1.152.007 1.725-.001 2.33.002 4.66-.002 6.99-.015.873-.789 1.631-1.656 1.649-.868.003-1.736 0-2.604.001v-3.522c.946-.005 1.892.01 2.837-.007.439-.028.92-.317.94-.8.051-.485-.406-.82-.84-.873-.166-.004-.161-.048 0-.068.414-.09.74-.517.618-.946-.104-.451-.603-.626-1.018-.625-.845-.006-1.691-.001-2.537-.003.006-.657-.011-1.315.01-1.972.066-.858.86-1.565 1.714-1.55h2.53Z", fill: `url(#${a.uniqueID}a)` } }), t("path", { attrs: { d: "M5.022 8.638c.022-.871.8-1.624 1.665-1.636.865-.003 1.73 0 2.594-.002-.002 2.917.005 5.834-.003 8.75-.034.861-.802 1.6-1.659 1.615-.866.003-1.732 0-2.599.001v-3.64c.842.198 1.724.283 2.583.151.513-.083 1.074-.335 1.248-.867.128-.455.056-.935.075-1.402v-1.086H7.44c-.006.718.014 1.438-.01 2.155-.04.44-.477.72-.893.705C6.022 13.388 5 13.01 5 13.01c-.002-1.345.015-3.03.022-4.37Z", fill: `url(#${a.uniqueID}b)` } }), t("path", { attrs: { d: "M9.835 10.96c-.078.017-.015-.266-.035-.374.005-.678-.011-1.358.009-2.036.067-.86.866-1.57 1.724-1.55h2.528c-.002 2.917.005 5.834-.004 8.75-.033.861-.802 1.6-1.658 1.615-.866.003-1.733 0-2.6.001v-3.989c.592.486 1.397.561 2.134.563a7.16 7.16 0 0 0 1.648-.214v-.731c-.608.303-1.323.496-1.998.321a1.088 1.088 0 0 1-.804-1.057c-.054-.504.242-1.037.738-1.187.616-.193 1.287-.046 1.864.205.124.065.25.145.2-.062v-.574c-.966-.23-1.993-.314-2.963-.064a2.175 2.175 0 0 0-.783.383Z", fill: `url(#${a.uniqueID}c)` } }), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}a`, x1: "14.55", y1: "11.962", x2: "18.814", y2: "11.962", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#58B03A" } }), t("stop", { attrs: { offset: "1", "stop-color": "#55B330" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}b`, x1: "4.93", y1: "12.283", x2: "9.211", y2: "12.283", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#0F6EB6" } }), t("stop", { attrs: { offset: "1", "stop-color": "#006DBA" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}c`, x1: "9.793", y1: "12.062", x2: "14.06", y2: "12.062", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#DE0D3D" } }), t("stop", { attrs: { offset: "1", "stop-color": "#E30138" } })], 1)], 1)]);
}, c = [], d = /* @__PURE__ */ i(
n,
o,
c
);
const f = d.exports;
export {
f as default
};
//# sourceMappingURL=jcb.js.map