@onereach/ui-components 2.74.8-beta.2337.0 → 2.74.8-beta.2338.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 (184) hide show
  1. package/dist/bundled/v2/{OrCardCollection-ba527c32.js → OrCardCollection-2429285f.js} +3 -3
  2. package/dist/bundled/v2/{OrConfirm-06b41408.js → OrConfirm-2cdb78b3.js} +1 -1
  3. package/dist/bundled/v2/{OrIconButton-deec1d4d.js → OrIconButton-037b9c33.js} +1 -1
  4. package/dist/bundled/v2/{OrInlineInput-9304f205.js → OrInlineInput-6a0ac021.js} +1 -1
  5. package/dist/bundled/v2/{OrInlineTextarea-e0d28fc6.js → OrInlineTextarea-59183fa9.js} +1 -1
  6. package/dist/bundled/v2/{OrInput-e0e8b941.js → OrInput-93ccd5f2.js} +1 -1
  7. package/dist/bundled/v2/{OrMenu-82c77b2c.js → OrMenu-021f347c.js} +1 -1
  8. package/dist/bundled/v2/{OrModal-d845da2d.js → OrModal-4218b040.js} +1 -1
  9. package/dist/bundled/v2/{OrNotification-f7644c55.js → OrNotification-35c163f7.js} +1 -1
  10. package/dist/bundled/v2/{OrPagination-95f37111.js → OrPagination-19494306.js} +1 -1
  11. package/dist/bundled/v2/{OrPopover-597ad11f.js → OrPopover-0697699f.js} +2 -10
  12. package/dist/bundled/v2/{OrSearch-fbf62c5d.js → OrSearch-0178b612.js} +1 -1
  13. package/dist/bundled/v2/{OrSelect-685345f4.js → OrSelect-43ba3073.js} +3 -3
  14. package/dist/bundled/v2/{OrSidebar-5ddf0e24.js → OrSidebar-b7a27e27.js} +1 -1
  15. package/dist/bundled/v2/{OrSidebarCollapseButton-d6ebc2aa.js → OrSidebarCollapseButton-e8632afe.js} +1 -1
  16. package/dist/bundled/v2/{OrTabs-ff22ddce.js → OrTabs-70c1818f.js} +1 -1
  17. package/dist/bundled/v2/{OrTag-1676da32.js → OrTag-59ab76c5.js} +1 -1
  18. package/dist/bundled/v2/{OrText-a665b991.js → OrText-15bf85c4.js} +36 -3
  19. package/dist/bundled/v2/{OrTooltip-87c2e375.js → OrTooltip-9ef540f0.js} +1 -1
  20. package/dist/bundled/v2/components/index.js +20 -20
  21. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -7
  22. package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -5
  23. package/dist/bundled/v2/components/or-icon-button-v3/index.js +3 -3
  24. package/dist/bundled/v2/components/or-inline-input-v3/index.js +4 -4
  25. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +4 -4
  26. package/dist/bundled/v2/components/or-input-v3/index.js +4 -4
  27. package/dist/bundled/v2/components/or-menu-v3/index.js +2 -2
  28. package/dist/bundled/v2/components/or-modal-v3/index.js +4 -4
  29. package/dist/bundled/v2/components/or-notification-v3/index.js +4 -4
  30. package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
  31. package/dist/bundled/v2/components/or-popover-v3/index.js +1 -1
  32. package/dist/bundled/v2/components/or-search-v3/index.js +5 -5
  33. package/dist/bundled/v2/components/or-select-v3/index.js +6 -6
  34. package/dist/bundled/v2/components/or-sidebar-v3/index.js +5 -5
  35. package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +4 -4
  36. package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
  37. package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
  38. package/dist/bundled/v2/components/or-tag-v3/index.js +4 -4
  39. package/dist/bundled/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
  40. package/dist/bundled/v2/components/or-text-v3/index.js +1 -1
  41. package/dist/bundled/v2/components/or-toast-v3/index.js +4 -4
  42. package/dist/bundled/v2/components/or-tooltip-v3/index.js +2 -2
  43. package/dist/bundled/v2/index.js +21 -21
  44. package/dist/bundled/v2/{types-0e3ca5b9.js → types-da54f18c.js} +1 -1
  45. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e33148c.js → OrCardCollection.vue_vue_type_script_lang-b474de2d.js} +5 -5
  46. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-8e7c65df.js → OrConfirm.vue_vue_type_script_lang-239c88b9.js} +2 -2
  47. package/dist/bundled/v3/{OrIconButton-8f4c68e9.js → OrIconButton-a2091425.js} +1 -1
  48. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-8670c49e.js → OrIconButton.vue_vue_type_script_lang-14871105.js} +1 -1
  49. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-cd4a64f6.js → OrInlineInput.vue_vue_type_script_lang-f2cc2704.js} +2 -2
  50. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a73ff1ee.js → OrInlineTextarea.vue_vue_type_script_lang-9c6d7277.js} +2 -2
  51. package/dist/bundled/v3/{OrInput-7679287c.js → OrInput-3bf44521.js} +1 -1
  52. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-edf81609.js → OrInput.vue_vue_type_script_lang-38947e44.js} +2 -2
  53. package/dist/bundled/v3/{OrMenu-c982d515.js → OrMenu-c2c114de.js} +1 -1
  54. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-cefb0eca.js → OrMenu.vue_vue_type_script_lang-518b5305.js} +1 -1
  55. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-3f3ce339.js → OrModal.vue_vue_type_script_lang-8d7f1436.js} +2 -2
  56. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-4532696a.js → OrNotification.vue_vue_type_script_lang-b0280317.js} +2 -2
  57. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b6e7592e.js → OrPagination.vue_vue_type_script_lang-cdab5b21.js} +2 -2
  58. package/dist/bundled/v3/{OrPopover-0c296207.js → OrPopover-f9a1d5d7.js} +7 -8
  59. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-7b934bbf.js → OrSearch.vue_vue_type_script_lang-409490d8.js} +2 -2
  60. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2206f2b8.js → OrSelect.vue_vue_type_script_lang-b50634d8.js} +4 -4
  61. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-4639bf0e.js → OrSidebar.vue_vue_type_script_lang-b5adff07.js} +1 -1
  62. package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-a46ed51a.js → OrSidebarCollapseButton.vue_vue_type_script_lang-ddb36366.js} +2 -2
  63. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-c8df52e6.js → OrTabs.vue_vue_type_script_lang-7a2b137a.js} +2 -2
  64. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-c33033d3.js → OrTag.vue_vue_type_script_lang-4fe7e19f.js} +2 -2
  65. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-e93438ea.js +93 -0
  66. package/dist/bundled/v3/{OrToastContainer-5c99d3ce.js → OrToastContainer-6ade8920.js} +1 -1
  67. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a17ed18c.js → OrTooltip.vue_vue_type_script_lang-0c228e6f.js} +1 -1
  68. package/dist/bundled/v3/components/index.js +23 -23
  69. package/dist/bundled/v3/components/or-card-collection-v3/index.js +10 -10
  70. package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -7
  71. package/dist/bundled/v3/components/or-icon-button-v3/index.js +3 -3
  72. package/dist/bundled/v3/components/or-inline-input-v3/index.js +5 -5
  73. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +5 -5
  74. package/dist/bundled/v3/components/or-input-v3/index.js +5 -5
  75. package/dist/bundled/v3/components/or-menu-v3/index.js +2 -2
  76. package/dist/bundled/v3/components/or-modal-v3/index.js +5 -5
  77. package/dist/bundled/v3/components/or-notification-v3/index.js +5 -5
  78. package/dist/bundled/v3/components/or-pagination-v3/index.js +4 -4
  79. package/dist/bundled/v3/components/or-search-v3/index.js +7 -7
  80. package/dist/bundled/v3/components/or-select-v3/index.js +8 -8
  81. package/dist/bundled/v3/components/or-sidebar-v3/index.js +6 -6
  82. package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +5 -5
  83. package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +5 -5
  84. package/dist/bundled/v3/components/or-tabs-v3/index.js +4 -4
  85. package/dist/bundled/v3/components/or-tag-v3/index.js +5 -5
  86. package/dist/bundled/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
  87. package/dist/bundled/v3/components/or-text-v3/index.js +1 -1
  88. package/dist/bundled/v3/components/or-toast-v3/index.js +6 -6
  89. package/dist/bundled/v3/components/or-tooltip-v3/index.js +2 -2
  90. package/dist/bundled/v3/index.js +36 -36
  91. package/dist/bundled/v3/{types-5a9ace3b.js → types-9a4dc8a9.js} +2 -2
  92. package/dist/esm/v2/{OrCardCollection-fa7e81fc.js → OrCardCollection-f8b71fc6.js} +4 -4
  93. package/dist/esm/v2/{OrConfirm-06885721.js → OrConfirm-15e27711.js} +1 -1
  94. package/dist/esm/v2/{OrIconButton-fa9bff07.js → OrIconButton-140f940e.js} +2 -2
  95. package/dist/esm/v2/{OrInlineInput-df02ab5d.js → OrInlineInput-3b1afd44.js} +1 -1
  96. package/dist/esm/v2/{OrInlineTextarea-ad120656.js → OrInlineTextarea-8990fc61.js} +1 -1
  97. package/dist/esm/v2/{OrInput-a19adb5d.js → OrInput-1ddf99ba.js} +1 -1
  98. package/dist/esm/v2/{OrMenu-bb6e93bc.js → OrMenu-1adef5df.js} +1 -1
  99. package/dist/esm/v2/{OrModal-370cfc3b.js → OrModal-a938e31b.js} +1 -1
  100. package/dist/esm/v2/{OrNotification-687b4999.js → OrNotification-e8c1df46.js} +1 -1
  101. package/dist/esm/v2/{OrPagination-81d4476a.js → OrPagination-c27faf97.js} +2 -2
  102. package/dist/esm/v2/{OrPopover-a101a230.js → OrPopover-b3746279.js} +2 -10
  103. package/dist/esm/v2/{OrSearch-513c80e5.js → OrSearch-09e7d4dc.js} +1 -1
  104. package/dist/esm/v2/{OrSelect-a9e8f533.js → OrSelect-d991fe95.js} +3 -3
  105. package/dist/esm/v2/{OrSidebar-89711112.js → OrSidebar-6b246de1.js} +1 -1
  106. package/dist/esm/v2/{OrSidebarCollapseButton-81c77db0.js → OrSidebarCollapseButton-9178923e.js} +1 -1
  107. package/dist/esm/v2/{OrTabs-b501239f.js → OrTabs-6d7d9d7e.js} +2 -2
  108. package/dist/esm/v2/{OrTag-6fd8988e.js → OrTag-1ed1265c.js} +1 -1
  109. package/dist/esm/v2/{OrText-b12d0682.js → OrText-91d662a0.js} +36 -3
  110. package/dist/esm/v2/{OrTooltip-d9424f71.js → OrTooltip-34d2e01f.js} +1 -1
  111. package/dist/esm/v2/components/index.js +20 -20
  112. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
  113. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
  114. package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
  115. package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
  116. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
  117. package/dist/esm/v2/components/or-input-v3/index.js +4 -4
  118. package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
  119. package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
  120. package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
  121. package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
  122. package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
  123. package/dist/esm/v2/components/or-search-v3/index.js +5 -5
  124. package/dist/esm/v2/components/or-select-v3/index.js +6 -6
  125. package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
  126. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
  127. package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
  128. package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
  129. package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
  130. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +27 -2
  131. package/dist/esm/v2/components/or-text-v3/index.js +1 -1
  132. package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
  133. package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
  134. package/dist/esm/v2/index.js +20 -20
  135. package/dist/esm/v2/{types-d5127999.js → types-98d95522.js} +1 -1
  136. package/dist/esm/v3/{OrCardCollection-8a658b21.js → OrCardCollection-3374f65b.js} +4 -4
  137. package/dist/esm/v3/{OrConfirm-26d799f0.js → OrConfirm-dbf267cd.js} +1 -1
  138. package/dist/esm/v3/{OrIconButton-385e997c.js → OrIconButton-2a9a6627.js} +2 -2
  139. package/dist/esm/v3/{OrInlineInput-cd3753ee.js → OrInlineInput-6c4fe7ff.js} +1 -1
  140. package/dist/esm/v3/{OrInlineTextarea-4c5b0390.js → OrInlineTextarea-3cd956d9.js} +1 -1
  141. package/dist/esm/v3/{OrInput-ab92224c.js → OrInput-0c07888f.js} +1 -1
  142. package/dist/esm/v3/{OrMenu-b4e8136c.js → OrMenu-345930d5.js} +1 -1
  143. package/dist/esm/v3/{OrModal-f9f2279b.js → OrModal-07c092ab.js} +1 -1
  144. package/dist/esm/v3/{OrNotification-03a7426c.js → OrNotification-e600fd9a.js} +1 -1
  145. package/dist/esm/v3/{OrPagination-94c2095f.js → OrPagination-d0ba716f.js} +2 -2
  146. package/dist/esm/v3/{OrPopover-35ee1b1e.js → OrPopover-464a5606.js} +7 -8
  147. package/dist/esm/v3/{OrSearch-88811fdc.js → OrSearch-e1cc559b.js} +1 -1
  148. package/dist/esm/v3/{OrSelect-56031e58.js → OrSelect-b06bf2d8.js} +3 -3
  149. package/dist/esm/v3/{OrSidebar-64703ef6.js → OrSidebar-0a32cc49.js} +1 -1
  150. package/dist/esm/v3/{OrSidebarCollapseButton-506fc73c.js → OrSidebarCollapseButton-647d2c50.js} +1 -1
  151. package/dist/esm/v3/{OrTabs-e639e96f.js → OrTabs-9949f87b.js} +2 -2
  152. package/dist/esm/v3/{OrTag-f5937430.js → OrTag-f66c6142.js} +1 -1
  153. package/dist/esm/v3/{OrText-6b4f7cd1.js → OrText-a3b00048.js} +36 -3
  154. package/dist/esm/v3/{OrTooltip-e5fe74d6.js → OrTooltip-d1b1a4bb.js} +1 -1
  155. package/dist/esm/v3/components/index.js +20 -20
  156. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
  157. package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
  158. package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
  159. package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
  160. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
  161. package/dist/esm/v3/components/or-input-v3/index.js +4 -4
  162. package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
  163. package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
  164. package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
  165. package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
  166. package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
  167. package/dist/esm/v3/components/or-search-v3/index.js +5 -5
  168. package/dist/esm/v3/components/or-select-v3/index.js +6 -6
  169. package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
  170. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
  171. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
  172. package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
  173. package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
  174. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +27 -2
  175. package/dist/esm/v3/components/or-text-v3/index.js +1 -1
  176. package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
  177. package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
  178. package/dist/esm/v3/index.js +20 -20
  179. package/dist/esm/v3/{types-f6f8ab6b.js → types-7d404d5f.js} +1 -1
  180. package/package.json +1 -1
  181. package/src/components/or-popover-v3/OrPopover.vue +26 -31
  182. package/src/components/or-text-v3/OrText.stories3.ts +83 -5
  183. package/src/components/or-text-v3/OrText.vue +37 -3
  184. package/dist/bundled/v3/OrText.vue_vue_type_script_lang-271fb345.js +0 -60
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
6
6
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-eab948fb.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-e6a77cab.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-8a658b21.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-3374f65b.js';
10
10
  export { s as OrCardV3 } from './OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-9071b02e.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-d402975a.js';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-9d6b10da.js';
