@pine-ds/core 3.2.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (627) hide show
  1. package/components/floating-ui.dom.js +1321 -0
  2. package/components/floating-ui.dom.js.map +1 -0
  3. package/components/index.d.ts +4 -0
  4. package/components/index.js +2 -0
  5. package/components/index.js.map +1 -1
  6. package/components/index2.js +1 -1
  7. package/components/index2.js.map +1 -1
  8. package/components/mock-pds-modal.js +1 -1
  9. package/components/pds-box2.js.map +1 -1
  10. package/components/pds-button2.js +1 -1
  11. package/components/pds-button2.js.map +1 -1
  12. package/components/pds-chip.js +21 -6
  13. package/components/pds-chip.js.map +1 -1
  14. package/components/pds-combobox.d.ts +11 -0
  15. package/components/pds-combobox.js +1771 -0
  16. package/components/pds-combobox.js.map +1 -0
  17. package/components/pds-copytext.js +1 -1
  18. package/components/pds-divider.js +1 -1
  19. package/components/pds-dropdown-menu-item.js +1 -1
  20. package/components/pds-dropdown-menu-separator.js +1 -1
  21. package/components/pds-dropdown-menu.js +4 -1320
  22. package/components/pds-dropdown-menu.js.map +1 -1
  23. package/components/pds-icon2.js +151 -18
  24. package/components/pds-icon2.js.map +1 -1
  25. package/components/pds-image.js +2 -2
  26. package/components/pds-input.js +111 -21
  27. package/components/pds-input.js.map +1 -1
  28. package/components/pds-link2.js +2 -2
  29. package/components/pds-loader2.js +1 -1
  30. package/components/pds-modal-content.js +2 -2
  31. package/components/pds-modal-footer.js +1 -1
  32. package/components/pds-modal-header.js +1 -1
  33. package/components/pds-modal.js +2 -2
  34. package/components/pds-popover.js +1 -1
  35. package/components/pds-progress.js +1 -1
  36. package/components/pds-property.d.ts +11 -0
  37. package/components/pds-property.js +55 -0
  38. package/components/pds-property.js.map +1 -0
  39. package/components/pds-radio.js +3 -3
  40. package/components/pds-row.js +1 -1
  41. package/components/pds-select.js +12 -3
  42. package/components/pds-select.js.map +1 -1
  43. package/components/pds-sortable-item.js +1 -1
  44. package/components/pds-sortable.js +1 -1
  45. package/components/pds-switch.js +3 -3
  46. package/components/pds-tab.js +3 -3
  47. package/components/pds-table-body.js +1 -1
  48. package/components/pds-table-cell2.js +2 -2
  49. package/components/pds-table-head-cell2.js +2 -2
  50. package/components/pds-table-head.js +1 -1
  51. package/components/pds-table-row.js +1 -1
  52. package/components/pds-table.js +1 -1
  53. package/components/pds-tabpanel.js +1 -1
  54. package/components/pds-tabs.js +1 -1
  55. package/components/pds-text2.js +1 -1
  56. package/components/pds-text2.js.map +1 -1
  57. package/components/pds-textarea.js +18 -5
  58. package/components/pds-textarea.js.map +1 -1
  59. package/components/pds-toast.js +3 -3
  60. package/components/pds-tooltip.js +17 -1
  61. package/components/pds-tooltip.js.map +1 -1
  62. package/dist/cjs/floating-ui.dom-Bz4BD-cr.js +1326 -0
  63. package/dist/cjs/floating-ui.dom-Bz4BD-cr.js.map +1 -0
  64. package/dist/cjs/{index-CG2Rr2io.js → index-BfqrB2cC.js} +3 -3
  65. package/dist/cjs/index-BfqrB2cC.js.map +1 -0
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  70. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  71. package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
  72. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  74. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  75. package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
  76. package/dist/cjs/pds-chip.cjs.entry.js +21 -7
  77. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  78. package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
  79. package/dist/cjs/pds-combobox.cjs.entry.js +1717 -0
  80. package/dist/cjs/pds-combobox.cjs.entry.js.map +1 -0
  81. package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -0
  82. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  83. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  84. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  85. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
  86. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +4 -1320
  87. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  89. package/dist/cjs/pds-icon.cjs.entry.js +148 -15
  90. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  91. package/dist/cjs/pds-icon.entry.cjs.js.map +1 -1
  92. package/dist/cjs/pds-image.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-input.cjs.entry.js +100 -21
  94. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
  96. package/dist/cjs/pds-link.cjs.entry.js +3 -3
  97. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  98. package/dist/cjs/pds-modal-content.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
  100. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-modal.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  103. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  104. package/dist/cjs/pds-property.cjs.entry.js +24 -0
  105. package/dist/cjs/pds-property.cjs.entry.js.map +1 -0
  106. package/dist/cjs/pds-property.entry.cjs.js.map +1 -0
  107. package/dist/cjs/pds-radio.cjs.entry.js +4 -4
  108. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  109. package/dist/cjs/pds-select.cjs.entry.js +12 -4
  110. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  111. package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
  112. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  113. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  114. package/dist/cjs/pds-switch.cjs.entry.js +4 -4
  115. package/dist/cjs/pds-tab.cjs.entry.js +3 -3
  116. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  117. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  118. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
  119. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  120. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  121. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  122. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  123. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  124. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  125. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  126. package/dist/cjs/pds-text.entry.cjs.js.map +1 -1
  127. package/dist/cjs/pds-textarea.cjs.entry.js +18 -6
  128. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  129. package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
  130. package/dist/cjs/pds-toast.cjs.entry.js +3 -3
  131. package/dist/cjs/pds-tooltip.cjs.entry.js +17 -1
  132. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  133. package/dist/cjs/pds-tooltip.entry.cjs.js.map +1 -1
  134. package/dist/cjs/pine-core.cjs.js +1 -1
  135. package/dist/collection/collection-manifest.json +2 -0
  136. package/dist/collection/components/pds-button/pds-button.css +17 -5
  137. package/dist/collection/components/pds-chip/pds-chip.css +48 -11
  138. package/dist/collection/components/pds-chip/pds-chip.js +42 -9
  139. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  140. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +17 -0
  141. package/dist/collection/components/pds-combobox/pds-combobox.css +223 -0
  142. package/dist/collection/components/pds-combobox/pds-combobox.js +783 -0
  143. package/dist/collection/components/pds-combobox/pds-combobox.js.map +1 -0
  144. package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +194 -0
  145. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
  146. package/dist/collection/components/pds-divider/pds-divider.js +1 -1
  147. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
  148. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
  149. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
  150. package/dist/collection/components/pds-image/pds-image.js +2 -2
  151. package/dist/collection/components/pds-input/pds-input.css +184 -43
  152. package/dist/collection/components/pds-input/pds-input.js +226 -21
  153. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  154. package/dist/collection/components/pds-input/stories/pds-input.stories.js +182 -0
  155. package/dist/collection/components/pds-link/pds-link.js +2 -2
  156. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  157. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  158. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  159. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  160. package/dist/collection/components/pds-modal/pds-modal.js +2 -2
  161. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  162. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  163. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  164. package/dist/collection/components/pds-property/pds-property.css +4 -0
  165. package/dist/collection/components/pds-property/pds-property.js +71 -0
  166. package/dist/collection/components/pds-property/pds-property.js.map +1 -0
  167. package/dist/collection/components/pds-property/stories/pds-property.stories.js +20 -0
  168. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  169. package/dist/collection/components/pds-row/pds-row.js +1 -1
  170. package/dist/collection/components/pds-select/pds-select.css +53 -5
  171. package/dist/collection/components/pds-select/pds-select.js +32 -2
  172. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  173. package/dist/collection/components/pds-select/stories/pds-select.stories.js +44 -0
  174. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  175. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  176. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  177. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  178. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  179. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  180. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  181. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  182. package/dist/collection/components/pds-table/pds-table.js +1 -1
  183. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  184. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  185. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  186. package/dist/collection/components/pds-text/pds-text.js +4 -1
  187. package/dist/collection/components/pds-text/pds-text.js.map +1 -1
  188. package/dist/collection/components/pds-textarea/pds-textarea.css +18 -0
  189. package/dist/collection/components/pds-textarea/pds-textarea.js +21 -5
  190. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  191. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +48 -1
  192. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  193. package/dist/collection/components/pds-tooltip/pds-tooltip.js +17 -1
  194. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  195. package/dist/docs.json +1162 -227
  196. package/dist/esm/floating-ui.dom-D_FwyeSw.js +1321 -0
  197. package/dist/esm/floating-ui.dom-D_FwyeSw.js.map +1 -0
  198. package/dist/esm/{index-_4gljHh-.js → index-CzVv99mW.js} +3 -3
  199. package/dist/esm/index-CzVv99mW.js.map +1 -0
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/mock-pds-modal.entry.js +1 -1
  202. package/dist/esm/pds-accordion.entry.js +1 -1
  203. package/dist/esm/pds-avatar.entry.js +1 -1
  204. package/dist/esm/pds-box.entry.js.map +1 -1
  205. package/dist/esm/pds-button.entry.js +2 -2
  206. package/dist/esm/pds-button.entry.js.map +1 -1
  207. package/dist/esm/pds-checkbox.entry.js +1 -1
  208. package/dist/esm/pds-chip.entry.js +21 -7
  209. package/dist/esm/pds-chip.entry.js.map +1 -1
  210. package/dist/esm/pds-combobox.entry.js +1715 -0
  211. package/dist/esm/pds-combobox.entry.js.map +1 -0
  212. package/dist/esm/pds-copytext.entry.js +2 -2
  213. package/dist/esm/pds-divider.entry.js +1 -1
  214. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  215. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
  216. package/dist/esm/pds-dropdown-menu.entry.js +2 -1318
  217. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  218. package/dist/esm/pds-icon.entry.js +148 -15
  219. package/dist/esm/pds-icon.entry.js.map +1 -1
  220. package/dist/esm/pds-image.entry.js +2 -2
  221. package/dist/esm/pds-input.entry.js +100 -21
  222. package/dist/esm/pds-input.entry.js.map +1 -1
  223. package/dist/esm/pds-link.entry.js +3 -3
  224. package/dist/esm/pds-loader.entry.js +1 -1
  225. package/dist/esm/pds-modal-content.entry.js +2 -2
  226. package/dist/esm/pds-modal-footer.entry.js +1 -1
  227. package/dist/esm/pds-modal-header.entry.js +1 -1
  228. package/dist/esm/pds-modal.entry.js +2 -2
  229. package/dist/esm/pds-popover.entry.js +1 -1
  230. package/dist/esm/pds-progress.entry.js +1 -1
  231. package/dist/esm/pds-property.entry.js +22 -0
  232. package/dist/esm/pds-property.entry.js.map +1 -0
  233. package/dist/esm/pds-radio.entry.js +4 -4
  234. package/dist/esm/pds-row.entry.js +1 -1
  235. package/dist/esm/pds-select.entry.js +13 -5
  236. package/dist/esm/pds-select.entry.js.map +1 -1
  237. package/dist/esm/pds-sortable-item.entry.js +2 -2
  238. package/dist/esm/pds-sortable.entry.js +1 -1
  239. package/dist/esm/pds-switch.entry.js +4 -4
  240. package/dist/esm/pds-tab.entry.js +3 -3
  241. package/dist/esm/pds-table-body.entry.js +1 -1
  242. package/dist/esm/pds-table-cell.entry.js +2 -2
  243. package/dist/esm/pds-table-head-cell.entry.js +3 -3
  244. package/dist/esm/pds-table-head.entry.js +1 -1
  245. package/dist/esm/pds-table-row.entry.js +1 -1
  246. package/dist/esm/pds-table.entry.js +1 -1
  247. package/dist/esm/pds-tabpanel.entry.js +1 -1
  248. package/dist/esm/pds-tabs.entry.js +1 -1
  249. package/dist/esm/pds-text.entry.js +1 -1
  250. package/dist/esm/pds-text.entry.js.map +1 -1
  251. package/dist/esm/pds-textarea.entry.js +18 -6
  252. package/dist/esm/pds-textarea.entry.js.map +1 -1
  253. package/dist/esm/pds-toast.entry.js +3 -3
  254. package/dist/esm/pds-tooltip.entry.js +17 -1
  255. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  256. package/dist/esm/pine-core.js +1 -1
  257. package/dist/esm-es5/floating-ui.dom-D_FwyeSw.js +2 -0
  258. package/dist/esm-es5/floating-ui.dom-D_FwyeSw.js.map +1 -0
  259. package/dist/esm-es5/{index-_4gljHh-.js → index-CzVv99mW.js} +1 -1
  260. package/dist/esm-es5/index-CzVv99mW.js.map +1 -0
  261. package/dist/esm-es5/loader.js +1 -1
  262. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  263. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  264. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  265. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  266. package/dist/esm-es5/pds-button.entry.js +1 -1
  267. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  268. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  269. package/dist/esm-es5/pds-chip.entry.js +1 -1
  270. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  271. package/dist/esm-es5/pds-combobox.entry.js +3 -0
  272. package/dist/esm-es5/pds-combobox.entry.js.map +1 -0
  273. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  274. package/dist/esm-es5/pds-divider.entry.js +1 -1
  275. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  276. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  277. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  278. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  279. package/dist/esm-es5/pds-icon.entry.js +1 -1
  280. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  281. package/dist/esm-es5/pds-image.entry.js +1 -1
  282. package/dist/esm-es5/pds-input.entry.js +1 -1
  283. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  284. package/dist/esm-es5/pds-link.entry.js +1 -1
  285. package/dist/esm-es5/pds-loader.entry.js +1 -1
  286. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  287. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  288. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  289. package/dist/esm-es5/pds-modal.entry.js +1 -1
  290. package/dist/esm-es5/pds-popover.entry.js +1 -1
  291. package/dist/esm-es5/pds-progress.entry.js +1 -1
  292. package/dist/esm-es5/pds-property.entry.js +2 -0
  293. package/dist/esm-es5/pds-property.entry.js.map +1 -0
  294. package/dist/esm-es5/pds-radio.entry.js +1 -1
  295. package/dist/esm-es5/pds-row.entry.js +1 -1
  296. package/dist/esm-es5/pds-select.entry.js +1 -1
  297. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  298. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  299. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  300. package/dist/esm-es5/pds-switch.entry.js +1 -1
  301. package/dist/esm-es5/pds-tab.entry.js +1 -1
  302. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  303. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  304. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  305. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  306. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  307. package/dist/esm-es5/pds-table.entry.js +1 -1
  308. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  309. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  310. package/dist/esm-es5/pds-text.entry.js +1 -1
  311. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  312. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  313. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  314. package/dist/esm-es5/pds-toast.entry.js +1 -1
  315. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  316. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  317. package/dist/esm-es5/pine-core.js +1 -1
  318. package/dist/pine-core/{p-e2dc81c0.entry.js → p-000ed179.entry.js} +2 -2
  319. package/dist/pine-core/{p-c1b0f921.system.entry.js → p-0c6e9ba0.system.entry.js} +2 -2
  320. package/dist/pine-core/p-160c6806.system.entry.js +2 -0
  321. package/dist/pine-core/p-160c6806.system.entry.js.map +1 -0
  322. package/dist/pine-core/p-1e056ca3.system.entry.js +2 -0
  323. package/dist/pine-core/p-1e056ca3.system.entry.js.map +1 -0
  324. package/dist/pine-core/{p-596e0292.system.entry.js → p-1ef5f46b.system.entry.js} +2 -2
  325. package/dist/pine-core/{p-7ff213bb.system.entry.js → p-256d15bc.system.entry.js} +2 -2
  326. package/dist/pine-core/{p-17d3fa8b.entry.js → p-27b52fc5.entry.js} +2 -2
  327. package/dist/pine-core/{p-833f08f3.entry.js → p-2a2cd90d.entry.js} +2 -2
  328. package/dist/pine-core/{p-4288c861.entry.js → p-2f0aedfa.entry.js} +2 -2
  329. package/dist/pine-core/{p-78cb1c40.system.entry.js → p-2fbc5f8c.system.entry.js} +2 -2
  330. package/dist/pine-core/{p-b7ba6316.entry.js → p-30449e82.entry.js} +2 -2
  331. package/dist/pine-core/p-307b456a.entry.js +2 -0
  332. package/dist/pine-core/p-307b456a.entry.js.map +1 -0
  333. package/dist/pine-core/{p-761946a0.entry.js → p-31fe86a6.entry.js} +2 -2
  334. package/dist/pine-core/p-357b6dd6.system.entry.js +2 -0
  335. package/dist/pine-core/{p-85ff1482.entry.js → p-36d3352a.entry.js} +2 -2
  336. package/dist/pine-core/p-38248640.entry.js +2 -0
  337. package/dist/pine-core/p-38248640.entry.js.map +1 -0
  338. package/dist/pine-core/{p-3798a631.system.entry.js → p-383af1d4.system.entry.js} +2 -2
  339. package/dist/pine-core/{p-bcc4edaa.entry.js → p-39fbd912.entry.js} +2 -2
  340. package/dist/pine-core/p-3b43a1ea.entry.js +2 -0
  341. package/dist/pine-core/{p-a52b1413.entry.js.map → p-3b43a1ea.entry.js.map} +1 -1
  342. package/dist/pine-core/{p-5c4aceb7.entry.js → p-3bbb6fc1.entry.js} +2 -2
  343. package/dist/pine-core/p-3df372d1.entry.js +3 -0
  344. package/dist/pine-core/p-3df372d1.entry.js.map +1 -0
  345. package/dist/pine-core/p-3fd658ad.system.entry.js +2 -0
  346. package/dist/pine-core/p-3fd658ad.system.entry.js.map +1 -0
  347. package/dist/pine-core/p-447fa824.system.entry.js +2 -0
  348. package/dist/pine-core/p-447fa824.system.entry.js.map +1 -0
  349. package/dist/pine-core/p-495a206d.entry.js +2 -0
  350. package/dist/pine-core/p-495a206d.entry.js.map +1 -0
  351. package/dist/pine-core/p-4a69106a.system.entry.js +2 -0
  352. package/dist/pine-core/p-4a69106a.system.entry.js.map +1 -0
  353. package/dist/pine-core/p-4d22ca40.entry.js +2 -0
  354. package/dist/pine-core/p-4d22ca40.entry.js.map +1 -0
  355. package/dist/pine-core/p-5033d9e8.entry.js +2 -0
  356. package/dist/pine-core/{p-6a2296e6.system.entry.js → p-5706c81b.system.entry.js} +2 -2
  357. package/dist/pine-core/p-5a1af174.entry.js +2 -0
  358. package/dist/pine-core/p-5a1af174.entry.js.map +1 -0
  359. package/dist/pine-core/{p-1224c874.entry.js → p-5fdbbab9.entry.js} +2 -2
  360. package/dist/pine-core/{p-121e03ad.system.entry.js → p-61b7ff04.system.entry.js} +2 -2
  361. package/dist/pine-core/{p-111e7da2.system.entry.js → p-62bc2080.system.entry.js} +2 -2
  362. package/dist/pine-core/{p-367e188f.entry.js → p-64c897bb.entry.js} +2 -2
  363. package/dist/pine-core/{p-f2c807ac.entry.js → p-667eb50e.entry.js} +2 -2
  364. package/dist/pine-core/{p-77c3a10d.entry.js → p-6d36fae0.entry.js} +2 -2
  365. package/dist/pine-core/p-6ef51211.entry.js +2 -0
  366. package/dist/pine-core/{p-D-4Xbxlj.system.js.map → p-6tdMlyau.system.js.map} +1 -1
  367. package/dist/pine-core/p-708c66c2.entry.js +2 -0
  368. package/dist/pine-core/p-708c66c2.entry.js.map +1 -0
  369. package/dist/pine-core/p-73412ca9.system.entry.js.map +1 -1
  370. package/dist/pine-core/{p-bd04212c.system.entry.js → p-7a431264.system.entry.js} +2 -2
  371. package/dist/pine-core/p-7a431264.system.entry.js.map +1 -0
  372. package/dist/pine-core/{p-d6ac2862.system.entry.js → p-7da6180d.system.entry.js} +2 -2
  373. package/dist/pine-core/{p-c4294be2.entry.js → p-80246c79.entry.js} +2 -2
  374. package/dist/pine-core/{p-2296c34f.entry.js → p-822e90ee.entry.js} +2 -2
  375. package/dist/pine-core/p-822e90ee.entry.js.map +1 -0
  376. package/dist/pine-core/{p-24607f93.entry.js → p-82388e60.entry.js} +2 -2
  377. package/dist/pine-core/p-90a8d1bd.entry.js +2 -0
  378. package/dist/pine-core/p-90a8d1bd.entry.js.map +1 -0
  379. package/dist/pine-core/{p-7b38e384.system.entry.js → p-91520803.system.entry.js} +2 -2
  380. package/dist/pine-core/{p-3f82ac77.system.entry.js → p-982edcaf.system.entry.js} +2 -2
  381. package/dist/pine-core/p-9b8a3659.system.entry.js +2 -0
  382. package/dist/pine-core/{p-730221a8.system.entry.js → p-9cc1844a.system.entry.js} +2 -2
  383. package/dist/pine-core/{p-ef9ed75a.system.entry.js → p-9d8bb7f7.system.entry.js} +2 -2
  384. package/dist/pine-core/{p-71265b2a.system.entry.js → p-9df7ba40.system.entry.js} +2 -2
  385. package/dist/pine-core/p-9e22eab5.system.entry.js +2 -0
  386. package/dist/pine-core/p-B-xQ7Q5Y.system.js.map +1 -0
  387. package/dist/pine-core/p-BHZ6CSg4.system.js.map +1 -1
  388. package/dist/pine-core/{p-CWtKi9tV.system.js.map → p-BJRnZhwF.system.js.map} +1 -1
  389. package/dist/pine-core/{p-Derxa-nn.system.js.map → p-BPlIGHM4.system.js.map} +1 -1
  390. package/dist/pine-core/p-BSg_Clcf.system.js.map +1 -0
  391. package/dist/pine-core/{p-B5JFBYFw.system.js.map → p-Bdnq3aMi.system.js.map} +1 -1
  392. package/dist/pine-core/{p-PkSWq78_.system.js.map → p-Bgszb25I.system.js.map} +1 -1
  393. package/dist/pine-core/p-BlpTiOHo.system.js.map +1 -0
  394. package/dist/pine-core/{p-CzKqvFNN.system.js.map → p-Bok_Wwo5.system.js.map} +1 -1
  395. package/dist/pine-core/{p-DiJV28pi.system.js.map → p-Bpn2QYa2.system.js.map} +1 -1
  396. package/dist/pine-core/{p-DS7q5AvX.system.js.map → p-Bq1H4MPi.system.js.map} +1 -1
  397. package/dist/pine-core/p-BsL2GDnH.system.js +1 -1
  398. package/dist/pine-core/{p-CnPERKGo.system.js.map → p-C47kwjaJ.system.js.map} +1 -1
  399. package/dist/pine-core/{p-D9LPgNmN.system.js.map → p-CD40xhZg.system.js.map} +1 -1
  400. package/dist/pine-core/{p-C-oNYS10.system.js.map → p-CLsVcJCa.system.js.map} +1 -1
  401. package/dist/pine-core/{p-DgOMN0Ur.system.js.map → p-CLscfXhT.system.js.map} +1 -1
  402. package/dist/pine-core/{p-CcsZC7UR.system.js.map → p-CTJnwc4I.system.js.map} +1 -1
  403. package/dist/pine-core/p-CUHK9C55.system.js.map +1 -0
  404. package/dist/pine-core/p-CaJHqbdu.system.js.map +1 -0
  405. package/dist/pine-core/p-Ci1ZzxGS.system.js.map +1 -0
  406. package/dist/pine-core/{p-yku4NLl6.system.js.map → p-ClrDO1lY.system.js.map} +1 -1
  407. package/dist/pine-core/{p-D5vuiRx2.system.js.map → p-Cly-fzRE.system.js.map} +1 -1
  408. package/dist/pine-core/{p-BVUeEWjl.system.js.map → p-CtuIf6LK.system.js.map} +1 -1
  409. package/dist/pine-core/p-Ctwx2R4g.system.js.map +1 -0
  410. package/dist/pine-core/{p-3D0orTx_.system.js.map → p-CuHZffVk.system.js.map} +1 -1
  411. package/dist/pine-core/{p-_4gljHh-.js → p-CzVv99mW.js} +1 -1
  412. package/dist/pine-core/p-CzVv99mW.js.map +1 -0
  413. package/dist/pine-core/{p-DbVkYdnF.system.js.map → p-D1LdgjO0.system.js.map} +1 -1
  414. package/dist/pine-core/p-DJPo1iGw.system.js.map +1 -0
  415. package/dist/pine-core/{p-HBgo7i_E.system.js.map → p-DKGUedTE.system.js.map} +1 -1
  416. package/dist/pine-core/{p-CLNi-hRD.system.js.map → p-DNqc41uY.system.js.map} +1 -1
  417. package/dist/pine-core/{p-Bo6FQRlR.system.js.map → p-DQCWs_Ih.system.js.map} +1 -1
  418. package/dist/pine-core/p-DX9uSGoE.system.js.map +1 -0
  419. package/dist/pine-core/p-D_FwyeSw.js +2 -0
  420. package/dist/pine-core/p-D_FwyeSw.js.map +1 -0
  421. package/dist/pine-core/{p-B4W0_y2p.system.js → p-DiBM9O5Q.system.js} +1 -1
  422. package/dist/pine-core/p-DiBM9O5Q.system.js.map +1 -0
  423. package/dist/pine-core/{p-CV405yTU.system.js.map → p-DwwM3-D4.system.js.map} +1 -1
  424. package/dist/pine-core/{p-Cj2r1nL6.system.js.map → p-DxydR7R6.system.js.map} +1 -1
  425. package/dist/pine-core/{p-DKSZziVY.system.js.map → p-Gn2xhxDz.system.js.map} +1 -1
  426. package/dist/pine-core/{p-B-pTdYoP.system.js.map → p-PuPjQNmU.system.js.map} +1 -1
  427. package/dist/pine-core/{p-DV_GadHU.system.js.map → p-PwBWYqtO.system.js.map} +1 -1
  428. package/dist/pine-core/{p-CsM74dxm.system.js.map → p-U_efBpHV.system.js.map} +1 -1
  429. package/dist/pine-core/p-ZCkmy1Gu.system.js +2 -0
  430. package/dist/pine-core/p-ZCkmy1Gu.system.js.map +1 -0
  431. package/dist/pine-core/{p-83ffc1cc.entry.js → p-a4d19fb1.entry.js} +2 -2
  432. package/dist/pine-core/p-af5c9fbd.system.entry.js +2 -0
  433. package/dist/pine-core/{p-146fcd44.entry.js → p-b214c043.entry.js} +2 -2
  434. package/dist/pine-core/p-b5dc7a18.entry.js +2 -0
  435. package/dist/pine-core/p-b5dc7a18.entry.js.map +1 -0
  436. package/dist/pine-core/{p-c0f74199.entry.js → p-b6d18604.entry.js} +2 -2
  437. package/dist/pine-core/{p-BOJnNd1p.system.js.map → p-b6lYO9O3.system.js.map} +1 -1
  438. package/dist/pine-core/{p-04df41d7.system.entry.js → p-b93825c4.system.entry.js} +2 -2
  439. package/dist/pine-core/{p-48e76945.system.entry.js → p-c5a7c8e9.system.entry.js} +2 -2
  440. package/dist/pine-core/{p-30142a25.system.entry.js → p-c5da4a97.system.entry.js} +2 -2
  441. package/dist/pine-core/p-c93786f1.system.entry.js +2 -0
  442. package/dist/pine-core/{p-78fb945e.system.entry.js → p-cc15bf6c.system.entry.js} +2 -2
  443. package/dist/pine-core/p-d0ec666b.entry.js +2 -0
  444. package/dist/pine-core/p-d21156cf.entry.js +2 -0
  445. package/dist/pine-core/p-d21156cf.entry.js.map +1 -0
  446. package/dist/pine-core/p-d2d6b3a6.system.entry.js +2 -0
  447. package/dist/pine-core/p-d2d6b3a6.system.entry.js.map +1 -0
  448. package/dist/pine-core/{p-942fa145.system.entry.js → p-d451c7b5.system.entry.js} +2 -2
  449. package/dist/pine-core/p-d64527b2.system.entry.js +2 -0
  450. package/dist/pine-core/p-d64527b2.system.entry.js.map +1 -0
  451. package/dist/pine-core/{p-28e28f42.system.entry.js → p-d6b1f60d.system.entry.js} +2 -2
  452. package/dist/pine-core/{p-722012ac.entry.js → p-d989287d.entry.js} +2 -2
  453. package/dist/pine-core/{p-d2ccda59.system.entry.js → p-e0a35811.system.entry.js} +2 -2
  454. package/dist/pine-core/{p-e9d972db.system.entry.js → p-e0a6ba6f.system.entry.js} +2 -2
  455. package/dist/pine-core/{p-1bd715ee.system.entry.js → p-e416f7a8.system.entry.js} +2 -2
  456. package/dist/pine-core/p-e416f7a8.system.entry.js.map +1 -0
  457. package/dist/pine-core/{p-984578f8.system.entry.js → p-e53547e2.system.entry.js} +2 -2
  458. package/dist/pine-core/p-e68dd704.system.entry.js +2 -0
  459. package/dist/pine-core/p-e68dd704.system.entry.js.map +1 -0
  460. package/dist/pine-core/{p-b2796d3c.system.entry.js → p-e7322ff9.system.entry.js} +2 -2
  461. package/dist/pine-core/{p-83c632f6.system.entry.js → p-e8a4eafa.system.entry.js} +2 -2
  462. package/dist/pine-core/{p-f9e01886.system.entry.js → p-ec1c3452.system.entry.js} +2 -2
  463. package/dist/pine-core/p-ee0117a2.entry.js +2 -0
  464. package/dist/pine-core/{p-d1b222f5.entry.js.map → p-ee0117a2.entry.js.map} +1 -1
  465. package/dist/pine-core/{p-a394645a.system.entry.js → p-eef645bd.system.entry.js} +2 -2
  466. package/dist/pine-core/{p-cd2cd116.entry.js → p-ef08f005.entry.js} +2 -2
  467. package/dist/pine-core/p-f256dd8a.entry.js.map +1 -1
  468. package/dist/pine-core/{p-0572825b.entry.js → p-f29baa16.entry.js} +2 -2
  469. package/dist/pine-core/{p-4ff0838c.entry.js → p-f30b1479.entry.js} +2 -2
  470. package/dist/pine-core/p-f455deb5.entry.js +2 -0
  471. package/dist/pine-core/{p-f47133fd.entry.js → p-f7c02b89.entry.js} +2 -2
  472. package/dist/pine-core/p-f9005ac9.entry.js +2 -0
  473. package/dist/pine-core/p-faaa1caa.system.entry.js +4 -0
  474. package/dist/pine-core/p-faaa1caa.system.entry.js.map +1 -0
  475. package/dist/pine-core/{p-99b5e1a5.entry.js → p-fd3b7077.entry.js} +2 -2
  476. package/dist/pine-core/{p-1b109c01.entry.js → p-fe73a67f.entry.js} +2 -2
  477. package/dist/pine-core/{p-DEsea81X.system.js.map → p-ipxZYSGJ.system.js.map} +1 -1
  478. package/dist/pine-core/p-lWwPttyv.system.js.map +1 -0
  479. package/dist/pine-core/{p-CiDIFl28.system.js.map → p-mWJg54bF.system.js.map} +1 -1
  480. package/dist/pine-core/{p-CDIHBBTC.system.js.map → p-y1DacLeb.system.js.map} +1 -1
  481. package/dist/pine-core/{p-Bs9Nyvj2.system.js.map → p-ydqm5FGv.system.js.map} +1 -1
  482. package/dist/pine-core/{p-DN9puCWI.system.js.map → p-zZHye4hT.system.js.map} +1 -1
  483. package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
  484. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  485. package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
  486. package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -0
  487. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  488. package/dist/pine-core/pds-icon.entry.esm.js.map +1 -1
  489. package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
  490. package/dist/pine-core/pds-property.entry.esm.js.map +1 -0
  491. package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
  492. package/dist/pine-core/pds-text.entry.esm.js.map +1 -1
  493. package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
  494. package/dist/pine-core/pds-tooltip.entry.esm.js.map +1 -1
  495. package/dist/pine-core/pine-core.esm.js +1 -1
  496. package/dist/types/components/pds-chip/pds-chip.d.ts +9 -1
  497. package/dist/types/components/pds-combobox/pds-combobox.d.ts +153 -0
  498. package/dist/types/components/pds-input/pds-input.d.ts +63 -9
  499. package/dist/types/components/pds-property/pds-property.d.ts +14 -0
  500. package/dist/types/components/pds-select/pds-select.d.ts +9 -0
  501. package/dist/types/components/pds-text/pds-text.d.ts +3 -0
  502. package/dist/types/components/pds-textarea/pds-textarea.d.ts +8 -0
  503. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +3 -0
  504. package/dist/types/components.d.ts +275 -6
  505. package/hydrate/index.js +2367 -260
  506. package/hydrate/index.mjs +2367 -260
  507. package/package.json +4 -2
  508. package/dist/cjs/index-CG2Rr2io.js.map +0 -1
  509. package/dist/esm/index-_4gljHh-.js.map +0 -1
  510. package/dist/esm-es5/index-_4gljHh-.js.map +0 -1
  511. package/dist/pine-core/p-0069abf8.system.entry.js +0 -2
  512. package/dist/pine-core/p-0069abf8.system.entry.js.map +0 -1
  513. package/dist/pine-core/p-03d8cb4c.system.entry.js +0 -2
  514. package/dist/pine-core/p-1bd715ee.system.entry.js.map +0 -1
  515. package/dist/pine-core/p-1eec6bea.system.entry.js +0 -2
  516. package/dist/pine-core/p-1eec6bea.system.entry.js.map +0 -1
  517. package/dist/pine-core/p-21c3aaeb.entry.js +0 -2
  518. package/dist/pine-core/p-2296c34f.entry.js.map +0 -1
  519. package/dist/pine-core/p-29ad0b86.entry.js +0 -2
  520. package/dist/pine-core/p-29ad0b86.entry.js.map +0 -1
  521. package/dist/pine-core/p-32bd3e33.entry.js +0 -2
  522. package/dist/pine-core/p-32bd3e33.entry.js.map +0 -1
  523. package/dist/pine-core/p-3e91dccd.entry.js +0 -2
  524. package/dist/pine-core/p-3e91dccd.entry.js.map +0 -1
  525. package/dist/pine-core/p-49265849.system.entry.js +0 -2
  526. package/dist/pine-core/p-513c16c7.entry.js +0 -2
  527. package/dist/pine-core/p-513c16c7.entry.js.map +0 -1
  528. package/dist/pine-core/p-5acda4ac.system.entry.js +0 -2
  529. package/dist/pine-core/p-5acda4ac.system.entry.js.map +0 -1
  530. package/dist/pine-core/p-5e1e7762.entry.js +0 -2
  531. package/dist/pine-core/p-624db3d6.system.entry.js +0 -2
  532. package/dist/pine-core/p-624db3d6.system.entry.js.map +0 -1
  533. package/dist/pine-core/p-71f01676.system.entry.js +0 -2
  534. package/dist/pine-core/p-742d4490.entry.js +0 -2
  535. package/dist/pine-core/p-742d4490.entry.js.map +0 -1
  536. package/dist/pine-core/p-7e92ec48.system.entry.js +0 -2
  537. package/dist/pine-core/p-7e92ec48.system.entry.js.map +0 -1
  538. package/dist/pine-core/p-8023086c.entry.js +0 -2
  539. package/dist/pine-core/p-8023086c.entry.js.map +0 -1
  540. package/dist/pine-core/p-83252078.system.entry.js +0 -2
  541. package/dist/pine-core/p-86d388a2.entry.js +0 -2
  542. package/dist/pine-core/p-929bb7ab.system.entry.js +0 -2
  543. package/dist/pine-core/p-B4W0_y2p.system.js.map +0 -1
  544. package/dist/pine-core/p-B5LBNcOw.system.js.map +0 -1
  545. package/dist/pine-core/p-BO1OsmVU.system.js.map +0 -1
  546. package/dist/pine-core/p-C3ud771n.system.js.map +0 -1
  547. package/dist/pine-core/p-CtAVdPaE.system.js.map +0 -1
  548. package/dist/pine-core/p-D8DRYw9w.system.js.map +0 -1
  549. package/dist/pine-core/p-DyQ_s5MV.system.js.map +0 -1
  550. package/dist/pine-core/p-M2Hhmwex.system.js.map +0 -1
  551. package/dist/pine-core/p-_4gljHh-.js.map +0 -1
  552. package/dist/pine-core/p-a2572675.system.entry.js +0 -2
  553. package/dist/pine-core/p-a2572675.system.entry.js.map +0 -1
  554. package/dist/pine-core/p-a52b1413.entry.js +0 -2
  555. package/dist/pine-core/p-abec6606.entry.js +0 -2
  556. package/dist/pine-core/p-abec6606.entry.js.map +0 -1
  557. package/dist/pine-core/p-b3d05184.entry.js +0 -2
  558. package/dist/pine-core/p-b3d05184.entry.js.map +0 -1
  559. package/dist/pine-core/p-b9c13f99.entry.js +0 -2
  560. package/dist/pine-core/p-bd04212c.system.entry.js.map +0 -1
  561. package/dist/pine-core/p-d1b222f5.entry.js +0 -2
  562. package/dist/pine-core/p-e09a3682.system.entry.js +0 -2
  563. package/dist/pine-core/p-e09a3682.system.entry.js.map +0 -1
  564. package/dist/pine-core/p-e6d6e103.entry.js +0 -2
  565. package/dist/pine-core/p-xgOOHGQo.system.js.map +0 -1
  566. /package/dist/pine-core/{p-e2dc81c0.entry.js.map → p-000ed179.entry.js.map} +0 -0
  567. /package/dist/pine-core/{p-c1b0f921.system.entry.js.map → p-0c6e9ba0.system.entry.js.map} +0 -0
  568. /package/dist/pine-core/{p-596e0292.system.entry.js.map → p-1ef5f46b.system.entry.js.map} +0 -0
  569. /package/dist/pine-core/{p-7ff213bb.system.entry.js.map → p-256d15bc.system.entry.js.map} +0 -0
  570. /package/dist/pine-core/{p-17d3fa8b.entry.js.map → p-27b52fc5.entry.js.map} +0 -0
  571. /package/dist/pine-core/{p-833f08f3.entry.js.map → p-2a2cd90d.entry.js.map} +0 -0
  572. /package/dist/pine-core/{p-4288c861.entry.js.map → p-2f0aedfa.entry.js.map} +0 -0
  573. /package/dist/pine-core/{p-78cb1c40.system.entry.js.map → p-2fbc5f8c.system.entry.js.map} +0 -0
  574. /package/dist/pine-core/{p-b7ba6316.entry.js.map → p-30449e82.entry.js.map} +0 -0
  575. /package/dist/pine-core/{p-761946a0.entry.js.map → p-31fe86a6.entry.js.map} +0 -0
  576. /package/dist/pine-core/{p-83252078.system.entry.js.map → p-357b6dd6.system.entry.js.map} +0 -0
  577. /package/dist/pine-core/{p-85ff1482.entry.js.map → p-36d3352a.entry.js.map} +0 -0
  578. /package/dist/pine-core/{p-3798a631.system.entry.js.map → p-383af1d4.system.entry.js.map} +0 -0
  579. /package/dist/pine-core/{p-bcc4edaa.entry.js.map → p-39fbd912.entry.js.map} +0 -0
  580. /package/dist/pine-core/{p-5c4aceb7.entry.js.map → p-3bbb6fc1.entry.js.map} +0 -0
  581. /package/dist/pine-core/{p-86d388a2.entry.js.map → p-5033d9e8.entry.js.map} +0 -0
  582. /package/dist/pine-core/{p-6a2296e6.system.entry.js.map → p-5706c81b.system.entry.js.map} +0 -0
  583. /package/dist/pine-core/{p-1224c874.entry.js.map → p-5fdbbab9.entry.js.map} +0 -0
  584. /package/dist/pine-core/{p-121e03ad.system.entry.js.map → p-61b7ff04.system.entry.js.map} +0 -0
  585. /package/dist/pine-core/{p-111e7da2.system.entry.js.map → p-62bc2080.system.entry.js.map} +0 -0
  586. /package/dist/pine-core/{p-367e188f.entry.js.map → p-64c897bb.entry.js.map} +0 -0
  587. /package/dist/pine-core/{p-f2c807ac.entry.js.map → p-667eb50e.entry.js.map} +0 -0
  588. /package/dist/pine-core/{p-77c3a10d.entry.js.map → p-6d36fae0.entry.js.map} +0 -0
  589. /package/dist/pine-core/{p-5e1e7762.entry.js.map → p-6ef51211.entry.js.map} +0 -0
  590. /package/dist/pine-core/{p-d6ac2862.system.entry.js.map → p-7da6180d.system.entry.js.map} +0 -0
  591. /package/dist/pine-core/{p-c4294be2.entry.js.map → p-80246c79.entry.js.map} +0 -0
  592. /package/dist/pine-core/{p-24607f93.entry.js.map → p-82388e60.entry.js.map} +0 -0
  593. /package/dist/pine-core/{p-7b38e384.system.entry.js.map → p-91520803.system.entry.js.map} +0 -0
  594. /package/dist/pine-core/{p-3f82ac77.system.entry.js.map → p-982edcaf.system.entry.js.map} +0 -0
  595. /package/dist/pine-core/{p-49265849.system.entry.js.map → p-9b8a3659.system.entry.js.map} +0 -0
  596. /package/dist/pine-core/{p-730221a8.system.entry.js.map → p-9cc1844a.system.entry.js.map} +0 -0
  597. /package/dist/pine-core/{p-ef9ed75a.system.entry.js.map → p-9d8bb7f7.system.entry.js.map} +0 -0
  598. /package/dist/pine-core/{p-71265b2a.system.entry.js.map → p-9df7ba40.system.entry.js.map} +0 -0
  599. /package/dist/pine-core/{p-929bb7ab.system.entry.js.map → p-9e22eab5.system.entry.js.map} +0 -0
  600. /package/dist/pine-core/{p-83ffc1cc.entry.js.map → p-a4d19fb1.entry.js.map} +0 -0
  601. /package/dist/pine-core/{p-03d8cb4c.system.entry.js.map → p-af5c9fbd.system.entry.js.map} +0 -0
  602. /package/dist/pine-core/{p-146fcd44.entry.js.map → p-b214c043.entry.js.map} +0 -0
  603. /package/dist/pine-core/{p-c0f74199.entry.js.map → p-b6d18604.entry.js.map} +0 -0
  604. /package/dist/pine-core/{p-04df41d7.system.entry.js.map → p-b93825c4.system.entry.js.map} +0 -0
  605. /package/dist/pine-core/{p-48e76945.system.entry.js.map → p-c5a7c8e9.system.entry.js.map} +0 -0
  606. /package/dist/pine-core/{p-30142a25.system.entry.js.map → p-c5da4a97.system.entry.js.map} +0 -0
  607. /package/dist/pine-core/{p-71f01676.system.entry.js.map → p-c93786f1.system.entry.js.map} +0 -0
  608. /package/dist/pine-core/{p-78fb945e.system.entry.js.map → p-cc15bf6c.system.entry.js.map} +0 -0
  609. /package/dist/pine-core/{p-b9c13f99.entry.js.map → p-d0ec666b.entry.js.map} +0 -0
  610. /package/dist/pine-core/{p-942fa145.system.entry.js.map → p-d451c7b5.system.entry.js.map} +0 -0
  611. /package/dist/pine-core/{p-28e28f42.system.entry.js.map → p-d6b1f60d.system.entry.js.map} +0 -0
  612. /package/dist/pine-core/{p-722012ac.entry.js.map → p-d989287d.entry.js.map} +0 -0
  613. /package/dist/pine-core/{p-d2ccda59.system.entry.js.map → p-e0a35811.system.entry.js.map} +0 -0
  614. /package/dist/pine-core/{p-e9d972db.system.entry.js.map → p-e0a6ba6f.system.entry.js.map} +0 -0
  615. /package/dist/pine-core/{p-984578f8.system.entry.js.map → p-e53547e2.system.entry.js.map} +0 -0
  616. /package/dist/pine-core/{p-b2796d3c.system.entry.js.map → p-e7322ff9.system.entry.js.map} +0 -0
  617. /package/dist/pine-core/{p-83c632f6.system.entry.js.map → p-e8a4eafa.system.entry.js.map} +0 -0
  618. /package/dist/pine-core/{p-f9e01886.system.entry.js.map → p-ec1c3452.system.entry.js.map} +0 -0
  619. /package/dist/pine-core/{p-a394645a.system.entry.js.map → p-eef645bd.system.entry.js.map} +0 -0
  620. /package/dist/pine-core/{p-cd2cd116.entry.js.map → p-ef08f005.entry.js.map} +0 -0
  621. /package/dist/pine-core/{p-0572825b.entry.js.map → p-f29baa16.entry.js.map} +0 -0
  622. /package/dist/pine-core/{p-4ff0838c.entry.js.map → p-f30b1479.entry.js.map} +0 -0
  623. /package/dist/pine-core/{p-21c3aaeb.entry.js.map → p-f455deb5.entry.js.map} +0 -0
  624. /package/dist/pine-core/{p-f47133fd.entry.js.map → p-f7c02b89.entry.js.map} +0 -0
  625. /package/dist/pine-core/{p-e6d6e103.entry.js.map → p-f9005ac9.entry.js.map} +0 -0
  626. /package/dist/pine-core/{p-99b5e1a5.entry.js.map → p-fd3b7077.entry.js.map} +0 -0
  627. /package/dist/pine-core/{p-1b109c01.entry.js.map → p-fe73a67f.entry.js.map} +0 -0
