diff --git a/src/components.d.ts b/src/components.d.ts index da938807..41364c7f 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -23,6 +23,7 @@ declare module 'vue' { IconDetail: typeof import('./components/IconDetail.vue')['default'] Icons: typeof import('./components/Icons.vue')['default'] IconSet: typeof import('./components/IconSet.vue')['default'] + InstallIconSet: typeof import('./components/InstallIconSet.vue')['default'] Modal: typeof import('./components/Modal.vue')['default'] ModalDialog: typeof import('./components/ModalDialog.vue')['default'] Navbar: typeof import('./components/Navbar.vue')['default'] diff --git a/src/components/IconDetail.vue b/src/components/IconDetail.vue index 9001fa4f..5c2bf116 100644 --- a/src/components/IconDetail.vue +++ b/src/components/IconDetail.vue @@ -5,6 +5,7 @@ import { activeMode, copyPreviewColor, getTransformedId, inBag, preferredCase, p import { Download } from '../utils/pack' import { dataUrlToBlob } from '../utils/dataUrlToBlob' import { idCases } from '../utils/case' +import InstallIconSet from './InstallIconSet.vue' const props = defineProps({ icon: { @@ -122,12 +123,12 @@ const collection = computed(() => {
-
+
{{ transformedId }} @@ -135,7 +136,7 @@ const collection = computed(() => {
{ >{{ collection.license.title }}
-

+

Collection: { 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 hover:bg-gray-50 dark:hover:bg-dark-200 " - :class="inBag(icon) ? 'text-primary' : 'text-gray-500'" + :class="inBag(icon) ? 'text-primary' : 'op50'" @click="toggleBag(icon)" > -../utils/copyPng -../utils/svgToPng diff --git a/src/components/InstallIconSet.vue b/src/components/InstallIconSet.vue new file mode 100644 index 00000000..9e2d20a7 --- /dev/null +++ b/src/components/InstallIconSet.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/components/Notification.vue b/src/components/Notification.vue index 988604d9..2bbfb998 100644 --- a/src/components/Notification.vue +++ b/src/components/Notification.vue @@ -12,8 +12,9 @@ withDefaults( >

('icones-bags', []) export const activeMode = useStorage('active-mode', 'normal') export const preferredCase = useStorage('icones-preferfed-case', 'iconify') export const drawerCollapsed = useStorage('icones-drawer-collapsed', false) +export const selectedPackageManager = useStorage('icones-package-manager', 'pnpm') export const excludedCollectionIds = useStorage('icones-excluded-collections', []) export const excludedCategories = useStorage('icones-excluded-categories', [ diff --git a/unocss.config.ts b/unocss.config.ts index fc0e1395..c5ed89f2 100755 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -2,7 +2,7 @@ import { defineConfig, presetAttributify, presetIcons, presetUno, transformerDir export default defineConfig({ shortcuts: { - 'border-base': 'border-gray-200 dark:border-dark-100', + 'border-base': 'border-hex-888/15', 'border-dark-only': 'border-transparent dark:border-dark-100', 'bg-base': 'bg-white dark:bg-[#181818]', 'color-base': 'text-gray-900 dark:text-gray-300',