16
16
  export { s as OrCollapse } from './OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-53890a6e.js';
18
18
  export { s as OrConfirm } from './OrConfirm-02ae9c60.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-26d799f0.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-dbf267cd.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-63f22d1b.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-0025b17c.js';
@@ -28,14 +28,14 @@ export { s as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements
28
28
  export { s as OrHint } from './OrHint-1414c530.js';
29
29
  export { s as OrHintV3 } from './OrHint-6863124f.js';
30
30
  export { s as OrIcon, O as OrIconColors, a as OrIconType } from './OrIcon-71e35d92.js';
31
- export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-385e997c.js';
31
+ export { I as IconButtonColor, s as OrIconButtonV3 } from './OrIconButton-2a9a6627.js';
32
32
  export { I as IconButtonSize, I as IconSize, a as IconVariant, s as OrIconV3 } from './OrIcon-ea40e58c.js';
33
33
  export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3 } from './OrInlineInputBox-09b33e18.js';
34
- export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-cd3753ee.js';
34
+ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-6c4fe7ff.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-941f784a.js';
36
- export { s as OrInlineTextareaV3 } from './OrInlineTextarea-4c5b0390.js';
36
+ export { s as OrInlineTextareaV3 } from './OrInlineTextarea-3cd956d9.js';
37
37
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-2467d7e4.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-ab92224c.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-0c07888f.js';
39
39
  export { s as OrInput } from './OrInput-81125804.js';
