UNPKG

@dialpad/dialtone-icons

Version:
167 lines (166 loc) 13.4 kB
import { g as f } from "../../utils-BOfnFgIH.js"; import { I as l } from "../../constants-DeVuDy8J.js"; import { openBlock as s, createElementBlock as d, normalizeClass as n, createElementVNode as e, createStaticVNode as t } from "vue"; import { _ as u } from "../../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconO365Calendar", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (o) => Object.keys(l).includes(o) }, /** * 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 l[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"), this.uniqueID = f(); } }, p = ["aria-label", "data-qa", "aria-hidden"], h = ["clip-path"], B = ["fill"], x = ["fill"], g = { filter: "url(#m)" }, _ = ["fill"], C = { filter: "url(#o)" }, F = ["fill"], S = ["id"], m = ["id"], y = ["id"], G = ["id"], M = ["id"]; function O(o, r, a, w, v, i) { return s(), d("svg", { "aria-label": a.ariaLabel, class: n([i.iconSizeClass, "d-icon d-icon--o365-calendar"]), "data-qa": i.dataQA, "aria-hidden": i.ariaHidden, role: "img", "data-name": "O365 Calendar", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, [ e("g", { "clip-path": `url(#${o.uniqueID}a)` }, [ e("rect", { x: "2", y: "3.428", width: "20", height: "5.714", rx: "1.143", fill: `url(#${o.uniqueID}b)` }, null, 8, B), e("path", { d: "M2 7.715h20v13.143c0 .631-.512 1.143-1.143 1.143H3.143A1.143 1.143 0 0 1 2 20.858V7.715Z", fill: `url(#${o.uniqueID}c)` }, null, 8, x), r[0] || (r[0] = t('<g filter="url(#d)"><circle cx="10.213" cy="10.215" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#e)"><circle cx="10.213" cy="14.5" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#f)"><circle cx="10.213" cy="18.787" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#g)"><circle cx="5.93" cy="14.5" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#h)"><circle cx="5.93" cy="18.787" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#i)"><circle cx="14.499" cy="10.215" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#j)"><circle cx="18.786" cy="10.215" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#k)"><circle cx="14.499" cy="14.5" fill="#F2F2F2" r="1.071"></circle></g><g filter="url(#l)"><circle cx="18.786" cy="14.5" fill="#F2F2F2" r="1.071"></circle></g>', 9)), e("g", g, [ e("rect", { x: "6.286", y: "2", width: "2.857", height: "4.286", rx: "1.429", fill: `url(#${o.uniqueID}n)` }, null, 8, _) ]), e("g", C, [ e("rect", { x: "14.858", y: "2", width: "2.857", height: "4.286", rx: "1.429", fill: `url(#${o.uniqueID}p)` }, null, 8, F) ]) ], 8, h), e("defs", null, [ r[6] || (r[6] = t('<filter id="d" x="5.714" y="6.858" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="e" x="5.714" y="11.143" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="f" x="5.714" y="15.43" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="g" x="1.43" y="11.143" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="h" x="1.43" y="15.43" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="i" x="9.999" y="6.858" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="j" x="14.286" y="6.858" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="k" x="9.999" y="11.143" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="l" x="14.286" y="11.143" width="11.286" height="11.286" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="2.286"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="m" x="2.858" y="-1.429" width="12" height="13.429" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="1.143"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter><filter id="o" x="11.43" y="-1.429" width="12" height="13.429" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dx="1.143" dy="1.143"></feOffset><feGaussianBlur stdDeviation="2.286"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_13091_975"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_13091_975" result="shape"></feBlend></filter>', 11)), e("linearGradient", { id: `${o.uniqueID}b`, x1: "2.714", y1: "4.143", x2: "22", y2: "7.714", gradientUnits: "userSpaceOnUse" }, [...r[1] || (r[1] = [ e("stop", { "stop-color": "#0667B8" }, null, -1), e("stop", { offset: "1", "stop-color": "#0E5399" }, null, -1) ])], 8, S), e("linearGradient", { id: `${o.uniqueID}c`, x1: "2.714", y1: "8.365", x2: "19.219", y2: "22.889", gradientUnits: "userSpaceOnUse" }, [...r[2] || (r[2] = [ e("stop", { "stop-color": "#28AFEA" }, null, -1), e("stop", { offset: "1", "stop-color": "#1797E0" }, null, -1) ])], 8, m), e("linearGradient", { id: `${o.uniqueID}n`, x1: "7.715", y1: "2", x2: "7.715", y2: "6.286", gradientUnits: "userSpaceOnUse" }, [...r[3] || (r[3] = [ e("stop", { "stop-color": "#3CCBF4" }, null, -1), e("stop", { offset: "1", "stop-color": "#3CCBF4" }, null, -1) ])], 8, y), e("linearGradient", { id: `${o.uniqueID}p`, x1: "16.287", y1: "2", x2: "16.287", y2: "6.286", gradientUnits: "userSpaceOnUse" }, [...r[4] || (r[4] = [ e("stop", { "stop-color": "#3CCBF4" }, null, -1), e("stop", { offset: "1", "stop-color": "#3CCBF4" }, null, -1) ])], 8, G), e("clipPath", { id: `${o.uniqueID}a` }, [...r[5] || (r[5] = [ e("path", { fill: "#fff", d: "M0 0h24v24H0z" }, null, -1) ])], 8, M) ]) ], 10, p); } const D = /* @__PURE__ */ u(c, [["render", O]]); export { D as default }; //# sourceMappingURL=o365-calendar.js.map