@lukso/web-components 1.172.13 → 1.172.17

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 (638) hide show
  1. package/dist/chunks/cn-Df_5FiGi.js +30 -0
  2. package/dist/chunks/cn-JMx_imgS.js +32 -0
  3. package/dist/chunks/directive-CY66atYi.js +22 -0
  4. package/dist/chunks/directive-DUHAbymA.js +15 -0
  5. package/dist/chunks/{index-BxQ_0s_1.js → index-BBPgtFEP.js} +14 -34
  6. package/dist/chunks/{index-DG4rMUh3.js → index-BOEPqh0N.js} +1 -1
  7. package/dist/chunks/index-Bm2Lo_3c.js +6 -0
  8. package/dist/chunks/{index-F8ll4iy2.js → index-C5S-_QDF.js} +1 -1
  9. package/dist/chunks/{index-B_H2eYG_.js → index-CA_aKopU.js} +9 -9
  10. package/dist/chunks/index-CSnDkMHN.js +5 -0
  11. package/dist/chunks/index-Chs3AjPK.js +212 -0
  12. package/dist/chunks/{index-CZGvLdJ0.js → index-CqZm8OfY.js} +1 -2
  13. package/dist/chunks/{index-D_5wz2k1.js → index-DIHXzSqi.js} +82 -79
  14. package/dist/chunks/{index-BHAtoIlu.js → index-Dh7fuono.js} +11 -11
  15. package/dist/chunks/{index-5X9ujrWL.js → index-DluTRl1F.js} +14 -29
  16. package/dist/chunks/{index-Dn2DJhID.js → index-DsmwLJjR.js} +78 -75
  17. package/dist/chunks/{index-C5YyB6ug.js → index-DvLZWpq9.js} +2 -3
  18. package/dist/chunks/index-N2DggpF2.js +3 -0
  19. package/dist/chunks/index-oDo-wiUs.js +8 -0
  20. package/dist/chunks/index-y7UFhQ9u.js +214 -0
  21. package/dist/chunks/{style-map-B7XFhSOK.js → style-map-AEeBQfPb.js} +2 -3
  22. package/dist/chunks/{style-map-BPljJihp.js → style-map-auscxO0L.js} +1 -2
  23. package/dist/components/index.cjs +12 -7
  24. package/dist/components/index.js +4 -5
  25. package/dist/components/lukso-alert/index.cjs +18 -18
  26. package/dist/components/lukso-alert/index.js +16 -16
  27. package/dist/components/lukso-button/index.cjs +72 -67
  28. package/dist/components/lukso-button/index.d.ts.map +1 -1
  29. package/dist/components/lukso-button/index.js +70 -63
  30. package/dist/components/lukso-card/index.cjs +62 -67
  31. package/dist/components/lukso-card/index.js +49 -54
  32. package/dist/components/lukso-checkbox/index.cjs +34 -34
  33. package/dist/components/lukso-checkbox/index.js +27 -27
  34. package/dist/components/lukso-collapse/index.cjs +30 -29
  35. package/dist/components/lukso-collapse/index.js +27 -26
  36. package/dist/components/lukso-color-picker/index.cjs +36 -34
  37. package/dist/components/lukso-color-picker/index.js +33 -31
  38. package/dist/components/lukso-dropdown/index.cjs +22 -22
  39. package/dist/components/lukso-dropdown/index.js +20 -20
  40. package/dist/components/lukso-dropdown-option/index.cjs +14 -14
  41. package/dist/components/lukso-dropdown-option/index.js +12 -12
  42. package/dist/components/lukso-footer/index.cjs +7 -7
  43. package/dist/components/lukso-footer/index.js +5 -5
  44. package/dist/components/lukso-form-description/index.cjs +9 -9
  45. package/dist/components/lukso-form-description/index.js +7 -7
  46. package/dist/components/lukso-form-error/index.cjs +9 -9
  47. package/dist/components/lukso-form-error/index.js +7 -7
  48. package/dist/components/lukso-form-label/index.cjs +10 -10
  49. package/dist/components/lukso-form-label/index.js +8 -8
  50. package/dist/components/lukso-icon/icons/add-grid.d.ts +1 -1
  51. package/dist/components/lukso-icon/icons/add-grid.d.ts.map +1 -1
  52. package/dist/components/lukso-icon/icons/add-photo.d.ts +1 -1
  53. package/dist/components/lukso-icon/icons/add-photo.d.ts.map +1 -1
  54. package/dist/components/lukso-icon/icons/addcontroller-activated.d.ts +1 -1
  55. package/dist/components/lukso-icon/icons/addcontroller-activated.d.ts.map +1 -1
  56. package/dist/components/lukso-icon/icons/addcontroller-inactive.d.ts +1 -1
  57. package/dist/components/lukso-icon/icons/addcontroller-inactive.d.ts.map +1 -1
  58. package/dist/components/lukso-icon/icons/addextensions-activated.d.ts +1 -1
  59. package/dist/components/lukso-icon/icons/addextensions-activated.d.ts.map +1 -1
  60. package/dist/components/lukso-icon/icons/addextensions-inactive.d.ts +1 -1
  61. package/dist/components/lukso-icon/icons/addextensions-inactive.d.ts.map +1 -1
  62. package/dist/components/lukso-icon/icons/adduniversalreceiverdelegate-activated.d.ts +1 -1
  63. package/dist/components/lukso-icon/icons/adduniversalreceiverdelegate-activated.d.ts.map +1 -1
  64. package/dist/components/lukso-icon/icons/adduniversalreceiverdelegate-inactive.d.ts +1 -1
  65. package/dist/components/lukso-icon/icons/adduniversalreceiverdelegate-inactive.d.ts.map +1 -1
  66. package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts +1 -1
  67. package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts.map +1 -1
  68. package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts +1 -1
  69. package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts.map +1 -1
  70. package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts +1 -1
  71. package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts.map +1 -1
  72. package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts +1 -1
  73. package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts.map +1 -1
  74. package/dist/components/lukso-icon/icons/arrow-long-down.d.ts +1 -1
  75. package/dist/components/lukso-icon/icons/arrow-long-down.d.ts.map +1 -1
  76. package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts +1 -1
  77. package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts.map +1 -1
  78. package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts +1 -1
  79. package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts.map +1 -1
  80. package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts +1 -1
  81. package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts.map +1 -1
  82. package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts +1 -1
  83. package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts.map +1 -1
  84. package/dist/components/lukso-icon/icons/barbell-outline.d.ts +1 -1
  85. package/dist/components/lukso-icon/icons/barbell-outline.d.ts.map +1 -1
  86. package/dist/components/lukso-icon/icons/bitcoin-convert.d.ts +1 -1
  87. package/dist/components/lukso-icon/icons/bitcoin-convert.d.ts.map +1 -1
  88. package/dist/components/lukso-icon/icons/bulb-outline.d.ts +1 -1
  89. package/dist/components/lukso-icon/icons/bulb-outline.d.ts.map +1 -1
  90. package/dist/components/lukso-icon/icons/call-activated.d.ts +1 -1
  91. package/dist/components/lukso-icon/icons/call-activated.d.ts.map +1 -1
  92. package/dist/components/lukso-icon/icons/call-inactive.d.ts +1 -1
  93. package/dist/components/lukso-icon/icons/call-inactive.d.ts.map +1 -1
  94. package/dist/components/lukso-icon/icons/camera.d.ts +1 -1
  95. package/dist/components/lukso-icon/icons/camera.d.ts.map +1 -1
  96. package/dist/components/lukso-icon/icons/category.d.ts +1 -1
  97. package/dist/components/lukso-icon/icons/category.d.ts.map +1 -1
  98. package/dist/components/lukso-icon/icons/changeextensions-activated.d.ts +1 -1
  99. package/dist/components/lukso-icon/icons/changeextensions-activated.d.ts.map +1 -1
  100. package/dist/components/lukso-icon/icons/changeextensions-inactive.d.ts +1 -1
  101. package/dist/components/lukso-icon/icons/changeextensions-inactive.d.ts.map +1 -1
  102. package/dist/components/lukso-icon/icons/changeowner-activated.d.ts +1 -1
  103. package/dist/components/lukso-icon/icons/changeowner-activated.d.ts.map +1 -1
  104. package/dist/components/lukso-icon/icons/changeowner-inactive.d.ts +1 -1
  105. package/dist/components/lukso-icon/icons/changeowner-inactive.d.ts.map +1 -1
  106. package/dist/components/lukso-icon/icons/changepermissions-activated.d.ts +1 -1
  107. package/dist/components/lukso-icon/icons/changepermissions-activated.d.ts.map +1 -1
  108. package/dist/components/lukso-icon/icons/changepermissions-inactive.d.ts +1 -1
  109. package/dist/components/lukso-icon/icons/changepermissions-inactive.d.ts.map +1 -1
  110. package/dist/components/lukso-icon/icons/changeuniversalreceiverdelegate-activated.d.ts +1 -1
  111. package/dist/components/lukso-icon/icons/changeuniversalreceiverdelegate-activated.d.ts.map +1 -1
  112. package/dist/components/lukso-icon/icons/changeuniversalreceiverdelegate-inactive.d.ts +1 -1
  113. package/dist/components/lukso-icon/icons/changeuniversalreceiverdelegate-inactive.d.ts.map +1 -1
  114. package/dist/components/lukso-icon/icons/chart.d.ts +1 -1
  115. package/dist/components/lukso-icon/icons/chart.d.ts.map +1 -1
  116. package/dist/components/lukso-icon/icons/clipboard.d.ts +1 -1
  117. package/dist/components/lukso-icon/icons/clipboard.d.ts.map +1 -1
  118. package/dist/components/lukso-icon/icons/clock.d.ts +1 -1
  119. package/dist/components/lukso-icon/icons/clock.d.ts.map +1 -1
  120. package/dist/components/lukso-icon/icons/close-lg.d.ts +1 -1
  121. package/dist/components/lukso-icon/icons/close-lg.d.ts.map +1 -1
  122. package/dist/components/lukso-icon/icons/close-sm.d.ts +1 -1
  123. package/dist/components/lukso-icon/icons/close-sm.d.ts.map +1 -1
  124. package/dist/components/lukso-icon/icons/cloud.d.ts +1 -1
  125. package/dist/components/lukso-icon/icons/cloud.d.ts.map +1 -1
  126. package/dist/components/lukso-icon/icons/code-outline.d.ts +1 -1
  127. package/dist/components/lukso-icon/icons/code-outline.d.ts.map +1 -1
  128. package/dist/components/lukso-icon/icons/compass-outline.d.ts +1 -1
  129. package/dist/components/lukso-icon/icons/compass-outline.d.ts.map +1 -1
  130. package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts +1 -1
  131. package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts.map +1 -1
  132. package/dist/components/lukso-icon/icons/complete-filled.d.ts +1 -1
  133. package/dist/components/lukso-icon/icons/complete-filled.d.ts.map +1 -1
  134. package/dist/components/lukso-icon/icons/complete-outline.d.ts +1 -1
  135. package/dist/components/lukso-icon/icons/complete-outline.d.ts.map +1 -1
  136. package/dist/components/lukso-icon/icons/connect.d.ts +1 -1
  137. package/dist/components/lukso-icon/icons/connect.d.ts.map +1 -1
  138. package/dist/components/lukso-icon/icons/connections.d.ts +1 -1
  139. package/dist/components/lukso-icon/icons/connections.d.ts.map +1 -1
  140. package/dist/components/lukso-icon/icons/contract-lock.d.ts +1 -1
  141. package/dist/components/lukso-icon/icons/contract-lock.d.ts.map +1 -1
  142. package/dist/components/lukso-icon/icons/contract-signed.d.ts +1 -1
  143. package/dist/components/lukso-icon/icons/contract-signed.d.ts.map +1 -1
  144. package/dist/components/lukso-icon/icons/controller.d.ts +1 -1
  145. package/dist/components/lukso-icon/icons/controller.d.ts.map +1 -1
  146. package/dist/components/lukso-icon/icons/copy.d.ts +1 -1
  147. package/dist/components/lukso-icon/icons/copy.d.ts.map +1 -1
  148. package/dist/components/lukso-icon/icons/cross-filled-fade-in.d.ts +1 -1
  149. package/dist/components/lukso-icon/icons/cross-filled-fade-in.d.ts.map +1 -1
  150. package/dist/components/lukso-icon/icons/cross-filled.d.ts +1 -1
  151. package/dist/components/lukso-icon/icons/cross-filled.d.ts.map +1 -1
  152. package/dist/components/lukso-icon/icons/cross-outline.d.ts +1 -1
  153. package/dist/components/lukso-icon/icons/cross-outline.d.ts.map +1 -1
  154. package/dist/components/lukso-icon/icons/cube-outline.d.ts +1 -1
  155. package/dist/components/lukso-icon/icons/cube-outline.d.ts.map +1 -1
  156. package/dist/components/lukso-icon/icons/database.d.ts +1 -1
  157. package/dist/components/lukso-icon/icons/database.d.ts.map +1 -1
  158. package/dist/components/lukso-icon/icons/decrypt-activated.d.ts +1 -1
  159. package/dist/components/lukso-icon/icons/decrypt-activated.d.ts.map +1 -1
  160. package/dist/components/lukso-icon/icons/decrypt-inactive.d.ts +1 -1
  161. package/dist/components/lukso-icon/icons/decrypt-inactive.d.ts.map +1 -1
  162. package/dist/components/lukso-icon/icons/delegatecall-activated.d.ts +1 -1
  163. package/dist/components/lukso-icon/icons/delegatecall-activated.d.ts.map +1 -1
  164. package/dist/components/lukso-icon/icons/delegatecall-inactive.d.ts +1 -1
  165. package/dist/components/lukso-icon/icons/delegatecall-inactive.d.ts.map +1 -1
  166. package/dist/components/lukso-icon/icons/deploy-activated.d.ts +1 -1
  167. package/dist/components/lukso-icon/icons/deploy-activated.d.ts.map +1 -1
  168. package/dist/components/lukso-icon/icons/deploy-inactive.d.ts +1 -1
  169. package/dist/components/lukso-icon/icons/deploy-inactive.d.ts.map +1 -1
  170. package/dist/components/lukso-icon/icons/desktop-sharp.d.ts +1 -1
  171. package/dist/components/lukso-icon/icons/desktop-sharp.d.ts.map +1 -1
  172. package/dist/components/lukso-icon/icons/document-code.d.ts +1 -1
  173. package/dist/components/lukso-icon/icons/document-code.d.ts.map +1 -1
  174. package/dist/components/lukso-icon/icons/document-outline.d.ts +1 -1
  175. package/dist/components/lukso-icon/icons/document-outline.d.ts.map +1 -1
  176. package/dist/components/lukso-icon/icons/document-text.d.ts +1 -1
  177. package/dist/components/lukso-icon/icons/document-text.d.ts.map +1 -1
  178. package/dist/components/lukso-icon/icons/dots.d.ts +1 -1
  179. package/dist/components/lukso-icon/icons/dots.d.ts.map +1 -1
  180. package/dist/components/lukso-icon/icons/earth.d.ts +1 -1
  181. package/dist/components/lukso-icon/icons/earth.d.ts.map +1 -1
  182. package/dist/components/lukso-icon/icons/edit-doc.d.ts +1 -1
  183. package/dist/components/lukso-icon/icons/edit-doc.d.ts.map +1 -1
  184. package/dist/components/lukso-icon/icons/edit-linear.d.ts +1 -1
  185. package/dist/components/lukso-icon/icons/edit-linear.d.ts.map +1 -1
  186. package/dist/components/lukso-icon/icons/edit.d.ts +1 -1
  187. package/dist/components/lukso-icon/icons/edit.d.ts.map +1 -1
  188. package/dist/components/lukso-icon/icons/editpermissions-activated.d.ts +1 -1
  189. package/dist/components/lukso-icon/icons/editpermissions-activated.d.ts.map +1 -1
  190. package/dist/components/lukso-icon/icons/editpermissions-inactive.d.ts +1 -1
  191. package/dist/components/lukso-icon/icons/editpermissions-inactive.d.ts.map +1 -1
  192. package/dist/components/lukso-icon/icons/empty-outline.d.ts +1 -1
  193. package/dist/components/lukso-icon/icons/empty-outline.d.ts.map +1 -1
  194. package/dist/components/lukso-icon/icons/encrypt-activated.d.ts +1 -1
  195. package/dist/components/lukso-icon/icons/encrypt-activated.d.ts.map +1 -1
  196. package/dist/components/lukso-icon/icons/encrypt-inactive.d.ts +1 -1
  197. package/dist/components/lukso-icon/icons/encrypt-inactive.d.ts.map +1 -1
  198. package/dist/components/lukso-icon/icons/error.d.ts +1 -1
  199. package/dist/components/lukso-icon/icons/error.d.ts.map +1 -1
  200. package/dist/components/lukso-icon/icons/eth-logo.d.ts +1 -1
  201. package/dist/components/lukso-icon/icons/eth-logo.d.ts.map +1 -1
  202. package/dist/components/lukso-icon/icons/execute-relay-call-activated.d.ts +1 -1
  203. package/dist/components/lukso-icon/icons/execute-relay-call-activated.d.ts.map +1 -1
  204. package/dist/components/lukso-icon/icons/execute-relay-call-inactive.d.ts +1 -1
  205. package/dist/components/lukso-icon/icons/execute-relay-call-inactive.d.ts.map +1 -1
  206. package/dist/components/lukso-icon/icons/expand.d.ts +1 -1
  207. package/dist/components/lukso-icon/icons/expand.d.ts.map +1 -1
  208. package/dist/components/lukso-icon/icons/extension-outline.d.ts +1 -1
  209. package/dist/components/lukso-icon/icons/extension-outline.d.ts.map +1 -1
  210. package/dist/components/lukso-icon/icons/extension.d.ts +1 -1
  211. package/dist/components/lukso-icon/icons/extension.d.ts.map +1 -1
  212. package/dist/components/lukso-icon/icons/eye-hide.d.ts +1 -1
  213. package/dist/components/lukso-icon/icons/eye-hide.d.ts.map +1 -1
  214. package/dist/components/lukso-icon/icons/eye-show.d.ts +1 -1
  215. package/dist/components/lukso-icon/icons/eye-show.d.ts.map +1 -1
  216. package/dist/components/lukso-icon/icons/face-id.d.ts +1 -1
  217. package/dist/components/lukso-icon/icons/face-id.d.ts.map +1 -1
  218. package/dist/components/lukso-icon/icons/film-outline.d.ts +1 -1
  219. package/dist/components/lukso-icon/icons/film-outline.d.ts.map +1 -1
  220. package/dist/components/lukso-icon/icons/filter.d.ts +1 -1
  221. package/dist/components/lukso-icon/icons/filter.d.ts.map +1 -1
  222. package/dist/components/lukso-icon/icons/fingerprint.d.ts +1 -1
  223. package/dist/components/lukso-icon/icons/fingerprint.d.ts.map +1 -1
  224. package/dist/components/lukso-icon/icons/fish-outline.d.ts +1 -1
  225. package/dist/components/lukso-icon/icons/fish-outline.d.ts.map +1 -1
  226. package/dist/components/lukso-icon/icons/flag-outline.d.ts +1 -1
  227. package/dist/components/lukso-icon/icons/flag-outline.d.ts.map +1 -1
  228. package/dist/components/lukso-icon/icons/flash.d.ts +1 -1
  229. package/dist/components/lukso-icon/icons/flash.d.ts.map +1 -1
  230. package/dist/components/lukso-icon/icons/flip.d.ts +1 -1
  231. package/dist/components/lukso-icon/icons/flip.d.ts.map +1 -1
  232. package/dist/components/lukso-icon/icons/gallery.d.ts +1 -1
  233. package/dist/components/lukso-icon/icons/gallery.d.ts.map +1 -1
  234. package/dist/components/lukso-icon/icons/gas.d.ts +1 -1
  235. package/dist/components/lukso-icon/icons/gas.d.ts.map +1 -1
  236. package/dist/components/lukso-icon/icons/glasses.d.ts +1 -1
  237. package/dist/components/lukso-icon/icons/glasses.d.ts.map +1 -1
  238. package/dist/components/lukso-icon/icons/globe.d.ts +1 -1
  239. package/dist/components/lukso-icon/icons/globe.d.ts.map +1 -1
  240. package/dist/components/lukso-icon/icons/google-color.d.ts +1 -1
  241. package/dist/components/lukso-icon/icons/google-color.d.ts.map +1 -1
  242. package/dist/components/lukso-icon/icons/hamburger.d.ts +1 -1
  243. package/dist/components/lukso-icon/icons/hamburger.d.ts.map +1 -1
  244. package/dist/components/lukso-icon/icons/hammer.d.ts +1 -1
  245. package/dist/components/lukso-icon/icons/hammer.d.ts.map +1 -1
  246. package/dist/components/lukso-icon/icons/hand-heart.d.ts +1 -1
  247. package/dist/components/lukso-icon/icons/hand-heart.d.ts.map +1 -1
  248. package/dist/components/lukso-icon/icons/hand-right-outline.d.ts +1 -1
  249. package/dist/components/lukso-icon/icons/hand-right-outline.d.ts.map +1 -1
  250. package/dist/components/lukso-icon/icons/headset-outline.d.ts +1 -1
  251. package/dist/components/lukso-icon/icons/headset-outline.d.ts.map +1 -1
  252. package/dist/components/lukso-icon/icons/hexagon.d.ts +1 -1
  253. package/dist/components/lukso-icon/icons/hexagon.d.ts.map +1 -1
  254. package/dist/components/lukso-icon/icons/image-linear.d.ts +1 -1
  255. package/dist/components/lukso-icon/icons/image-linear.d.ts.map +1 -1
  256. package/dist/components/lukso-icon/icons/infinite.d.ts +1 -1
  257. package/dist/components/lukso-icon/icons/infinite.d.ts.map +1 -1
  258. package/dist/components/lukso-icon/icons/information.d.ts +1 -1
  259. package/dist/components/lukso-icon/icons/information.d.ts.map +1 -1
  260. package/dist/components/lukso-icon/icons/key-outline.d.ts +1 -1
  261. package/dist/components/lukso-icon/icons/key-outline.d.ts.map +1 -1
  262. package/dist/components/lukso-icon/icons/link.d.ts +1 -1
  263. package/dist/components/lukso-icon/icons/link.d.ts.map +1 -1
  264. package/dist/components/lukso-icon/icons/link1.d.ts +1 -1
  265. package/dist/components/lukso-icon/icons/link1.d.ts.map +1 -1
  266. package/dist/components/lukso-icon/icons/link2.d.ts +1 -1
  267. package/dist/components/lukso-icon/icons/link2.d.ts.map +1 -1
  268. package/dist/components/lukso-icon/icons/link3.d.ts +1 -1
  269. package/dist/components/lukso-icon/icons/link3.d.ts.map +1 -1
  270. package/dist/components/lukso-icon/icons/link4.d.ts +1 -1
  271. package/dist/components/lukso-icon/icons/link4.d.ts.map +1 -1
  272. package/dist/components/lukso-icon/icons/loading.d.ts +1 -1
  273. package/dist/components/lukso-icon/icons/loading.d.ts.map +1 -1
  274. package/dist/components/lukso-icon/icons/location.d.ts +1 -1
  275. package/dist/components/lukso-icon/icons/location.d.ts.map +1 -1
  276. package/dist/components/lukso-icon/icons/locked.d.ts +1 -1
  277. package/dist/components/lukso-icon/icons/locked.d.ts.map +1 -1
  278. package/dist/components/lukso-icon/icons/login-2.d.ts +1 -1
  279. package/dist/components/lukso-icon/icons/login-2.d.ts.map +1 -1
  280. package/dist/components/lukso-icon/icons/login-3.d.ts +1 -1
  281. package/dist/components/lukso-icon/icons/login-3.d.ts.map +1 -1
  282. package/dist/components/lukso-icon/icons/login.d.ts +1 -1
  283. package/dist/components/lukso-icon/icons/login.d.ts.map +1 -1
  284. package/dist/components/lukso-icon/icons/logo-brave.d.ts +1 -1
  285. package/dist/components/lukso-icon/icons/logo-brave.d.ts.map +1 -1
  286. package/dist/components/lukso-icon/icons/logo-chrome.d.ts +1 -1
  287. package/dist/components/lukso-icon/icons/logo-chrome.d.ts.map +1 -1
  288. package/dist/components/lukso-icon/icons/logo-common-ground-mono.d.ts +1 -1
  289. package/dist/components/lukso-icon/icons/logo-common-ground-mono.d.ts.map +1 -1
  290. package/dist/components/lukso-icon/icons/logo-discord-mono.d.ts +1 -1
  291. package/dist/components/lukso-icon/icons/logo-discord-mono.d.ts.map +1 -1
  292. package/dist/components/lukso-icon/icons/logo-edge.d.ts +1 -1
  293. package/dist/components/lukso-icon/icons/logo-edge.d.ts.map +1 -1
  294. package/dist/components/lukso-icon/icons/logo-elfsight-mono.d.ts +1 -1
  295. package/dist/components/lukso-icon/icons/logo-elfsight-mono.d.ts.map +1 -1
  296. package/dist/components/lukso-icon/icons/logo-facebook-round.d.ts +1 -1
  297. package/dist/components/lukso-icon/icons/logo-facebook-round.d.ts.map +1 -1
  298. package/dist/components/lukso-icon/icons/logo-facebook.d.ts +1 -1
  299. package/dist/components/lukso-icon/icons/logo-facebook.d.ts.map +1 -1
  300. package/dist/components/lukso-icon/icons/logo-fantom.d.ts +1 -1
  301. package/dist/components/lukso-icon/icons/logo-fantom.d.ts.map +1 -1
  302. package/dist/components/lukso-icon/icons/logo-farcaster-round.d.ts +1 -1
  303. package/dist/components/lukso-icon/icons/logo-farcaster-round.d.ts.map +1 -1
  304. package/dist/components/lukso-icon/icons/logo-farcaster.d.ts +1 -1
  305. package/dist/components/lukso-icon/icons/logo-farcaster.d.ts.map +1 -1
  306. package/dist/components/lukso-icon/icons/logo-firefox.d.ts +1 -1
  307. package/dist/components/lukso-icon/icons/logo-firefox.d.ts.map +1 -1
  308. package/dist/components/lukso-icon/icons/logo-github-mono.d.ts +1 -1
  309. package/dist/components/lukso-icon/icons/logo-github-mono.d.ts.map +1 -1
  310. package/dist/components/lukso-icon/icons/logo-google-calendar-mono.d.ts +1 -1
  311. package/dist/components/lukso-icon/icons/logo-google-calendar-mono.d.ts.map +1 -1
  312. package/dist/components/lukso-icon/icons/logo-hyperlane-mono.d.ts +1 -1
  313. package/dist/components/lukso-icon/icons/logo-hyperlane-mono.d.ts.map +1 -1
  314. package/dist/components/lukso-icon/icons/logo-hyperlane-outline.d.ts +1 -1
  315. package/dist/components/lukso-icon/icons/logo-hyperlane-outline.d.ts.map +1 -1
  316. package/dist/components/lukso-icon/icons/logo-hyperlane.d.ts +1 -1
  317. package/dist/components/lukso-icon/icons/logo-hyperlane.d.ts.map +1 -1
  318. package/dist/components/lukso-icon/icons/logo-instagram-mono.d.ts +1 -1
  319. package/dist/components/lukso-icon/icons/logo-instagram-mono.d.ts.map +1 -1
  320. package/dist/components/lukso-icon/icons/logo-linkedin-mono.d.ts +1 -1
  321. package/dist/components/lukso-icon/icons/logo-linkedin-mono.d.ts.map +1 -1
  322. package/dist/components/lukso-icon/icons/logo-linkedin-round.d.ts +1 -1
  323. package/dist/components/lukso-icon/icons/logo-linkedin-round.d.ts.map +1 -1
  324. package/dist/components/lukso-icon/icons/logo-linkedin.d.ts +1 -1
  325. package/dist/components/lukso-icon/icons/logo-linkedin.d.ts.map +1 -1
  326. package/dist/components/lukso-icon/icons/logo-medium-mono.d.ts +1 -1
  327. package/dist/components/lukso-icon/icons/logo-medium-mono.d.ts.map +1 -1
  328. package/dist/components/lukso-icon/icons/logo-opera.d.ts +1 -1
  329. package/dist/components/lukso-icon/icons/logo-opera.d.ts.map +1 -1
  330. package/dist/components/lukso-icon/icons/logo-polygon.d.ts +1 -1
  331. package/dist/components/lukso-icon/icons/logo-polygon.d.ts.map +1 -1
  332. package/dist/components/lukso-icon/icons/logo-safari.d.ts +1 -1
  333. package/dist/components/lukso-icon/icons/logo-safari.d.ts.map +1 -1
  334. package/dist/components/lukso-icon/icons/logo-snapchat-mono.d.ts +1 -1
  335. package/dist/components/lukso-icon/icons/logo-snapchat-mono.d.ts.map +1 -1
  336. package/dist/components/lukso-icon/icons/logo-soundcloud-mono.d.ts +1 -1
  337. package/dist/components/lukso-icon/icons/logo-soundcloud-mono.d.ts.map +1 -1
  338. package/dist/components/lukso-icon/icons/logo-spotify-mono.d.ts +1 -1
  339. package/dist/components/lukso-icon/icons/logo-spotify-mono.d.ts.map +1 -1
  340. package/dist/components/lukso-icon/icons/logo-substack-mono.d.ts +1 -1
  341. package/dist/components/lukso-icon/icons/logo-substack-mono.d.ts.map +1 -1
  342. package/dist/components/lukso-icon/icons/logo-telegram-mono.d.ts +1 -1
  343. package/dist/components/lukso-icon/icons/logo-telegram-mono.d.ts.map +1 -1
  344. package/dist/components/lukso-icon/icons/logo-tiktok-mono.d.ts +1 -1
  345. package/dist/components/lukso-icon/icons/logo-tiktok-mono.d.ts.map +1 -1
  346. package/dist/components/lukso-icon/icons/logo-universal-page-mono.d.ts +1 -1
  347. package/dist/components/lukso-icon/icons/logo-universal-page-mono.d.ts.map +1 -1
  348. package/dist/components/lukso-icon/icons/logo-warpcast-mono.d.ts +1 -1
  349. package/dist/components/lukso-icon/icons/logo-warpcast-mono.d.ts.map +1 -1
  350. package/dist/components/lukso-icon/icons/logo-whatsapp-mono.d.ts +1 -1
  351. package/dist/components/lukso-icon/icons/logo-whatsapp-mono.d.ts.map +1 -1
  352. package/dist/components/lukso-icon/icons/logo-x-mono.d.ts +1 -1
  353. package/dist/components/lukso-icon/icons/logo-x-mono.d.ts.map +1 -1
  354. package/dist/components/lukso-icon/icons/logo-x-round.d.ts +1 -1
  355. package/dist/components/lukso-icon/icons/logo-x-round.d.ts.map +1 -1
  356. package/dist/components/lukso-icon/icons/logo-x.d.ts +1 -1
  357. package/dist/components/lukso-icon/icons/logo-x.d.ts.map +1 -1
  358. package/dist/components/lukso-icon/icons/logo-youtube-mono.d.ts +1 -1
  359. package/dist/components/lukso-icon/icons/logo-youtube-mono.d.ts.map +1 -1
  360. package/dist/components/lukso-icon/icons/lukso-logo.d.ts +1 -1
  361. package/dist/components/lukso-icon/icons/lukso-logo.d.ts.map +1 -1
  362. package/dist/components/lukso-icon/icons/lyx-logo.d.ts +1 -1
  363. package/dist/components/lukso-icon/icons/lyx-logo.d.ts.map +1 -1
  364. package/dist/components/lukso-icon/icons/mail.d.ts +1 -1
  365. package/dist/components/lukso-icon/icons/mail.d.ts.map +1 -1
  366. package/dist/components/lukso-icon/icons/maximize-vertical.d.ts +1 -1
  367. package/dist/components/lukso-icon/icons/maximize-vertical.d.ts.map +1 -1
  368. package/dist/components/lukso-icon/icons/medal-star.d.ts +1 -1
  369. package/dist/components/lukso-icon/icons/medal-star.d.ts.map +1 -1
  370. package/dist/components/lukso-icon/icons/menu-1.d.ts +1 -1
  371. package/dist/components/lukso-icon/icons/menu-1.d.ts.map +1 -1
  372. package/dist/components/lukso-icon/icons/menu-2.d.ts +1 -1
  373. package/dist/components/lukso-icon/icons/menu-2.d.ts.map +1 -1
  374. package/dist/components/lukso-icon/icons/metamask-logo.d.ts +1 -1
  375. package/dist/components/lukso-icon/icons/metamask-logo.d.ts.map +1 -1
  376. package/dist/components/lukso-icon/icons/migrate.d.ts +1 -1
  377. package/dist/components/lukso-icon/icons/migrate.d.ts.map +1 -1
  378. package/dist/components/lukso-icon/icons/minimize-vertical.d.ts +1 -1
  379. package/dist/components/lukso-icon/icons/minimize-vertical.d.ts.map +1 -1
  380. package/dist/components/lukso-icon/icons/minimize.d.ts +1 -1
  381. package/dist/components/lukso-icon/icons/minimize.d.ts.map +1 -1
  382. package/dist/components/lukso-icon/icons/minus-filled.d.ts +1 -1
  383. package/dist/components/lukso-icon/icons/minus-filled.d.ts.map +1 -1
  384. package/dist/components/lukso-icon/icons/minus.d.ts +1 -1
  385. package/dist/components/lukso-icon/icons/minus.d.ts.map +1 -1
  386. package/dist/components/lukso-icon/icons/network.d.ts +1 -1
  387. package/dist/components/lukso-icon/icons/network.d.ts.map +1 -1
  388. package/dist/components/lukso-icon/icons/nft.d.ts +1 -1
  389. package/dist/components/lukso-icon/icons/nft.d.ts.map +1 -1
  390. package/dist/components/lukso-icon/icons/notifications.d.ts +1 -1
  391. package/dist/components/lukso-icon/icons/notifications.d.ts.map +1 -1
  392. package/dist/components/lukso-icon/icons/parachute.d.ts +1 -1
  393. package/dist/components/lukso-icon/icons/parachute.d.ts.map +1 -1
  394. package/dist/components/lukso-icon/icons/people.d.ts +1 -1
  395. package/dist/components/lukso-icon/icons/people.d.ts.map +1 -1
  396. package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts +1 -1
  397. package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts.map +1 -1
  398. package/dist/components/lukso-icon/icons/pin.d.ts +1 -1
  399. package/dist/components/lukso-icon/icons/pin.d.ts.map +1 -1
  400. package/dist/components/lukso-icon/icons/play-filled.d.ts +1 -1
  401. package/dist/components/lukso-icon/icons/play-filled.d.ts.map +1 -1
  402. package/dist/components/lukso-icon/icons/play-linear.d.ts +1 -1
  403. package/dist/components/lukso-icon/icons/play-linear.d.ts.map +1 -1
  404. package/dist/components/lukso-icon/icons/play-outline.d.ts +1 -1
  405. package/dist/components/lukso-icon/icons/play-outline.d.ts.map +1 -1
  406. package/dist/components/lukso-icon/icons/plus.d.ts +1 -1
  407. package/dist/components/lukso-icon/icons/plus.d.ts.map +1 -1
  408. package/dist/components/lukso-icon/icons/profile-add.d.ts +1 -1
  409. package/dist/components/lukso-icon/icons/profile-add.d.ts.map +1 -1
  410. package/dist/components/lukso-icon/icons/profile-circle.d.ts +1 -1
  411. package/dist/components/lukso-icon/icons/profile-circle.d.ts.map +1 -1
  412. package/dist/components/lukso-icon/icons/profile-export.d.ts +1 -1
  413. package/dist/components/lukso-icon/icons/profile-export.d.ts.map +1 -1
  414. package/dist/components/lukso-icon/icons/profile-file.d.ts +1 -1
  415. package/dist/components/lukso-icon/icons/profile-file.d.ts.map +1 -1
  416. package/dist/components/lukso-icon/icons/profile-following.d.ts +1 -1
  417. package/dist/components/lukso-icon/icons/profile-following.d.ts.map +1 -1
  418. package/dist/components/lukso-icon/icons/profile-import.d.ts +1 -1
  419. package/dist/components/lukso-icon/icons/profile-import.d.ts.map +1 -1
  420. package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts +1 -1
  421. package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts.map +1 -1
  422. package/dist/components/lukso-icon/icons/profile-recovery.d.ts +1 -1
  423. package/dist/components/lukso-icon/icons/profile-recovery.d.ts.map +1 -1
  424. package/dist/components/lukso-icon/icons/profile-remove.d.ts +1 -1
  425. package/dist/components/lukso-icon/icons/profile-remove.d.ts.map +1 -1
  426. package/dist/components/lukso-icon/icons/profile-restore-no-setup.d.ts +1 -1
  427. package/dist/components/lukso-icon/icons/profile-restore-no-setup.d.ts.map +1 -1
  428. package/dist/components/lukso-icon/icons/profile-restore.d.ts +1 -1
  429. package/dist/components/lukso-icon/icons/profile-restore.d.ts.map +1 -1
  430. package/dist/components/lukso-icon/icons/profile.d.ts +1 -1
  431. package/dist/components/lukso-icon/icons/profile.d.ts.map +1 -1
  432. package/dist/components/lukso-icon/icons/progress-complete.d.ts +1 -1
  433. package/dist/components/lukso-icon/icons/progress-complete.d.ts.map +1 -1
  434. package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts +1 -1
  435. package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts.map +1 -1
  436. package/dist/components/lukso-icon/icons/progress-indicator.d.ts +1 -1
  437. package/dist/components/lukso-icon/icons/progress-indicator.d.ts.map +1 -1
  438. package/dist/components/lukso-icon/icons/pulse-dot.d.ts +1 -1
  439. package/dist/components/lukso-icon/icons/pulse-dot.d.ts.map +1 -1
  440. package/dist/components/lukso-icon/icons/qr-code-scan.d.ts +1 -1
  441. package/dist/components/lukso-icon/icons/qr-code-scan.d.ts.map +1 -1
  442. package/dist/components/lukso-icon/icons/qr-code.d.ts +1 -1
  443. package/dist/components/lukso-icon/icons/qr-code.d.ts.map +1 -1
  444. package/dist/components/lukso-icon/icons/reentrancy-activated.d.ts +1 -1
  445. package/dist/components/lukso-icon/icons/reentrancy-activated.d.ts.map +1 -1
  446. package/dist/components/lukso-icon/icons/reentrancy-inactive.d.ts +1 -1
  447. package/dist/components/lukso-icon/icons/reentrancy-inactive.d.ts.map +1 -1
  448. package/dist/components/lukso-icon/icons/relayer.d.ts +1 -1
  449. package/dist/components/lukso-icon/icons/relayer.d.ts.map +1 -1
  450. package/dist/components/lukso-icon/icons/reload.d.ts +1 -1
  451. package/dist/components/lukso-icon/icons/reload.d.ts.map +1 -1
  452. package/dist/components/lukso-icon/icons/return-down.d.ts +1 -1
  453. package/dist/components/lukso-icon/icons/return-down.d.ts.map +1 -1
  454. package/dist/components/lukso-icon/icons/return-left.d.ts +1 -1
  455. package/dist/components/lukso-icon/icons/return-left.d.ts.map +1 -1
  456. package/dist/components/lukso-icon/icons/return-right.d.ts +1 -1
  457. package/dist/components/lukso-icon/icons/return-right.d.ts.map +1 -1
  458. package/dist/components/lukso-icon/icons/return-up.d.ts +1 -1
  459. package/dist/components/lukso-icon/icons/return-up.d.ts.map +1 -1
  460. package/dist/components/lukso-icon/icons/row-vertical.d.ts +1 -1
  461. package/dist/components/lukso-icon/icons/row-vertical.d.ts.map +1 -1
  462. package/dist/components/lukso-icon/icons/save-outline.d.ts +1 -1
  463. package/dist/components/lukso-icon/icons/save-outline.d.ts.map +1 -1
  464. package/dist/components/lukso-icon/icons/scan.d.ts +1 -1
  465. package/dist/components/lukso-icon/icons/scan.d.ts.map +1 -1
  466. package/dist/components/lukso-icon/icons/search.d.ts +1 -1
  467. package/dist/components/lukso-icon/icons/search.d.ts.map +1 -1
  468. package/dist/components/lukso-icon/icons/setdata-activated.d.ts +1 -1
  469. package/dist/components/lukso-icon/icons/setdata-activated.d.ts.map +1 -1
  470. package/dist/components/lukso-icon/icons/setdata-inactive.d.ts +1 -1
  471. package/dist/components/lukso-icon/icons/setdata-inactive.d.ts.map +1 -1
  472. package/dist/components/lukso-icon/icons/settings.d.ts +1 -1
  473. package/dist/components/lukso-icon/icons/settings.d.ts.map +1 -1
  474. package/dist/components/lukso-icon/icons/share.d.ts +1 -1
  475. package/dist/components/lukso-icon/icons/share.d.ts.map +1 -1
  476. package/dist/components/lukso-icon/icons/sign-activated.d.ts +1 -1
  477. package/dist/components/lukso-icon/icons/sign-activated.d.ts.map +1 -1
  478. package/dist/components/lukso-icon/icons/sign-inactive.d.ts +1 -1
  479. package/dist/components/lukso-icon/icons/sign-inactive.d.ts.map +1 -1
  480. package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts +1 -1
  481. package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts.map +1 -1
  482. package/dist/components/lukso-icon/icons/smart-contract.d.ts +1 -1
  483. package/dist/components/lukso-icon/icons/smart-contract.d.ts.map +1 -1
  484. package/dist/components/lukso-icon/icons/spinner.d.ts +1 -1
  485. package/dist/components/lukso-icon/icons/spinner.d.ts.map +1 -1
  486. package/dist/components/lukso-icon/icons/star-filled.d.ts +1 -1
  487. package/dist/components/lukso-icon/icons/star-filled.d.ts.map +1 -1
  488. package/dist/components/lukso-icon/icons/star-outline.d.ts +1 -1
  489. package/dist/components/lukso-icon/icons/star-outline.d.ts.map +1 -1
  490. package/dist/components/lukso-icon/icons/step-dot.d.ts +1 -1
  491. package/dist/components/lukso-icon/icons/step-dot.d.ts.map +1 -1
  492. package/dist/components/lukso-icon/icons/step-progress.d.ts +1 -1
  493. package/dist/components/lukso-icon/icons/step-progress.d.ts.map +1 -1
  494. package/dist/components/lukso-icon/icons/steps.d.ts +1 -1
  495. package/dist/components/lukso-icon/icons/steps.d.ts.map +1 -1
  496. package/dist/components/lukso-icon/icons/stop-linear.d.ts +1 -1
  497. package/dist/components/lukso-icon/icons/stop-linear.d.ts.map +1 -1
  498. package/dist/components/lukso-icon/icons/switched.d.ts +1 -1
  499. package/dist/components/lukso-icon/icons/switched.d.ts.map +1 -1
  500. package/dist/components/lukso-icon/icons/tick.d.ts +1 -1
  501. package/dist/components/lukso-icon/icons/tick.d.ts.map +1 -1
  502. package/dist/components/lukso-icon/icons/timer-outline.d.ts +1 -1
  503. package/dist/components/lukso-icon/icons/timer-outline.d.ts.map +1 -1
  504. package/dist/components/lukso-icon/icons/token-create.d.ts +1 -1
  505. package/dist/components/lukso-icon/icons/token-create.d.ts.map +1 -1
  506. package/dist/components/lukso-icon/icons/token-id.d.ts +1 -1
  507. package/dist/components/lukso-icon/icons/token-id.d.ts.map +1 -1
  508. package/dist/components/lukso-icon/icons/transaction-activated.d.ts +1 -1
  509. package/dist/components/lukso-icon/icons/transaction-activated.d.ts.map +1 -1
  510. package/dist/components/lukso-icon/icons/transaction-receive.d.ts +1 -1
  511. package/dist/components/lukso-icon/icons/transaction-receive.d.ts.map +1 -1
  512. package/dist/components/lukso-icon/icons/transaction-send.d.ts +1 -1
  513. package/dist/components/lukso-icon/icons/transaction-send.d.ts.map +1 -1
  514. package/dist/components/lukso-icon/icons/transfer-activated.d.ts +1 -1
  515. package/dist/components/lukso-icon/icons/transfer-activated.d.ts.map +1 -1
  516. package/dist/components/lukso-icon/icons/transfer-inactive.d.ts +1 -1
  517. package/dist/components/lukso-icon/icons/transfer-inactive.d.ts.map +1 -1
  518. package/dist/components/lukso-icon/icons/transfer-send.d.ts +1 -1
  519. package/dist/components/lukso-icon/icons/transfer-send.d.ts.map +1 -1
  520. package/dist/components/lukso-icon/icons/transfer.d.ts +1 -1
  521. package/dist/components/lukso-icon/icons/transfer.d.ts.map +1 -1
  522. package/dist/components/lukso-icon/icons/trash.d.ts +1 -1
  523. package/dist/components/lukso-icon/icons/trash.d.ts.map +1 -1
  524. package/dist/components/lukso-icon/icons/turn-down.d.ts +1 -1
  525. package/dist/components/lukso-icon/icons/turn-down.d.ts.map +1 -1
  526. package/dist/components/lukso-icon/icons/turn-left.d.ts +1 -1
  527. package/dist/components/lukso-icon/icons/turn-left.d.ts.map +1 -1
  528. package/dist/components/lukso-icon/icons/turn-right.d.ts +1 -1
  529. package/dist/components/lukso-icon/icons/turn-right.d.ts.map +1 -1
  530. package/dist/components/lukso-icon/icons/turn-up.d.ts +1 -1
  531. package/dist/components/lukso-icon/icons/turn-up.d.ts.map +1 -1
  532. package/dist/components/lukso-icon/icons/unlink.d.ts +1 -1
  533. package/dist/components/lukso-icon/icons/unlink.d.ts.map +1 -1
  534. package/dist/components/lukso-icon/icons/unlocked.d.ts +1 -1
  535. package/dist/components/lukso-icon/icons/unlocked.d.ts.map +1 -1
  536. package/dist/components/lukso-icon/icons/user-circle-add.d.ts +1 -1
  537. package/dist/components/lukso-icon/icons/user-circle-add.d.ts.map +1 -1
  538. package/dist/components/lukso-icon/icons/video-outline.d.ts +1 -1
  539. package/dist/components/lukso-icon/icons/video-outline.d.ts.map +1 -1
  540. package/dist/components/lukso-icon/icons/wallet-outline.d.ts +1 -1
  541. package/dist/components/lukso-icon/icons/wallet-outline.d.ts.map +1 -1
  542. package/dist/components/lukso-icon/icons/wallet-restore.d.ts +1 -1
  543. package/dist/components/lukso-icon/icons/wallet-restore.d.ts.map +1 -1
  544. package/dist/components/lukso-icon/icons/warning-round.d.ts +1 -1
  545. package/dist/components/lukso-icon/icons/warning-round.d.ts.map +1 -1
  546. package/dist/components/lukso-icon/icons/warning-triangle.d.ts +1 -1
  547. package/dist/components/lukso-icon/icons/warning-triangle.d.ts.map +1 -1
  548. package/dist/components/lukso-icon/index.cjs +270 -270
  549. package/dist/components/lukso-icon/index.d.ts +0 -7
  550. package/dist/components/lukso-icon/index.d.ts.map +1 -1
  551. package/dist/components/lukso-icon/index.js +268 -268
  552. package/dist/components/lukso-image/index.cjs +14 -15
  553. package/dist/components/lukso-image/index.js +12 -13
  554. package/dist/components/lukso-input/index.cjs +52 -50
  555. package/dist/components/lukso-input/index.js +49 -47
  556. package/dist/components/lukso-markdown/index.cjs +15 -86
  557. package/dist/components/lukso-markdown/index.js +13 -84
  558. package/dist/components/lukso-markdown-editor/index.cjs +71 -70
  559. package/dist/components/lukso-markdown-editor/index.js +68 -67
  560. package/dist/components/lukso-modal/index.cjs +25 -22
  561. package/dist/components/lukso-modal/index.d.ts.map +1 -1
  562. package/dist/components/lukso-modal/index.js +25 -20
  563. package/dist/components/lukso-navbar/index.cjs +32 -33
  564. package/dist/components/lukso-navbar/index.js +30 -31
  565. package/dist/components/lukso-pagination/index.cjs +18 -19
  566. package/dist/components/lukso-pagination/index.js +16 -17
  567. package/dist/components/lukso-profile/index.cjs +161 -11
  568. package/dist/components/lukso-profile/index.js +164 -5
  569. package/dist/components/lukso-progress/index.cjs +19 -16
  570. package/dist/components/lukso-progress/index.js +14 -11
  571. package/dist/components/lukso-qr-code/index.cjs +20 -37
  572. package/dist/components/lukso-qr-code/index.js +17 -34
  573. package/dist/components/lukso-radio/index.cjs +30 -28
  574. package/dist/components/lukso-radio/index.js +26 -24
  575. package/dist/components/lukso-radio-group/index.cjs +11 -12
  576. package/dist/components/lukso-radio-group/index.js +9 -10
  577. package/dist/components/lukso-sanitize/index.cjs +5 -5
  578. package/dist/components/lukso-sanitize/index.js +5 -5
  579. package/dist/components/lukso-search/index.cjs +12 -9
  580. package/dist/components/lukso-search/index.js +12 -9
  581. package/dist/components/lukso-select/index.cjs +49 -49
  582. package/dist/components/lukso-select/index.js +46 -46
  583. package/dist/components/lukso-share/index.cjs +9 -9
  584. package/dist/components/lukso-share/index.js +7 -7
  585. package/dist/components/lukso-switch/index.cjs +18 -18
  586. package/dist/components/lukso-switch/index.js +16 -16
  587. package/dist/components/lukso-tag/index.cjs +14 -14
  588. package/dist/components/lukso-tag/index.js +12 -12
  589. package/dist/components/lukso-terms/index.cjs +12 -12
  590. package/dist/components/lukso-terms/index.js +9 -9
  591. package/dist/components/lukso-textarea/index.cjs +39 -37
  592. package/dist/components/lukso-textarea/index.js +36 -34
  593. package/dist/components/lukso-tooltip/index.cjs +29 -3464
  594. package/dist/components/lukso-tooltip/index.js +27 -3462
  595. package/dist/components/lukso-username/index.cjs +12 -8
  596. package/dist/components/lukso-username/index.js +12 -8
  597. package/dist/components/lukso-wizard/index.cjs +15 -15
  598. package/dist/components/lukso-wizard/index.js +11 -11
  599. package/dist/index.cjs +14 -8
  600. package/dist/index.js +5 -5
  601. package/dist/shared/safe-custom-element.d.ts +1 -1
  602. package/dist/shared/safe-custom-element.d.ts.map +1 -1
  603. package/dist/shared/types.d.ts +7 -0
  604. package/dist/shared/types.d.ts.map +1 -1
  605. package/dist/vite.full.config.d.ts.map +1 -1
  606. package/package.json +7 -6
  607. package/dist/chunks/_commonjsHelpers-B85MJLTf.js +0 -5
  608. package/dist/chunks/_commonjsHelpers-CFO10eej.js +0 -7
  609. package/dist/chunks/axe-DJKac19y.js +0 -35093
  610. package/dist/chunks/axe-MHuN9KU0.js +0 -35097
  611. package/dist/chunks/base-Bn-zDNuZ.js +0 -93
  612. package/dist/chunks/base-Cl6v8-BZ.js +0 -8
  613. package/dist/chunks/base-KJhhKWYy.js +0 -91
  614. package/dist/chunks/base-NFGX42U4.js +0 -10
  615. package/dist/chunks/chunk-LQIOVPBE-CGhQ79Di.js +0 -370
  616. package/dist/chunks/chunk-LQIOVPBE-kQFZF_OS.js +0 -372
  617. package/dist/chunks/directive-BKuZRRPO.js +0 -8
  618. package/dist/chunks/directive-DT5Y-Nw0.js +0 -12
  619. package/dist/chunks/index-B9iart53.js +0 -2545
  620. package/dist/chunks/index-BAf8Hzhe.js +0 -611
  621. package/dist/chunks/index-BBFSnMaE.js +0 -1345
  622. package/dist/chunks/index-BDyLu6M0.js +0 -609
  623. package/dist/chunks/index-CaJky2qL.js +0 -2547
  624. package/dist/chunks/index-glHBylgQ.js +0 -1347
  625. package/dist/chunks/isAddress-B1R_6-uN.js +0 -745
  626. package/dist/chunks/isAddress-BUdSrCaY.js +0 -743
  627. package/dist/chunks/property-D6IL6zax.js +0 -11
  628. package/dist/chunks/property-DfumgIL6.js +0 -9
  629. package/dist/chunks/query-CHb9Ft_d.js +0 -9
  630. package/dist/chunks/query-D3HF7Pde.js +0 -11
  631. package/dist/chunks/safe-custom-element-qdGIR_v6.js +0 -10
  632. package/dist/chunks/safe-custom-element-tQ-epw6h.js +0 -12
  633. package/dist/chunks/state-CFjY89m3.js +0 -11
  634. package/dist/chunks/state-CaelFSbE.js +0 -9
  635. package/dist/chunks/unsafe-html-BHBLEMoa.js +0 -10
  636. package/dist/chunks/unsafe-html-DiwkOQlV.js +0 -12
  637. package/dist/shared/tailwind-element/index.cjs +0 -10
  638. package/dist/shared/tailwind-element/index.js +0 -1
