@histoire/vendors 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/client/b-floating-vue.d.ts +3 -0
  2. package/dist/client/{floating-vue.js → b-floating-vue.js} +1 -1
  3. package/dist/client/b-iconify.d.ts +1 -0
  4. package/dist/client/{iconify.js → b-iconify.js} +0 -0
  5. package/dist/client/b-pinia.d.ts +1 -0
  6. package/dist/client/{pinia.js → b-pinia.js} +41 -8
  7. package/dist/client/b-scroll.d.ts +2 -0
  8. package/dist/client/{scroll.js → b-scroll.js} +1 -1
  9. package/dist/client/b-vue-router.d.ts +1 -0
  10. package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
  11. package/dist/client/b-vue-use.d.ts +1 -0
  12. package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
  13. package/dist/client/b-vue.d.ts +1 -0
  14. package/dist/client/{vue.js → b-vue.js} +1 -1
  15. package/dist/client/node_modules/@babel/parser/package.json +45 -0
  16. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
  17. package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
  18. package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
  19. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
  20. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
  21. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
  22. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
  23. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
  24. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
  25. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
  26. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
  27. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
  28. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
  29. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
  30. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
  31. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
  32. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
  33. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
  34. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
  35. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
  36. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
  37. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
  38. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
  39. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
  40. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
  41. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
  42. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
  43. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
  44. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
  45. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
  46. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
  47. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
  48. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
  49. package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
  50. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
  51. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
  52. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
  67. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
  68. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
  69. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
  70. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
  71. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
  72. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
  73. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
  74. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
  75. package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
  76. package/dist/client/node_modules/@iconify/vue/package.json +61 -0
  77. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
  78. package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
  79. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
  80. package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
  81. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
  82. package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
  83. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
  84. package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
  85. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
  86. package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
  87. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
  88. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
  89. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
  90. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
  91. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
  92. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
  93. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
  94. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
  95. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
  96. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
  98. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
  99. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
  100. package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
  101. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
  102. package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
  103. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
  104. package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
  105. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
  106. package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
  107. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
  108. package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
  109. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
  110. package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
  111. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
  112. package/dist/client/node_modules/@vue/shared/package.json +33 -0
  113. package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
  114. package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
  115. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
  116. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
  117. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
  118. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  119. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  120. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  121. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
  122. package/dist/client/node_modules/@vueuse/core/package.json +59 -0
  123. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
  124. package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
  125. package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
  126. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
  127. package/dist/client/node_modules/csstype/index.d.ts +38372 -0
  128. package/dist/client/node_modules/csstype/package.json +57 -0
  129. package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
  130. package/dist/client/node_modules/estree-walker/package.json +37 -0
  131. package/dist/client/node_modules/estree-walker/src/package.json +1 -0
  132. package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
  133. package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
  134. package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
  135. package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
  136. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
  137. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
  138. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +374 -0
  139. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +366 -0
  140. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
  141. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
  142. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
  143. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
  144. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
  145. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
  146. package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
  147. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
  148. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
  149. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
  150. package/dist/client/node_modules/floating-vue/dist/index.d.ts +414 -0
  151. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
  152. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
  153. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
  154. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
  155. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
  156. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
  157. package/dist/client/node_modules/floating-vue/package.json +71 -0
  158. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
  159. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
  160. package/dist/client/node_modules/magic-string/index.d.ts +221 -0
  161. package/dist/client/node_modules/magic-string/package.json +52 -0
  162. package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
  163. package/dist/client/node_modules/nanoid/async/package.json +12 -0
  164. package/dist/client/node_modules/nanoid/index.d.ts +91 -0
  165. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
  166. package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
  167. package/dist/client/node_modules/nanoid/package.json +60 -0
  168. package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
  169. package/dist/client/node_modules/picocolors/package.json +25 -0
  170. package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
  171. package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
  172. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
  173. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  174. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  175. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  176. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
  177. package/dist/client/node_modules/pinia/package.json +101 -0
  178. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
  179. package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
  180. package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
  181. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
  182. package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
  183. package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
  184. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
  185. package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
  186. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
  187. package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
  188. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
  189. package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
  190. package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
  191. package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
  192. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
  193. package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
  194. package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
  195. package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
  196. package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
  197. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
  198. package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
  199. package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
  200. package/dist/client/node_modules/postcss/package.json +85 -0
  201. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
  202. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
  203. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
  204. package/dist/client/node_modules/source-map/package.json +73 -0
  205. package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
  206. package/dist/client/node_modules/source-map-js/package.json +71 -0
  207. package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
  208. package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  209. package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
  210. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  211. package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
  212. package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
  213. package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
  214. package/dist/client/node_modules/vue/macros.d.ts +110 -0
  215. package/dist/client/node_modules/vue/package.json +75 -0
  216. package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
  217. package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
  218. package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
  219. package/dist/client/node_modules/vue-resize/package.json +77 -0
  220. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
  221. package/dist/client/node_modules/vue-router/package.json +114 -0
  222. package/dist/client/vue.runtime.esm-bundler.js +24 -19
  223. package/entries.js +7 -7
  224. package/floating-vue.d.ts +3 -0
  225. package/iconify.d.ts +3 -0
  226. package/package.json +13 -4
  227. package/pinia.d.ts +3 -0
  228. package/rollup.config.mjs +116 -0
  229. package/scroll.d.ts +3 -0
  230. package/src/client/b-floating-vue.ts +3 -0
  231. package/src/client/b-iconify.ts +1 -0
  232. package/src/client/b-pinia.ts +1 -0
  233. package/src/client/b-scroll.ts +2 -0
  234. package/src/client/b-vue-router.ts +1 -0
  235. package/src/client/b-vue-use.ts +1 -0
  236. package/src/client/b-vue.ts +1 -0
  237. package/vue-router.d.ts +3 -0
  238. package/vue-use.d.ts +3 -0
  239. package/vue.d.ts +3 -0
  240. package/dist/client/floating-vue.d.ts +0 -2
  241. package/dist/client/iconify.d.ts +0 -1
  242. package/dist/client/pinia.d.ts +0 -1
  243. package/dist/client/scroll.d.ts +0 -1
  244. package/dist/client/vue-router.d.ts +0 -1
  245. package/dist/client/vue-use.d.ts +0 -1
  246. package/dist/client/vue.d.ts +0 -1
  247. package/rollup.config.js +0 -37
  248. package/src/client/floating-vue.ts +0 -2
  249. package/src/client/iconify.ts +0 -1
  250. package/src/client/pinia.ts +0 -1
  251. package/src/client/scroll.ts +0 -1
  252. package/src/client/vue-router.ts +0 -1
  253. package/src/client/vue-use.ts +0 -1
  254. 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 { }