40
40
  export { s as OrLabel } from './OrLabel-876f8729.js';
41
41
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
@@ -45,31 +45,31 @@ export { s as OrListOfInputs } from './OrListOfInputs-e459e8c2.js';
45
45
  export { L as LoaderViews, s as OrLoader } from './OrLoader-15174477.js';
46
46
  export { a as LoaderColor, b as LoaderSize, L as LoaderVariant, s as OrLoaderV3 } from './OrLoader-3a918ce9.js';
47
47
  export { s as OrMenuItemV3 } from './OrMenuItem-de91aded.js';
48
- export { s as OrMenuV3 } from './OrMenu-b4e8136c.js';
49
- export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-35ee1b1e.js';
48
+ export { s as OrMenuV3 } from './OrMenu-345930d5.js';
49
+ export { P as MenuPlacement, s as OrPopoverV3, P as PopoverPlacement, a as PopoverVariant, P as TooltipPlacement } from './OrPopover-464a5606.js';
50
50
  export { s as OrModal, O as OrModalSizes } from './OrModal-efacdf3f.js';
51
- export { M as ModalSize, s as OrModalV3 } from './OrModal-f9f2279b.js';
51
+ export { M as ModalSize, s as OrModalV3 } from './OrModal-07c092ab.js';
52
52
  export { a as OR_NOTIFICATION_SIZE, O as OR_NOTIFICATION_TYPE, s as OrNotification } from './OrNotification-f7d413aa.js';
