@histoire/vendors 0.17.17 → 1.0.0-alpha.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.js +2175 -2150
- package/dist/client/b-iconify.js +663 -850
- 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 +4578 -3115
- 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 +167 -188
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2786 -0
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +3286 -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 +122 -327
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +36 -269
- 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 +2323 -666
- package/dist/client/node_modules/@vueuse/core/package.json +22 -12
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +7 -5
- package/dist/client/node_modules/@vueuse/metadata/package.json +14 -7
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +451 -280
- package/dist/client/node_modules/@vueuse/shared/package.json +17 -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 +22 -19
- package/dist/client/node_modules/postcss/lib/comment.d.ts +6 -5
- package/dist/client/node_modules/postcss/lib/container.d.ts +72 -82
- package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +1 -1
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +16 -13
- package/dist/client/node_modules/postcss/lib/document.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/input.d.ts +28 -16
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/list.d.ts +5 -2
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- 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 +10 -11
- package/dist/client/node_modules/postcss/lib/root.d.ts +4 -4
- package/dist/client/node_modules/postcss/lib/rule.d.ts +22 -13
- 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,10 @@
|
|
|
1
|
-
import type { AllowedComponentProps } from 'vue';
|
|
2
|
-
import type { ComponentCustomProps } from 'vue';
|
|
3
1
|
import type { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
3
|
import type { DefineComponent } from 'vue';
|
|
5
|
-
import type {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
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
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Add collection to storage, allowing to call icons by name
|
|
@@ -22,89 +22,10 @@ export declare function addCollection(data: IconifyJSON, prefix?: string | boole
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function addIcon(name: string, data: IconifyIcon): void;
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* Icon with optional parameters that are provided by API and affect only search
|
|
27
|
-
*/
|
|
28
|
-
declare interface APIIconAttributes {
|
|
29
|
-
// True if icon is hidden.
|
|
30
|
-
// Used in icon sets to keep icons that no longer exist, but should still be accessible
|
|
31
|
-
// from API, preventing websites from breaking when icon is removed by developer.
|
|
32
|
-
hidden?: boolean;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare interface ExtendedIconifyAlias extends IconifyAlias, APIIconAttributes {}
|
|
36
|
-
|
|
37
|
-
declare interface ExtendedIconifyIcon extends IconifyIcon, APIIconAttributes {}
|
|
38
|
-
|
|
39
25
|
/**
|
|
40
26
|
* Component
|
|
41
27
|
*/
|
|
42
|
-
export declare const Icon: DefineComponent<
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Alias.
|
|
46
|
-
*/
|
|
47
|
-
declare interface IconifyAlias extends IconifyOptional {
|
|
48
|
-
// Parent icon index without prefix, required.
|
|
49
|
-
parent: string;
|
|
50
|
-
|
|
51
|
-
// IconifyOptional properties.
|
|
52
|
-
// Alias should have only properties that it overrides.
|
|
53
|
-
// Transformations are merged, not overridden. See IconifyTransformations comments.
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* "aliases" field of JSON file.
|
|
58
|
-
*/
|
|
59
|
-
declare interface IconifyAliases {
|
|
60
|
-
// Index is name of icon, without prefix. Value is ExtendedIconifyAlias object.
|
|
61
|
-
[index: string]: ExtendedIconifyAlias;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Icon categories
|
|
66
|
-
*/
|
|
67
|
-
declare interface IconifyCategories {
|
|
68
|
-
// Index is category title, such as "Weather".
|
|
69
|
-
// Value is array of icons that belong to that category.
|
|
70
|
-
// Each icon can belong to multiple categories or no categories.
|
|
71
|
-
[index: string]: string[];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Characters used in font.
|
|
76
|
-
*/
|
|
77
|
-
declare interface IconifyChars {
|
|
78
|
-
// Index is character, such as "f000".
|
|
79
|
-
// Value is icon name.
|
|
80
|
-
[index: string]: string;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Icon dimensions.
|
|
85
|
-
*
|
|
86
|
-
* Used in:
|
|
87
|
-
* icon (as is)
|
|
88
|
-
* alias (overwrite icon's properties)
|
|
89
|
-
* root of JSON file (default values)
|
|
90
|
-
*/
|
|
91
|
-
declare interface IconifyDimenisons {
|
|
92
|
-
// Left position of viewBox.
|
|
93
|
-
// Defaults to 0.
|
|
94
|
-
left?: number;
|
|
95
|
-
|
|
96
|
-
// Top position of viewBox.
|
|
97
|
-
// Defaults to 0.
|
|
98
|
-
top?: number;
|
|
99
|
-
|
|
100
|
-
// Width of viewBox.
|
|
101
|
-
// Defaults to 16.
|
|
102
|
-
width?: number;
|
|
103
|
-
|
|
104
|
-
// Height of viewBox.
|
|
105
|
-
// Defaults to 16.
|
|
106
|
-
height?: number;
|
|
107
|
-
}
|
|
28
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
108
29
|
|
|
109
30
|
/**
|
|
110
31
|
* Properties for element that are mentioned in render.ts
|
|
@@ -112,47 +33,29 @@ declare interface IconifyDimenisons {
|
|
|
112
33
|
declare interface IconifyElementProps {
|
|
113
34
|
id?: string;
|
|
114
35
|
style?: unknown;
|
|
115
|
-
onLoad?: IconifyIconOnLoad;
|
|
116
36
|
}
|
|
117
37
|
|
|
118
|
-
|
|
119
|
-
* Icon alignment
|
|
120
|
-
*/
|
|
121
|
-
export declare type IconifyHorizontalIconAlignment = 'left' | 'center' | 'right';
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Icon.
|
|
125
|
-
*/
|
|
126
|
-
export declare interface IconifyIcon extends IconifyOptional {
|
|
127
|
-
// Icon body: <path d="..." />, required.
|
|
128
|
-
body: string;
|
|
129
|
-
|
|
130
|
-
// IconifyOptional properties.
|
|
131
|
-
// If property is missing in JSON file, look in root object for default value.
|
|
132
|
-
}
|
|
38
|
+
export { IconifyIcon }
|
|
133
39
|
|
|
134
40
|
/**
|
|
135
41
|
* Icon customisations
|
|
136
42
|
*/
|
|
137
43
|
export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
138
44
|
rotate?: string | number;
|
|
45
|
+
inline?: boolean;
|
|
139
46
|
};
|
|
140
47
|
|
|
141
48
|
/**
|
|
142
49
|
* Icon customisations
|
|
143
50
|
*/
|
|
144
|
-
declare interface IconifyIconCustomisations_2 {
|
|
145
|
-
inline?: boolean;
|
|
146
|
-
width?: IconifyIconSize;
|
|
147
|
-
height?: IconifyIconSize;
|
|
148
|
-
hAlign?: IconifyHorizontalIconAlignment;
|
|
149
|
-
vAlign?: IconifyVerticalIconAlignment;
|
|
150
|
-
slice?: boolean;
|
|
151
|
-
hFlip?: boolean;
|
|
152
|
-
vFlip?: boolean;
|
|
153
|
-
rotate?: number;
|
|
51
|
+
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
154
52
|
}
|
|
155
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Customise callback
|
|
56
|
+
*/
|
|
57
|
+
declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
|
|
58
|
+
|
|
156
59
|
/**
|
|
157
60
|
* Callback for when icon has been loaded (only triggered for icons loaded from API)
|
|
158
61
|
*/
|
|
@@ -163,17 +66,9 @@ declare type IconifyIconOnLoad = (name: string) => void;
|
|
|
163
66
|
*/
|
|
164
67
|
export declare interface IconifyIconProps extends IconifyIconCustomisations {
|
|
165
68
|
icon: IconifyIcon | string;
|
|
69
|
+
mode?: IconifyRenderMode;
|
|
166
70
|
color?: string;
|
|
167
71
|
flip?: string;
|
|
168
|
-
align?: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* "icons" field of JSON file.
|
|
173
|
-
*/
|
|
174
|
-
declare interface IconifyIcons {
|
|
175
|
-
// Index is name of icon, without prefix. Value is ExtendedIconifyIcon object.
|
|
176
|
-
[index: string]: ExtendedIconifyIcon;
|
|
177
72
|
}
|
|
178
73
|
|
|
179
74
|
/**
|
|
@@ -182,166 +77,38 @@ declare interface IconifyIcons {
|
|
|
182
77
|
export declare type IconifyIconSize = null | string | number;
|
|
183
78
|
|
|
184
79
|
/**
|
|
185
|
-
*
|
|
80
|
+
* Dimensions
|
|
186
81
|
*/
|
|
187
|
-
declare interface
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
// Total number of icons.
|
|
192
|
-
total?: number;
|
|
193
|
-
|
|
194
|
-
// Version string.
|
|
195
|
-
version?: string;
|
|
196
|
-
|
|
197
|
-
// Author information.
|
|
198
|
-
author: {
|
|
199
|
-
// Author name.
|
|
200
|
-
name: string;
|
|
201
|
-
|
|
202
|
-
// Link to author's website or icon set website.
|
|
203
|
-
url?: string;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// License
|
|
207
|
-
license: {
|
|
208
|
-
// Human readable license.
|
|
209
|
-
title: string;
|
|
210
|
-
|
|
211
|
-
// SPDX license identifier.
|
|
212
|
-
spdx?: string;
|
|
213
|
-
|
|
214
|
-
// License URL.
|
|
215
|
-
url?: string;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
// Array of icons that should be used for samples in icon sets list.
|
|
219
|
-
samples?: string[];
|
|
220
|
-
|
|
221
|
-
// Icon grid: number or array of numbers.
|
|
222
|
-
height?: number | number[];
|
|
223
|
-
|
|
224
|
-
// Display height for samples: 16 - 24
|
|
225
|
-
displayHeight?: number;
|
|
226
|
-
|
|
227
|
-
// Category on Iconify collections list.
|
|
228
|
-
category?: string;
|
|
229
|
-
|
|
230
|
-
// Palette status. True if icons have predefined color scheme, false if icons use currentColor.
|
|
231
|
-
// Ideally, icon set should not mix icons with and without palette to simplify search.
|
|
232
|
-
palette?: boolean;
|
|
233
|
-
|
|
234
|
-
// If true, icon set should not appear in icon sets list.
|
|
235
|
-
hidden?: boolean;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* JSON structure.
|
|
240
|
-
*
|
|
241
|
-
* All optional values can exist in root of JSON file, used as defaults.
|
|
242
|
-
*/
|
|
243
|
-
export declare interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
|
|
244
|
-
// Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
|
|
245
|
-
not_found?: string[];
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* JSON structure, contains only icon data
|
|
250
|
-
*/
|
|
251
|
-
declare interface IconifyJSONIconsData extends IconifyOptional {
|
|
252
|
-
// Prefix for icons in JSON file, required.
|
|
253
|
-
prefix: string;
|
|
254
|
-
|
|
255
|
-
// API provider, optional.
|
|
256
|
-
provider?: string;
|
|
257
|
-
|
|
258
|
-
// List of icons, required.
|
|
259
|
-
icons: IconifyIcons;
|
|
260
|
-
|
|
261
|
-
// Optional aliases.
|
|
262
|
-
aliases?: IconifyAliases;
|
|
263
|
-
|
|
264
|
-
// IconifyOptional properties that are used as default values for icons when icon is missing value.
|
|
265
|
-
// If property exists in both icon and root, use value from icon.
|
|
266
|
-
// This is used to reduce duplication.
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Meta data stored in JSON file, used for browsing icon set.
|
|
271
|
-
*/
|
|
272
|
-
declare interface IconifyMetaData {
|
|
273
|
-
// Icon set information block. Used for public icon sets, can be skipped for private icon sets.
|
|
274
|
-
info?: IconifyInfo;
|
|
275
|
-
|
|
276
|
-
// Characters used in font. Used for searching by character for icon sets imported from font, exporting icon set to font.
|
|
277
|
-
chars?: IconifyChars;
|
|
278
|
-
|
|
279
|
-
// Categories. Used for filtering icons.
|
|
280
|
-
categories?: IconifyCategories;
|
|
281
|
-
|
|
282
|
-
// Optional themes (old format).
|
|
283
|
-
themes?: LegacyIconifyThemes;
|
|
284
|
-
|
|
285
|
-
// Optional themes (new format). Key is prefix or suffix, value is title.
|
|
286
|
-
prefixes?: Record<string, string>;
|
|
287
|
-
suffixes?: Record<string, string>;
|
|
82
|
+
declare interface IconifyIconSizeCustomisations {
|
|
83
|
+
width?: IconifyIconSize;
|
|
84
|
+
height?: IconifyIconSize;
|
|
288
85
|
}
|
|
289
86
|
|
|
290
|
-
|
|
291
|
-
* Combination of dimensions and transformations.
|
|
292
|
-
*/
|
|
293
|
-
declare interface IconifyOptional
|
|
294
|
-
extends IconifyDimenisons,
|
|
295
|
-
IconifyTransformations {
|
|
296
|
-
//
|
|
297
|
-
}
|
|
87
|
+
export { IconifyJSON }
|
|
298
88
|
|
|
299
89
|
/**
|
|
300
|
-
* Icon
|
|
90
|
+
* Icon render mode
|
|
301
91
|
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
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>
|
|
306
96
|
*/
|
|
307
|
-
declare
|
|
308
|
-
// Number of 90 degrees rotations.
|
|
309
|
-
// 0 = 0, 1 = 90deg and so on.
|
|
310
|
-
// Defaults to 0.
|
|
311
|
-
// When merged (such as alias + icon), result is icon.rotation + alias.rotation.
|
|
312
|
-
rotate?: number;
|
|
313
|
-
|
|
314
|
-
// Horizontal flip.
|
|
315
|
-
// Defaults to false.
|
|
316
|
-
// When merged, result is icon.hFlip !== alias.hFlip
|
|
317
|
-
hFlip?: boolean;
|
|
318
|
-
|
|
319
|
-
// Vertical flip. (see hFlip comments)
|
|
320
|
-
vFlip?: boolean;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export declare type IconifyVerticalIconAlignment = 'top' | 'middle' | 'bottom';
|
|
97
|
+
export declare type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'svg';
|
|
324
98
|
|
|
325
99
|
/**
|
|
326
100
|
* Mix of icon properties and HTMLElement properties
|
|
327
101
|
*/
|
|
328
|
-
export declare
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
// Theme title.
|
|
339
|
-
title: string;
|
|
340
|
-
|
|
341
|
-
// Icon prefix or suffix, including dash. All icons that start with prefix and end with suffix belong to theme.
|
|
342
|
-
prefix?: string; // Example: 'baseline-'
|
|
343
|
-
suffix?: string; // Example: '-filled'
|
|
344
|
-
};
|
|
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;
|
|
345
112
|
}
|
|
346
113
|
|
|
347
114
|
export { }
|
|
@@ -1,61 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare type Line = number;
|
|
2
|
+
declare type Column = number;
|
|
3
|
+
declare type Kind = number;
|
|
4
|
+
declare type Name = number;
|
|
5
|
+
declare type Var = number;
|
|
6
|
+
declare type SourcesIndex = number;
|
|
7
|
+
declare type ScopesIndex = number;
|
|
8
|
+
declare type Mix<A, B, O> = (A & O) | (B & O);
|
|
9
|
+
export declare type OriginalScope = Mix<[
|
|
10
|
+
Line,
|
|
11
|
+
Column,
|
|
12
|
+
Line,
|
|
13
|
+
Column,
|
|
14
|
+
Kind
|
|
15
|
+
], [
|
|
16
|
+
Line,
|
|
17
|
+
Column,
|
|
18
|
+
Line,
|
|
19
|
+
Column,
|
|
20
|
+
Kind,
|
|
21
|
+
Name
|
|
22
|
+
], {
|
|
23
|
+
vars: Var[];
|
|
24
|
+
}>;
|
|
25
|
+
export declare type GeneratedRange = Mix<[
|
|
26
|
+
Line,
|
|
27
|
+
Column,
|
|
28
|
+
Line,
|
|
29
|
+
Column
|
|
30
|
+
], [
|
|
31
|
+
Line,
|
|
32
|
+
Column,
|
|
33
|
+
Line,
|
|
34
|
+
Column,
|
|
35
|
+
SourcesIndex,
|
|
36
|
+
ScopesIndex
|
|
37
|
+
], {
|
|
38
|
+
callsite: CallSite | null;
|
|
39
|
+
bindings: Binding[];
|
|
40
|
+
isScope: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
export declare type CallSite = [SourcesIndex, Line, Column];
|
|
43
|
+
declare type Binding = BindingExpressionRange[];
|
|
44
|
+
export declare type BindingExpressionRange = [Name] | [Name, Line, Column];
|
|
45
|
+
export declare function decodeOriginalScopes(input: string): OriginalScope[];
|
|
46
|
+
export declare function encodeOriginalScopes(scopes: OriginalScope[]): string;
|
|
47
|
+
export declare function decodeGeneratedRanges(input: string): GeneratedRange[];
|
|
48
|
+
export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string;
|
|
49
|
+
export {};
|
package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes';
|
|
2
|
+
export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';
|
|
1
3
|
export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
2
4
|
export declare type SourceMapLine = SourceMapSegment[];
|
|
3
5
|
export declare type SourceMapMappings = SourceMapLine[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class StringWriter {
|
|
2
|
+
pos: number;
|
|
3
|
+
private out;
|
|
4
|
+
private buffer;
|
|
5
|
+
write(v: number): void;
|
|
6
|
+
flush(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare class StringReader {
|
|
9
|
+
pos: number;
|
|
10
|
+
private buffer;
|
|
11
|
+
constructor(buffer: string);
|
|
12
|
+
next(): number;
|
|
13
|
+
peek(): number;
|
|
14
|
+
indexOf(char: string): number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StringReader, StringWriter } from './strings';
|
|
2
|
+
export declare const comma: number;
|
|
3
|
+
export declare const semicolon: number;
|
|
4
|
+
export declare function decodeInteger(reader: StringReader, relative: number): number;
|
|
5
|
+
export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number;
|
|
6
|
+
export declare function hasMoreVlq(reader: StringReader, max: number): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jridgewell/sourcemap-codec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Encode/decode sourcemap mappings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sourcemap",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"prebuild": "rm -rf dist",
|
|
38
38
|
"prepublishOnly": "npm run preversion",
|
|
39
39
|
"preversion": "run-s test build",
|
|
40
|
-
"pretest": "run-s build:rollup",
|
|
41
40
|
"test": "run-s -n test:lint test:only",
|
|
42
41
|
"test:debug": "mocha --inspect-brk",
|
|
43
42
|
"test:lint": "run-s -n test:lint:*",
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
"license": "MIT",
|
|
56
55
|
"devDependencies": {
|
|
57
56
|
"@rollup/plugin-typescript": "8.3.0",
|
|
57
|
+
"@types/mocha": "10.0.6",
|
|
58
58
|
"@types/node": "17.0.15",
|
|
59
59
|
"@typescript-eslint/eslint-plugin": "5.10.0",
|
|
60
60
|
"@typescript-eslint/parser": "5.10.0",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"source-map": "0.6.1",
|
|
70
70
|
"source-map-js": "1.0.2",
|
|
71
71
|
"sourcemap-codec": "1.4.8",
|
|
72
|
+
"tsx": "4.7.1",
|
|
72
73
|
"typescript": "4.5.4"
|
|
73
74
|
}
|
|
74
75
|
}
|