UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

57 lines (56 loc) 3.07 kB
import { g as e } from "../../utils-BOfnFgIH.js"; import { I as o } from "../../constants-DeVuDy8J.js"; import { n as r } from "../../_plugin-vue2_normalizer-DSLOjnn3.js"; const i = { name: "DtIconDialpadSparkle", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (s) => Object.keys(o).includes(s) }, /** * 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 o[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"), this.uniqueID = e(); } }; var l = function() { var a = this, t = a._self._c; return t("svg", { staticClass: "d-icon d-icon--dialpad-sparkle", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Dialpad Sparkle", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M19 2a1 1 0 0 1 1 1v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0V6h-1a1 1 0 1 1 0-2h1V3a1 1 0 0 1 1-1Zm-9 2a1 1 0 0 1 .91.586l2.033 4.471 4.47 2.033a1 1 0 0 1 0 1.82l-4.47 2.033-2.033 4.47a1 1 0 0 1-1.82 0l-2.033-4.47-4.47-2.033a1 1 0 0 1 0-1.82l4.47-2.033 2.033-4.47A1 1 0 0 1 10 4Zm0 3.417-1.277 2.81a1 1 0 0 1-.497.496L5.416 12l2.81 1.277a1 1 0 0 1 .497.497L10 16.584l1.277-2.81a1 1 0 0 1 .497-.497L14.584 12l-2.81-1.277a1 1 0 0 1-.497-.497L10 7.416ZM18 16a1 1 0 0 1 1 1v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0v-1h-1a1 1 0 1 1 0-2h1v-1a1 1 0 0 1 1-1Z", fill: `url(#${a.uniqueID}a)` } }), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}a`, x1: "2", y1: "2", x2: "22", y2: "22", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#471571" } }), t("stop", { attrs: { offset: ".031", "stop-color": "#551B84" } }), t("stop", { attrs: { offset: ".145", "stop-color": "#7C229E" } }), t("stop", { attrs: { offset: ".237", "stop-color": "#9024A4" } }), t("stop", { attrs: { offset: ".355", "stop-color": "#B02290" } }), t("stop", { attrs: { offset: ".483", "stop-color": "#D32B86" } }), t("stop", { attrs: { offset: ".603", "stop-color": "#E92F6F" } }), t("stop", { attrs: { offset: ".701", "stop-color": "#F6484F" } }), t("stop", { attrs: { offset: ".9", "stop-color": "#FB7328" } }), t("stop", { attrs: { offset: ".973", "stop-color": "#F3960F" } }), t("stop", { attrs: { offset: "1", "stop-color": "#F3960F" } })], 1)], 1)]); }, n = [], p = /* @__PURE__ */ r( i, l, n ); const u = p.exports; export { u as default }; //# sourceMappingURL=dialpad-sparkle.js.map