@onereach/ui-components 2.72.1 → 2.72.2-beta.2257.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 (74) hide show
  1. package/dist/bundled/v2/{OrCardCollection-06ecb8e1.js → OrCardCollection-134b0ffe.js} +1 -1
  2. package/dist/bundled/v2/{OrConfirm-8c0e957d.js → OrConfirm-3eceda8f.js} +1 -1
  3. package/dist/bundled/v2/{OrInput-00070eee.js → OrInput-eebed0aa.js} +28 -11
  4. package/dist/bundled/v2/{OrInputBox-2f559e98.js → OrInputBox-10aecdc4.js} +1 -1
  5. package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-5093c721.js} +2 -2
  6. package/dist/bundled/v2/{OrSelect-2ececfc1.js → OrSelect-974a83f8.js} +2 -2
  7. package/dist/bundled/v2/{OrTextarea-5c57c02b.js → OrTextarea-dba56362.js} +1 -1
  8. package/dist/bundled/v2/components/index.js +8 -8
  9. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -4
  10. package/dist/bundled/v2/components/or-confirm-v3/index.js +3 -3
  11. package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -1
  12. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  13. package/dist/bundled/v2/components/or-input-v3/index.js +3 -2
  14. package/dist/bundled/v2/components/or-search-v3/index.js +4 -3
  15. package/dist/bundled/v2/components/or-select-v3/index.js +4 -3
  16. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -2
  17. package/dist/bundled/v2/index.js +8 -8
  18. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-bd6bc732.js} +1 -1
  19. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-eb2bfce2.js → OrConfirm.vue_vue_type_script_lang-b7e3ac90.js} +2 -2
  20. package/dist/bundled/v3/{OrInput-dcf2606e.js → OrInput-889fbd90.js} +15 -6
  21. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-27220623.js → OrInput.vue_vue_type_script_lang-8d2b69ae.js} +15 -3
  22. package/dist/bundled/v3/{OrInputBox-4c7900c2.js → OrInputBox-c8beb6c2.js} +1 -1
  23. package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-47d98e81.js → OrInputBox.vue_vue_type_script_lang-0174af07.js} +1 -1
  24. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-97d023eb.js} +3 -3
  25. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-7fd5e2f0.js → OrSelect.vue_vue_type_script_lang-b20d66fa.js} +4 -4
  26. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-296da567.js → OrTextarea.vue_vue_type_script_lang-7c88ef85.js} +2 -2
  27. package/dist/bundled/v3/components/index.js +10 -10
  28. package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -6
  29. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -5
  30. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -1
  31. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  32. package/dist/bundled/v3/components/or-input-v3/index.js +5 -3
  33. package/dist/bundled/v3/components/or-search-v3/index.js +7 -5
  34. package/dist/bundled/v3/components/or-select-v3/index.js +7 -5
  35. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -3
  36. package/dist/bundled/v3/index.js +14 -14
  37. package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-4f8957aa.js} +2 -2
  38. package/dist/esm/v2/{OrConfirm-9dbdedd7.js → OrConfirm-d87f2ae9.js} +1 -1
  39. package/dist/esm/v2/{OrInput-59a15d80.js → OrInput-cf2900cd.js} +28 -11
  40. package/dist/esm/v2/{OrInputBox-9ceb9fc4.js → OrInputBox-1a8887df.js} +1 -1
  41. package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-3e058ad4.js} +2 -2
  42. package/dist/esm/v2/{OrSelect-e31d1c8b.js → OrSelect-bf21fff7.js} +2 -2
  43. package/dist/esm/v2/{OrTextarea-a5a3572b.js → OrTextarea-2ec6facd.js} +1 -1
  44. package/dist/esm/v2/components/index.js +8 -8
  45. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
  46. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  47. package/dist/esm/v2/components/or-input-box-v3/index.js +1 -1
  48. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  49. package/dist/esm/v2/components/or-input-v3/index.js +4 -3
  50. package/dist/esm/v2/components/or-search-v3/index.js +5 -4
  51. package/dist/esm/v2/components/or-select-v3/index.js +5 -4
  52. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
  53. package/dist/esm/v2/index.js +7 -7
  54. package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-ab9b6d70.js} +2 -2
  55. package/dist/esm/v3/{OrConfirm-37454a63.js → OrConfirm-223b1303.js} +1 -1
  56. package/dist/esm/v3/{OrInput-bd054213.js → OrInput-5afc20da.js} +27 -7
  57. package/dist/esm/v3/{OrInputBox-e16ade90.js → OrInputBox-74646840.js} +1 -1
  58. package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-100ed7c8.js} +2 -2
  59. package/dist/esm/v3/{OrSelect-466e50ca.js → OrSelect-f1a2a55d.js} +2 -2
  60. package/dist/esm/v3/{OrTextarea-37566985.js → OrTextarea-3e28946b.js} +1 -1
  61. package/dist/esm/v3/components/index.js +8 -8
  62. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  63. package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
  64. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  65. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  66. package/dist/esm/v3/components/or-input-v3/index.js +4 -3
  67. package/dist/esm/v3/components/or-search-v3/index.js +5 -4
  68. package/dist/esm/v3/components/or-select-v3/index.js +5 -4
  69. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  70. package/dist/esm/v3/index.js +7 -7
  71. package/package.json +2 -3
  72. package/src/components/or-input-box-v3/styles.ts +2 -2
  73. package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
  74. package/src/components/or-input-v3/OrInput.vue +39 -19
