tttb 0.1.29

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 (264) hide show
  1. package/README.md +42 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/components/Button/index.js +6 -0
  4. package/dist/components/Button/index.vue.js +7 -0
  5. package/dist/components/Button/index.vue2.js +54 -0
  6. package/dist/components/Button/types.js +8 -0
  7. package/dist/components/Checkbox/index.js +6 -0
  8. package/dist/components/Checkbox/index.vue.js +7 -0
  9. package/dist/components/Checkbox/index.vue2.js +35 -0
  10. package/dist/components/Checkbox/types.js +7 -0
  11. package/dist/components/Collapse/index.js +6 -0
  12. package/dist/components/Collapse/index.vue.js +7 -0
  13. package/dist/components/Collapse/index.vue2.js +42 -0
  14. package/dist/components/Collapse/types.js +7 -0
  15. package/dist/components/CollapseItem/index.js +6 -0
  16. package/dist/components/CollapseItem/index.vue.js +7 -0
  17. package/dist/components/CollapseItem/index.vue2.js +80 -0
  18. package/dist/components/Dialog/DialogItem.vue.js +7 -0
  19. package/dist/components/Dialog/DialogItem.vue2.js +69 -0
  20. package/dist/components/Dialog/DialogPrompt.vue.js +7 -0
  21. package/dist/components/Dialog/DialogPrompt.vue2.js +63 -0
  22. package/dist/components/Dialog/index.js +6 -0
  23. package/dist/components/Dialog/index.vue.js +7 -0
  24. package/dist/components/Dialog/index.vue2.js +91 -0
  25. package/dist/components/Icon/index.js +6 -0
  26. package/dist/components/Icon/index.vue.js +45 -0
  27. package/dist/components/Icon/index.vue2.js +4 -0
  28. package/dist/components/Loading/index.js +6 -0
  29. package/dist/components/Loading/index.vue.js +7 -0
  30. package/dist/components/Loading/index.vue2.js +37 -0
  31. package/dist/components/Loading/types.js +7 -0
  32. package/dist/components/Message/index.js +6 -0
  33. package/dist/components/Message/index.vue.js +7 -0
  34. package/dist/components/Message/index.vue2.js +91 -0
  35. package/dist/components/Modal/index.js +6 -0
  36. package/dist/components/Modal/index.vue.js +7 -0
  37. package/dist/components/Modal/index.vue2.js +39 -0
  38. package/dist/components/Modal/types.js +7 -0
  39. package/dist/components/Nav/index.js +6 -0
  40. package/dist/components/Nav/index.vue.js +7 -0
  41. package/dist/components/Nav/index.vue2.js +95 -0
  42. package/dist/components/Pagination/index.js +6 -0
  43. package/dist/components/Pagination/index.vue.js +7 -0
  44. package/dist/components/Pagination/index.vue2.js +149 -0
  45. package/dist/components/Pagination/types.js +8 -0
  46. package/dist/components/Popconfirm/index.js +7 -0
  47. package/dist/components/Popconfirm/index.vue.js +92 -0
  48. package/dist/components/Popconfirm/index.vue3.js +5 -0
  49. package/dist/components/Popconfirm/types.js +14 -0
  50. package/dist/components/Popover/index.js +7 -0
  51. package/dist/components/Popover/index.vue.js +32 -0
  52. package/dist/components/Popover/index.vue3.js +5 -0
  53. package/dist/components/Progress/index.js +6 -0
  54. package/dist/components/Progress/index.vue.js +7 -0
  55. package/dist/components/Progress/index.vue2.js +38 -0
  56. package/dist/components/Progress/types.js +7 -0
  57. package/dist/components/RouterNav/index.js +6 -0
  58. package/dist/components/RouterNav/index.vue.js +33 -0
  59. package/dist/components/RouterNav/index.vue2.js +4 -0
  60. package/dist/components/Switch/index.js +6 -0
  61. package/dist/components/Switch/index.vue.js +7 -0
  62. package/dist/components/Switch/index.vue2.js +76 -0
  63. package/dist/components/Switch/types.js +6 -0
  64. package/dist/components/Table/index.js +6 -0
  65. package/dist/components/Table/index.vue.js +7 -0
  66. package/dist/components/Table/index.vue2.js +57 -0
  67. package/dist/components/Timer/index.js +6 -0
  68. package/dist/components/Timer/index.vue.js +31 -0
  69. package/dist/components/Timer/index.vue2.js +4 -0
  70. package/dist/components/Tooltip/TooltipContent.vue.js +33 -0
  71. package/dist/components/Tooltip/TooltipContent.vue2.js +4 -0
  72. package/dist/components/Tooltip/TooltipItem.vue.js +58 -0
  73. package/dist/components/Tooltip/TooltipItem.vue2.js +4 -0
  74. package/dist/components/Tooltip/TooltipLayer.vue.js +49 -0
  75. package/dist/components/Tooltip/TooltipLayer.vue2.js +4 -0
  76. package/dist/components/Tooltip/index.js +6 -0
  77. package/dist/components/Tooltip/index.vue.js +74 -0
  78. package/dist/components/Tooltip/index.vue2.js +4 -0
  79. package/dist/components/Tooltip/manager.js +105 -0
  80. package/dist/components/Tooltip/types.js +38 -0
  81. package/dist/components/Tooltip/useTooltip.js +43 -0
  82. package/dist/components/Warn/index.js +6 -0
  83. package/dist/components/Warn/index.vue.js +7 -0
  84. package/dist/components/Warn/index.vue2.js +21 -0
  85. package/dist/components/Warn/types.js +6 -0
  86. package/dist/components/Watermark/index.js +6 -0
  87. package/dist/components/Watermark/index.vue.js +7 -0
  88. package/dist/components/Watermark/index.vue2.js +54 -0
  89. package/dist/components/Watermark/types.js +10 -0
  90. package/dist/components/Watermark/useWatermarkBg.js +11 -0
  91. package/dist/components/helpers.js +25 -0
  92. package/dist/components.js +44 -0
  93. package/dist/directives/vBackTop.js +111 -0
  94. package/dist/directives/vDelayIn.js +41 -0
  95. package/dist/directives/vHoldPointer.js +112 -0
  96. package/dist/directives/vLazy.js +61 -0
  97. package/dist/directives/vLoading.js +49 -0
  98. package/dist/directives/vRipple.js +81 -0
  99. package/dist/directives/vSlideIn.js +39 -0
  100. package/dist/directives/vTextJump.js +50 -0
  101. package/dist/directives/vTooltip.js +55 -0
  102. package/dist/directives.js +20 -0
  103. package/dist/hooks/useAudio.js +112 -0
  104. package/dist/hooks/useElementScroll.js +30 -0
  105. package/dist/hooks/useGSAP.js +40 -0
  106. package/dist/hooks/useRefreshRate.js +26 -0
  107. package/dist/hooks/useWindowBackTop.js +86 -0
  108. package/dist/hooks.js +13 -0
  109. package/dist/icons/brands.js +592 -0
  110. package/dist/icons/regular.js +278 -0
  111. package/dist/icons/solid.js +2005 -0
  112. package/dist/index.js +135 -0
  113. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +448 -0
  114. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +401 -0
  115. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  116. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  117. package/dist/node_modules/.pnpm/@floating-ui_vue@1.1.11_vue@3.5.34_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +131 -0
  118. package/dist/node_modules/.pnpm/@fortawesome_fontawesome-svg-core@7.2.0/node_modules/@fortawesome/fontawesome-svg-core/index.js +3102 -0
  119. package/dist/node_modules/.pnpm/@fortawesome_free-brands-svg-icons@7.2.0/node_modules/@fortawesome/free-brands-svg-icons/index.js +3380 -0
  120. package/dist/node_modules/.pnpm/@fortawesome_free-regular-svg-icons@7.2.0/node_modules/@fortawesome/free-regular-svg-icons/index.js +1228 -0
  121. package/dist/node_modules/.pnpm/@fortawesome_free-solid-svg-icons@7.2.0/node_modules/@fortawesome/free-solid-svg-icons/index.js +9694 -0
  122. package/dist/node_modules/.pnpm/@fortawesome_vue-fontawesom_b85c0ed4b0a431cb59a463de76a3e522/node_modules/@fortawesome/vue-fontawesome/index.es.js +528 -0
  123. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/CSSPlugin.js +424 -0
  124. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/gsap-core.js +1652 -0
  125. package/dist/node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/index.js +13 -0
  126. package/dist/tttb.css +1 -0
  127. package/dist/types/bundle.d.ts +10 -0
  128. package/dist/types/components/Button/index.d.ts +22 -0
  129. package/dist/types/components/Button/types.d.ts +12 -0
  130. package/dist/types/components/Checkbox/index.d.ts +29 -0
  131. package/dist/types/components/Checkbox/types.d.ts +8 -0
  132. package/dist/types/components/Collapse/index.d.ts +28 -0
  133. package/dist/types/components/Collapse/types.d.ts +16 -0
  134. package/dist/types/components/CollapseItem/index.d.ts +27 -0
  135. package/dist/types/components/CollapseItem/types.d.ts +6 -0
  136. package/dist/types/components/Dialog/DialogItem.d.ts +38 -0
  137. package/dist/types/components/Dialog/DialogPrompt.d.ts +16 -0
  138. package/dist/types/components/Dialog/index.d.ts +10 -0
  139. package/dist/types/components/Dialog/types.d.ts +58 -0
  140. package/dist/types/components/Icon/index.d.ts +3 -0
  141. package/dist/types/components/Icon/types.d.ts +2 -0
  142. package/dist/types/components/Loading/index.d.ts +6 -0
  143. package/dist/types/components/Loading/types.d.ts +8 -0
  144. package/dist/types/components/Message/index.d.ts +9 -0
  145. package/dist/types/components/Message/types.d.ts +13 -0
  146. package/dist/types/components/Modal/index.d.ts +21 -0
  147. package/dist/types/components/Modal/types.d.ts +11 -0
  148. package/dist/types/components/Nav/index.d.ts +7 -0
  149. package/dist/types/components/Nav/types.d.ts +15 -0
  150. package/dist/types/components/Pagination/index.d.ts +18 -0
  151. package/dist/types/components/Pagination/types.d.ts +16 -0
  152. package/dist/types/components/Popconfirm/index.d.ts +262 -0
  153. package/dist/types/components/Popconfirm/types.d.ts +27 -0
  154. package/dist/types/components/Popover/index.d.ts +150 -0
  155. package/dist/types/components/Progress/index.d.ts +21 -0
  156. package/dist/types/components/Progress/types.d.ts +9 -0
  157. package/dist/types/components/RouterNav/index.d.ts +2 -0
  158. package/dist/types/components/Switch/index.d.ts +13 -0
  159. package/dist/types/components/Switch/types.d.ts +6 -0
  160. package/dist/types/components/Table/index.d.ts +35 -0
  161. package/dist/types/components/Table/types.d.ts +4 -0
  162. package/dist/types/components/Timer/index.d.ts +6 -0
  163. package/dist/types/components/Tooltip/TooltipContent.d.ts +17 -0
  164. package/dist/types/components/Tooltip/TooltipItem.d.ts +45 -0
  165. package/dist/types/components/Tooltip/TooltipLayer.d.ts +2 -0
  166. package/dist/types/components/Tooltip/index.d.ts +42 -0
  167. package/dist/types/components/Tooltip/manager.d.ts +18 -0
  168. package/dist/types/components/Tooltip/types.d.ts +54 -0
  169. package/dist/types/components/Tooltip/useTooltip.d.ts +8 -0
  170. package/dist/types/components/Warn/index.d.ts +20 -0
  171. package/dist/types/components/Warn/types.d.ts +6 -0
  172. package/dist/types/components/Watermark/index.d.ts +28 -0
  173. package/dist/types/components/Watermark/types.d.ts +14 -0
  174. package/dist/types/components/Watermark/useWatermarkBg.d.ts +6 -0
  175. package/dist/types/components/helpers.d.ts +14 -0
  176. package/dist/types/components/index.d.ts +21 -0
  177. package/dist/types/directives/index.d.ts +9 -0
  178. package/dist/types/directives/vBackTop.d.ts +3 -0
  179. package/dist/types/directives/vDelayIn.d.ts +3 -0
  180. package/dist/types/directives/vHoldPointer.d.ts +3 -0
  181. package/dist/types/directives/vLazy.d.ts +3 -0
  182. package/dist/types/directives/vLoading.d.ts +3 -0
  183. package/dist/types/directives/vRipple.d.ts +3 -0
  184. package/dist/types/directives/vSlideIn.d.ts +3 -0
  185. package/dist/types/directives/vTextJump.d.ts +3 -0
  186. package/dist/types/directives/vTooltip.d.ts +7 -0
  187. package/dist/types/hooks/index.d.ts +5 -0
  188. package/dist/types/hooks/useAudio.d.ts +38 -0
  189. package/dist/types/hooks/useElementScroll.d.ts +32 -0
  190. package/dist/types/hooks/useGSAP.d.ts +34 -0
  191. package/dist/types/hooks/useRefreshRate.d.ts +5 -0
  192. package/dist/types/hooks/useWindowBackTop.d.ts +14 -0
  193. package/dist/types/icons/brands.d.ts +589 -0
  194. package/dist/types/icons/regular.d.ts +275 -0
  195. package/dist/types/icons/solid.d.ts +2002 -0
  196. package/dist/types/router/index.d.ts +2 -0
  197. package/dist/types/utils/chance.d.ts +7 -0
  198. package/dist/types/utils/copyToClipboard.d.ts +6 -0
  199. package/dist/types/utils/debounce.d.ts +16 -0
  200. package/dist/types/utils/deepClone.d.ts +6 -0
  201. package/dist/types/utils/deepEqual.d.ts +5 -0
  202. package/dist/types/utils/dialog.d.ts +12 -0
  203. package/dist/types/utils/getId.d.ts +6 -0
  204. package/dist/types/utils/getRandomColor.d.ts +4 -0
  205. package/dist/types/utils/getRandomInt.d.ts +6 -0
  206. package/dist/types/utils/getRandomStr.d.ts +6 -0
  207. package/dist/types/utils/index.d.ts +23 -0
  208. package/dist/types/utils/injectStyles.d.ts +9 -0
  209. package/dist/types/utils/isElementOverflow.d.ts +20 -0
  210. package/dist/types/utils/isEmpty.d.ts +6 -0
  211. package/dist/types/utils/isMobile.d.ts +6 -0
  212. package/dist/types/utils/isObject.d.ts +4 -0
  213. package/dist/types/utils/isPromise.d.ts +6 -0
  214. package/dist/types/utils/localStorage.d.ts +24 -0
  215. package/dist/types/utils/msg.d.ts +20 -0
  216. package/dist/types/utils/omit.d.ts +6 -0
  217. package/dist/types/utils/pick.d.ts +6 -0
  218. package/dist/types/utils/sessionStorage.d.ts +24 -0
  219. package/dist/types/utils/shuffleArray.d.ts +6 -0
  220. package/dist/types/utils/throttle.d.ts +9 -0
  221. package/dist/types/views/TestButton.d.ts +2 -0
  222. package/dist/types/views/TestCheckbox.d.ts +2 -0
  223. package/dist/types/views/TestCollapse.d.ts +2 -0
  224. package/dist/types/views/TestDialog.d.ts +2 -0
  225. package/dist/types/views/TestHome.d.ts +2 -0
  226. package/dist/types/views/TestIcon.d.ts +2 -0
  227. package/dist/types/views/TestMessage.d.ts +2 -0
  228. package/dist/types/views/TestModal.d.ts +2 -0
  229. package/dist/types/views/TestNav.d.ts +2 -0
  230. package/dist/types/views/TestPager.d.ts +2 -0
  231. package/dist/types/views/TestPopconfirm.d.ts +4 -0
  232. package/dist/types/views/TestProgress.d.ts +2 -0
  233. package/dist/types/views/TestSwitch.d.ts +2 -0
  234. package/dist/types/views/TestTable.d.ts +2 -0
  235. package/dist/types/views/TestTimer.d.ts +19 -0
  236. package/dist/types/views/TestTooltip.d.ts +2 -0
  237. package/dist/types/views/TestVLoading.d.ts +2 -0
  238. package/dist/types/views/TestWarn.d.ts +2 -0
  239. package/dist/types/views/TestWatermark.d.ts +2 -0
  240. package/dist/utils/chance.js +7 -0
  241. package/dist/utils/copyToClipboard.js +19 -0
  242. package/dist/utils/debounce.js +14 -0
  243. package/dist/utils/deepClone.js +17 -0
  244. package/dist/utils/deepEqual.js +40 -0
  245. package/dist/utils/dialog.js +47 -0
  246. package/dist/utils/getId.js +10 -0
  247. package/dist/utils/getRandomColor.js +4 -0
  248. package/dist/utils/getRandomInt.js +4 -0
  249. package/dist/utils/getRandomStr.js +5 -0
  250. package/dist/utils/injectStyles.js +24 -0
  251. package/dist/utils/isElementOverflow.js +22 -0
  252. package/dist/utils/isEmpty.js +4 -0
  253. package/dist/utils/isMobile.js +7 -0
  254. package/dist/utils/isObject.js +4 -0
  255. package/dist/utils/isPromise.js +7 -0
  256. package/dist/utils/localStorage.js +50 -0
  257. package/dist/utils/msg.js +24 -0
  258. package/dist/utils/omit.js +9 -0
  259. package/dist/utils/pick.js +9 -0
  260. package/dist/utils/sessionStorage.js +47 -0
  261. package/dist/utils/shuffleArray.js +10 -0
  262. package/dist/utils/throttle.js +11 -0
  263. package/dist/utils.js +50 -0
  264. package/package.json +102 -0