53
- export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-03a7426c.js';
53
+ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotification-e600fd9a.js';
54
54
  export { s as OrNumberInput } from './OrNumberInput-b32b5ce3.js';
55
55
  export { s as OrOverflowMenu } from './OrOverflowMenu-31fa636f.js';
56
56
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
57
57
  export { s as OrOverlayV3 } from './OrOverlay-55f6cf9c.js';
58
58
  export { s as OrPassword } from './OrPassword-25c093b4.js';
59
- export { s as OrPaginationV3 } from './OrPagination-94c2095f.js';
59
+ export { s as OrPaginationV3 } from './OrPagination-d0ba716f.js';
60
60
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
61
61
  export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-639ed5e8.js';
62
62
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
63
63
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
64
64
  export { s as OrRadioV3 } from './OrRadio-97fb105f.js';
65
65
  export { s as OrSearch } from './OrSearch-06c13e14.js';
66
- export { s as OrSearchV3 } from './OrSearch-88811fdc.js';
66
+ export { s as OrSearchV3 } from './OrSearch-e1cc559b.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from './OrSelect-5c6f0ff8.js';
69
- export { s as OrSelectV3 } from './OrSelect-56031e58.js';
69
+ export { s as OrSelectV3 } from './OrSelect-b06bf2d8.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
- export { s as OrSidebarV3 } from './OrSidebar-64703ef6.js';
72
- export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-506fc73c.js';
71
+ export { s as OrSidebarV3 } from './OrSidebar-0a32cc49.js';
72
+ export { O as OrSidebarPlacement } from './OrSidebarCollapseButton-647d2c50.js';
73
73
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
74
74
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './OrSkeletonText-afd3d007.js';
75
75
  export { s as OrSlider } from './OrSlider-f58deda8.js';
