@histoire/vendors 0.17.17 → 1.0.0-alpha.1
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.js +2175 -2150
- package/dist/client/b-iconify.js +751 -825
- package/dist/client/b-pinia.js +130 -68
- package/dist/client/b-scroll.js +3 -52
- package/dist/client/b-vue-router.js +385 -237
- package/dist/client/b-vue-use.js +3898 -2871
- package/dist/client/b-vue.js +1 -1
- package/dist/client/index.js +162 -20
- 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 +10 -6
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +47 -31
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2776 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3275 -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.ts +525 -0
- package/dist/client/node_modules/@floating-ui/core/package.json +32 -39
- package/dist/client/node_modules/@floating-ui/dom/package.json +23 -24
- 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 -7
- package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +121 -20
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +1 -1
- 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/getCssDimensions.d.ts +4 -0
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +1 -1
- 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/getOverflowAncestors.d.ts +3 -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 -2
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +3 -1
- 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 -2
- package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +103 -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 +72 -330
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +28 -268
- package/dist/client/node_modules/@iconify/vue/package.json +64 -60
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +2 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +3 -2
- package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +33 -14
- package/dist/client/node_modules/@types/web-bluetooth/package.json +12 -12
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +218 -125
- package/dist/client/node_modules/@vue/compiler-core/package.json +20 -5
- package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +6 -3
- package/dist/client/node_modules/@vue/compiler-dom/package.json +17 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +35 -25
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +27 -18
- package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +2 -2
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/devtools-api/package.json +1 -1
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +268 -166
- package/dist/client/node_modules/@vue/reactivity/package.json +16 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +728 -529
- package/dist/client/node_modules/@vue/runtime-core/package.json +17 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +195 -86
- package/dist/client/node_modules/@vue/runtime-dom/package.json +22 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +4 -8
- package/dist/client/node_modules/@vue/server-renderer/package.json +18 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +45 -30
- package/dist/client/node_modules/@vue/shared/package.json +15 -1
- package/dist/client/node_modules/@vueuse/core/index.d.ts +2040 -633
- package/dist/client/node_modules/@vueuse/core/package.json +10 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +4 -4
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +410 -273
- package/dist/client/node_modules/@vueuse/shared/package.json +5 -6
- 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 +35 -45
- package/dist/client/node_modules/entities/lib/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/decode.d.ts +211 -0
- package/dist/client/node_modules/entities/lib/esm/decode_codepoint.d.ts +19 -0
- package/dist/client/node_modules/entities/lib/esm/encode.d.ts +22 -0
- package/dist/client/node_modules/entities/lib/esm/escape.d.ts +43 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/esm/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/esm/index.d.ts +96 -0
- package/dist/client/node_modules/entities/lib/esm/package.json +1 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-html.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/decode-data-xml.d.ts +3 -0
- package/dist/client/node_modules/entities/lib/generated/encode-html.d.ts +8 -0
- package/dist/client/node_modules/entities/lib/index.d.ts +96 -0
- package/dist/client/node_modules/entities/package.json +90 -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 +225 -105
- package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +471 -364
- package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +14 -25
- package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +392 -6
- 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 +49 -10
- package/dist/client/node_modules/floating-vue/dist/config.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/dist/index.d.ts +2071 -247
- package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +2 -0
- package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +1 -1
- package/dist/client/node_modules/floating-vue/package.json +42 -33
- package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +250 -229
- package/dist/client/node_modules/magic-string/package.json +24 -26
- package/dist/client/node_modules/nanoid/package.json +1 -1
- package/dist/client/node_modules/picocolors/package.json +2 -2
- package/dist/client/node_modules/picocolors/types.d.ts +51 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +116 -37
- package/dist/client/node_modules/pinia/package.json +7 -11
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +25 -22
- package/dist/client/node_modules/postcss/lib/comment.d.ts +10 -9
- package/dist/client/node_modules/postcss/lib/container.d.ts +47 -54
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +20 -17
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +14 -0
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/node.d.ts +19 -14
- package/dist/client/node_modules/postcss/lib/postcss.d.ts +25 -8
- package/dist/client/node_modules/postcss/lib/processor.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/result.d.ts +0 -1
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +27 -18
- package/dist/client/node_modules/postcss/package.json +4 -4
- 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 +28 -67
- 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 +1 -1
- package/dist/client/node_modules/source-map-js/source-map.d.ts +88 -99
- package/dist/client/node_modules/vue/dist/vue.d.ts +0 -4
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +2 -1
- package/dist/client/node_modules/vue/jsx.d.ts +2 -1
- package/dist/client/node_modules/vue/package.json +13 -14
- package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +1 -1
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +410 -81
- package/dist/client/node_modules/vue-router/package.json +66 -37
- 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 +4 -0
- package/dist/client/vue.runtime.esm-bundler.js +6458 -4714
- package/package.json +17 -17
- package/rollup.config.mjs +6 -6
- package/dist/client/index2.js +0 -168
- package/dist/client/node_modules/@floating-ui/core/index.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +0 -4
- package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +0 -11
- package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +0 -9
- package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +0 -10
- package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +0 -21
- package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +0 -32
- package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +0 -148
- package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +0 -5
- package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +0 -2
- package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +0 -6
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +0 -1
- package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +0 -1
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +0 -43
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +0 -41
- package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/@vueuse/shared/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +0 -19
- package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +0 -25
- package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +0 -1
- package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +0 -5
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +0 -13
- package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +0 -19
- package/dist/client/node_modules/vue/macros-global.d.ts +0 -19
- package/dist/client/node_modules/vue/macros.d.ts +0 -112
- package/dist/client/node_modules/vue/ref-macros.d.ts +0 -2
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{@vueuse/core/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
|
-
import type { ComponentCustomProps } from 'vue';
|
|
3
1
|
import type { ComponentOptionsMixin } from 'vue';
|
|
4
2
|
import type { DefineComponent } from 'vue';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import { IconifyIcon } from '@iconify/types';
|
|
4
|
+
import { IconifyJSON } from '@iconify/types';
|
|
5
|
+
import { IconifyTransformations } from '@iconify/types';
|
|
6
|
+
import { PublicProps } from 'vue';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Add custom config for provider
|
|
@@ -26,29 +25,27 @@ export declare function addIcon(name: string, data: IconifyIcon): boolean;
|
|
|
26
25
|
*/
|
|
27
26
|
export declare const _api: IconifyAPIInternalFunctions;
|
|
28
27
|
|
|
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;
|
|
28
|
+
declare type BrowserStorageType = 'local' | 'session';
|
|
43
29
|
|
|
44
30
|
/**
|
|
45
|
-
*
|
|
31
|
+
* Get SVG attributes and content from icon + customisations
|
|
32
|
+
*
|
|
33
|
+
* Does not generate style to make it compatible with frameworks that use objects for style, such as React.
|
|
34
|
+
* Instead, it generates 'inline' value. If true, rendering engine should add verticalAlign: -0.125em to icon.
|
|
35
|
+
*
|
|
36
|
+
* Customisations should be normalised by platform specific parser.
|
|
37
|
+
* Result should be converted to <svg> by platform specific parser.
|
|
38
|
+
* Use replaceIDs to generate unique IDs for body.
|
|
46
39
|
*/
|
|
47
|
-
export declare function buildIcon(icon: IconifyIcon, customisations?:
|
|
40
|
+
export declare function buildIcon(icon: IconifyIcon, customisations?: IconifyIconCustomisations_2): IconifyIconBuildResult;
|
|
48
41
|
|
|
49
42
|
/**
|
|
50
43
|
* Calculate second dimension when only 1 dimension is set
|
|
51
44
|
*/
|
|
45
|
+
export declare function calculateSize(size: string, ratio: number, precision?: number): string;
|
|
46
|
+
|
|
47
|
+
export declare function calculateSize(size: number, ratio: number, precision?: number): number;
|
|
48
|
+
|
|
52
49
|
export declare function calculateSize(size: string | number, ratio: number, precision?: number): string | number;
|
|
53
50
|
|
|
54
51
|
/**
|
|
@@ -61,60 +58,17 @@ export declare function disableCache(storage: IconifyBrowserCacheType): void;
|
|
|
61
58
|
*/
|
|
62
59
|
export declare function enableCache(storage: IconifyBrowserCacheType): void;
|
|
63
60
|
|
|
64
|
-
declare interface ExtendedIconifyAlias extends IconifyAlias, APIIconAttributes {}
|
|
65
|
-
|
|
66
|
-
declare interface ExtendedIconifyIcon extends IconifyIcon, APIIconAttributes {}
|
|
67
|
-
|
|
68
61
|
/**
|
|
69
62
|
* Signature for getAPIConfig
|
|
70
63
|
*/
|
|
71
64
|
export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | undefined;
|
|
72
65
|
|
|
73
66
|
/**
|
|
74
|
-
* Get icon
|
|
67
|
+
* Get full icon
|
|
75
68
|
*/
|
|
76
69
|
export declare function getIcon(name: string): Required<IconifyIcon> | null;
|
|
77
70
|
|
|
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
|
-
}
|
|
71
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps>, {}, {}>;
|
|
118
72
|
|
|
119
73
|
/**
|
|
120
74
|
* API config
|
|
@@ -182,19 +136,13 @@ export declare interface IconifyAPIInternalFunctions {
|
|
|
182
136
|
* Set and get fetch()
|
|
183
137
|
*/
|
|
184
138
|
setFetch: (item: typeof fetch) => void;
|
|
185
|
-
getFetch: () => typeof fetch |
|
|
139
|
+
getFetch: () => typeof fetch | undefined;
|
|
186
140
|
/**
|
|
187
141
|
* List all API providers (from config)
|
|
188
142
|
*/
|
|
189
143
|
listAPIProviders: () => string[];
|
|
190
|
-
/**
|
|
191
|
-
* Merge parameters
|
|
192
|
-
*/
|
|
193
|
-
mergeParams: MergeParams;
|
|
194
144
|
}
|
|
195
145
|
|
|
196
|
-
export declare type IconifyAPIMergeQueryParams = Record<string, APIQueryParamValue>;
|
|
197
|
-
|
|
198
146
|
/**
|
|
199
147
|
* API modules
|
|
200
148
|
*/
|
|
@@ -223,60 +171,15 @@ export declare interface IconifyBrowserCacheFunctions {
|
|
|
223
171
|
/**
|
|
224
172
|
* Cache types
|
|
225
173
|
*/
|
|
226
|
-
export declare type IconifyBrowserCacheType =
|
|
174
|
+
export declare type IconifyBrowserCacheType = BrowserStorageType | 'all';
|
|
227
175
|
|
|
228
176
|
/**
|
|
229
177
|
* Interface for exported builder functions
|
|
230
178
|
*/
|
|
231
179
|
export declare interface IconifyBuilderFunctions {
|
|
232
|
-
replaceIDs
|
|
180
|
+
replaceIDs?: (body: string, prefix?: string | (() => string)) => string;
|
|
233
181
|
calculateSize: (size: string | number, ratio: number, precision?: number) => string | number;
|
|
234
|
-
buildIcon: (icon: IconifyIcon, customisations?:
|
|
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;
|
|
182
|
+
buildIcon: (icon: IconifyIcon, customisations?: IconifyIconCustomisations_2) => IconifyIconBuildResult;
|
|
280
183
|
}
|
|
281
184
|
|
|
282
185
|
/**
|
|
@@ -288,43 +191,35 @@ declare interface IconifyElementProps {
|
|
|
288
191
|
onLoad?: IconifyIconOnLoad;
|
|
289
192
|
}
|
|
290
193
|
|
|
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
|
-
}
|
|
194
|
+
export { IconifyIcon }
|
|
306
195
|
|
|
307
196
|
/**
|
|
308
197
|
* Interface for getSVGData() result
|
|
309
198
|
*/
|
|
310
199
|
export declare interface IconifyIconBuildResult {
|
|
311
200
|
attributes: {
|
|
312
|
-
width
|
|
313
|
-
height
|
|
314
|
-
preserveAspectRatio: string;
|
|
201
|
+
width?: string;
|
|
202
|
+
height?: string;
|
|
315
203
|
viewBox: string;
|
|
316
204
|
};
|
|
205
|
+
viewBox: SVGViewBox;
|
|
317
206
|
body: string;
|
|
318
|
-
inline?: boolean;
|
|
319
207
|
}
|
|
320
208
|
|
|
321
209
|
/**
|
|
322
210
|
* Icon customisations
|
|
323
211
|
*/
|
|
324
|
-
export declare type IconifyIconCustomisations =
|
|
212
|
+
export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
325
213
|
rotate?: string | number;
|
|
214
|
+
inline?: boolean;
|
|
326
215
|
};
|
|
327
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Icon customisations
|
|
219
|
+
*/
|
|
220
|
+
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
221
|
+
}
|
|
222
|
+
|
|
328
223
|
/**
|
|
329
224
|
* Function to abort loading (usually just removes callback because loading is already in progress)
|
|
330
225
|
*/
|
|
@@ -356,17 +251,9 @@ export declare type IconifyIconOnLoad = (name: string) => void;
|
|
|
356
251
|
*/
|
|
357
252
|
export declare interface IconifyIconProps extends IconifyIconCustomisations {
|
|
358
253
|
icon: IconifyIcon | string;
|
|
254
|
+
mode?: IconifyRenderMode;
|
|
359
255
|
color?: string;
|
|
360
256
|
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
257
|
}
|
|
371
258
|
|
|
372
259
|
/**
|
|
@@ -375,89 +262,14 @@ declare interface IconifyIcons {
|
|
|
375
262
|
export declare type IconifyIconSize = null | string | number;
|
|
376
263
|
|
|
377
264
|
/**
|
|
378
|
-
*
|
|
265
|
+
* Dimensions
|
|
379
266
|
*/
|
|
380
|
-
declare interface
|
|
381
|
-
|
|
382
|
-
|
|
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[];
|
|
267
|
+
declare interface IconifyIconSizeCustomisations {
|
|
268
|
+
width?: IconifyIconSize;
|
|
269
|
+
height?: IconifyIconSize;
|
|
439
270
|
}
|
|
440
271
|
|
|
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
|
-
}
|
|
272
|
+
export { IconifyJSON }
|
|
461
273
|
|
|
462
274
|
/**
|
|
463
275
|
* Function to load icons
|
|
@@ -465,41 +277,27 @@ declare interface IconifyJSONIconsData extends IconifyOptional {
|
|
|
465
277
|
declare type IconifyLoadIcons = (icons: (IconifyIconName | string)[], callback?: IconifyIconLoaderCallback) => IconifyIconLoaderAbort;
|
|
466
278
|
|
|
467
279
|
/**
|
|
468
|
-
*
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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.
|
|
280
|
+
* Icon render mode
|
|
281
|
+
*
|
|
282
|
+
* 'style' = 'bg' or 'mask', depending on icon content
|
|
283
|
+
* 'bg' = <span> with style using `background`
|
|
284
|
+
* 'mask' = <span> with style using `mask`
|
|
285
|
+
* 'svg' = <svg>
|
|
490
286
|
*/
|
|
491
|
-
declare
|
|
492
|
-
extends IconifyDimenisons,
|
|
493
|
-
IconifyTransformations {
|
|
494
|
-
//
|
|
495
|
-
}
|
|
287
|
+
export declare type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'svg';
|
|
496
288
|
|
|
497
289
|
/**
|
|
498
290
|
* Interface for exported storage functions
|
|
499
291
|
*/
|
|
500
292
|
export declare interface IconifyStorageFunctions {
|
|
501
293
|
/**
|
|
502
|
-
* Check if icon
|
|
294
|
+
* Check if icon data is available
|
|
295
|
+
*/
|
|
296
|
+
iconLoaded: (name: string) => boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Older, badly named, version of iconLoaded()
|
|
299
|
+
*
|
|
300
|
+
* @deprecated
|
|
503
301
|
*/
|
|
504
302
|
iconExists: (name: string) => boolean;
|
|
505
303
|
/**
|
|
@@ -518,62 +316,26 @@ export declare interface IconifyStorageFunctions {
|
|
|
518
316
|
* Add icon set to storage
|
|
519
317
|
*/
|
|
520
318
|
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
319
|
}
|
|
530
320
|
|
|
531
321
|
/**
|
|
532
|
-
*
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
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';
|
|
322
|
+
* Check if icon data is available
|
|
323
|
+
*/
|
|
324
|
+
declare function iconLoaded(name: string): boolean;
|
|
325
|
+
export { iconLoaded as iconExists }
|
|
326
|
+
export { iconLoaded }
|
|
556
327
|
|
|
557
328
|
/**
|
|
558
329
|
* Mix of icon properties and HTMLElement properties
|
|
559
330
|
*/
|
|
560
|
-
export declare
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
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
|
-
};
|
|
331
|
+
export declare interface IconProps extends IconifyElementProps, IconifyIconProps {
|
|
332
|
+
/**
|
|
333
|
+
* Try load icon on first render during SSR
|
|
334
|
+
*
|
|
335
|
+
* This is a low-level API for framework integrations, you don't usually need to use it directly.
|
|
336
|
+
* Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
|
|
337
|
+
*/
|
|
338
|
+
ssr?: boolean;
|
|
577
339
|
}
|
|
578
340
|
|
|
579
341
|
/**
|
|
@@ -582,7 +344,7 @@ declare interface LegacyIconifyThemes {
|
|
|
582
344
|
export declare function listIcons(provider?: string, prefix?: string): string[];
|
|
583
345
|
|
|
584
346
|
/**
|
|
585
|
-
*
|
|
347
|
+
* Load one icon using Promise
|
|
586
348
|
*/
|
|
587
349
|
export declare const loadIcon: (icon: IconifyIconName | string) => Promise<Required<IconifyIcon>>;
|
|
588
350
|
|
|
@@ -591,11 +353,6 @@ export declare const loadIcon: (icon: IconifyIconName | string) => Promise<Requi
|
|
|
591
353
|
*/
|
|
592
354
|
export declare const loadIcons: IconifyLoadIcons;
|
|
593
355
|
|
|
594
|
-
/**
|
|
595
|
-
* Type for mergeParams()
|
|
596
|
-
*/
|
|
597
|
-
declare type MergeParams = (base: string, params: IconifyAPIMergeQueryParams) => string;
|
|
598
|
-
|
|
599
356
|
export declare type PartialIconifyAPIConfig = Partial<IconifyAPIConfig> & Pick<IconifyAPIConfig, 'resources'>;
|
|
600
357
|
|
|
601
358
|
/**
|
|
@@ -622,21 +379,6 @@ declare type QueryModuleResponseData = unknown;
|
|
|
622
379
|
*/
|
|
623
380
|
declare type QueryModuleResponseType = 'success' | 'next' | 'abort';
|
|
624
381
|
|
|
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
382
|
/**
|
|
641
383
|
* Configuration object
|
|
642
384
|
*/
|
|
@@ -673,8 +415,8 @@ declare type RedundancyResource = string;
|
|
|
673
415
|
export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
|
|
674
416
|
|
|
675
417
|
/**
|
|
676
|
-
*
|
|
418
|
+
* SVG viewBox: x, y, width, height
|
|
677
419
|
*/
|
|
678
|
-
|
|
420
|
+
declare type SVGViewBox = [x: number, y: number, width: number, height: number];
|
|
679
421
|
|
|
680
422
|
export { }
|