package/dist/index.js ADDED
@@ -0,0 +1,135 @@
1
+ /* empty css */
2
+ import * as r from "./components.js";
3
+ import * as t from "./directives.js";
4
+ import { chance as l } from "./utils/chance.js";
5
+ import { copyToClipboard as d } from "./utils/copyToClipboard.js";
6
+ import { debounce as i } from "./utils/debounce.js";
7
+ import { deepClone as c } from "./utils/deepClone.js";
8
+ import { deepEqual as v } from "./utils/deepEqual.js";
9
+ import { dialog as T } from "./utils/dialog.js";
10
+ import { getId as h } from "./utils/getId.js";
11
+ import { getRandomColor as R } from "./utils/getRandomColor.js";
12
+ import { getRandomInt as I } from "./utils/getRandomInt.js";
13
+ import { getRandomStr as C, getRandomString as O } from "./utils/getRandomStr.js";
14
+ import { injectStyles as j } from "./utils/injectStyles.js";
15
+ import { isElementOverflow as L } from "./utils/isElementOverflow.js";
16
+ import { isEmpty as B } from "./utils/isEmpty.js";
17
+ import { isMobile as M } from "./utils/isMobile.js";
18
+ import { isObject as W } from "./utils/isObject.js";
19
+ import { isPromise as z } from "./utils/isPromise.js";
20
+ import { localStorage as G } from "./utils/localStorage.js";
21
+ import { message as J, msg as U } from "./utils/msg.js";
22
+ import { omit as K } from "./utils/omit.js";
23
+ import { pick as V } from "./utils/pick.js";
24
+ import { sessionStorage as Y } from "./utils/sessionStorage.js";
25
+ import { shuffleArray as $ } from "./utils/shuffleArray.js";
26
+ import { throttle as eo } from "./utils/throttle.js";
27
+ import { useAudio as to } from "./hooks/useAudio.js";
28
+ import { useElementScroll as fo } from "./hooks/useElementScroll.js";
29
+ import { useGSAP as po } from "./hooks/useGSAP.js";
30
+ import { useRefreshRate as lo } from "./hooks/useRefreshRate.js";
31
+ import { DEFAULT_OPTIONS as uo, useWindowBackTop as io } from "./hooks/useWindowBackTop.js";
32
+ import { default as co } from "./directives/vBackTop.js";
33
+ import { default as vo } from "./directives/vDelayIn.js";
34
+ import { default as To } from "./directives/vHoldPointer.js";
35
+ import { default as ho } from "./directives/vLazy.js";
36
+ import { default as Ro } from "./directives/vLoading.js";
37
+ import { default as Io } from "./directives/vRipple.js";
38
+ import { default as Co } from "./directives/vSlideIn.js";
39
+ import { default as ko } from "./directives/vTextJump.js";
40
+ import { default as Ao } from "./directives/vTooltip.js";
41
+ import { default as wo } from "./components/Button/index.js";
42
+ import { default as Do } from "./components/Checkbox/index.js";
43
+ import { default as No } from "./components/Collapse/index.js";
44
+ import { default as qo } from "./components/CollapseItem/index.js";
45
+ import { default as Fo } from "./components/Dialog/index.js";
46
+ import { default as Ho } from "./components/Icon/index.js";
47
+ import { default as Uo } from "./components/Loading/index.js";
48
+ import { default as Ko } from "./components/Message/index.js";
49
+ import { default as Vo } from "./components/Modal/index.js";
50
+ import { default as Yo } from "./components/Nav/index.js";
51
+ import { default as $o } from "./components/Pagination/index.js";
52
+ import { default as ee } from "./components/Popconfirm/index.js";
53
+ import { default as te } from "./components/Popover/index.js";
54
+ import { default as fe } from "./components/Progress/index.js";
55
+ import { default as pe } from "./components/RouterNav/index.js";
56
+ import { default as le } from "./components/Switch/index.js";
57
+ import { default as de } from "./components/Table/index.js";
58
+ import { default as ie } from "./components/Timer/index.js";
59
+ import { default as ce } from "./components/Tooltip/index.js";
60
+ import { default as ve } from "./components/Warn/index.js";
61
+ import { default as Te } from "./components/Watermark/index.js";
62
+ const a = (e) => {
63
+ Object.values(r).forEach((o) => {
64
+ e.component(o.name, o);
65
+ }), Object.values(t).forEach((o) => {
66
+ e.directive(o.name, o);
67
+ });
68
+ }, m = {
69
+ install: a
70
+ };
71
+ export {
72
+ wo as Button,
73
+ Do as Checkbox,
74
+ No as Collapse,
75
+ qo as CollapseItem,
76
+ uo as DEFAULT_OPTIONS,
77
+ Fo as Dialog,
78
+ Ho as Icon,
79
+ Uo as Loading,
80
+ Ko as Message,
81
+ Vo as Modal,
82
+ Yo as Nav,
83
+ $o as Pagination,
84
+ ee as Popconfirm,
85
+ te as Popover,
86
+ fe as Progress,
87
+ pe as RouterNav,
88
+ le as Switch,
89
+ de as Table,
90
+ ie as Timer,
91
+ ce as Tooltip,
92
+ ve as Warn,
93
+ Te as Watermark,
94
+ l as chance,
95
+ d as copyToClipboard,
96
+ i as debounce,
97
+ c as deepClone,
98
+ v as deepEqual,
99
+ m as default,
100
+ T as dialog,
101
+ h as getId,
102
+ R as getRandomColor,
103
+ I as getRandomInt,
104
+ C as getRandomStr,
105
+ O as getRandomString,
106
+ j as injectStyles,
107
+ a as install,
108
+ L as isElementOverflow,
109
+ B as isEmpty,
110
+ M as isMobile,
111
+ W as isObject,
112
+ z as isPromise,
113
+ G as localStorage,
114
+ J as message,
115
+ U as msg,
116
+ K as omit,
117
+ V as pick,
118
+ Y as sessionStorage,
119
+ $ as shuffleArray,
120
+ eo as throttle,
121
+ to as useAudio,
122
+ fo as useElementScroll,
123
+ po as useGSAP,
124
+ lo as useRefreshRate,
125
+ io as useWindowBackTop,
126
+ co as vBackTop,
127
+ vo as vDelayIn,
128
+ To as vHoldPointer,
129
+ ho as vLazy,
130
+ Ro as vLoading,
131
+ Io as vRipple,
132
+ Co as vSlideIn,
133
+ ko as vTextJump,
134
+ Ao as vTooltip
135
+ };
@@ -0,0 +1,448 @@
1
+ import { evaluate as M, getSide as B, getSideAxis as F, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, clamp as _, getAlignment as $, getOppositeAxis as ee, getPaddingObject as N, getAlignmentAxis as U, sides as te, getAxisLength as q, min as X, rectToClientRect as Y } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
2
+ function W(t, e, m) {
3
+ let {
4
+ reference: i,
5
+ floating: r
6
+ } = t;
7
+ const n = F(e), s = U(e), o = q(s), d = B(e), u = n === "y", g = i.x + i.width / 2 - r.width / 2, l = i.y + i.height / 2 - r.height / 2, f = i[o] / 2 - r[o] / 2;
8
+ let a;
9
+ switch (d) {
10
+ case "top":
11
+ a = {
12
+ x: g,
13
+ y: i.y - r.height
14
+ };
15
+ break;
16
+ case "bottom":
17
+ a = {
18
+ x: g,
19
+ y: i.y + i.height
20
+ };
21
+ break;
22
+ case "right":
23
+ a = {
24
+ x: i.x + i.width,
25
+ y: l
26
+ };
27
+ break;
28
+ case "left":
29
+ a = {
30
+ x: i.x - r.width,
31
+ y: l
32
+ };
33
+ break;
34
+ default:
35
+ a = {
36
+ x: i.x,
37
+ y: i.y
38
+ };
39
+ }
40
+ switch ($(e)) {
41
+ case "start":
42
+ a[s] -= f * (m && u ? -1 : 1);
43
+ break;
44
+ case "end":
45
+ a[s] += f * (m && u ? -1 : 1);
46
+ break;
47
+ }
48
+ return a;
49
+ }
50
+ async function ne(t, e) {
51
+ var m;
52
+ e === void 0 && (e = {});
53
+ const {
54
+ x: i,
55
+ y: r,
56
+ platform: n,
57
+ rects: s,
58
+ elements: o,
59
+ strategy: d
60
+ } = t, {
61
+ boundary: u = "clippingAncestors",
62
+ rootBoundary: g = "viewport",
63
+ elementContext: l = "floating",
64
+ altBoundary: f = !1,
65
+ padding: a = 0
66
+ } = M(e, t), c = N(a), h = o[f ? l === "floating" ? "reference" : "floating" : l], w = Y(await n.getClippingRect({
67
+ element: (m = await (n.isElement == null ? void 0 : n.isElement(h))) == null || m ? h : h.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(o.floating)),
68
+ boundary: u,
69
+ rootBoundary: g,
70
+ strategy: d
71
+ })), y = l === "floating" ? {
72
+ x: i,
73
+ y: r,
74
+ width: s.floating.width,
75
+ height: s.floating.height
76
+ } : s.reference, p = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(o.floating)), v = await (n.isElement == null ? void 0 : n.isElement(p)) ? await (n.getScale == null ? void 0 : n.getScale(p)) || {
77
+ x: 1,
78
+ y: 1
79
+ } : {
80
+ x: 1,
81
+ y: 1
82
+ }, O = Y(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
83
+ elements: o,
84
+ rect: y,
85
+ offsetParent: p,
86
+ strategy: d
87
+ }) : y);
88
+ return {
89
+ top: (w.top - O.top + c.top) / v.y,
90
+ bottom: (O.bottom - w.bottom + c.bottom) / v.y,
91
+ left: (w.left - O.left + c.left) / v.x,
92
+ right: (O.right - w.right + c.right) / v.x
93
+ };
94
+ }
95
+ const ie = 50, ce = async (t, e, m) => {
96
+ const {
97
+ placement: i = "bottom",
98
+ strategy: r = "absolute",
99
+ middleware: n = [],
100
+ platform: s
101
+ } = m, o = s.detectOverflow ? s : {
102
+ ...s,
103
+ detectOverflow: ne
104
+ }, d = await (s.isRTL == null ? void 0 : s.isRTL(e));
105
+ let u = await s.getElementRects({
106
+ reference: t,
107
+ floating: e,
108
+ strategy: r
109
+ }), {
110
+ x: g,
111
+ y: l
112
+ } = W(u, i, d), f = i, a = 0;
113
+ const c = {};
114
+ for (let x = 0; x < n.length; x++) {
115
+ const h = n[x];
116
+ if (!h)
117
+ continue;
118
+ const {
119
+ name: w,
120
+ fn: y
121
+ } = h, {
122
+ x: p,
123
+ y: v,
124
+ data: O,
125
+ reset: b
126
+ } = await y({
127
+ x: g,
128
+ y: l,
129
+ initialPlacement: i,
130
+ placement: f,
131
+ strategy: r,
132
+ middlewareData: c,
133
+ rects: u,
134
+ platform: o,
135
+ elements: {
136
+ reference: t,
137
+ floating: e
138
+ }
139
+ });
140
+ g = p ?? g, l = v ?? l, c[w] = {
141
+ ...c[w],
142
+ ...O
143
+ }, b && a < ie && (a++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (u = b.rects === !0 ? await s.getElementRects({
144
+ reference: t,
145
+ floating: e,
146
+ strategy: r
147
+ }) : b.rects), {
148
+ x: g,
149
+ y: l
150
+ } = W(u, f, d)), x = -1);
151
+ }
152
+ return {
153
+ x: g,
154
+ y: l,
155
+ placement: f,
156
+ strategy: r,
157
+ middlewareData: c
158
+ };
159
+ }, le = (t) => ({
160
+ name: "arrow",
161
+ options: t,
162
+ async fn(e) {
163
+ const {
164
+ x: m,
165
+ y: i,
166
+ placement: r,
167
+ rects: n,
168
+ platform: s,
169
+ elements: o,
170
+ middlewareData: d
171
+ } = e, {
172
+ element: u,
173
+ padding: g = 0
174
+ } = M(t, e) || {};
175
+ if (u == null)
176
+ return {};
177
+ const l = N(g), f = {
178
+ x: m,
179
+ y: i
180
+ }, a = U(r), c = q(a), x = await s.getDimensions(u), h = a === "y", w = h ? "top" : "left", y = h ? "bottom" : "right", p = h ? "clientHeight" : "clientWidth", v = n.reference[c] + n.reference[a] - f[a] - n.floating[c], O = f[a] - n.reference[a], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
181
+ let D = b ? b[p] : 0;
182
+ (!D || !await (s.isElement == null ? void 0 : s.isElement(b))) && (D = o.floating[p] || n.floating[c]);
183
+ const V = v / 2 - O / 2, E = D / 2 - x[c] / 2 - 1, C = X(l[w], E), H = X(l[y], E), T = C, j = D - x[c] - H, A = D / 2 - x[c] / 2 + V, L = _(T, A, j), S = !d.arrow && $(r) != null && A !== L && n.reference[c] / 2 - (A < T ? C : H) - x[c] / 2 < 0, P = S ? A < T ? A - T : A - j : 0;
184
+ return {
185
+ [a]: f[a] + P,
186
+ data: {
187
+ [a]: L,
188
+ centerOffset: A - L - P,
189
+ ...S && {
190
+ alignmentOffset: P
191
+ }
192
+ },
193
+ reset: S
194
+ };
195
+ }
196
+ }), re = function(t) {
197
+ return t === void 0 && (t = {}), {
198
+ name: "flip",
199
+ options: t,
200
+ async fn(e) {
201
+ var m, i;
202
+ const {
203
+ placement: r,
204
+ middlewareData: n,
205
+ rects: s,
206
+ initialPlacement: o,
207
+ platform: d,
208
+ elements: u
209
+ } = e, {
210
+ mainAxis: g = !0,
211
+ crossAxis: l = !0,
212
+ fallbackPlacements: f,
213
+ fallbackStrategy: a = "bestFit",
214
+ fallbackAxisSideDirection: c = "none",
215
+ flipAlignment: x = !0,
216
+ ...h
217
+ } = M(t, e);
218
+ if ((m = n.arrow) != null && m.alignmentOffset)
219
+ return {};
220
+ const w = B(r), y = F(o), p = B(o) === o, v = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), O = f || (p || !x ? [J(o)] : K(o)), b = c !== "none";
221
+ !f && b && O.push(...Q(o, x, c, v));
222
+ const D = [o, ...O], V = await d.detectOverflow(e, h), E = [];
223
+ let C = ((i = n.flip) == null ? void 0 : i.overflows) || [];
224
+ if (g && E.push(V[w]), l) {
225
+ const A = Z(r, s, v);
226
+ E.push(V[A[0]], V[A[1]]);
227
+ }
228
+ if (C = [...C, {
229
+ placement: r,
230
+ overflows: E
231
+ }], !E.every((A) => A <= 0)) {
232
+ var H, T;
233
+ const A = (((H = n.flip) == null ? void 0 : H.index) || 0) + 1, L = D[A];
234
+ if (L && (!(l === "alignment" ? y !== F(L) : !1) || // We leave the current main axis only if every placement on that axis
235
+ // overflows the main axis.
236
+ C.every((R) => F(R.placement) === y ? R.overflows[0] > 0 : !0)))
237
+ return {
238
+ data: {
239
+ index: A,
240
+ overflows: C
241
+ },
242
+ reset: {
243
+ placement: L
244
+ }
245
+ };
246
+ let S = (T = C.filter((P) => P.overflows[0] <= 0).sort((P, R) => P.overflows[1] - R.overflows[1])[0]) == null ? void 0 : T.placement;
247
+ if (!S)
248
+ switch (a) {
249
+ case "bestFit": {
250
+ var j;
251
+ const P = (j = C.filter((R) => {
252
+ if (b) {
253
+ const k = F(R.placement);
254
+ return k === y || // Create a bias to the `y` side axis due to horizontal
255
+ // reading directions favoring greater width.
256
+ k === "y";
257
+ }
258
+ return !0;
259
+ }).map((R) => [R.placement, R.overflows.filter((k) => k > 0).reduce((k, G) => k + G, 0)]).sort((R, k) => R[1] - k[1])[0]) == null ? void 0 : j[0];
260
+ P && (S = P);
261
+ break;
262
+ }
263
+ case "initialPlacement":
264
+ S = o;
265
+ break;
266
+ }
267
+ if (r !== S)
268
+ return {
269
+ reset: {
270
+ placement: S
271
+ }
272
+ };
273
+ }
274
+ return {};
275
+ }
276
+ };
277
+ };
278
+ function z(t, e) {
279
+ return {
280
+ top: t.top - e.height,
281
+ right: t.right - e.width,
282
+ bottom: t.bottom - e.height,
283
+ left: t.left - e.width
284
+ };
285
+ }
286
+ function I(t) {
287
+ return te.some((e) => t[e] >= 0);
288
+ }
289
+ const fe = function(t) {
290
+ return t === void 0 && (t = {}), {
291
+ name: "hide",
292
+ options: t,
293
+ async fn(e) {
294
+ const {
295
+ rects: m,
296
+ platform: i
297
+ } = e, {
298
+ strategy: r = "referenceHidden",
299
+ ...n
300
+ } = M(t, e);
301
+ switch (r) {
302
+ case "referenceHidden": {
303
+ const s = await i.detectOverflow(e, {
304
+ ...n,
305
+ elementContext: "reference"
306
+ }), o = z(s, m.reference);
307
+ return {
308
+ data: {
309
+ referenceHiddenOffsets: o,
310
+ referenceHidden: I(o)
311
+ }
312
+ };
313
+ }
314
+ case "escaped": {
315
+ const s = await i.detectOverflow(e, {
316
+ ...n,
317
+ altBoundary: !0
318
+ }), o = z(s, m.floating);
319
+ return {
320
+ data: {
321
+ escapedOffsets: o,
322
+ escaped: I(o)
323
+ }
324
+ };
325
+ }
326
+ default:
327
+ return {};
328
+ }
329
+ }
330
+ };
331
+ }, se = /* @__PURE__ */ new Set(["left", "top"]);
332
+ async function oe(t, e) {
333
+ const {
334
+ placement: m,
335
+ platform: i,
336
+ elements: r
337
+ } = t, n = await (i.isRTL == null ? void 0 : i.isRTL(r.floating)), s = B(m), o = $(m), d = F(m) === "y", u = se.has(s) ? -1 : 1, g = n && d ? -1 : 1, l = M(e, t);
338
+ let {
339
+ mainAxis: f,
340
+ crossAxis: a,
341
+ alignmentAxis: c
342
+ } = typeof l == "number" ? {
343
+ mainAxis: l,
344
+ crossAxis: 0,
345
+ alignmentAxis: null
346
+ } : {
347
+ mainAxis: l.mainAxis || 0,
348
+ crossAxis: l.crossAxis || 0,
349
+ alignmentAxis: l.alignmentAxis
350
+ };
351
+ return o && typeof c == "number" && (a = o === "end" ? c * -1 : c), d ? {
352
+ x: a * g,
353
+ y: f * u
354
+ } : {
355
+ x: f * u,
356
+ y: a * g
357
+ };
358
+ }
359
+ const me = function(t) {
360
+ return t === void 0 && (t = 0), {
361
+ name: "offset",
362
+ options: t,
363
+ async fn(e) {
364
+ var m, i;
365
+ const {
366
+ x: r,
367
+ y: n,
368
+ placement: s,
369
+ middlewareData: o
370
+ } = e, d = await oe(e, t);
371
+ return s === ((m = o.offset) == null ? void 0 : m.placement) && (i = o.arrow) != null && i.alignmentOffset ? {} : {
372
+ x: r + d.x,
373
+ y: n + d.y,
374
+ data: {
375
+ ...d,
376
+ placement: s
377
+ }
378
+ };
379
+ }
380
+ };
381
+ }, de = function(t) {
382
+ return t === void 0 && (t = {}), {
383
+ name: "shift",
384
+ options: t,
385
+ async fn(e) {
386
+ const {
387
+ x: m,
388
+ y: i,
389
+ placement: r,
390
+ platform: n
391
+ } = e, {
392
+ mainAxis: s = !0,
393
+ crossAxis: o = !1,
394
+ limiter: d = {
395
+ fn: (w) => {
396
+ let {
397
+ x: y,
398
+ y: p
399
+ } = w;
400
+ return {
401
+ x: y,
402
+ y: p
403
+ };
404
+ }
405
+ },
406
+ ...u
407
+ } = M(t, e), g = {
408
+ x: m,
409
+ y: i
410
+ }, l = await n.detectOverflow(e, u), f = F(B(r)), a = ee(f);
411
+ let c = g[a], x = g[f];
412
+ if (s) {
413
+ const w = a === "y" ? "top" : "left", y = a === "y" ? "bottom" : "right", p = c + l[w], v = c - l[y];
414
+ c = _(p, c, v);
415
+ }
416
+ if (o) {
417
+ const w = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", p = x + l[w], v = x - l[y];
418
+ x = _(p, x, v);
419
+ }
420
+ const h = d.fn({
421
+ ...e,
422
+ [a]: c,
423
+ [f]: x
424
+ });
425
+ return {
426
+ ...h,
427
+ data: {
428
+ x: h.x - m,
429
+ y: h.y - i,
430
+ enabled: {
431
+ [a]: s,
432
+ [f]: o
433
+ }
434
+ }
435
+ };
436
+ }
437
+ };
438
+ };
439
+ export {
440
+ le as arrow,
441
+ ce as computePosition,
442
+ ne as detectOverflow,
443
+ re as flip,
444
+ fe as hide,
445
+ me as offset,
446
+ Y as rectToClientRect,
447
+ de as shift
448
+ };