@poveste/vendors 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/dist/client/b-floating-vue.d.ts +3 -0
- package/dist/client/b-floating-vue.js +3377 -0
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/b-iconify.js +1883 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/b-pinia.js +2069 -0
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/b-scroll.js +7 -0
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/b-vue-router.js +2773 -0
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/b-vue-use.js +9626 -0
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/b-vue.js +1 -0
- package/dist/client/index.js +169 -0
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/dist/client/node_modules/@babel/parser/package.json +50 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2796 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3616 -0
- package/dist/client/node_modules/@babel/types/package.json +39 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +63 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +74 -0
- package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -0
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +128 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +17 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
- package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
- package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
- package/dist/client/node_modules/@iconify/types/package.json +23 -0
- package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
- package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +475 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +114 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +65 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +265 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +46 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +58 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +57 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +485 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +78 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +180 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +753 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +55 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1839 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +52 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1430 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +60 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +55 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/dist/client/node_modules/@vue/shared/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +6221 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/package.json +57 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +78 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +46 -0
- package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +1260 -0
- package/dist/client/node_modules/@vueuse/shared/package.json +49 -0
- package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +82 -0
- package/dist/client/node_modules/csstype/index.d.ts +22569 -0
- package/dist/client/node_modules/csstype/package.json +70 -0
- package/dist/client/node_modules/entities/decode.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
- package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/dist/client/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/dist/client/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
- package/dist/client/node_modules/entities/escape.d.ts +3 -0
- package/dist/client/node_modules/entities/package.json +120 -0
- package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/dist/client/node_modules/estree-walker/package.json +37 -0
- package/dist/client/node_modules/estree-walker/src/package.json +1 -0
- package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
- package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +495 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +474 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +37 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +414 -0
- package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +67 -0
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
- package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +2239 -0
- package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +14 -0
- package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
- package/dist/client/node_modules/floating-vue/package.json +80 -0
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/dist/client/node_modules/magic-string/package.json +67 -0
- package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
- package/dist/client/node_modules/nanoid/async/package.json +12 -0
- package/dist/client/node_modules/nanoid/index.d.ts +91 -0
- package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
- package/dist/client/node_modules/nanoid/package.json +89 -0
- package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/dist/client/node_modules/picocolors/package.json +25 -0
- package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
- package/dist/client/node_modules/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +1074 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +33 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +38 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/pinia/package.json +96 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +67 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +68 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +226 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +60 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +555 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +464 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +114 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +204 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +86 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +126 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +146 -0
- package/dist/client/node_modules/postcss/package.json +88 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +80 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/dist/client/node_modules/source-map-js/package.json +71 -0
- package/dist/client/node_modules/source-map-js/source-map.d.ts +104 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +4 -0
- package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +7 -0
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/dist/client/node_modules/vue/jsx-runtime/package.json +5 -0
- package/dist/client/node_modules/vue/jsx.d.ts +22 -0
- package/dist/client/node_modules/vue/package.json +112 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +4 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
- package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
- package/dist/client/node_modules/vue-router/package.json +153 -0
- package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -0
- package/dist/client/vue.runtime.esm-bundler.js +13167 -0
- package/entries.js +9 -0
- package/floating-vue.d.ts +4 -0
- package/iconify.d.ts +4 -0
- package/package.json +50 -0
- package/pinia.d.ts +4 -0
- package/rollup.config.mjs +119 -0
- package/scroll.d.ts +4 -0
- package/src/client/b-floating-vue.ts +5 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +4 -0
- package/src/client/b-vue-router.ts +1 -0
- package/src/client/b-vue-use.ts +1 -0
- package/src/client/b-vue.ts +1 -0
- package/tsconfig.json +34 -0
- package/vue-router.d.ts +4 -0
- package/vue-use.d.ts +4 -0
- package/vue.d.ts +4 -0
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
import type { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import type { DefineComponent } from 'vue';
|
|
4
|
+
import { IconifyIcon } from '@iconify/types';
|
|
5
|
+
import { IconifyJSON } from '@iconify/types';
|
|
6
|
+
import { IconifyTransformations } from '@iconify/types';
|
|
7
|
+
import { PublicProps } from 'vue';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Add custom config for provider
|
|
11
|
+
*/
|
|
12
|
+
export declare function addAPIProvider(provider: string, customConfig: PartialIconifyAPIConfig): boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Add icon set
|
|
16
|
+
*/
|
|
17
|
+
export declare function addCollection(data: IconifyJSON, provider?: string): boolean;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Add one icon
|
|
21
|
+
*/
|
|
22
|
+
export declare function addIcon(name: string, data: IconifyIcon | null): boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Internal API
|
|
26
|
+
*/
|
|
27
|
+
export declare const _api: IconifyAPIInternalFunctions;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Storage types
|
|
31
|
+
*
|
|
32
|
+
* @deprecated This type is not used anymore
|
|
33
|
+
*/
|
|
34
|
+
declare type BrowserStorageType = 'local' | 'session';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get SVG attributes and content from icon + customisations
|
|
38
|
+
*
|
|
39
|
+
* Does not generate style to make it compatible with frameworks that use objects for style, such as React.
|
|
40
|
+
* Instead, it generates 'inline' value. If true, rendering engine should add verticalAlign: -0.125em to icon.
|
|
41
|
+
*
|
|
42
|
+
* Customisations should be normalised by platform specific parser.
|
|
43
|
+
* Result should be converted to <svg> by platform specific parser.
|
|
44
|
+
* Use replaceIDs to generate unique IDs for body.
|
|
45
|
+
*/
|
|
46
|
+
export declare function buildIcon(icon: IconifyIcon, customisations?: IconifyIconCustomisations_2): IconifyIconBuildResult;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Calculate second dimension when only 1 dimension is set
|
|
50
|
+
*/
|
|
51
|
+
export declare function calculateSize(size: string, ratio: number, precision?: number): string;
|
|
52
|
+
|
|
53
|
+
export declare function calculateSize(size: number, ratio: number, precision?: number): number;
|
|
54
|
+
|
|
55
|
+
export declare function calculateSize(size: string | number, ratio: number, precision?: number): string | number;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Disable cache
|
|
59
|
+
*
|
|
60
|
+
* @deprecated No longer used
|
|
61
|
+
*/
|
|
62
|
+
export declare function disableCache(storage: IconifyBrowserCacheType): void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Enable cache
|
|
66
|
+
*
|
|
67
|
+
* @deprecated No longer used
|
|
68
|
+
*/
|
|
69
|
+
export declare function enableCache(storage: IconifyBrowserCacheType): void;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Signature for getAPIConfig
|
|
73
|
+
*/
|
|
74
|
+
export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Get full icon
|
|
78
|
+
*/
|
|
79
|
+
export declare function getIcon(name: string): Required<IconifyIcon> | null | undefined;
|
|
80
|
+
|
|
81
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* API config
|
|
85
|
+
*/
|
|
86
|
+
export declare interface IconifyAPIConfig extends RedundancyConfig {
|
|
87
|
+
path: string;
|
|
88
|
+
maxURL: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare interface IconifyAPICustomQueryParams {
|
|
92
|
+
type: 'custom';
|
|
93
|
+
provider?: string;
|
|
94
|
+
uri: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Iconify API functions
|
|
99
|
+
*/
|
|
100
|
+
export declare interface IconifyAPIFunctions {
|
|
101
|
+
/**
|
|
102
|
+
* Load icons
|
|
103
|
+
*/
|
|
104
|
+
loadIcons: (icons: (IconifyIconName | string)[], callback?: IconifyIconLoaderCallback) => IconifyIconLoaderAbort;
|
|
105
|
+
/**
|
|
106
|
+
* Load one icon, using Promise syntax
|
|
107
|
+
*/
|
|
108
|
+
loadIcon: (icon: IconifyIconName | string) => Promise<Required<IconifyIcon>>;
|
|
109
|
+
/**
|
|
110
|
+
* Add API provider
|
|
111
|
+
*/
|
|
112
|
+
addAPIProvider: (provider: string, customConfig: PartialIconifyAPIConfig) => boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Set custom loader for multple icons
|
|
115
|
+
*/
|
|
116
|
+
setCustomIconsLoader: (callback: IconifyCustomIconsLoader, prefix: string, provider?: string) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Set custom loader for one icon
|
|
119
|
+
*/
|
|
120
|
+
setCustomIconLoader: (callback: IconifyCustomIconLoader, prefix: string, provider?: string) => void;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Params for sendQuery()
|
|
125
|
+
*/
|
|
126
|
+
declare interface IconifyAPIIconsQueryParams {
|
|
127
|
+
type: 'icons';
|
|
128
|
+
provider: string;
|
|
129
|
+
prefix: string;
|
|
130
|
+
icons: string[];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Exposed internal functions
|
|
135
|
+
*
|
|
136
|
+
* Used by plug-ins, such as Icon Finder
|
|
137
|
+
*
|
|
138
|
+
* Important: any changes published in a release must be backwards compatible.
|
|
139
|
+
*/
|
|
140
|
+
export declare interface IconifyAPIInternalFunctions {
|
|
141
|
+
/**
|
|
142
|
+
* Get API config, used by custom modules
|
|
143
|
+
*/
|
|
144
|
+
getAPIConfig: GetAPIConfig;
|
|
145
|
+
/**
|
|
146
|
+
* Set custom API module
|
|
147
|
+
*/
|
|
148
|
+
setAPIModule: (provider: string, item: IconifyAPIModule) => void;
|
|
149
|
+
/**
|
|
150
|
+
* Send API query
|
|
151
|
+
*/
|
|
152
|
+
sendAPIQuery: (target: string | PartialIconifyAPIConfig, query: IconifyAPIQueryParams, callback: QueryDoneCallback) => QueryAbortCallback;
|
|
153
|
+
/**
|
|
154
|
+
* Set and get fetch()
|
|
155
|
+
*/
|
|
156
|
+
setFetch: (item: typeof fetch) => void;
|
|
157
|
+
getFetch: () => typeof fetch | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* List all API providers (from config)
|
|
160
|
+
*/
|
|
161
|
+
listAPIProviders: () => string[];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* API modules
|
|
166
|
+
*/
|
|
167
|
+
export declare interface IconifyAPIModule {
|
|
168
|
+
prepare: IconifyAPIPrepareIconsQuery;
|
|
169
|
+
send: IconifyAPISendQuery;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Functions to implement in module
|
|
174
|
+
*/
|
|
175
|
+
export declare type IconifyAPIPrepareIconsQuery = (provider: string, prefix: string, icons: string[]) => IconifyAPIIconsQueryParams[];
|
|
176
|
+
|
|
177
|
+
export declare type IconifyAPIQueryParams = IconifyAPIIconsQueryParams | IconifyAPICustomQueryParams;
|
|
178
|
+
|
|
179
|
+
export declare type IconifyAPISendQuery = (host: string, params: IconifyAPIQueryParams, callback: QueryModuleResponse) => void;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Interface for exported functions
|
|
183
|
+
*
|
|
184
|
+
* @deprecated This type is not used anymore
|
|
185
|
+
*/
|
|
186
|
+
export declare interface IconifyBrowserCacheFunctions {
|
|
187
|
+
enableCache: (storage: IconifyBrowserCacheType) => void;
|
|
188
|
+
disableCache: (storage: IconifyBrowserCacheType) => void;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Cache types
|
|
193
|
+
*
|
|
194
|
+
* @deprecated This type is not used anymore
|
|
195
|
+
*/
|
|
196
|
+
export declare type IconifyBrowserCacheType = BrowserStorageType | 'all';
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Interface for exported builder functions
|
|
200
|
+
*/
|
|
201
|
+
export declare interface IconifyBuilderFunctions {
|
|
202
|
+
replaceIDs?: (body: string, prefix?: string | (() => string)) => string;
|
|
203
|
+
calculateSize: (size: string | number, ratio: number, precision?: number) => string | number;
|
|
204
|
+
buildIcon: (icon: IconifyIcon, customisations?: IconifyIconCustomisations_2) => IconifyIconBuildResult;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Custom loader for one icon
|
|
209
|
+
*/
|
|
210
|
+
export declare type IconifyCustomIconLoader = (name: string, prefix: string, provider: string) => Promise<IconifyIcon | null> | IconifyIcon | null;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Custom icons loader
|
|
214
|
+
*/
|
|
215
|
+
export declare type IconifyCustomIconsLoader = (icons: string[], prefix: string, provider: string) => Promise<IconifyJSON | null> | IconifyJSON | null;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Properties for element that are mentioned in render.ts
|
|
219
|
+
*/
|
|
220
|
+
declare interface IconifyElementProps {
|
|
221
|
+
id?: string;
|
|
222
|
+
style?: unknown;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { IconifyIcon }
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Interface for getSVGData() result
|
|
229
|
+
*/
|
|
230
|
+
export declare interface IconifyIconBuildResult {
|
|
231
|
+
attributes: {
|
|
232
|
+
width?: string;
|
|
233
|
+
height?: string;
|
|
234
|
+
viewBox: string;
|
|
235
|
+
};
|
|
236
|
+
viewBox: SVGViewBox;
|
|
237
|
+
body: string;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Icon customisations
|
|
242
|
+
*/
|
|
243
|
+
export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
244
|
+
rotate?: string | number;
|
|
245
|
+
inline?: boolean;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Icon customisations
|
|
250
|
+
*/
|
|
251
|
+
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Customise callback
|
|
256
|
+
*/
|
|
257
|
+
declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Function to abort loading (usually just removes callback because loading is already in progress)
|
|
261
|
+
*/
|
|
262
|
+
export declare type IconifyIconLoaderAbort = () => void;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Loader callback
|
|
266
|
+
*
|
|
267
|
+
* Provides list of icons that have been loaded
|
|
268
|
+
*/
|
|
269
|
+
export declare type IconifyIconLoaderCallback = (loaded: IconifyIconName[], missing: IconifyIconName[], pending: IconifyIconName[], unsubscribe: IconifyIconLoaderAbort) => void;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Icon name
|
|
273
|
+
*/
|
|
274
|
+
export declare interface IconifyIconName {
|
|
275
|
+
readonly provider: string;
|
|
276
|
+
readonly prefix: string;
|
|
277
|
+
readonly name: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Callback for when icon has been loaded (only triggered for icons loaded from API)
|
|
282
|
+
*/
|
|
283
|
+
export declare type IconifyIconOnLoad = (name: string) => void;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Icon properties
|
|
287
|
+
*/
|
|
288
|
+
export declare interface IconifyIconProps extends IconifyIconCustomisations {
|
|
289
|
+
icon: IconifyIcon | string;
|
|
290
|
+
mode?: IconifyRenderMode;
|
|
291
|
+
color?: string;
|
|
292
|
+
flip?: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Icon size
|
|
297
|
+
*/
|
|
298
|
+
export declare type IconifyIconSize = null | string | number;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Dimensions
|
|
302
|
+
*/
|
|
303
|
+
declare interface IconifyIconSizeCustomisations {
|
|
304
|
+
width?: IconifyIconSize;
|
|
305
|
+
height?: IconifyIconSize;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export { IconifyJSON }
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Function to load icons
|
|
312
|
+
*/
|
|
313
|
+
declare type IconifyLoadIcons = (icons: (IconifyIconName | string)[], callback?: IconifyIconLoaderCallback) => IconifyIconLoaderAbort;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Icon render mode
|
|
317
|
+
*
|
|
318
|
+
* 'style' = 'bg' or 'mask', depending on icon content
|
|
319
|
+
* 'bg' = <span> with style using `background`
|
|
320
|
+
* 'mask' = <span> with style using `mask`
|
|
321
|
+
* 'svg' = <svg>
|
|
322
|
+
*/
|
|
323
|
+
export declare type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'svg';
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Interface for exported storage functions
|
|
327
|
+
*/
|
|
328
|
+
export declare interface IconifyStorageFunctions {
|
|
329
|
+
/**
|
|
330
|
+
* Check if icon data is available
|
|
331
|
+
*/
|
|
332
|
+
iconLoaded: (name: string) => boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Older, badly named, version of iconLoaded()
|
|
335
|
+
*
|
|
336
|
+
* @deprecated
|
|
337
|
+
*/
|
|
338
|
+
iconExists: (name: string) => boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Get icon data with all properties
|
|
341
|
+
*
|
|
342
|
+
* Returns null if icon is missing (attempted to load, but failed)
|
|
343
|
+
* Returns undefined if icon was not loaded
|
|
344
|
+
*/
|
|
345
|
+
getIcon: (name: string) => Required<IconifyIcon> | null | undefined;
|
|
346
|
+
/**
|
|
347
|
+
* List all available icons
|
|
348
|
+
*/
|
|
349
|
+
listIcons: (provider?: string, prefix?: string) => string[];
|
|
350
|
+
/**
|
|
351
|
+
* Add icon to storage
|
|
352
|
+
*
|
|
353
|
+
* Data is null if icon is missing
|
|
354
|
+
*/
|
|
355
|
+
addIcon: (name: string, data: IconifyIcon | null) => boolean;
|
|
356
|
+
/**
|
|
357
|
+
* Add icon set to storage
|
|
358
|
+
*/
|
|
359
|
+
addCollection: (data: IconifyJSON, provider?: string) => boolean;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Check if icon data is available
|
|
364
|
+
*/
|
|
365
|
+
declare function iconLoaded(name: string): boolean;
|
|
366
|
+
export { iconLoaded as iconExists }
|
|
367
|
+
export { iconLoaded }
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Mix of icon properties and HTMLElement properties
|
|
371
|
+
*/
|
|
372
|
+
export declare interface IconProps extends IconifyElementProps, IconifyIconProps {
|
|
373
|
+
/**
|
|
374
|
+
* Try load icon on first render during SSR
|
|
375
|
+
*
|
|
376
|
+
* This is a low-level API for framework integrations, you don't usually need to use it directly.
|
|
377
|
+
* Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
|
|
378
|
+
*/
|
|
379
|
+
ssr?: boolean;
|
|
380
|
+
onLoad?: IconifyIconOnLoad;
|
|
381
|
+
customise?: IconifyIconCustomiseCallback;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* List available icons
|
|
386
|
+
*/
|
|
387
|
+
export declare function listIcons(provider?: string, prefix?: string): string[];
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Load one icon using Promise
|
|
391
|
+
*/
|
|
392
|
+
export declare const loadIcon: (icon: IconifyIconName | string) => Promise<Required<IconifyIcon>>;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Load icons
|
|
396
|
+
*/
|
|
397
|
+
export declare const loadIcons: IconifyLoadIcons;
|
|
398
|
+
|
|
399
|
+
export declare type PartialIconifyAPIConfig = Partial<IconifyAPIConfig> & Pick<IconifyAPIConfig, 'resources'>;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Callback for "abort" pending item.
|
|
403
|
+
*/
|
|
404
|
+
declare type QueryAbortCallback = () => void;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Callback
|
|
408
|
+
*
|
|
409
|
+
* If error is present, something went wrong and data is undefined. If error is undefined, data is set.
|
|
410
|
+
*/
|
|
411
|
+
declare type QueryDoneCallback = (data?: QueryModuleResponseData, error?: QueryModuleResponseData) => void;
|
|
412
|
+
|
|
413
|
+
declare type QueryModuleResponse = (status: QueryModuleResponseType, data: QueryModuleResponseData) => void;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Response from query module
|
|
417
|
+
*/
|
|
418
|
+
declare type QueryModuleResponseData = unknown;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Response from query module
|
|
422
|
+
*/
|
|
423
|
+
declare type QueryModuleResponseType = 'success' | 'next' | 'abort';
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Configuration object
|
|
427
|
+
*/
|
|
428
|
+
declare interface RedundancyConfig {
|
|
429
|
+
resources: RedundancyResource[];
|
|
430
|
+
index: number;
|
|
431
|
+
timeout: number;
|
|
432
|
+
rotate: number;
|
|
433
|
+
random: boolean;
|
|
434
|
+
dataAfterTimeout: boolean;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Resource to rotate (usually hostname or partial URL)
|
|
439
|
+
*/
|
|
440
|
+
declare type RedundancyResource = string;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* IDs usage:
|
|
444
|
+
*
|
|
445
|
+
* id="{id}"
|
|
446
|
+
* xlink:href="#{id}"
|
|
447
|
+
* url(#{id})
|
|
448
|
+
*
|
|
449
|
+
* From SVG animations:
|
|
450
|
+
*
|
|
451
|
+
* begin="0;{id}.end"
|
|
452
|
+
* begin="{id}.end"
|
|
453
|
+
* begin="{id}.click"
|
|
454
|
+
*/
|
|
455
|
+
/**
|
|
456
|
+
* Replace IDs in SVG output with unique IDs
|
|
457
|
+
*/
|
|
458
|
+
export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Set custom loader for one icon
|
|
462
|
+
*/
|
|
463
|
+
export declare function setCustomIconLoader(loader: IconifyCustomIconLoader, prefix: string, provider?: string): void;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Set custom loader for multiple icons
|
|
467
|
+
*/
|
|
468
|
+
export declare function setCustomIconsLoader(loader: IconifyCustomIconsLoader, prefix: string, provider?: string): void;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* SVG viewBox: x, y, width, height
|
|
472
|
+
*/
|
|
473
|
+
declare type SVGViewBox = [x: number, y: number, width: number, height: number];
|
|
474
|
+
|
|
475
|
+
export { }
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import type { DefineComponent } from 'vue';
|
|
4
|
+
import type { IconifyIcon } from '@iconify/types';
|
|
5
|
+
import type { IconifyJSON } from '@iconify/types';
|
|
6
|
+
import { IconifyTransformations } from '@iconify/types';
|
|
7
|
+
import { PublicProps } from 'vue';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Add collection to storage, allowing to call icons by name
|
|
11
|
+
*
|
|
12
|
+
* @param data Icon set
|
|
13
|
+
* @param prefix Optional prefix to add to icon names, true (default) if prefix from icon set should be used.
|
|
14
|
+
*/
|
|
15
|
+
export declare function addCollection(data: IconifyJSON, prefix?: string | boolean): void;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Add icon to storage, allowing to call it by name
|
|
19
|
+
*
|
|
20
|
+
* @param name
|
|
21
|
+
* @param data
|
|
22
|
+
*/
|
|
23
|
+
export declare function addIcon(name: string, data: IconifyIcon): void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Component
|
|
27
|
+
*/
|
|
28
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Properties for element that are mentioned in render.ts
|
|
32
|
+
*/
|
|
33
|
+
declare interface IconifyElementProps {
|
|
34
|
+
id?: string;
|
|
35
|
+
style?: unknown;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { IconifyIcon }
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Icon customisations
|
|
42
|
+
*/
|
|
43
|
+
export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
44
|
+
rotate?: string | number;
|
|
45
|
+
inline?: boolean;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Icon customisations
|
|
50
|
+
*/
|
|
51
|
+
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Customise callback
|
|
56
|
+
*/
|
|
57
|
+
declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Callback for when icon has been loaded (only triggered for icons loaded from API)
|
|
61
|
+
*/
|
|
62
|
+
declare type IconifyIconOnLoad = (name: string) => void;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Icon properties
|
|
66
|
+
*/
|
|
67
|
+
export declare interface IconifyIconProps extends IconifyIconCustomisations {
|
|
68
|
+
icon: IconifyIcon | string;
|
|
69
|
+
mode?: IconifyRenderMode;
|
|
70
|
+
color?: string;
|
|
71
|
+
flip?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Icon size
|
|
76
|
+
*/
|
|
77
|
+
export declare type IconifyIconSize = null | string | number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Dimensions
|
|
81
|
+
*/
|
|
82
|
+
declare interface IconifyIconSizeCustomisations {
|
|
83
|
+
width?: IconifyIconSize;
|
|
84
|
+
height?: IconifyIconSize;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { IconifyJSON }
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Icon render mode
|
|
91
|
+
*
|
|
92
|
+
* 'style' = 'bg' or 'mask', depending on icon content
|
|
93
|
+
* 'bg' = <span> with style using `background`
|
|
94
|
+
* 'mask' = <span> with style using `mask`
|
|
95
|
+
* 'svg' = <svg>
|
|
96
|
+
*/
|
|
97
|
+
export declare type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'svg';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Mix of icon properties and HTMLElement properties
|
|
101
|
+
*/
|
|
102
|
+
export declare interface IconProps extends IconifyElementProps, IconifyIconProps {
|
|
103
|
+
/**
|
|
104
|
+
* Try load icon on first render during SSR
|
|
105
|
+
*
|
|
106
|
+
* This is a low-level API for framework integrations, you don't usually need to use it directly.
|
|
107
|
+
* Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
|
|
108
|
+
*/
|
|
109
|
+
ssr?: boolean;
|
|
110
|
+
onLoad?: IconifyIconOnLoad;
|
|
111
|
+
customise?: IconifyIconCustomiseCallback;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iconify/vue/offline",
|
|
3
|
+
"module": "../dist/offline.mjs",
|
|
4
|
+
"main": "../dist/offline.js",
|
|
5
|
+
"types": "../dist/offline.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./*": "./*",
|
|
8
|
+
".": {
|
|
9
|
+
"import": "../dist/offline.mjs",
|
|
10
|
+
"types": "../dist/offline.d.ts",
|
|
11
|
+
"default": "../dist/offline.js"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@iconify/vue",
|
|
3
|
+
"description": "Iconify icon component for Vue 3.",
|
|
4
|
+
"author": "Vjacheslav Trushkin",
|
|
5
|
+
"version": "4.3.0",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bugs": "https://github.com/iconify/iconify/issues",
|
|
8
|
+
"homepage": "https://iconify.design/",
|
|
9
|
+
"funding": "https://github.com/sponsors/cyberalien",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/iconify/iconify.git",
|
|
13
|
+
"directory": "components/vue"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/iconify.js",
|
|
16
|
+
"module": "dist/iconify.mjs",
|
|
17
|
+
"types": "dist/iconify.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./*": "./*",
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./dist/iconify.mjs",
|
|
22
|
+
"types": "./dist/iconify.d.ts",
|
|
23
|
+
"default": "./dist/iconify.js"
|
|
24
|
+
},
|
|
25
|
+
"./offline": {
|
|
26
|
+
"import": "./dist/offline.mjs",
|
|
27
|
+
"types": "./dist/offline.d.ts",
|
|
28
|
+
"default": "./dist/offline.js"
|
|
29
|
+
},
|
|
30
|
+
"./dist/offline": {
|
|
31
|
+
"import": "./dist/offline.mjs",
|
|
32
|
+
"types": "./dist/offline.d.ts",
|
|
33
|
+
"default": "./dist/offline.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@iconify/types": "^2.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@babel/preset-env": "^7.26.0",
|
|
41
|
+
"@microsoft/api-extractor": "^7.48.1",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
43
|
+
"@types/jest": "^29.5.14",
|
|
44
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
45
|
+
"@vue/test-utils": "^2.4.6",
|
|
46
|
+
"jsdom": "^25.0.1",
|
|
47
|
+
"rollup": "^4.29.1",
|
|
48
|
+
"typescript": "^5.7.2",
|
|
49
|
+
"vitest": "^2.1.8",
|
|
50
|
+
"vue": "^3.5.13",
|
|
51
|
+
"@iconify/core": "^3.1.0",
|
|
52
|
+
"@iconify/utils": "^2.2.1"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"vue": ">=3"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "node build",
|
|
59
|
+
"build:lib": "tsc -b",
|
|
60
|
+
"build:dist": "rollup -c rollup.config.mjs",
|
|
61
|
+
"prebuild:api": "api-extractor run --local --verbose --config api-extractor.offline.json",
|
|
62
|
+
"build:api": "api-extractor run --local --verbose --config api-extractor.iconify.json",
|
|
63
|
+
"test": "vitest"
|
|
64
|
+
}
|
|
65
|
+
}
|