@@ -81,21 +81,21 @@ export { s as OrTab } from './OrTab-bc98be02.js';
81
81
  export { s as OrTabHeaderItem } from './OrTabHeaderItem-d668cc59.js';
82
82
  export { s as OrTabV3 } from './OrTab-d3785ea4.js';
83
83
  export { s as OrTabs } from './OrTabs-d3812c11.js';
84
- export { s as OrTabsV3, T as TabsVariant } from './OrTabs-e639e96f.js';
84
+ export { s as OrTabsV3, T as TabsVariant } from './OrTabs-9949f87b.js';
85
85
  export { s as OrTag } from './OrTag-909a5dc9.js';
86
- export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-f5937430.js';
86
+ export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-f66c6142.js';
87
87
  export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
88
88
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
89
- export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
89
+ export { s as OrTextV3 } from './OrText-a3b00048.js';
90
90
  export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
91
91
  export { s as OrTextareaV3 } from './OrTextarea-42d21f77.js';
92
92
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2a3c67fb.js';
93
93
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-a3da18a0.js';
94
94
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
95
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-f6f8ab6b.js';
95
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-7d404d5f.js';
96
96
  export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
97
97
  export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-b71e93b5.js';
98
- export { s as OrTooltipV3 } from './OrTooltip-e5fe74d6.js';
98
+ export { s as OrTooltipV3 } from './OrTooltip-d1b1a4bb.js';
99
99
  export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
