@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,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-eb895669.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-4838a9b0.js';
4
- import { _ as __vue_component__$3 } from './OrInput-655bed71.js';
4
+ import { _ as __vue_component__$3 } from './OrInput-24028f23.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -160,7 +160,7 @@ var script = defineComponent({
160
160
  }
161
161
  });
162
162
 
163
- var css_248z = "input[data-v-98e5193c]{min-width:0;background:0 0;outline:0}input[type=number][data-v-98e5193c]::-webkit-inner-spin-button{display:none}input[type=search][data-v-98e5193c]::-webkit-search-cancel-button{display:none}";
163
+ var css_248z = "input[data-v-8d82b992]{min-width:0;background:0 0;outline:0}input[type=number][data-v-8d82b992]::-webkit-inner-spin-button{display:none}input[type=search][data-v-8d82b992]::-webkit-search-cancel-button{display:none}";
164
164
  styleInject(css_248z);
165
165
 
166
166
  /* script */
@@ -310,15 +310,15 @@ var __vue_render__ = function () {
310
310
  return _vm.reset.apply(null, arguments);
311
311
  }
312
312
  }
313
- })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
313
+ })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
314
314
  scopedSlots: _vm._u([_vm.maxLength ? {
315
315
  key: "addon",
316
316
  fn: function () {
317
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
317
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
318
318
  },
319
319
  proxy: true
320
320
  } : null], null, true)
321
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
321
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
322
322
  scopedSlots: _vm._u([_vm.maxLength ? {
323
323
  key: "addon",
324
324
  fn: function () {
@@ -333,7 +333,7 @@ var __vue_staticRenderFns__ = [];
333
333
  /* style */
334
334
  const __vue_inject_styles__ = undefined;
335
335
  /* scoped */
336
- const __vue_scope_id__ = "data-v-98e5193c";
336
+ const __vue_scope_id__ = "data-v-8d82b992";
337
337
  /* module identifier */
338
338
  const __vue_module_identifier__ = undefined;
339
339
  /* functional template */
@@ -146,7 +146,7 @@ var script = defineComponent({
146
146
  }
147
147
  });
148
148
 
149
- var css_248z = "textarea[data-v-0bd7ec36]{min-width:0;background:0 0;outline:0}";
149
+ var css_248z = "textarea[data-v-d02de720]{min-width:0;background:0 0;outline:0}";
150
150
  styleInject(css_248z);
151
151
 
152
152
  /* script */
@@ -222,15 +222,15 @@ var __vue_render__ = function () {
222
222
  return _vm.reset.apply(null, arguments);
223
223
  }
224
224
  }
225
- })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
225
+ })], 1)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
226
226
  scopedSlots: _vm._u([_vm.maxLength ? {
227
227
  key: "addon",
228
228
  fn: function () {
229
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
229
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
230
230
  },
231
231
  proxy: true
232
232
  } : null], null, true)
233
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
233
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
234
234
  scopedSlots: _vm._u([_vm.maxLength ? {
235
235
  key: "addon",
236
236
  fn: function () {
@@ -245,7 +245,7 @@ var __vue_staticRenderFns__ = [];
245
245
  /* style */
246
246
  const __vue_inject_styles__ = undefined;
247
247
  /* scoped */
248
- const __vue_scope_id__ = "data-v-0bd7ec36";
248
+ const __vue_scope_id__ = "data-v-d02de720";
249
249
  /* module identifier */
250
250
  const __vue_module_identifier__ = undefined;
251
251
  /* functional template */
@@ -143,7 +143,7 @@ var script = defineComponent({
143
143
  }
144
144
  });
145
145
 
146
- var css_248z = "input[data-v-2b692b9f]{min-width:0;background:0 0;outline:0}input[type=number][data-v-2b692b9f]::-webkit-inner-spin-button{display:none}input[type=search][data-v-2b692b9f]::-webkit-search-cancel-button{display:none}";
146
+ var css_248z = "input[data-v-61c8b450]{min-width:0;background:0 0;outline:0}input[type=number][data-v-61c8b450]::-webkit-inner-spin-button{display:none}input[type=search][data-v-61c8b450]::-webkit-search-cancel-button{display:none}";
147
147
  styleInject(css_248z);
148
148
 
149
149
  /* script */
@@ -336,18 +336,18 @@ var __vue_render__ = function () {
336
336
  "icon": 'search',
337
337
  "variant": 'outlined'
338
338
  }
339
- })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
339
+ })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
340
340
  attrs: {
341
341
  "disabled": _vm.disabled
342
342
  },
