@@ -5,6 +5,7 @@ import { activeMode, copyPreviewColor, getTransformedId, inBag, preferredCase, p
55import { Download } from ' ../utils/pack'
66import { dataUrlToBlob } from ' ../utils/dataUrlToBlob'
77import { idCases } from ' ../utils/case'
8+ import InstallIconSet from ' ./InstallIconSet.vue'
89
910const props = defineProps ({
1011 icon: {
@@ -122,20 +123,20 @@ const collection = computed(() => {
122123 </div >
123124 <div class =" px-6 py-2 mb-2 md:px-2 md:py-4" >
124125 <button
125- class =" text-gray-500 hover:text-primary text-sm dark: text-dark-500 !outline-none"
126+ class =" op35 hover:text-primary hover:op100 text-sm !outline-none"
126127 @click =" showHelp = !showHelp"
127128 >
128129 How to use the icon?
129130 </button >
130- <div class =" flex text-gray-700 relative font-mono dark:text-dark-900 " >
131+ <div class =" flex op75 relative font-mono" >
131132 {{ transformedId }}
132133 <IconButton icon =" carbon:copy" class =" ml-2" @click =" copy('id')" />
133134 <IconButton icon =" carbon:chevron-up" class =" ml-2" @click =" showCaseSelect = !showCaseSelect" />
134135 <div class =" flex-auto" />
135136 <div
136137 v-if =" showCaseSelect"
137138 ref =" caseSelector"
138- class =" absolute left-0 bottom-1.8em text-sm rounded shadow p-2 bg-white dark:bg-dark-100 dark:border dark:border-dark-200"
139+ class =" absolute left-0 bottom-1.8em text-sm rounded shadow p-2 bg-base dark:border dark:border-dark-200"
139140 >
140141 <div
141142 v-for =" [k, v] of Object.entries(idCases)"
@@ -162,7 +163,7 @@ const collection = computed(() => {
162163 >{{ collection.license.title }}</a >
163164 </div >
164165
165- <p v-if =" showCollection && collection" class =" flex mb-1 text-gray-500 text-sm" >
166+ <p v-if =" showCollection && collection" class =" flex mb-1 op50 text-sm" >
166167 Collection:
167168 <RouterLink
168169 class =" ml-1 text-gray-600 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-200"
@@ -178,7 +179,7 @@ const collection = computed(() => {
178179 inline-block leading-1em border border-base my-2 mr-2 font-sans pl-2 pr-3 py-1 rounded-full text-sm cursor-pointer
179180 hover:bg-gray-50 dark:hover:bg-dark-200
180181 "
181- :class =" inBag(icon) ? 'text-primary' : 'text-gray-500 '"
182+ :class =" inBag(icon) ? 'text-primary' : 'op50 '"
182183 @click =" toggleBag(icon)"
183184 >
184185 <template v-if =" inBag (icon )" >
@@ -197,7 +198,7 @@ const collection = computed(() => {
197198 inline-block leading-1em border border-base my-2 mr-2 font-sans pl-2 pr-3 py-1 rounded-full text-sm cursor-pointer
198199 hover:bg-gray-50 dark:hover:bg-dark-200
199200 "
200- :class =" activeMode === 'select' ? 'text-primary' : 'text-gray-500 '"
201+ :class =" activeMode === 'select' ? 'text-primary' : 'op50 '"
201202 @click =" toggleSelectingMode"
202203 >
203204 <Icon class =" inline-block text-lg align-middle" icon =" carbon:list-checked" />
@@ -209,7 +210,7 @@ const collection = computed(() => {
209210 inline-block leading-1em border border-base my-2 mr-2 font-sans pl-2 pr-3 py-1 rounded-full text-sm cursor-pointer
210211 hover:bg-gray-50 dark:hover:bg-dark-200
211212 "
212- :class =" copyPreviewColor ? 'text-primary' : 'text-gray-500 '"
213+ :class =" copyPreviewColor ? 'text-primary' : 'op50 '"
213214 @click =" copyPreviewColor = !copyPreviewColor"
214215 >
215216 <Icon v-if =" !copyPreviewColor" class =" inline-block text-lg align-middle" icon =" carbon:checkbox" />
@@ -220,7 +221,7 @@ const collection = computed(() => {
220221
221222 <div class =" flex flex-wrap mt-2" >
222223 <div class =" mr-4" >
223- <div class =" my-1 text-gray-500 text-sm" >
224+ <div class =" my-1 op50 text-sm" >
224225 Snippets
225226 </div >
226227 <button class =" btn small mr-1 mb-1 opacity-75" @click =" copy('svg')" >
@@ -240,7 +241,7 @@ const collection = computed(() => {
240241 </button >
241242 </div >
242243 <div class =" mr-4" >
243- <div class =" my-1 text-gray-500 text-sm" >
244+ <div class =" my-1 op50 text-sm" >
244245 Components
245246 </div >
246247 <button class =" btn small mr-1 mb-1 opacity-75" @click =" copy('vue')" >
@@ -275,7 +276,7 @@ const collection = computed(() => {
275276 </button >
276277 </div >
277278 <div class =" mr-4" >
278- <div class =" my-1 text-gray-500 text-sm" >
279+ <div class =" my-1 op50 text-sm" >
279280 Links
280281 </div >
281282 <button class =" btn small mr-1 mb-1 opacity-75" @click =" copy('url')" >
@@ -286,7 +287,7 @@ const collection = computed(() => {
286287 </button >
287288 </div >
288289 <div class =" mr-4" >
289- <div class =" my-1 text-gray-500 text-sm" >
290+ <div class =" my-1 op50 text-sm" >
290291 Download
291292 </div >
292293 <button class =" btn small mr-1 mb-1 opacity-75" @click =" download('svg')" >
@@ -321,7 +322,7 @@ const collection = computed(() => {
321322 </button >
322323 </div >
323324 <div class =" mr-4" >
324- <div class =" my-1 text-gray-500 text-sm" >
325+ <div class =" my-1 op50 text-sm" >
325326 View on
326327 </div >
327328 <a
@@ -342,8 +343,8 @@ const collection = computed(() => {
342343 </a >
343344 </div >
344345 </div >
346+
347+ <InstallIconSet v-if =" collection" :collection =" collection" />
345348 </div >
346349 </div >
347350</template >
348- ../utils/copyPng
349- ../utils/svgToPng
0 commit comments