100
100
  export { u as useControlAttributes, a as useIdAttribute } from './useIdAttribute-859439f0.js';
101
101
  export { u as useElevation } from './useElevation-92fce12c.js';
@@ -2,7 +2,7 @@ import { useToggle } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, onBeforeMount, onBeforeUnmount, nextTick } from 'vue-demi';
3
3
  import { s as script$4 } from './OrTeleport.vue3-8099178c.js';
4
4
  import { T as ToastType, P as PositionsX, b as PositionsY, c as TransitionType, d as useToastEventBus, a as useQueue } from './useToast-0665462d.js';
5
- import { s as script$2 } from './OrIconButton-385e997c.js';
5
+ import { s as script$2 } from './OrIconButton-2a9a6627.js';
6
6
  import { s as script$3 } from './OrLoader-3a918ce9.js';
7
7
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createVNode, createElementVNode, toDisplayString, createBlock, withModifiers, withCtx, TransitionGroup, Fragment, renderList, mergeProps } from 'vue';
8
8
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.74.8-beta.2337.0",
3
+ "version": "2.74.8-beta.2338.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -1,36 +1,31 @@
1
1
  <template>
2
- <OrTeleport>
3
- <div
4
- v-show="isOpen"
5
- :class="['contents']"
6
- >
7
- <template v-if="isDesktop && variant === 'auto' || variant === 'popover'">
8
- <div
9
- ref="root"
10
- v-bind="$attrs"
11
- :class="rootStyles"
12
- >
13
- <template v-if="disableDefaultStyles">
14
- <slot />
15
- </template>
16
-
17
- <template v-else>
18
- <div :class="bodyStyles">
19
- <slot />
20
- </div>
21
- </template>
22
- </div>
23
- </template>
24
-
25
- <template v-if="isMobile && variant === 'auto' || variant === 'bottom-sheet'">
26
- <OrBottomSheet
27
- ref="bottomSheet"
28
- @update:state="handleBottomSheetState"
29
- >
2
+ <OrTeleport v-if="state !== 'closed'">
3
+ <template v-if="isDesktop && variant === 'auto' || variant === 'popover'">
4
+ <div
5
+ ref="root"
6
+ v-bind="$attrs"
7
+ :class="rootStyles"
8
+ >
9
+ <template v-if="disableDefaultStyles">
30
10
  <slot />