343
343
  scopedSlots: _vm._u([_vm.maxLength ? {
344
344
  key: "addon",
345
345
  fn: function () {
346
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
346
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
347
347
  },
348
348
  proxy: true
349
349
  } : null], null, true)
350
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
350
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
351
351
  attrs: {
352
352
  "disabled": _vm.disabled
353
353
  },
@@ -365,7 +365,7 @@ var __vue_staticRenderFns__ = [];
365
365
  /* style */
366
366
  const __vue_inject_styles__ = undefined;
367
367
  /* scoped */
368
- const __vue_scope_id__ = "data-v-2b692b9f";
368
+ const __vue_scope_id__ = "data-v-61c8b450";
369
369
  /* module identifier */
370
370
  const __vue_module_identifier__ = undefined;
371
371
  /* functional template */
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { _ as __vue_component__$1 } from './OrInput-655bed71.js';
4
+ import { _ as __vue_component__$1 } from './OrInput-24028f23.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-208dceac.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
7
 
@@ -0,0 +1,231 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
+
6
+ const SegmentedControlItemRoot = [
7
+ // Layout
8
+ 'flex', 'items-center', 'justify-center',
9
+ // Shape
10
+ 'rounded-md',
11
+ // Interactivity
12
+ 'interactivity-auto',
13
+ // Theme
14
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark',
15
+ // Theme (selected)
16
+ 'selected:theme-background-default', 'dark:selected:theme-background-default-dark',
17
+ // Theme (selected, enabled)
18
+ 'selected:enabled:shadow-card', 'dark:selected:enabled:shadow-card-dark'];
19
+ const SegmentedControlItemRootSizes = {
20
+ 'm': [
21
+ // Box
22
+ 'h-[44px] md:h-[36px]',
23
+ // Spacing
24
+ 'px-sm+ md:px-sm+',
25
+ // Typography
26
+ 'typography-body-2-regular'],
27
+ 's': [
28
+ // Box
29
+ 'h-[36px] md:h-[32px]',
30
+ // Spacing
31
+ 'px-sm+ md:px-sm',
32
+ // Typography
33
+ 'typography-caption-regular']
34
+ };
35
+
36
+ var script$1 = defineComponent({
37
+ name: 'OrSegmentedControlItem',
38
+ inheritAttrs: false,
39
+ props: {
40
+ size: {
41
+ type: String,
42
+ required: true
43
+ },
44
+ selected: {
45
+ type: Boolean,
46
+ default: false
47
+ },
48
+ disabled: {
49
+ type: Boolean,
50
+ default: false
51
+ }
52
+ },
53
+ setup(props) {
54
+ // Refs
55
+ const root = ref();
56
+ // Styles
57
+ const classAttribute = useClassAttribute();
58
+ const rootStyles = computed(() => ['or-segmented-control-item', ...SegmentedControlItemRoot, ...SegmentedControlItemRootSizes[props.size], classAttribute.value]);
59
+ return {
60
+ root,
61
+ rootStyles
62
+ };
63
+ }
64
+ });
65
+
66
+ /* script */
67
+ const __vue_script__$1 = script$1;
68
+
69
+ /* template */
70
+ var __vue_render__$1 = function () {
71
+ var _vm = this;
72
+ var _h = _vm.$createElement;
73
+ var _c = _vm._self._c || _h;
74
+ return _c('div', _vm._b({
75
+ ref: "root",
76
+ class: _vm.rootStyles,
77
+ attrs: {
78
+ "selected": _vm.selected ? '' : null,
79
+ "disabled": _vm.disabled ? '' : null
80
+ }
81
+ }, 'div', _vm.$attrs, false), [_c('div', {
82
+ class: ['truncate']
83
+ }, [_vm._t("default")], 2)]);
84
+ };
85
+ var __vue_staticRenderFns__$1 = [];
86
+
87
+ /* style */
88
+ const __vue_inject_styles__$1 = undefined;
89
+ /* scoped */
90
+ const __vue_scope_id__$1 = undefined;
91
+ /* module identifier */
92
+ const __vue_module_identifier__$1 = undefined;
93
+ /* functional template */
94
+ const __vue_is_functional_template__$1 = false;
95
+ /* style inject */
96
+
97
+ /* style inject SSR */
98
+
99
+ /* style inject shadow dom */
100
+
101
+ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
102
+ render: __vue_render__$1,
103
+ staticRenderFns: __vue_staticRenderFns__$1
104
+ }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
105
+
106
+ var SegmentedControlSize;
107
+ (function (SegmentedControlSize) {
108
+ SegmentedControlSize["M"] = "m";
109
+ SegmentedControlSize["S"] = "s";
110
+ })(SegmentedControlSize || (SegmentedControlSize = {}));
111
+
112
+ const SegmentedControlRoot = [
113
+ // Layout
114
+ 'grid', 'grid-flow-col', 'auto-cols-fr',
115
+ // Shape
116
+ 'rounded-md',
117
+ // Spacing
118
+ 'px-[2px]', 'py-[2px]',
119
+ // Theme
120
+ 'theme-background-surface-variant', 'dark:theme-background-surface-variant-dark'];
121
+ const SegmentedControlRootSizes = {
122
+ 'm': [],
123
+ 's': []
124
+ };
125
+
126
+ var script = defineComponent({
127
+ name: 'OrSegmentedControl',
128
+ components: {
129
+ OrSegmentedControlItem: __vue_component__$1
130
+ },
131
+ inheritAttrs: false,
132
+ props: {
133
+ options: {
134
+ type: Array,
135
+ default: []
136
+ },
137
+ modelValue: {
138
+ type: String,
139
+ default: undefined
140
+ },
141
+ value: {
142
+ type: String,
143
+ default: undefined
144
+ },
145
+ size: {
146
+ type: String,
147
+ default: SegmentedControlSize.M
148
+ },
149
+ disabled: {
150
+ type: Boolean,
151
+ default: false
152
+ }
153
+ },
154
+ emits: ['update:modelValue', 'input', 'focus', 'blur'],
155
+ expose: ['root'],
156
+ setup(props, context) {
157
+ // Refs
158
+ const root = ref();
159
+ // Styles
160
+ const classAttribute = useClassAttribute();
161
+ const rootStyles = computed(() => ['or-segmented-control', ...SegmentedControlRoot, ...SegmentedControlRootSizes[props.size], classAttribute.value]);
162
+ // State
163
+ const proxyModelValue = computed({
164
+ get: () => {
165
+ var _a;
166
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
167
+ },
168
+
169
+ set: value => {
170
+ context.emit('input', value);
171
+ context.emit('update:modelValue', value);
172
+ }
173
+ });
174
+ return {
175
+ root,
176
+ rootStyles,
177
+ proxyModelValue
178
+ };
179
+ }
180
+ });
181
+
182
+ /* script */
183
+ const __vue_script__ = script;
184
+
185
+ /* template */
186
+ var __vue_render__ = function () {
187
+ var _vm = this;
188
+ var _h = _vm.$createElement;
189
+ var _c = _vm._self._c || _h;
190
+ return _c('div', _vm._b({
191
+ ref: "root",
192
+ class: _vm.rootStyles
193
+ }, 'div', _vm.$attrs, false), _vm._l(_vm.options, function (option) {
194
+ return _c('OrSegmentedControlItem', {
195
+ key: option.value,
196
+ attrs: {
197
+ "size": _vm.size,
198
+ "selected": option.value === _vm.proxyModelValue,
199
+ "disabled": _vm.disabled
200
+ },
201
+ on: {
202
+ "click": function ($event) {
203
+ $event.stopPropagation();
204
+ _vm.proxyModelValue = option.value;
205
+ }
206
+ }
207
+ }, [_vm._v("\n " + _vm._s(option.label) + "\n ")]);
208
+ }), 1);
209
+ };
210
+ var __vue_staticRenderFns__ = [];
211
+
212
+ /* style */
213
+ const __vue_inject_styles__ = undefined;
214
+ /* scoped */
215
+ const __vue_scope_id__ = undefined;
216
+ /* module identifier */
217
+ const __vue_module_identifier__ = undefined;
218
+ /* functional template */
219
+ const __vue_is_functional_template__ = false;
220
+ /* style inject */
221
+
222
+ /* style inject SSR */
223
+
224
+ /* style inject shadow dom */
225
+
226
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
227
+ render: __vue_render__,
228
+ staticRenderFns: __vue_staticRenderFns__
229
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
230
+
231
+ export { SegmentedControlSize as S, __vue_component__ as _ };
@@ -9,7 +9,7 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-ce82a6fd.js';
9
9
  import { _ as __vue_component__$4 } from './OrHint-44356417.js';
