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