@onereach/ui-components 5.0.2-beta.3150.0 → 5.0.2-beta.3152.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.
@@ -154,9 +154,7 @@ var script = defineComponent({
154
154
  // Styles
155
155
  const rootStyles = computed(() => ['or-select-v3', ...Select]);
156
156
  const controlStyles = computed(() => [...SelectControl]);
157
- const searchControlStyles = computed(() => [...SelectSearchControl, '!visible' // Search control is always visible despite `useOverflow` effects
158
- ]);
159
-
157
+ const searchControlStyles = computed(() => [...SelectSearchControl]);
160
158
  const placeholderStyles = computed(() => [...SelectPlaceholder]);
161
159
  const dropdownStyles = computed(() => {
162
160
  var _a;
@@ -1,5 +1,5 @@
1
- import { s as script } from '../../OrSelect.vue_vue_type_script_lang-5428e5f8.js';
2
- export { s as default } from '../../OrSelect.vue_vue_type_script_lang-5428e5f8.js';
1
+ import { s as script } from '../../OrSelect.vue_vue_type_script_lang-aa2ccd3b.js';
2
+ export { s as default } from '../../OrSelect.vue_vue_type_script_lang-aa2ccd3b.js';
3
3
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, Fragment, renderList, withModifiers, createVNode, vShow } from 'vue';
4
4
  import 'vue-demi';
5
5
  import '../../utils/isEmptyValue.js';
@@ -92,14 +92,18 @@ const _hoisted_3 = {
92
92
  };
93
93
  const _hoisted_4 = ["disabled"];
94
94
  const _hoisted_5 = {
95
- class: /*#__PURE__*/normalizeClass(['layout-inline-row', 'gap-sm'])
95
+ key: 2,
96
+ class: /*#__PURE__*/normalizeClass(['grow'])
96
97
  };
97
98
  const _hoisted_6 = {
98
- class: /*#__PURE__*/normalizeClass(['contents'])
99
+ class: /*#__PURE__*/normalizeClass(['layout-inline-row', 'gap-sm'])
99
100
  };
100
101
  const _hoisted_7 = {
101
102
  class: /*#__PURE__*/normalizeClass(['contents'])
102
103
  };
104
+ const _hoisted_8 = {
105
+ class: /*#__PURE__*/normalizeClass(['contents'])
106
+ };
103
107
  function render(_ctx, _cache, $props, $setup, $data, $options) {
104
108
  const _component_OrLabel = resolveComponent("OrLabel");
105
109
  const _component_OrTag = resolveComponent("OrTag");
@@ -144,13 +148,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
144
148
  class: normalizeClass(_ctx.controlStyles),
145
149
  tabindex: !_ctx.disabled ? 0 : null,
146
150
  disabled: _ctx.disabled,
147
- onFocus: _cache[6] || (_cache[6] = $event => _ctx.$emit('focus', $event)),
148
- onBlur: _cache[7] || (_cache[7] = $event => _ctx.$emit('blur', $event))
151
+ onFocus: _cache[0] || (_cache[0] = $event => _ctx.$emit('focus', $event)),
152
+ onBlur: _cache[1] || (_cache[1] = $event => _ctx.$emit('blur', $event))
149
153
  }, [_ctx.multiple ? (openBlock(), createElementBlock(Fragment, {
150
154
  key: 0
151
- }, [!_ctx.isEmptyModelValue ? (openBlock(), createElementBlock(Fragment, {
152
- key: 0
153
- }, [renderSlot(_ctx.$slots, "valueTemplate", {
155
+ }, [!_ctx.isEmptyModelValue ? renderSlot(_ctx.$slots, "valueTemplate", {
156
+ key: 0,
154
157
  model: _ctx.proxyModelValue
155
158
  }, () => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selection, option => {
156
159
  return openBlock(), createBlock(_component_OrTag, {
@@ -163,64 +166,38 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
163
166
 
164
167
  _: 2 /* DYNAMIC */
165
168
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "onReset"]);
166
- }), 128 /* KEYED_FRAGMENT */))]), _ctx.popoverState === 'open' && _ctx.enableSearch && _ctx.isDesktop ? (openBlock(), createBlock(_component_OrInput, {
167
- key: 0,
168
- ref: "searchControl",
169
- modelValue: _ctx.searchText,
170
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.searchText = $event),
171
- class: normalizeClass(_ctx.searchControlStyles),
172
- type: 'search',
173
- placeholder: _ctx.placeholder,
174
- size: _ctx.size,
175
- "disable-default-styles": true,
176
- onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
177
- }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder", "size"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock(Fragment, {
178
- key: 1
179
- }, [_ctx.popoverState === 'open' && _ctx.enableSearch && _ctx.isDesktop ? (openBlock(), createBlock(_component_OrInput, {
180
- key: 0,
181
- ref: "searchControl",
182
- modelValue: _ctx.searchText,
183
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.searchText = $event),
184
- class: normalizeClass(_ctx.searchControlStyles),
185
- type: 'search',
186
- placeholder: _ctx.placeholder,
187
- size: _ctx.size,
188
- "disable-default-styles": true,
189
- onClick: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
190
- }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder", "size"])) : (openBlock(), createElementBlock("span", {
169
+ }), 128 /* KEYED_FRAGMENT */))]) : _ctx.popoverState === 'closed' || !_ctx.enableSearch ? (openBlock(), createElementBlock("span", {
191
170
  key: 1,
192
171
  class: normalizeClass(_ctx.placeholderStyles),
193
172
  disabled: _ctx.disabled ? '' : null
194
- }, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_2))], 64 /* STABLE_FRAGMENT */))], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock(Fragment, {
195
- key: 1
196
- }, [_ctx.popoverState === 'open' && _ctx.enableSearch && _ctx.isDesktop ? (openBlock(), createBlock(_component_OrInput, {
197
- key: 0,
198
- ref: "searchControl",
199
- modelValue: _ctx.searchText,
200
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.searchText = $event),
201
- class: normalizeClass(_ctx.searchControlStyles),
202
- type: 'search',
203
- placeholder: _ctx.placeholder,
204
- size: _ctx.size,
205
- "disable-default-styles": true,
206
- onClick: _cache[5] || (_cache[5] = withModifiers(() => {}, ["stop"]))
207
- }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder", "size"])) : (openBlock(), createElementBlock(Fragment, {
173
+ }, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_2)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock(Fragment, {
208
174
  key: 1
209
175
  }, [!_ctx.isEmptyModelValue ? renderSlot(_ctx.$slots, "valueTemplate", {
210
176
  key: 0,
211
177
  model: _ctx.proxyModelValue
212
- }, () => [createElementVNode("span", _hoisted_3, toDisplayString(_ctx.selection && _ctx.selection.label), 1 /* TEXT */)]) : (openBlock(), createElementBlock("span", {
178
+ }, () => [createElementVNode("span", _hoisted_3, toDisplayString(_ctx.selection && _ctx.selection.label), 1 /* TEXT */)]) : _ctx.popoverState === 'closed' || !_ctx.enableSearch ? (openBlock(), createElementBlock("span", {
213
179
  key: 1,
214
180
  class: normalizeClass(_ctx.placeholderStyles),
215
181
  disabled: _ctx.disabled ? '' : null
216
- }, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_4))], 64 /* STABLE_FRAGMENT */))], 64 /* STABLE_FRAGMENT */))], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), _ctx.multiple && _ctx.outerItems.length > 0 ? (openBlock(), createElementBlock(Fragment, {
182
+ }, toDisplayString(_ctx.placeholder), 11 /* TEXT, CLASS, PROPS */, _hoisted_4)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */))], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), _ctx.multiple && _ctx.outerItems.length > 0 ? (openBlock(), createElementBlock(Fragment, {
217
183
  key: 0
218
- }, [createTextVNode(" +" + toDisplayString(_ctx.outerItems.length), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5, [!_ctx.isEmptyModelValue && _ctx.popoverState === 'closed' ? (openBlock(), createBlock(_component_OrIconButton, {
184
+ }, [createTextVNode(" +" + toDisplayString(_ctx.outerItems.length), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true), _ctx.popoverState === 'open' && _ctx.enableSearch && _ctx.isDesktop ? (openBlock(), createBlock(_component_OrInput, {
185
+ key: 1,
186
+ ref: "searchControl",
187
+ modelValue: _ctx.searchText,
188
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.searchText = $event),
189
+ class: normalizeClass([..._ctx.searchControlStyles, _ctx.isEmptyModelValue && 'md:!ml-none']),
190
+ type: 'search',
191
+ placeholder: _ctx.placeholder,
192
+ size: _ctx.size,
193
+ "disable-default-styles": true,
194
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
195
+ }, null, 8 /* PROPS */, ["modelValue", "class", "placeholder", "size"])) : (openBlock(), createElementBlock("div", _hoisted_5)), createElementVNode("div", _hoisted_6, [_ctx.popoverState === 'closed' && !_ctx.isEmptyModelValue ? (openBlock(), createBlock(_component_OrIconButton, {
219
196
  key: 0,
220
197
  icon: 'close',
221
198
  color: 'inherit',
222
199
  disabled: _ctx.readonly || _ctx.disabled,
223
- onClick: _cache[8] || (_cache[8] = withModifiers($event => _ctx.$emit('update:modelValue', _ctx.multiple ? [] : undefined), ["stop"]))
200
+ onClick: _cache[4] || (_cache[4] = withModifiers($event => _ctx.$emit('update:modelValue', _ctx.multiple ? [] : undefined), ["stop"]))
224
201
  }, null, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true), createVNode(_component_OrIcon, {
225
202
  icon: _ctx.popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down',
226
203
  variant: 'outlined'
@@ -232,13 +209,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
232
209
  "full-width": true,
233
210
  "custom-styles": _ctx.dropdownStyles,
234
211
  "disable-default-styles": true,
235
- onClose: _cache[12] || (_cache[12] = $event => _ctx.clearSearchControl())
212
+ onClose: _cache[8] || (_cache[8] = $event => _ctx.clearSearchControl())
236
213
  }, {
237
214
  default: withCtx(() => [_ctx.popoverState === 'open' && _ctx.enableSearch && _ctx.isMobile ? (openBlock(), createBlock(_component_OrInput, {
238
215
  key: 0,
239
216
  ref: "searchControl",
240
217
  modelValue: _ctx.searchText,
241
- "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => _ctx.searchText = $event),
218
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => _ctx.searchText = $event),
242
219
  class: normalizeClass(_ctx.searchControlStyles),
243
220
  type: 'search',
244
221
  placeholder: _ctx.placeholder
@@ -263,7 +240,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
263
240
  option: option
264
241
  }, () => [createVNode(_component_OrCheckbox, {
265
242
  modelValue: _ctx.proxyModelValue,
266
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => _ctx.proxyModelValue = $event),
243
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.proxyModelValue = $event),
267
244
  value: option.value,
268
245
  label: option.label,
269
246
  "label-variant": 'menu-item'
@@ -304,7 +281,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
304
281
  }, {
305
282
  default: withCtx(() => [createVNode(_component_OrCheckbox, {
306
283
  modelValue: _ctx.proxyModelValue,
307
- "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => _ctx.proxyModelValue = $event),
284
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.proxyModelValue = $event),
308
285
  value: option.value,
309
286
  label: option.label,
310
287
  "label-variant": 'menu-item'
@@ -344,14 +321,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
344
321
  _: 3 /* FORWARDED */
345
322
  }, 8 /* PROPS */, ["trigger", "custom-styles"])]),
346
323
  _: 3 /* FORWARDED */
347
- }, 8 /* PROPS */, ["class", "variant", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggle], [_directive_dropdown_close, _ctx.close]]), withDirectives(createElementVNode("div", _hoisted_6, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
324
+ }, 8 /* PROPS */, ["class", "variant", "size", "invalid", "readonly", "disabled"])), [[_directive_dropdown_open, _ctx.toggle], [_directive_dropdown_close, _ctx.close]]), withDirectives(createElementVNode("div", _hoisted_7, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
348
325
  key: 0,
349
326
  disabled: _ctx.disabled
350
327
  }, {
351
328
  default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
352
329
 
353
330
  _: 1 /* STABLE */
354
- }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 512 /* NEED_PATCH */), [[vShow, !_ctx.error]]), withDirectives(createElementVNode("div", _hoisted_7, [createVNode(_component_OrError, {
331
+ }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 512 /* NEED_PATCH */), [[vShow, !_ctx.error]]), withDirectives(createElementVNode("div", _hoisted_8, [createVNode(_component_OrError, {
355
332
  disabled: _ctx.disabled
356
333
  }, {
357
334
  default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-5428e5f8.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect.vue_vue_type_script_lang-aa2ccd3b.js';
2
2
  export { InputBoxSize as SelectSize } from '../OrInputBoxV3/props.js';
3
3
  import 'vue-demi';
4
4
  import '../../utils/isEmptyValue.js';
@@ -5,7 +5,9 @@ const Select = [
5
5
  'gap-xs'];
6
6
  const SelectControl = [
7
7
  // Layout
8
- 'layout-row grow',
8
+ 'layout-row',
9
+ // Layout (empty)
10
+ 'empty:hidden',
9
11
  // Overflow
10
12
  'overflow-hidden',
11
13
  // Spacing
@@ -114,7 +114,7 @@ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-12bbade9.j
114
114
  export { s as OrSegmentedControlV3 } from '../OrSegmentedControl.vue_vue_type_script_lang-3a7df112.js';
115
115
  export { SegmentedControlSize } from './OrSegmentedControlV3/props.js';
116
116
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-2516881b.js';
117
- export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-5428e5f8.js';
117
+ export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-aa2ccd3b.js';
118
118
  export { s as OrSidebar } from '../OrSidebar.vue_vue_type_script_lang-81941fe6.js';
119
119
  export { OrSidebarSide } from './OrSidebar/constants.js';
120
120
  export { s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-a7103da5.js';