@histoire/vendors 0.8.4 → 0.9.2
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/dist/client/b-floating-vue.d.ts +3 -0
- package/dist/client/{floating-vue.js → b-floating-vue.js} +13 -18
- package/dist/client/b-iconify.d.ts +1 -0
- package/dist/client/{iconify.js → b-iconify.js} +0 -0
- package/dist/client/b-pinia.d.ts +1 -0
- package/dist/client/{pinia.js → b-pinia.js} +41 -8
- package/dist/client/b-scroll.d.ts +2 -0
- package/dist/client/{scroll.js → b-scroll.js} +1 -1
- package/dist/client/b-vue-router.d.ts +1 -0
- package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
- package/dist/client/b-vue-use.d.ts +1 -0
- package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
- package/dist/client/b-vue.d.ts +1 -0
- package/dist/client/{vue.js → b-vue.js} +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +46 -0
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
- package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -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 +27 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -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/getClippingClientRect.d.ts +6 -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/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/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/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/getScrollParent.d.ts +1 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -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 +15 -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/window.d.ts +2 -0
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
- package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
- package/dist/client/node_modules/@iconify/vue/package.json +61 -0
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
- package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
- package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
- package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -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 +77 -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 +179 -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 +347 -0
- package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
- package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
- package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
- package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
- package/dist/client/node_modules/@vue/shared/package.json +33 -0
- package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
- package/dist/client/node_modules/@vueuse/core/package.json +59 -0
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
- package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
- package/dist/client/node_modules/csstype/index.d.ts +38372 -0
- package/dist/client/node_modules/csstype/package.json +57 -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.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +375 -0
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +367 -0
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -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 +28 -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.vue.d.ts +25 -0
- package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -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 +415 -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 +12 -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 +71 -0
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
- package/dist/client/node_modules/magic-string/index.d.ts +221 -0
- package/dist/client/node_modules/magic-string/package.json +52 -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 +60 -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/pinia/dist/pinia.d.ts +963 -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 +31 -0
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -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 +101 -0
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
- package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
- package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
- package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
- package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
- package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
- package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
- package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
- package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
- package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
- package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
- package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
- package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
- package/dist/client/node_modules/postcss/package.json +85 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
- package/dist/client/node_modules/source-map/package.json +73 -0
- package/dist/client/node_modules/source-map/source-map.d.ts +98 -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 +115 -0
- package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
- package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
- package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
- package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
- package/dist/client/node_modules/vue/macros.d.ts +110 -0
- package/dist/client/node_modules/vue/package.json +75 -0
- package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
- package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
- package/dist/client/node_modules/vue-resize/package.json +77 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
- package/dist/client/node_modules/vue-router/package.json +114 -0
- package/dist/client/vue.runtime.esm-bundler.js +24 -19
- package/entries.js +7 -7
- package/floating-vue.d.ts +3 -0
- package/iconify.d.ts +3 -0
- package/package.json +14 -5
- package/pinia.d.ts +3 -0
- package/rollup.config.mjs +117 -0
- package/scroll.d.ts +3 -0
- package/src/client/b-floating-vue.ts +3 -0
- package/src/client/b-iconify.ts +1 -0
- package/src/client/b-pinia.ts +1 -0
- package/src/client/b-scroll.ts +2 -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/vue-router.d.ts +3 -0
- package/vue-use.d.ts +3 -0
- package/vue.d.ts +3 -0
- package/dist/client/floating-vue.d.ts +0 -2
- package/dist/client/iconify.d.ts +0 -1
- package/dist/client/pinia.d.ts +0 -1
- package/dist/client/scroll.d.ts +0 -1
- package/dist/client/vue-router.d.ts +0 -1
- package/dist/client/vue-use.d.ts +0 -1
- package/dist/client/vue.d.ts +0 -1
- package/rollup.config.js +0 -37
- package/src/client/floating-vue.ts +0 -2
- package/src/client/iconify.ts +0 -1
- package/src/client/pinia.ts +0 -1
- package/src/client/scroll.ts +0 -1
- package/src/client/vue-router.ts +0 -1
- package/src/client/vue-use.ts +0 -1
- package/src/client/vue.ts +0 -1
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
import type { AllowedComponentProps } from 'vue';
|
|
2
|
+
import type { ComponentCustomProps } from 'vue';
|
|
3
|
+
import type { ComponentOptionsMixin } from 'vue';
|
|
4
|
+
import type { DefineComponent } from 'vue';
|
|
5
|
+
import type { EmitsOptions } from 'vue';
|
|
6
|
+
import { ExtractPropTypes } from 'vue';
|
|
7
|
+
import type { VNodeProps } 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): boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Internal API
|
|
26
|
+
*/
|
|
27
|
+
export declare const _api: IconifyAPIInternalFunctions;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Icon with optional parameters that are provided by API and affect only search
|
|
31
|
+
*/
|
|
32
|
+
declare interface APIIconAttributes {
|
|
33
|
+
// True if icon is hidden.
|
|
34
|
+
// Used in icon sets to keep icons that no longer exist, but should still be accessible
|
|
35
|
+
// from API, preventing websites from breaking when icon is removed by developer.
|
|
36
|
+
hidden?: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* API query parameters
|
|
41
|
+
*/
|
|
42
|
+
declare type APIQueryParamValue = number | string | boolean | undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Build icon
|
|
46
|
+
*/
|
|
47
|
+
export declare function buildIcon(icon: IconifyIcon, customisations?: RawIconCustomisations): IconifyIconBuildResult;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Calculate second dimension when only 1 dimension is set
|
|
51
|
+
*/
|
|
52
|
+
export declare function calculateSize(size: string | number, ratio: number, precision?: number): string | number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Disable cache
|
|
56
|
+
*/
|
|
57
|
+
export declare function disableCache(storage: IconifyBrowserCacheType): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Enable cache
|
|
61
|
+
*/
|
|
62
|
+
export declare function enableCache(storage: IconifyBrowserCacheType): void;
|
|
63
|
+
|
|
64
|
+
declare interface ExtendedIconifyAlias extends IconifyAlias, APIIconAttributes {}
|
|
65
|
+
|
|
66
|
+
declare interface ExtendedIconifyIcon extends IconifyIcon, APIIconAttributes {}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Signature for getAPIConfig
|
|
70
|
+
*/
|
|
71
|
+
export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | undefined;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Get icon
|
|
75
|
+
*/
|
|
76
|
+
export declare function getIcon(name: string): Required<IconifyIcon> | null;
|
|
77
|
+
|
|
78
|
+
export declare const Icon: DefineComponent<{}, {}, {
|
|
79
|
+
iconMounted: boolean;
|
|
80
|
+
counter: number;
|
|
81
|
+
}, {}, {
|
|
82
|
+
abortLoading(): void;
|
|
83
|
+
getIcon(icon: IconifyIcon | string, onload?: IconifyIconOnLoad): IconComponentData | null;
|
|
84
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Component
|
|
88
|
+
*/
|
|
89
|
+
declare interface IconComponentData {
|
|
90
|
+
data: Required<IconifyIcon>;
|
|
91
|
+
classes?: string[];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if icon exists
|
|
96
|
+
*/
|
|
97
|
+
export declare function iconExists(name: string): boolean;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Alias.
|
|
101
|
+
*/
|
|
102
|
+
declare interface IconifyAlias extends IconifyOptional {
|
|
103
|
+
// Parent icon index without prefix, required.
|
|
104
|
+
parent: string;
|
|
105
|
+
|
|
106
|
+
// IconifyOptional properties.
|
|
107
|
+
// Alias should have only properties that it overrides.
|
|
108
|
+
// Transformations are merged, not overridden. See IconifyTransformations comments.
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* "aliases" field of JSON file.
|
|
113
|
+
*/
|
|
114
|
+
declare interface IconifyAliases {
|
|
115
|
+
// Index is name of icon, without prefix. Value is ExtendedIconifyAlias object.
|
|
116
|
+
[index: string]: ExtendedIconifyAlias;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* API config
|
|
121
|
+
*/
|
|
122
|
+
export declare interface IconifyAPIConfig extends RedundancyConfig {
|
|
123
|
+
path: string;
|
|
124
|
+
maxURL: number;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export declare interface IconifyAPICustomQueryParams {
|
|
128
|
+
type: 'custom';
|
|
129
|
+
provider?: string;
|
|
130
|
+
uri: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Iconify API functions
|
|
135
|
+
*/
|
|
136
|
+
export declare interface IconifyAPIFunctions {
|
|
137
|
+
/**
|
|
138
|
+
* Load icons
|
|
139
|
+
*/
|
|
140
|
+
loadIcons: (icons: (IconifyIconName | string)[], callback?: IconifyIconLoaderCallback) => IconifyIconLoaderAbort;
|
|
141
|
+
/**
|
|
142
|
+
* Load one icon, using Promise syntax
|
|
143
|
+
*/
|
|
144
|
+
loadIcon: (icon: IconifyIconName | string) => Promise<Required<IconifyIcon>>;
|
|
145
|
+
/**
|
|
146
|
+
* Add API provider
|
|
147
|
+
*/
|
|
148
|
+
addAPIProvider: (provider: string, customConfig: PartialIconifyAPIConfig) => boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Params for sendQuery()
|
|
153
|
+
*/
|
|
154
|
+
declare interface IconifyAPIIconsQueryParams {
|
|
155
|
+
type: 'icons';
|
|
156
|
+
provider: string;
|
|
157
|
+
prefix: string;
|
|
158
|
+
icons: string[];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Exposed internal functions
|
|
163
|
+
*
|
|
164
|
+
* Used by plug-ins, such as Icon Finder
|
|
165
|
+
*
|
|
166
|
+
* Important: any changes published in a release must be backwards compatible.
|
|
167
|
+
*/
|
|
168
|
+
export declare interface IconifyAPIInternalFunctions {
|
|
169
|
+
/**
|
|
170
|
+
* Get API config, used by custom modules
|
|
171
|
+
*/
|
|
172
|
+
getAPIConfig: GetAPIConfig;
|
|
173
|
+
/**
|
|
174
|
+
* Set custom API module
|
|
175
|
+
*/
|
|
176
|
+
setAPIModule: (provider: string, item: IconifyAPIModule) => void;
|
|
177
|
+
/**
|
|
178
|
+
* Send API query
|
|
179
|
+
*/
|
|
180
|
+
sendAPIQuery: (target: string | PartialIconifyAPIConfig, query: IconifyAPIQueryParams, callback: QueryDoneCallback) => QueryAbortCallback;
|
|
181
|
+
/**
|
|
182
|
+
* Set and get fetch()
|
|
183
|
+
*/
|
|
184
|
+
setFetch: (item: typeof fetch) => void;
|
|
185
|
+
getFetch: () => typeof fetch | null;
|
|
186
|
+
/**
|
|
187
|
+
* List all API providers (from config)
|
|
188
|
+
*/
|
|
189
|
+
listAPIProviders: () => string[];
|
|
190
|
+
/**
|
|
191
|
+
* Merge parameters
|
|
192
|
+
*/
|
|
193
|
+
mergeParams: MergeParams;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare type IconifyAPIMergeQueryParams = Record<string, APIQueryParamValue>;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* API modules
|
|
200
|
+
*/
|
|
201
|
+
export declare interface IconifyAPIModule {
|
|
202
|
+
prepare: IconifyAPIPrepareIconsQuery;
|
|
203
|
+
send: IconifyAPISendQuery;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Functions to implement in module
|
|
208
|
+
*/
|
|
209
|
+
export declare type IconifyAPIPrepareIconsQuery = (provider: string, prefix: string, icons: string[]) => IconifyAPIIconsQueryParams[];
|
|
210
|
+
|
|
211
|
+
export declare type IconifyAPIQueryParams = IconifyAPIIconsQueryParams | IconifyAPICustomQueryParams;
|
|
212
|
+
|
|
213
|
+
export declare type IconifyAPISendQuery = (host: string, params: IconifyAPIQueryParams, callback: QueryModuleResponse) => void;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Interface for exported functions
|
|
217
|
+
*/
|
|
218
|
+
export declare interface IconifyBrowserCacheFunctions {
|
|
219
|
+
enableCache: (storage: IconifyBrowserCacheType) => void;
|
|
220
|
+
disableCache: (storage: IconifyBrowserCacheType) => void;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Cache types
|
|
225
|
+
*/
|
|
226
|
+
export declare type IconifyBrowserCacheType = 'local' | 'session' | 'all';
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Interface for exported builder functions
|
|
230
|
+
*/
|
|
231
|
+
export declare interface IconifyBuilderFunctions {
|
|
232
|
+
replaceIDs: (body: string, prefix?: string | (() => string)) => string;
|
|
233
|
+
calculateSize: (size: string | number, ratio: number, precision?: number) => string | number;
|
|
234
|
+
buildIcon: (icon: IconifyIcon, customisations?: RawIconCustomisations) => IconifyIconBuildResult;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Icon categories
|
|
239
|
+
*/
|
|
240
|
+
declare interface IconifyCategories {
|
|
241
|
+
// Index is category title, such as "Weather".
|
|
242
|
+
// Value is array of icons that belong to that category.
|
|
243
|
+
// Each icon can belong to multiple categories or no categories.
|
|
244
|
+
[index: string]: string[];
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Characters used in font.
|
|
249
|
+
*/
|
|
250
|
+
declare interface IconifyChars {
|
|
251
|
+
// Index is character, such as "f000".
|
|
252
|
+
// Value is icon name.
|
|
253
|
+
[index: string]: string;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Icon dimensions.
|
|
258
|
+
*
|
|
259
|
+
* Used in:
|
|
260
|
+
* icon (as is)
|
|
261
|
+
* alias (overwrite icon's properties)
|
|
262
|
+
* root of JSON file (default values)
|
|
263
|
+
*/
|
|
264
|
+
declare interface IconifyDimenisons {
|
|
265
|
+
// Left position of viewBox.
|
|
266
|
+
// Defaults to 0.
|
|
267
|
+
left?: number;
|
|
268
|
+
|
|
269
|
+
// Top position of viewBox.
|
|
270
|
+
// Defaults to 0.
|
|
271
|
+
top?: number;
|
|
272
|
+
|
|
273
|
+
// Width of viewBox.
|
|
274
|
+
// Defaults to 16.
|
|
275
|
+
width?: number;
|
|
276
|
+
|
|
277
|
+
// Height of viewBox.
|
|
278
|
+
// Defaults to 16.
|
|
279
|
+
height?: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Properties for element that are mentioned in render.ts
|
|
284
|
+
*/
|
|
285
|
+
declare interface IconifyElementProps {
|
|
286
|
+
id?: string;
|
|
287
|
+
style?: unknown;
|
|
288
|
+
onLoad?: IconifyIconOnLoad;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Icon alignment
|
|
293
|
+
*/
|
|
294
|
+
export declare type IconifyHorizontalIconAlignment = 'left' | 'center' | 'right';
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Icon.
|
|
298
|
+
*/
|
|
299
|
+
export declare interface IconifyIcon extends IconifyOptional {
|
|
300
|
+
// Icon body: <path d="..." />, required.
|
|
301
|
+
body: string;
|
|
302
|
+
|
|
303
|
+
// IconifyOptional properties.
|
|
304
|
+
// If property is missing in JSON file, look in root object for default value.
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Interface for getSVGData() result
|
|
309
|
+
*/
|
|
310
|
+
export declare interface IconifyIconBuildResult {
|
|
311
|
+
attributes: {
|
|
312
|
+
width: string;
|
|
313
|
+
height: string;
|
|
314
|
+
preserveAspectRatio: string;
|
|
315
|
+
viewBox: string;
|
|
316
|
+
};
|
|
317
|
+
body: string;
|
|
318
|
+
inline?: boolean;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Icon customisations
|
|
323
|
+
*/
|
|
324
|
+
export declare type IconifyIconCustomisations = RawIconCustomisations & {
|
|
325
|
+
rotate?: string | number;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Function to abort loading (usually just removes callback because loading is already in progress)
|
|
330
|
+
*/
|
|
331
|
+
export declare type IconifyIconLoaderAbort = () => void;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Loader callback
|
|
335
|
+
*
|
|
336
|
+
* Provides list of icons that have been loaded
|
|
337
|
+
*/
|
|
338
|
+
export declare type IconifyIconLoaderCallback = (loaded: IconifyIconName[], missing: IconifyIconName[], pending: IconifyIconName[], unsubscribe: IconifyIconLoaderAbort) => void;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Icon name
|
|
342
|
+
*/
|
|
343
|
+
export declare interface IconifyIconName {
|
|
344
|
+
readonly provider: string;
|
|
345
|
+
readonly prefix: string;
|
|
346
|
+
readonly name: string;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Callback for when icon has been loaded (only triggered for icons loaded from API)
|
|
351
|
+
*/
|
|
352
|
+
export declare type IconifyIconOnLoad = (name: string) => void;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Icon properties
|
|
356
|
+
*/
|
|
357
|
+
export declare interface IconifyIconProps extends IconifyIconCustomisations {
|
|
358
|
+
icon: IconifyIcon | string;
|
|
359
|
+
color?: string;
|
|
360
|
+
flip?: string;
|
|
361
|
+
align?: string;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* "icons" field of JSON file.
|
|
366
|
+
*/
|
|
367
|
+
declare interface IconifyIcons {
|
|
368
|
+
// Index is name of icon, without prefix. Value is ExtendedIconifyIcon object.
|
|
369
|
+
[index: string]: ExtendedIconifyIcon;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Icon size
|
|
374
|
+
*/
|
|
375
|
+
export declare type IconifyIconSize = null | string | number;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Icon set information block.
|
|
379
|
+
*/
|
|
380
|
+
declare interface IconifyInfo {
|
|
381
|
+
// Icon set name.
|
|
382
|
+
name: string;
|
|
383
|
+
|
|
384
|
+
// Total number of icons.
|
|
385
|
+
total?: number;
|
|
386
|
+
|
|
387
|
+
// Version string.
|
|
388
|
+
version?: string;
|
|
389
|
+
|
|
390
|
+
// Author information.
|
|
391
|
+
author: {
|
|
392
|
+
// Author name.
|
|
393
|
+
name: string;
|
|
394
|
+
|
|
395
|
+
// Link to author's website or icon set website.
|
|
396
|
+
url?: string;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
// License
|
|
400
|
+
license: {
|
|
401
|
+
// Human readable license.
|
|
402
|
+
title: string;
|
|
403
|
+
|
|
404
|
+
// SPDX license identifier.
|
|
405
|
+
spdx?: string;
|
|
406
|
+
|
|
407
|
+
// License URL.
|
|
408
|
+
url?: string;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
// Array of icons that should be used for samples in icon sets list.
|
|
412
|
+
samples?: string[];
|
|
413
|
+
|
|
414
|
+
// Icon grid: number or array of numbers.
|
|
415
|
+
height?: number | number[];
|
|
416
|
+
|
|
417
|
+
// Display height for samples: 16 - 24
|
|
418
|
+
displayHeight?: number;
|
|
419
|
+
|
|
420
|
+
// Category on Iconify collections list.
|
|
421
|
+
category?: string;
|
|
422
|
+
|
|
423
|
+
// Palette status. True if icons have predefined color scheme, false if icons use currentColor.
|
|
424
|
+
// Ideally, icon set should not mix icons with and without palette to simplify search.
|
|
425
|
+
palette?: boolean;
|
|
426
|
+
|
|
427
|
+
// If true, icon set should not appear in icon sets list.
|
|
428
|
+
hidden?: boolean;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* JSON structure.
|
|
433
|
+
*
|
|
434
|
+
* All optional values can exist in root of JSON file, used as defaults.
|
|
435
|
+
*/
|
|
436
|
+
export declare interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
|
|
437
|
+
// Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
|
|
438
|
+
not_found?: string[];
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* JSON structure, contains only icon data
|
|
443
|
+
*/
|
|
444
|
+
declare interface IconifyJSONIconsData extends IconifyOptional {
|
|
445
|
+
// Prefix for icons in JSON file, required.
|
|
446
|
+
prefix: string;
|
|
447
|
+
|
|
448
|
+
// API provider, optional.
|
|
449
|
+
provider?: string;
|
|
450
|
+
|
|
451
|
+
// List of icons, required.
|
|
452
|
+
icons: IconifyIcons;
|
|
453
|
+
|
|
454
|
+
// Optional aliases.
|
|
455
|
+
aliases?: IconifyAliases;
|
|
456
|
+
|
|
457
|
+
// IconifyOptional properties that are used as default values for icons when icon is missing value.
|
|
458
|
+
// If property exists in both icon and root, use value from icon.
|
|
459
|
+
// This is used to reduce duplication.
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Function to load icons
|
|
464
|
+
*/
|
|
465
|
+
declare type IconifyLoadIcons = (icons: (IconifyIconName | string)[], callback?: IconifyIconLoaderCallback) => IconifyIconLoaderAbort;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Meta data stored in JSON file, used for browsing icon set.
|
|
469
|
+
*/
|
|
470
|
+
declare interface IconifyMetaData {
|
|
471
|
+
// Icon set information block. Used for public icon sets, can be skipped for private icon sets.
|
|
472
|
+
info?: IconifyInfo;
|
|
473
|
+
|
|
474
|
+
// Characters used in font. Used for searching by character for icon sets imported from font, exporting icon set to font.
|
|
475
|
+
chars?: IconifyChars;
|
|
476
|
+
|
|
477
|
+
// Categories. Used for filtering icons.
|
|
478
|
+
categories?: IconifyCategories;
|
|
479
|
+
|
|
480
|
+
// Optional themes (old format).
|
|
481
|
+
themes?: LegacyIconifyThemes;
|
|
482
|
+
|
|
483
|
+
// Optional themes (new format). Key is prefix or suffix, value is title.
|
|
484
|
+
prefixes?: Record<string, string>;
|
|
485
|
+
suffixes?: Record<string, string>;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Combination of dimensions and transformations.
|
|
490
|
+
*/
|
|
491
|
+
declare interface IconifyOptional
|
|
492
|
+
extends IconifyDimenisons,
|
|
493
|
+
IconifyTransformations {
|
|
494
|
+
//
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Interface for exported storage functions
|
|
499
|
+
*/
|
|
500
|
+
export declare interface IconifyStorageFunctions {
|
|
501
|
+
/**
|
|
502
|
+
* Check if icon exists
|
|
503
|
+
*/
|
|
504
|
+
iconExists: (name: string) => boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Get icon data with all properties
|
|
507
|
+
*/
|
|
508
|
+
getIcon: (name: string) => Required<IconifyIcon> | null;
|
|
509
|
+
/**
|
|
510
|
+
* List all available icons
|
|
511
|
+
*/
|
|
512
|
+
listIcons: (provider?: string, prefix?: string) => string[];
|
|
513
|
+
/**
|
|
514
|
+
* Add icon to storage
|
|
515
|
+
*/
|
|
516
|
+
addIcon: (name: string, data: IconifyIcon) => boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Add icon set to storage
|
|
519
|
+
*/
|
|
520
|
+
addCollection: (data: IconifyJSON, provider?: string) => boolean;
|
|
521
|
+
/**
|
|
522
|
+
* Share storage (used to share icon data between various components or multiple instances of component)
|
|
523
|
+
*
|
|
524
|
+
* It works by moving storage to global variable, new instances of component attempt to detect global
|
|
525
|
+
* variable during load. Therefore, function should be called as soon as possible.
|
|
526
|
+
* Works only in browser, not usable in SSR.
|
|
527
|
+
*/
|
|
528
|
+
shareStorage: () => void;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Icon transformations.
|
|
533
|
+
*
|
|
534
|
+
* Used in:
|
|
535
|
+
* icon (as is)
|
|
536
|
+
* alias (merged with icon's properties)
|
|
537
|
+
* root of JSON file (default values)
|
|
538
|
+
*/
|
|
539
|
+
declare interface IconifyTransformations {
|
|
540
|
+
// Number of 90 degrees rotations.
|
|
541
|
+
// 0 = 0, 1 = 90deg and so on.
|
|
542
|
+
// Defaults to 0.
|
|
543
|
+
// When merged (such as alias + icon), result is icon.rotation + alias.rotation.
|
|
544
|
+
rotate?: number;
|
|
545
|
+
|
|
546
|
+
// Horizontal flip.
|
|
547
|
+
// Defaults to false.
|
|
548
|
+
// When merged, result is icon.hFlip !== alias.hFlip
|
|
549
|
+
hFlip?: boolean;
|
|
550
|
+
|
|
551
|
+
// Vertical flip. (see hFlip comments)
|
|
552
|
+
vFlip?: boolean;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export declare type IconifyVerticalIconAlignment = 'top' | 'middle' | 'bottom';
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Mix of icon properties and HTMLElement properties
|
|
559
|
+
*/
|
|
560
|
+
export declare type IconProps = IconifyElementProps & IconifyIconProps;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Optional themes, old format.
|
|
564
|
+
*
|
|
565
|
+
* Deprecated because format is unnecessary complicated. Key is meaningless, suffixes and prefixes are mixed together.
|
|
566
|
+
*/
|
|
567
|
+
declare interface LegacyIconifyThemes {
|
|
568
|
+
// Key is unique string.
|
|
569
|
+
[index: string]: {
|
|
570
|
+
// Theme title.
|
|
571
|
+
title: string;
|
|
572
|
+
|
|
573
|
+
// Icon prefix or suffix, including dash. All icons that start with prefix and end with suffix belong to theme.
|
|
574
|
+
prefix?: string; // Example: 'baseline-'
|
|
575
|
+
suffix?: string; // Example: '-filled'
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* List available icons
|
|
581
|
+
*/
|
|
582
|
+
export declare function listIcons(provider?: string, prefix?: string): string[];
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Cache for loadIcon promises
|
|
586
|
+
*/
|
|
587
|
+
export declare const loadIcon: (icon: IconifyIconName | string) => Promise<Required<IconifyIcon>>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Load icons
|
|
591
|
+
*/
|
|
592
|
+
export declare const loadIcons: IconifyLoadIcons;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Type for mergeParams()
|
|
596
|
+
*/
|
|
597
|
+
declare type MergeParams = (base: string, params: IconifyAPIMergeQueryParams) => string;
|
|
598
|
+
|
|
599
|
+
export declare type PartialIconifyAPIConfig = Partial<IconifyAPIConfig> & Pick<IconifyAPIConfig, 'resources'>;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Callback for "abort" pending item.
|
|
603
|
+
*/
|
|
604
|
+
declare type QueryAbortCallback = () => void;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Callback
|
|
608
|
+
*
|
|
609
|
+
* If error is present, something went wrong and data is undefined. If error is undefined, data is set.
|
|
610
|
+
*/
|
|
611
|
+
declare type QueryDoneCallback = (data?: QueryModuleResponseData, error?: QueryModuleResponseData) => void;
|
|
612
|
+
|
|
613
|
+
declare type QueryModuleResponse = (status: QueryModuleResponseType, data: QueryModuleResponseData) => void;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Response from query module
|
|
617
|
+
*/
|
|
618
|
+
declare type QueryModuleResponseData = unknown;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Response from query module
|
|
622
|
+
*/
|
|
623
|
+
declare type QueryModuleResponseType = 'success' | 'next' | 'abort';
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Icon customisations
|
|
627
|
+
*/
|
|
628
|
+
export declare interface RawIconCustomisations {
|
|
629
|
+
inline?: boolean;
|
|
630
|
+
width?: IconifyIconSize;
|
|
631
|
+
height?: IconifyIconSize;
|
|
632
|
+
hAlign?: IconifyHorizontalIconAlignment;
|
|
633
|
+
vAlign?: IconifyVerticalIconAlignment;
|
|
634
|
+
slice?: boolean;
|
|
635
|
+
hFlip?: boolean;
|
|
636
|
+
vFlip?: boolean;
|
|
637
|
+
rotate?: number;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Configuration object
|
|
642
|
+
*/
|
|
643
|
+
declare interface RedundancyConfig {
|
|
644
|
+
resources: RedundancyResource[];
|
|
645
|
+
index: number;
|
|
646
|
+
timeout: number;
|
|
647
|
+
rotate: number;
|
|
648
|
+
random: boolean;
|
|
649
|
+
dataAfterTimeout: boolean;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Resource to rotate (usually hostname or partial URL)
|
|
654
|
+
*/
|
|
655
|
+
declare type RedundancyResource = string;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* IDs usage:
|
|
659
|
+
*
|
|
660
|
+
* id="{id}"
|
|
661
|
+
* xlink:href="#{id}"
|
|
662
|
+
* url(#{id})
|
|
663
|
+
*
|
|
664
|
+
* From SVG animations:
|
|
665
|
+
*
|
|
666
|
+
* begin="0;{id}.end"
|
|
667
|
+
* begin="{id}.end"
|
|
668
|
+
* begin="{id}.click"
|
|
669
|
+
*/
|
|
670
|
+
/**
|
|
671
|
+
* Replace IDs in SVG output with unique IDs
|
|
672
|
+
*/
|
|
673
|
+
export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Share storage between components
|
|
677
|
+
*/
|
|
678
|
+
export declare function shareStorage(): void;
|
|
679
|
+
|
|
680
|
+
export { }
|