@@ -1,14 +1,16 @@
1
1
  import { defineComponent, ref, computed, reactive } from 'vue-demi';
2
2
  import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
3
3
  import '@vueuse/core';
4
+ import { u as useResponsive } from './useResponsive-a02e95b7.js';
4
5
  import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
5
6
  import { s as script$1 } from './OrError-19198748.js';
6
7
  import { s as script$2 } from './OrHint-6863124f.js';
7
8
  import { s as script$4 } from './OrIconButton-2dcfb83e.js';
8
9
  import { s as script$3 } from './OrIcon-34f59f73.js';
9
- import { s as script$5, a as InputBoxSize } from './OrInputBox-e16ade90.js';
10
+ import { s as script$5, a as InputBoxSize } from './OrInputBox-74646840.js';
10
11
  import { s as script$6 } from './OrLabel-f700f9fb.js';
11
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
12
+ import { s as script$7 } from './OrLoader-a53d2edf.js';
13
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, Fragment, withModifiers, createSlots } from 'vue';
12
14
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
13
15
 
14
16
  var InputType;
@@ -40,7 +42,8 @@ var script = defineComponent({
40
42
  OrIcon: script$3,
41
43
  OrIconButton: script$4,
42
44
  OrInputBox: script$5,
43
- OrLabel: script$6
45
+ OrLabel: script$6,
46
+ OrLoader: script$7
44
47
  },
45
48
  model: {
46
49
  prop: 'modelValue',
@@ -75,6 +78,10 @@ var script = defineComponent({
75
78
  type: String,
76
79
  default: undefined
77
80
  },
81
+ loading: {
82
+ type: Boolean,
83
+ default: false
84
+ },
78
85
  required: {
79
86
  type: Boolean,
80
87
  default: false
@@ -120,6 +127,9 @@ var script = defineComponent({
120
127
  const maxLength = computed(() => controlAttributes.maxlength);
121
128
  const invalid = computed(() => !!props.error);
122
129
  const disclosed = ref(false);
130
+ const {
131
+ isMobile
132
+ } = useResponsive();
123
133
  // Methods
124
134
  function focus() {
125
135
  var _a;
@@ -140,6 +150,7 @@ var script = defineComponent({
140
150
  maxLength,
141
151
  invalid,
142
152
  disclosed,
153
+ isMobile,
143
154
  focus,
144
155
  blur
145
156
  };
@@ -152,6 +163,7 @@ const _hoisted_2 = {
152
163
  };
153
164
  function render(_ctx, _cache, $props, $setup, $data, $options) {
154
165
  const _component_OrLabel = resolveComponent("OrLabel");
166
+ const _component_OrLoader = resolveComponent("OrLoader");
155
167
  const _component_OrIconButton = resolveComponent("OrIconButton");
156
168
  const _component_OrIcon = resolveComponent("OrIcon");
157
169
  const _component_OrInputBox = resolveComponent("OrInputBox");
@@ -175,7 +187,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
175
187
  variant: _ctx.disableDefaultStyles ? 'unstyled' : 'styled',
176
188
  size: _ctx.size,
177
189
  invalid: _ctx.invalid,
178
- readonly: _ctx.readonly,
190
+ readonly: _ctx.readonly || _ctx.loading,
179
191
  disabled: _ctx.disabled
180
192
  }, {
181
193
  default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
@@ -186,13 +198,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
186
198
  type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
187
199
  placeholder: _ctx.placeholder,
188
200
  required: _ctx.required,
189
- readonly: _ctx.readonly,
201
+ readonly: _ctx.readonly || _ctx.loading,
190
202
  disabled: _ctx.disabled,
191
203
  onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
192
204
  onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
193
205
  onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
194
206
  onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
195
- }), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
207
+ }), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.loading ? (openBlock(), createBlock(_component_OrLoader, {
208
+ key: 0,
209
+ variant: 'circular',
210
+ color: 'primary',
211
+ size: _ctx.isMobile ? 'm' : 's'
212
+ }, null, 8 /* PROPS */, ["size"])) : (openBlock(), createElementBlock(Fragment, {
213
+ key: 1
214
+ }, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
196
215
  key: 0,
197
216
  icon: {
198
217
  icon: _ctx.disclosed ? 'visibility_off' : 'visibility',
@@ -213,7 +232,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
213
232
  key: 1,
214
233
  icon: 'search',
215
234
  variant: 'outlined'
216
- }))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])]),
235
+ }))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */))])]),
236
+
217
237
  _: 1 /* STABLE */
