@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.
@@ -189,9 +189,7 @@ var script = defineComponent({
189
189
  // Styles
190
190
  const rootStyles = computed(() => ['or-select-v3', ...Select]);
191
191
  const controlStyles = computed(() => [...SelectControl]);
192
- const searchControlStyles = computed(() => [...SelectSearchControl, '!visible' // Search control is always visible despite `useOverflow` effects
193
- ]);
194
-
192
+ const searchControlStyles = computed(() => [...SelectSearchControl]);
195
193
  const placeholderStyles = computed(() => [...SelectPlaceholder]);
196
194
  const dropdownStyles = computed(() => {
197
195
  var _a;
@@ -408,56 +406,25 @@ var __vue_render__ = function () {
408
406
  });
409
407
  }, {
410
408
  "model": _vm.proxyModelValue
411
- }), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
412
- ref: "searchControl",
413
- class: _vm.searchControlStyles,
414
- attrs: {
415
- "type": 'search',
416
- "placeholder": _vm.placeholder,
417
- "size": _vm.size,
418
- "disable-default-styles": true
419
- },
420
- on: {
421
- "click": function ($event) {
422
- $event.stopPropagation();
423
- }
424
- },
425
- model: {
426
- value: _vm.searchText,
427
- callback: function ($$v) {
428
- _vm.searchText = $$v;
429
- },
430
- expression: "searchText"
431
- }
432
- })] : _vm._e()] : [_vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
433
- ref: "searchControl",
434
- class: _vm.searchControlStyles,
409
+ })] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('span', {
410
+ class: _vm.placeholderStyles,
435
411
  attrs: {
436
- "type": 'search',
437
- "placeholder": _vm.placeholder,
438
- "size": _vm.size,
439
- "disable-default-styles": true
440
- },
441
- on: {
442
- "click": function ($event) {
443
- $event.stopPropagation();
444
- }
445
- },
446
- model: {
447
- value: _vm.searchText,
448
- callback: function ($$v) {
449
- _vm.searchText = $$v;
450
- },
451
- expression: "searchText"
412
+ "disabled": _vm.disabled ? '' : null
452
413
  }
453
- })] : [_c('span', {
414
+ }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
415
+ return [_c('span', {
416
+ staticClass: "truncate"
417
+ }, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
418
+ }, {
419
+ "model": _vm.proxyModelValue
420
+ })] : _vm.popoverState === 'closed' || !_vm.enableSearch ? [_c('span', {
454
421
  class: _vm.placeholderStyles,
455
422
  attrs: {
456
423
  "disabled": _vm.disabled ? '' : null
457
424
  }
458
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])]]] : [_vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
425
+ }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : _vm._e()]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _vm.popoverState === 'open' && _vm.enableSearch && _vm.isDesktop ? [_c('OrInput', {
459
426
  ref: "searchControl",
460
- class: _vm.searchControlStyles,
427
+ class: _vm.searchControlStyles.concat([_vm.isEmptyModelValue && 'md:!ml-none']),
461
428
  attrs: {
462
429
  "type": 'search',
463
430
  "placeholder": _vm.placeholder,
@@ -476,20 +443,11 @@ var __vue_render__ = function () {
476
443
  },
477
444
  expression: "searchText"
478
445
  }
479
- })] : [!_vm.isEmptyModelValue ? [_vm._t("valueTemplate", function () {
480
- return [_c('span', {
481
- staticClass: "truncate"
482
- }, [_vm._v("\n " + _vm._s(_vm.selection && _vm.selection.label) + "\n ")])];
483
- }, {
484
- "model": _vm.proxyModelValue
485
- })] : [_c('span', {
486
- class: _vm.placeholderStyles,
487
- attrs: {
488
- "disabled": _vm.disabled ? '' : null
489
- }
490
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])]]]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _c('div', {
446
+ })] : [_c('div', {
447
+ class: ['grow']
448
+ })], _vm._v(" "), _c('div', {
491
449
  class: ['layout-inline-row', 'gap-sm']
492
- }, [!_vm.isEmptyModelValue && _vm.popoverState === 'closed' ? [_c('OrIconButton', {
450
+ }, [_vm.popoverState === 'closed' && !_vm.isEmptyModelValue ? [_c('OrIconButton', {
493
451
  attrs: {
494
452
  "icon": 'close',
495
453
  "color": 'inherit',
@@ -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