Rename and organize widget components to conform to design terminology (#132)

This commit is contained in:
Keavon Chambers
2021-05-21 13:10:32 -07:00
parent b9248b828c
commit 3b0762ef18
17 changed files with 251 additions and 220 deletions
@@ -0,0 +1,51 @@
<template>
<div class="icon" :class="[`size-${String(size)}`, gapAfter && 'gap-after']">
<slot></slot>
</div>
</template>
<style lang="scss">
.icon {
display: inline-block;
flex: 0 0 auto;
fill: #ddd;
vertical-align: top;
width: 16px;
height: 16px;
&:not(.gap-after) + .icon {
margin-left: 0;
}
&.size-10 {
width: 10px;
height: 10px;
}
&.size-12 {
width: 12px;
height: 12px;
}
&.size-16 {
width: 16px;
height: 16px;
}
&.size-24 {
width: 24px;
height: 24px;
}
}
</style>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
props: {
size: { type: Number, required: true },
gapAfter: { type: Boolean, default: false },
},
});
</script>