31
- </OrBottomSheet>
32
- </template>
33
- </div>
11
+ </template>
12
+
13
+ <template v-else>
14
+ <div :class="bodyStyles">
15
+ <slot />
16
+ </div>
17
+ </template>
18
+ </div>
19
+ </template>
20
+
21
+ <template v-if="isMobile && variant === 'auto' || variant === 'bottom-sheet'">
22
+ <OrBottomSheet
23
+ ref="bottomSheet"
24
+ @update:state="handleBottomSheetState"
25
+ >
26
+ <slot />
27
+ </OrBottomSheet>
28
+ </template>
34
29
  </OrTeleport>
35
30
  </template>
36
31
 
@@ -34,13 +34,91 @@ const Template: StoryFn<typeof OrText> = (args) => ({
34
34
  },
35
35
 
36
36
  template: `
37
- <OrText v-bind="args" />
37
+ <div class="w-2/5 mx-auto px-md bg-surface-2 dark:bg-surface-2-dark">
38
+ <OrText v-bind="args" />
39
+ </div>
38
40
  `,
39
41
  });
40
42
 
41
- export const Text = Template.bind({});
42
-
43
- Text.args = {
43
+ export const Default = Template.bind({});
44
+ Default.args = {
44
45
  // Props
45
- text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
46
+ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt \
47
+ ut labore et dolore magna aliqua.',
48
+ };
49
+
50
+ export const MiddleCrop = Template.bind({});
51
+ MiddleCrop.args = {
52
+ ...Default.args,
53
+ sliceIndex: 12,
54
+ };
55
+
56
+ export const TooFarLeft = Template.bind({});
57
+ TooFarLeft.args = {
58
+ ...Default.args,
59
+ sliceIndex: 120,
60
+ };
61
+ TooFarLeft.parameters = {
62
+ docs: {
63
+ description: {
64
+ story: 'Caution. If `sliceIndex` is greater than the visible part length, \
65
+ then beginning part with ellipsis is not displayed and ending part overflows the container.',
66
+ },
67
+ },
68
+ };
69
+
70
+ export const ComplexContainer: StoryFn<typeof OrText> = (args) => ({
71
+ components: {
72
+ OrText,
73
+ },
74
+
75
+ setup() {
76
+ return { args };
77
+ },
78
+
79
+ template: `
80
+ <div class="w-full">
81
+ <h3 class="typography-headline-3 mb-md">Flex container side effect</h3>
82
+ <div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
83
+ <!-- fixed part -->
84
+ <div class="w-[20px]" />
85
+ <!-- growing part -->
86
+ <div class="grow px-md">
87
+ <OrText v-bind="args" />
88
+ </div>
89
+ </div>
90
+ <h3 class="typography-headline-3 my-md">Solution with a wrapper</h3>
91
+ <div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
92
+ <!-- fixed part -->
93
+ <div class="w-[20px]" />
94
+ <!-- growing part -->
95
+ <div class="grow px-md min-w-0">
96
+ <OrText v-bind="args" />
97
+ </div>
98
+ </div>
99
+ <h3 class="typography-headline-3 my-md">Solution without a wrapper</h3>
100
+ <div class="w-[300px] flex bg-surface-2 dark:bg-surface-2-dark">
101
+ <!-- fixed part -->
102
+ <div class="w-[20px]" />
103
+ <!-- growing part -->
104
+ <OrText v-bind="args" class="grow px-md min-w-0" />
105
+ </div>
106
+ </div>
107
+ `,
108
+ });
109
+ ComplexContainer.storyName = 'Growing Flex Container';
110
+ ComplexContainer.args = {
111
+ ...Default.args,
112
+ sliceIndex: 12,
113
+ };
114
+ ComplexContainer.parameters = {
115
+ docs: {
116
+ description: {
117
+ story: 'In a special case when OrText is placed inside a variable width container,\
118
+ such as a flexbox growing block, or when it is itself a growing flexbox item,\
119
+ there is a problem for a browser to proper calculate the cropping position.\
120
+ As a solution place a `min-width: 0;` style (tailwind class `min-w-0`)\
121
+ to the growing item - container or the OrText itself.',
122
+ },
123
+ },
46
124
  };
@@ -17,18 +17,33 @@
17
17
  import { computed, defineComponent, ref } from 'vue-demi';
18
18
  import { MainText, RestText, TextRoot } from './styles';
19
19
 
20
+ /**
21
+ * Use `OrText` component to crop un-wrapped single-line text with ellipsis inside narrow containers.
22
+ * Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
23
+ * that have same beginning and differ in the ending part.
24
+ */
20
25
  export default defineComponent({
21
26
  name: 'OrText',
22
27
 
23
28
  props: {
29
+ /**
30
+ * Text to crop.
31
+ */
24
32
  text: {
25
33
  type: String,
26
34
  required: true,
27
35
  },
28
36
 
37
+ /**
38
+ * The index counted from the end of the string where ellipsis will be placed.
39
+ * Defines how many ending characters will remain visible.
40
+ * By default, ellipsis is placed in the end of the line.
41
+ *
42
+ * Note: Negative values behave same as corresponding positives still counting from the end of the line.
43
+ */
29
44
  sliceIndex: {
30
45
  type: Number,
31
- default: undefined,
46
+ default: 0,
32
47
  },
33
48
  },
34
49
 
@@ -54,17 +69,36 @@ export default defineComponent({
54
69
  ...RestText,
55
70
  ]);
56
71
 
72
+ /**
73
+ * Preserves whitespace at the last position as <code>&nbsp;</code>
74
+ * @param str A string to escape
75
+ */
76
+ const escapeLast = (str: string): string => str && (str.slice(0, -1) + '\xa0');
77
+ /**
78
+ * Preserves whitespace at the first position as <code>&nbsp;</code>
79
+ * @param str A string to escape
80
+ */
81
+ const escapeFirst = (str: string): string => str && ('\xa0' + str.slice(1));
82
+
57
83
  // State
58
84
  const mainText = computed(() => {
59
85
  if (props.sliceIndex) {
60
- return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
86
+ let mainPart = props.text.slice(0, -Math.abs(props.sliceIndex));
87
+ if (mainPart[mainPart.length - 1] === ' ') {
88
+ mainPart = escapeLast(mainPart);
89
+ }
90
+ return mainPart;
61
91
  }
62
92
 
63
93
  return props.text;
64
94
  });
65
95
 
66
96
  const restText = computed(() => {
67
- return props.text.slice(mainText.value.length);
97
+ let restPart = props.text.slice(mainText.value.length);
98
+ if (restPart[0] === ' ') {
99
+ restPart = escapeFirst(restPart);
100
+ }
101
+ return restPart;
68
102
  });
69
103
 
70
104
  return {
@@ -1,60 +0,0 @@
1
- import { defineComponent, ref, computed } from 'vue';
2
-
3
- const TextRoot = [
4
- // Layout
5
- 'inline-flex',
6
- // Box
7
- 'max-w-full',
8
- // Typography
9
- 'whitespace-nowrap'];
10
- const MainText = [
11
- // Layout
12
- 'overflow-hidden',
13
- // Typography
14
- 'text-ellipsis'];
15
- const RestText = [
16
- // Layout
17
- 'shrink'];
18
-
19
- var script = defineComponent({
20
- name: 'OrText',
21
- props: {
22
- text: {
23
- type: String,
24
- required: true
25
- },
26
- sliceIndex: {
27
- type: Number,
28
- default: undefined
29
- }
30
- },
31
- expose: ['root'],
32
- setup(props) {
33
- // Refs
34
- const root = ref();
35
- // Styles
36
- const rootStyles = computed(() => ['or-text', ...TextRoot]);
37
- const mainTextStyles = computed(() => [...MainText]);
38
- const restTextStyles = computed(() => [...RestText]);
39
- // State
40
- const mainText = computed(() => {
41
- if (props.sliceIndex) {
42
- return props.text.slice(0, Math.abs(props.sliceIndex) * -1);
43
- }
44
- return props.text;
45
- });
46
- const restText = computed(() => {
47
- return props.text.slice(mainText.value.length);
48
- });
49
- return {
50
- root,
51
- rootStyles,
52
- mainTextStyles,
53
- restTextStyles,
54
- mainText,
55
- restText
56
- };
57
- }
58
- });
59
-
60
- export { script as s };