@onereach/ui-components 4.7.5 → 4.7.7-beta.2877.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 (289) hide show
  1. package/dist/bundled/v2/{get-73ac2f59.js → _MapCache-24a89ff6.js} +11 -260
  2. package/dist/bundled/v2/{_baseAssignValue-0c6c3bcc.js → _baseAssignValue-3880f2c5.js} +1 -1
  3. package/dist/bundled/v2/{_baseIsEqual-82d7a339.js → _baseIsEqual-d6b58f3c.js} +5 -5
  4. package/dist/bundled/v2/_getPrototype-c6fd74d2.js +9 -0
  5. package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +9 -5
  6. package/dist/bundled/v2/components/OrAvatar/index.js +9 -5
  7. package/dist/bundled/v2/components/OrButtonV2/OrButton.js +9 -5
  8. package/dist/bundled/v2/components/OrButtonV2/index.js +9 -5
  9. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +9 -5
  10. package/dist/bundled/v2/components/OrCardCollection/index.js +9 -5
  11. package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +9 -5
  12. package/dist/bundled/v2/components/OrCarousel/index.js +9 -5
  13. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +9 -5
  14. package/dist/bundled/v2/components/OrCheckbox/index.js +9 -5
  15. package/dist/bundled/v2/components/OrChip/OrChip.js +9 -5
  16. package/dist/bundled/v2/components/OrChip/index.js +9 -5
  17. package/dist/bundled/v2/components/OrChips/OrChips.js +9 -5
  18. package/dist/bundled/v2/components/OrChips/index.js +9 -5
  19. package/dist/bundled/v2/components/OrCode/OrCode.js +9 -5
  20. package/dist/bundled/v2/components/OrCode/index.js +9 -5
  21. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +9 -5
  22. package/dist/bundled/v2/components/OrCollapse/index.js +9 -5
  23. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +9 -5
  24. package/dist/bundled/v2/components/OrColorPicker/index.js +9 -5
  25. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +9 -5
  26. package/dist/bundled/v2/components/OrConfirm/index.js +9 -5
  27. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +11 -7
  28. package/dist/bundled/v2/components/OrDateTimePicker/index.js +11 -7
  29. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +33 -25
  30. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +15 -28
  31. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -3
  32. package/dist/bundled/v2/components/OrExpansionPanelV3/props.d.ts +0 -5
  33. package/dist/bundled/v2/components/OrExpansionPanelV3/props.js +1 -7
  34. package/dist/bundled/v2/components/OrExpansionPanelV3/styles.d.ts +3 -4
  35. package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +5 -17
  36. package/dist/bundled/v2/components/OrFloating/OrFloating.js +9 -5
  37. package/dist/bundled/v2/components/OrFloating/index.js +9 -5
  38. package/dist/bundled/v2/components/OrIcon/OrIcon.js +9 -5
  39. package/dist/bundled/v2/components/OrIcon/index.js +9 -5
  40. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +9 -5
  41. package/dist/bundled/v2/components/OrIconButtonV2/index.js +9 -5
  42. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +9 -5
  43. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +9 -5
  44. package/dist/bundled/v2/components/OrInput/OrInput.js +9 -5
  45. package/dist/bundled/v2/components/OrInput/index.js +9 -5
  46. package/dist/bundled/v2/components/OrList/OrList.js +55 -47
  47. package/dist/bundled/v2/components/OrList/index.js +44 -27
  48. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +55 -18
  49. package/dist/bundled/v2/components/OrListOfInputs/index.js +58 -21
  50. package/dist/bundled/v2/components/OrModal/OrModal.js +9 -5
  51. package/dist/bundled/v2/components/OrModal/index.js +9 -5
  52. package/dist/bundled/v2/components/OrNotification/OrNotification.js +9 -5
  53. package/dist/bundled/v2/components/OrNotification/index.js +9 -5
  54. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +9 -5
  55. package/dist/bundled/v2/components/OrNumberInput/index.js +9 -5
  56. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +9 -5
  57. package/dist/bundled/v2/components/OrOverflowMenu/index.js +9 -5
  58. package/dist/bundled/v2/components/OrPassword/OrPassword.js +9 -5
  59. package/dist/bundled/v2/components/OrPassword/index.js +9 -5
  60. package/dist/bundled/v2/components/OrProgress/OrProgress.js +7 -5
  61. package/dist/bundled/v2/components/OrProgress/index.js +7 -5
  62. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +7 -5
  63. package/dist/bundled/v2/components/OrProgressV3/index.js +7 -5
  64. package/dist/bundled/v2/components/OrRadio/OrRadio.js +10 -7
  65. package/dist/bundled/v2/components/OrRadio/index.js +10 -7
  66. package/dist/bundled/v2/components/OrSearch/OrSearch.js +9 -5
  67. package/dist/bundled/v2/components/OrSearch/index.js +9 -5
  68. package/dist/bundled/v2/components/OrSelect/OrSelect.js +12 -8
  69. package/dist/bundled/v2/components/OrSelect/index.js +12 -8
  70. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
  71. package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
  72. package/dist/bundled/v2/components/OrSkeleton/index.js +6 -5
  73. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -5
  74. package/dist/bundled/v2/components/OrSkeletonText/index.js +6 -5
  75. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -5
  76. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +6 -5
  77. package/dist/bundled/v2/components/OrSkeletonV3/index.js +6 -5
  78. package/dist/bundled/v2/components/OrSlider/OrSlider.js +9 -5
  79. package/dist/bundled/v2/components/OrSlider/index.js +9 -5
  80. package/dist/bundled/v2/components/OrStepper/OrStepper.js +9 -5
  81. package/dist/bundled/v2/components/OrStepper/index.js +9 -5
  82. package/dist/bundled/v2/components/OrTag/OrTag.js +9 -5
  83. package/dist/bundled/v2/components/OrTag/index.js +9 -5
  84. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +9 -5
  85. package/dist/bundled/v2/components/OrTextarea/index.js +9 -5
  86. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +9 -5
  87. package/dist/bundled/v2/components/OrTextbox/index.js +9 -5
  88. package/dist/bundled/v2/components/OrToast/OrToast.js +12 -8
  89. package/dist/bundled/v2/components/OrToast/index.js +12 -8
  90. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +12 -8
  91. package/dist/bundled/v2/components/OrToastContainer/index.js +12 -8
  92. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +9 -5
  93. package/dist/bundled/v2/components/OrTooltip/index.js +9 -5
  94. package/dist/bundled/v2/components/index.js +18 -14
  95. package/dist/bundled/{v3/eq-fa566495.js → v2/eq-ad84f292.js} +1 -1
  96. package/dist/bundled/v2/get-f18aa4f8.js +254 -0
  97. package/dist/bundled/v2/index.js +19 -15
  98. package/dist/bundled/v2/isArray-95dcd53a.js +27 -0
  99. package/dist/bundled/v2/{isArrayLike-acf249e3.js → isArrayLike-90deda8b.js} +1 -1
  100. package/dist/bundled/{v3/isEqual-881b7bb5.js → v2/isEqual-7ae49992.js} +1 -1
  101. package/dist/bundled/{v3/isObject-3a5b854d.js → v2/isObject-76d8037e.js} +5 -33
  102. package/dist/bundled/v2/isSymbol-e170ff61.js +31 -0
  103. package/dist/bundled/{v3/range-c87289f7.js → v2/range-4c4a4e22.js} +4 -4
  104. package/dist/bundled/{v3/round-136c7e43.js → v2/round-20828168.js} +4 -4
  105. package/dist/bundled/{v3/toFinite-021b0c50.js → v2/toFinite-a262b6fc.js} +2 -1
  106. package/dist/bundled/v2/{toInteger-db8a475d.js → toInteger-43f68f72.js} +1 -1
  107. package/dist/bundled/{v3/toString-47fa81b4.js → v2/toString-41da8a6b.js} +4 -28
  108. package/dist/bundled/v2/utils/functions/dom.js +260 -5
  109. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-552fce16.js → OrAvatar.vue_vue_type_script_lang-7f732c72.js} +1 -1
  110. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5b8437d7.js → OrButton.vue_vue_type_script_lang-925382af.js} +1 -1
  111. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-eb86b548.js → OrCardCollection.vue_vue_type_script_lang-6cd1eea5.js} +3 -3
  112. package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-75c50882.js → OrCarousel.vue_vue_type_script_lang-e1649af0.js} +1 -1
  113. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-dedfe767.js → OrCheckbox.vue_vue_type_script_lang-d6e018dc.js} +1 -1
  114. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-d0c62419.js → OrChip.vue_vue_type_script_lang-56da33d4.js} +1 -1
  115. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-d7a38038.js → OrChips.vue_vue_type_script_lang-bd587dea.js} +1 -1
  116. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-46846a36.js → OrCode.vue_vue_type_script_lang-020c575c.js} +2 -2
  117. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-e2dcce92.js → OrCollapse.vue_vue_type_script_lang-0d806abb.js} +1 -1
  118. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-2e1845d8.js → OrColorPicker.vue_vue_type_script_lang-af02cb66.js} +1 -1
  119. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-51f9e144.js → OrConfirm.vue_vue_type_script_lang-da864f6a.js} +3 -3
  120. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-882ae7ce.js → OrDateTimePicker.vue_vue_type_script_lang-60f5d92b.js} +6 -6
  121. package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-ca9d5307.js → OrExpansionPanel.vue_vue_type_script_lang-d4ed6199.js} +29 -20
  122. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d762f4b0.js → OrFloating.vue_vue_type_script_lang-b8d031af.js} +1 -1
  123. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-b77bb268.js → OrIcon.vue_vue_type_script_lang-5f31d33e.js} +1 -1
  124. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e078ed4c.js → OrIconButton.vue_vue_type_script_lang-a520c527.js} +2 -2
  125. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-588178e5.js → OrInlineTextEdit.vue_vue_type_script_lang-b8268630.js} +3 -3
  126. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-1be980cf.js → OrInput.vue_vue_type_script_lang-d38e72fb.js} +2 -2
  127. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-c6f46a0e.js → OrList.vue_vue_type_script_lang-ded22fdf.js} +18 -18
  128. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-04af76e1.js → OrListOfInputs.vue_vue_type_script_lang-931af91b.js} +4 -4
  129. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-153819d3.js → OrModal.vue_vue_type_script_lang-9354404b.js} +1 -1
  130. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-86084f5e.js → OrNotification.vue_vue_type_script_lang-e0860944.js} +2 -2
  131. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-9d6763fa.js → OrNumberInput.vue_vue_type_script_lang-a155c2ef.js} +1 -1
  132. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-ba3b94e2.js → OrOverflowMenu.vue_vue_type_script_lang-9dd62a62.js} +3 -3
  133. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-fc9e7dc8.js → OrPassword.vue_vue_type_script_lang-1103abf2.js} +2 -2
  134. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-89224310.js → OrProgress.vue_vue_type_script_lang-ab2805dc.js} +1 -1
  135. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-6a2fef77.js → OrProgress.vue_vue_type_script_lang-f604c97d.js} +1 -1
  136. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-0c087270.js → OrRadio.vue_vue_type_script_lang-9d9933f0.js} +2 -2
  137. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-933e71b8.js → OrSearch.vue_vue_type_script_lang-f7d8b9e1.js} +2 -2
  138. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-45cf8f8c.js → OrSelect.vue_vue_type_script_lang-9a24591f.js} +10 -10
  139. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-85fcf3fa.js → OrSelect.vue_vue_type_script_lang-ba73f458.js} +1 -1
  140. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-e068a58a.js → OrSkeletonText.vue_vue_type_script_lang-03ed2026.js} +1 -1
  141. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-6703fb3a.js → OrSkeletonText.vue_vue_type_script_lang-b98e5b0a.js} +1 -1
  142. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-2a698707.js → OrSlider.vue_vue_type_script_lang-08d98579.js} +2 -2
  143. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-999e65f6.js → OrStepper.vue_vue_type_script_lang-2016213b.js} +1 -1
  144. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-42a69c16.js → OrTag.vue_vue_type_script_lang-9fbd12ed.js} +1 -1
  145. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-af7cab22.js → OrTextarea.vue_vue_type_script_lang-8e7aa25c.js} +2 -2
  146. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-80e42d58.js → OrTextbox.vue_vue_type_script_lang-977fcf07.js} +3 -3
  147. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-3bf79d56.js → OrTooltip.vue_vue_type_script_lang-829c71fb.js} +1 -1
  148. package/dist/bundled/v3/{get-73ac2f59.js → _MapCache-24a89ff6.js} +11 -260
  149. package/dist/bundled/v3/{_baseAssignValue-0c6c3bcc.js → _baseAssignValue-3880f2c5.js} +1 -1
  150. package/dist/bundled/v3/{_baseIsEqual-82d7a339.js → _baseIsEqual-d6b58f3c.js} +5 -5
  151. package/dist/bundled/v3/_getPrototype-c6fd74d2.js +9 -0
  152. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +13 -9
  153. package/dist/bundled/v3/components/OrAvatar/index.js +12 -8
  154. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +13 -9
  155. package/dist/bundled/v3/components/OrButtonV2/index.js +14 -10
  156. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +18 -14
  157. package/dist/bundled/v3/components/OrCardCollection/index.js +17 -13
  158. package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +13 -9
  159. package/dist/bundled/v3/components/OrCarousel/index.js +12 -8
  160. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +13 -9
  161. package/dist/bundled/v3/components/OrCheckbox/index.js +12 -8
  162. package/dist/bundled/v3/components/OrChip/OrChip.js +13 -9
  163. package/dist/bundled/v3/components/OrChip/index.js +12 -8
  164. package/dist/bundled/v3/components/OrChips/OrChips.js +14 -10
  165. package/dist/bundled/v3/components/OrChips/index.js +13 -9
  166. package/dist/bundled/v3/components/OrCode/OrCode.js +16 -12
  167. package/dist/bundled/v3/components/OrCode/index.js +15 -11
  168. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +11 -7
  169. package/dist/bundled/v3/components/OrCollapse/index.js +10 -6
  170. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +12 -8
  171. package/dist/bundled/v3/components/OrColorPicker/index.js +11 -7
  172. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +19 -15
  173. package/dist/bundled/v3/components/OrConfirm/index.js +18 -14
  174. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +18 -14
  175. package/dist/bundled/v3/components/OrDateTimePicker/index.js +17 -13
  176. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +5 -7
  177. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +11 -22
  178. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +2 -4
  179. package/dist/bundled/v3/components/OrExpansionPanelV3/props.d.ts +0 -5
  180. package/dist/bundled/v3/components/OrExpansionPanelV3/props.js +1 -7
  181. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.d.ts +3 -4
  182. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +5 -17
  183. package/dist/bundled/v3/components/OrFloating/OrFloating.js +11 -7
  184. package/dist/bundled/v3/components/OrFloating/index.js +10 -6
  185. package/dist/bundled/v3/components/OrIcon/OrIcon.js +12 -8
  186. package/dist/bundled/v3/components/OrIcon/index.js +11 -7
  187. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +14 -10
  188. package/dist/bundled/v3/components/OrIconButtonV2/index.js +13 -9
  189. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +16 -12
  190. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +15 -11
  191. package/dist/bundled/v3/components/OrInput/OrInput.js +12 -8
  192. package/dist/bundled/v3/components/OrInput/index.js +11 -7
  193. package/dist/bundled/v3/components/OrList/OrList.js +76 -56
  194. package/dist/bundled/v3/components/OrList/index.js +55 -37
  195. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +78 -31
  196. package/dist/bundled/v3/components/OrListOfInputs/index.js +77 -30
  197. package/dist/bundled/v3/components/OrModal/OrModal.js +15 -11
  198. package/dist/bundled/v3/components/OrModal/index.js +14 -10
  199. package/dist/bundled/v3/components/OrNotification/OrNotification.js +15 -11
  200. package/dist/bundled/v3/components/OrNotification/index.js +14 -10
  201. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +13 -9
  202. package/dist/bundled/v3/components/OrNumberInput/index.js +12 -8
  203. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +16 -12
  204. package/dist/bundled/v3/components/OrOverflowMenu/index.js +15 -11
  205. package/dist/bundled/v3/components/OrPassword/OrPassword.js +17 -13
  206. package/dist/bundled/v3/components/OrPassword/index.js +16 -12
  207. package/dist/bundled/v3/components/OrProgress/OrProgress.js +9 -7
  208. package/dist/bundled/v3/components/OrProgress/index.js +8 -6
  209. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +9 -7
  210. package/dist/bundled/v3/components/OrProgressV3/index.js +8 -6
  211. package/dist/bundled/v3/components/OrRadio/OrRadio.js +12 -9
  212. package/dist/bundled/v3/components/OrRadio/index.js +11 -8
  213. package/dist/bundled/v3/components/OrSearch/OrSearch.js +17 -13
  214. package/dist/bundled/v3/components/OrSearch/index.js +16 -12
  215. package/dist/bundled/v3/components/OrSelect/OrSelect.js +18 -14
  216. package/dist/bundled/v3/components/OrSelect/index.js +17 -13
  217. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
  218. package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
  219. package/dist/bundled/v3/components/OrSkeleton/index.js +7 -6
  220. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +8 -7
  221. package/dist/bundled/v3/components/OrSkeletonText/index.js +7 -6
  222. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +8 -7
  223. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +7 -6
  224. package/dist/bundled/v3/components/OrSkeletonV3/index.js +7 -6
  225. package/dist/bundled/v3/components/OrSlider/OrSlider.js +13 -9
  226. package/dist/bundled/v3/components/OrSlider/index.js +12 -8
  227. package/dist/bundled/v3/components/OrStepper/OrStepper.js +14 -10
  228. package/dist/bundled/v3/components/OrStepper/index.js +13 -9
  229. package/dist/bundled/v3/components/OrTag/OrTag.js +13 -9
  230. package/dist/bundled/v3/components/OrTag/index.js +12 -8
  231. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +12 -8
  232. package/dist/bundled/v3/components/OrTextarea/index.js +11 -7
  233. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +16 -12
  234. package/dist/bundled/v3/components/OrTextbox/index.js +15 -11
  235. package/dist/bundled/v3/components/OrToast/OrToast.js +17 -13
  236. package/dist/bundled/v3/components/OrToast/index.js +18 -14
  237. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +19 -15
  238. package/dist/bundled/v3/components/OrToastContainer/index.js +18 -14
  239. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +12 -8
  240. package/dist/bundled/v3/components/OrTooltip/index.js +11 -7
  241. package/dist/bundled/v3/components/index.js +58 -54
  242. package/dist/bundled/{v2/eq-fa566495.js → v3/eq-ad84f292.js} +1 -1
  243. package/dist/bundled/v3/get-f18aa4f8.js +254 -0
  244. package/dist/bundled/v3/index.js +59 -55
  245. package/dist/bundled/v3/isArray-95dcd53a.js +27 -0
  246. package/dist/bundled/v3/{isArrayLike-acf249e3.js → isArrayLike-90deda8b.js} +1 -1
  247. package/dist/bundled/{v2/isEqual-881b7bb5.js → v3/isEqual-7ae49992.js} +1 -1
  248. package/dist/bundled/{v2/isObject-3a5b854d.js → v3/isObject-76d8037e.js} +5 -33
  249. package/dist/bundled/v3/isSymbol-e170ff61.js +31 -0
  250. package/dist/bundled/{v2/range-c87289f7.js → v3/range-4c4a4e22.js} +4 -4
  251. package/dist/bundled/{v2/round-136c7e43.js → v3/round-20828168.js} +4 -4
  252. package/dist/bundled/{v2/toFinite-021b0c50.js → v3/toFinite-a262b6fc.js} +2 -1
  253. package/dist/bundled/v3/{toInteger-db8a475d.js → toInteger-43f68f72.js} +1 -1
  254. package/dist/bundled/{v2/toString-47fa81b4.js → v3/toString-41da8a6b.js} +4 -28
  255. package/dist/bundled/v3/utils/functions/dom.js +260 -5
  256. package/dist/esm/v2/{OrExpansionPanel-b8411db6.js → OrExpansionPanel-d3a2218d.js} +36 -48
  257. package/dist/esm/v2/{OrList-2e65227a.js → OrList-5c17ea7b.js} +17 -27
  258. package/dist/esm/v2/{OrListOfInputs-9b7522fa.js → OrListOfInputs-5fcee12e.js} +1 -1
  259. package/dist/esm/v2/{OrSelect-7f2d3a94.js → OrSelect-1132c7dc.js} +1 -1
  260. package/dist/esm/v2/components/index.js +4 -4
  261. package/dist/esm/v2/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +15 -28
  262. package/dist/esm/v2/components/or-expansion-panel-v3/index.js +1 -5
  263. package/dist/esm/v2/components/or-expansion-panel-v3/props.d.ts +0 -5
  264. package/dist/esm/v2/components/or-expansion-panel-v3/styles.d.ts +3 -4
  265. package/dist/esm/v2/components/or-list/index.js +20 -21
  266. package/dist/esm/v2/components/or-list-of-inputs/index.js +32 -15
  267. package/dist/esm/v2/components/or-select-v3/index.js +3 -3
  268. package/dist/esm/v2/index.js +4 -4
  269. package/dist/esm/v3/{OrExpansionPanel-df527763.js → OrExpansionPanel-c016d8fa.js} +35 -47
  270. package/dist/esm/v3/{OrList-042d8681.js → OrList-0adb7c75.js} +25 -24
  271. package/dist/esm/v3/{OrListOfInputs-ce0d6ac0.js → OrListOfInputs-51ef02d9.js} +1 -1
  272. package/dist/esm/v3/{OrSelect-c931ed6e.js → OrSelect-9432ac4d.js} +1 -1
  273. package/dist/esm/v3/components/index.js +4 -4
  274. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +11 -22
  275. package/dist/esm/v3/components/or-expansion-panel-v3/index.js +1 -5
  276. package/dist/esm/v3/components/or-expansion-panel-v3/props.d.ts +0 -5
  277. package/dist/esm/v3/components/or-expansion-panel-v3/styles.d.ts +3 -4
  278. package/dist/esm/v3/components/or-list/index.js +19 -17
  279. package/dist/esm/v3/components/or-list-of-inputs/index.js +30 -13
  280. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  281. package/dist/esm/v3/index.js +4 -4
  282. package/package.json +2 -3
  283. package/src/components/or-expansion-panel-v3/OrExpansionPanel.vue +35 -28
  284. package/src/components/or-expansion-panel-v3/props.ts +0 -6
  285. package/src/components/or-expansion-panel-v3/styles.ts +3 -25
  286. package/src/components/or-list/OrList.vue +15 -16
  287. package/dist/bundled/v2/dom-571739a2.js +0 -260
  288. package/dist/bundled/v3/dom-571739a2.js +0 -260
  289. /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-c47d63be.js → OrToastContainer.vue_vue_type_script_lang-1157d0da.js} +0 -0
