@onereach/ui-components 2.77.0-beta.2448.0 → 2.77.0-beta.2456.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 (333) hide show
  1. package/dist/bundled/v2/{OrAvatar-7fc11680.js → components/OrAvatarV3/OrAvatar.js} +12 -8
  2. package/dist/bundled/v2/components/OrAvatarV3/index.js +2 -2
  3. package/dist/bundled/v2/components/{OrBottomSheet → OrBottomSheetV3}/OrBottomSheet.js +4 -4
  4. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +3 -3
  5. package/dist/bundled/v2/{OrButton-f41bc4f9.js → components/OrButtonV2/OrButton.js} +18 -8
  6. package/dist/bundled/v2/components/OrButtonV2/index.js +2 -2
  7. package/dist/bundled/v2/{OrButton-451e39d6.js → components/OrButtonV3/OrButton.js} +9 -7
  8. package/dist/bundled/v2/components/OrButtonV3/index.js +2 -2
  9. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +1 -1
  10. package/dist/bundled/v2/components/OrCardCollection/index.js +1 -1
  11. package/dist/bundled/v2/{OrCardCollection-05d12693.js → components/OrCardCollectionV3/OrCardCollection.js} +62 -19
  12. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +18 -18
  13. package/dist/bundled/v2/{OrCard-01367884.js → components/OrCardV3/OrCard.js} +3 -4
  14. package/dist/bundled/v2/components/OrCardV3/index.js +1 -1
  15. package/dist/bundled/v2/{OrCheckbox-19375a2b.js → components/OrCheckboxV3/OrCheckbox.js} +10 -10
  16. package/dist/bundled/v2/components/OrCheckboxV3/index.js +2 -2
  17. package/dist/bundled/v2/components/OrCode/OrCode.js +1 -1
  18. package/dist/bundled/v2/components/OrCode/index.js +1 -1
  19. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +1 -1
  20. package/dist/bundled/v2/components/OrColorPicker/index.js +1 -1
  21. package/dist/bundled/v2/components/{OrCombinedInput → OrCombinedInputV3}/OrCombinedInput.js +7 -7
  22. package/dist/bundled/v2/components/OrCombinedInputV3/index.js +4 -4
  23. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +7 -7
  24. package/dist/bundled/v2/components/OrConfirm/index.js +2 -2
  25. package/dist/bundled/v2/{OrConfirm-dd824d8a.js → components/OrConfirmV3/OrConfirm.js} +52 -13
  26. package/dist/bundled/v2/components/OrConfirmV3/index.js +15 -15
  27. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +1 -1
  28. package/dist/bundled/v2/components/OrDateTimePicker/index.js +1 -1
  29. package/dist/bundled/v2/components/{OrEmptyState → OrEmptyStateV3}/OrEmptyState.js +2 -2
  30. package/dist/bundled/v2/components/OrEmptyStateV3/index.js +1 -1
  31. package/dist/bundled/v2/components/{OrErrorTag → OrErrorTagV3}/OrErrorTag.js +3 -3
  32. package/dist/bundled/v2/components/OrErrorTagV3/index.js +2 -2
  33. package/dist/bundled/v2/{OrError-516a4334.js → components/OrErrorV3/OrError.js} +3 -4
  34. package/dist/bundled/v2/components/OrErrorV3/index.js +1 -1
  35. package/dist/bundled/v2/components/{OrExpansionPanel → OrExpansionPanelV3}/OrExpansionPanel.js +4 -4
  36. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +2 -2
  37. package/dist/bundled/v2/components/{OrFab → OrFabV3}/OrFab.js +4 -4
  38. package/dist/bundled/v2/components/OrFabV3/index.js +2 -2
  39. package/dist/bundled/v2/{OrHint-a2dc1e08.js → components/OrHintV3/OrHint.js} +3 -4
  40. package/dist/bundled/v2/components/OrHintV3/index.js +1 -1
  41. package/dist/bundled/v2/components/OrIconButtonV2/index.js +1 -1
  42. package/dist/bundled/v2/{OrIconButton-3c5bac86.js → components/OrIconButtonV3/OrIconButton.js} +25 -10
  43. package/dist/bundled/v2/components/OrIconButtonV3/index.js +7 -7
  44. package/dist/bundled/v2/{OrIcon-7582c4d1.js → components/OrIconV3/OrIcon.js} +4 -5
  45. package/dist/bundled/v2/components/OrIconV3/index.js +1 -1
  46. package/dist/bundled/v2/components/{OrInlineInputBox → OrInlineInputBoxV3}/OrInlineInputBox.js +2 -2
  47. package/dist/bundled/v2/components/OrInlineInputBoxV3/index.js +1 -1
  48. package/dist/bundled/v2/components/{OrInlineInput → OrInlineInputV3}/OrInlineInput.js +16 -16
  49. package/dist/bundled/v2/components/OrInlineInputV3/index.js +11 -11
  50. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +1 -1
  51. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +1 -1
  52. package/dist/bundled/v2/components/{OrInlineTextarea → OrInlineTextareaV3}/OrInlineTextarea.js +15 -15
  53. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +11 -11
  54. package/dist/bundled/v2/components/{OrInputBox → OrInputBoxV3}/OrInputBox.js +2 -2
  55. package/dist/bundled/v2/components/OrInputBoxV3/index.js +1 -1
  56. package/dist/bundled/v2/{OrInput-d2299d9b.js → components/OrInputV3/OrInput.js} +50 -25
  57. package/dist/bundled/v2/components/OrInputV3/index.js +13 -13
  58. package/dist/bundled/v2/{OrLabel-705461df.js → components/OrLabelV3/OrLabel.js} +4 -5
  59. package/dist/bundled/v2/components/OrLabelV3/index.js +1 -1
  60. package/dist/bundled/v2/components/{OrLink → OrLinkV3}/OrLink.js +2 -2
  61. package/dist/bundled/v2/components/OrLinkV3/index.js +1 -1
  62. package/dist/bundled/v2/components/OrList/OrList.js +9 -9
  63. package/dist/bundled/v2/components/OrList/index.js +2 -2
  64. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +2 -2
  65. package/dist/bundled/v2/components/OrListOfInputs/index.js +2 -2
  66. package/dist/bundled/v2/{OrLoader-f011afff.js → components/OrLoaderV3/OrLoader.js} +4 -5
  67. package/dist/bundled/v2/components/OrLoaderV3/index.js +1 -1
  68. package/dist/bundled/v2/components/{OrMenuItem → OrMenuItemV3}/OrMenuItem.js +3 -3
  69. package/dist/bundled/v2/components/OrMenuItemV3/index.js +2 -2
  70. package/dist/bundled/v2/components/{OrMenu → OrMenuV3}/OrMenu.js +5 -5
  71. package/dist/bundled/v2/components/OrMenuV3/index.js +5 -5
  72. package/dist/bundled/v2/components/OrModal/OrModal.js +1 -1
  73. package/dist/bundled/v2/components/OrModal/index.js +1 -1
  74. package/dist/bundled/v2/{OrModal-e540b95b.js → components/OrModalV3/OrModal.js} +28 -9
  75. package/dist/bundled/v2/components/OrModalV3/index.js +8 -8
  76. package/dist/bundled/v2/components/OrNotification/OrNotification.js +1 -1
  77. package/dist/bundled/v2/components/OrNotification/index.js +1 -1
  78. package/dist/bundled/v2/{OrNotification-25c7e19c.js → components/OrNotificationV3/OrNotification.js} +28 -9
  79. package/dist/bundled/v2/components/OrNotificationV3/index.js +8 -8
  80. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +6 -6
  81. package/dist/bundled/v2/components/OrOverflowMenu/index.js +2 -2
  82. package/dist/bundled/v2/{OrOverlay-831c4cf3.js → components/OrOverlayV3/OrOverlay.js} +8 -7
  83. package/dist/bundled/v2/components/OrOverlayV3/index.js +2 -2
  84. package/dist/bundled/v2/components/{OrPagination → OrPaginationV3}/OrPagination.js +14 -14
  85. package/dist/bundled/v2/components/OrPaginationV3/index.js +10 -10
  86. package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
  87. package/dist/bundled/v2/components/OrPassword/index.js +1 -1
  88. package/dist/bundled/v2/components/{OrPopover → OrPopoverV3}/OrPopover.js +6 -6
  89. package/dist/bundled/v2/components/OrPopoverV3/index.js +4 -4
  90. package/dist/bundled/v2/{OrProgress-66304d97.js → components/OrProgressV3/OrProgress.js} +5 -6
  91. package/dist/bundled/v2/components/OrProgressV3/index.js +1 -1
  92. package/dist/bundled/v2/{OrRadio-bd269b6c.js → components/OrRadioV3/OrRadio.js} +10 -10
  93. package/dist/bundled/v2/components/OrRadioV3/index.js +2 -2
  94. package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
  95. package/dist/bundled/v2/components/OrSearch/index.js +1 -1
  96. package/dist/bundled/v2/{OrSearch-37f87411.js → components/OrSearchV3/OrSearch.js} +44 -6
  97. package/dist/bundled/v2/components/OrSearchV3/index.js +14 -14
  98. package/dist/bundled/v2/components/{OrSegmentedControl → OrSegmentedControlV3}/OrSegmentedControl.js +2 -2
  99. package/dist/bundled/v2/components/OrSegmentedControlV3/index.js +1 -1
  100. package/dist/bundled/v2/{OrSelect-a3c1cb19.js → components/OrSelectV3/OrSelect.js} +69 -30
  101. package/dist/bundled/v2/components/OrSelectV3/index.js +18 -18
  102. package/dist/bundled/v2/{OrSidebar-b19f60bb.js → components/OrSidebarV3/OrSidebar.js} +28 -9
  103. package/dist/bundled/v2/components/OrSidebarV3/index.js +8 -8
  104. package/dist/bundled/v2/{OrSkeletonCircle-8d795bd0.js → components/OrSkeletonCircleV3/OrSkeletonCircle.js} +4 -5
  105. package/dist/bundled/v2/components/OrSkeletonCircleV3/index.js +1 -1
  106. package/dist/bundled/v2/{OrSkeletonRect-b1254c5a.js → components/OrSkeletonRectV3/OrSkeletonRect.js} +4 -5
  107. package/dist/bundled/v2/components/OrSkeletonRectV3/index.js +1 -1
  108. package/dist/bundled/v2/{OrSkeletonText-f15c3702.js → components/OrSkeletonTextV3/OrSkeletonText.js} +4 -5
  109. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +1 -1
  110. package/dist/bundled/v2/components/OrSkeletonV3/index.js +3 -3
  111. package/dist/bundled/v2/components/{OrSortHeader → OrSortHeaderV3}/OrSortHeader.js +3 -3
  112. package/dist/bundled/v2/components/OrSortHeaderV3/index.js +2 -2
  113. package/dist/bundled/v2/components/OrStepper/OrStepper.js +2 -2
  114. package/dist/bundled/v2/components/OrStepper/index.js +1 -1
  115. package/dist/bundled/v2/{OrSwitch-1cabf182.js → components/OrSwitchV3/OrSwitch.js} +15 -12
  116. package/dist/bundled/v2/components/OrSwitchV3/index.js +3 -3
  117. package/dist/bundled/v2/{OrTab-831a923c.js → components/OrTabV3/OrTab.js} +3 -4
  118. package/dist/bundled/v2/components/OrTabV3/index.js +1 -1
  119. package/dist/bundled/v2/{OrTabs-3652b7c1.js → components/OrTabsV3/OrTabs.js} +28 -11
  120. package/dist/bundled/v2/components/OrTabsV3/index.js +9 -9
  121. package/dist/bundled/v2/{OrTag-2f788ca4.js → components/OrTagV3/OrTag.js} +27 -7
  122. package/dist/bundled/v2/components/OrTagV3/index.js +8 -8
  123. package/dist/bundled/v2/{OrTeleport.vue2-259d6f25.js → components/OrTeleportV3/OrTeleport.js} +2 -3
  124. package/dist/bundled/v2/components/OrTeleportV3/index.js +1 -1
  125. package/dist/bundled/v2/components/{OrText → OrTextV3}/OrText.js +1 -1
  126. package/dist/bundled/v2/components/OrTextV3/index.js +1 -1
  127. package/dist/bundled/v2/{OrTextarea-e10c98ce.js → components/OrTextareaV3/OrTextarea.js} +21 -17
  128. package/dist/bundled/v2/components/OrTextareaV3/index.js +5 -5
  129. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
  130. package/dist/bundled/v2/components/OrTextbox/index.js +1 -1
  131. package/dist/bundled/v2/components/OrToast/OrToast.js +1 -1
  132. package/dist/bundled/v2/components/OrToast/index.js +29 -6
  133. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +3 -3
  134. package/dist/bundled/v2/components/OrToastContainer/index.js +4 -4
  135. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +232 -0
  136. package/dist/bundled/v2/components/OrToastContainerV3/index.js +14 -13
  137. package/dist/bundled/v2/{OrToastContainer-38cc76b5.js → components/OrToastV3/OrToast.js} +39 -219
  138. package/dist/bundled/v2/components/OrToastV3/index.js +36 -6
  139. package/dist/bundled/v2/components/OrToastV3/props.js +1 -1
  140. package/dist/bundled/v2/{OrTooltip-6c689e3b.js → components/OrTooltipV3/OrTooltip.js} +16 -6
  141. package/dist/bundled/v2/components/OrTooltipV3/index.js +5 -5
  142. package/dist/bundled/v2/components/index.js +85 -84
  143. package/dist/bundled/v2/index.js +80 -79
  144. package/dist/bundled/v2/{props-fb3f60a5.js → props-7be029c7.js} +1 -1
  145. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-32273c2f.js → OrAvatar.vue_vue_type_script_lang-78b30c30.js} +1 -1
  146. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-80114a8a.js → OrBottomSheet.vue_vue_type_script_lang-398a517b.js} +2 -20
  147. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-a58d3d78.js → OrButton.vue_vue_type_script_lang-a840ee7d.js} +1 -1
  148. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-d81e9f9b.js → OrCardCollection.vue_vue_type_script_lang-3e87a19b.js} +19 -45
  149. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-25c62a0c.js → OrCardCollection.vue_vue_type_script_lang-ac1c8efe.js} +2 -2
  150. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-d5aa50c1.js → OrCheckbox.vue_vue_type_script_lang-de522e20.js} +1 -1
  151. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-92cabe32.js → OrCode.vue_vue_type_script_lang-127ee0fe.js} +2 -2
  152. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-4dd1e630.js → OrColorPicker.vue_vue_type_script_lang-c29579b4.js} +1 -1
  153. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a48d6224.js → OrConfirm.vue_vue_type_script_lang-0111d143.js} +6 -6
  154. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-fc02d14d.js → OrConfirm.vue_vue_type_script_lang-128506dd.js} +2 -2
  155. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-b9dade9d.js → OrDateTimePicker.vue_vue_type_script_lang-380587c6.js} +1 -1
  156. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-02a46c6b.js → OrErrorTag.vue_vue_type_script_lang-54097585.js} +1 -1
  157. package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-749ff722.js → OrExpansionPanel.vue_vue_type_script_lang-5e94d368.js} +1 -1
  158. package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-96b4fd81.js → OrFab.vue_vue_type_script_lang-decad76e.js} +1 -1
  159. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-7a36beed.js +57 -0
  160. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-480bbbe1.js → OrInlineInput.vue_vue_type_script_lang-c5c851b6.js} +7 -6
  161. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-c2eb855d.js → OrInlineTextEdit.vue_vue_type_script_lang-956e4ba2.js} +1 -1
  162. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-84378895.js → OrInlineTextarea.vue_vue_type_script_lang-4f15b59f.js} +5 -4
  163. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-da9e19d2.js → OrInput.vue_vue_type_script_lang-9f6f9afc.js} +11 -10
  164. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-30a7b0e3.js → OrList.vue_vue_type_script_lang-040c4ce1.js} +2 -2
  165. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-9b8f2b8a.js → OrListOfInputs.vue_vue_type_script_lang-4155853b.js} +2 -2
  166. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-911ded05.js → OrMenu.vue_vue_type_script_lang-d7a5bf28.js} +2 -2
  167. package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-7f05cee1.js → OrMenuItem.vue_vue_type_script_lang-2c0c186d.js} +1 -1
  168. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-005d198c.js → OrModal.vue_vue_type_script_lang-f9561803.js} +4 -4
  169. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-a275bf57.js → OrModal.vue_vue_type_script_lang-fdbd986e.js} +1 -1
  170. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-4e99b9f1.js → OrNotification.vue_vue_type_script_lang-58fd2766.js} +3 -3
  171. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-2900b303.js → OrNotification.vue_vue_type_script_lang-994aa838.js} +1 -1
  172. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-0b1d1150.js → OrOverflowMenu.vue_vue_type_script_lang-75e6a081.js} +2 -2
  173. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-fea5839d.js → OrOverlay.vue_vue_type_script_lang-683dc1bb.js} +1 -11
  174. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f75db050.js → OrPagination.vue_vue_type_script_lang-97fa485d.js} +7 -7
  175. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-46bca9cd.js → OrPassword.vue_vue_type_script_lang-f46acddb.js} +1 -1
  176. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-2ba79d91.js → OrPopover.vue_vue_type_script_lang-49cc4886.js} +3 -3
  177. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2953870d.js → OrRadio.vue_vue_type_script_lang-202f4e21.js} +1 -1
  178. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-2eb1c79b.js → OrSearch.vue_vue_type_script_lang-8de954cf.js} +1 -1
  179. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b6f85857.js → OrSearch.vue_vue_type_script_lang-fbb85b2a.js} +2 -2
  180. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-3decc59f.js → OrSelect.vue_vue_type_script_lang-a86b9abc.js} +32 -99
  181. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-c342ffef.js → OrSidebar.vue_vue_type_script_lang-88cfa4ba.js} +2 -2
  182. package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-d70f3898.js → OrSortHeader.vue_vue_type_script_lang-851671ab.js} +1 -1
  183. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-42f57de9.js → OrStepper.vue_vue_type_script_lang-88a01c20.js} +1 -1
  184. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-ac699016.js → OrSwitch.vue_vue_type_script_lang-7acd91e9.js} +2 -2
  185. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-c3739ede.js → OrTabs.vue_vue_type_script_lang-5e20b0b5.js} +12 -28
  186. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-37474827.js → OrTag.vue_vue_type_script_lang-cd555f11.js} +2 -2
  187. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-cda6f95e.js → OrTextarea.vue_vue_type_script_lang-1b3f2396.js} +4 -3
  188. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-20e6c904.js → OrTextbox.vue_vue_type_script_lang-686e0310.js} +1 -1
  189. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-39906821.js → OrToastContainer.vue_vue_type_script_lang-3bb6f082.js} +2 -2
  190. package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-e98944bc.js +147 -0
  191. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a27e7f1f.js → OrTooltip.vue_vue_type_script_lang-196b0605.js} +2 -2
  192. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +35 -0
  193. package/dist/bundled/v3/components/OrAvatarV3/index.js +2 -2
  194. package/dist/bundled/v3/components/{OrBottomSheet → OrBottomSheetV3}/OrBottomSheet.js +6 -4
  195. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +4 -2
  196. package/dist/bundled/v3/{OrButton-bf88c2a5.js → components/OrButtonV2/OrButton.js} +22 -2
  197. package/dist/bundled/v3/{OrButton-cc469bd8.js → components/OrButtonV3/OrButton.js} +10 -1
  198. package/dist/bundled/v3/components/OrButtonV3/index.js +2 -2
  199. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +4 -4
  200. package/dist/bundled/v3/components/OrCardCollection/index.js +3 -3
  201. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +162 -0
  202. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +28 -23
  203. package/dist/bundled/v3/components/OrCardV3/OrCard.js +15 -0
  204. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +51 -0
  205. package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -2
  206. package/dist/bundled/v3/components/OrCode/OrCode.js +4 -4
  207. package/dist/bundled/v3/components/OrCode/index.js +3 -3
  208. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +3 -3
  209. package/dist/bundled/v3/components/OrColorPicker/index.js +2 -2
  210. package/dist/bundled/v3/components/{OrCombinedInput → OrCombinedInputV3}/OrCombinedInput.js +7 -6
  211. package/dist/bundled/v3/components/OrCombinedInputV3/index.js +4 -3
  212. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +5 -5
  213. package/dist/bundled/v3/components/OrConfirm/index.js +4 -4
  214. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +129 -0
  215. package/dist/bundled/v3/components/OrConfirmV3/index.js +23 -19
  216. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +3 -3
  217. package/dist/bundled/v3/components/OrDateTimePicker/index.js +2 -2
  218. package/dist/bundled/v3/components/{OrEmptyState → OrEmptyStateV3}/OrEmptyState.js +2 -2
  219. package/dist/bundled/v3/components/{OrErrorTag → OrErrorTagV3}/OrErrorTag.js +4 -4
  220. package/dist/bundled/v3/components/OrErrorTagV3/index.js +2 -2
  221. package/dist/bundled/v3/components/OrErrorV3/OrError.js +21 -0
  222. package/dist/bundled/v3/components/{OrExpansionPanel → OrExpansionPanelV3}/OrExpansionPanel.js +5 -5
  223. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +2 -2
  224. package/dist/bundled/v3/components/{OrFab → OrFabV3}/OrFab.js +5 -5
  225. package/dist/bundled/v3/components/OrFabV3/index.js +2 -2
  226. package/dist/bundled/v3/components/OrHintV3/OrHint.js +21 -0
  227. package/dist/bundled/v3/{OrIconButton-0d8e85d9.js → components/OrIconButtonV3/OrIconButton.js} +29 -1
  228. package/dist/bundled/v3/components/OrIconButtonV3/index.js +11 -8
  229. package/dist/bundled/v3/{OrIcon-671794cb.js → components/OrIconV3/OrIcon.js} +5 -1
  230. package/dist/bundled/v3/components/{OrInlineInputBox → OrInlineInputBoxV3}/OrInlineInputBox.js +2 -2
  231. package/dist/bundled/v3/components/{OrInlineInput → OrInlineInputV3}/OrInlineInput.js +19 -15
  232. package/dist/bundled/v3/components/OrInlineInputV3/index.js +16 -12
  233. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +3 -3
  234. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +2 -2
  235. package/dist/bundled/v3/components/{OrInlineTextarea → OrInlineTextareaV3}/OrInlineTextarea.js +18 -14
  236. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +16 -12
  237. package/dist/bundled/v3/components/{OrInputBox → OrInputBoxV3}/OrInputBox.js +2 -2
  238. package/dist/bundled/v3/{OrInput-ab04adbb.js → components/OrInputV3/OrInput.js} +55 -2
  239. package/dist/bundled/v3/components/OrInputV3/index.js +18 -14
  240. package/dist/bundled/v3/{OrLabel-47f15fc0.js → components/OrLabelV3/OrLabel.js} +5 -1
  241. package/dist/bundled/v3/components/{OrLink → OrLinkV3}/OrLink.js +2 -2
  242. package/dist/bundled/v3/components/OrList/OrList.js +4 -4
  243. package/dist/bundled/v3/components/OrList/index.js +3 -3
  244. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +5 -5
  245. package/dist/bundled/v3/components/OrListOfInputs/index.js +4 -4
  246. package/dist/bundled/v3/{OrLoader-1c02d64d.js → components/OrLoaderV3/OrLoader.js} +6 -1
  247. package/dist/bundled/v3/components/{OrMenuItem → OrMenuItemV3}/OrMenuItem.js +4 -4
  248. package/dist/bundled/v3/components/OrMenuItemV3/index.js +2 -2
  249. package/dist/bundled/v3/components/{OrMenu → OrMenuV3}/OrMenu.js +10 -8
  250. package/dist/bundled/v3/components/OrMenuV3/index.js +8 -6
  251. package/dist/bundled/v3/components/OrModal/OrModal.js +3 -3
  252. package/dist/bundled/v3/components/OrModal/index.js +2 -2
  253. package/dist/bundled/v3/components/OrModalV3/OrModal.js +66 -0
  254. package/dist/bundled/v3/components/OrModalV3/index.js +14 -11
  255. package/dist/bundled/v3/components/OrNotification/OrNotification.js +3 -3
  256. package/dist/bundled/v3/components/OrNotification/index.js +2 -2
  257. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +59 -0
  258. package/dist/bundled/v3/components/OrNotificationV3/index.js +13 -10
  259. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +4 -4
  260. package/dist/bundled/v3/components/OrOverflowMenu/index.js +3 -3
  261. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +28 -0
  262. package/dist/bundled/v3/components/OrOverlayV3/index.js +2 -1
  263. package/dist/bundled/v3/components/{OrPagination → OrPaginationV3}/OrPagination.js +18 -16
  264. package/dist/bundled/v3/components/OrPaginationV3/index.js +16 -14
  265. package/dist/bundled/v3/components/OrPassword/OrPassword.js +3 -3
  266. package/dist/bundled/v3/components/OrPassword/index.js +2 -2
  267. package/dist/bundled/v3/components/{OrPopover → OrPopoverV3}/OrPopover.js +9 -7
  268. package/dist/bundled/v3/components/OrPopoverV3/index.js +6 -4
  269. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +84 -0
  270. package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +50 -0
  271. package/dist/bundled/v3/components/OrRadioV3/index.js +2 -2
  272. package/dist/bundled/v3/components/OrSearch/OrSearch.js +3 -3
  273. package/dist/bundled/v3/components/OrSearch/index.js +2 -2
  274. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +85 -0
  275. package/dist/bundled/v3/components/OrSearchV3/index.js +20 -16
  276. package/dist/bundled/v3/components/{OrSegmentedControl → OrSegmentedControlV3}/OrSegmentedControl.js +2 -2
  277. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +294 -0
  278. package/dist/bundled/v3/components/OrSelectV3/index.js +30 -24
  279. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +75 -0
  280. package/dist/bundled/v3/components/OrSidebarV3/index.js +13 -10
  281. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.js +18 -0
  282. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.js +18 -0
  283. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +24 -0
  284. package/dist/bundled/v3/components/{OrSortHeader → OrSortHeaderV3}/OrSortHeader.js +4 -4
  285. package/dist/bundled/v3/components/OrSortHeaderV3/index.js +2 -2
  286. package/dist/bundled/v3/components/OrStepper/OrStepper.js +3 -3
  287. package/dist/bundled/v3/components/OrStepper/index.js +2 -2
  288. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +66 -0
  289. package/dist/bundled/v3/components/OrSwitchV3/index.js +3 -3
  290. package/dist/bundled/v3/components/OrTabV3/OrTab.js +21 -0
  291. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +91 -0
  292. package/dist/bundled/v3/components/OrTabsV3/index.js +14 -11
  293. package/dist/bundled/v3/components/OrTagV3/OrTag.js +63 -0
  294. package/dist/bundled/v3/components/OrTagV3/index.js +13 -10
  295. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.js +14 -0
  296. package/dist/bundled/v3/components/{OrText → OrTextV3}/OrText.js +1 -1
  297. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +103 -0
  298. package/dist/bundled/v3/components/OrTextareaV3/index.js +5 -4
  299. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +3 -3
  300. package/dist/bundled/v3/components/OrTextbox/index.js +2 -2
  301. package/dist/bundled/v3/components/OrToast/OrToast.js +1 -1
  302. package/dist/bundled/v3/components/OrToast/index.js +35 -6
  303. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +5 -5
  304. package/dist/bundled/v3/components/OrToastContainer/index.js +5 -5
  305. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +79 -0
  306. package/dist/bundled/v3/components/OrToastContainerV3/index.js +19 -15
  307. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-4da13abb.js → components/OrToastV3/OrToast.js} +43 -156
  308. package/dist/bundled/v3/components/OrToastV3/index.js +43 -6
  309. package/dist/bundled/v3/components/OrToastV3/props.js +1 -1
  310. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +48 -0
  311. package/dist/bundled/v3/components/OrTooltipV3/index.js +8 -6
  312. package/dist/bundled/v3/components/index.js +99 -90
  313. package/dist/bundled/v3/index.js +115 -979
  314. package/dist/bundled/v3/{props-fb3f60a5.js → props-7be029c7.js} +1 -1
  315. package/package.json +2 -2
  316. package/dist/bundled/v2/components/OrColorPicker/defultPalette.js +0 -15
  317. package/dist/bundled/v2/components/OrToast/useQueue.js +0 -33
  318. package/dist/bundled/v2/components/OrToast/useToast.js +0 -82
  319. package/dist/bundled/v2/components/OrToast/useToastEventBus.js +0 -24
  320. package/dist/bundled/v2/components/OrToastV3/useQueue.js +0 -33
  321. package/dist/bundled/v2/components/OrToastV3/useToast.js +0 -82
  322. package/dist/bundled/v2/components/OrToastV3/useToastEventBus.js +0 -24
  323. package/dist/bundled/v3/OrHint-12428e42.js +0 -35
  324. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-5e089ff3.js +0 -83
  325. package/dist/bundled/v3/components/OrColorPicker/defultPalette.js +0 -15
  326. package/dist/bundled/v3/components/OrToast/useQueue.js +0 -33
  327. package/dist/bundled/v3/components/OrToast/useToast.js +0 -82
  328. package/dist/bundled/v3/components/OrToast/useToastEventBus.js +0 -24
  329. package/dist/bundled/v3/components/OrToastV3/useQueue.js +0 -33
  330. package/dist/bundled/v3/components/OrToastV3/useToast.js +0 -82
  331. package/dist/bundled/v3/components/OrToastV3/useToastEventBus.js +0 -24
  332. /package/dist/bundled/v2/components/{OrIconButton → OrIconButtonV2}/OrIconButton.js +0 -0
  333. /package/dist/bundled/v3/components/{OrIconButton → OrIconButtonV2}/OrIconButton.js +0 -0