218
238
  }, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
219
239
  key: 1
@@ -51,7 +51,7 @@ const InputBoxRootSizes = {
51
51
  // Box
52
52
  'children:min-h-[30px]',
53
53
  // Spacing
54
- 'first-child:pl-sm', 'last-child:pr-sm', 'children:py-[6px]', 'gap-[6px]',
54
+ 'first-child:pl-md first-child:md:pl-sm+', 'last-child:pr-md last-child:md:pr-sm+', 'children:py-[6px]', 'gap-[6px]',
55
55
  // Typography
56
56
  'typography-caption-regular']
57
57
  };
@@ -1,7 +1,7 @@
1
1
  import { debouncedWatch } from '@vueuse/core';
2
2
  import { defineComponent, ref, computed, watch } from 'vue-demi';
3
- import { s as script$1 } from './OrInput-bd054213.js';
4
- import { a as InputBoxSize } from './OrInputBox-e16ade90.js';
3
+ import { s as script$1 } from './OrInput-5afc20da.js';
4
+ import { a as InputBoxSize } from './OrInputBox-74646840.js';
5
5
  import { resolveComponent, openBlock, createBlock, normalizeClass } from 'vue';
6
6
 
7
7
  var script = defineComponent({
@@ -7,8 +7,8 @@ import { s as script$2 } from './OrError-19198748.js';
7
7
  import { s as script$3 } from './OrExpansionPanel-3a4282da.js';
8
8
  import { s as script$4 } from './OrHint-6863124f.js';
9
9
  import { s as script$5 } from './OrIcon-34f59f73.js';
10
- import { s as script$7, a as InputBoxSize } from './OrInputBox-e16ade90.js';
11
- import { s as script$6 } from './OrInput-bd054213.js';
10
+ import { s as script$7, a as InputBoxSize } from './OrInputBox-74646840.js';
11
+ import { s as script$6 } from './OrInput-5afc20da.js';
12
12
  import { s as script$8 } from './OrLabel-f700f9fb.js';
13
13
  import { s as script$9 } from './OrMenuItem-58707d47.js';
14
14
  import { s as script$a } from './OrPopover-40217b49.js';
@@ -4,7 +4,7 @@ import '@vueuse/core';
4
4
  import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
5
5
  import { s as script$1 } from './OrError-19198748.js';
6
6
  import { s as script$2 } from './OrHint-6863124f.js';
7
- import { s as script$3, a as InputBoxSize } from './OrInputBox-e16ade90.js';
7
+ import { s as script$3, a as InputBoxSize } from './OrInputBox-74646840.js';
8
8
  import { s as script$4 } from './OrLabel-f700f9fb.js';
9
9
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelText, Fragment, createSlots } from 'vue';
10
10
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
@@ -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-c56998e7.js';
7
7
  export { s as OrCard } from '../OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-1e44c758.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-8b8e3745.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-ab9b6d70.js';
10
10
  export { s as OrCardV3 } from '../OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-5ed69c23.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-189cb097.js';
18
18
  export { s as OrConfirm } from '../OrConfirm-c11ee2ec.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-37454a63.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-223b1303.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from '../OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from '../OrErrorTag-308119de.js';
@@ -34,8 +34,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
34
34
  export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-fbc35f85.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
36
36
  export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-79da8697.js';
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-e16ade90.js';
38
- export { I as InputType, s as OrInputV3 } from '../OrInput-bd054213.js';
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-74646840.js';
38
+ export { I as InputType, s as OrInputV3 } from '../OrInput-5afc20da.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';
@@ -63,10 +63,10 @@ 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-bb9b37c1.js';
65
65
  export { s as OrSearch } from '../OrSearch-11fdf667.js';
66
- export { s as OrSearchV3 } from '../OrSearch-4c5c44f2.js';
66
+ export { s as OrSearchV3 } from '../OrSearch-100ed7c8.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from '../OrSelect-0821b907.js';
69
- export { s as OrSelectV3 } from '../OrSelect-466e50ca.js';
69
+ export { s as OrSelectV3 } from '../OrSelect-f1a2a55d.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
71
71
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
72
72
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
@@ -87,7 +87,7 @@ export { s as OrTeleport } from '../OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from '../OrTeleport.vue3-8099178c.js';
88
88
  export { s as OrTextV3 } from '../OrText-6b4f7cd1.js';
89
89
  export { s as OrTextarea } from '../OrTextarea-1f5c3be1.js';
90
- export { s as OrTextareaV3 } from '../OrTextarea-37566985.js';
90
+ export { s as OrTextareaV3 } from '../OrTextarea-3e28946b.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from '../OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from '../OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from '../useToast-4fbe0e5a.js';
@@ -117,10 +117,10 @@ import '../dom-3a15d036.js';
117
117
  import '@vueuse/math';
118
118
  import '@floating-ui/dom';
119
119
  import '../useValidationAttributes-d1abbe34.js';
120
+ import '../useResponsive-a02e95b7.js';
120
121
  import 'uuid';
121
122
  import 'sortablejs';
122
123
  import '../useElevation-31bfe1f6.js';
123
- import '../useResponsive-a02e95b7.js';
124
124
  import '@vueuse/integrations/useFocusTrap';
125
125
  import '../useToggle-29e4d7c7.js';
126
126
  import '../dropdown-open-0d314aa4.js';
@@ -1,4 +1,4 @@
1
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-8b8e3745.js';
1
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-ab9b6d70.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrButton-c56998e7.js';
4
4
  import '../../OrLoader-a53d2edf.js';
@@ -16,12 +16,12 @@ import '../../OrOverlay-afad3aa4.js';
16
16
  import '../../OrTeleport.vue3-8099178c.js';
17
17
  import '../../OrMenuItem-58707d47.js';
18
18
  import '../../OrMenu-7f3ea117.js';
19
- import '../../OrSearch-4c5c44f2.js';
20
- import '../../OrInput-bd054213.js';
19
+ import '../../OrSearch-100ed7c8.js';
20
+ import '../../OrInput-5afc20da.js';
21
21
  import '../../useIdAttribute-859439f0.js';
22
22
  import '../../useValidationAttributes-d1abbe34.js';
23
23
  import '../../OrError-19198748.js';
24
24
  import '../../OrHint-6863124f.js';
25
- import '../../OrInputBox-e16ade90.js';
25
+ import '../../OrInputBox-74646840.js';
26
26
  import '../../OrLabel-f700f9fb.js';
27
27
  import '../../style-inject.es-4c6f2515.js';
@@ -1,12 +1,13 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-37454a63.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-223b1303.js';
2
2
  import '@vueuse/core';
3
3
  import '@vueuse/math';
4
4
  import 'vue-demi';
5
5
  import '../../OrButton-c56998e7.js';
6
6
  import '../../OrLoader-a53d2edf.js';
7
7
  import 'vue';
8
- import '../../OrInput-bd054213.js';
8
+ import '../../OrInput-5afc20da.js';
9
9
  import '../../useIdAttribute-859439f0.js';
10
+ import '../../useResponsive-a02e95b7.js';
10
11
  import '../../useValidationAttributes-d1abbe34.js';
11
12
  import '../../OrError-19198748.js';
12
13
  import '../../OrHint-6863124f.js';
@@ -16,10 +17,9 @@ import '../../OrTooltip-b07616f4.js';
16
17
  import '../../OrPopover-40217b49.js';
17
18
  import '@floating-ui/dom';
18
19
  import '../../useElevation-31bfe1f6.js';
19
- import '../../useResponsive-a02e95b7.js';
20
20
  import '../../OrBottomSheet-13a416ef.js';
21
21
  import '../../OrOverlay-afad3aa4.js';
22
22
  import '../../OrTeleport.vue3-8099178c.js';
23
- import '../../OrInputBox-e16ade90.js';
23
+ import '../../OrInputBox-74646840.js';
24
24
  import '../../OrLabel-f700f9fb.js';
25
25
  import '../../style-inject.es-4c6f2515.js';
@@ -1,3 +1,3 @@
1
- export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-e16ade90.js';
1
+ export { a as InputBoxSize, I as InputBoxVariant, s as OrInputBoxV3 } from '../../OrInputBox-74646840.js';
2
2
  import 'vue-demi';
3
3
  import 'vue';
@@ -23,6 +23,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
23
23
  maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
24
24
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
25
25
  disclosed: import("@vue/composition-api").Ref<boolean>;
26
+ isMobile: import("@vue/composition-api").Ref<boolean>;
26
27
  focus: () => void;
27
28
  blur: () => void;
28
29
  }> & import("@vue/composition-api").Data, {}, {}, {
@@ -54,6 +55,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
55
  type: StringConstructor;
55
56
  default: undefined;
56
57
  };
