@onereach/ui-components 2.62.7-beta.1921.0 → 2.62.7-beta.1928.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 (249) hide show
  1. package/dist/v2/{OrConfirm-edc537b3.js → OrConfirm-24e2a1a2.js} +1 -1
  2. package/dist/v2/{OrInlineInput-73ec1b85.js → OrInlineInput-8455f9da.js} +5 -5
  3. package/dist/v2/{OrInlineTextarea-1858a348.js → OrInlineTextarea-1127e512.js} +5 -5
  4. package/dist/v2/{OrInput-655bed71.js → OrInput-24028f23.js} +5 -5
  5. package/dist/v2/{OrSearch-287a08a9.js → OrSearch-978a3a6e.js} +1 -1
  6. package/dist/v2/OrSegmentedControl-58b5db14.js +231 -0
  7. package/dist/v2/{OrSelect-1a353817.js → OrSelect-c6d0a69e.js} +3 -3
  8. package/dist/v2/{OrTextarea-cc70afc9.js → OrTextarea-8773d494.js} +5 -5
  9. package/dist/v2/components/index.d.ts +1 -2
  10. package/dist/v2/components/{or-sort-header-v3/OrSortHeader.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
  11. package/dist/{v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts → v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts} +45 -25
  12. package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
  13. package/dist/v2/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
  14. package/dist/v2/components/or-segmented-control-v3/index.d.ts +3 -0
  15. package/dist/v2/components/or-segmented-control-v3/props.d.ts +4 -0
  16. package/dist/v2/components/or-segmented-control-v3/styles.d.ts +3 -0
  17. package/dist/v2/components/or-segmented-control-v3/types.d.ts +4 -0
  18. package/dist/v2/index.js +8 -9
  19. package/dist/v2/index11.js +1 -20
  20. package/dist/v2/index12.js +12 -3
  21. package/dist/v2/index13.js +2 -3
  22. package/dist/v2/index14.js +5 -11
  23. package/dist/v2/index15.js +14 -5
  24. package/dist/v2/index16.js +19 -4
  25. package/dist/v2/index17.js +4 -28
  26. package/dist/v2/index18.js +7 -3
  27. package/dist/v2/index19.js +23 -5
  28. package/dist/v2/index2.js +8 -9
  29. package/dist/v2/index20.js +21 -25
  30. package/dist/v2/index21.js +18 -21
  31. package/dist/v2/index22.js +2 -20
  32. package/dist/v2/index23.js +4 -2
  33. package/dist/v2/index24.js +1 -2
  34. package/dist/v2/index25.js +2 -1
  35. package/dist/v2/index26.js +2 -2
  36. package/dist/v2/index27.js +7 -4
  37. package/dist/v2/index28.js +2 -6
  38. package/dist/v2/index29.js +3 -3
  39. package/dist/v2/index30.js +10 -3
  40. package/dist/v2/index31.js +12 -9
  41. package/dist/v2/index32.js +1 -11
  42. package/dist/v2/index33.js +1 -1
  43. package/dist/v2/index34.js +16 -1
  44. package/dist/v2/index35.js +17 -17
  45. package/dist/v2/index36.js +17 -17
  46. package/dist/v2/index37.js +1 -16
  47. package/dist/v2/index38.js +17 -1
  48. package/dist/v2/index39.js +22 -18
  49. package/dist/v2/index40.js +2 -22
  50. package/dist/v2/index41.js +3 -3
  51. package/dist/v2/index42.js +1 -1
  52. package/dist/v2/index43.js +20 -3
  53. package/dist/v2/index44.js +7 -1
  54. package/dist/v2/index45.js +1 -24
  55. package/dist/v2/index46.js +3 -3
  56. package/dist/v2/index47.js +2 -1
  57. package/dist/v2/index48.js +9 -2
  58. package/dist/v2/index49.js +17 -10
  59. package/dist/v2/index50.js +13 -17
  60. package/dist/v2/index51.js +14 -13
  61. package/dist/v2/index52.js +13 -14
  62. package/dist/v2/index53.js +15 -12
  63. package/dist/v2/index54.js +1 -16
  64. package/dist/v2/index55.js +6 -2
  65. package/dist/v2/index56.js +5 -1
  66. package/dist/v2/index57.js +3 -10
  67. package/dist/v2/index58.js +4 -2
  68. package/dist/v2/index59.js +3 -5
  69. package/dist/v2/index60.js +1 -2
  70. package/dist/v2/index61.js +5 -2
  71. package/dist/v2/index62.js +18 -3
  72. package/dist/v2/index63.js +2 -19
  73. package/dist/v2/index65.js +2 -2
  74. package/dist/v2/index71.js +15 -4
  75. package/dist/v2/index72.js +2 -13
  76. package/dist/v2/index73.js +6 -4
  77. package/dist/v2/index74.js +4 -6
  78. package/dist/v2/index75.js +1 -2
  79. package/dist/v2/index76.js +3 -3
  80. package/dist/v2/index77.js +4 -3
  81. package/dist/v2/index78.js +15 -4
  82. package/dist/v2/index79.js +11 -14
  83. package/dist/v2/index80.js +13 -11
  84. package/dist/v2/index81.js +2 -14
  85. package/dist/v2/index82.js +2 -2
  86. package/dist/v2/index83.js +3 -2
  87. package/dist/v2/index84.js +6 -1
  88. package/dist/v2/index85.js +20 -7
  89. package/dist/v2/index86.js +9 -12
  90. package/dist/v2/index87.js +1 -18
  91. package/dist/v2/index88.js +18 -2
  92. package/dist/v2/index89.js +2 -18
  93. package/dist/v2/index90.js +10 -2
  94. package/dist/v2/index91.js +11 -9
  95. package/dist/v2/index92.js +1 -12
  96. package/dist/v2/index93.js +6 -1
  97. package/dist/v2/index94.js +1 -5
  98. package/dist/v3/{OrConfirm-0bafcc7b.js → OrConfirm-371630a4.js} +1 -1
  99. package/dist/v3/{OrInlineInput-dc71bbcb.js → OrInlineInput-a080b0a3.js} +3 -5
  100. package/dist/v3/{OrInlineTextarea-bdebb784.js → OrInlineTextarea-08767485.js} +3 -5
  101. package/dist/v3/{OrInput-db4813b4.js → OrInput-256d2530.js} +3 -5
  102. package/dist/v3/{OrSearch-0c29f499.js → OrSearch-375eab55.js} +1 -1
  103. package/dist/v3/OrSegmentedControl-e45af169.js +183 -0
  104. package/dist/v3/{OrSelect-323a87b4.js → OrSelect-52cfb10d.js} +4 -6
  105. package/dist/v3/{OrTextarea-98895b2a.js → OrTextarea-09aa33dc.js} +4 -6
  106. package/dist/v3/components/index.d.ts +1 -2
  107. package/dist/v3/components/{or-sort-header-v3/OrSortHeader.stories3.d.ts → or-segmented-control-v3/OrSegmentedControl.stories3.d.ts} +1 -1
  108. package/dist/{v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts → v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts} +45 -25
  109. package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +47 -0
  110. package/dist/v3/components/or-segmented-control-v3/components/or-segmented-control-item/styles.d.ts +3 -0
  111. package/dist/v3/components/or-segmented-control-v3/index.d.ts +3 -0
  112. package/dist/v3/components/or-segmented-control-v3/props.d.ts +4 -0
  113. package/dist/v3/components/or-segmented-control-v3/styles.d.ts +3 -0
  114. package/dist/v3/components/or-segmented-control-v3/types.d.ts +4 -0
  115. package/dist/v3/index.js +8 -9
  116. package/dist/v3/index11.js +1 -19
  117. package/dist/v3/index12.js +11 -3
  118. package/dist/v3/index13.js +2 -3
  119. package/dist/v3/index14.js +4 -9
  120. package/dist/v3/index15.js +11 -4
  121. package/dist/v3/index16.js +17 -3
  122. package/dist/v3/index17.js +4 -25
  123. package/dist/v3/index18.js +6 -3
  124. package/dist/v3/index19.js +20 -5
  125. package/dist/v3/index2.js +8 -9
  126. package/dist/v3/index20.js +20 -21
  127. package/dist/v3/index21.js +15 -20
  128. package/dist/v3/index22.js +1 -16
  129. package/dist/v3/index23.js +4 -2
  130. package/dist/v3/index24.js +1 -2
  131. package/dist/v3/index25.js +2 -1
  132. package/dist/v3/index26.js +2 -2
  133. package/dist/v3/index27.js +6 -4
  134. package/dist/v3/index28.js +2 -5
  135. package/dist/v3/index29.js +3 -3
  136. package/dist/v3/index30.js +9 -3
  137. package/dist/v3/index31.js +11 -8
  138. package/dist/v3/index32.js +1 -10
  139. package/dist/v3/index33.js +1 -1
  140. package/dist/v3/index34.js +15 -1
  141. package/dist/v3/index35.js +14 -16
  142. package/dist/v3/index36.js +16 -14
  143. package/dist/v3/index37.js +2 -16
  144. package/dist/v3/index38.js +17 -2
  145. package/dist/v3/index39.js +17 -17
  146. package/dist/v3/index40.js +1 -16
  147. package/dist/v3/index41.js +3 -3
  148. package/dist/v3/index42.js +1 -1
  149. package/dist/v3/index43.js +16 -3
  150. package/dist/v3/index44.js +7 -1
  151. package/dist/v3/index45.js +1 -20
  152. package/dist/v3/index46.js +3 -3
  153. package/dist/v3/index47.js +2 -1
  154. package/dist/v3/index48.js +8 -2
  155. package/dist/v3/index49.js +14 -9
  156. package/dist/v3/index50.js +12 -14
  157. package/dist/v3/index51.js +11 -12
  158. package/dist/v3/index52.js +12 -11
  159. package/dist/v3/index53.js +11 -11
  160. package/dist/v3/index54.js +1 -12
  161. package/dist/v3/index55.js +5 -2
  162. package/dist/v3/index56.js +5 -1
  163. package/dist/v3/index57.js +3 -9
  164. package/dist/v3/index58.js +4 -2
  165. package/dist/v3/index59.js +3 -5
  166. package/dist/v3/index60.js +1 -2
  167. package/dist/v3/index61.js +4 -1
  168. package/dist/v3/index62.js +17 -3
  169. package/dist/v3/index63.js +2 -18
  170. package/dist/v3/index65.js +2 -2
  171. package/dist/v3/index71.js +12 -4
  172. package/dist/v3/index72.js +2 -10
  173. package/dist/v3/index73.js +5 -3
  174. package/dist/v3/index74.js +3 -5
  175. package/dist/v3/index75.js +1 -2
  176. package/dist/v3/index76.js +3 -3
  177. package/dist/v3/index77.js +4 -3
  178. package/dist/v3/index78.js +14 -4
  179. package/dist/v3/index79.js +10 -13
  180. package/dist/v3/index80.js +12 -10
  181. package/dist/v3/index81.js +1 -13
  182. package/dist/v3/index82.js +1 -1
  183. package/dist/v3/index83.js +3 -1
  184. package/dist/v3/index84.js +6 -1
  185. package/dist/v3/index85.js +16 -6
  186. package/dist/v3/index86.js +9 -12
  187. package/dist/v3/index87.js +1 -15
  188. package/dist/v3/index88.js +17 -2
  189. package/dist/v3/index89.js +2 -17
  190. package/dist/v3/index90.js +8 -2
  191. package/dist/v3/index91.js +9 -6
  192. package/dist/v3/index92.js +1 -11
  193. package/dist/v3/index93.js +6 -1
  194. package/dist/v3/index94.js +1 -5
  195. package/package.json +1 -1
  196. package/src/components/index.ts +1 -2
  197. package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +1 -1
  198. package/src/components/or-inline-input-v3/OrInlineInput.vue +10 -12
  199. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +10 -12
  200. package/src/components/or-input-v3/OrInput.vue +10 -12
  201. package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
  202. package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +7 -0
  203. package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +118 -0
  204. package/src/components/{or-sort-header-v3/OrSortHeader.vue → or-segmented-control-v3/OrSegmentedControl.vue} +34 -36
  205. package/src/components/or-segmented-control-v3/components/or-segmented-control-item/OrSegmentedControlItem.vue +63 -0
  206. package/src/components/or-segmented-control-v3/components/or-segmented-control-item/styles.ts +50 -0
  207. package/src/components/or-segmented-control-v3/index.ts +3 -0
  208. package/src/components/or-segmented-control-v3/props.ts +4 -0
  209. package/src/components/or-segmented-control-v3/styles.ts +24 -0
  210. package/src/components/or-segmented-control-v3/types.ts +4 -0
  211. package/src/components/or-select-v3/OrSelect.vue +3 -5
  212. package/src/components/or-switch-v3/OrSwitch.stories3.ts +1 -1
  213. package/src/components/or-textarea-v3/OrTextarea.vue +10 -12
  214. package/dist/v2/OrCardCollection-5d5046f1.js +0 -227
  215. package/dist/v2/OrSortHeader-a6004b24.js +0 -133
  216. package/dist/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -17
  217. package/dist/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -98
  218. package/dist/v2/components/or-card-collection-v3/index.d.ts +0 -3
  219. package/dist/v2/components/or-card-collection-v3/props.d.ts +0 -4
  220. package/dist/v2/components/or-card-collection-v3/styles.d.ts +0 -6
  221. package/dist/v2/components/or-card-collection-v3/types.d.ts +0 -7
  222. package/dist/v2/components/or-sort-header-v3/index.d.ts +0 -2
  223. package/dist/v2/components/or-sort-header-v3/styles.d.ts +0 -1
  224. package/dist/v2/components/or-sort-header-v3/types.d.ts +0 -4
  225. package/dist/v2/index95.js +0 -3
  226. package/dist/v3/OrCardCollection-c6f3ac23.js +0 -198
  227. package/dist/v3/OrSortHeader-5eba50cd.js +0 -104
  228. package/dist/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -17
  229. package/dist/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -98
  230. package/dist/v3/components/or-card-collection-v3/index.d.ts +0 -3
  231. package/dist/v3/components/or-card-collection-v3/props.d.ts +0 -4
  232. package/dist/v3/components/or-card-collection-v3/styles.d.ts +0 -6
  233. package/dist/v3/components/or-card-collection-v3/types.d.ts +0 -7
  234. package/dist/v3/components/or-sort-header-v3/index.d.ts +0 -2
  235. package/dist/v3/components/or-sort-header-v3/styles.d.ts +0 -1
  236. package/dist/v3/components/or-sort-header-v3/types.d.ts +0 -4
  237. package/dist/v3/index95.js +0 -3
  238. package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +0 -3
  239. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +0 -162
  240. package/src/components/or-card-collection-v3/OrCardCollection.vue +0 -210
  241. package/src/components/or-card-collection-v3/index.ts +0 -3
  242. package/src/components/or-card-collection-v3/props.ts +0 -4
  243. package/src/components/or-card-collection-v3/styles.ts +0 -53
  244. package/src/components/or-card-collection-v3/types.ts +0 -8
  245. package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +0 -3
  246. package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +0 -132
  247. package/src/components/or-sort-header-v3/index.ts +0 -2
  248. package/src/components/or-sort-header-v3/styles.ts +0 -23
  249. package/src/components/or-sort-header-v3/types.ts +0 -4
@@ -1,10 +1,20 @@
1
- export { s as OrTextareaV3 } from './OrTextarea-98895b2a.js';
2
- export { a as TextareaSize } from './OrInputBox-634230b1.js';
1
+ export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
3
2
  import 'vue-demi';
4
- import './useClassAttribute-47fdb016.js';
5
3
  import '@vueuse/core';
6
- import './OrError-19a62a18.js';
4
+ import './useToggle-29e4d7c7.js';
5
+ import './px-to-rem-0b26b83e.js';
6
+ import './dom-7a41831b.js';
7
+ import 'lodash';
8
+ import './OrLabel-876f8729.js';
7
9
  import 'vue';
8
- import './OrHint-73835593.js';
9
- import './OrLabel-7d4fe80b.js';
10
10
  import './style-inject.es-4c6f2515.js';
11
+ import './OrIconButton-f72cb8d9.js';
12
+ import './OrIcon-e23028f8.js';
13
+ import './OrTooltip-121eae2b.js';
14
+ import './OrFloating-3da814a2.js';
15
+ import '@floating-ui/dom';
16
+ import './OrTeleportVue3-ad639f12.js';
17
+ import './OrLoader-15174477.js';
18
+ import './OrHint-1414c530.js';
19
+ import './OrError-f90296db.js';
20
+ import './OrCollapse-37a52e8f.js';
@@ -1,20 +1,17 @@
1
- export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-faa4f81a.js';
1
+ export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
2
+ export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
3
+ import './OrIconButton-f72cb8d9.js';
2
4
  import 'vue-demi';
3
- import '@vueuse/core';
4
- import './useToggle-29e4d7c7.js';
5
- import './px-to-rem-0b26b83e.js';
6
- import './dom-7a41831b.js';
5
+ import './OrIcon-e23028f8.js';
7
6
  import 'lodash';
8
- import './OrLabel-876f8729.js';
7
+ import './OrTooltip-121eae2b.js';
9
8
  import 'vue';
10
9
  import './style-inject.es-4c6f2515.js';
11
- import './OrIconButton-f72cb8d9.js';
12
- import './OrIcon-e23028f8.js';
13
- import './OrTooltip-121eae2b.js';
14
10
  import './OrFloating-3da814a2.js';
15
11
  import '@floating-ui/dom';
16
12
  import './OrTeleportVue3-ad639f12.js';
13
+ import './dom-7a41831b.js';
14
+ import './px-to-rem-0b26b83e.js';
17
15
  import './OrLoader-15174477.js';
18
- import './OrHint-1414c530.js';
19
- import './OrError-f90296db.js';
20
- import './OrCollapse-37a52e8f.js';
16
+ import './OrProgress-d0d52c86.js';
17
+ import '@vueuse/core';
@@ -1,17 +1,3 @@
1
- export { s as OrToast, a as OrToastContainer } from './OrToastContainer-fe6abe90.js';
2
- export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
3
- import './OrIconButton-f72cb8d9.js';
1
+ export { a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
4
2
  import 'vue-demi';
5
- import './OrIcon-e23028f8.js';
6
- import 'lodash';
7
- import './OrTooltip-121eae2b.js';
8
- import 'vue';
9
- import './style-inject.es-4c6f2515.js';
10
- import './OrFloating-3da814a2.js';
11
- import '@floating-ui/dom';
12
- import './OrTeleportVue3-ad639f12.js';
13
- import './dom-7a41831b.js';
14
- import './px-to-rem-0b26b83e.js';
15
- import './OrLoader-15174477.js';
16
- import './OrProgress-d0d52c86.js';
17
3
  import '@vueuse/core';
@@ -1,3 +1,18 @@
1
- export { a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
2
- import 'vue-demi';
1
+ export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-d5d4ab32.js';
2
+ export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
3
3
  import '@vueuse/core';
4
+ import 'vue-demi';
5
+ import './OrTeleport.vue3-8099178c.js';
6
+ import 'vue';
7
+ import './OrIconButton-5fb3a9aa.js';
8
+ import './useClassAttribute-47fdb016.js';
9
+ import './OrIcon-b3906e35.js';
10
+ import './OrTooltip-36c6728c.js';
11
+ import './OrPopover-3525c670.js';
12
+ import '@floating-ui/dom';
13
+ import './useElevation-0e973238.js';
14
+ import './useResponsive-a02e95b7.js';
15
+ import './OrBottomSheet-9de57dd0.js';
16
+ import './OrOverlay-27050c19.js';
17
+ import './OrLoader-60943812.js';
18
+ import './style-inject.es-4c6f2515.js';
@@ -1,18 +1,3 @@
1
- export { a as OrToastContainerV3, s as OrToastV3, t as TypesV3 } from './types-d5d4ab32.js';
2
- export { p as PropsV3, a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
3
- import '@vueuse/core';
1
+ export { a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
4
2
  import 'vue-demi';
5
- import './OrTeleport.vue3-8099178c.js';
6
- import 'vue';
7
- import './OrIconButton-5fb3a9aa.js';
8
- import './useClassAttribute-47fdb016.js';
9
- import './OrIcon-b3906e35.js';
10
- import './OrTooltip-36c6728c.js';
11
- import './OrPopover-3525c670.js';
12
- import '@floating-ui/dom';
13
- import './useElevation-0e973238.js';
14
- import './useResponsive-a02e95b7.js';
15
- import './OrBottomSheet-9de57dd0.js';
16
- import './OrOverlay-27050c19.js';
17
- import './OrLoader-60943812.js';
18
- import './style-inject.es-4c6f2515.js';
3
+ import '@vueuse/core';
@@ -1,3 +1,9 @@
1
- export { a as useQueueV3, u as useToastV3 } from './useToast-0665462d.js';
1
+ export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
2
2
  import 'vue-demi';
3
- import '@vueuse/core';
3
+ import 'lodash';
4
+ import 'vue';
5
+ import './style-inject.es-4c6f2515.js';
6
+ import './OrFloating-3da814a2.js';
7
+ import '@floating-ui/dom';
8
+ import './OrTeleportVue3-ad639f12.js';
9
+ import './dom-7a41831b.js';
@@ -1,9 +1,12 @@
1
- export { s as OrTooltip, a as OrTooltipContent } from './OrTooltip-121eae2b.js';
1
+ export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
2
+ export { P as TooltipPlacement } from './OrPopover-3525c670.js';
3
+ import '@vueuse/core';
2
4
  import 'vue-demi';
3
- import 'lodash';
5
+ import './useClassAttribute-47fdb016.js';
4
6
  import 'vue';
5
- import './style-inject.es-4c6f2515.js';
6
- import './OrFloating-3da814a2.js';
7
7
  import '@floating-ui/dom';
8
- import './OrTeleportVue3-ad639f12.js';
9
- import './dom-7a41831b.js';
8
+ import './useElevation-0e973238.js';
9
+ import './useResponsive-a02e95b7.js';
10
+ import './OrBottomSheet-9de57dd0.js';
11
+ import './OrOverlay-27050c19.js';
12
+ import './OrTeleport.vue3-8099178c.js';
@@ -1,12 +1,2 @@
1
- export { s as OrTooltipV3 } from './OrTooltip-36c6728c.js';
2
- export { P as TooltipPlacement } from './OrPopover-3525c670.js';
3
- import '@vueuse/core';
1
+ export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
4
2
  import 'vue-demi';
5
- import './useClassAttribute-47fdb016.js';
6
- import 'vue';
7
- import '@floating-ui/dom';
8
- import './useElevation-0e973238.js';
9
- import './useResponsive-a02e95b7.js';
10
- import './OrBottomSheet-9de57dd0.js';
11
- import './OrOverlay-27050c19.js';
12
- import './OrTeleport.vue3-8099178c.js';
@@ -1,2 +1,7 @@
1
- export { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
1
+ export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
+ export { u as useElevation } from './useElevation-0e973238.js';
3
+ export { u as useOverflow } from './useOverflow-ac506c65.js';
4
+ export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
+ export { u as useToggle } from './useToggle-29e4d7c7.js';
2
6
  import 'vue-demi';
7
+ import '@vueuse/core';
@@ -1,7 +1,3 @@
1
- export { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
2
- export { u as useElevation } from './useElevation-0e973238.js';
3
- export { u as useOverflow } from './useOverflow-ac506c65.js';
4
1
  export { u as useResponsive } from './useResponsive-a02e95b7.js';
5
- export { u as useToggle } from './useToggle-29e4d7c7.js';
6
- import 'vue-demi';
7
2
  import '@vueuse/core';
3
+ import 'vue-demi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.62.7-beta.1921.0",
3
+ "version": "2.62.7-beta.1928.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -6,7 +6,6 @@ export * from './or-button-v2';
6
6
  export * from './or-button-v3';
7
7
  export * from './or-card';
8
8
  export * from './or-card-collection';
9
- export * from './or-card-collection-v3';
10
9
  export * from './or-card-v3';
11
10
  export * from './or-carousel';
12
11
  export * from './or-checkbox';
@@ -59,6 +58,7 @@ export * from './or-radio';
59
58
  export * from './or-radio-group';
60
59
  export * from './or-radio-v3';
61
60
  export * from './or-search-v3';
61
+ export * from './or-segmented-control-v3';
62
62
  export * from './or-select';
63
63
  export * from './or-select-v3';
64
64
  export * from './or-sidebar';
@@ -66,7 +66,6 @@ export * from './or-sidebar-v3';
66
66
  export * from './or-skeleton';
67
67
  export * from './or-skeleton-v3';
68
68
  export * from './or-slider';
69
- export * from './or-sort-header-v3';
70
69
  export * from './or-stepper';
71
70
  export * from './or-switch';
72
71
  export * from './or-switch-v3';
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
 
29
29
  value: { // TODO: Remove Vue 2 fallback
30
- control: { type: 'object' },
30
+ table: { disable: true },
31
31
  },
32
32
 
33
33
  inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
@@ -41,18 +41,16 @@
41
41
  </div>
42
42
 
43
43
  <template v-if="!invalid">
44
- <template v-if="hint || maxLength">
45
- <OrHint>
46
- {{ hint }}
47
-
48
- <template
49
- v-if="maxLength"
50
- v-slot:addon
51
- >
52
- {{ currentLength }} / {{ maxLength }}
53
- </template>
54
- </OrHint>
55
- </template>
44
+ <OrHint>
45
+ {{ hint }}
46
+
47
+ <template
48
+ v-if="maxLength"
49
+ v-slot:addon
50
+ >
51
+ {{ currentLength }} / {{ maxLength }}
52
+ </template>
53
+ </OrHint>
56
54
  </template>
57
55
 
58
56
  <template v-else>
@@ -40,18 +40,16 @@
40
40
  </div>
41
41
 
42
42
  <template v-if="!invalid">
43
- <template v-if="hint || maxLength">
44
- <OrHint>
45
- {{ hint }}
46
-
47
- <template
48
- v-if="maxLength"
49
- v-slot:addon
50
- >
51
- {{ currentLength }} / {{ maxLength }}
52
- </template>
53
- </OrHint>
54
- </template>
43
+ <OrHint>
44
+ {{ hint }}
45
+
46
+ <template
47
+ v-if="maxLength"
48
+ v-slot:addon
49
+ >
50
+ {{ currentLength }} / {{ maxLength }}
51
+ </template>
52
+ </OrHint>
55
53
  </template>
56
54
 
57
55
  <template v-else>
@@ -72,18 +72,16 @@
72
72
  </OrInputBox>
73
73
 
74
74
  <template v-if="!invalid">
75
- <template v-if="hint || maxLength">
76
- <OrHint :disabled="disabled">
77
- {{ hint }}
78
-
79
- <template
80
- v-if="maxLength"
81
- v-slot:addon
82
- >
83
- {{ currentLength }} / {{ maxLength }}
84
- </template>
85
- </OrHint>
86
- </template>
75
+ <OrHint :disabled="disabled">
76
+ {{ hint }}
77
+
78
+ <template
79
+ v-if="maxLength"
80
+ v-slot:addon
81
+ >
82
+ {{ currentLength }} / {{ maxLength }}
83
+ </template>
84
+ </OrHint>
87
85
  </template>
88
86
 
89
87
  <template v-else>
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
 
29
29
  value: { // TODO: Remove Vue 2 fallback
30
- control: { type: 'object' },
30
+ table: { disable: true },
31
31
  },
32
32
 
33
33
  inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
@@ -0,0 +1,7 @@
1
+ import { DocsPage } from '@storybook/addon-docs';
2
+
3
+ ```ts
4
+ import { OrSegmentedControlV3 as OrSegmentedControl } from '@onereach/ui-components';
5
+ ```
6
+
7
+ <DocsPage />
@@ -0,0 +1,118 @@
1
+ import { action } from '@storybook/addon-actions';
2
+ import { Meta, StoryFn } from '@storybook/vue3';
3
+ import { ref, watch } from 'vue-demi';
4
+ import OrSegmentedControlDocs from './OrSegmentedControl.docs.mdx';
5
+ import OrSegmentedControl from './OrSegmentedControl.vue';
6
+ import { SegmentedControlSize } from './props';
7
+ import { SegmentedControlOption } from './types';
8
+
9
+ export default {
10
+ title: 'Components/Forms/Segmented Control',
11
+ component: OrSegmentedControl,
12
+
13
+ argTypes: {
14
+ // Props
15
+ options: {
16
+ control: { type: 'object' },
17
+ },
18
+
19
+ modelValue: {
20
+ control: { type: 'text' },
21
+ },
22
+
23
+ value: { // TODO: Remove Vue 2 fallback
24
+ table: { disable: true },
25
+ },
26
+
27
+ size: {
28
+ control: { type: 'select' },
29
+ options: Object.values(SegmentedControlSize),
30
+ },
31
+
32
+ disabled: {
33
+ control: { type: 'boolean' },
34
+ },
35
+
36
+ // Events
37
+ 'update:modelValue': {
38
+ table: { disable: true },
39
+ },
40
+
41
+ input: {
42
+ table: { disable: true },
43
+ },
44
+
45
+ focus: {
46
+ table: { disable: true },
47
+ },
48
+
49
+ blur: {
50
+ table: { disable: true },
51
+ },
52
+ },
53
+
54
+ parameters: {
55
+ layout: 'centered',
56
+
57
+ docs: {
58
+ page: OrSegmentedControlDocs,
59
+ },
60
+
61
+ design: {
62
+ type: 'figma',
63
+ url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=410%3A2097&t=7N93DAotOYMOX2kx-1',
64
+ },
65
+ },
66
+ } as Meta<typeof OrSegmentedControl>;
67
+
68
+ const Template: StoryFn<typeof OrSegmentedControl> = (args) => ({
69
+ components: {
70
+ OrSegmentedControl,
71
+ },
72
+
73
+ setup() {
74
+ // State
75
+ const model = ref<string>();
76
+
77
+ // Effects
78
+ watch(model, (value) => {
79
+ console.debug(value);
80
+ });
81
+
82
+ return {
83
+ args,
84
+ model,
85
+ onUpdateModelValue: action('update:modelValue'),
86
+ onInput: action('input'),
87
+ onFocus: action('focus'),
88
+ onBlur: action('blur'),
89
+ };
90
+ },
91
+
92
+ template: `
93
+ <OrSegmentedControl
94
+ v-model="model"
95
+ v-bind="args"
96
+ @update:modelValue="onUpdateModelValue"
97
+ @input="onInput"
98
+ @focus="onFocus"
99
+ @blur="onBlur"
100
+ />
101
+ `,
102
+ });
103
+
104
+ export const Base = Template.bind({});
105
+
106
+ Base.args = {
107
+ // Props
108
+ options: Array.from<string, SegmentedControlOption>([
109
+ 'Alfa',
110
+ 'Bravo',
111
+ 'Charlie',
112
+ 'Delta',
113
+ 'Echo',
114
+ ], (item) => ({
115
+ value: item.toLowerCase(),
116
+ label: item,
117
+ })),
118
+ };
@@ -3,50 +3,61 @@
3
3
  ref="root"
4
4
  v-bind="$attrs"
5
5
  :class="rootStyles"
6
- :activated="activated ? '' : null"
7
- @click.stop="toggleDirection()"
8
6
  >
9
- <slot />
10
-
11
- <template v-if="activated">
12
- <OrIcon
13
- :class="{ 'rotate-180': proxyModelValue.direction === 'asc' }"
14
- :icon="'arrow_downward'"
15
- />
16
- </template>
7
+ <OrSegmentedControlItem
8
+ v-for="option in options"
9
+ :key="option.value"
10
+ :size="size"
11
+ :selected="option.value === proxyModelValue"
12
+ :disabled="disabled"
13
+ @click.stop="proxyModelValue = option.value"
14
+ >
15
+ {{ option.label }}
16
+ </OrSegmentedControlItem>
17
17
  </div>
18
18
  </template>
19
19
 
20
20
  <script lang="ts">
21
21
  import { computed, defineComponent, PropType, ref } from 'vue-demi';
22
22
  import { useClassAttribute } from '../../hooks';
23
- import { OrIconV3 as OrIcon } from '../or-icon-v3';
24
- import { SortHeaderRoot } from './styles';
25
- import { SortHeaderModel } from './types';
23
+ import OrSegmentedControlItem from './components/or-segmented-control-item/OrSegmentedControlItem.vue';
24
+ import { SegmentedControlSize } from './props';
25
+ import { SegmentedControlRoot, SegmentedControlRootSizes } from './styles';
26
+ import { SegmentedControlOption } from './types';
26
27
 
27
28
  export default defineComponent({
28
- name: 'OrSortHeader',
29
+ name: 'OrSegmentedControl',
29
30
 
30
31
  components: {
31
- OrIcon,
32
+ OrSegmentedControlItem,
32
33
  },
33
34
 
34
35
  inheritAttrs: false,
35
36
 
36
37
  props: {
38
+ options: {
39
+ type: Array as PropType<SegmentedControlOption[]>,
40
+ default: [] as SegmentedControlOption[],
41
+ },
42
+
37
43
  modelValue: {
38
- type: Object as PropType<SortHeaderModel>,
44
+ type: String,
39
45
  default: undefined,
40
46
  },
41
47
 
42
48
  value: { // TODO: Remove Vue 2 fallback
43
- type: Object as PropType<SortHeaderModel>,
49
+ type: String,
44
50
  default: undefined,
45
51
  },
46
52
 
47
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
48
- type: String,
49
- required: true,
53
+ size: {
54
+ type: String as PropType<SegmentedControlSize>,
55
+ default: SegmentedControlSize.M,
56
+ },
57
+
58
+ disabled: {
59
+ type: Boolean,
60
+ default: false,
50
61
  },
51
62
  },
52
63
 
@@ -70,8 +81,9 @@ export default defineComponent({
70
81
  const classAttribute = useClassAttribute();
71
82
 
72
83
  const rootStyles = computed(() => [
73
- 'or-sort-header',
74
- ...SortHeaderRoot,
84
+ 'or-segmented-control',
85
+ ...SegmentedControlRoot,
86
+ ...SegmentedControlRootSizes[props.size],
75
87
  classAttribute.value,
76
88
  ]);
77
89
 
@@ -87,24 +99,10 @@ export default defineComponent({
87
99
  },
88
100
  });
89
101
 
90
- const activated = computed(() => {
91
- return proxyModelValue.value?.column === props.inputValue;
92
- });
93
-
94
- // Methods
95
- function toggleDirection(): void {
96
- proxyModelValue.value = {
97
- column: props.inputValue,
98
- direction: proxyModelValue.value?.direction === 'asc' ? 'desc' : 'asc',
99
- };
100
- }
101
-
102
102
  return {
103
103
  root,
104
104
  rootStyles,
105
105
  proxyModelValue,
106
- activated,
107
- toggleDirection,
108
106
  };
109
107
  },
110
108
  });
@@ -0,0 +1,63 @@
1
+ <template>
2
+ <div
3
+ ref="root"
4
+ v-bind="$attrs"
5
+ :class="rootStyles"
6
+ :selected="selected ? '' : null"
7
+ :disabled="disabled ? '' : null"
8
+ >
9
+ <div :class="['truncate']">
10
+ <slot />
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script lang="ts">
16
+ import { computed, defineComponent, PropType, ref } from 'vue-demi';
17
+ import { useClassAttribute } from '../../../../hooks';
18
+ import { SegmentedControlSize } from '../../props';
19
+ import { SegmentedControlItemRoot, SegmentedControlItemRootSizes } from './styles';
20
+
21
+ export default defineComponent({
22
+ name: 'OrSegmentedControlItem',
23
+
24
+ inheritAttrs: false,
25
+
26
+ props: {
27
+ size: {
28
+ type: String as PropType<SegmentedControlSize>,
29
+ required: true,
30
+ },
31
+
32
+ selected: {
33
+ type: Boolean,
34
+ default: false,
35
+ },
36
+
37
+ disabled: {
38
+ type: Boolean,
39
+ default: false,
40
+ },
41
+ },
42
+
43
+ setup(props) {
44
+ // Refs
45
+ const root = ref<HTMLElement>();
46
+
47
+ // Styles
48
+ const classAttribute = useClassAttribute();
49
+
50
+ const rootStyles = computed(() => [
51
+ 'or-segmented-control-item',
52
+ ...SegmentedControlItemRoot,
53
+ ...SegmentedControlItemRootSizes[props.size],
54
+ classAttribute.value,
55
+ ]);
56
+
57
+ return {
58
+ root,
59
+ rootStyles,
60
+ };
61
+ },
62
+ });
63
+ </script>