@@ -1,1323 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-CxX7ua5d.js');
4
-
5
- /**
6
- * Custom positioning reference element.
7
- * @see https://floating-ui.com/docs/virtual-elements
8
- */
9
-
10
- const min = Math.min;
11
- const max = Math.max;
12
- const round = Math.round;
13
- const createCoords = v => ({
14
- x: v,
15
- y: v
16
- });
17
- const oppositeSideMap = {
18
- left: 'right',
19
- right: 'left',
20
- bottom: 'top',
21
- top: 'bottom'
22
- };
23
- const oppositeAlignmentMap = {
24
- start: 'end',
25
- end: 'start'
26
- };
27
- function clamp(start, value, end) {
28
- return max(start, min(value, end));
29
- }
30
- function evaluate(value, param) {
31
- return typeof value === 'function' ? value(param) : value;
32
- }
33
- function getSide(placement) {
34
- return placement.split('-')[0];
35
- }
36
- function getAlignment(placement) {
37
- return placement.split('-')[1];
38
- }
39
- function getOppositeAxis(axis) {
40
- return axis === 'x' ? 'y' : 'x';
41
- }
42
- function getAxisLength(axis) {
43
- return axis === 'y' ? 'height' : 'width';
44
- }
45
- function getSideAxis(placement) {
46
- return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
47
- }
48
- function getAlignmentAxis(placement) {
49
- return getOppositeAxis(getSideAxis(placement));
50
- }
51
- function getAlignmentSides(placement, rects, rtl) {
52
- if (rtl === void 0) {
53
- rtl = false;
54
- }
55
- const alignment = getAlignment(placement);
56
- const alignmentAxis = getAlignmentAxis(placement);
57
- const length = getAxisLength(alignmentAxis);
58
- let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
59
- if (rects.reference[length] > rects.floating[length]) {
60
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
61
- }
62
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
63
- }
64
- function getExpandedPlacements(placement) {
65
- const oppositePlacement = getOppositePlacement(placement);
66
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
67
- }
68
- function getOppositeAlignmentPlacement(placement) {
69
- return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
70
- }
71
- function getSideList(side, isStart, rtl) {
72
- const lr = ['left', 'right'];
73
- const rl = ['right', 'left'];
74
- const tb = ['top', 'bottom'];
75
- const bt = ['bottom', 'top'];
76
- switch (side) {
77
- case 'top':
78
- case 'bottom':
79
- if (rtl) return isStart ? rl : lr;
80
- return isStart ? lr : rl;
81
- case 'left':
82
- case 'right':
83
- return isStart ? tb : bt;
84
- default:
85
- return [];
86
- }
87
- }
88
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
89
- const alignment = getAlignment(placement);
90
- let list = getSideList(getSide(placement), direction === 'start', rtl);
91
- if (alignment) {
92
- list = list.map(side => side + "-" + alignment);
93
- if (flipAlignment) {
94
- list = list.concat(list.map(getOppositeAlignmentPlacement));
95
- }
96
- }
97
- return list;
98
- }
99
- function getOppositePlacement(placement) {
100
- return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
101
- }
102
- function expandPaddingObject(padding) {
103
- return {
104
- top: 0,
105
- right: 0,
106
- bottom: 0,
107
- left: 0,
108
- ...padding
109
- };
110
- }
111
- function getPaddingObject(padding) {
112
- return typeof padding !== 'number' ? expandPaddingObject(padding) : {
113
- top: padding,
114
- right: padding,
115
- bottom: padding,
116
- left: padding
117
- };
118
- }
119
- function rectToClientRect(rect) {
120
- const {
121
- x,
122
- y,
123
- width,
124
- height
125
- } = rect;
126
- return {
127
- width,
128
- height,
129
- top: y,
130
- left: x,
131
- right: x + width,
132
- bottom: y + height,
133
- x,
134
- y
135
- };
136
- }
137
-
138
- function computeCoordsFromPlacement(_ref, placement, rtl) {
139
- let {
140
- reference,
141
- floating
142
- } = _ref;
143
- const sideAxis = getSideAxis(placement);
144
- const alignmentAxis = getAlignmentAxis(placement);
145
- const alignLength = getAxisLength(alignmentAxis);
146
- const side = getSide(placement);
147
- const isVertical = sideAxis === 'y';
148
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
149
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
150
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
151
- let coords;
152
- switch (side) {
153
- case 'top':
154
- coords = {
155
- x: commonX,
156
- y: reference.y - floating.height
157
- };
158
- break;
159
- case 'bottom':
160
- coords = {
161
- x: commonX,
162
- y: reference.y + reference.height
163
- };
164
- break;
165
- case 'right':
166
- coords = {
167
- x: reference.x + reference.width,
168
- y: commonY
169
- };
170
- break;
171
- case 'left':
172
- coords = {
173
- x: reference.x - floating.width,
174
- y: commonY
175
- };
176
- break;
177
- default:
178
- coords = {
179
- x: reference.x,
180
- y: reference.y
181
- };
182
- }
183
- switch (getAlignment(placement)) {
184
- case 'start':
185
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
186
- break;
187
- case 'end':
188
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
189
- break;
190
- }
191
- return coords;
192
- }
193
-
194
- /**
195
- * Computes the `x` and `y` coordinates that will place the floating element
196
- * next to a given reference element.
197
- *
198
- * This export does not have any `platform` interface logic. You will need to
199
- * write one for the platform you are using Floating UI with.
200
- */
201
- const computePosition$1 = async (reference, floating, config) => {
202
- const {
203
- placement = 'bottom',
204
- strategy = 'absolute',
205
- middleware = [],
206
- platform
207
- } = config;
208
- const validMiddleware = middleware.filter(Boolean);
209
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
210
- let rects = await platform.getElementRects({
211
- reference,
212
- floating,
213
- strategy
214
- });
215
- let {
216
- x,
217
- y
218
- } = computeCoordsFromPlacement(rects, placement, rtl);
219
- let statefulPlacement = placement;
220
- let middlewareData = {};
221
- let resetCount = 0;
222
- for (let i = 0; i < validMiddleware.length; i++) {
223
- const {
224
- name,
225
- fn
226
- } = validMiddleware[i];
227
- const {
228
- x: nextX,
229
- y: nextY,
230
- data,
231
- reset
232
- } = await fn({
233
- x,
234
- y,
235
- initialPlacement: placement,
236
- placement: statefulPlacement,
237
- strategy,
238
- middlewareData,
239
- rects,
240
- platform,
241
- elements: {
242
- reference,
243
- floating
244
- }
245
- });
246
- x = nextX != null ? nextX : x;
247
- y = nextY != null ? nextY : y;
248
- middlewareData = {
249
- ...middlewareData,
250
- [name]: {
251
- ...middlewareData[name],
252
- ...data
253
- }
254
- };
255
- if (reset && resetCount <= 50) {
256
- resetCount++;
257
- if (typeof reset === 'object') {
258
- if (reset.placement) {
259
- statefulPlacement = reset.placement;
260
- }
261
- if (reset.rects) {
262
- rects = reset.rects === true ? await platform.getElementRects({
263
- reference,
264
- floating,
265
- strategy
266
- }) : reset.rects;
267
- }
268
- ({
269
- x,
270
- y
271
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
272
- }
273
- i = -1;
274
- }
275
- }
276
- return {
277
- x,
278
- y,
279
- placement: statefulPlacement,
280
- strategy,
281
- middlewareData
282
- };
283
- };
284
-
285
- /**
286
- * Resolves with an object of overflow side offsets that determine how much the
287
- * element is overflowing a given clipping boundary on each side.
288
- * - positive = overflowing the boundary by that number of pixels
289
- * - negative = how many pixels left before it will overflow
290
- * - 0 = lies flush with the boundary
291
- * @see https://floating-ui.com/docs/detectOverflow
292
- */
293
- async function detectOverflow(state, options) {
294
- var _await$platform$isEle;
295
- if (options === void 0) {
296
- options = {};
297
- }
298
- const {
299
- x,
300
- y,
301
- platform,
302
- rects,
303
- elements,
304
- strategy
305
- } = state;
306
- const {
307
- boundary = 'clippingAncestors',
308
- rootBoundary = 'viewport',
309
- elementContext = 'floating',
310
- altBoundary = false,
311
- padding = 0
312
- } = evaluate(options, state);
313
- const paddingObject = getPaddingObject(padding);
314
- const altContext = elementContext === 'floating' ? 'reference' : 'floating';
315
- const element = elements[altBoundary ? altContext : elementContext];
316
- const clippingClientRect = rectToClientRect(await platform.getClippingRect({
317
- element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
318
- boundary,
319
- rootBoundary,
320
- strategy
321
- }));
322
- const rect = elementContext === 'floating' ? {
323
- x,
324
- y,
325
- width: rects.floating.width,
326
- height: rects.floating.height
327
- } : rects.reference;
328
- const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
329
- const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
330
- x: 1,
331
- y: 1
332
- } : {
333
- x: 1,
334
- y: 1
335
- };
336
- const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
337
- elements,
338
- rect,
339
- offsetParent,
340
- strategy
341
- }) : rect);
342
- return {
343
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
344
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
345
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
346
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
347
- };
348
- }
349
-
350
- /**
351
- * Optimizes the visibility of the floating element by flipping the `placement`
352
- * in order to keep it in view when the preferred placement(s) will overflow the
353
- * clipping boundary. Alternative to `autoPlacement`.
354
- * @see https://floating-ui.com/docs/flip
355
- */
356
- const flip$1 = function (options) {
357
- if (options === void 0) {
358
- options = {};
359
- }
360
- return {
361
- name: 'flip',
362
- options,
363
- async fn(state) {
364
- var _middlewareData$arrow, _middlewareData$flip;
365
- const {
366
- placement,
367
- middlewareData,
368
- rects,
369
- initialPlacement,
370
- platform,
371
- elements
372
- } = state;
373
- const {
374
- mainAxis: checkMainAxis = true,
375
- crossAxis: checkCrossAxis = true,
376
- fallbackPlacements: specifiedFallbackPlacements,
377
- fallbackStrategy = 'bestFit',
378
- fallbackAxisSideDirection = 'none',
379
- flipAlignment = true,
380
- ...detectOverflowOptions
381
- } = evaluate(options, state);
382
-
383
- // If a reset by the arrow was caused due to an alignment offset being
384
- // added, we should skip any logic now since `flip()` has already done its
385
- // work.
386
- // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
387
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
388
- return {};
389
- }
390
- const side = getSide(placement);
391
- const initialSideAxis = getSideAxis(initialPlacement);
392
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
393
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
394
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
395
- const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
396
- if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
397
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
398
- }
399
- const placements = [initialPlacement, ...fallbackPlacements];
400
- const overflow = await detectOverflow(state, detectOverflowOptions);
401
- const overflows = [];
402
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
403
- if (checkMainAxis) {
404
- overflows.push(overflow[side]);
405
- }
406
- if (checkCrossAxis) {
407
- const sides = getAlignmentSides(placement, rects, rtl);
408
- overflows.push(overflow[sides[0]], overflow[sides[1]]);
409
- }
410
- overflowsData = [...overflowsData, {
411
- placement,
412
- overflows
413
- }];
414
-
415
- // One or more sides is overflowing.
416
- if (!overflows.every(side => side <= 0)) {
417
- var _middlewareData$flip2, _overflowsData$filter;
418
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
419
- const nextPlacement = placements[nextIndex];
420
- if (nextPlacement) {
421
- var _overflowsData$;
422
- const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
423
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
424
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
425
- // Try next placement and re-run the lifecycle.
426
- return {
427
- data: {
428
- index: nextIndex,
429
- overflows: overflowsData
430
- },
431
- reset: {
432
- placement: nextPlacement
433
- }
434
- };
435
- }
436
- }
437
-
438
- // First, find the candidates that fit on the mainAxis side of overflow,
439
- // then find the placement that fits the best on the main crossAxis side.
440
- let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
441
-
442
- // Otherwise fallback.
443
- if (!resetPlacement) {
444
- switch (fallbackStrategy) {
445
- case 'bestFit':
446
- {
447
- var _overflowsData$filter2;
448
- const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
449
- if (hasFallbackAxisSideDirection) {
450
- const currentSideAxis = getSideAxis(d.placement);
451
- return currentSideAxis === initialSideAxis ||
452
- // Create a bias to the `y` side axis due to horizontal
453
- // reading directions favoring greater width.
454
- currentSideAxis === 'y';
455
- }
456
- return true;
457
- }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
458
- if (placement) {
459
- resetPlacement = placement;
460
- }
461
- break;
462
- }
463
- case 'initialPlacement':
464
- resetPlacement = initialPlacement;
465
- break;
466
- }
467
- }
468
- if (placement !== resetPlacement) {
469
- return {
470
- reset: {
471
- placement: resetPlacement
472
- }
473
- };
474
- }
475
- }
476
- return {};
477
- }
478
- };
479
- };
480
-
481
- // For type backwards-compatibility, the `OffsetOptions` type was also
482
- // Derivable.
483
-
484
- async function convertValueToCoords(state, options) {
485
- const {
486
- placement,
487
- platform,
488
- elements
489
- } = state;
490
- const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
491
- const side = getSide(placement);
492
- const alignment = getAlignment(placement);
493
- const isVertical = getSideAxis(placement) === 'y';
494
- const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
495
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
496
- const rawValue = evaluate(options, state);
497
-
498
- // eslint-disable-next-line prefer-const
499
- let {
500
- mainAxis,
501
- crossAxis,
502
- alignmentAxis
503
- } = typeof rawValue === 'number' ? {
504
- mainAxis: rawValue,
505
- crossAxis: 0,
506
- alignmentAxis: null
507
- } : {
508
- mainAxis: rawValue.mainAxis || 0,
509
- crossAxis: rawValue.crossAxis || 0,
510
- alignmentAxis: rawValue.alignmentAxis
511
- };
512
- if (alignment && typeof alignmentAxis === 'number') {
513
- crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
514
- }
515
- return isVertical ? {
516
- x: crossAxis * crossAxisMulti,
517
- y: mainAxis * mainAxisMulti
518
- } : {
519
- x: mainAxis * mainAxisMulti,
520
- y: crossAxis * crossAxisMulti
521
- };
522
- }
523
-
524
- /**
525
- * Modifies the placement by translating the floating element along the
526
- * specified axes.
527
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
528
- * object may be passed.
529
- * @see https://floating-ui.com/docs/offset
530
- */
531
- const offset$1 = function (options) {
532
- if (options === void 0) {
533
- options = 0;
534
- }
535
- return {
536
- name: 'offset',
537
- options,
538
- async fn(state) {
539
- var _middlewareData$offse, _middlewareData$arrow;
540
- const {
541
- x,
542
- y,
543
- placement,
544
- middlewareData
545
- } = state;
546
- const diffCoords = await convertValueToCoords(state, options);
547
-
548
- // If the placement is the same and the arrow caused an alignment offset
549
- // then we don't need to change the positioning coordinates.
550
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
551
- return {};
552
- }
553
- return {
554
- x: x + diffCoords.x,
555
- y: y + diffCoords.y,
556
- data: {
557
- ...diffCoords,
558
- placement
559
- }
560
- };
561
- }
562
- };
563
- };
564
-
565
- /**
566
- * Optimizes the visibility of the floating element by shifting it in order to
567
- * keep it in view when it will overflow the clipping boundary.
568
- * @see https://floating-ui.com/docs/shift
569
- */
570
- const shift$1 = function (options) {
571
- if (options === void 0) {
572
- options = {};
573
- }
574
- return {
575
- name: 'shift',
576
- options,
577
- async fn(state) {
578
- const {
579
- x,
580
- y,
581
- placement
582
- } = state;
583
- const {
584
- mainAxis: checkMainAxis = true,
585
- crossAxis: checkCrossAxis = false,
586
- limiter = {
587
- fn: _ref => {
588
- let {
589
- x,
590
- y
591
- } = _ref;
592
- return {
593
- x,
594
- y
595
- };
596
- }
597
- },
598
- ...detectOverflowOptions
599
- } = evaluate(options, state);
600
- const coords = {
601
- x,
602
- y
603
- };
604
- const overflow = await detectOverflow(state, detectOverflowOptions);
605
- const crossAxis = getSideAxis(getSide(placement));
606
- const mainAxis = getOppositeAxis(crossAxis);
607
- let mainAxisCoord = coords[mainAxis];
608
- let crossAxisCoord = coords[crossAxis];
609
- if (checkMainAxis) {
610
- const minSide = mainAxis === 'y' ? 'top' : 'left';
611
- const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
612
- const min = mainAxisCoord + overflow[minSide];
613
- const max = mainAxisCoord - overflow[maxSide];
614
- mainAxisCoord = clamp(min, mainAxisCoord, max);
615
- }
616
- if (checkCrossAxis) {
617
- const minSide = crossAxis === 'y' ? 'top' : 'left';
618
- const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
619
- const min = crossAxisCoord + overflow[minSide];
620
- const max = crossAxisCoord - overflow[maxSide];
621
- crossAxisCoord = clamp(min, crossAxisCoord, max);
622
- }
623
- const limitedCoords = limiter.fn({
624
- ...state,
625
- [mainAxis]: mainAxisCoord,
626
- [crossAxis]: crossAxisCoord
627
- });
628
- return {
629
- ...limitedCoords,
630
- data: {
631
- x: limitedCoords.x - x,
632
- y: limitedCoords.y - y,
633
- enabled: {
634
- [mainAxis]: checkMainAxis,
635
- [crossAxis]: checkCrossAxis
636
- }
637
- }
638
- };
639
- }
640
- };
641
- };
642
-
643
- function hasWindow() {
644
- return typeof window !== 'undefined';
645
- }
646
- function getNodeName(node) {
647
- if (isNode(node)) {
648
- return (node.nodeName || '').toLowerCase();
649
- }
650
- // Mocked nodes in testing environments may not be instances of Node. By
651
- // returning `#document` an infinite loop won't occur.
652
- // https://github.com/floating-ui/floating-ui/issues/2317
653
- return '#document';
654
- }
655
- function getWindow(node) {
656
- var _node$ownerDocument;
657
- return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
658
- }
659
- function getDocumentElement(node) {
660
- var _ref;
661
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
662
- }
663
- function isNode(value) {
664
- if (!hasWindow()) {
665
- return false;
666
- }
667
- return value instanceof Node || value instanceof getWindow(value).Node;
668
- }
669
- function isElement(value) {
670
- if (!hasWindow()) {
671
- return false;
672
- }
673
- return value instanceof Element || value instanceof getWindow(value).Element;
674
- }
675
- function isHTMLElement(value) {
676
- if (!hasWindow()) {
677
- return false;
678
- }
679
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
680
- }
681
- function isShadowRoot(value) {
682
- if (!hasWindow() || typeof ShadowRoot === 'undefined') {
683
- return false;
684
- }
685
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
686
- }
687
- function isOverflowElement(element) {
688
- const {
689
- overflow,
690
- overflowX,
691
- overflowY,
692
- display
693
- } = getComputedStyle(element);
694
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
695
- }
696
- function isTableElement(element) {
697
- return ['table', 'td', 'th'].includes(getNodeName(element));
698
- }
699
- function isTopLayer(element) {
700
- return [':popover-open', ':modal'].some(selector => {
701
- try {
702
- return element.matches(selector);
703
- } catch (e) {
704
- return false;
705
- }
706
- });
707
- }
708
- function isContainingBlock(elementOrCss) {
709
- const webkit = isWebKit();
710
- const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
711
-
712
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
713
- // https://drafts.csswg.org/css-transforms-2/#individual-transforms
714
- return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
715
- }
716
- function getContainingBlock(element) {
717
- let currentNode = getParentNode(element);
718
- while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
719
- if (isContainingBlock(currentNode)) {
720
- return currentNode;
721
- } else if (isTopLayer(currentNode)) {
722
- return null;
723
- }
724
- currentNode = getParentNode(currentNode);
725
- }
726
- return null;
727
- }
728
- function isWebKit() {
729
- if (typeof CSS === 'undefined' || !CSS.supports) return false;
730
- return CSS.supports('-webkit-backdrop-filter', 'none');
731
- }
732
- function isLastTraversableNode(node) {
733
- return ['html', 'body', '#document'].includes(getNodeName(node));
734
- }
735
- function getComputedStyle(element) {
736
- return getWindow(element).getComputedStyle(element);
737
- }
738
- function getNodeScroll(element) {
739
- if (isElement(element)) {
740
- return {
741
- scrollLeft: element.scrollLeft,
742
- scrollTop: element.scrollTop
743
- };
744
- }
745
- return {
746
- scrollLeft: element.scrollX,
747
- scrollTop: element.scrollY
748
- };
749
- }
750
- function getParentNode(node) {
751
- if (getNodeName(node) === 'html') {
752
- return node;
753
- }
754
- const result =
755
- // Step into the shadow DOM of the parent of a slotted node.
756
- node.assignedSlot ||
757
- // DOM Element detected.
758
- node.parentNode ||
759
- // ShadowRoot detected.
760
- isShadowRoot(node) && node.host ||
761
- // Fallback.
762
- getDocumentElement(node);
763
- return isShadowRoot(result) ? result.host : result;
764
- }
765
- function getNearestOverflowAncestor(node) {
766
- const parentNode = getParentNode(node);
767
- if (isLastTraversableNode(parentNode)) {
768
- return node.ownerDocument ? node.ownerDocument.body : node.body;
769
- }
770
- if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
771
- return parentNode;
772
- }
773
- return getNearestOverflowAncestor(parentNode);
774
- }
775
- function getOverflowAncestors(node, list, traverseIframes) {
776
- var _node$ownerDocument2;
777
- if (list === void 0) {
778
- list = [];
779
- }
780
- const scrollableAncestor = getNearestOverflowAncestor(node);
781
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
782
- const win = getWindow(scrollableAncestor);
783
- if (isBody) {
784
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
785
- }
786
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
787
- }
788
- function getFrameElement(win) {
789
- return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
790
- }
791
-
792
- function getCssDimensions(element) {
793
- const css = getComputedStyle(element);
794
- // In testing environments, the `width` and `height` properties are empty
795
- // strings for SVG elements, returning NaN. Fallback to `0` in this case.
796
- let width = parseFloat(css.width) || 0;
797
- let height = parseFloat(css.height) || 0;
798
- const hasOffset = isHTMLElement(element);
799
- const offsetWidth = hasOffset ? element.offsetWidth : width;
800
- const offsetHeight = hasOffset ? element.offsetHeight : height;
801
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
802
- if (shouldFallback) {
803
- width = offsetWidth;
804
- height = offsetHeight;
805
- }
806
- return {
807
- width,
808
- height,
809
- $: shouldFallback
810
- };
811
- }
812
-
813
- function unwrapElement(element) {
814
- return !isElement(element) ? element.contextElement : element;
815
- }
816
-
817
- function getScale(element) {
818
- const domElement = unwrapElement(element);
819
- if (!isHTMLElement(domElement)) {
820
- return createCoords(1);
821
- }
822
- const rect = domElement.getBoundingClientRect();
823
- const {
824
- width,
825
- height,
826
- $
827
- } = getCssDimensions(domElement);
828
- let x = ($ ? round(rect.width) : rect.width) / width;
829
- let y = ($ ? round(rect.height) : rect.height) / height;
830
-
831
- // 0, NaN, or Infinity should always fallback to 1.
832
-
833
- if (!x || !Number.isFinite(x)) {
834
- x = 1;
835
- }
836
- if (!y || !Number.isFinite(y)) {
837
- y = 1;
838
- }
839
- return {
840
- x,
841
- y
842
- };
843
- }
844
-
845
- const noOffsets = /*#__PURE__*/createCoords(0);
846
- function getVisualOffsets(element) {
847
- const win = getWindow(element);
848
- if (!isWebKit() || !win.visualViewport) {
849
- return noOffsets;
850
- }
851
- return {
852
- x: win.visualViewport.offsetLeft,
853
- y: win.visualViewport.offsetTop
854
- };
855
- }
856
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
857
- if (isFixed === void 0) {
858
- isFixed = false;
859
- }
860
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
861
- return false;
862
- }
863
- return isFixed;
864
- }
865
-
866
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
867
- if (includeScale === void 0) {
868
- includeScale = false;
869
- }
870
- if (isFixedStrategy === void 0) {
871
- isFixedStrategy = false;
872
- }
873
- const clientRect = element.getBoundingClientRect();
874
- const domElement = unwrapElement(element);
875
- let scale = createCoords(1);
876
- if (includeScale) {
877
- if (offsetParent) {
878
- if (isElement(offsetParent)) {
879
- scale = getScale(offsetParent);
880
- }
881
- } else {
882
- scale = getScale(element);
883
- }
884
- }
885
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
886
- let x = (clientRect.left + visualOffsets.x) / scale.x;
887
- let y = (clientRect.top + visualOffsets.y) / scale.y;
888
- let width = clientRect.width / scale.x;
889
- let height = clientRect.height / scale.y;
890
- if (domElement) {
891
- const win = getWindow(domElement);
892
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
893
- let currentWin = win;
894
- let currentIFrame = getFrameElement(currentWin);
895
- while (currentIFrame && offsetParent && offsetWin !== currentWin) {
896
- const iframeScale = getScale(currentIFrame);
897
- const iframeRect = currentIFrame.getBoundingClientRect();
898
- const css = getComputedStyle(currentIFrame);
899
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
900
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
901
- x *= iframeScale.x;
902
- y *= iframeScale.y;
903
- width *= iframeScale.x;
904
- height *= iframeScale.y;
905
- x += left;
906
- y += top;
907
- currentWin = getWindow(currentIFrame);
908
- currentIFrame = getFrameElement(currentWin);
909
- }
910
- }
911
- return rectToClientRect({
912
- width,
913
- height,
914
- x,
915
- y
916
- });
917
- }
918
-
919
- // If <html> has a CSS width greater than the viewport, then this will be
920
- // incorrect for RTL.
921
- function getWindowScrollBarX(element, rect) {
922
- const leftScroll = getNodeScroll(element).scrollLeft;
923
- if (!rect) {
924
- return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
925
- }
926
- return rect.left + leftScroll;
927
- }
928
-
929
- function getHTMLOffset(documentElement, scroll, ignoreScrollbarX) {
930
- if (ignoreScrollbarX === void 0) {
931
- ignoreScrollbarX = false;
932
- }
933
- const htmlRect = documentElement.getBoundingClientRect();
934
- const x = htmlRect.left + scroll.scrollLeft - (ignoreScrollbarX ? 0 :
935
- // RTL <body> scrollbar.
936
- getWindowScrollBarX(documentElement, htmlRect));
937
- const y = htmlRect.top + scroll.scrollTop;
938
- return {
939
- x,
940
- y
941
- };
942
- }
943
-
944
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
945
- let {
946
- elements,
947
- rect,
948
- offsetParent,
949
- strategy
950
- } = _ref;
951
- const isFixed = strategy === 'fixed';
952
- const documentElement = getDocumentElement(offsetParent);
953
- const topLayer = elements ? isTopLayer(elements.floating) : false;
954
- if (offsetParent === documentElement || topLayer && isFixed) {
955
- return rect;
956
- }
957
- let scroll = {
958
- scrollLeft: 0,
959
- scrollTop: 0
960
- };
961
- let scale = createCoords(1);
962
- const offsets = createCoords(0);
963
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
964
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
965
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
966
- scroll = getNodeScroll(offsetParent);
967
- }
968
- if (isHTMLElement(offsetParent)) {
969
- const offsetRect = getBoundingClientRect(offsetParent);
970
- scale = getScale(offsetParent);
971
- offsets.x = offsetRect.x + offsetParent.clientLeft;
972
- offsets.y = offsetRect.y + offsetParent.clientTop;
973
- }
974
- }
975
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll, true) : createCoords(0);
976
- return {
977
- width: rect.width * scale.x,
978
- height: rect.height * scale.y,
979
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
980
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
981
- };
982
- }
983
-
984
- function getClientRects(element) {
985
- return Array.from(element.getClientRects());
986
- }
987
-
988
- // Gets the entire size of the scrollable document area, even extending outside
989
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable.
990
- function getDocumentRect(element) {
991
- const html = getDocumentElement(element);
992
- const scroll = getNodeScroll(element);
993
- const body = element.ownerDocument.body;
994
- const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
995
- const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
996
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
997
- const y = -scroll.scrollTop;
998
- if (getComputedStyle(body).direction === 'rtl') {
999
- x += max(html.clientWidth, body.clientWidth) - width;
1000
- }
1001
- return {
1002
- width,
1003
- height,
1004
- x,
1005
- y
1006
- };
1007
- }
1008
-
1009
- function getViewportRect(element, strategy) {
1010
- const win = getWindow(element);
1011
- const html = getDocumentElement(element);
1012
- const visualViewport = win.visualViewport;
1013
- let width = html.clientWidth;
1014
- let height = html.clientHeight;
1015
- let x = 0;
1016
- let y = 0;
1017
- if (visualViewport) {
1018
- width = visualViewport.width;
1019
- height = visualViewport.height;
1020
- const visualViewportBased = isWebKit();
1021
- if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
1022
- x = visualViewport.offsetLeft;
1023
- y = visualViewport.offsetTop;
1024
- }
1025
- }
1026
- return {
1027
- width,
1028
- height,
1029
- x,
1030
- y
1031
- };
1032
- }
1033
-
1034
- // Returns the inner client rect, subtracting scrollbars if present.
1035
- function getInnerBoundingClientRect(element, strategy) {
1036
- const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
1037
- const top = clientRect.top + element.clientTop;
1038
- const left = clientRect.left + element.clientLeft;
1039
- const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
1040
- const width = element.clientWidth * scale.x;
1041
- const height = element.clientHeight * scale.y;
1042
- const x = left * scale.x;
1043
- const y = top * scale.y;
1044
- return {
1045
- width,
1046
- height,
1047
- x,
1048
- y
1049
- };
1050
- }
1051
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1052
- let rect;
1053
- if (clippingAncestor === 'viewport') {
1054
- rect = getViewportRect(element, strategy);
1055
- } else if (clippingAncestor === 'document') {
1056
- rect = getDocumentRect(getDocumentElement(element));
1057
- } else if (isElement(clippingAncestor)) {
1058
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1059
- } else {
1060
- const visualOffsets = getVisualOffsets(element);
1061
- rect = {
1062
- x: clippingAncestor.x - visualOffsets.x,
1063
- y: clippingAncestor.y - visualOffsets.y,
1064
- width: clippingAncestor.width,
1065
- height: clippingAncestor.height
1066
- };
1067
- }
1068
- return rectToClientRect(rect);
1069
- }
1070
- function hasFixedPositionAncestor(element, stopNode) {
1071
- const parentNode = getParentNode(element);
1072
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1073
- return false;
1074
- }
1075
- return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1076
- }
1077
-
1078
- // A "clipping ancestor" is an `overflow` element with the characteristic of
1079
- // clipping (or hiding) child elements. This returns all clipping ancestors
1080
- // of the given element up the tree.
1081
- function getClippingElementAncestors(element, cache) {
1082
- const cachedResult = cache.get(element);
1083
- if (cachedResult) {
1084
- return cachedResult;
1085
- }
1086
- let result = getOverflowAncestors(element, []).filter(el => isElement(el) && getNodeName(el) !== 'body');
1087
- let currentContainingBlockComputedStyle = null;
1088
- const elementIsFixed = getComputedStyle(element).position === 'fixed';
1089
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1090
-
1091
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1092
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1093
- const computedStyle = getComputedStyle(currentNode);
1094
- const currentNodeIsContaining = isContainingBlock(currentNode);
1095
- if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1096
- currentContainingBlockComputedStyle = null;
1097
- }
1098
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1099
- if (shouldDropCurrentNode) {
1100
- // Drop non-containing blocks.
1101
- result = result.filter(ancestor => ancestor !== currentNode);
1102
- } else {
1103
- // Record last containing block for next iteration.
1104
- currentContainingBlockComputedStyle = computedStyle;
1105
- }
1106
- currentNode = getParentNode(currentNode);
1107
- }
1108
- cache.set(element, result);
1109
- return result;
1110
- }
1111
-
1112
- // Gets the maximum area that the element is visible in due to any number of
1113
- // clipping ancestors.
1114
- function getClippingRect(_ref) {
1115
- let {
1116
- element,
1117
- boundary,
1118
- rootBoundary,
1119
- strategy
1120
- } = _ref;
1121
- const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1122
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1123
- const firstClippingAncestor = clippingAncestors[0];
1124
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1125
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1126
- accRect.top = max(rect.top, accRect.top);
1127
- accRect.right = min(rect.right, accRect.right);
1128
- accRect.bottom = min(rect.bottom, accRect.bottom);
1129
- accRect.left = max(rect.left, accRect.left);
1130
- return accRect;
1131
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1132
- return {
1133
- width: clippingRect.right - clippingRect.left,
1134
- height: clippingRect.bottom - clippingRect.top,
1135
- x: clippingRect.left,
1136
- y: clippingRect.top
1137
- };
1138
- }
1139
-
1140
- function getDimensions(element) {
1141
- const {
1142
- width,
1143
- height
1144
- } = getCssDimensions(element);
1145
- return {
1146
- width,
1147
- height
1148
- };
1149
- }
1150
-
1151
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1152
- const isOffsetParentAnElement = isHTMLElement(offsetParent);
1153
- const documentElement = getDocumentElement(offsetParent);
1154
- const isFixed = strategy === 'fixed';
1155
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1156
- let scroll = {
1157
- scrollLeft: 0,
1158
- scrollTop: 0
1159
- };
1160
- const offsets = createCoords(0);
1161
-
1162
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
1163
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
1164
- function setLeftRTLScrollbarOffset() {
1165
- offsets.x = getWindowScrollBarX(documentElement);
1166
- }
1167
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1168
- if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
1169
- scroll = getNodeScroll(offsetParent);
1170
- }
1171
- if (isOffsetParentAnElement) {
1172
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1173
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1174
- offsets.y = offsetRect.y + offsetParent.clientTop;
1175
- } else if (documentElement) {
1176
- setLeftRTLScrollbarOffset();
1177
- }
1178
- }
1179
- if (isFixed && !isOffsetParentAnElement && documentElement) {
1180
- setLeftRTLScrollbarOffset();
1181
- }
1182
- const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
1183
- const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
1184
- const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
1185
- return {
1186
- x,
1187
- y,
1188
- width: rect.width,
1189
- height: rect.height
1190
- };
1191
- }
1192
-
1193
- function isStaticPositioned(element) {
1194
- return getComputedStyle(element).position === 'static';
1195
- }
1196
-
1197
- function getTrueOffsetParent(element, polyfill) {
1198
- if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
1199
- return null;
1200
- }
1201
- if (polyfill) {
1202
- return polyfill(element);
1203
- }
1204
- let rawOffsetParent = element.offsetParent;
1205
-
1206
- // Firefox returns the <html> element as the offsetParent if it's non-static,
1207
- // while Chrome and Safari return the <body> element. The <body> element must
1208
- // be used to perform the correct calculations even if the <html> element is
1209
- // non-static.
1210
- if (getDocumentElement(element) === rawOffsetParent) {
1211
- rawOffsetParent = rawOffsetParent.ownerDocument.body;
1212
- }
1213
- return rawOffsetParent;
1214
- }
1215
-
1216
- // Gets the closest ancestor positioned element. Handles some edge cases,
1217
- // such as table ancestors and cross browser bugs.
1218
- function getOffsetParent(element, polyfill) {
1219
- const win = getWindow(element);
1220
- if (isTopLayer(element)) {
1221
- return win;
1222
- }
1223
- if (!isHTMLElement(element)) {
1224
- let svgOffsetParent = getParentNode(element);
1225
- while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1226
- if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1227
- return svgOffsetParent;
1228
- }
1229
- svgOffsetParent = getParentNode(svgOffsetParent);
1230
- }
1231
- return win;
1232
- }
1233
- let offsetParent = getTrueOffsetParent(element, polyfill);
1234
- while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1235
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1236
- }
1237
- if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1238
- return win;
1239
- }
1240
- return offsetParent || getContainingBlock(element) || win;
1241
- }
1242
-
1243
- const getElementRects = async function (data) {
1244
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1245
- const getDimensionsFn = this.getDimensions;
1246
- const floatingDimensions = await getDimensionsFn(data.floating);
1247
- return {
1248
- reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1249
- floating: {
1250
- x: 0,
1251
- y: 0,
1252
- width: floatingDimensions.width,
1253
- height: floatingDimensions.height
1254
- }
1255
- };
1256
- };
1257
-
1258
- function isRTL(element) {
1259
- return getComputedStyle(element).direction === 'rtl';
1260
- }
1261
-
1262
- const platform = {
1263
- convertOffsetParentRelativeRectToViewportRelativeRect,
1264
- getDocumentElement,
1265
- getClippingRect,
1266
- getOffsetParent,
1267
- getElementRects,
1268
- getClientRects,
1269
- getDimensions,
1270
- getScale,
1271
- isElement,
1272
- isRTL
1273
- };
1274
-
1275
- /**
1276
- * Modifies the placement by translating the floating element along the
1277
- * specified axes.
1278
- * A number (shorthand for `mainAxis` or distance), or an axes configuration
1279
- * object may be passed.
1280
- * @see https://floating-ui.com/docs/offset
1281
- */
1282
- const offset = offset$1;
1283
-
1284
- /**
1285
- * Optimizes the visibility of the floating element by shifting it in order to
1286
- * keep it in view when it will overflow the clipping boundary.
1287
- * @see https://floating-ui.com/docs/shift
1288
- */
1289
- const shift = shift$1;
1290
-
1291
- /**
1292
- * Optimizes the visibility of the floating element by flipping the `placement`
1293
- * in order to keep it in view when the preferred placement(s) will overflow the
1294
- * clipping boundary. Alternative to `autoPlacement`.
1295
- * @see https://floating-ui.com/docs/flip
1296
- */
1297
- const flip = flip$1;
1298
-
1299
- /**
1300
- * Computes the `x` and `y` coordinates that will place the floating element
1301
- * next to a given reference element.
1302
- */
1303
- const computePosition = (reference, floating, options) => {
1304
- // This caches the expensive `getClippingElementAncestors` function so that
1305
- // multiple lifecycle resets re-use the same result. It only lives for a
1306
- // single call. If other functions become expensive, we can add them as well.
1307
- const cache = new Map();
1308
- const mergedOptions = {
1309
- platform,
1310
- ...options
1311
- };
1312
- const platformWithCache = {
1313
- ...mergedOptions.platform,
1314
- _c: cache
1315
- };
1316
- return computePosition$1(reference, floating, {
1317
- ...mergedOptions,
1318
- platform: platformWithCache
1319
- });
1320
- };
4
+ var floatingUi_dom = require('./floating-ui.dom-Bz4BD-cr.js');
1321
5
 