58
+ loading: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
57
62
  required: {
58
63
  type: BooleanConstructor;
59
64
  default: boolean;
@@ -99,6 +104,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
99
104
  type: StringConstructor;
100
105
  default: undefined;
101
106
  };
107
+ loading: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
102
111
  required: {
103
112
  type: BooleanConstructor;
104
113
  default: boolean;
@@ -123,6 +132,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
123
132
  placeholder: string;
124
133
  hint: string;
125
134
  error: string;
135
+ loading: boolean;
126
136
  required: boolean;
127
137
  readonly: boolean;
128
138
  disabled: boolean;
@@ -152,6 +162,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
152
162
  maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
153
163
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
154
164
  disclosed: import("@vue/composition-api").Ref<boolean>;
165
+ isMobile: import("@vue/composition-api").Ref<boolean>;
155
166
  focus: () => void;
156
167
  blur: () => void;
157
168
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
@@ -162,6 +173,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
162
173
  placeholder: string;
163
174
  hint: string;
164
175
  error: string;
176
+ loading: boolean;
165
177
  required: boolean;
166
178
  readonly: boolean;
167
179
  disabled: boolean;
@@ -176,6 +188,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
176
188
  placeholder: string;
177
189
  hint: string;
178
190
  error: string;
191
+ loading: boolean;
179
192
  required: boolean;
180
193
  readonly: boolean;
181
194
  disabled: boolean;
@@ -1,8 +1,9 @@
1
- export { I as InputType, s as OrInputV3 } from '../../OrInput-bd054213.js';
2
- export { a as InputSize } from '../../OrInputBox-e16ade90.js';
1
+ export { I as InputType, s as OrInputV3 } from '../../OrInput-5afc20da.js';
2
+ export { a as InputSize } from '../../OrInputBox-74646840.js';
3
3
  import 'vue-demi';
4
4
  import '../../useIdAttribute-859439f0.js';
5
5
  import '@vueuse/core';
6
+ import '../../useResponsive-a02e95b7.js';
6
7
  import '../../useValidationAttributes-d1abbe34.js';
7
8
  import '../../OrError-19198748.js';
8
9
  import 'vue';
@@ -13,9 +14,9 @@ import '../../OrTooltip-b07616f4.js';
13
14
  import '../../OrPopover-40217b49.js';
14
15
  import '@floating-ui/dom';
15
16
  import '../../useElevation-31bfe1f6.js';
16
- import '../../useResponsive-a02e95b7.js';
17
17
  import '../../OrBottomSheet-13a416ef.js';
18
18
  import '../../OrOverlay-afad3aa4.js';
19
19
  import '../../OrTeleport.vue3-8099178c.js';
20
20
  import '../../OrLabel-f700f9fb.js';
21
+ import '../../OrLoader-a53d2edf.js';
21
22
  import '../../style-inject.es-4c6f2515.js';
@@ -1,9 +1,10 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-4c5c44f2.js';
2
- export { a as SearchSize } from '../../OrInputBox-e16ade90.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-100ed7c8.js';
2
+ export { a as SearchSize } from '../../OrInputBox-74646840.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
- import '../../OrInput-bd054213.js';
5
+ import '../../OrInput-5afc20da.js';
6
6
  import '../../useIdAttribute-859439f0.js';
7
+ import '../../useResponsive-a02e95b7.js';
7
8
  import '../../useValidationAttributes-d1abbe34.js';
8
9
  import '../../OrError-19198748.js';
9
10
  import 'vue';
@@ -14,9 +15,9 @@ import '../../OrTooltip-b07616f4.js';
14
15
  import '../../OrPopover-40217b49.js';
15
16
  import '@floating-ui/dom';
16
17
  import '../../useElevation-31bfe1f6.js';
17
- import '../../useResponsive-a02e95b7.js';
18
18
  import '../../OrBottomSheet-13a416ef.js';
19
19
  import '../../OrOverlay-afad3aa4.js';
20
20
  import '../../OrTeleport.vue3-8099178c.js';
21
21
  import '../../OrLabel-f700f9fb.js';
22
+ import '../../OrLoader-a53d2edf.js';
22
23
  import '../../style-inject.es-4c6f2515.js';
@@ -1,5 +1,5 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-466e50ca.js';
2
- export { a as SelectSize } from '../../OrInputBox-e16ade90.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-f1a2a55d.js';
2
+ export { a as SelectSize } from '../../OrInputBox-74646840.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
5
5
  import '../../useOverflow-af6161c8.js';
@@ -13,16 +13,17 @@ import '../../OrError-19198748.js';
13
13
  import '../../OrExpansionPanel-3a4282da.js';
14
14
  import '../../OrIcon-34f59f73.js';
15
15
  import '../../OrHint-6863124f.js';
16
- import '../../OrInput-bd054213.js';
16
+ import '../../OrInput-5afc20da.js';
17
+ import '../../useResponsive-a02e95b7.js';
17
18
  import '../../useValidationAttributes-d1abbe34.js';
18
19
  import '../../OrIconButton-2dcfb83e.js';
19
20
  import '../../OrTooltip-b07616f4.js';
20
21
  import '../../OrPopover-40217b49.js';
21
22
  import '@floating-ui/dom';
22
23
  import '../../useElevation-31bfe1f6.js';
23
- import '../../useResponsive-a02e95b7.js';
24
24
  import '../../OrBottomSheet-13a416ef.js';
25
25
  import '../../OrOverlay-afad3aa4.js';
26
26
  import '../../OrTeleport.vue3-8099178c.js';
27
+ import '../../OrLoader-a53d2edf.js';
27
28
  import '../../OrMenuItem-58707d47.js';
28
29
  import '../../OrTag-148ff9ae.js';
@@ -1,5 +1,5 @@
1
- export { s as OrTextareaV3 } from '../../OrTextarea-37566985.js';
2
- export { a as TextareaSize } from '../../OrInputBox-e16ade90.js';
1
+ export { s as OrTextareaV3 } from '../../OrTextarea-3e28946b.js';
2
+ export { a as TextareaSize } from '../../OrInputBox-74646840.js';
3
3
  import 'vue-demi';
4
4
  import '../../useIdAttribute-859439f0.js';
5
5
  import '@vueuse/core';
@@ -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-c56998e7.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-8b8e3745.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-ab9b6d70.js';
10
10
  export { s as OrCardV3 } from './OrCard-cd6af82e.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.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-189cb097.js';
18
18
  export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-37454a63.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-223b1303.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-308119de.js';
@@ -34,8 +34,8 @@ export { I as InlineInputBoxSize, I as InlineInputSize, s as OrInlineInputBoxV3
34
34
  export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-fbc35f85.js';
35
35
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
36
36
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-79da8697.js';
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-e16ade90.js';
38
- export { I as InputType, s as OrInputV3 } from './OrInput-bd054213.js';
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-74646840.js';
38
+ export { I as InputType, s as OrInputV3 } from './OrInput-5afc20da.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';
@@ -63,10 +63,10 @@ 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-bb9b37c1.js';
65
65
  export { s as OrSearch } from './OrSearch-11fdf667.js';
66
- export { s as OrSearchV3 } from './OrSearch-4c5c44f2.js';
66
+ export { s as OrSearchV3 } from './OrSearch-100ed7c8.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
68
68
  export { s as OrSelect } from './OrSelect-0821b907.js';
69
- export { s as OrSelectV3 } from './OrSelect-466e50ca.js';
69
+ export { s as OrSelectV3 } from './OrSelect-f1a2a55d.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
71
71
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
72
72
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
@@ -87,7 +87,7 @@ export { s as OrTeleport } from './OrTeleportVue3-ad639f12.js';
87
87
  export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
88
88
  export { s as OrTextV3 } from './OrText-6b4f7cd1.js';
89
89
  export { s as OrTextarea } from './OrTextarea-1f5c3be1.js';
90
- export { s as OrTextareaV3 } from './OrTextarea-37566985.js';
90
+ export { s as OrTextareaV3 } from './OrTextarea-3e28946b.js';
91
91
  export { s as OrTextbox, T as TextboxTypes } from './OrTextbox-2f33e9c3.js';
92
92
  export { s as OrToast, a as OrToastContainer } from './OrToastContainer-40c4c1c8.js';
93
93
  export { P as PositionsX, b as PositionsY, c as ToastType, T as TransitionType, a as useQueue, u as useToast } from './useToast-4fbe0e5a.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.72.1",
3
+ "version": "2.72.2-beta.2257.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -124,6 +124,5 @@
124
124
  "default": "./dist/bundled/v3/components/*/index.js"
125
125
  },
126
126
  "./package.json": "./package.json"
127
- },
128
- "gitHead": "e1abb7f3ed16d6229ae322fb52905cedd9907c18"
127
+ }
129
128
  }