@@ -12,7 +12,8 @@
12
12
  v-if="label"
13
13
  class="or-list--header"
14
14
  >
15
- <or-label :label="label">
15
+ <or-label>
16
+ {{ label }}
16
17
  <template v-slot:append>
17
18
  <slot name="label-append" />
18
19
  </template>
@@ -34,7 +35,6 @@
34
35
  <or-icon
35
36
  v-if="canDrag && !handle && hasMoreThanOneItem"
36
37
  class="or-list--handle"
37
- :is-disabled="isDisabled"
38
38
  icon="drag_handle"
39
39
  />
40
40
 
@@ -48,16 +48,14 @@
48
48
  addItem: addItem,
49
49
  }"
50
50
  >
51
- <or-error error="Default Slot Content" />
51
+ <or-error>Default Slot Content</or-error>
52
52
  </slot>
53
53
  </div>
54
54
 
55
55
  <or-icon-button
56
56
  v-if="canDelete"
57
57
  icon="delete"
58
- size="small"
59
- icon-color="neutral-3"
60
- :is-disabled="isDisabled"
58
+ :disabled="isDisabled"
61
59
  class="or-list--delete-button"
62
60
  @click.prevent.stop="deleteItem(index)"
63
61
  />
@@ -76,13 +74,13 @@
76
74
  <or-button