@@ -1,3444 +1,9 @@
1
- import { b as TailwindStyledElement, x } from '../../chunks/index-5X9ujrWL.js';
2
- import { n } from '../../chunks/property-DfumgIL6.js';
3
- import { r } from '../../chunks/state-CaelFSbE.js';
4
- import { c as ce } from '../../chunks/index-B9iart53.js';
5
- import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
6
- import '../../chunks/index-B_H2eYG_.js';
7
-
8
- var top = 'top';
9
- var bottom = 'bottom';
10
- var right = 'right';
11
- var left = 'left';
12
- var auto = 'auto';
13
- var basePlacements = [top, bottom, right, left];
14
- var start = 'start';
15
- var end = 'end';
16
- var clippingParents = 'clippingParents';
17
- var viewport = 'viewport';
18
- var popper = 'popper';
19
- var reference = 'reference';
20
- var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
21
- return acc.concat([placement + "-" + start, placement + "-" + end]);
22
- }, []);
23
- var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
24
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
25
- }, []); // modifiers that need to read the DOM
26
-
27
- var beforeRead = 'beforeRead';
28
- var read = 'read';
29
- var afterRead = 'afterRead'; // pure-logic modifiers
30
-
31
- var beforeMain = 'beforeMain';
32
- var main = 'main';
33
- var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
34
-
35
- var beforeWrite = 'beforeWrite';
36
- var write = 'write';
37
- var afterWrite = 'afterWrite';
38
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
39
-
40
- function getNodeName(element) {
41
- return element ? (element.nodeName || '').toLowerCase() : null;
42
- }
43
-
44
- function getWindow(node) {
45
- if (node == null) {
46
- return window;
47
- }
48
-
49
- if (node.toString() !== '[object Window]') {
50
- var ownerDocument = node.ownerDocument;
51
- return ownerDocument ? ownerDocument.defaultView || window : window;
52
- }
53
-
54
- return node;
55
- }
56
-
57
- function isElement$1(node) {
58
- var OwnElement = getWindow(node).Element;
59
- return node instanceof OwnElement || node instanceof Element;
60
- }
61
-
62
- function isHTMLElement(node) {
63
- var OwnElement = getWindow(node).HTMLElement;
64
- return node instanceof OwnElement || node instanceof HTMLElement;
65
- }
66
-
67
- function isShadowRoot(node) {
68
- // IE 11 has no ShadowRoot
69
- if (typeof ShadowRoot === 'undefined') {
70
- return false;
71
- }
72
-
73
- var OwnElement = getWindow(node).ShadowRoot;
74
- return node instanceof OwnElement || node instanceof ShadowRoot;
75
- }
76
-
77
- // and applies them to the HTMLElements such as popper and arrow
78
-
79
- function applyStyles(_ref) {
80
- var state = _ref.state;
81
- Object.keys(state.elements).forEach(function (name) {
82
- var style = state.styles[name] || {};
83
- var attributes = state.attributes[name] || {};
84
- var element = state.elements[name]; // arrow is optional + virtual elements
85
-
86
- if (!isHTMLElement(element) || !getNodeName(element)) {
87
- return;
88
- } // Flow doesn't support to extend this property, but it's the most
89
- // effective way to apply styles to an HTMLElement
90
- // $FlowFixMe[cannot-write]
91
-
92
-
93
- Object.assign(element.style, style);
94
- Object.keys(attributes).forEach(function (name) {
95
- var value = attributes[name];
96
-
97
- if (value === false) {
98
- element.removeAttribute(name);
99
- } else {
100
- element.setAttribute(name, value === true ? '' : value);
101
- }
102
- });
103
- });
104
- }
105
-
106
- function effect$2(_ref2) {
107
- var state = _ref2.state;
108
- var initialStyles = {
109
- popper: {
110
- position: state.options.strategy,
111
- left: '0',
112
- top: '0',
113
- margin: '0'
114
- },
115
- arrow: {
116
- position: 'absolute'
117
- },
118
- reference: {}
119
- };
120
- Object.assign(state.elements.popper.style, initialStyles.popper);
121
- state.styles = initialStyles;
122
-
123
- if (state.elements.arrow) {
124
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
125
- }
126
-
127
- return function () {
128
- Object.keys(state.elements).forEach(function (name) {
129
- var element = state.elements[name];
130
- var attributes = state.attributes[name] || {};
131
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
132
-
133
- var style = styleProperties.reduce(function (style, property) {
134
- style[property] = '';
135
- return style;
136
- }, {}); // arrow is optional + virtual elements
137
-
138
- if (!isHTMLElement(element) || !getNodeName(element)) {
139
- return;
140
- }
141
-
142
- Object.assign(element.style, style);
143
- Object.keys(attributes).forEach(function (attribute) {
144
- element.removeAttribute(attribute);
145
- });
146
- });
147
- };
148
- } // eslint-disable-next-line import/no-unused-modules
149
-
150
-
151
- const applyStyles$1 = {
152
- name: 'applyStyles',
153
- enabled: true,
154
- phase: 'write',
155
- fn: applyStyles,
156
- effect: effect$2,
157
- requires: ['computeStyles']
158
- };
159
-
160
- function getBasePlacement$1(placement) {
161
- return placement.split('-')[0];
162
- }
163
-
164
- var max = Math.max;
165
- var min = Math.min;
166
- var round = Math.round;
167
-
168
- function getUAString() {
169
- var uaData = navigator.userAgentData;
170
-
171
- if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
172
- return uaData.brands.map(function (item) {
173
- return item.brand + "/" + item.version;
174
- }).join(' ');
175
- }
176
-
177
- return navigator.userAgent;
178
- }
179
-
180
- function isLayoutViewport() {
181
- return !/^((?!chrome|android).)*safari/i.test(getUAString());
182
- }
183
-
184
- function getBoundingClientRect(element, includeScale, isFixedStrategy) {
185
- if (includeScale === void 0) {
186
- includeScale = false;
187
- }
188
-
189
- if (isFixedStrategy === void 0) {
190
- isFixedStrategy = false;
191
- }
192
-
193
- var clientRect = element.getBoundingClientRect();
194
- var scaleX = 1;
195
- var scaleY = 1;
196
-
197
- if (includeScale && isHTMLElement(element)) {
198
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
199
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
200
- }
201
-
202
- var _ref = isElement$1(element) ? getWindow(element) : window,
203
- visualViewport = _ref.visualViewport;
204
-
205
- var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
206
- var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
207
- var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
208
- var width = clientRect.width / scaleX;
209
- var height = clientRect.height / scaleY;
210
- return {
211
- width: width,
212
- height: height,
213
- top: y,
214
- right: x + width,
215
- bottom: y + height,
216
- left: x,
217
- x: x,
218
- y: y
219
- };
220
- }
221
-
222
- // means it doesn't take into account transforms.
223
-
224
- function getLayoutRect(element) {
225
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
226
- // Fixes https://github.com/popperjs/popper-core/issues/1223
227
-
228
- var width = element.offsetWidth;
229
- var height = element.offsetHeight;
230
-
231
- if (Math.abs(clientRect.width - width) <= 1) {
232
- width = clientRect.width;
233
- }
234
-
235
- if (Math.abs(clientRect.height - height) <= 1) {
236
- height = clientRect.height;
237
- }
238
-
239
- return {
240
- x: element.offsetLeft,
241
- y: element.offsetTop,
242
- width: width,
243
- height: height
244
- };
245
- }
246
-
247
- function contains(parent, child) {
248
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
249
-
250
- if (parent.contains(child)) {
251
- return true;
252
- } // then fallback to custom implementation with Shadow DOM support
253
- else if (rootNode && isShadowRoot(rootNode)) {
254
- var next = child;
255
-
256
- do {
257
- if (next && parent.isSameNode(next)) {
258
- return true;
259
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
260
-
261
-
262
- next = next.parentNode || next.host;
263
- } while (next);
264
- } // Give up, the result is false
265
-
266
-
267
- return false;
268
- }
269
-
270
- function getComputedStyle(element) {
271
- return getWindow(element).getComputedStyle(element);
272
- }
273
-
274
- function isTableElement(element) {
275
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
276
- }
277
-
278
- function getDocumentElement(element) {
279
- // $FlowFixMe[incompatible-return]: assume body is always available
280
- return ((isElement$1(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
281
- element.document) || window.document).documentElement;
282
- }
283
-
284
- function getParentNode(element) {
285
- if (getNodeName(element) === 'html') {
286
- return element;
287
- }
288
-
289
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
290
- // $FlowFixMe[incompatible-return]
291
- // $FlowFixMe[prop-missing]
292
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
293
- element.parentNode || ( // DOM Element detected
294
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
295
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
296
- getDocumentElement(element) // fallback
297
-
298
- );
299
- }
300
-
301
- function getTrueOffsetParent(element) {
302
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
303
- getComputedStyle(element).position === 'fixed') {
304
- return null;
305
- }
306
-
307
- return element.offsetParent;
308
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
309
- // return the containing block
310
-
311
-
312
- function getContainingBlock(element) {
313
- var isFirefox = /firefox/i.test(getUAString());
314
- var isIE = /Trident/i.test(getUAString());
315
-
316
- if (isIE && isHTMLElement(element)) {
317
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
318
- var elementCss = getComputedStyle(element);
319
-
320
- if (elementCss.position === 'fixed') {
321
- return null;
322
- }
323
- }
324
-
325
- var currentNode = getParentNode(element);
326
-
327
- if (isShadowRoot(currentNode)) {
328
- currentNode = currentNode.host;
329
- }
330
-
331
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
332
- var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
333
- // create a containing block.
334
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
335
-
336
- if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
337
- return currentNode;
338
- } else {
339
- currentNode = currentNode.parentNode;
340
- }
341
- }
342
-
343
- return null;
344
- } // Gets the closest ancestor positioned element. Handles some edge cases,
345
- // such as table ancestors and cross browser bugs.
346
-
347
-
348
- function getOffsetParent(element) {
349
- var window = getWindow(element);
350
- var offsetParent = getTrueOffsetParent(element);
351
-
352
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
353
- offsetParent = getTrueOffsetParent(offsetParent);
354
- }
355
-
356
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
357
- return window;
358
- }
359
-
360
- return offsetParent || getContainingBlock(element) || window;
361
- }
362
-
363
- function getMainAxisFromPlacement(placement) {
364
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
365
- }
366
-
367
- function within(min$1, value, max$1) {
368
- return max(min$1, min(value, max$1));
369
- }
370
- function withinMaxClamp(min, value, max) {
371
- var v = within(min, value, max);
372
- return v > max ? max : v;
373
- }
374
-
375
- function getFreshSideObject() {
376
- return {
377
- top: 0,
378
- right: 0,
379
- bottom: 0,
380
- left: 0
381
- };
382
- }
383
-
384
- function mergePaddingObject(paddingObject) {
385
- return Object.assign({}, getFreshSideObject(), paddingObject);
386
- }
387
-
388
- function expandToHashMap(value, keys) {
389
- return keys.reduce(function (hashMap, key) {
390
- hashMap[key] = value;
391
- return hashMap;
392
- }, {});
393
- }
394
-
395
- var toPaddingObject = function toPaddingObject(padding, state) {
396
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
397
- placement: state.placement
398
- })) : padding;
399
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
400
- };
401
-
402
- function arrow(_ref) {
403
- var _state$modifiersData$;
404
-
405
- var state = _ref.state,
406
- name = _ref.name,
407
- options = _ref.options;
408
- var arrowElement = state.elements.arrow;
409
- var popperOffsets = state.modifiersData.popperOffsets;
410
- var basePlacement = getBasePlacement$1(state.placement);
411
- var axis = getMainAxisFromPlacement(basePlacement);
412
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
413
- var len = isVertical ? 'height' : 'width';
414
-
415
- if (!arrowElement || !popperOffsets) {
416
- return;
417
- }
418
-
419
- var paddingObject = toPaddingObject(options.padding, state);
420
- var arrowRect = getLayoutRect(arrowElement);
421
- var minProp = axis === 'y' ? top : left;
422
- var maxProp = axis === 'y' ? bottom : right;
423
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
424
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
425
- var arrowOffsetParent = getOffsetParent(arrowElement);
426
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
427
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
428
- // outside of the popper bounds
429
-
430
- var min = paddingObject[minProp];
431
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
432
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
433
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
434
-
435
- var axisProp = axis;
436
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
437
- }
438
-
439
- function effect$1(_ref2) {
440
- var state = _ref2.state,
441
- options = _ref2.options;
442
- var _options$element = options.element,
443
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
444
-
445
- if (arrowElement == null) {
446
- return;
447
- } // CSS selector
448
-
449
-
450
- if (typeof arrowElement === 'string') {
451
- arrowElement = state.elements.popper.querySelector(arrowElement);
452
-
453
- if (!arrowElement) {
454
- return;
455
- }
456
- }
457
-
458
- if (!contains(state.elements.popper, arrowElement)) {
459
- return;
460
- }
461
-
462
- state.elements.arrow = arrowElement;
463
- } // eslint-disable-next-line import/no-unused-modules
464
-
465
-
466
- const arrow$1 = {
467
- name: 'arrow',
468
- enabled: true,
469
- phase: 'main',
470
- fn: arrow,
471
- effect: effect$1,
472
- requires: ['popperOffsets'],
473
- requiresIfExists: ['preventOverflow']
474
- };
475
-
476
- function getVariation(placement) {
477
- return placement.split('-')[1];
478
- }
479
-
480
- var unsetSides = {
481
- top: 'auto',
482
- right: 'auto',
483
- bottom: 'auto',
484
- left: 'auto'
485
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
486
- // Zooming can change the DPR, but it seems to report a value that will
487
- // cleanly divide the values into the appropriate subpixels.
488
-
489
- function roundOffsetsByDPR(_ref, win) {
490
- var x = _ref.x,
491
- y = _ref.y;
492
- var dpr = win.devicePixelRatio || 1;
493
- return {
494
- x: round(x * dpr) / dpr || 0,
495
- y: round(y * dpr) / dpr || 0
496
- };
497
- }
498
-
499
- function mapToStyles(_ref2) {
500
- var _Object$assign2;
501
-
502
- var popper = _ref2.popper,
503
- popperRect = _ref2.popperRect,
504
- placement = _ref2.placement,
505
- variation = _ref2.variation,
506
- offsets = _ref2.offsets,
507
- position = _ref2.position,
508
- gpuAcceleration = _ref2.gpuAcceleration,
509
- adaptive = _ref2.adaptive,
510
- roundOffsets = _ref2.roundOffsets,
511
- isFixed = _ref2.isFixed;
512
- var _offsets$x = offsets.x,
513
- x = _offsets$x === void 0 ? 0 : _offsets$x,
514
- _offsets$y = offsets.y,
515
- y = _offsets$y === void 0 ? 0 : _offsets$y;
516
-
517
- var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
518
- x: x,
519
- y: y
520
- }) : {
521
- x: x,
522
- y: y
523
- };
524
-
525
- x = _ref3.x;
526
- y = _ref3.y;
527
- var hasX = offsets.hasOwnProperty('x');
528
- var hasY = offsets.hasOwnProperty('y');
529
- var sideX = left;
530
- var sideY = top;
531
- var win = window;
532
-
533
- if (adaptive) {
534
- var offsetParent = getOffsetParent(popper);
535
- var heightProp = 'clientHeight';
536
- var widthProp = 'clientWidth';
537
-
538
- if (offsetParent === getWindow(popper)) {
539
- offsetParent = getDocumentElement(popper);
540
-
541
- if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
542
- heightProp = 'scrollHeight';
543
- widthProp = 'scrollWidth';
544
- }
545
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
546
-
547
-
548
- offsetParent = offsetParent;
549
-
550
- if (placement === top || (placement === left || placement === right) && variation === end) {
551
- sideY = bottom;
552
- var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
553
- offsetParent[heightProp];
554
- y -= offsetY - popperRect.height;
555
- y *= gpuAcceleration ? 1 : -1;
556
- }
557
-
558
- if (placement === left || (placement === top || placement === bottom) && variation === end) {
559
- sideX = right;
560
- var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
561
- offsetParent[widthProp];
562
- x -= offsetX - popperRect.width;
563
- x *= gpuAcceleration ? 1 : -1;
564
- }
565
- }
566
-
567
- var commonStyles = Object.assign({
568
- position: position
569
- }, adaptive && unsetSides);
570
-
571
- var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
572
- x: x,
573
- y: y
574
- }, getWindow(popper)) : {
575
- x: x,
576
- y: y
577
- };
578
-
579
- x = _ref4.x;
580
- y = _ref4.y;
581
-
582
- if (gpuAcceleration) {
583
- var _Object$assign;
584
-
585
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
586
- }
587
-
588
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
589
- }
590
-
591
- function computeStyles(_ref5) {
592
- var state = _ref5.state,
593
- options = _ref5.options;
594
- var _options$gpuAccelerat = options.gpuAcceleration,
595
- gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
596
- _options$adaptive = options.adaptive,
597
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
598
- _options$roundOffsets = options.roundOffsets,
599
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
600
- var commonStyles = {
601
- placement: getBasePlacement$1(state.placement),
602
- variation: getVariation(state.placement),
603
- popper: state.elements.popper,
604
- popperRect: state.rects.popper,
605
- gpuAcceleration: gpuAcceleration,
606
- isFixed: state.options.strategy === 'fixed'
607
- };
608
-
609
- if (state.modifiersData.popperOffsets != null) {
610
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
611
- offsets: state.modifiersData.popperOffsets,
612
- position: state.options.strategy,
613
- adaptive: adaptive,
614
- roundOffsets: roundOffsets
615
- })));
616
- }
617
-
618
- if (state.modifiersData.arrow != null) {
619
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
620
- offsets: state.modifiersData.arrow,
621
- position: 'absolute',
622
- adaptive: false,
623
- roundOffsets: roundOffsets
624
- })));
625
- }
626
-
627
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
628
- 'data-popper-placement': state.placement
629
- });
630
- } // eslint-disable-next-line import/no-unused-modules
631
-
632
-
633
- const computeStyles$1 = {
634
- name: 'computeStyles',
635
- enabled: true,
636
- phase: 'beforeWrite',
637
- fn: computeStyles,
638
- data: {}
639
- };
640
-
641
- var passive = {
642
- passive: true
643
- };
644
-
645
- function effect(_ref) {
646
- var state = _ref.state,
647
- instance = _ref.instance,
648
- options = _ref.options;
649
- var _options$scroll = options.scroll,
650
- scroll = _options$scroll === void 0 ? true : _options$scroll,
651
- _options$resize = options.resize,
652
- resize = _options$resize === void 0 ? true : _options$resize;
653
- var window = getWindow(state.elements.popper);
654
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
655
-
656
- if (scroll) {
657
- scrollParents.forEach(function (scrollParent) {
658
- scrollParent.addEventListener('scroll', instance.update, passive);
659
- });
660
- }
661
-
662
- if (resize) {
663
- window.addEventListener('resize', instance.update, passive);
664
- }
665
-
666
- return function () {
667
- if (scroll) {
668
- scrollParents.forEach(function (scrollParent) {
669
- scrollParent.removeEventListener('scroll', instance.update, passive);
670
- });
671
- }
672
-
673
- if (resize) {
674
- window.removeEventListener('resize', instance.update, passive);
675
- }
676
- };
677
- } // eslint-disable-next-line import/no-unused-modules
678
-
679
-
680
- const eventListeners = {
681
- name: 'eventListeners',
682
- enabled: true,
683
- phase: 'write',
684
- fn: function fn() {},
685
- effect: effect,
686
- data: {}
687
- };
688
-
689
- var hash$1 = {
690
- left: 'right',
691
- right: 'left',
692
- bottom: 'top',
693
- top: 'bottom'
694
- };
695
- function getOppositePlacement(placement) {
696
- return placement.replace(/left|right|bottom|top/g, function (matched) {
697
- return hash$1[matched];
698
- });
699
- }
700
-
701
- var hash = {
702
- start: 'end',
703
- end: 'start'
704
- };
705
- function getOppositeVariationPlacement(placement) {
706
- return placement.replace(/start|end/g, function (matched) {
707
- return hash[matched];
708
- });
709
- }
710
-
711
- function getWindowScroll(node) {
712
- var win = getWindow(node);
713
- var scrollLeft = win.pageXOffset;
714
- var scrollTop = win.pageYOffset;
715
- return {
716
- scrollLeft: scrollLeft,
717
- scrollTop: scrollTop
718
- };
719
- }
720
-
721
- function getWindowScrollBarX(element) {
722
- // If <html> has a CSS width greater than the viewport, then this will be
723
- // incorrect for RTL.
724
- // Popper 1 is broken in this case and never had a bug report so let's assume
725
- // it's not an issue. I don't think anyone ever specifies width on <html>
726
- // anyway.
727
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
728
- // this (e.g. Edge 2019, IE11, Safari)
729
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
730
- }
731
-
732
- function getViewportRect(element, strategy) {
733
- var win = getWindow(element);
734
- var html = getDocumentElement(element);
735
- var visualViewport = win.visualViewport;
736
- var width = html.clientWidth;
737
- var height = html.clientHeight;
738
- var x = 0;
739
- var y = 0;
740
-
741
- if (visualViewport) {
742
- width = visualViewport.width;
743
- height = visualViewport.height;
744
- var layoutViewport = isLayoutViewport();
745
-
746
- if (layoutViewport || !layoutViewport && strategy === 'fixed') {
747
- x = visualViewport.offsetLeft;
748
- y = visualViewport.offsetTop;
749
- }
750
- }
751
-
752
- return {
753
- width: width,
754
- height: height,
755
- x: x + getWindowScrollBarX(element),
756
- y: y
757
- };
758
- }
759
-
760
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
761
-
762
- function getDocumentRect(element) {
763
- var _element$ownerDocumen;
764
-
765
- var html = getDocumentElement(element);
766
- var winScroll = getWindowScroll(element);
767
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
768
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
769
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
770
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
771
- var y = -winScroll.scrollTop;
772
-
773
- if (getComputedStyle(body || html).direction === 'rtl') {
774
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
775
- }
776
-
777
- return {
778
- width: width,
779
- height: height,
780
- x: x,
781
- y: y
782
- };
783
- }
784
-
785
- function isScrollParent(element) {
786
- // Firefox wants us to check `-x` and `-y` variations as well
787
- var _getComputedStyle = getComputedStyle(element),
788
- overflow = _getComputedStyle.overflow,
789
- overflowX = _getComputedStyle.overflowX,
790
- overflowY = _getComputedStyle.overflowY;
791
-
792
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
793
- }
794
-
795
- function getScrollParent(node) {
796
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
797
- // $FlowFixMe[incompatible-return]: assume body is always available
798
- return node.ownerDocument.body;
799
- }
800
-
801
- if (isHTMLElement(node) && isScrollParent(node)) {
802
- return node;
803
- }
804
-
805
- return getScrollParent(getParentNode(node));
806
- }
807
-
808
- /*
809
- given a DOM element, return the list of all scroll parents, up the list of ancesors
810
- until we get to the top window object. This list is what we attach scroll listeners
811
- to, because if any of these parent elements scroll, we'll need to re-calculate the
812
- reference element's position.
813
- */
814
-
815
- function listScrollParents(element, list) {
816
- var _element$ownerDocumen;
817
-
818
- if (list === void 0) {
819
- list = [];
820
- }
821
-
822
- var scrollParent = getScrollParent(element);
823
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
824
- var win = getWindow(scrollParent);
825
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
826
- var updatedList = list.concat(target);
827
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
828
- updatedList.concat(listScrollParents(getParentNode(target)));
829
- }
830
-
831
- function rectToClientRect(rect) {
832
- return Object.assign({}, rect, {
833
- left: rect.x,
834
- top: rect.y,
835
- right: rect.x + rect.width,
836
- bottom: rect.y + rect.height
837
- });
838
- }
839
-
840
- function getInnerBoundingClientRect(element, strategy) {
841
- var rect = getBoundingClientRect(element, false, strategy === 'fixed');
842
- rect.top = rect.top + element.clientTop;
843
- rect.left = rect.left + element.clientLeft;
844
- rect.bottom = rect.top + element.clientHeight;
845
- rect.right = rect.left + element.clientWidth;
846
- rect.width = element.clientWidth;
847
- rect.height = element.clientHeight;
848
- rect.x = rect.left;
849
- rect.y = rect.top;
850
- return rect;
851
- }
852
-
853
- function getClientRectFromMixedType(element, clippingParent, strategy) {
854
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$1(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
855
- } // A "clipping parent" is an overflowable container with the characteristic of
856
- // clipping (or hiding) overflowing elements with a position different from
857
- // `initial`
858
-
859
-
860
- function getClippingParents(element) {
861
- var clippingParents = listScrollParents(getParentNode(element));
862
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
863
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
864
-
865
- if (!isElement$1(clipperElement)) {
866
- return [];
867
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
868
-
869
-
870
- return clippingParents.filter(function (clippingParent) {
871
- return isElement$1(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
872
- });
873
- } // Gets the maximum area that the element is visible in due to any number of
874
- // clipping parents
875
-
876
-
877
- function getClippingRect(element, boundary, rootBoundary, strategy) {
878
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
879
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
880
- var firstClippingParent = clippingParents[0];
881
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
882
- var rect = getClientRectFromMixedType(element, clippingParent, strategy);
883
- accRect.top = max(rect.top, accRect.top);
884
- accRect.right = min(rect.right, accRect.right);
885
- accRect.bottom = min(rect.bottom, accRect.bottom);
886
- accRect.left = max(rect.left, accRect.left);
887
- return accRect;
888
- }, getClientRectFromMixedType(element, firstClippingParent, strategy));
889
- clippingRect.width = clippingRect.right - clippingRect.left;
890
- clippingRect.height = clippingRect.bottom - clippingRect.top;
891
- clippingRect.x = clippingRect.left;
892
- clippingRect.y = clippingRect.top;
893
- return clippingRect;
894
- }
895
-
896
- function computeOffsets(_ref) {
897
- var reference = _ref.reference,
898
- element = _ref.element,
899
- placement = _ref.placement;
900
- var basePlacement = placement ? getBasePlacement$1(placement) : null;
901
- var variation = placement ? getVariation(placement) : null;
902
- var commonX = reference.x + reference.width / 2 - element.width / 2;
903
- var commonY = reference.y + reference.height / 2 - element.height / 2;
904
- var offsets;
905
-
906
- switch (basePlacement) {
907
- case top:
908
- offsets = {
909
- x: commonX,
910
- y: reference.y - element.height
911
- };
912
- break;
913
-
914
- case bottom:
915
- offsets = {
916
- x: commonX,
917
- y: reference.y + reference.height
918
- };
919
- break;
920
-
921
- case right:
922
- offsets = {
923
- x: reference.x + reference.width,
924
- y: commonY
925
- };
926
- break;
927
-
928
- case left:
929
- offsets = {
930
- x: reference.x - element.width,
931
- y: commonY
932
- };
933
- break;
934
-
935
- default:
936
- offsets = {
937
- x: reference.x,
938
- y: reference.y
939
- };
940
- }
941
-
942
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
943
-
944
- if (mainAxis != null) {
945
- var len = mainAxis === 'y' ? 'height' : 'width';
946
-
947
- switch (variation) {
948
- case start:
949
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
950
- break;
951
-
952
- case end:
953
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
954
- break;
955
- }
956
- }
957
-
958
- return offsets;
959
- }
960
-
961
- function detectOverflow(state, options) {
962
- if (options === void 0) {
963
- options = {};
964
- }
965
-
966
- var _options = options,
967
- _options$placement = _options.placement,
968
- placement = _options$placement === void 0 ? state.placement : _options$placement,
969
- _options$strategy = _options.strategy,
970
- strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
971
- _options$boundary = _options.boundary,
972
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
973
- _options$rootBoundary = _options.rootBoundary,
974
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
975
- _options$elementConte = _options.elementContext,
976
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
977
- _options$altBoundary = _options.altBoundary,
978
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
979
- _options$padding = _options.padding,
980
- padding = _options$padding === void 0 ? 0 : _options$padding;
981
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
982
- var altContext = elementContext === popper ? reference : popper;
983
- var popperRect = state.rects.popper;
984
- var element = state.elements[altBoundary ? altContext : elementContext];
985
- var clippingClientRect = getClippingRect(isElement$1(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
986
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
987
- var popperOffsets = computeOffsets({
988
- reference: referenceClientRect,
989
- element: popperRect,
990
- placement: placement
991
- });
992
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
993
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
994
- // 0 or negative = within the clipping rect
995
-
996
- var overflowOffsets = {
997
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
998
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
999
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
1000
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
1001
- };
1002
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
1003
-
1004
- if (elementContext === popper && offsetData) {
1005
- var offset = offsetData[placement];
1006
- Object.keys(overflowOffsets).forEach(function (key) {
1007
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
1008
- var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
1009
- overflowOffsets[key] += offset[axis] * multiply;
1010
- });
1011
- }
1012
-
1013
- return overflowOffsets;
1014
- }
1015
-
1016
- function computeAutoPlacement(state, options) {
1017
- if (options === void 0) {
1018
- options = {};
1019
- }
1020
-
1021
- var _options = options,
1022
- placement = _options.placement,
1023
- boundary = _options.boundary,
1024
- rootBoundary = _options.rootBoundary,
1025
- padding = _options.padding,
1026
- flipVariations = _options.flipVariations,
1027
- _options$allowedAutoP = _options.allowedAutoPlacements,
1028
- allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
1029
- var variation = getVariation(placement);
1030
- var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
1031
- return getVariation(placement) === variation;
1032
- }) : basePlacements;
1033
- var allowedPlacements = placements$1.filter(function (placement) {
1034
- return allowedAutoPlacements.indexOf(placement) >= 0;
1035
- });
1036
-
1037
- if (allowedPlacements.length === 0) {
1038
- allowedPlacements = placements$1;
1039
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1040
-
1041
-
1042
- var overflows = allowedPlacements.reduce(function (acc, placement) {
1043
- acc[placement] = detectOverflow(state, {
1044
- placement: placement,
1045
- boundary: boundary,
1046
- rootBoundary: rootBoundary,
1047
- padding: padding
1048
- })[getBasePlacement$1(placement)];
1049
- return acc;
1050
- }, {});
1051
- return Object.keys(overflows).sort(function (a, b) {
1052
- return overflows[a] - overflows[b];
1053
- });
1054
- }
1055
-
1056
- function getExpandedFallbackPlacements(placement) {
1057
- if (getBasePlacement$1(placement) === auto) {
1058
- return [];
1059
- }
1060
-
1061
- var oppositePlacement = getOppositePlacement(placement);
1062
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
1063
- }
1064
-
1065
- function flip(_ref) {
1066
- var state = _ref.state,
1067
- options = _ref.options,
1068
- name = _ref.name;
1069
-
1070
- if (state.modifiersData[name]._skip) {
1071
- return;
1072
- }
1073
-
1074
- var _options$mainAxis = options.mainAxis,
1075
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1076
- _options$altAxis = options.altAxis,
1077
- checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
1078
- specifiedFallbackPlacements = options.fallbackPlacements,
1079
- padding = options.padding,
1080
- boundary = options.boundary,
1081
- rootBoundary = options.rootBoundary,
1082
- altBoundary = options.altBoundary,
1083
- _options$flipVariatio = options.flipVariations,
1084
- flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
1085
- allowedAutoPlacements = options.allowedAutoPlacements;
1086
- var preferredPlacement = state.options.placement;
1087
- var basePlacement = getBasePlacement$1(preferredPlacement);
1088
- var isBasePlacement = basePlacement === preferredPlacement;
1089
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
1090
- var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
1091
- return acc.concat(getBasePlacement$1(placement) === auto ? computeAutoPlacement(state, {
1092
- placement: placement,
1093
- boundary: boundary,
1094
- rootBoundary: rootBoundary,
1095
- padding: padding,
1096
- flipVariations: flipVariations,
1097
- allowedAutoPlacements: allowedAutoPlacements
1098
- }) : placement);
1099
- }, []);
1100
- var referenceRect = state.rects.reference;
1101
- var popperRect = state.rects.popper;
1102
- var checksMap = new Map();
1103
- var makeFallbackChecks = true;
1104
- var firstFittingPlacement = placements[0];
1105
-
1106
- for (var i = 0; i < placements.length; i++) {
1107
- var placement = placements[i];
1108
-
1109
- var _basePlacement = getBasePlacement$1(placement);
1110
-
1111
- var isStartVariation = getVariation(placement) === start;
1112
- var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
1113
- var len = isVertical ? 'width' : 'height';
1114
- var overflow = detectOverflow(state, {
1115
- placement: placement,
1116
- boundary: boundary,
1117
- rootBoundary: rootBoundary,
1118
- altBoundary: altBoundary,
1119
- padding: padding
1120
- });
1121
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
1122
-
1123
- if (referenceRect[len] > popperRect[len]) {
1124
- mainVariationSide = getOppositePlacement(mainVariationSide);
1125
- }
1126
-
1127
- var altVariationSide = getOppositePlacement(mainVariationSide);
1128
- var checks = [];
1129
-
1130
- if (checkMainAxis) {
1131
- checks.push(overflow[_basePlacement] <= 0);
1132
- }
1133
-
1134
- if (checkAltAxis) {
1135
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
1136
- }
1137
-
1138
- if (checks.every(function (check) {
1139
- return check;
1140
- })) {
1141
- firstFittingPlacement = placement;
1142
- makeFallbackChecks = false;
1143
- break;
1144
- }
1145
-
1146
- checksMap.set(placement, checks);
1147
- }
1148
-
1149
- if (makeFallbackChecks) {
1150
- // `2` may be desired in some cases – research later
1151
- var numberOfChecks = flipVariations ? 3 : 1;
1152
-
1153
- var _loop = function _loop(_i) {
1154
- var fittingPlacement = placements.find(function (placement) {
1155
- var checks = checksMap.get(placement);
1156
-
1157
- if (checks) {
1158
- return checks.slice(0, _i).every(function (check) {
1159
- return check;
1160
- });
1161
- }
1162
- });
1163
-
1164
- if (fittingPlacement) {
1165
- firstFittingPlacement = fittingPlacement;
1166
- return "break";
1167
- }
1168
- };
1169
-
1170
- for (var _i = numberOfChecks; _i > 0; _i--) {
1171
- var _ret = _loop(_i);
1172
-
1173
- if (_ret === "break") break;
1174
- }
1175
- }
1176
-
1177
- if (state.placement !== firstFittingPlacement) {
1178
- state.modifiersData[name]._skip = true;
1179
- state.placement = firstFittingPlacement;
1180
- state.reset = true;
1181
- }
1182
- } // eslint-disable-next-line import/no-unused-modules
1183
-
1184
-
1185
- const flip$1 = {
1186
- name: 'flip',
1187
- enabled: true,
1188
- phase: 'main',
1189
- fn: flip,
1190
- requiresIfExists: ['offset'],
1191
- data: {
1192
- _skip: false
1193
- }
1194
- };
1195
-
1196
- function getSideOffsets(overflow, rect, preventedOffsets) {
1197
- if (preventedOffsets === void 0) {
1198
- preventedOffsets = {
1199
- x: 0,
1200
- y: 0
1201
- };
1202
- }
1203
-
1204
- return {
1205
- top: overflow.top - rect.height - preventedOffsets.y,
1206
- right: overflow.right - rect.width + preventedOffsets.x,
1207
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
1208
- left: overflow.left - rect.width - preventedOffsets.x
1209
- };
1210
- }
1211
-
1212
- function isAnySideFullyClipped(overflow) {
1213
- return [top, right, bottom, left].some(function (side) {
1214
- return overflow[side] >= 0;
1215
- });
1216
- }
1217
-
1218
- function hide(_ref) {
1219
- var state = _ref.state,
1220
- name = _ref.name;
1221
- var referenceRect = state.rects.reference;
1222
- var popperRect = state.rects.popper;
1223
- var preventedOffsets = state.modifiersData.preventOverflow;
1224
- var referenceOverflow = detectOverflow(state, {
1225
- elementContext: 'reference'
1226
- });
1227
- var popperAltOverflow = detectOverflow(state, {
1228
- altBoundary: true
1229
- });
1230
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
1231
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
1232
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
1233
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
1234
- state.modifiersData[name] = {
1235
- referenceClippingOffsets: referenceClippingOffsets,
1236
- popperEscapeOffsets: popperEscapeOffsets,
1237
- isReferenceHidden: isReferenceHidden,
1238
- hasPopperEscaped: hasPopperEscaped
1239
- };
1240
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
1241
- 'data-popper-reference-hidden': isReferenceHidden,
1242
- 'data-popper-escaped': hasPopperEscaped
1243
- });
1244
- } // eslint-disable-next-line import/no-unused-modules
1245
-
1246
-
1247
- const hide$1 = {
1248
- name: 'hide',
1249
- enabled: true,
1250
- phase: 'main',
1251
- requiresIfExists: ['preventOverflow'],
1252
- fn: hide
1253
- };
1254
-
1255
- function distanceAndSkiddingToXY(placement, rects, offset) {
1256
- var basePlacement = getBasePlacement$1(placement);
1257
- var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
1258
-
1259
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
1260
- placement: placement
1261
- })) : offset,
1262
- skidding = _ref[0],
1263
- distance = _ref[1];
1264
-
1265
- skidding = skidding || 0;
1266
- distance = (distance || 0) * invertDistance;
1267
- return [left, right].indexOf(basePlacement) >= 0 ? {
1268
- x: distance,
1269
- y: skidding
1270
- } : {
1271
- x: skidding,
1272
- y: distance
1273
- };
1274
- }
1275
-
1276
- function offset(_ref2) {
1277
- var state = _ref2.state,
1278
- options = _ref2.options,
1279
- name = _ref2.name;
1280
- var _options$offset = options.offset,
1281
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
1282
- var data = placements.reduce(function (acc, placement) {
1283
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
1284
- return acc;
1285
- }, {});
1286
- var _data$state$placement = data[state.placement],
1287
- x = _data$state$placement.x,
1288
- y = _data$state$placement.y;
1289
-
1290
- if (state.modifiersData.popperOffsets != null) {
1291
- state.modifiersData.popperOffsets.x += x;
1292
- state.modifiersData.popperOffsets.y += y;
1293
- }
1294
-
1295
- state.modifiersData[name] = data;
1296
- } // eslint-disable-next-line import/no-unused-modules
1297
-
1298
-
1299
- const offset$1 = {
1300
- name: 'offset',
1301
- enabled: true,
1302
- phase: 'main',
1303
- requires: ['popperOffsets'],
1304
- fn: offset
1305
- };
1306
-
1307
- function popperOffsets(_ref) {
1308
- var state = _ref.state,
1309
- name = _ref.name;
1310
- // Offsets are the actual position the popper needs to have to be
1311
- // properly positioned near its reference element
1312
- // This is the most basic placement, and will be adjusted by
1313
- // the modifiers in the next step
1314
- state.modifiersData[name] = computeOffsets({
1315
- reference: state.rects.reference,
1316
- element: state.rects.popper,
1317
- placement: state.placement
1318
- });
1319
- } // eslint-disable-next-line import/no-unused-modules
1320
-
1321
-
1322
- const popperOffsets$1 = {
1323
- name: 'popperOffsets',
1324
- enabled: true,
1325
- phase: 'read',
1326
- fn: popperOffsets,
1327
- data: {}
1328
- };
1329
-
1330
- function getAltAxis(axis) {
1331
- return axis === 'x' ? 'y' : 'x';
1332
- }
1333
-
1334
- function preventOverflow(_ref) {
1335
- var state = _ref.state,
1336
- options = _ref.options,
1337
- name = _ref.name;
1338
- var _options$mainAxis = options.mainAxis,
1339
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
1340
- _options$altAxis = options.altAxis,
1341
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
1342
- boundary = options.boundary,
1343
- rootBoundary = options.rootBoundary,
1344
- altBoundary = options.altBoundary,
1345
- padding = options.padding,
1346
- _options$tether = options.tether,
1347
- tether = _options$tether === void 0 ? true : _options$tether,
1348
- _options$tetherOffset = options.tetherOffset,
1349
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
1350
- var overflow = detectOverflow(state, {
1351
- boundary: boundary,
1352
- rootBoundary: rootBoundary,
1353
- padding: padding,
1354
- altBoundary: altBoundary
1355
- });
1356
- var basePlacement = getBasePlacement$1(state.placement);
1357
- var variation = getVariation(state.placement);
1358
- var isBasePlacement = !variation;
1359
- var mainAxis = getMainAxisFromPlacement(basePlacement);
1360
- var altAxis = getAltAxis(mainAxis);
1361
- var popperOffsets = state.modifiersData.popperOffsets;
1362
- var referenceRect = state.rects.reference;
1363
- var popperRect = state.rects.popper;
1364
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
1365
- placement: state.placement
1366
- })) : tetherOffset;
1367
- var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
1368
- mainAxis: tetherOffsetValue,
1369
- altAxis: tetherOffsetValue
1370
- } : Object.assign({
1371
- mainAxis: 0,
1372
- altAxis: 0
1373
- }, tetherOffsetValue);
1374
- var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
1375
- var data = {
1376
- x: 0,
1377
- y: 0
1378
- };
1379
-
1380
- if (!popperOffsets) {
1381
- return;
1382
- }
1383
-
1384
- if (checkMainAxis) {
1385
- var _offsetModifierState$;
1386
-
1387
- var mainSide = mainAxis === 'y' ? top : left;
1388
- var altSide = mainAxis === 'y' ? bottom : right;
1389
- var len = mainAxis === 'y' ? 'height' : 'width';
1390
- var offset = popperOffsets[mainAxis];
1391
- var min$1 = offset + overflow[mainSide];
1392
- var max$1 = offset - overflow[altSide];
1393
- var additive = tether ? -popperRect[len] / 2 : 0;
1394
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
1395
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
1396
- // outside the reference bounds
1397
-
1398
- var arrowElement = state.elements.arrow;
1399
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
1400
- width: 0,
1401
- height: 0
1402
- };
1403
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
1404
- var arrowPaddingMin = arrowPaddingObject[mainSide];
1405
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
1406
- // to include its full size in the calculation. If the reference is small
1407
- // and near the edge of a boundary, the popper can overflow even if the
1408
- // reference is not overflowing as well (e.g. virtual elements with no
1409
- // width or height)
1410
-
1411
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
1412
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
1413
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
1414
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
1415
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
1416
- var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
1417
- var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
1418
- var tetherMax = offset + maxOffset - offsetModifierValue;
1419
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
1420
- popperOffsets[mainAxis] = preventedOffset;
1421
- data[mainAxis] = preventedOffset - offset;
1422
- }
1423
-
1424
- if (checkAltAxis) {
1425
- var _offsetModifierState$2;
1426
-
1427
- var _mainSide = mainAxis === 'x' ? top : left;
1428
-
1429
- var _altSide = mainAxis === 'x' ? bottom : right;
1430
-
1431
- var _offset = popperOffsets[altAxis];
1432
-
1433
- var _len = altAxis === 'y' ? 'height' : 'width';
1434
-
1435
- var _min = _offset + overflow[_mainSide];
1436
-
1437
- var _max = _offset - overflow[_altSide];
1438
-
1439
- var isOriginSide = [top, left].indexOf(basePlacement) !== -1;
1440
-
1441
- var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
1442
-
1443
- var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
1444
-
1445
- var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
1446
-
1447
- var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
1448
-
1449
- popperOffsets[altAxis] = _preventedOffset;
1450
- data[altAxis] = _preventedOffset - _offset;
1451
- }
1452
-
1453
- state.modifiersData[name] = data;
1454
- } // eslint-disable-next-line import/no-unused-modules
1455
-
1456
-
1457
- const preventOverflow$1 = {
1458
- name: 'preventOverflow',
1459
- enabled: true,
1460
- phase: 'main',
1461
- fn: preventOverflow,
1462
- requiresIfExists: ['offset']
1463
- };
1464
-
1465
- function getHTMLElementScroll(element) {
1466
- return {
1467
- scrollLeft: element.scrollLeft,
1468
- scrollTop: element.scrollTop
1469
- };
1470
- }
1471
-
1472
- function getNodeScroll(node) {
1473
- if (node === getWindow(node) || !isHTMLElement(node)) {
1474
- return getWindowScroll(node);
1475
- } else {
1476
- return getHTMLElementScroll(node);
1477
- }
1478
- }
1479
-
1480
- function isElementScaled(element) {
1481
- var rect = element.getBoundingClientRect();
1482
- var scaleX = round(rect.width) / element.offsetWidth || 1;
1483
- var scaleY = round(rect.height) / element.offsetHeight || 1;
1484
- return scaleX !== 1 || scaleY !== 1;
1485
- } // Returns the composite rect of an element relative to its offsetParent.
1486
- // Composite means it takes into account transforms as well as layout.
1487
-
1488
-
1489
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
1490
- if (isFixed === void 0) {
1491
- isFixed = false;
1492
- }
1493
-
1494
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
1495
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
1496
- var documentElement = getDocumentElement(offsetParent);
1497
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
1498
- var scroll = {
1499
- scrollLeft: 0,
1500
- scrollTop: 0
1501
- };
1502
- var offsets = {
1503
- x: 0,
1504
- y: 0
1505
- };
1506
-
1507
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1508
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
1509
- isScrollParent(documentElement)) {
1510
- scroll = getNodeScroll(offsetParent);
1511
- }
1512
-
1513
- if (isHTMLElement(offsetParent)) {
1514
- offsets = getBoundingClientRect(offsetParent, true);
1515
- offsets.x += offsetParent.clientLeft;
1516
- offsets.y += offsetParent.clientTop;
1517
- } else if (documentElement) {
1518
- offsets.x = getWindowScrollBarX(documentElement);
1519
- }
1520
- }
1521
-
1522
- return {
1523
- x: rect.left + scroll.scrollLeft - offsets.x,
1524
- y: rect.top + scroll.scrollTop - offsets.y,
1525
- width: rect.width,
1526
- height: rect.height
1527
- };
1528
- }
1529
-
1530
- function order(modifiers) {
1531
- var map = new Map();
1532
- var visited = new Set();
1533
- var result = [];
1534
- modifiers.forEach(function (modifier) {
1535
- map.set(modifier.name, modifier);
1536
- }); // On visiting object, check for its dependencies and visit them recursively
1537
-
1538
- function sort(modifier) {
1539
- visited.add(modifier.name);
1540
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
1541
- requires.forEach(function (dep) {
1542
- if (!visited.has(dep)) {
1543
- var depModifier = map.get(dep);
1544
-
1545
- if (depModifier) {
1546
- sort(depModifier);
1547
- }
1548
- }
1549
- });
1550
- result.push(modifier);
1551
- }
1552
-
1553
- modifiers.forEach(function (modifier) {
1554
- if (!visited.has(modifier.name)) {
1555
- // check for visited object
1556
- sort(modifier);
1557
- }
1558
- });
1559
- return result;
1560
- }
1561
-
1562
- function orderModifiers(modifiers) {
1563
- // order based on dependencies
1564
- var orderedModifiers = order(modifiers); // order based on phase
1565
-
1566
- return modifierPhases.reduce(function (acc, phase) {
1567
- return acc.concat(orderedModifiers.filter(function (modifier) {
1568
- return modifier.phase === phase;
1569
- }));
1570
- }, []);
1571
- }
1572
-
1573
- function debounce$1(fn) {
1574
- var pending;
1575
- return function () {
1576
- if (!pending) {
1577
- pending = new Promise(function (resolve) {
1578
- Promise.resolve().then(function () {
1579
- pending = undefined;
1580
- resolve(fn());
1581
- });
1582
- });
1583
- }
1584
-
1585
- return pending;
1586
- };
1587
- }
1588
-
1589
- function mergeByName(modifiers) {
1590
- var merged = modifiers.reduce(function (merged, current) {
1591
- var existing = merged[current.name];
1592
- merged[current.name] = existing ? Object.assign({}, existing, current, {
1593
- options: Object.assign({}, existing.options, current.options),
1594
- data: Object.assign({}, existing.data, current.data)
1595
- }) : current;
1596
- return merged;
1597
- }, {}); // IE11 does not support Object.values
1598
-
1599
- return Object.keys(merged).map(function (key) {
1600
- return merged[key];
1601
- });
1602
- }
1603
-
1604
- var DEFAULT_OPTIONS = {
1605
- placement: 'bottom',
1606
- modifiers: [],
1607
- strategy: 'absolute'
1608
- };
1609
-
1610
- function areValidElements() {
1611
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1612
- args[_key] = arguments[_key];
1613
- }
1614
-
1615
- return !args.some(function (element) {
1616
- return !(element && typeof element.getBoundingClientRect === 'function');
1617
- });
1618
- }
1619
-
1620
- function popperGenerator(generatorOptions) {
1621
- if (generatorOptions === void 0) {
1622
- generatorOptions = {};
1623
- }
1624
-
1625
- var _generatorOptions = generatorOptions,
1626
- _generatorOptions$def = _generatorOptions.defaultModifiers,
1627
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
1628
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
1629
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
1630
- return function createPopper(reference, popper, options) {
1631
- if (options === void 0) {
1632
- options = defaultOptions;
1633
- }
1634
-
1635
- var state = {
1636
- placement: 'bottom',
1637
- orderedModifiers: [],
1638
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
1639
- modifiersData: {},
1640
- elements: {
1641
- reference: reference,
1642
- popper: popper
1643
- },
1644
- attributes: {},
1645
- styles: {}
1646
- };
1647
- var effectCleanupFns = [];
1648
- var isDestroyed = false;
1649
- var instance = {
1650
- state: state,
1651
- setOptions: function setOptions(setOptionsAction) {
1652
- var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
1653
- cleanupModifierEffects();
1654
- state.options = Object.assign({}, defaultOptions, state.options, options);
1655
- state.scrollParents = {
1656
- reference: isElement$1(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
1657
- popper: listScrollParents(popper)
1658
- }; // Orders the modifiers based on their dependencies and `phase`
1659
- // properties
1660
-
1661
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
1662
-
1663
- state.orderedModifiers = orderedModifiers.filter(function (m) {
1664
- return m.enabled;
1665
- });
1666
- runModifierEffects();
1667
- return instance.update();
1668
- },
1669
- // Sync update – it will always be executed, even if not necessary. This
1670
- // is useful for low frequency updates where sync behavior simplifies the
1671
- // logic.
1672
- // For high frequency updates (e.g. `resize` and `scroll` events), always
1673
- // prefer the async Popper#update method
1674
- forceUpdate: function forceUpdate() {
1675
- if (isDestroyed) {
1676
- return;
1677
- }
1678
-
1679
- var _state$elements = state.elements,
1680
- reference = _state$elements.reference,
1681
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
1682
- // anymore
1683
-
1684
- if (!areValidElements(reference, popper)) {
1685
- return;
1686
- } // Store the reference and popper rects to be read by modifiers
1687
-
1688
-
1689
- state.rects = {
1690
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
1691
- popper: getLayoutRect(popper)
1692
- }; // Modifiers have the ability to reset the current update cycle. The
1693
- // most common use case for this is the `flip` modifier changing the
1694
- // placement, which then needs to re-run all the modifiers, because the
1695
- // logic was previously ran for the previous placement and is therefore
1696
- // stale/incorrect
1697
-
1698
- state.reset = false;
1699
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
1700
- // is filled with the initial data specified by the modifier. This means
1701
- // it doesn't persist and is fresh on each update.
1702
- // To ensure persistent data, use `${name}#persistent`
1703
-
1704
- state.orderedModifiers.forEach(function (modifier) {
1705
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1706
- });
1707
-
1708
- for (var index = 0; index < state.orderedModifiers.length; index++) {
1709
- if (state.reset === true) {
1710
- state.reset = false;
1711
- index = -1;
1712
- continue;
1713
- }
1714
-
1715
- var _state$orderedModifie = state.orderedModifiers[index],
1716
- fn = _state$orderedModifie.fn,
1717
- _state$orderedModifie2 = _state$orderedModifie.options,
1718
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
1719
- name = _state$orderedModifie.name;
1720
-
1721
- if (typeof fn === 'function') {
1722
- state = fn({
1723
- state: state,
1724
- options: _options,
1725
- name: name,
1726
- instance: instance
1727
- }) || state;
1728
- }
1729
- }
1730
- },
1731
- // Async and optimistically optimized update – it will not be executed if
1732
- // not necessary (debounced to run at most once-per-tick)
1733
- update: debounce$1(function () {
1734
- return new Promise(function (resolve) {
1735
- instance.forceUpdate();
1736
- resolve(state);
1737
- });
1738
- }),
1739
- destroy: function destroy() {
1740
- cleanupModifierEffects();
1741
- isDestroyed = true;
1742
- }
1743
- };
1744
-
1745
- if (!areValidElements(reference, popper)) {
1746
- return instance;
1747
- }
1748
-
1749
- instance.setOptions(options).then(function (state) {
1750
- if (!isDestroyed && options.onFirstUpdate) {
1751
- options.onFirstUpdate(state);
1752
- }
1753
- }); // Modifiers have the ability to execute arbitrary code before the first
1754
- // update cycle runs. They will be executed in the same order as the update
1755
- // cycle. This is useful when a modifier adds some persistent data that
1756
- // other modifiers need to use, but the modifier is run after the dependent
1757
- // one.
1758
-
1759
- function runModifierEffects() {
1760
- state.orderedModifiers.forEach(function (_ref) {
1761
- var name = _ref.name,
1762
- _ref$options = _ref.options,
1763
- options = _ref$options === void 0 ? {} : _ref$options,
1764
- effect = _ref.effect;
1765
-
1766
- if (typeof effect === 'function') {
1767
- var cleanupFn = effect({
1768
- state: state,
1769
- name: name,
1770
- instance: instance,
1771
- options: options
1772
- });
1773
-
1774
- var noopFn = function noopFn() {};
1775
-
1776
- effectCleanupFns.push(cleanupFn || noopFn);
1777
- }
1778
- });
1779
- }
1780
-
1781
- function cleanupModifierEffects() {
1782
- effectCleanupFns.forEach(function (fn) {
1783
- return fn();
1784
- });
1785
- effectCleanupFns = [];
1786
- }
1787
-
1788
- return instance;
1789
- };
1790
- }
1791
-
1792
- var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
1793
- var createPopper = /*#__PURE__*/popperGenerator({
1794
- defaultModifiers: defaultModifiers
1795
- }); // eslint-disable-next-line import/no-unused-modules
1796
-
1797
- /**!
1798
- * tippy.js v6.3.7
1799
- * (c) 2017-2021 atomiks
1800
- * MIT License
1801
- */
1802
- var BOX_CLASS = "tippy-box";
1803
- var CONTENT_CLASS = "tippy-content";
1804
- var BACKDROP_CLASS = "tippy-backdrop";
1805
- var ARROW_CLASS = "tippy-arrow";
1806
- var SVG_ARROW_CLASS = "tippy-svg-arrow";
1807
- var TOUCH_OPTIONS = {
1808
- passive: true,
1809
- capture: true
1810
- };
1811
- var TIPPY_DEFAULT_APPEND_TO = function TIPPY_DEFAULT_APPEND_TO() {
1812
- return document.body;
1813
- };
1814
-
1815
- function hasOwnProperty(obj, key) {
1816
- return {}.hasOwnProperty.call(obj, key);
1817
- }
1818
- function getValueAtIndexOrReturn(value, index, defaultValue) {
1819
- if (Array.isArray(value)) {
1820
- var v = value[index];
1821
- return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
1822
- }
1823
-
1824
- return value;
1825
- }
1826
- function isType(value, type) {
1827
- var str = {}.toString.call(value);
1828
- return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
1829
- }
1830
- function invokeWithArgsOrReturn(value, args) {
1831
- return typeof value === 'function' ? value.apply(void 0, args) : value;
1832
- }
1833
- function debounce(fn, ms) {
1834
- // Avoid wrapping in `setTimeout` if ms is 0 anyway
1835
- if (ms === 0) {
1836
- return fn;
1837
- }
1838
-
1839
- var timeout;
1840
- return function (arg) {
1841
- clearTimeout(timeout);
1842
- timeout = setTimeout(function () {
1843
- fn(arg);
1844
- }, ms);
1845
- };
1846
- }
1847
- function removeProperties(obj, keys) {
1848
- var clone = Object.assign({}, obj);
1849
- keys.forEach(function (key) {
1850
- delete clone[key];
1851
- });
1852
- return clone;
1853
- }
1854
- function splitBySpaces(value) {
1855
- return value.split(/\s+/).filter(Boolean);
1856
- }
1857
- function normalizeToArray(value) {
1858
- return [].concat(value);
1859
- }
1860
- function pushIfUnique(arr, value) {
1861
- if (arr.indexOf(value) === -1) {
1862
- arr.push(value);
1863
- }
1864
- }
1865
- function unique(arr) {
1866
- return arr.filter(function (item, index) {
1867
- return arr.indexOf(item) === index;
1868
- });
1869
- }
1870
- function getBasePlacement(placement) {
1871
- return placement.split('-')[0];
1872
- }
1873
- function arrayFrom(value) {
1874
- return [].slice.call(value);
1875
- }
1876
- function removeUndefinedProps(obj) {
1877
- return Object.keys(obj).reduce(function (acc, key) {
1878
- if (obj[key] !== undefined) {
1879
- acc[key] = obj[key];
1880
- }
1881
-
1882
- return acc;
1883
- }, {});
1884
- }
1885
-
1886
- function div() {
1887
- return document.createElement('div');
1888
- }
1889
- function isElement(value) {
1890
- return ['Element', 'Fragment'].some(function (type) {
1891
- return isType(value, type);
1892
- });
1893
- }
1894
- function isNodeList(value) {
1895
- return isType(value, 'NodeList');
1896
- }
1897
- function isMouseEvent(value) {
1898
- return isType(value, 'MouseEvent');
1899
- }
1900
- function isReferenceElement(value) {
1901
- return !!(value && value._tippy && value._tippy.reference === value);
1902
- }
1903
- function getArrayOfElements(value) {
1904
- if (isElement(value)) {
1905
- return [value];
1906
- }
1907
-
1908
- if (isNodeList(value)) {
1909
- return arrayFrom(value);
1910
- }
1911
-
1912
- if (Array.isArray(value)) {
1913
- return value;
1914
- }
1915
-
1916
- return arrayFrom(document.querySelectorAll(value));
1917
- }
1918
- function setTransitionDuration(els, value) {
1919
- els.forEach(function (el) {
1920
- if (el) {
1921
- el.style.transitionDuration = value + "ms";
1922
- }
1923
- });
1924
- }
1925
- function setVisibilityState(els, state) {
1926
- els.forEach(function (el) {
1927
- if (el) {
1928
- el.setAttribute('data-state', state);
1929
- }
1930
- });
1931
- }
1932
- function getOwnerDocument(elementOrElements) {
1933
- var _element$ownerDocumen;
1934
-
1935
- var _normalizeToArray = normalizeToArray(elementOrElements),
1936
- element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
1937
-
1938
-
1939
- return element != null && (_element$ownerDocumen = element.ownerDocument) != null && _element$ownerDocumen.body ? element.ownerDocument : document;
1940
- }
1941
- function isCursorOutsideInteractiveBorder(popperTreeData, event) {
1942
- var clientX = event.clientX,
1943
- clientY = event.clientY;
1944
- return popperTreeData.every(function (_ref) {
1945
- var popperRect = _ref.popperRect,
1946
- popperState = _ref.popperState,
1947
- props = _ref.props;
1948
- var interactiveBorder = props.interactiveBorder;
1949
- var basePlacement = getBasePlacement(popperState.placement);
1950
- var offsetData = popperState.modifiersData.offset;
1951
-
1952
- if (!offsetData) {
1953
- return true;
1954
- }
1955
-
1956
- var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
1957
- var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
1958
- var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
1959
- var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
1960
- var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
1961
- var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
1962
- var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
1963
- var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
1964
- return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
1965
- });
1966
- }
1967
- function updateTransitionEndListener(box, action, listener) {
1968
- var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
1969
- // `webkitTransitionEnd`...
1970
-
1971
- ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
1972
- box[method](event, listener);
1973
- });
1974
- }
1975
- /**
1976
- * Compared to xxx.contains, this function works for dom structures with shadow
1977
- * dom
1978
- */
1979
-
1980
- function actualContains(parent, child) {
1981
- var target = child;
1982
-
1983
- while (target) {
1984
- var _target$getRootNode;
1985
-
1986
- if (parent.contains(target)) {
1987
- return true;
1988
- }
1989
-
1990
- target = target.getRootNode == null ? void 0 : (_target$getRootNode = target.getRootNode()) == null ? void 0 : _target$getRootNode.host;
1991
- }
1992
-
1993
- return false;
1994
- }
1995
-
1996
- var currentInput = {
1997
- isTouch: false
1998
- };
1999
- var lastMouseMoveTime = 0;
2000
- /**
2001
- * When a `touchstart` event is fired, it's assumed the user is using touch
2002
- * input. We'll bind a `mousemove` event listener to listen for mouse input in
2003
- * the future. This way, the `isTouch` property is fully dynamic and will handle
2004
- * hybrid devices that use a mix of touch + mouse input.
2005
- */
2006
-
2007
- function onDocumentTouchStart() {
2008
- if (currentInput.isTouch) {
2009
- return;
2010
- }
2011
-
2012
- currentInput.isTouch = true;
2013
-
2014
- if (window.performance) {
2015
- document.addEventListener('mousemove', onDocumentMouseMove);
2016
- }
2017
- }
2018
- /**
2019
- * When two `mousemove` event are fired consecutively within 20ms, it's assumed
2020
- * the user is using mouse input again. `mousemove` can fire on touch devices as
2021
- * well, but very rarely that quickly.
2022
- */
2023
-
2024
- function onDocumentMouseMove() {
2025
- var now = performance.now();
2026
-
2027
- if (now - lastMouseMoveTime < 20) {
2028
- currentInput.isTouch = false;
2029
- document.removeEventListener('mousemove', onDocumentMouseMove);
2030
- }
2031
-
2032
- lastMouseMoveTime = now;
2033
- }
2034
- /**
2035
- * When an element is in focus and has a tippy, leaving the tab/window and
2036
- * returning causes it to show again. For mouse users this is unexpected, but
2037
- * for keyboard use it makes sense.
2038
- * TODO: find a better technique to solve this problem
2039
- */
2040
-
2041
- function onWindowBlur() {
2042
- var activeElement = document.activeElement;
2043
-
2044
- if (isReferenceElement(activeElement)) {
2045
- var instance = activeElement._tippy;
2046
-
2047
- if (activeElement.blur && !instance.state.isVisible) {
2048
- activeElement.blur();
2049
- }
2050
- }
2051
- }
2052
- function bindGlobalEventListeners() {
2053
- document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
2054
- window.addEventListener('blur', onWindowBlur);
2055
- }
2056
-
2057
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
2058
- var isIE11 = isBrowser ? // @ts-ignore
2059
- !!window.msCrypto : false;
2060
-
2061
- function createMemoryLeakWarning(method) {
2062
- var txt = method === 'destroy' ? 'n already-' : ' ';
2063
- return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
2064
- }
2065
- function clean(value) {
2066
- var spacesAndTabs = /[ \t]{2,}/g;
2067
- var lineStartWithSpaces = /^[ \t]*/gm;
2068
- return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
2069
- }
2070
-
2071
- function getDevMessage(message) {
2072
- return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
2073
- }
2074
-
2075
- function getFormattedMessage(message) {
2076
- return [getDevMessage(message), // title
2077
- 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
2078
- 'line-height: 1.5', // footer
2079
- 'color: #a6a095;'];
2080
- } // Assume warnings and errors never have the same message
2081
-
2082
- var visitedMessages;
2083
-
2084
- if (process.env.NODE_ENV !== "production") {
2085
- resetVisitedMessages();
2086
- }
2087
-
2088
- function resetVisitedMessages() {
2089
- visitedMessages = new Set();
2090
- }
2091
- function warnWhen(condition, message) {
2092
- if (condition && !visitedMessages.has(message)) {
2093
- var _console;
2094
-
2095
- visitedMessages.add(message);
2096
-
2097
- (_console = console).warn.apply(_console, getFormattedMessage(message));
2098
- }
2099
- }
2100
- function errorWhen(condition, message) {
2101
- if (condition && !visitedMessages.has(message)) {
2102
- var _console2;
2103
-
2104
- visitedMessages.add(message);
2105
-
2106
- (_console2 = console).error.apply(_console2, getFormattedMessage(message));
2107
- }
2108
- }
2109
- function validateTargets(targets) {
2110
- var didPassFalsyValue = !targets;
2111
- var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
2112
- errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
2113
- errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
2114
- }
2115
-
2116
- var pluginProps = {
2117
- animateFill: false,
2118
- followCursor: false,
2119
- inlinePositioning: false,
2120
- sticky: false
2121
- };
2122
- var renderProps = {
2123
- allowHTML: false,
2124
- animation: 'fade',
2125
- arrow: true,
2126
- content: '',
2127
- inertia: false,
2128
- maxWidth: 350,
2129
- role: 'tooltip',
2130
- theme: '',
2131
- zIndex: 9999
2132
- };
2133
- var defaultProps = Object.assign({
2134
- appendTo: TIPPY_DEFAULT_APPEND_TO,
2135
- aria: {
2136
- content: 'auto',
2137
- expanded: 'auto'
2138
- },
2139
- delay: 0,
2140
- duration: [300, 250],
2141
- getReferenceClientRect: null,
2142
- hideOnClick: true,
2143
- ignoreAttributes: false,
2144
- interactive: false,
2145
- interactiveBorder: 2,
2146
- interactiveDebounce: 0,
2147
- moveTransition: '',
2148
- offset: [0, 10],
2149
- onAfterUpdate: function onAfterUpdate() {},
2150
- onBeforeUpdate: function onBeforeUpdate() {},
2151
- onCreate: function onCreate() {},
2152
- onDestroy: function onDestroy() {},
2153
- onHidden: function onHidden() {},
2154
- onHide: function onHide() {},
2155
- onMount: function onMount() {},
2156
- onShow: function onShow() {},
2157
- onShown: function onShown() {},
2158
- onTrigger: function onTrigger() {},
2159
- onUntrigger: function onUntrigger() {},
2160
- onClickOutside: function onClickOutside() {},
2161
- placement: 'top',
2162
- plugins: [],
2163
- popperOptions: {},
2164
- render: null,
2165
- showOnCreate: false,
2166
- touch: true,
2167
- trigger: 'mouseenter focus',
2168
- triggerTarget: null
2169
- }, pluginProps, renderProps);
2170
- var defaultKeys = Object.keys(defaultProps);
2171
- var setDefaultProps = function setDefaultProps(partialProps) {
2172
- /* istanbul ignore else */
2173
- if (process.env.NODE_ENV !== "production") {
2174
- validateProps(partialProps, []);
2175
- }
2176
-
2177
- var keys = Object.keys(partialProps);
2178
- keys.forEach(function (key) {
2179
- defaultProps[key] = partialProps[key];
2180
- });
2181
- };
2182
- function getExtendedPassedProps(passedProps) {
2183
- var plugins = passedProps.plugins || [];
2184
- var pluginProps = plugins.reduce(function (acc, plugin) {
2185
- var name = plugin.name,
2186
- defaultValue = plugin.defaultValue;
2187
-
2188
- if (name) {
2189
- var _name;
2190
-
2191
- acc[name] = passedProps[name] !== undefined ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
2192
- }
2193
-
2194
- return acc;
2195
- }, {});
2196
- return Object.assign({}, passedProps, pluginProps);
2197
- }
2198
- function getDataAttributeProps(reference, plugins) {
2199
- var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
2200
- plugins: plugins
2201
- }))) : defaultKeys;
2202
- var props = propKeys.reduce(function (acc, key) {
2203
- var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
2204
-
2205
- if (!valueAsString) {
2206
- return acc;
2207
- }
2208
-
2209
- if (key === 'content') {
2210
- acc[key] = valueAsString;
2211
- } else {
2212
- try {
2213
- acc[key] = JSON.parse(valueAsString);
2214
- } catch (e) {
2215
- acc[key] = valueAsString;
2216
- }
2217
- }
2218
-
2219
- return acc;
2220
- }, {});
2221
- return props;
2222
- }
2223
- function evaluateProps(reference, props) {
2224
- var out = Object.assign({}, props, {
2225
- content: invokeWithArgsOrReturn(props.content, [reference])
2226
- }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
2227
- out.aria = Object.assign({}, defaultProps.aria, out.aria);
2228
- out.aria = {
2229
- expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
2230
- content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
2231
- };
2232
- return out;
2233
- }
2234
- function validateProps(partialProps, plugins) {
2235
- if (partialProps === void 0) {
2236
- partialProps = {};
2237
- }
2238
-
2239
- if (plugins === void 0) {
2240
- plugins = [];
2241
- }
2242
-
2243
- var keys = Object.keys(partialProps);
2244
- keys.forEach(function (prop) {
2245
- var nonPluginProps = removeProperties(defaultProps, Object.keys(pluginProps));
2246
- var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
2247
-
2248
- if (didPassUnknownProp) {
2249
- didPassUnknownProp = plugins.filter(function (plugin) {
2250
- return plugin.name === prop;
2251
- }).length === 0;
2252
- }
2253
-
2254
- warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
2255
- });
2256
- }
2257
-
2258
- var innerHTML = function innerHTML() {
2259
- return 'innerHTML';
2260
- };
2261
-
2262
- function dangerouslySetInnerHTML(element, html) {
2263
- element[innerHTML()] = html;
2264
- }
2265
-
2266
- function createArrowElement(value) {
2267
- var arrow = div();
2268
-
2269
- if (value === true) {
2270
- arrow.className = ARROW_CLASS;
2271
- } else {
2272
- arrow.className = SVG_ARROW_CLASS;
2273
-
2274
- if (isElement(value)) {
2275
- arrow.appendChild(value);
2276
- } else {
2277
- dangerouslySetInnerHTML(arrow, value);
2278
- }
2279
- }
2280
-
2281
- return arrow;
2282
- }
2283
-
2284
- function setContent(content, props) {
2285
- if (isElement(props.content)) {
2286
- dangerouslySetInnerHTML(content, '');
2287
- content.appendChild(props.content);
2288
- } else if (typeof props.content !== 'function') {
2289
- if (props.allowHTML) {
2290
- dangerouslySetInnerHTML(content, props.content);
2291
- } else {
2292
- content.textContent = props.content;
2293
- }
2294
- }
2295
- }
2296
- function getChildren(popper) {
2297
- var box = popper.firstElementChild;
2298
- var boxChildren = arrayFrom(box.children);
2299
- return {
2300
- box: box,
2301
- content: boxChildren.find(function (node) {
2302
- return node.classList.contains(CONTENT_CLASS);
2303
- }),
2304
- arrow: boxChildren.find(function (node) {
2305
- return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
2306
- }),
2307
- backdrop: boxChildren.find(function (node) {
2308
- return node.classList.contains(BACKDROP_CLASS);
2309
- })
2310
- };
2311
- }
2312
- function render(instance) {
2313
- var popper = div();
2314
- var box = div();
2315
- box.className = BOX_CLASS;
2316
- box.setAttribute('data-state', 'hidden');
2317
- box.setAttribute('tabindex', '-1');
2318
- var content = div();
2319
- content.className = CONTENT_CLASS;
2320
- content.setAttribute('data-state', 'hidden');
2321
- setContent(content, instance.props);
2322
- popper.appendChild(box);
2323
- box.appendChild(content);
2324
- onUpdate(instance.props, instance.props);
2325
-
2326
- function onUpdate(prevProps, nextProps) {
2327
- var _getChildren = getChildren(popper),
2328
- box = _getChildren.box,
2329
- content = _getChildren.content,
2330
- arrow = _getChildren.arrow;
2331
-
2332
- if (nextProps.theme) {
2333
- box.setAttribute('data-theme', nextProps.theme);
2334
- } else {
2335
- box.removeAttribute('data-theme');
2336
- }
2337
-
2338
- if (typeof nextProps.animation === 'string') {
2339
- box.setAttribute('data-animation', nextProps.animation);
2340
- } else {
2341
- box.removeAttribute('data-animation');
2342
- }
2343
-
2344
- if (nextProps.inertia) {
2345
- box.setAttribute('data-inertia', '');
2346
- } else {
2347
- box.removeAttribute('data-inertia');
2348
- }
2349
-
2350
- box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
2351
-
2352
- if (nextProps.role) {
2353
- box.setAttribute('role', nextProps.role);
2354
- } else {
2355
- box.removeAttribute('role');
2356
- }
2357
-
2358
- if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
2359
- setContent(content, instance.props);
2360
- }
2361
-
2362
- if (nextProps.arrow) {
2363
- if (!arrow) {
2364
- box.appendChild(createArrowElement(nextProps.arrow));
2365
- } else if (prevProps.arrow !== nextProps.arrow) {
2366
- box.removeChild(arrow);
2367
- box.appendChild(createArrowElement(nextProps.arrow));
2368
- }
2369
- } else if (arrow) {
2370
- box.removeChild(arrow);
2371
- }
2372
- }
2373
-
2374
- return {
2375
- popper: popper,
2376
- onUpdate: onUpdate
2377
- };
2378
- } // Runtime check to identify if the render function is the default one; this
2379
- // way we can apply default CSS transitions logic and it can be tree-shaken away
2380
-
2381
- render.$$tippy = true;
2382
-
2383
- var idCounter = 1;
2384
- var mouseMoveListeners = []; // Used by `hideAll()`
2385
-
2386
- var mountedInstances = [];
2387
- function createTippy(reference, passedProps) {
2388
- var props = evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
2389
- // 🔒 Private members
2390
- // ===========================================================================
2391
-
2392
- var showTimeout;
2393
- var hideTimeout;
2394
- var scheduleHideAnimationFrame;
2395
- var isVisibleFromClick = false;
2396
- var didHideDueToDocumentMouseDown = false;
2397
- var didTouchMove = false;
2398
- var ignoreOnFirstUpdate = false;
2399
- var lastTriggerEvent;
2400
- var currentTransitionEndListener;
2401
- var onFirstUpdate;
2402
- var listeners = [];
2403
- var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
2404
- var currentTarget; // ===========================================================================
2405
- // 🔑 Public members
2406
- // ===========================================================================
2407
-
2408
- var id = idCounter++;
2409
- var popperInstance = null;
2410
- var plugins = unique(props.plugins);
2411
- var state = {
2412
- // Is the instance currently enabled?
2413
- isEnabled: true,
2414
- // Is the tippy currently showing and not transitioning out?
2415
- isVisible: false,
2416
- // Has the instance been destroyed?
2417
- isDestroyed: false,
2418
- // Is the tippy currently mounted to the DOM?
2419
- isMounted: false,
2420
- // Has the tippy finished transitioning in?
2421
- isShown: false
2422
- };
2423
- var instance = {
2424
- // properties
2425
- id: id,
2426
- reference: reference,
2427
- popper: div(),
2428
- popperInstance: popperInstance,
2429
- props: props,
2430
- state: state,
2431
- plugins: plugins,
2432
- // methods
2433
- clearDelayTimeouts: clearDelayTimeouts,
2434
- setProps: setProps,
2435
- setContent: setContent,
2436
- show: show,
2437
- hide: hide,
2438
- hideWithInteractivity: hideWithInteractivity,
2439
- enable: enable,
2440
- disable: disable,
2441
- unmount: unmount,
2442
- destroy: destroy
2443
- }; // TODO: Investigate why this early return causes a TDZ error in the tests —
2444
- // it doesn't seem to happen in the browser
2445
-
2446
- /* istanbul ignore if */
2447
-
2448
- if (!props.render) {
2449
- if (process.env.NODE_ENV !== "production") {
2450
- errorWhen(true, 'render() function has not been supplied.');
2451
- }
2452
-
2453
- return instance;
2454
- } // ===========================================================================
2455
- // Initial mutations
2456
- // ===========================================================================
2457
-
2458
-
2459
- var _props$render = props.render(instance),
2460
- popper = _props$render.popper,
2461
- onUpdate = _props$render.onUpdate;
2462
-
2463
- popper.setAttribute('data-tippy-root', '');
2464
- popper.id = "tippy-" + instance.id;
2465
- instance.popper = popper;
2466
- reference._tippy = instance;
2467
- popper._tippy = instance;
2468
- var pluginsHooks = plugins.map(function (plugin) {
2469
- return plugin.fn(instance);
2470
- });
2471
- var hasAriaExpanded = reference.hasAttribute('aria-expanded');
2472
- addListeners();
2473
- handleAriaExpandedAttribute();
2474
- handleStyles();
2475
- invokeHook('onCreate', [instance]);
2476
-
2477
- if (props.showOnCreate) {
2478
- scheduleShow();
2479
- } // Prevent a tippy with a delay from hiding if the cursor left then returned
2480
- // before it started hiding
2481
-
2482
-
2483
- popper.addEventListener('mouseenter', function () {
2484
- if (instance.props.interactive && instance.state.isVisible) {
2485
- instance.clearDelayTimeouts();
2486
- }
2487
- });
2488
- popper.addEventListener('mouseleave', function () {
2489
- if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
2490
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
2491
- }
2492
- });
2493
- return instance; // ===========================================================================
2494
- // 🔒 Private methods
2495
- // ===========================================================================
2496
-
2497
- function getNormalizedTouchSettings() {
2498
- var touch = instance.props.touch;
2499
- return Array.isArray(touch) ? touch : [touch, 0];
2500
- }
2501
-
2502
- function getIsCustomTouchBehavior() {
2503
- return getNormalizedTouchSettings()[0] === 'hold';
2504
- }
2505
-
2506
- function getIsDefaultRenderFn() {
2507
- var _instance$props$rende;
2508
-
2509
- // @ts-ignore
2510
- return !!((_instance$props$rende = instance.props.render) != null && _instance$props$rende.$$tippy);
2511
- }
2512
-
2513
- function getCurrentTarget() {
2514
- return currentTarget || reference;
2515
- }
2516
-
2517
- function getDocument() {
2518
- var parent = getCurrentTarget().parentNode;
2519
- return parent ? getOwnerDocument(parent) : document;
2520
- }
2521
-
2522
- function getDefaultTemplateChildren() {
2523
- return getChildren(popper);
2524
- }
2525
-
2526
- function getDelay(isShow) {
2527
- // For touch or keyboard input, force `0` delay for UX reasons
2528
- // Also if the instance is mounted but not visible (transitioning out),
2529
- // ignore delay
2530
- if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
2531
- return 0;
2532
- }
2533
-
2534
- return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
2535
- }
2536
-
2537
- function handleStyles(fromHide) {
2538
- if (fromHide === void 0) {
2539
- fromHide = false;
2540
- }
2541
-
2542
- popper.style.pointerEvents = instance.props.interactive && !fromHide ? '' : 'none';
2543
- popper.style.zIndex = "" + instance.props.zIndex;
2544
- }
2545
-
2546
- function invokeHook(hook, args, shouldInvokePropsHook) {
2547
- if (shouldInvokePropsHook === void 0) {
2548
- shouldInvokePropsHook = true;
2549
- }
2550
-
2551
- pluginsHooks.forEach(function (pluginHooks) {
2552
- if (pluginHooks[hook]) {
2553
- pluginHooks[hook].apply(pluginHooks, args);
2554
- }
2555
- });
2556
-
2557
- if (shouldInvokePropsHook) {
2558
- var _instance$props;
2559
-
2560
- (_instance$props = instance.props)[hook].apply(_instance$props, args);
2561
- }
2562
- }
2563
-
2564
- function handleAriaContentAttribute() {
2565
- var aria = instance.props.aria;
2566
-
2567
- if (!aria.content) {
2568
- return;
2569
- }
2570
-
2571
- var attr = "aria-" + aria.content;
2572
- var id = popper.id;
2573
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
2574
- nodes.forEach(function (node) {
2575
- var currentValue = node.getAttribute(attr);
2576
-
2577
- if (instance.state.isVisible) {
2578
- node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
2579
- } else {
2580
- var nextValue = currentValue && currentValue.replace(id, '').trim();
2581
-
2582
- if (nextValue) {
2583
- node.setAttribute(attr, nextValue);
2584
- } else {
2585
- node.removeAttribute(attr);
2586
- }
2587
- }
2588
- });
2589
- }
2590
-
2591
- function handleAriaExpandedAttribute() {
2592
- if (hasAriaExpanded || !instance.props.aria.expanded) {
2593
- return;
2594
- }
2595
-
2596
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
2597
- nodes.forEach(function (node) {
2598
- if (instance.props.interactive) {
2599
- node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
2600
- } else {
2601
- node.removeAttribute('aria-expanded');
2602
- }
2603
- });
2604
- }
2605
-
2606
- function cleanupInteractiveMouseListeners() {
2607
- getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
2608
- mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
2609
- return listener !== debouncedOnMouseMove;
2610
- });
2611
- }
2612
-
2613
- function onDocumentPress(event) {
2614
- // Moved finger to scroll instead of an intentional tap outside
2615
- if (currentInput.isTouch) {
2616
- if (didTouchMove || event.type === 'mousedown') {
2617
- return;
2618
- }
2619
- }
2620
-
2621
- var actualTarget = event.composedPath && event.composedPath()[0] || event.target; // Clicked on interactive popper
2622
-
2623
- if (instance.props.interactive && actualContains(popper, actualTarget)) {
2624
- return;
2625
- } // Clicked on the event listeners target
2626
-
2627
-
2628
- if (normalizeToArray(instance.props.triggerTarget || reference).some(function (el) {
2629
- return actualContains(el, actualTarget);
2630
- })) {
2631
- if (currentInput.isTouch) {
2632
- return;
2633
- }
2634
-
2635
- if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
2636
- return;
2637
- }
2638
- } else {
2639
- invokeHook('onClickOutside', [instance, event]);
2640
- }
2641
-
2642
- if (instance.props.hideOnClick === true) {
2643
- instance.clearDelayTimeouts();
2644
- instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
2645
- // currentTarget. This lets a tippy with `focus` trigger know that it
2646
- // should not show
2647
-
2648
- didHideDueToDocumentMouseDown = true;
2649
- setTimeout(function () {
2650
- didHideDueToDocumentMouseDown = false;
2651
- }); // The listener gets added in `scheduleShow()`, but this may be hiding it
2652
- // before it shows, and hide()'s early bail-out behavior can prevent it
2653
- // from being cleaned up
2654
-
2655
- if (!instance.state.isMounted) {
2656
- removeDocumentPress();
2657
- }
2658
- }
2659
- }
2660
-
2661
- function onTouchMove() {
2662
- didTouchMove = true;
2663
- }
2664
-
2665
- function onTouchStart() {
2666
- didTouchMove = false;
2667
- }
2668
-
2669
- function addDocumentPress() {
2670
- var doc = getDocument();
2671
- doc.addEventListener('mousedown', onDocumentPress, true);
2672
- doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
2673
- doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
2674
- doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
2675
- }
2676
-
2677
- function removeDocumentPress() {
2678
- var doc = getDocument();
2679
- doc.removeEventListener('mousedown', onDocumentPress, true);
2680
- doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
2681
- doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
2682
- doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
2683
- }
2684
-
2685
- function onTransitionedOut(duration, callback) {
2686
- onTransitionEnd(duration, function () {
2687
- if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
2688
- callback();
2689
- }
2690
- });
2691
- }
2692
-
2693
- function onTransitionedIn(duration, callback) {
2694
- onTransitionEnd(duration, callback);
2695
- }
2696
-
2697
- function onTransitionEnd(duration, callback) {
2698
- var box = getDefaultTemplateChildren().box;
2699
-
2700
- function listener(event) {
2701
- if (event.target === box) {
2702
- updateTransitionEndListener(box, 'remove', listener);
2703
- callback();
2704
- }
2705
- } // Make callback synchronous if duration is 0
2706
- // `transitionend` won't fire otherwise
2707
-
2708
-
2709
- if (duration === 0) {
2710
- return callback();
2711
- }
2712
-
2713
- updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
2714
- updateTransitionEndListener(box, 'add', listener);
2715
- currentTransitionEndListener = listener;
2716
- }
2717
-
2718
- function on(eventType, handler, options) {
2719
- if (options === void 0) {
2720
- options = false;
2721
- }
2722
-
2723
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
2724
- nodes.forEach(function (node) {
2725
- node.addEventListener(eventType, handler, options);
2726
- listeners.push({
2727
- node: node,
2728
- eventType: eventType,
2729
- handler: handler,
2730
- options: options
2731
- });
2732
- });
2733
- }
2734
-
2735
- function addListeners() {
2736
- if (getIsCustomTouchBehavior()) {
2737
- on('touchstart', onTrigger, {
2738
- passive: true
2739
- });
2740
- on('touchend', onMouseLeave, {
2741
- passive: true
2742
- });
2743
- }
2744
-
2745
- splitBySpaces(instance.props.trigger).forEach(function (eventType) {
2746
- if (eventType === 'manual') {
2747
- return;
2748
- }
2749
-
2750
- on(eventType, onTrigger);
2751
-
2752
- switch (eventType) {
2753
- case 'mouseenter':
2754
- on('mouseleave', onMouseLeave);
2755
- break;
2756
-
2757
- case 'focus':
2758
- on(isIE11 ? 'focusout' : 'blur', onBlurOrFocusOut);
2759
- break;
2760
-
2761
- case 'focusin':
2762
- on('focusout', onBlurOrFocusOut);
2763
- break;
2764
- }
2765
- });
2766
- }
2767
-
2768
- function removeListeners() {
2769
- listeners.forEach(function (_ref) {
2770
- var node = _ref.node,
2771
- eventType = _ref.eventType,
2772
- handler = _ref.handler,
2773
- options = _ref.options;
2774
- node.removeEventListener(eventType, handler, options);
2775
- });
2776
- listeners = [];
2777
- }
2778
-
2779
- function onTrigger(event) {
2780
- var _lastTriggerEvent;
2781
-
2782
- var shouldScheduleClickHide = false;
2783
-
2784
- if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
2785
- return;
2786
- }
2787
-
2788
- var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
2789
- lastTriggerEvent = event;
2790
- currentTarget = event.currentTarget;
2791
- handleAriaExpandedAttribute();
2792
-
2793
- if (!instance.state.isVisible && isMouseEvent(event)) {
2794
- // If scrolling, `mouseenter` events can be fired if the cursor lands
2795
- // over a new target, but `mousemove` events don't get fired. This
2796
- // causes interactive tooltips to get stuck open until the cursor is
2797
- // moved
2798
- mouseMoveListeners.forEach(function (listener) {
2799
- return listener(event);
2800
- });
2801
- } // Toggle show/hide when clicking click-triggered tooltips
2802
-
2803
-
2804
- if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
2805
- shouldScheduleClickHide = true;
2806
- } else {
2807
- scheduleShow(event);
2808
- }
2809
-
2810
- if (event.type === 'click') {
2811
- isVisibleFromClick = !shouldScheduleClickHide;
2812
- }
2813
-
2814
- if (shouldScheduleClickHide && !wasFocused) {
2815
- scheduleHide(event);
2816
- }
2817
- }
2818
-
2819
- function onMouseMove(event) {
2820
- var target = event.target;
2821
- var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
2822
-
2823
- if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
2824
- return;
2825
- }
2826
-
2827
- var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
2828
- var _instance$popperInsta;
2829
-
2830
- var instance = popper._tippy;
2831
- var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
2832
-
2833
- if (state) {
2834
- return {
2835
- popperRect: popper.getBoundingClientRect(),
2836
- popperState: state,
2837
- props: props
2838
- };
2839
- }
2840
-
2841
- return null;
2842
- }).filter(Boolean);
2843
-
2844
- if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
2845
- cleanupInteractiveMouseListeners();
2846
- scheduleHide(event);
2847
- }
2848
- }
2849
-
2850
- function onMouseLeave(event) {
2851
- var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
2852
-
2853
- if (shouldBail) {
2854
- return;
2855
- }
2856
-
2857
- if (instance.props.interactive) {
2858
- instance.hideWithInteractivity(event);
2859
- return;
2860
- }
2861
-
2862
- scheduleHide(event);
2863
- }
2864
-
2865
- function onBlurOrFocusOut(event) {
2866
- if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
2867
- return;
2868
- } // If focus was moved to within the popper
2869
-
2870
-
2871
- if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
2872
- return;
2873
- }
2874
-
2875
- scheduleHide(event);
2876
- }
2877
-
2878
- function isEventListenerStopped(event) {
2879
- return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
2880
- }
2881
-
2882
- function createPopperInstance() {
2883
- destroyPopperInstance();
2884
- var _instance$props2 = instance.props,
2885
- popperOptions = _instance$props2.popperOptions,
2886
- placement = _instance$props2.placement,
2887
- offset = _instance$props2.offset,
2888
- getReferenceClientRect = _instance$props2.getReferenceClientRect,
2889
- moveTransition = _instance$props2.moveTransition;
2890
- var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
2891
- var computedReference = getReferenceClientRect ? {
2892
- getBoundingClientRect: getReferenceClientRect,
2893
- contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
2894
- } : reference;
2895
- var tippyModifier = {
2896
- name: '$$tippy',
2897
- enabled: true,
2898
- phase: 'beforeWrite',
2899
- requires: ['computeStyles'],
2900
- fn: function fn(_ref2) {
2901
- var state = _ref2.state;
2902
-
2903
- if (getIsDefaultRenderFn()) {
2904
- var _getDefaultTemplateCh = getDefaultTemplateChildren(),
2905
- box = _getDefaultTemplateCh.box;
2906
-
2907
- ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
2908
- if (attr === 'placement') {
2909
- box.setAttribute('data-placement', state.placement);
2910
- } else {
2911
- if (state.attributes.popper["data-popper-" + attr]) {
2912
- box.setAttribute("data-" + attr, '');
2913
- } else {
2914
- box.removeAttribute("data-" + attr);
2915
- }
2916
- }
2917
- });
2918
- state.attributes.popper = {};
2919
- }
2920
- }
2921
- };
2922
- var modifiers = [{
2923
- name: 'offset',
2924
- options: {
2925
- offset: offset
2926
- }
2927
- }, {
2928
- name: 'preventOverflow',
2929
- options: {
2930
- padding: {
2931
- top: 2,
2932
- bottom: 2,
2933
- left: 5,
2934
- right: 5
2935
- }
2936
- }
2937
- }, {
2938
- name: 'flip',
2939
- options: {
2940
- padding: 5
2941
- }
2942
- }, {
2943
- name: 'computeStyles',
2944
- options: {
2945
- adaptive: !moveTransition
2946
- }
2947
- }, tippyModifier];
2948
-
2949
- if (getIsDefaultRenderFn() && arrow) {
2950
- modifiers.push({
2951
- name: 'arrow',
2952
- options: {
2953
- element: arrow,
2954
- padding: 3
2955
- }
2956
- });
2957
- }
2958
-
2959
- modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
2960
- instance.popperInstance = createPopper(computedReference, popper, Object.assign({}, popperOptions, {
2961
- placement: placement,
2962
- onFirstUpdate: onFirstUpdate,
2963
- modifiers: modifiers
2964
- }));
2965
- }
2966
-
2967
- function destroyPopperInstance() {
2968
- if (instance.popperInstance) {
2969
- instance.popperInstance.destroy();
2970
- instance.popperInstance = null;
2971
- }
2972
- }
2973
-
2974
- function mount() {
2975
- var appendTo = instance.props.appendTo;
2976
- var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
2977
- // it's directly after the reference element so the elements inside the
2978
- // tippy can be tabbed to
2979
- // If there are clipping issues, the user can specify a different appendTo
2980
- // and ensure focus management is handled correctly manually
2981
-
2982
- var node = getCurrentTarget();
2983
-
2984
- if (instance.props.interactive && appendTo === TIPPY_DEFAULT_APPEND_TO || appendTo === 'parent') {
2985
- parentNode = node.parentNode;
2986
- } else {
2987
- parentNode = invokeWithArgsOrReturn(appendTo, [node]);
2988
- } // The popper element needs to exist on the DOM before its position can be
2989
- // updated as Popper needs to read its dimensions
2990
-
2991
-
2992
- if (!parentNode.contains(popper)) {
2993
- parentNode.appendChild(popper);
2994
- }
2995
-
2996
- instance.state.isMounted = true;
2997
- createPopperInstance();
2998
- /* istanbul ignore else */
2999
-
3000
- if (process.env.NODE_ENV !== "production") {
3001
- // Accessibility check
3002
- warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard', 'navigation because it is not directly after the reference element', 'in the DOM source order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element', 'solves this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle', 'keyboard navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity'].join(' '));
3003
- }
3004
- }
3005
-
3006
- function getNestedPopperTree() {
3007
- return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
3008
- }
3009
-
3010
- function scheduleShow(event) {
3011
- instance.clearDelayTimeouts();
3012
-
3013
- if (event) {
3014
- invokeHook('onTrigger', [instance, event]);
3015
- }
3016
-
3017
- addDocumentPress();
3018
- var delay = getDelay(true);
3019
-
3020
- var _getNormalizedTouchSe = getNormalizedTouchSettings(),
3021
- touchValue = _getNormalizedTouchSe[0],
3022
- touchDelay = _getNormalizedTouchSe[1];
3023
-
3024
- if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
3025
- delay = touchDelay;
3026
- }
3027
-
3028
- if (delay) {
3029
- showTimeout = setTimeout(function () {
3030
- instance.show();
3031
- }, delay);
3032
- } else {
3033
- instance.show();
3034
- }
3035
- }
3036
-
3037
- function scheduleHide(event) {
3038
- instance.clearDelayTimeouts();
3039
- invokeHook('onUntrigger', [instance, event]);
3040
-
3041
- if (!instance.state.isVisible) {
3042
- removeDocumentPress();
3043
- return;
3044
- } // For interactive tippies, scheduleHide is added to a document.body handler
3045
- // from onMouseLeave so must intercept scheduled hides from mousemove/leave
3046
- // events when trigger contains mouseenter and click, and the tip is
3047
- // currently shown as a result of a click.
3048
-
3049
-
3050
- if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
3051
- return;
3052
- }
3053
-
3054
- var delay = getDelay(false);
3055
-
3056
- if (delay) {
3057
- hideTimeout = setTimeout(function () {
3058
- if (instance.state.isVisible) {
3059
- instance.hide();
3060
- }
3061
- }, delay);
3062
- } else {
3063
- // Fixes a `transitionend` problem when it fires 1 frame too
3064
- // late sometimes, we don't want hide() to be called.
3065
- scheduleHideAnimationFrame = requestAnimationFrame(function () {
3066
- instance.hide();
3067
- });
3068
- }
3069
- } // ===========================================================================
3070
- // 🔑 Public methods
3071
- // ===========================================================================
3072
-
3073
-
3074
- function enable() {
3075
- instance.state.isEnabled = true;
3076
- }
3077
-
3078
- function disable() {
3079
- // Disabling the instance should also hide it
3080
- // https://github.com/atomiks/tippy.js-react/issues/106
3081
- instance.hide();
3082
- instance.state.isEnabled = false;
3083
- }
3084
-
3085
- function clearDelayTimeouts() {
3086
- clearTimeout(showTimeout);
3087
- clearTimeout(hideTimeout);
3088
- cancelAnimationFrame(scheduleHideAnimationFrame);
3089
- }
3090
-
3091
- function setProps(partialProps) {
3092
- /* istanbul ignore else */
3093
- if (process.env.NODE_ENV !== "production") {
3094
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
3095
- }
3096
-
3097
- if (instance.state.isDestroyed) {
3098
- return;
3099
- }
3100
-
3101
- invokeHook('onBeforeUpdate', [instance, partialProps]);
3102
- removeListeners();
3103
- var prevProps = instance.props;
3104
- var nextProps = evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
3105
- ignoreAttributes: true
3106
- }));
3107
- instance.props = nextProps;
3108
- addListeners();
3109
-
3110
- if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
3111
- cleanupInteractiveMouseListeners();
3112
- debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
3113
- } // Ensure stale aria-expanded attributes are removed
3114
-
3115
-
3116
- if (prevProps.triggerTarget && !nextProps.triggerTarget) {
3117
- normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
3118
- node.removeAttribute('aria-expanded');
3119
- });
3120
- } else if (nextProps.triggerTarget) {
3121
- reference.removeAttribute('aria-expanded');
3122
- }
3123
-
3124
- handleAriaExpandedAttribute();
3125
- handleStyles();
3126
-
3127
- if (onUpdate) {
3128
- onUpdate(prevProps, nextProps);
3129
- }
3130
-
3131
- if (instance.popperInstance) {
3132
- createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
3133
- // and the nested ones get re-rendered first.
3134
- // https://github.com/atomiks/tippyjs-react/issues/177
3135
- // TODO: find a cleaner / more efficient solution(!)
3136
-
3137
- getNestedPopperTree().forEach(function (nestedPopper) {
3138
- // React (and other UI libs likely) requires a rAF wrapper as it flushes
3139
- // its work in one
3140
- requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
3141
- });
3142
- }
3143
-
3144
- invokeHook('onAfterUpdate', [instance, partialProps]);
3145
- }
3146
-
3147
- function setContent(content) {
3148
- instance.setProps({
3149
- content: content
3150
- });
3151
- }
3152
-
3153
- function show() {
3154
- /* istanbul ignore else */
3155
- if (process.env.NODE_ENV !== "production") {
3156
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
3157
- } // Early bail-out
3158
-
3159
-
3160
- var isAlreadyVisible = instance.state.isVisible;
3161
- var isDestroyed = instance.state.isDestroyed;
3162
- var isDisabled = !instance.state.isEnabled;
3163
- var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
3164
- var duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
3165
-
3166
- if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
3167
- return;
3168
- } // Normalize `disabled` behavior across browsers.
3169
- // Firefox allows events on disabled elements, but Chrome doesn't.
3170
- // Using a wrapper element (i.e. <span>) is recommended.
3171
-
3172
-
3173
- if (getCurrentTarget().hasAttribute('disabled')) {
3174
- return;
3175
- }
3176
-
3177
- invokeHook('onShow', [instance], false);
3178
-
3179
- if (instance.props.onShow(instance) === false) {
3180
- return;
3181
- }
3182
-
3183
- instance.state.isVisible = true;
3184
-
3185
- if (getIsDefaultRenderFn()) {
3186
- popper.style.visibility = 'visible';
3187
- }
3188
-
3189
- handleStyles();
3190
- addDocumentPress();
3191
-
3192
- if (!instance.state.isMounted) {
3193
- popper.style.transition = 'none';
3194
- } // If flipping to the opposite side after hiding at least once, the
3195
- // animation will use the wrong placement without resetting the duration
3196
-
3197
-
3198
- if (getIsDefaultRenderFn()) {
3199
- var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
3200
- box = _getDefaultTemplateCh2.box,
3201
- content = _getDefaultTemplateCh2.content;
3202
-
3203
- setTransitionDuration([box, content], 0);
3204
- }
3205
-
3206
- onFirstUpdate = function onFirstUpdate() {
3207
- var _instance$popperInsta2;
3208
-
3209
- if (!instance.state.isVisible || ignoreOnFirstUpdate) {
3210
- return;
3211
- }
3212
-
3213
- ignoreOnFirstUpdate = true; // reflow
3214
-
3215
- void popper.offsetHeight;
3216
- popper.style.transition = instance.props.moveTransition;
3217
-
3218
- if (getIsDefaultRenderFn() && instance.props.animation) {
3219
- var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
3220
- _box = _getDefaultTemplateCh3.box,
3221
- _content = _getDefaultTemplateCh3.content;
3222
-
3223
- setTransitionDuration([_box, _content], duration);
3224
- setVisibilityState([_box, _content], 'visible');
3225
- }
3226
-
3227
- handleAriaContentAttribute();
3228
- handleAriaExpandedAttribute();
3229
- pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
3230
- // popper has been positioned for the first time
3231
-
3232
- (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
3233
- invokeHook('onMount', [instance]);
3234
-
3235
- if (instance.props.animation && getIsDefaultRenderFn()) {
3236
- onTransitionedIn(duration, function () {
3237
- instance.state.isShown = true;
3238
- invokeHook('onShown', [instance]);
3239
- });
3240
- }
3241
- };
3242
-
3243
- mount();
3244
- }
3245
-
3246
- function hide() {
3247
- /* istanbul ignore else */
3248
- if (process.env.NODE_ENV !== "production") {
3249
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
3250
- } // Early bail-out
3251
-
3252
-
3253
- var isAlreadyHidden = !instance.state.isVisible;
3254
- var isDestroyed = instance.state.isDestroyed;
3255
- var isDisabled = !instance.state.isEnabled;
3256
- var duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
3257
-
3258
- if (isAlreadyHidden || isDestroyed || isDisabled) {
3259
- return;
3260
- }
3261
-
3262
- invokeHook('onHide', [instance], false);
3263
-
3264
- if (instance.props.onHide(instance) === false) {
3265
- return;
3266
- }
3267
-
3268
- instance.state.isVisible = false;
3269
- instance.state.isShown = false;
3270
- ignoreOnFirstUpdate = false;
3271
- isVisibleFromClick = false;
3272
-
3273
- if (getIsDefaultRenderFn()) {
3274
- popper.style.visibility = 'hidden';
3275
- }
3276
-
3277
- cleanupInteractiveMouseListeners();
3278
- removeDocumentPress();
3279
- handleStyles(true);
3280
-
3281
- if (getIsDefaultRenderFn()) {
3282
- var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
3283
- box = _getDefaultTemplateCh4.box,
3284
- content = _getDefaultTemplateCh4.content;
3285
-
3286
- if (instance.props.animation) {
3287
- setTransitionDuration([box, content], duration);
3288
- setVisibilityState([box, content], 'hidden');
3289
- }
3290
- }
3291
-
3292
- handleAriaContentAttribute();
3293
- handleAriaExpandedAttribute();
3294
-
3295
- if (instance.props.animation) {
3296
- if (getIsDefaultRenderFn()) {
3297
- onTransitionedOut(duration, instance.unmount);
3298
- }
3299
- } else {
3300
- instance.unmount();
3301
- }
3302
- }
3303
-
3304
- function hideWithInteractivity(event) {
3305
- /* istanbul ignore else */
3306
- if (process.env.NODE_ENV !== "production") {
3307
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
3308
- }
3309
-
3310
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
3311
- pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
3312
- debouncedOnMouseMove(event);
3313
- }
3314
-
3315
- function unmount() {
3316
- /* istanbul ignore else */
3317
- if (process.env.NODE_ENV !== "production") {
3318
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
3319
- }
3320
-
3321
- if (instance.state.isVisible) {
3322
- instance.hide();
3323
- }
3324
-
3325
- if (!instance.state.isMounted) {
3326
- return;
3327
- }
3328
-
3329
- destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
3330
- // tree by default. This seems mainly for interactive tippies, but we should
3331
- // find a workaround if possible
3332
-
3333
- getNestedPopperTree().forEach(function (nestedPopper) {
3334
- nestedPopper._tippy.unmount();
3335
- });
3336
-
3337
- if (popper.parentNode) {
3338
- popper.parentNode.removeChild(popper);
3339
- }
3340
-
3341
- mountedInstances = mountedInstances.filter(function (i) {
3342
- return i !== instance;
3343
- });
3344
- instance.state.isMounted = false;
3345
- invokeHook('onHidden', [instance]);
3346
- }
3347
-
3348
- function destroy() {
3349
- /* istanbul ignore else */
3350
- if (process.env.NODE_ENV !== "production") {
3351
- warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
3352
- }
3353
-
3354
- if (instance.state.isDestroyed) {
3355
- return;
3356
- }
3357
-
3358
- instance.clearDelayTimeouts();
3359
- instance.unmount();
3360
- removeListeners();
3361
- delete reference._tippy;
3362
- instance.state.isDestroyed = true;
3363
- invokeHook('onDestroy', [instance]);
3364
- }
3365
- }
3366
-
3367
- function tippy(targets, optionalProps) {
3368
- if (optionalProps === void 0) {
3369
- optionalProps = {};
3370
- }
3371
-
3372
- var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
3373
- /* istanbul ignore else */
3374
-
3375
- if (process.env.NODE_ENV !== "production") {
3376
- validateTargets(targets);
3377
- validateProps(optionalProps, plugins);
3378
- }
3379
-
3380
- bindGlobalEventListeners();
3381
- var passedProps = Object.assign({}, optionalProps, {
3382
- plugins: plugins
3383
- });
3384
- var elements = getArrayOfElements(targets);
3385
- /* istanbul ignore else */
3386
-
3387
- if (process.env.NODE_ENV !== "production") {
3388
- var isSingleContentElement = isElement(passedProps.content);
3389
- var isMoreThanOneReferenceElement = elements.length > 1;
3390
- warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than', 'one tippy instance was created by this invocation. This means the', 'content element will only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that', 'returns a cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
3391
- }
3392
-
3393
- var instances = elements.reduce(function (acc, reference) {
3394
- var instance = reference && createTippy(reference, passedProps);
3395
-
3396
- if (instance) {
3397
- acc.push(instance);
3398
- }
3399
-
3400
- return acc;
3401
- }, []);
3402
- return isElement(targets) ? instances[0] : instances;
3403
- }
3404
-
3405
- tippy.defaultProps = defaultProps;
3406
- tippy.setDefaultProps = setDefaultProps;
3407
- tippy.currentInput = currentInput;
3408
-
3409
- // every time the popper is destroyed (i.e. a new target), removing the styles
3410
- // and causing transitions to break for singletons when the console is open, but
3411
- // most notably for non-transform styles being used, `gpuAcceleration: false`.
3412
-
3413
- Object.assign({}, applyStyles$1, {
3414
- effect: function effect(_ref) {
3415
- var state = _ref.state;
3416
- var initialStyles = {
3417
- popper: {
3418
- position: state.options.strategy,
3419
- left: '0',
3420
- top: '0',
3421
- margin: '0'
3422
- },
3423
- arrow: {
3424
- position: 'absolute'
3425
- },
3426
- reference: {}
3427
- };
3428
- Object.assign(state.elements.popper.style, initialStyles.popper);
3429
- state.styles = initialStyles;
3430
-
3431
- if (state.elements.arrow) {
3432
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
3433
- } // intentionally return no cleanup function
3434
- // return () => { ... }
3435
-
3436
- }
3437
- });
3438
-
3439
- tippy.setDefaultProps({
3440
- render: render
3441
- });
1
+ import { html } from 'lit';
2
+ import { property, state } from 'lit/decorators.js';
3
+ import tippy from 'tippy.js';
4
+ import { tv } from 'tailwind-variants';
5
+ import { a as TailwindStyledElement, s as safeCustomElement } from '../../chunks/index-DluTRl1F.js';
6
+ import '../../chunks/index-CA_aKopU.js';
3442
7
 