@@ -109,8 +109,8 @@ export const InputBoxRootSizes: Record<InputBoxSize, string[]> = {
109
109
  'children:min-h-[30px]',
110
110
 
111
111
  // Spacing
112
- 'first-child:pl-sm',
113
- 'last-child:pr-sm',
112
+ 'first-child:pl-md first-child:md:pl-sm+',
113
+ 'last-child:pr-md last-child:md:pr-sm+',
114
114
  'children:py-[6px]',
115
115
 
116
116
  'gap-[6px]',
@@ -62,6 +62,10 @@ export default {
62
62
  control: { type: 'text' },
63
63
  },
64
64
 
65
+ loading: {
66
+ control: { type: 'boolean' },
67
+ },
68
+
65
69
  required: {
66
70
  control: { type: 'boolean' },
67
71
  },
@@ -22,7 +22,7 @@
22
22
  :variant="disableDefaultStyles ? 'unstyled' : 'styled'"
23
23
  :size="size"
24
24
  :invalid="invalid"
25
- :readonly="readonly"
25
+ :readonly="readonly || loading"
26
26
  :disabled="disabled"
27
27
  >
28
28
  <input
@@ -33,7 +33,7 @@
33
33
  :type="type === 'password' && disclosed ? 'text' : type"
34
34
  :placeholder="placeholder"
35
35
  :required="required"
36
- :readonly="readonly"
36
+ :readonly="readonly || loading"
37
37
  :disabled="disabled"
38
38
  @keydown="$emit('keydown', $event)"
39
39
  @keyup="$emit('keyup', $event)"
@@ -42,30 +42,40 @@
42
42
  >
43
43
 
44
44
  <div :class="['layout-row']">
45
- <template v-if="type === 'password'">
46
- <OrIconButton
47
- :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
48
- :color="'inherit'"
49
- :disabled="disabled"
50
- @click.stop="disclosed = !disclosed"
45
+ <template v-if="loading">
46
+ <OrLoader
47
+ :variant="'circular'"
48
+ :color="'primary'"
49
+ :size="isMobile ? 'm' : 's'"
51
50
  />
52
51
  </template>
53
52
 
54
- <template v-if="type === 'search'">
55
- <template v-if="modelValue">
53
+ <template v-else>
54
+ <template v-if="type === 'password'">
56
55
  <OrIconButton
57
- :icon="'close'"
56
+ :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
58
57
  :color="'inherit'"
59
- :disabled="readonly || disabled"
60
- @click.stop="$emit('update:modelValue', '')"
58
+ :disabled="disabled"
59
+ @click.stop="disclosed = !disclosed"
61
60
  />
62
61
  </template>
63
62
 
64
- <template v-else>
65
- <OrIcon
66
- :icon="'search'"
67
- :variant="'outlined'"
68
- />
63
+ <template v-if="type === 'search'">
64
+ <template v-if="modelValue">
65
+ <OrIconButton
66
+ :icon="'close'"
67
+ :color="'inherit'"
68
+ :disabled="readonly || disabled"
69
+ @click.stop="$emit('update:modelValue', '')"
70
+ />
71
+ </template>
72
+
73
+ <template v-else>
74
+ <OrIcon
75
+ :icon="'search'"
76
+ :variant="'outlined'"
77
+ />
78
+ </template>
69
79
  </template>
70
80
  </template>
71
81
  </div>
@@ -103,13 +113,14 @@
103
113
 
104
114
  <script lang="ts">
105
115
  import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
106
- import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
116
+ import { useControlAttributes, useIdAttribute, useResponsive, useValidationAttributes } from '../../hooks';
107
117
  import { OrErrorV3 as OrError } from '../or-error-v3';
108
118
  import { OrHintV3 as OrHint } from '../or-hint-v3';
109
119
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
110
120
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
111
121
  import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
112
122
  import { OrLabelV3 as OrLabel } from '../or-label-v3';
123
+ import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
113
124
  import { InputSize, InputType } from './props';
114
125
  import { InputControl, InputRoot } from './styles';
115
126
 
@@ -123,6 +134,7 @@ export default defineComponent({
123
134
  OrIconButton,
124
135
  OrInputBox,
125
136
  OrLabel,
137
+ OrLoader,
126
138
  },
127
139
 
128
140
  model: {
@@ -166,6 +178,11 @@ export default defineComponent({
166
178
  default: undefined,
167
179
  },
168
180
 
181
+ loading: {
182
+ type: Boolean,
183
+ default: false,
184
+ },
185
+
169
186
  required: {
170
187
  type: Boolean,
171
188
  default: false,
@@ -240,6 +257,8 @@ export default defineComponent({
240
257
 
241
258
  const disclosed = ref(false);
242
259
 
260
+ const { isMobile } = useResponsive();
261
+
243
262
  // Methods
244
263
  function focus(): void {
245
264
  control.value?.focus();
@@ -260,6 +279,7 @@ export default defineComponent({
260
279
  maxLength,
261
280
  invalid,
262
281
  disclosed,
282
+ isMobile,
263
283
  focus,
264
284
  blur,
265
285
  };