77
75
  v-if="canAdd"
78
76
  class="or-list--add-button"
79
- icon="add"
80
- type="text"
81
- size="small"
82
- :content="buttonLabel"
83
- :is-disabled="isDisabled"
77
+ variant="text"
78
+ :disabled="isDisabled"
84
79
  @click="addItem"
85
- />
80
+ >
81
+ <or-icon icon="add" />
82
+ {{ buttonLabel }}
83
+ </or-button>
86
84
  </div>
87
85
  </slot>
88
86
  </div>
@@ -94,10 +92,11 @@ import cloneDeep from 'lodash/cloneDeep';
94
92
  import isEqual from 'lodash/isEqual';
95
93
  import { v4 as uuidv4 } from 'uuid';
96
94
  import Sortable, { SortableEvent, SortableOptions } from 'sortablejs';
97
- import { OrLabel } from '../or-label';
98
- import { OrButtonV2 as OrButton, OrIconButton } from '../or-button-v2';
99
- import { OrIcon } from '../or-icon';
100
- import { OrError } from '../or-error';
95
+ import { OrLabelV3 as OrLabel } from '../or-label-v3';
96
+ import { OrButtonV3 as OrButton } from '../or-button-v3';
97
+ import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
98
+ import { OrIconV3 as OrIcon } from '../or-icon-v3';
99
+ import { OrErrorV3 as OrError } from '../or-error-v3';
101
100
 