1322
6
  const pdsDropdownMenuCss = ":host{display:block}.is-hidden{display:none}.pds-dropdown-menu--panel{background-color:var(--pine-color-background-container);left:var(--pine-dimension-none);min-width:170px;padding:var(--pine-dimension-xs);position:absolute;z-index:9999}";
1323
7
 
@@ -1367,9 +51,9 @@ const PdsDropdownMenu = class {
1367
51
  // Open the dropdown and position it
1368
52
  this.openDropdown = () => {
1369
53
  var _a;
1370
- computePosition(this.triggerEl, this.panelEl, {
54
+ floatingUi_dom.computePosition(this.triggerEl, this.panelEl, {
1371
55
  placement: this.placement,
1372
- middleware: [offset(6), flip(), shift({ padding: 5 })],
56
+ middleware: [floatingUi_dom.offset(6), floatingUi_dom.flip(), floatingUi_dom.shift({ padding: 5 })],
1373
57
  }).then(({ x, y }) => {
1374
58
  Object.assign(this.panelEl.style, {
1375
59
  left: `${x}px`,
@@ -1562,7 +246,7 @@ const PdsDropdownMenu = class {
1562
246
  }
1563
247
  }
1564
248
  render() {
1565
- return (index.h(index.Host, { key: '492d6a2baba8c0cf5e05a6c34b774900f5da6886', id: this.componentId }, index.h("slot", { key: '9d57ee287cff289693c941410bcc62bb9fb1da95', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), index.h("pds-box", { key: '62ae569a3bf7f958c01cfe1a74d174e413763f72', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical" }, index.h("slot", { key: 'ea6d26124c06683e4fde23bc29f955cb04468d7a', onSlotchange: this.handleSlotChange }))));
249
+ return (index.h(index.Host, { key: '1e4384c8ab3fb3ca73221dd7a7f156846e9b8274', id: this.componentId }, index.h("slot", { key: '0b3b532a025580b36bbe06f86bdb776d99e0c896', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), index.h("pds-box", { key: '20229e833fa45ff5ce730d3a38e8faab582335c6', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical" }, index.h("slot", { key: '47cad78c2e1b5150be13a399820fe64d09955e9d', onSlotchange: this.handleSlotChange }))));
1566
250
  }
1567
251
  get host() { return index.getElement(this); }
1568
252
  };