@dialpad/dialtone-icons
Version:
Dialtone icon library
68 lines (67 loc) • 2.19 kB
JavaScript
import { I as t } from "../constants-DeVuDy8J.js";
import { openBlock as r, createElementBlock as d, normalizeClass as l, createElementVNode as s } from "vue";
import { _ as n } from "../_plugin-vue_export-helper-CHgC5LLL.js";
const o = {
name: "DtIconThumbsUpFilled",
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");
}
}, c = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ s("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M6.044 1a.406.406 0 0 0-.367.222L4.128 4.291v6.563c.075.09.187.146.313.146h4.147a1.335 1.335 0 0 0 1.28-.952l1.079-3.678a1.312 1.312 0 0 0-.213-1.163 1.33 1.33 0 0 0-1.066-.529H7.482l.341-1.395v-.001a1.827 1.827 0 0 0-.333-1.567A1.853 1.853 0 0 0 6.044 1ZM3.317 4.682v6.314A.412.412 0 0 1 3.26 11h-.927c-.353 0-.692-.14-.942-.387A1.316 1.316 0 0 1 1 9.678V6c0-.35.14-.687.39-.935s.589-.387.942-.387h.927c.02 0 .04.002.058.004Z",
fill: "currentColor"
}, null, -1), u = [
_
];
function m(a, h, i, p, f, e) {
return r(), d("svg", {
"aria-label": i.ariaLabel,
class: l([e.iconSizeClass, "d-icon d-icon--thumbs-up-filled"]),
"data-qa": e.dataQA,
"aria-hidden": e.ariaHidden,
role: "img",
"data-name": "Thumbs Up Filled",
viewBox: "0 0 12 12",
xmlns: "http://www.w3.org/2000/svg"
}, u, 10, c);
}
const I = /* @__PURE__ */ n(o, [["render", m]]);
export {
I as default
};
//# sourceMappingURL=thumbs-up-filled.js.map