102
101
  export interface Item {
103
102
  vforkey?: string | undefined;
@@ -1,260 +0,0 @@
1
- import { c as _baseGetTag, b as isObjectLike_1 } from './isObject-3a5b854d.js';
2
- import { d as _overArg, g as get_1 } from './get-73ac2f59.js';
3
-
4
- var overArg = _overArg;
5
-
6
- /** Built-in value references. */
7
- var getPrototype$1 = overArg(Object.getPrototypeOf, Object);
8
- var _getPrototype = getPrototype$1;
9
-
10
- var baseGetTag = _baseGetTag,
11
- getPrototype = _getPrototype,
12
- isObjectLike$1 = isObjectLike_1;
13
-
14
- /** `Object#toString` result references. */
15
- var objectTag = '[object Object]';
16
-
17
- /** Used for built-in method references. */
18
- var funcProto = Function.prototype,
19
- objectProto = Object.prototype;
20
-
21
- /** Used to resolve the decompiled source of functions. */
22
- var funcToString = funcProto.toString;
23
-
24
- /** Used to check objects for own properties. */
25
- var hasOwnProperty = objectProto.hasOwnProperty;
26
-
27
- /** Used to infer the `Object` constructor. */
28
- var objectCtorString = funcToString.call(Object);
29
-
30
- /**
31
- * Checks if `value` is a plain object, that is, an object created by the
32
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
33
- *
34
- * @static
35
- * @memberOf _
36
- * @since 0.8.0
37
- * @category Lang
38
- * @param {*} value The value to check.
39
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
40
- * @example
41
- *
42
- * function Foo() {
43
- * this.a = 1;
44
- * }
45
- *
46
- * _.isPlainObject(new Foo);
47
- * // => false
48
- *
49
- * _.isPlainObject([1, 2, 3]);
50
- * // => false
51
- *
52
- * _.isPlainObject({ 'x': 0, 'y': 0 });
53
- * // => true
54
- *
55
- * _.isPlainObject(Object.create(null));
56
- * // => true
57
- */
58
- function isPlainObject$1(value) {
59
- if (!isObjectLike$1(value) || baseGetTag(value) != objectTag) {
60
- return false;
61
- }
62
- var proto = getPrototype(value);
63
- if (proto === null) {
64
- return true;
65
- }
66
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
67
- return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
68
- }
69
- var isPlainObject_1 = isPlainObject$1;
70
-
71
- var isObjectLike = isObjectLike_1,
72
- isPlainObject = isPlainObject_1;
73
-
74
- /**
75
- * Checks if `value` is likely a DOM element.
76
- *
77
- * @static
78
- * @memberOf _
79
- * @since 0.1.0
80
- * @category Lang
81
- * @param {*} value The value to check.
82
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
83
- * @example
84
- *
85
- * _.isElement(document.body);
86
- * // => true
87
- *
88
- * _.isElement('<body>');
89
- * // => false
90
- */
91
- function isElement(value) {
92
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
93
- }
94
- var isElement_1 = isElement;
95
-
96
- const WINDOW = typeof window !== 'undefined' ? window : null;
97
- const MutationObs = (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.MutationObserver) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.WebKitMutationObserver) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.MozMutationObserver) || null;
98
- const requestAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.requestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.webkitRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.msRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.oRequestAnimationFrame) || (
99
- // Fallback, but not a true polyfill
100
- // Only needed for Opera Mini
101
- cb => setTimeout(cb, 16))).bind(WINDOW);
102
- // eslint-disable-next-line no-unsafe-optional-chaining
103
- const cancelAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.cancelAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozCancelAnimationFrame)).bind(WINDOW);
104
- // Remove a node from DOM
105
- const removeNode = el => {
106
- el && el.parentNode && el.parentNode.removeChild(el);
107
- };
108
- // Determine if an HTML element is visible - Faster than CSS check
109
- const isVisible = el => {
110
- if (!isElement_1(el) || !el.parentNode || !contains(document.body, el)) {
111
- // Note this can fail for shadow dom elements since they
112
- // are not a direct descendant of document.body
113
- return false;
114
- }
115
- if (getStyle(el, 'display') === 'none') {
116
- // We do this check to help with vue-test-utils when using v-show
117
- return false;
118
- }
119
- // All browsers support getBoundingClientRect(), except JSDOM as it returns all 0's for values :(
120
- // So any tests that need isVisible will fail in JSDOM
121
- // Except when we override the getBCR prototype in some tests
122
- const bcr = getBCR(el);
123
- return !!(bcr && bcr.height > 0 && bcr.width > 0);
124
- };
125
- // Cause/wait-for an element to reflow its content (adjusting its height/width)
126
- const reflow = el => {
127
- // Requesting an elements offsetHeight will trigger a reflow of the element content
128
- return get_1(el, ['offsetHeight'], null);
129
- };
130
- // Select all elements matching selector. Returns `[]` if none found
131
- const selectAll = (selector, root) => [...(root && isElement_1(root) ? root : document).querySelectorAll(selector)];
132
- // Select a single element, returns `null` if not found
133
- const select = (selector, root) => (root && isElement_1(root) ? root : document).querySelector(selector) || null;
134
- // Returns true if the parent element contains the child element
135
- const contains = (parent, child) => parent && typeof parent.contains === 'function' ? parent.contains(child) : false;
136
- // Get an element given an ID
137
- const getById = id => document.getElementById(/^#/.test(id) ? id.slice(1) : id) || null;
138
- // Add a class to an element
139
- const addClass = (el, className) => {
140
- // We are checking for `el.classList` existence here since IE 11
141
- // returns `undefined` for some elements (e.g. SVG elements)
142
- if (className && isElement_1(el) && el.classList) {
143
- el.classList.add(className);
144
- }
145
- };
146
- // Remove a class from an element
147
- const removeClass = (el, className) => {
148
- // We are checking for `el.classList` existence here since IE 11
149
- // returns `undefined` for some elements (e.g. SVG elements)
150
- if (className && isElement_1(el) && el.classList) el.classList.remove(className);
151
- };
152
- // Test if an element has a class
153
- const hasClass = (el, className) => {
154
- // We are checking for `el.classList` existence here since IE 11
155
- // returns `undefined` for some elements (e.g. SVG elements)
156
- if (className && isElement_1(el) && el.classList) return el.classList.contains(className);
157
- return false;
158
- };
159
- // Set an attribute on an element
160
- const setAttr = (el, attr, value) => {
161
- if (attr && isElement_1(el)) {
162
- el.setAttribute(attr, value);
163
- }
164
- };
165
- // Remove an attribute from an element
166
- const removeAttr = (el, attr) => {
167
- if (attr && isElement_1(el)) {
168
- el.removeAttribute(attr);
169
- }
170
- };
171
- // Get an attribute value from an element
172
- const getAttr = (el, attr) => attr && isElement_1(el) ? el.getAttribute(attr) : null;
173
- // Determine if an attribute exists on an element
174
- // Returns `true` or `false`, or `null` if element not found
175
- const hasAttr = (el, attr) => attr && isElement_1(el) ? el.hasAttribute(attr) : null;
176
- // Set an style property on an element
177
- const setStyle = (el, prop, value) => {
178
- if (prop && isElement_1(el)) {
179
- el.style[prop] = value;
180
- }
181
- };
182
- // Remove an style property from an element
183
- const removeStyle = (el, prop) => {
184
- if (prop && isElement_1(el)) {
185
- el.style[prop] = '';
186
- }
187
- };
188
- // Get an style property value from an element
189
- // Returns `null` if not found
190
- const getStyle = (el, prop) => prop && isElement_1(el) ? el.style[prop] || null : null;
191
- // Return the Bounding Client Rect of an element
192
- const getBCR = el => isElement_1(el) ? el.getBoundingClientRect() : null;
193
- // Get computed style object for an element
194
- const getCS = el => get_1(WINDOW, 'getComputedStyle', null) && isElement_1(el) ? getComputedStyle(el) : {};
195
- // Return an element's offset with respect to document element
196
- const offset = el => {
197
- const _offset = {
198
- top: 0,
199
- left: 0
200
- };
201
- if (!isElement_1(el) || el.getClientRects().length === 0) {
202
- return _offset;
203
- }
204
- const bcr = getBCR(el);
205
- if (bcr) {
206
- const win = el.ownerDocument.defaultView;
207
- _offset.top = bcr.top + get_1(win, 'pageYOffset', 0);
208
- _offset.left = bcr.left + get_1(win, 'pageXOffset', 0);
209
- }
210
- return _offset;
211
- };
212
- // Return an element's offset with respect to to its offsetParent
213
- const position = el => {
214
- let _offset = {
215
- top: 0,
216
- left: 0
217
- };
218
- if (!isElement_1(el)) {
219
- return _offset;
220
- }
221
- let parentOffset = {
222
- top: 0,
223
- left: 0
224
- };
225
- const elStyles = getCS(el);
226
- if (elStyles.position === 'fixed') {
227
- _offset = getBCR(el) || _offset;
228
- } else {
229
- _offset = offset(el);
230
- const doc = el.ownerDocument;
231
- let offsetParent = el.offsetParent || doc.documentElement;
232
- while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && getCS(offsetParent).position === 'static') {
233
- offsetParent = offsetParent.parentNode;
234
- }
235
- if (offsetParent && offsetParent !== el && offsetParent.nodeType === Node.ELEMENT_NODE) {
236
- parentOffset = offset(offsetParent);
237
- const offsetParentStyles = getCS(offsetParent);
238
- parentOffset.top += parseFloat(offsetParentStyles.borderTopWidth);
239
- parentOffset.left += parseFloat(offsetParentStyles.borderLeftWidth);
240
- }
241
- }
242
- return {
243
- top: _offset.top - parentOffset.top - parseFloat(elStyles.marginTop),
244
- left: _offset.left - parentOffset.left - parseFloat(elStyles.marginLeft)
245
- };
246
- };
247
- const getMaxZIndex = element => {
248
- let maxZIndex = 0;
249
- while (element) {
250
- const cs = getCS(element);
251
- const zIndex = cs.zIndex;
252
- if (zIndex !== 'auto') {
253
- maxZIndex = +zIndex > maxZIndex ? +zIndex : maxZIndex;
254
- }
255
- element = element.parentElement;
256
- }
257
- return maxZIndex;
258
- };
259
-
260
- export { MutationObs as M, _getPrototype as _, reflow as a, addClass as b, cancelAF as c, removeClass as d, removeStyle as e, getBCR as f, getCS as g, getMaxZIndex as h, removeNode as i, isVisible as j, selectAll as k, select as l, contains as m, getById as n, hasClass as o, setAttr as p, removeAttr as q, requestAF as r, setStyle as s, getAttr as t, hasAttr as u, getStyle as v, offset as w, position as x };
@@ -1,260 +0,0 @@
1
- import { c as _baseGetTag, b as isObjectLike_1 } from './isObject-3a5b854d.js';
2
- import { d as _overArg, g as get_1 } from './get-73ac2f59.js';
3
-
4
- var overArg = _overArg;
5
-
6
- /** Built-in value references. */
7
- var getPrototype$1 = overArg(Object.getPrototypeOf, Object);
8
- var _getPrototype = getPrototype$1;
9
-
10
- var baseGetTag = _baseGetTag,
11
- getPrototype = _getPrototype,
12
- isObjectLike$1 = isObjectLike_1;
13
-
14
- /** `Object#toString` result references. */
15
- var objectTag = '[object Object]';
16
-
17
- /** Used for built-in method references. */
18
- var funcProto = Function.prototype,
19
- objectProto = Object.prototype;
20
-
21
- /** Used to resolve the decompiled source of functions. */
22
- var funcToString = funcProto.toString;
23
-
24
- /** Used to check objects for own properties. */
25
- var hasOwnProperty = objectProto.hasOwnProperty;
26
-
27
- /** Used to infer the `Object` constructor. */
28
- var objectCtorString = funcToString.call(Object);
29
-
30
- /**
31
- * Checks if `value` is a plain object, that is, an object created by the
32
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
33
- *
34
- * @static
35
- * @memberOf _
36
- * @since 0.8.0
37
- * @category Lang
38
- * @param {*} value The value to check.
39
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
40
- * @example
41
- *
42
- * function Foo() {
43
- * this.a = 1;
44
- * }
45
- *
46
- * _.isPlainObject(new Foo);
47
- * // => false
48
- *
49
- * _.isPlainObject([1, 2, 3]);
50
- * // => false
51
- *
52
- * _.isPlainObject({ 'x': 0, 'y': 0 });
53
- * // => true
54
- *
55
- * _.isPlainObject(Object.create(null));
56
- * // => true
57
- */
58
- function isPlainObject$1(value) {
59
- if (!isObjectLike$1(value) || baseGetTag(value) != objectTag) {
60
- return false;
61
- }
62
- var proto = getPrototype(value);
63
- if (proto === null) {
64
- return true;
65
- }
66
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
67
- return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
68
- }
69
- var isPlainObject_1 = isPlainObject$1;
70
-
71
- var isObjectLike = isObjectLike_1,
72
- isPlainObject = isPlainObject_1;
73
-
74
- /**
75
- * Checks if `value` is likely a DOM element.
76
- *
77
- * @static
78
- * @memberOf _
79
- * @since 0.1.0
80
- * @category Lang
81
- * @param {*} value The value to check.
82
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
83
- * @example
84
- *
85
- * _.isElement(document.body);
86
- * // => true
87
- *
88
- * _.isElement('<body>');
89
- * // => false
90
- */
91
- function isElement(value) {
92
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
93
- }
94
- var isElement_1 = isElement;
95
-
96
- const WINDOW = typeof window !== 'undefined' ? window : null;
97
- const MutationObs = (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.MutationObserver) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.WebKitMutationObserver) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.MozMutationObserver) || null;
98
- const requestAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.requestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.webkitRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.msRequestAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.oRequestAnimationFrame) || (
99
- // Fallback, but not a true polyfill
100
- // Only needed for Opera Mini
101
- cb => setTimeout(cb, 16))).bind(WINDOW);
102
- // eslint-disable-next-line no-unsafe-optional-chaining
103
- const cancelAF = ((WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.cancelAnimationFrame) || (WINDOW === null || WINDOW === void 0 ? void 0 : WINDOW.mozCancelAnimationFrame)).bind(WINDOW);
104
- // Remove a node from DOM
105
- const removeNode = el => {
106
- el && el.parentNode && el.parentNode.removeChild(el);
107
- };
108
- // Determine if an HTML element is visible - Faster than CSS check
109
- const isVisible = el => {
110
- if (!isElement_1(el) || !el.parentNode || !contains(document.body, el)) {
111
- // Note this can fail for shadow dom elements since they
112
- // are not a direct descendant of document.body
113
- return false;
114
- }
115
- if (getStyle(el, 'display') === 'none') {
116
- // We do this check to help with vue-test-utils when using v-show
117
- return false;
118
- }
119
- // All browsers support getBoundingClientRect(), except JSDOM as it returns all 0's for values :(
120
- // So any tests that need isVisible will fail in JSDOM
121
- // Except when we override the getBCR prototype in some tests
122
- const bcr = getBCR(el);
123
- return !!(bcr && bcr.height > 0 && bcr.width > 0);
124
- };
125
- // Cause/wait-for an element to reflow its content (adjusting its height/width)
126
- const reflow = el => {
127
- // Requesting an elements offsetHeight will trigger a reflow of the element content
128
- return get_1(el, ['offsetHeight'], null);
129
- };
130
- // Select all elements matching selector. Returns `[]` if none found
131
- const selectAll = (selector, root) => [...(root && isElement_1(root) ? root : document).querySelectorAll(selector)];
132
- // Select a single element, returns `null` if not found
133
- const select = (selector, root) => (root && isElement_1(root) ? root : document).querySelector(selector) || null;
134
- // Returns true if the parent element contains the child element
135
- const contains = (parent, child) => parent && typeof parent.contains === 'function' ? parent.contains(child) : false;
136
- // Get an element given an ID
137
- const getById = id => document.getElementById(/^#/.test(id) ? id.slice(1) : id) || null;
138
- // Add a class to an element
139
- const addClass = (el, className) => {
140
- // We are checking for `el.classList` existence here since IE 11
141
- // returns `undefined` for some elements (e.g. SVG elements)
142
- if (className && isElement_1(el) && el.classList) {
143
- el.classList.add(className);
144
- }
145
- };
146
- // Remove a class from an element
147
- const removeClass = (el, className) => {
148
- // We are checking for `el.classList` existence here since IE 11
149
- // returns `undefined` for some elements (e.g. SVG elements)
150
- if (className && isElement_1(el) && el.classList) el.classList.remove(className);
151
- };
152
- // Test if an element has a class
153
- const hasClass = (el, className) => {
154
- // We are checking for `el.classList` existence here since IE 11
155
- // returns `undefined` for some elements (e.g. SVG elements)
156
- if (className && isElement_1(el) && el.classList) return el.classList.contains(className);
157
- return false;
158
- };
159
- // Set an attribute on an element
160
- const setAttr = (el, attr, value) => {
161
- if (attr && isElement_1(el)) {
162
- el.setAttribute(attr, value);
163
- }
164
- };
165
- // Remove an attribute from an element
166
- const removeAttr = (el, attr) => {
167
- if (attr && isElement_1(el)) {
168
- el.removeAttribute(attr);
169
- }
170
- };
171
- // Get an attribute value from an element
172
- const getAttr = (el, attr) => attr && isElement_1(el) ? el.getAttribute(attr) : null;
173
- // Determine if an attribute exists on an element
174
- // Returns `true` or `false`, or `null` if element not found
175
- const hasAttr = (el, attr) => attr && isElement_1(el) ? el.hasAttribute(attr) : null;
176
- // Set an style property on an element
177
- const setStyle = (el, prop, value) => {
178
- if (prop && isElement_1(el)) {
179
- el.style[prop] = value;
180
- }
181
- };
182
- // Remove an style property from an element
183
- const removeStyle = (el, prop) => {
184
- if (prop && isElement_1(el)) {
185
- el.style[prop] = '';
186
- }
187
- };
188
- // Get an style property value from an element
189
- // Returns `null` if not found
190
- const getStyle = (el, prop) => prop && isElement_1(el) ? el.style[prop] || null : null;
191
- // Return the Bounding Client Rect of an element
192
- const getBCR = el => isElement_1(el) ? el.getBoundingClientRect() : null;
193
- // Get computed style object for an element
194
- const getCS = el => get_1(WINDOW, 'getComputedStyle', null) && isElement_1(el) ? getComputedStyle(el) : {};
195
- // Return an element's offset with respect to document element
196
- const offset = el => {
197
- const _offset = {
198
- top: 0,
199
- left: 0
200
- };
201
- if (!isElement_1(el) || el.getClientRects().length === 0) {
202
- return _offset;
203
- }
204
- const bcr = getBCR(el);
205
- if (bcr) {
206
- const win = el.ownerDocument.defaultView;
207
- _offset.top = bcr.top + get_1(win, 'pageYOffset', 0);
208
- _offset.left = bcr.left + get_1(win, 'pageXOffset', 0);
209
- }
210
- return _offset;
211
- };
212
- // Return an element's offset with respect to to its offsetParent
213
- const position = el => {
214
- let _offset = {
215
- top: 0,
216
- left: 0
217
- };
218
- if (!isElement_1(el)) {
219
- return _offset;
220
- }
221
- let parentOffset = {
222
- top: 0,
223
- left: 0
224
- };
225
- const elStyles = getCS(el);
226
- if (elStyles.position === 'fixed') {
227
- _offset = getBCR(el) || _offset;
228
- } else {
229
- _offset = offset(el);
230
- const doc = el.ownerDocument;
231
- let offsetParent = el.offsetParent || doc.documentElement;
232
- while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && getCS(offsetParent).position === 'static') {
233
- offsetParent = offsetParent.parentNode;
234
- }
235
- if (offsetParent && offsetParent !== el && offsetParent.nodeType === Node.ELEMENT_NODE) {
236
- parentOffset = offset(offsetParent);
237
- const offsetParentStyles = getCS(offsetParent);
238
- parentOffset.top += parseFloat(offsetParentStyles.borderTopWidth);
239
- parentOffset.left += parseFloat(offsetParentStyles.borderLeftWidth);
240
- }
241
- }
242
- return {
243
- top: _offset.top - parentOffset.top - parseFloat(elStyles.marginTop),
244
- left: _offset.left - parentOffset.left - parseFloat(elStyles.marginLeft)
245
- };
246
- };
247
- const getMaxZIndex = element => {
248
- let maxZIndex = 0;
249
- while (element) {
250
- const cs = getCS(element);
251
- const zIndex = cs.zIndex;
252
- if (zIndex !== 'auto') {
253
- maxZIndex = +zIndex > maxZIndex ? +zIndex : maxZIndex;
254
- }
255
- element = element.parentElement;
256
- }
257
- return maxZIndex;
258
- };
259
-
260
- export { MutationObs as M, _getPrototype as _, reflow as a, addClass as b, cancelAF as c, removeClass as d, removeStyle as e, getBCR as f, getCS as g, getMaxZIndex as h, removeNode as i, isVisible as j, selectAll as k, select as l, contains as m, getById as n, hasClass as o, setAttr as p, removeAttr as q, requestAF as r, setStyle as s, getAttr as t, hasAttr as u, getStyle as v, offset as w, position as x };