10
10
  import { _ as __vue_component__$5 } from './OrIcon-124f3bad.js';
11
11
  import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-208dceac.js';
12
- import { _ as __vue_component__$6 } from './OrInput-655bed71.js';
12
+ import { _ as __vue_component__$6 } from './OrInput-24028f23.js';
13
13
  import { _ as __vue_component__$8 } from './OrLabel-5670468e.js';
14
14
  import { _ as __vue_component__$9 } from './OrMenuItem-3a28db7b.js';
15
15
  import { _ as __vue_component__$a } from './OrPopover-9080fc00.js';
@@ -481,11 +481,11 @@ var __vue_render__ = function () {
481
481
  class: _vm.noSearchResultsStyles
482
482
  }, [_vm._t("noSearchResultsTemplate", function () {
483
483
  return [_vm._v("\n No results\n ")];
484
- })], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint ? [_c('OrHint', {
484
+ })], 2)]], 2)], 2), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
485
485
  attrs: {
486
486
  "disabled": _vm.disabled
487
487
  }
488
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e()] : [_c('OrError', {
488
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : [_c('OrError', {
489
489
  attrs: {
490
490
  "disabled": _vm.disabled
491
491
  }
@@ -113,7 +113,7 @@ var script = defineComponent({
113
113
  }
114
114
  });
115
115
 
116
- var css_248z = "textarea[data-v-61af6ad5]{min-width:0;background:0 0;outline:0}";
116
+ var css_248z = "textarea[data-v-65e7a0bc]{min-width:0;background:0 0;outline:0}";
117
117
  styleInject(css_248z);
118
118
 
119
119
  /* script */
@@ -184,18 +184,18 @@ var __vue_render__ = function () {
184
184
  _vm.proxyModelValue = $event.target.value;
185
185
  }
186
186
  }
187
- }, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
187
+ }, 'textarea', _vm.$attrs, false))]), _vm._v(" "), !_vm.invalid ? [_c('OrHint', {
188
188
  attrs: {
189
189
  "disabled": _vm.disabled
190
190
  },
191
191
  scopedSlots: _vm._u([_vm.maxLength ? {
192
192
  key: "addon",
193
193
  fn: function () {
194
- return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
194
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
195
195
  },
196
196
  proxy: true
197
197
  } : null], null, true)
198
- }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()] : [_c('OrError', {
198
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : [_c('OrError', {
199
199
  attrs: {
200
200
  "disabled": _vm.disabled
201
201
  },
@@ -213,7 +213,7 @@ var __vue_staticRenderFns__ = [];
213
213
  /* style */
214
214
  const __vue_inject_styles__ = undefined;
215
215
  /* scoped */
216
- const __vue_scope_id__ = "data-v-61af6ad5";
216
+ const __vue_scope_id__ = "data-v-65e7a0bc";
217
217
  /* module identifier */
218
218
  const __vue_module_identifier__ = undefined;
219
219
  /* functional template */
@@ -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';
@@ -5,7 +5,7 @@ declare const _default: Meta<import("vue").ComponentOptions<import("vue").defaul
5
5
  [x: number]: string;
6
6
  } | {}, true>)>;
7
7
  export default _default;
8
- export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
8
+ export declare const Base: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
9
9
  [x: string]: ((...args: any[]) => any) | null;
10
10
  } | string[], {} & {}, {
11
11
  [x: number]: string;
@@ -1,57 +1,77 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { SortHeaderModel } from './types';
2
+ import { SegmentedControlSize } from './props';
3
+ import { SegmentedControlOption } from './types';
3
4
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
5
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
6
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
6
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<SortHeaderModel>;
7
- activated: import("@vue/composition-api").ComputedRef<boolean>;
8
- toggleDirection: () => void;
7
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
9
8
  }> & import("@vue/composition-api").Data, {}, {}, {
9
+ options: {
10
+ type: PropType<SegmentedControlOption[]>;
11
+ default: SegmentedControlOption[];
12
+ };
10
13
  modelValue: {
11
- type: PropType<SortHeaderModel>;
14
+ type: StringConstructor;
12
15
  default: undefined;
13
16
  };
14
17
  value: {
15
- type: PropType<SortHeaderModel>;
18
+ type: StringConstructor;
16
19
  default: undefined;
17
20
  };
18
- inputValue: {
19
- type: StringConstructor;
20
- required: true;
21
+ size: {
22
+ type: PropType<SegmentedControlSize>;
23
+ default: SegmentedControlSize;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
21
28
  };
22
29
  }, import("@vue/composition-api").ExtractPropTypes<{
30
+ options: {
31
+ type: PropType<SegmentedControlOption[]>;
32
+ default: SegmentedControlOption[];
33
+ };
23
34
  modelValue: {
24
- type: PropType<SortHeaderModel>;
35
+ type: StringConstructor;
25
36
  default: undefined;
26
37
  };
27
38
  value: {
28
- type: PropType<SortHeaderModel>;
39
+ type: StringConstructor;
29
40
  default: undefined;
30
41
  };
31
- inputValue: {
32
- type: StringConstructor;
33
- required: true;
42
+ size: {
43
+ type: PropType<SegmentedControlSize>;
44
+ default: SegmentedControlSize;
45
+ };
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
34
49
  };
35
50
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
36
- modelValue: SortHeaderModel;
37
- value: SortHeaderModel;
38
- inputValue: string;
51
+ options: SegmentedControlOption[];
52
+ modelValue: string;
53
+ value: string;
54
+ size: SegmentedControlSize;
55
+ disabled: boolean;
39
56
  } & {} & {
40
57
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
41
58
  }, import("@vue/composition-api").ShallowUnwrapRef<{
42
59
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
43
60
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
44
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<SortHeaderModel>;
45
- activated: import("@vue/composition-api").ComputedRef<boolean>;
46
- toggleDirection: () => void;
61
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string>;
47
62
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
48
- modelValue: SortHeaderModel;
49
- value: SortHeaderModel;
50
- inputValue: string;
63
+ options: SegmentedControlOption[];
64
+ modelValue: string;
65
+ value: string;
66
+ size: SegmentedControlSize;
67
+ disabled: boolean;
51
68
  } & {} & {
52
69
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
53
70
  }, {
54
- modelValue: SortHeaderModel;
55
- value: SortHeaderModel;
71
+ options: SegmentedControlOption[];
72
+ modelValue: string;
73
+ value: string;
74
+ size: SegmentedControlSize;
75
+ disabled: boolean;
56
76
  }, true>);
57
77
  export default _default;
@@ -0,0 +1,47 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { SegmentedControlSize } from '../../props';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
6
+ }> & import("@vue/composition-api").Data, {}, {}, {
7
+ size: {
8
+ type: PropType<SegmentedControlSize>;
9
+ required: true;
10
+ };
11
+ selected: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ disabled: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ }, import("@vue/composition-api").ExtractPropTypes<{
20
+ size: {
21
+ type: PropType<SegmentedControlSize>;
22
+ required: true;
23
+ };
24
+ selected: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ disabled: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
33
+ size: SegmentedControlSize;
34
+ selected: boolean;
35
+ disabled: boolean;
36
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
37
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
38
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
39
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
40
+ size: SegmentedControlSize;
41
+ selected: boolean;
42
+ disabled: boolean;
43
+ } & {}, {
44
+ selected: boolean;
45
+ disabled: boolean;
46
+ }, true>);
47
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { SegmentedControlSize } from '../../props';
2
+ export declare const SegmentedControlItemRoot: string[];
3
+ export declare const SegmentedControlItemRootSizes: Record<SegmentedControlSize, string[]>;
@@ -0,0 +1,3 @@
1
+ export { default as OrSegmentedControlV3 } from './OrSegmentedControl.vue';
2
+ export * from './props';
3
+ export * from './types';
@@ -0,0 +1,4 @@
1
+ export declare enum SegmentedControlSize {
2
+ M = "m",
3
+ S = "s"
4
+ }
@@ -0,0 +1,3 @@
1
+ import { SegmentedControlSize } from './props';
2
+ export declare const SegmentedControlRoot: string[];
3
+ export declare const SegmentedControlRootSizes: Record<SegmentedControlSize, string[]>;
@@ -0,0 +1,4 @@
1
+ export interface SegmentedControlOption {
2
+ value: string;
3
+ label: string;
4
+ }