3443
8
  const style = ":host {\n display: flex\n}";
3444
9
 
@@ -3472,7 +37,7 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
3472
37
  this.hideDelay = 300;
3473
38
  this.showCopy = false;
3474
39
  this.tooltipInstance = void 0;
3475
- this.styles = ce({
40
+ this.styles = tv({
3476
41
  slots: {
3477
42
  tooltip: "hidden",
3478
43
  trigger: "cursor-pointer flex flex-col items-center"
@@ -3612,12 +177,12 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
3612
177
  const styles = this.styles({
3613
178
  hasNoText: !this.text
3614
179
  });
3615
- return x`
180
+ return html`
3616
181
  <div id="tooltip" role="tooltip" class=${styles.tooltip()}>
3617
- ${x`<lukso-sanitize html-content=${this.text}></lukso-sanitize>`}
182
+ ${html`<lukso-sanitize html-content=${this.text}></lukso-sanitize>`}
3618
183
  </div>
3619
184
  <slot name="text" class="hidden"></slot>
3620
- ${this.isClipboardCopy ? x`<lukso-tooltip
185
+ ${this.isClipboardCopy ? html`<lukso-tooltip
3621
186
  variant=${this.variant}
3622
187
  size=${this.size}
3623
188
  placement=${this.placement}
@@ -3634,7 +199,7 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
3634
199
  >
3635
200
  <slot></slot>
3636
201
  </div>
3637
- </lukso-tooltip>` : x`<div
202
+ </lukso-tooltip>` : html`<div
3638
203
  id="trigger"
3639
204
  class=${styles.trigger()}
3640
205
  @click=${this.handleClick}
@@ -3645,52 +210,52 @@ let LuksoTooltip = class extends TailwindStyledElement(style) {
3645
210
  }
3646
211
  };
3647
212
  __decorateClass([
3648
- n({ type: String })
213
+ property({ type: String })
3649
214
  ], LuksoTooltip.prototype, "variant", 2);
3650
215
  __decorateClass([
3651
- n({ type: String })
216
+ property({ type: String })
3652
217
  ], LuksoTooltip.prototype, "size", 2);
3653
218
  __decorateClass([
3654
- n({ type: String })
219
+ property({ type: String })
3655
220
  ], LuksoTooltip.prototype, "placement", 2);
3656
221
  __decorateClass([
3657
- n({ type: String })
222
+ property({ type: String })
3658
223
  ], LuksoTooltip.prototype, "trigger", 2);
3659
224
  __decorateClass([
3660
- n({ type: String })
225
+ property({ type: String })
3661
226
  ], LuksoTooltip.prototype, "text", 2);
3662
227
  __decorateClass([
3663
- n({ type: Number, attribute: "max-width" })
228
+ property({ type: Number, attribute: "max-width" })
3664
229
  ], LuksoTooltip.prototype, "maxWidth", 2);
3665
230
  __decorateClass([
3666
- n({ type: Boolean })
231
+ property({ type: Boolean })
3667
232
  ], LuksoTooltip.prototype, "show", 2);
3668
233
  __decorateClass([
3669
- n({ type: String, attribute: "hide-on-click" })
234
+ property({ type: String, attribute: "hide-on-click" })
3670
235
  ], LuksoTooltip.prototype, "hideOnClick", 2);
3671
236
  __decorateClass([
3672
- n({ type: Boolean, attribute: "is-clipboard-copy" })
237
+ property({ type: Boolean, attribute: "is-clipboard-copy" })
3673
238
  ], LuksoTooltip.prototype, "isClipboardCopy", 2);
3674
239
  __decorateClass([
3675
- n({ type: String, attribute: "copy-text" })
240
+ property({ type: String, attribute: "copy-text" })
3676
241
  ], LuksoTooltip.prototype, "copyText", 2);
3677
242
  __decorateClass([
3678
- n({ type: String, attribute: "copy-value" })
243
+ property({ type: String, attribute: "copy-value" })
3679
244
  ], LuksoTooltip.prototype, "copyValue", 2);
3680
245
  __decorateClass([
3681
- n({ type: Number })
246
+ property({ type: Number })
3682
247
  ], LuksoTooltip.prototype, "offset", 2);
3683
248
  __decorateClass([
3684
- n({ type: Boolean, attribute: "show-arrow" })
249
+ property({ type: Boolean, attribute: "show-arrow" })
3685
250
  ], LuksoTooltip.prototype, "showArrow", 2);
3686
251
  __decorateClass([
3687
- n({ type: Number, attribute: "show-delay" })
252
+ property({ type: Number, attribute: "show-delay" })
3688
253
  ], LuksoTooltip.prototype, "showDelay", 2);
3689
254
  __decorateClass([
3690
- n({ type: Number, attribute: "hide-delay" })
255
+ property({ type: Number, attribute: "hide-delay" })
3691
256
  ], LuksoTooltip.prototype, "hideDelay", 2);
3692
257
  __decorateClass([
3693
- r()
258
+ state()
3694
259
  ], LuksoTooltip.prototype, "showCopy", 2);
3695
260
  LuksoTooltip = __decorateClass([
3696
261
  safeCustomElement("lukso-tooltip")