@@ -29,4 +29,4 @@ var props = /*#__PURE__*/Object.freeze({
29
29
  get ToastType () { return ToastType; }
30
30
  });
31
31
 
32
- export { PositionsX as P, ToastType as T, PositionsY as a, TransitionType as b, props as p };
32
+ export { PositionsX as P, TransitionType as T, PositionsY as a, ToastType as b, props as p };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.77.0-beta.2448.0",
3
+ "version": "2.77.0-beta.2456.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@babel/preset-env": "7.18.10",
56
- "@onereach/rollup-vue-lib-config": "2.0.1-SB7769.0",
56
+ "@onereach/rollup-vue-lib-config": "2.0.1-SB7772.0",
57
57
  "@rollup/plugin-replace": "4.0.0",
58
58
  "@rollup/plugin-url": "^8.0.1",
59
59
  "@storybook/addon-actions": "6.5.15",
@@ -1,15 +0,0 @@
1
- import Palette from './constants.js';
2
-
3
- const defaultTones = ['900', '700', '500', '300', '100'];
4
- function defaultPalette() {
5
- return Object.entries(Palette).reduce((acc, [color, schema]) => {
6
- if (color === 'black' || color === 'white') {
7
- acc.push([Palette[color].default]);
8
- } else {
9
- acc.push(defaultTones === null || defaultTones === void 0 ? void 0 : defaultTones.map(tone => schema[tone]));
10
- }
11
- return acc;
12
- }, []);
13
- }
14
-
15
- export { defaultPalette as default };
@@ -1,33 +0,0 @@
1
- import { ref } from 'vue-demi';
2
-
3
- function useQueue(initialValue) {
4
- //generic needed! see https://github.com/vuejs/core/issues/2136
5
- const queue = ref(initialValue || []);
6
- const addItem = item => {
7
- const refItem = ref(item);
8
- queue.value.push(refItem);
9
- };
10
- const removeItem = condition => {
11
- const index = queue.value.findIndex((i, idx, q) => {
12
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
13
- });
14
- if (index !== -1) queue.value.splice(index, 1);
15
- };
16
- const getItem = condition => {
17
- return queue.value.filter((i, idx, q) => {
18
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
19
- })[0];
20
- };
21
- const clearAll = () => {
22
- queue.value = [];
23
- };
24
- return {
25
- queue,
26
- addItem,
27
- removeItem,
28
- clearAll,
29
- getItem
30
- };
31
- }
32
-
33
- export { useQueue as default };
@@ -1,82 +0,0 @@
1
- import Timer from './Timer.js';
2
- import useToastEventBus from './useToastEventBus.js';
3
- import { ToastType } from './constants.js';
4
- import '@vueuse/core';
5
-
6
- function useToast(globalToastProps = {}) {
7
- const {
8
- emit
9
- } = useToastEventBus();
10
- function notify(props, behaviour = {}) {
11
- const {
12
- duration = 5000,
13
- pauseOnHover = true,
14
- onToastClose,
15
- onToastClick
16
- } = behaviour;
17
- const propsData = {
18
- ...props,
19
- ...globalToastProps
20
- };
21
- const config = {
22
- toastProps: propsData,
23
- //generate ToastHash
24
- hash: Math.random().toString(36).slice(2),
25
- ...(Number.isInteger(duration) && {
26
- timer: new Timer()
27
- }),
28
- toastBehaviour: {
29
- duration,
30
- pauseOnHover,
31
- onToastClose,
32
- onToastClick
33
- }
34
- };
35
- emit('toastNotify', config);
36
- return {
37
- close: () => emit('toastClose', config),
38
- update: data => emit('toastUpdate', {
39
- ...config,
40
- toastProps: {
41
- ...config.toastProps,
42
- ...data
43
- }
44
- })
45
- };
46
- }
47
- function clearAll() {
48
- emit('toastCloseAll');
49
- }
50
- function success(props, behaviour = {}) {
51
- return notify({
52
- ...props,
53
- toastType: ToastType.success
54
- }, behaviour);
55
- }
56
- function error(props, behaviour = {}) {
57
- return notify({
58
- ...props,
59
- toastType: ToastType.error
60
- }, behaviour);
61
- }
62
- function loading(props, behaviour = {}) {
63
- return notify({
64
- ...props,
65
- toastType: ToastType.loading,
66
- dismissible: false
67
- }, {
68
- ...behaviour,
69
- duration: 0 // <- toast with type "loading" will not cloe automatically
70
- });
71
- }
72
-
73
- return {
74
- notify,
75
- clearAll,
76
- success,
77
- error,
78
- loading
79
- };
80
- }
81
-
82
- export { useToast as default };
@@ -1,24 +0,0 @@
1
- import { createSharedComposable, useEventBus } from '@vueuse/core';
2
-
3
- const useToastEventBus = () => {
4
- const busPull = {
5
- toastNotify: useEventBus('toastNotify'),
6
- toastClose: useEventBus('toastClose'),
7
- toastCloseAll: useEventBus('toastCloseAll'),
8
- toastUpdate: useEventBus('toastUpdate')
9
- };
10
- return {
11
- on: (namedQueue, listener) => {
12
- busPull[namedQueue].on(listener);
13
- },
14
- off: (namedQueue, listener) => {
15
- busPull[namedQueue].off(listener);
16
- },
17
- emit: (namedQueue, data) => {
18
- busPull[namedQueue].emit(data);
19
- }
20
- };
21
- };
22
- var useToastEventBus$1 = createSharedComposable(useToastEventBus);
23
-
24
- export { useToastEventBus$1 as default };
@@ -1,33 +0,0 @@
1
- import { ref } from 'vue-demi';
2
-
3
- function useQueue(initialValue) {
4
- //generic needed! see https://github.com/vuejs/core/issues/2136
5
- const queue = ref(initialValue || []);
6
- const addItem = item => {
7
- const refItem = ref(item);
8
- queue.value.push(refItem);
9
- };
10
- const removeItem = condition => {
11
- const index = queue.value.findIndex((i, idx, q) => {
12
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
13
- });
14
- if (index !== -1) queue.value.splice(index, 1);
15
- };
16
- const getItem = condition => {
17
- return queue.value.filter((i, idx, q) => {
18
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
19
- })[0];
20
- };
21
- const clearAll = () => {
22
- queue.value = [];
23
- };
24
- return {
25
- queue,
26
- addItem,
27
- removeItem,
28
- clearAll,
29
- getItem
30
- };
31
- }
32
-
33
- export { useQueue as default };
@@ -1,82 +0,0 @@
1
- import { T as ToastType } from '../../props-fb3f60a5.js';
2
- import Timer from './Timer.js';
3
- import useToastEventBus from './useToastEventBus.js';
4
- import '@vueuse/core';
5
-
6
- function useToast(globalToastProps = {}) {
7
- const {
8
- emit
9
- } = useToastEventBus();
10
- function notify(props, behaviour = {}) {
11
- const {
12
- duration = 5000,
13
- pauseOnHover = true,
14
- onToastClose,
15
- onToastClick
16
- } = behaviour;
17
- const propsData = {
18
- ...props,
19
- ...globalToastProps
20
- };
21
- const config = {
22
- toastProps: propsData,
23
- //generate ToastHash
24
- hash: Math.random().toString(36).slice(2),
25
- ...(Number.isInteger(duration) && {
26
- timer: new Timer()
27
- }),
28
- toastBehaviour: {
29
- duration,
30
- pauseOnHover,
31
- onToastClose,
32
- onToastClick
33
- }
34
- };
35
- emit('toastNotify', config);
36
- return {
37
- close: () => emit('toastClose', config),
38
- update: data => emit('toastUpdate', {
39
- ...config,
40
- toastProps: {
41
- ...config.toastProps,
42
- ...data
43
- }
44
- })
45
- };
46
- }
47
- function clearAll() {
48
- emit('toastCloseAll');
49
- }
50
- function success(props, behaviour = {}) {
51
- return notify({
52
- ...props,
53
- toastType: ToastType.Success
54
- }, behaviour);
55
- }
56
- function error(props, behaviour = {}) {
57
- return notify({
58
- ...props,
59
- toastType: ToastType.Error
60
- }, behaviour);
61
- }
62
- function loading(props, behaviour = {}) {
63
- return notify({
64
- ...props,
65
- toastType: ToastType.Loading,
66
- dismissible: false
67
- }, {
68
- ...behaviour,
69
- duration: 0 // <- toast with type "loading" will not cloe automatically
70
- });
71
- }
72
-
73
- return {
74
- notify,
75
- clearAll,
76
- success,
77
- error,
78
- loading
79
- };
80
- }
81
-
82
- export { useToast as default };
@@ -1,24 +0,0 @@
1
- import { createSharedComposable, useEventBus } from '@vueuse/core';
2
-
3
- const useToastEventBus = () => {
4
- const busPull = {
5
- toastNotify: useEventBus('toastNotify'),
6
- toastClose: useEventBus('toastClose'),
7
- toastCloseAll: useEventBus('toastCloseAll'),
8
- toastUpdate: useEventBus('toastUpdate')
9
- };
10
- return {
11
- on: (namedQueue, listener) => {
12
- busPull[namedQueue].on(listener);
13
- },
14
- off: (namedQueue, listener) => {
15
- busPull[namedQueue].off(listener);
16
- },
17
- emit: (namedQueue, data) => {
18
- busPull[namedQueue].emit(data);
19
- }
20
- };
21
- };
22
- var useToastEventBus$1 = createSharedComposable(useToastEventBus);
23
-
24
- export { useToastEventBus$1 as default };
@@ -1,35 +0,0 @@
1
- import { s as script } from './OrError.vue_vue_type_script_lang-de6e6cd3.js';
2
- import { openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
3
- import { s as script$1 } from './OrHint.vue_vue_type_script_lang-ec2b37d4.js';
4
-
5
- const _hoisted_1$1 = ["disabled"];
6
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
7
- return openBlock(), createElementBlock("div", {
8
- ref: "root",
9
- class: normalizeClass(_ctx.rootStyles),
10
- disabled: _ctx.disabled ? '' : null
11
- }, [createElementVNode("div", {
12
- class: normalizeClass(_ctx.textStyles)
13
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), createElementVNode("div", {
14
- class: normalizeClass(_ctx.addonStyles)
15
- }, [renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1$1);
16
- }
17
-
18
- script.render = render$1;
19
- script.__file = "src/components/or-error-v3/OrError.vue";
20
-
21
- const _hoisted_1 = ["disabled"];
22
- function render(_ctx, _cache, $props, $setup, $data, $options) {
23
- return openBlock(), createElementBlock("div", {
24
- ref: "root",
25
- class: normalizeClass(_ctx.rootStyles),
26
- disabled: _ctx.disabled ? '' : null
27
- }, [createElementVNode("div", {
28
- class: normalizeClass(_ctx.textStyles)
29
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), createElementVNode("div", {
30
- class: normalizeClass(_ctx.addonStyles)
31
- }, [renderSlot(_ctx.$slots, "addon")], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
32
- }
33
-
34
- script$1.render = render;
35
- script$1.__file = "src/components/or-hint-v3/OrHint.vue";
@@ -1,83 +0,0 @@
1
- import { defineComponent, ref, computed } from 'vue-demi';
2
- import { IconButtonColor } from './components/OrIconButtonV3/props.js';
3
- import { IconButtonRoot, IconButtonRootColors } from './components/OrIconButtonV3/styles.js';
4
- import './OrIcon-671794cb.js';
5
- import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-a27e7f1f.js';
6
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, withCtx, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
7
- import { IconSize } from './components/OrIconV3/props.js';
8
- import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-1a037644.js';
9
-
10
- function render(_ctx, _cache, $props, $setup, $data, $options) {
11
- const _component_OrPopover = resolveComponent("OrPopover");
12
- return openBlock(), createElementBlock("div", {
13
- ref: "root",
14
- class: normalizeClass(_ctx.rootStyles)
15
- }, [renderSlot(_ctx.$slots, "default"), _ctx.text ? (openBlock(), createBlock(_component_OrPopover, {
16
- key: 0,
17
- ref: "popover",
18
- variant: 'popover',
19
- trigger: _ctx.root,
20
- placement: _ctx.placement,
21
- "full-width": false,
22
- "disable-default-styles": true,
23
- "onUpdate:state": _cache[0] || (_cache[0] = $event => _ctx.$emit('update:state', $event))
24
- }, {
25
- default: withCtx(() => [createElementVNode("div", {
26
- class: normalizeClass(_ctx.bodyStyles)
27
- }, toDisplayString(_ctx.text), 3 /* TEXT, CLASS */)]),
28
-
29
- _: 1 /* STABLE */
30
- }, 8 /* PROPS */, ["trigger", "placement"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
31
- }
32
-
33
- script$1.render = render;
34
- script$1.__file = "src/components/or-tooltip-v3/OrTooltip.vue";
35
-
36
- var script = defineComponent({
37
- name: 'OrIconButton',
38
- components: {
39
- OrIcon: script$2,
40
- OrTooltip: script$1
41
- },
42
- inheritAttrs: false,
43
- props: {
44
- icon: {
45
- type: [String, Object],
46
- required: true
47
- },
48
- color: {
49
- type: String,
50
- default: IconButtonColor.Default
51
- },
52
- size: {
53
- type: String,
54
- default: IconSize.M
55
- },
56
- selected: {
57
- type: Boolean,
58
- default: false
59
- },
60
- disabled: {
61
- type: Boolean,
62
- default: false
63
- },
64
- tooltip: {
65
- type: [String, Object],
66
- default: undefined
67
- }
68
- },
69
- emits: ['click', 'focus', 'blur'],
70
- expose: ['root'],
71
- setup(props) {
72
- // Refs
73
- const root = ref();
74
- // Styles
75
- const rootStyles = computed(() => ['or-icon-button', ...IconButtonRoot, ...IconButtonRootColors[props.color]]);
76
- return {
77
- root,
78
- rootStyles
79
- };
80
- }
81
- });
82
-
83
- export { script as s };
@@ -1,15 +0,0 @@
1
- import Palette from './constants.js';
2
-
3
- const defaultTones = ['900', '700', '500', '300', '100'];
4
- function defaultPalette() {
5
- return Object.entries(Palette).reduce((acc, [color, schema]) => {
6
- if (color === 'black' || color === 'white') {
7
- acc.push([Palette[color].default]);
8
- } else {
9
- acc.push(defaultTones === null || defaultTones === void 0 ? void 0 : defaultTones.map(tone => schema[tone]));
10
- }
11
- return acc;
12
- }, []);
13
- }
14
-
15
- export { defaultPalette as default };
@@ -1,33 +0,0 @@
1
- import { ref } from 'vue-demi';
2
-
3
- function useQueue(initialValue) {
4
- //generic needed! see https://github.com/vuejs/core/issues/2136
5
- const queue = ref(initialValue || []);
6
- const addItem = item => {
7
- const refItem = ref(item);
8
- queue.value.push(refItem);
9
- };
10
- const removeItem = condition => {
11
- const index = queue.value.findIndex((i, idx, q) => {
12
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
13
- });
14
- if (index !== -1) queue.value.splice(index, 1);
15
- };
16
- const getItem = condition => {
17
- return queue.value.filter((i, idx, q) => {
18
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
19
- })[0];
20
- };
21
- const clearAll = () => {
22
- queue.value = [];
23
- };
24
- return {
25
- queue,
26
- addItem,
27
- removeItem,
28
- clearAll,
29
- getItem
30
- };
31
- }
32
-
33
- export { useQueue as default };
@@ -1,82 +0,0 @@
1
- import Timer from './Timer.js';
2
- import useToastEventBus from './useToastEventBus.js';
3
- import { ToastType } from './constants.js';
4
- import '@vueuse/core';
5
-
6
- function useToast(globalToastProps = {}) {
7
- const {
8
- emit
9
- } = useToastEventBus();
10
- function notify(props, behaviour = {}) {
11
- const {
12
- duration = 5000,
13
- pauseOnHover = true,
14
- onToastClose,
15
- onToastClick
16
- } = behaviour;
17
- const propsData = {
18
- ...props,
19
- ...globalToastProps
20
- };
21
- const config = {
22
- toastProps: propsData,
23
- //generate ToastHash
24
- hash: Math.random().toString(36).slice(2),
25
- ...(Number.isInteger(duration) && {
26
- timer: new Timer()
27
- }),
28
- toastBehaviour: {
29
- duration,
30
- pauseOnHover,
31
- onToastClose,
32
- onToastClick
33
- }
34
- };
35
- emit('toastNotify', config);
36
- return {
37
- close: () => emit('toastClose', config),
38
- update: data => emit('toastUpdate', {
39
- ...config,
40
- toastProps: {
41
- ...config.toastProps,
42
- ...data
43
- }
44
- })
45
- };
46
- }
47
- function clearAll() {
48
- emit('toastCloseAll');
49
- }
50
- function success(props, behaviour = {}) {
51
- return notify({
52
- ...props,
53
- toastType: ToastType.success
54
- }, behaviour);
55
- }
56
- function error(props, behaviour = {}) {
57
- return notify({
58
- ...props,
59
- toastType: ToastType.error
60
- }, behaviour);
61
- }
62
- function loading(props, behaviour = {}) {
63
- return notify({
64
- ...props,
65
- toastType: ToastType.loading,
66
- dismissible: false
67
- }, {
68
- ...behaviour,
69
- duration: 0 // <- toast with type "loading" will not cloe automatically
70
- });
71
- }
72
-
73
- return {
74
- notify,
75
- clearAll,
76
- success,
77
- error,
78
- loading
79
- };
80
- }
81
-
82
- export { useToast as default };
@@ -1,24 +0,0 @@
1
- import { createSharedComposable, useEventBus } from '@vueuse/core';
2
-
3
- const useToastEventBus = () => {
4
- const busPull = {
5
- toastNotify: useEventBus('toastNotify'),
6
- toastClose: useEventBus('toastClose'),
7
- toastCloseAll: useEventBus('toastCloseAll'),
8
- toastUpdate: useEventBus('toastUpdate')
9
- };
10
- return {
11
- on: (namedQueue, listener) => {
12
- busPull[namedQueue].on(listener);
13
- },
14
- off: (namedQueue, listener) => {
15
- busPull[namedQueue].off(listener);
16
- },
17
- emit: (namedQueue, data) => {
18
- busPull[namedQueue].emit(data);
19
- }
20
- };
21
- };
22
- var useToastEventBus$1 = createSharedComposable(useToastEventBus);
23
-
24
- export { useToastEventBus$1 as default };
@@ -1,33 +0,0 @@
1
- import { ref } from 'vue-demi';
2
-
3
- function useQueue(initialValue) {
4
- //generic needed! see https://github.com/vuejs/core/issues/2136
5
- const queue = ref(initialValue || []);
6
- const addItem = item => {
7
- const refItem = ref(item);
8
- queue.value.push(refItem);
9
- };
10
- const removeItem = condition => {
11
- const index = queue.value.findIndex((i, idx, q) => {
12
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
13
- });
14
- if (index !== -1) queue.value.splice(index, 1);
15
- };
16
- const getItem = condition => {
17
- return queue.value.filter((i, idx, q) => {
18
- return condition === null || condition === void 0 ? void 0 : condition(i.value, idx, q);
19
- })[0];
20
- };
21
- const clearAll = () => {
22
- queue.value = [];
23
- };
24
- return {
25
- queue,
26
- addItem,
27
- removeItem,
28
- clearAll,
29
- getItem
30
- };
31
- }
32
-
33
- export { useQueue as default };