@onereach/ui-components 8.23.2-beta.4138.0 → 8.23.2-beta.4142.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 (45) hide show
  1. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +19 -33
  2. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +6 -6
  3. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +5 -5
  4. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +1 -1
  5. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
  6. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +6 -6
  7. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
  8. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +1 -1
  9. package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +1 -1
  10. package/dist/bundled/v3/components/{OrCheckboxTreeV3-37cb07f2.js → OrCheckboxTreeV3-958d3e64.js} +21 -39
  11. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
  12. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  13. package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
  14. package/dist/bundled/v3/components/OrSelectV3/utils/castToMultipleValue.js +1 -1
  15. package/dist/bundled/v3/components/{OrSelectV3-d4421891.js → OrSelectV3-e705e2cc.js} +7 -7
  16. package/dist/bundled/v3/components/index.js +2 -2
  17. package/dist/bundled/v3/index.js +2 -2
  18. package/dist/esm/v2/{OrCheckboxGroup-5611e13a.js → OrCheckboxGroup-2b5336ae.js} +1 -1
  19. package/dist/esm/v2/{OrCheckboxTree-ac1a0899.js → OrCheckboxTree-fd61e9d1.js} +19 -33
  20. package/dist/esm/v2/{OrSelect-9c081cbd.js → OrSelect-79bb96e9.js} +1 -1
  21. package/dist/esm/v2/{OrSelectSingleControl-6804ef1b.js → OrSelectSingleControl-1d337ddd.js} +5 -5
  22. package/dist/esm/v2/components/index.js +4 -4
  23. package/dist/esm/v2/components/or-checkbox-group-v3/index.js +2 -2
  24. package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +6 -6
  25. package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +1 -1
  26. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  27. package/dist/esm/v2/components/or-select-v3/partials/index.js +1 -1
  28. package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/index.js +1 -1
  29. package/dist/esm/v2/index.js +4 -4
  30. package/dist/esm/v3/{OrCheckboxGroup-b802d08c.js → OrCheckboxGroup-974b07dc.js} +1 -1
  31. package/dist/esm/v3/{OrCheckboxTree-0bb3e284.js → OrCheckboxTree-d69f47ad.js} +21 -39
  32. package/dist/esm/v3/{OrSelect-7b6dbd30.js → OrSelect-9bd373a6.js} +1 -1
  33. package/dist/esm/v3/{OrSelectSingleControl-384d4b45.js → OrSelectSingleControl-a0f2bedb.js} +8 -8
  34. package/dist/esm/v3/components/index.js +4 -4
  35. package/dist/esm/v3/components/or-checkbox-group-v3/index.js +2 -2
  36. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +6 -6
  37. package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +1 -1
  38. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  39. package/dist/esm/v3/components/or-select-v3/partials/index.js +1 -1
  40. package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/index.js +1 -1
  41. package/dist/esm/v3/index.js +4 -4
  42. package/package.json +1 -1
  43. package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +23 -47
  44. package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue +3 -3
  45. package/src/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue +15 -14
@@ -30,15 +30,15 @@ var script = defineComponent({
30
30
  },
31
31
  collapsible: {
32
32
  type: Boolean,
33
- default: () => false
33
+ default: false
34
34
  },
35
35
  disabled: {
36
36
  type: Boolean,
37
- default: () => false
37
+ default: false
38
38
  },
39
39
  expanded: {
40
40
  type: Boolean,
41
- default: () => true
41
+ default: true
42
42
  }
43
43
  },
44
44
  emits: ['update:modelValue'],
@@ -121,57 +121,46 @@ var __vue_render__ = function () {
121
121
  class: _vm.parentStyles
122
122
  }, [_vm.collapsible ? [_c('OrButton', {
123
123
  attrs: {
124
- "variant": 'link',
124
+ "variant": "link",
125
125
  "disabled": _vm.disabled
126
126
  },
127
127
  on: {
128
- "click": function ($event) {
128
+ "click": function () {
129
129
  return _vm.setIsOpen(!_vm.isOpen);
130
130
  }
131
131
  }
132
132
  }, [_c('OrIcon', {
133
133
  class: [_vm.isOpen ? 'rotate-[180deg]' : 'rotate-0'],
134
134
  attrs: {
135
- "icon": 'arrow_drop_down',
136
- "size": 'l'
135
+ "icon": "arrow_drop_down",
136
+ "size": "l"
137
137
  }
138
138
  })], 1)] : _vm._e(), _vm._v(" "), _c('OrCheckbox', {
139
139
  attrs: {
140
+ "value": "true",
140
141
  "model-value": _vm.isAllChildrenSelected,
141
- "value": true,
142
142
  "indeterminate": _vm.isIntermediate,
143
+ "label": _vm.item.label,
143
144
  "disabled": _vm.disabled
144
145
  },
145
146
  on: {
146
147
  "click": _vm.handleParentClick
147
148
  }
148
- }, [_vm._t("checkboxLabel", function () {
149
- return [_vm._v("\n " + _vm._s(_vm.item.label) + "\n ")];
150
- }, {
151
- "item": _vm.item
152
- })], 2)], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _c('div', {
153
- class: [_vm.collapsible ? 'ml-2xl' : 'ml-lg']
149
+ })], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _c('div', {
150
+ class: {
151
+ 'ml-2xl': _vm.collapsible,
152
+ 'ml-lg': !_vm.collapsible
153
+ }
154
154
  }, _vm._l(_vm.item.children, function (child) {
155
155
  return _c('OrCheckboxTree', {
156
156
  key: child.value || child.label,
157
- class: ['mt-xs'],
157
+ staticClass: "mt-xs",
158
158
  attrs: {
159
159
  "item": child,
160
160
  "collapsible": child.collapsible,
161
161
  "expanded": child.expanded,
162
162
  "disabled": _vm.disabled || child.disabled
163
163
  },
164
- scopedSlots: _vm._u([{
165
- key: "checkboxLabel",
166
- fn: function (ref) {
167
- var item = ref.item;
168
- return [_vm._t("checkboxLabel", function () {
169
- return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
170
- }, {
171
- "item": item
172
- })];
173
- }
174
- }], null, true),
175
164
  model: {
176
165
  value: _vm.proxyModelValue,
177
166
  callback: function ($$v) {
@@ -182,8 +171,9 @@ var __vue_render__ = function () {
182
171
  });
183
172
  }), 1) : _vm._e()] : [_c('OrCheckbox', {
184
173
  attrs: {
185
- "value": _vm.item.value,
186
- "disabled": _vm.disabled || _vm.item.disabled
174
+ "disabled": _vm.disabled || _vm.item.disabled,
175
+ "label": _vm.item.label,
176
+ "value": _vm.item.value
187
177
  },
188
178
  model: {
189
179
  value: _vm.proxyModelValue,
@@ -192,11 +182,7 @@ var __vue_render__ = function () {
192
182
  },
193
183
  expression: "proxyModelValue"
194
184
  }
195
- }, [_vm._t("checkboxLabel", function () {
196
- return [_vm._v("\n " + _vm._s(_vm.item.label) + "\n ")];
197
- }, {
198
- "item": _vm.item
199
- })], 2)]], 2);
185
+ })]], 2);
200
186
  };
201
187
  var __vue_staticRenderFns__ = [];
202
188
 
@@ -23,15 +23,15 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
23
23
  };
24
24
  collapsible: {
25
25
  type: BooleanConstructor;
26
- default: () => false;
26
+ default: boolean;
27
27
  };
28
28
  disabled: {
29
29
  type: BooleanConstructor;
30
- default: () => false;
30
+ default: boolean;
31
31
  };
32
32
  expanded: {
33
33
  type: BooleanConstructor;
34
- default: () => true;
34
+ default: boolean;
35
35
  };
36
36
  }, import("@vue/composition-api").ExtractPropTypes<{
37
37
  modelValue: {
@@ -44,15 +44,15 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
44
44
  };
45
45
  collapsible: {
46
46
  type: BooleanConstructor;
47
- default: () => false;
47
+ default: boolean;
48
48
  };
49
49
  disabled: {
50
50
  type: BooleanConstructor;
51
- default: () => false;
51
+ default: boolean;
52
52
  };
53
53
  expanded: {
54
54
  type: BooleanConstructor;
55
- default: () => true;
55
+ default: boolean;
56
56
  };
57
57
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
58
58
  modelValue: string[];
@@ -536,9 +536,7 @@ var __vue_render__$1 = function () {
536
536
  return _c('div', {
537
537
  ref: "root",
538
538
  class: _vm.rootStyles
539
- }, [!_vm.isEmpty && !_vm.isOpen ? [_c('span', {
540
- staticClass: "truncate"
541
- }, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])] : [_vm.enableSearch ? _c('OrSelectControlInput', {
539
+ }, [_vm.isOpen && _vm.enableSearch ? [_c('OrSelectControlInput', {
542
540
  ref: "searchControl",
543
541
  attrs: {
544
542
  "placeholder": _vm.isEmpty ? _vm.placeholder : _vm.selectionLabel
@@ -550,11 +548,13 @@ var __vue_render__$1 = function () {
550
548
  },
551
549
  expression: "searchModelValue"
552
550
  }
553
- }) : _c('OrSelectPlaceholder', {
551
+ })] : [_vm.isEmpty ? [_c('OrSelectPlaceholder', {
554
552
  attrs: {
555
553
  "disabled": _vm.disabled
556
554
  }
557
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])]], 2);
555
+ }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : [_c('span', {
556
+ staticClass: "truncate"
557
+ }, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])]]], 2);
558
558
  };
559
559
  var __vue_staticRenderFns__$1 = [];
560
560
 
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
2
2
  import { defineComponent, toRef } from 'vue-demi';
3
- import { s as script$1 } from '../OrCheckboxTreeV3-37cb07f2.js';
3
+ import { s as script$1 } from '../OrCheckboxTreeV3-958d3e64.js';
4
4
  import { s as script$2, F as FormGroupDirection } from '../OrFormGroupV3-216f55ee.js';
5
5
  import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
6
6
 
@@ -1 +1 @@
1
- export { s as default } from '../OrCheckboxTreeV3-37cb07f2.js';
1
+ export { s as default } from '../OrCheckboxTreeV3-958d3e64.js';
@@ -11,15 +11,15 @@ declare const _default: import("vue-demi").DefineComponent<{
11
11
  };
12
12
  collapsible: {
13
13
  type: BooleanConstructor;
14
- default: () => boolean;
14
+ default: boolean;
15
15
  };
16
16
  disabled: {
17
17
  type: BooleanConstructor;
18
- default: () => boolean;
18
+ default: boolean;
19
19
  };
20
20
  expanded: {
21
21
  type: BooleanConstructor;
22
- default: () => boolean;
22
+ default: boolean;
23
23
  };
24
24
  }, {
25
25
  rootStyles: import("vue-demi").ComputedRef<string[]>;
@@ -44,15 +44,15 @@ declare const _default: import("vue-demi").DefineComponent<{
44
44
  };
45
45
  collapsible: {
46
46
  type: BooleanConstructor;
47
- default: () => boolean;
47
+ default: boolean;
48
48
  };
49
49
  disabled: {
50
50
  type: BooleanConstructor;
51
- default: () => boolean;
51
+ default: boolean;
52
52
  };
53
53
  expanded: {
54
54
  type: BooleanConstructor;
55
- default: () => boolean;
55
+ default: boolean;
56
56
  };
57
57
  }>> & {
58
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -1 +1 @@
1
- export { s as OrCheckboxTreeV3 } from '../OrCheckboxTreeV3-37cb07f2.js';
1
+ export { s as OrCheckboxTreeV3 } from '../OrCheckboxTreeV3-958d3e64.js';
@@ -1 +1 @@
1
- export { C as CheckboxTreeRoot, a as CheckboxTreeRootParent } from '../OrCheckboxTreeV3-37cb07f2.js';
1
+ export { C as CheckboxTreeRoot, a as CheckboxTreeRootParent } from '../OrCheckboxTreeV3-958d3e64.js';
@@ -1,2 +1,2 @@
1
1
  import '../../../utils/functions/flattenDeep.js';
2
- export { e as extractChildrenValues } from '../../OrCheckboxTreeV3-37cb07f2.js';
2
+ export { e as extractChildrenValues } from '../../OrCheckboxTreeV3-958d3e64.js';
@@ -1,4 +1,4 @@
1
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, withCtx, createVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, renderList } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, withCtx, createVNode, createCommentVNode, renderList } from 'vue';
2
2
  import { defineComponent, toRefs, computed, watch } from 'vue-demi';
3
3
  import flattenDeep from '../utils/functions/flattenDeep.js';
4
4
  import { s as script$1 } from './OrIconV3-5db4e349.js';
@@ -54,15 +54,15 @@ var script = defineComponent({
54
54
  },
55
55
  collapsible: {
56
56
  type: Boolean,
57
- default: () => false
57
+ default: false
58
58
  },
59
59
  disabled: {
60
60
  type: Boolean,
61
- default: () => false
61
+ default: false
62
62
  },
63
63
  expanded: {
64
64
  type: Boolean,
65
- default: () => true
65
+ default: true
66
66
  }
67
67
  },
68
68
  emits: ['update:modelValue'],
@@ -144,66 +144,48 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
144
144
  class: normalizeClass(_ctx.parentStyles)
145
145
  }, [_ctx.collapsible ? (openBlock(), createBlock(_component_OrButton, {
146
146
  key: 0,
147
- variant: 'link',
147
+ variant: "link",
148
148
  disabled: _ctx.disabled,
149
- onClick: _cache[0] || (_cache[0] = $event => _ctx.setIsOpen(!_ctx.isOpen))
149
+ onClick: _cache[0] || (_cache[0] = () => _ctx.setIsOpen(!_ctx.isOpen))
150
150
  }, {
151
151
  default: withCtx(() => [createVNode(_component_OrIcon, {
152
152
  class: normalizeClass([_ctx.isOpen ? 'rotate-[180deg]' : 'rotate-0']),
153
- icon: 'arrow_drop_down',
154
- size: 'l'
153
+ icon: "arrow_drop_down",
154
+ size: "l"
155
155
  }, null, 8 /* PROPS */, ["class"])]),
156
156
  _: 1 /* STABLE */
157
157
  }, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true), createVNode(_component_OrCheckbox, {
158
+ value: "true",
158
159
  "model-value": _ctx.isAllChildrenSelected,
159
- value: true,
160
160
  indeterminate: _ctx.isIntermediate,
161
+ label: _ctx.item.label,
161
162
  disabled: _ctx.disabled,
162
163
  onClick: _ctx.handleParentClick
163
- }, {
164
- default: withCtx(() => [renderSlot(_ctx.$slots, "checkboxLabel", {
165
- item: _ctx.item
166
- }, () => [createTextVNode(toDisplayString(_ctx.item.label), 1 /* TEXT */)])]),
167
-
168
- _: 3 /* FORWARDED */
169
- }, 8 /* PROPS */, ["model-value", "indeterminate", "disabled", "onClick"])], 2 /* CLASS */), _ctx.hasChildren && _ctx.isOpen ? (openBlock(), createElementBlock("div", {
164
+ }, null, 8 /* PROPS */, ["model-value", "indeterminate", "label", "disabled", "onClick"])], 2 /* CLASS */), _ctx.hasChildren && _ctx.isOpen ? (openBlock(), createElementBlock("div", {
170
165
  key: 0,
171
- class: normalizeClass([_ctx.collapsible ? 'ml-2xl' : 'ml-lg'])
166
+ class: normalizeClass({
167
+ 'ml-2xl': _ctx.collapsible,
168
+ 'ml-lg': !_ctx.collapsible
169
+ })
172
170
  }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item.children, child => {
173
171
  return openBlock(), createBlock(_component_OrCheckboxTree, {
174
172
  key: child.value || child.label,
175
173
  modelValue: _ctx.proxyModelValue,
176
174
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxyModelValue = $event),
177
- class: normalizeClass(['mt-xs']),
175
+ class: "mt-xs",
178
176
  item: child,
179
177
  collapsible: child.collapsible,
180
178
  expanded: child.expanded,
181
179
  disabled: _ctx.disabled || child.disabled
182
- }, {
183
- checkboxLabel: withCtx(_ref => {
184
- let {
185
- item
186
- } = _ref;
187
- return [renderSlot(_ctx.$slots, "checkboxLabel", {
188
- item: item
189
- }, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])];
190
- }),
191
-
192
- _: 2 /* DYNAMIC */
193
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "item", "collapsible", "expanded", "disabled"]);
180
+ }, null, 8 /* PROPS */, ["modelValue", "item", "collapsible", "expanded", "disabled"]);
194
181
  }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrCheckbox, {
195
182
  key: 1,
196
183
  modelValue: _ctx.proxyModelValue,
197
184
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.proxyModelValue = $event),
198
- value: _ctx.item.value,
199
- disabled: _ctx.disabled || _ctx.item.disabled
200
- }, {
201
- default: withCtx(() => [renderSlot(_ctx.$slots, "checkboxLabel", {
202
- item: _ctx.item
203
- }, () => [createTextVNode(toDisplayString(_ctx.item.label), 1 /* TEXT */)])]),
204
-
205
- _: 3 /* FORWARDED */
206
- }, 8 /* PROPS */, ["modelValue", "value", "disabled"]))], 2 /* CLASS */);
185
+ disabled: _ctx.disabled || _ctx.item.disabled,
186
+ label: _ctx.item.label,
187
+ value: _ctx.item.value
188
+ }, null, 8 /* PROPS */, ["modelValue", "disabled", "label", "value"]))], 2 /* CLASS */);
207
189
  }
208
190
 
209
191
  script.render = render;
@@ -1 +1 @@
1
- export { s as default } from '../OrSelectV3-d4421891.js';
1
+ export { s as default } from '../OrSelectV3-e705e2cc.js';
@@ -1,2 +1,2 @@
1
- export { s as OrSelectV3 } from '../OrSelectV3-d4421891.js';
1
+ export { s as OrSelectV3 } from '../OrSelectV3-e705e2cc.js';
2
2
  export { I as SelectSize } from '../OrInputBoxV3-90e51950.js';
@@ -1 +1 @@
1
- export { S as Select, a as SelectControl, d as SelectDropdown, e as SelectDropdownDefault, f as SelectDropdownFlipped, g as SelectDropdownItem, h as SelectNoSearchResults, b as SelectSearchControl } from '../OrSelectV3-d4421891.js';
1
+ export { S as Select, a as SelectControl, d as SelectDropdown, e as SelectDropdownDefault, f as SelectDropdownFlipped, g as SelectDropdownItem, h as SelectNoSearchResults, b as SelectSearchControl } from '../OrSelectV3-e705e2cc.js';
@@ -1,2 +1,2 @@
1
1
  import '../../../utils/isEmptyValue.js';
2
- export { c as castToMultipleValue } from '../../OrSelectV3-d4421891.js';
2
+ export { c as castToMultipleValue } from '../../OrSelectV3-e705e2cc.js';
@@ -422,7 +422,7 @@ var script$1 = defineComponent({
422
422
  });
423
423
 
424
424
  const _hoisted_1$1 = {
425
- key: 0,
425
+ key: 1,
426
426
  class: "truncate"
427
427
  };
428
428
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
@@ -431,22 +431,22 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
431
431
  return openBlock(), createElementBlock("div", {
432
432
  ref: "root",
433
433
  class: normalizeClass(_ctx.rootStyles)
434
- }, [!_ctx.isEmpty && !_ctx.isOpen ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.selectionLabel), 1 /* TEXT */)) : (openBlock(), createElementBlock(Fragment, {
435
- key: 1
436
- }, [_ctx.enableSearch ? (openBlock(), createBlock(_component_OrSelectControlInput, {
434
+ }, [_ctx.isOpen && _ctx.enableSearch ? (openBlock(), createBlock(_component_OrSelectControlInput, {
437
435
  key: 0,
438
436
  ref: "searchControl",
439
437
  modelValue: _ctx.searchModelValue,
440
438
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.searchModelValue = $event),
441
439
  placeholder: _ctx.isEmpty ? _ctx.placeholder : _ctx.selectionLabel
442
- }, null, 8 /* PROPS */, ["modelValue", "placeholder"])) : (openBlock(), createBlock(_component_OrSelectPlaceholder, {
443
- key: 1,
440
+ }, null, 8 /* PROPS */, ["modelValue", "placeholder"])) : (openBlock(), createElementBlock(Fragment, {
441
+ key: 1
442
+ }, [_ctx.isEmpty ? (openBlock(), createBlock(_component_OrSelectPlaceholder, {
443
+ key: 0,
444
444
  disabled: _ctx.disabled
445
445
  }, {
446
446
  default: withCtx(() => [createTextVNode(toDisplayString(_ctx.placeholder), 1 /* TEXT */)]),
447
447
 
448
448
  _: 1 /* STABLE */
449
- }, 8 /* PROPS */, ["disabled"]))], 64 /* STABLE_FRAGMENT */))], 2 /* CLASS */);
449
+ }, 8 /* PROPS */, ["disabled"])) : (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.selectionLabel), 1 /* TEXT */))], 64 /* STABLE_FRAGMENT */))], 2 /* CLASS */);
450
450
  }
451
451
 
452
452
  script$1.render = render$1;
@@ -12,7 +12,7 @@ export { C as CardCollectionView, s as OrCardCollectionV3, d as defaultViewModes
12
12
  export { C as CardPadding, s as OrCardV3 } from './OrCardV3-a3bb7835.js';
13
13
  export { default as OrCheckbox } from './OrCheckbox/OrCheckbox.js';
14
14
  export { default as OrCheckboxGroupV3 } from './OrCheckboxGroupV3/OrCheckboxGroup.js';
15
- export { s as OrCheckboxTreeV3 } from './OrCheckboxTreeV3-37cb07f2.js';
15
+ export { s as OrCheckboxTreeV3 } from './OrCheckboxTreeV3-958d3e64.js';
16
16
  export { s as OrCheckboxV3 } from './OrCheckboxV3-fcc61e73.js';
17
17
  export { s as OrChip, a as OrChips } from './OrChips-9386b9d6.js';
18
18
  export { E as EditorState, a as EditorView, q as OrCode, O as OrCodeLanguages, b as basicSetup, h as html, j as javascript, d as json, e as jsonParseLinter, c as lintGutter, l as linter } from './OrCode-7a263a23.js';
@@ -86,7 +86,7 @@ export { default as OrSearch } from './OrSearch/OrSearch.js';
86
86
  export { OrSearchV3 } from './OrSearchV3/index.js';
87
87
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControlV3-d7578374.js';
88
88
  export { s as OrSelect } from './OrSelect-c0c14dd8.js';
89
- export { s as OrSelectV3 } from './OrSelectV3-d4421891.js';
89
+ export { s as OrSelectV3 } from './OrSelectV3-e705e2cc.js';
90
90
  export { OrSidebar, OrSidebarSide } from './OrSidebar/index.js';
91
91
  export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './OrSidebarV3-13a7de2b.js';
92
92
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeleton-b3691eeb.js';
@@ -46,7 +46,7 @@ export { s as OrRatingV3 } from './components/OrRatingV3-b6b47938.js';
46
46
  export { F as Formats, s as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-a23ed54e.js';
47
47
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-d7578374.js';
48
48
  export { s as OrSelect } from './components/OrSelect-c0c14dd8.js';
49
- export { s as OrSelectV3 } from './components/OrSelectV3-d4421891.js';
49
+ export { s as OrSelectV3 } from './components/OrSelectV3-e705e2cc.js';
50
50
  export { OrSidebar, OrSidebarSide } from './components/OrSidebar/index.js';
51
51
  export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './components/OrSidebarV3-13a7de2b.js';
52
52
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './components/OrSkeleton-b3691eeb.js';
@@ -78,7 +78,7 @@ export { B as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, a as BUTTON_SIZE, b as BUTT
78
78
  export { default as OrIconButton, default as OrIconButtonV2 } from './components/OrIconButtonV2/OrIconButton.js';
79
79
  export { default as OrCard } from './components/OrCard/OrCard.js';
80
80
  export { default as OrCheckbox } from './components/OrCheckbox/OrCheckbox.js';
81
- export { s as OrCheckboxTreeV3 } from './components/OrCheckboxTreeV3-37cb07f2.js';
81
+ export { s as OrCheckboxTreeV3 } from './components/OrCheckboxTreeV3-958d3e64.js';
82
82
  export { s as OrCheckboxV3 } from './components/OrCheckboxV3-fcc61e73.js';
83
83
  export { default as OrCollapse } from './components/OrCollapse/OrCollapse.js';
84
84
  export { I as CombinedInputSize, I as DatePickerSize, I as DateRangePickerSize, I as DateTimePickerSize, I as InputBoxSize, a as InputBoxVariant, I as InputSize, s as OrInputBoxV3, I as SearchSize, I as SelectSize, I as TagInputSize, I as TextareaSize, I as TimePickerSize, I as TimeRangePickerSize } from './components/OrInputBoxV3-90e51950.js';
@@ -4,7 +4,7 @@ import './dom-aecadd9a.js';
4
4
  import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
5
5
  import '@onereach/styles/tailwind/plugins/core';
6
6
  import '@onereach/styles/tailwind.config.json';
7
- import { _ as __vue_component__$1 } from './OrCheckboxTree-ac1a0899.js';
7
+ import { _ as __vue_component__$1 } from './OrCheckboxTree-fd61e9d1.js';
8
8
  import { _ as __vue_component__$2, F as FormGroupDirection } from './OrFormGroup-1aaf6500.js';
9
9
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
10
 
@@ -62,15 +62,15 @@ var script = defineComponent({
62
62
  },
63
63
  collapsible: {
64
64
  type: Boolean,
65
- default: () => false
65
+ default: false
66
66
  },
67
67
  disabled: {
68
68
  type: Boolean,
69
- default: () => false
69
+ default: false
70
70
  },
71
71
  expanded: {
72
72
  type: Boolean,
73
- default: () => true
73
+ default: true
74
74
  }
75
75
  },
76
76
  emits: ['update:modelValue'],
@@ -153,57 +153,46 @@ var __vue_render__ = function () {
153
153
  class: _vm.parentStyles
154
154
  }, [_vm.collapsible ? [_c('OrButton', {
155
155
  attrs: {
156
- "variant": 'link',
156
+ "variant": "link",
157
157
  "disabled": _vm.disabled
158
158
  },
159
159
  on: {
160
- "click": function ($event) {
160
+ "click": function () {
161
161
  return _vm.setIsOpen(!_vm.isOpen);
162
162
  }
163
163
  }
164
164
  }, [_c('OrIcon', {
165
165
  class: [_vm.isOpen ? 'rotate-[180deg]' : 'rotate-0'],
166
166
  attrs: {
167
- "icon": 'arrow_drop_down',
168
- "size": 'l'
167
+ "icon": "arrow_drop_down",
168
+ "size": "l"
169
169
  }
170
170
  })], 1)] : _vm._e(), _vm._v(" "), _c('OrCheckbox', {
171
171
  attrs: {
172
+ "value": "true",
172
173
  "model-value": _vm.isAllChildrenSelected,
173
- "value": true,
174
174
  "indeterminate": _vm.isIntermediate,
175
+ "label": _vm.item.label,
175
176
  "disabled": _vm.disabled
176
177
  },
177
178
  on: {
178
179
  "click": _vm.handleParentClick
179
180
  }
180
- }, [_vm._t("checkboxLabel", function () {
181
- return [_vm._v("\n " + _vm._s(_vm.item.label) + "\n ")];
182
- }, {
183
- "item": _vm.item
184
- })], 2)], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _c('div', {
185
- class: [_vm.collapsible ? 'ml-2xl' : 'ml-lg']
181
+ })], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _c('div', {
182
+ class: {
183
+ 'ml-2xl': _vm.collapsible,
184
+ 'ml-lg': !_vm.collapsible
185
+ }
186
186
  }, _vm._l(_vm.item.children, function (child) {
187
187
  return _c('OrCheckboxTree', {
188
188
  key: child.value || child.label,
189
- class: ['mt-xs'],
189
+ staticClass: "mt-xs",
190
190
  attrs: {
191
191
  "item": child,
192
192
  "collapsible": child.collapsible,
193
193
  "expanded": child.expanded,
194
194
  "disabled": _vm.disabled || child.disabled
195
195
  },
196
- scopedSlots: _vm._u([{
197
- key: "checkboxLabel",
198
- fn: function (ref) {
199
- var item = ref.item;
200
- return [_vm._t("checkboxLabel", function () {
201
- return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
202
- }, {
203
- "item": item
204
- })];
205
- }
206
- }], null, true),
207
196
  model: {
208
197
  value: _vm.proxyModelValue,
209
198
  callback: function ($$v) {
@@ -214,8 +203,9 @@ var __vue_render__ = function () {
214
203
  });
215
204
  }), 1) : _vm._e()] : [_c('OrCheckbox', {
216
205
  attrs: {
217
- "value": _vm.item.value,
218
- "disabled": _vm.disabled || _vm.item.disabled
206
+ "disabled": _vm.disabled || _vm.item.disabled,
207
+ "label": _vm.item.label,
208
+ "value": _vm.item.value
219
209
  },
220
210
  model: {
221
211
  value: _vm.proxyModelValue,
@@ -224,11 +214,7 @@ var __vue_render__ = function () {
224
214
  },
225
215
  expression: "proxyModelValue"
226
216
  }
227
- }, [_vm._t("checkboxLabel", function () {
228
- return [_vm._v("\n " + _vm._s(_vm.item.label) + "\n ")];
229
- }, {
230
- "item": _vm.item
231
- })], 2)]], 2);
217
+ })]], 2);
232
218
  };
233
219
  var __vue_staticRenderFns__ = [];
234
220
 
@@ -20,7 +20,7 @@ import { _ as __vue_component__$c } from './OrMenuItem-fbe3e8e4.js';
20
20
  import { _ as __vue_component__$d } from './OrPopover-98ace710.js';
21
21
  import { T as TagsOverflow } from './OrTags-8f2af1d7.js';
22
22
  import { _ as __vue_component__$1, c as castToMultipleValue } from './OrSelectMultipleControl-b62645f3.js';
23
- import { _ as __vue_component__$2 } from './OrSelectSingleControl-6804ef1b.js';
23
+ import { _ as __vue_component__$2 } from './OrSelectSingleControl-1d337ddd.js';
24
24
  import './OrSelectPlaceholder-d03c1076.js';
25
25
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
26
26
 
@@ -114,9 +114,7 @@ var __vue_render__ = function () {
114
114
  return _c('div', {
115
115
  ref: "root",
116
116
  class: _vm.rootStyles
117
- }, [!_vm.isEmpty && !_vm.isOpen ? [_c('span', {
118
- staticClass: "truncate"
119
- }, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])] : [_vm.enableSearch ? _c('OrSelectControlInput', {
117
+ }, [_vm.isOpen && _vm.enableSearch ? [_c('OrSelectControlInput', {
120
118
  ref: "searchControl",
121
119
  attrs: {
122
120
  "placeholder": _vm.isEmpty ? _vm.placeholder : _vm.selectionLabel
@@ -128,11 +126,13 @@ var __vue_render__ = function () {
128
126
  },
129
127
  expression: "searchModelValue"
130
128
  }
131
- }) : _c('OrSelectPlaceholder', {
129
+ })] : [_vm.isEmpty ? [_c('OrSelectPlaceholder', {
132
130
  attrs: {
133
131
  "disabled": _vm.disabled
134
132
  }
135
- }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])]], 2);
133
+ }, [_vm._v("\n " + _vm._s(_vm.placeholder) + "\n ")])] : [_c('span', {
134
+ staticClass: "truncate"
135
+ }, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])]]], 2);
136
136
  };
137
137
  var __vue_staticRenderFns__ = [];
138
138
 
@@ -13,8 +13,8 @@ export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCol
13
13
  export { C as CardCollectionView, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-696ecfc6.js';
14
14
  export { C as CardPadding, _ as OrCardV3 } from '../OrCard-36865e33.js';
15
15
  export { _ as OrCheckbox } from '../OrCheckbox-3337d903.js';
16
- export { _ as OrCheckboxGroupV3 } from '../OrCheckboxGroup-5611e13a.js';
17
- export { _ as OrCheckboxTreeV3 } from '../OrCheckboxTree-ac1a0899.js';
16
+ export { _ as OrCheckboxGroupV3 } from '../OrCheckboxGroup-2b5336ae.js';
17
+ export { _ as OrCheckboxTreeV3 } from '../OrCheckboxTree-fd61e9d1.js';
18
18
  export { _ as OrCheckboxV3 } from '../OrCheckbox-601b53f3.js';
19
19
  export { _ as OrChip } from '../OrChip-289730fb.js';
20
20
  export { _ as OrChips } from '../OrChips-0bb33a9f.js';
@@ -105,7 +105,7 @@ export { _ as OrSearch } from '../OrSearch-525e988d.js';
105
105
  export { _ as OrSearchV3 } from '../OrSearch-177677ab.js';
106
106
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-ef70b1d7.js';
107
107
  export { _ as OrSelect } from '../OrSelect-2808e01d.js';
108
- export { _ as OrSelectV3 } from '../OrSelect-9c081cbd.js';
108
+ export { _ as OrSelectV3 } from '../OrSelect-79bb96e9.js';
109
109
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-054b26c6.js';
110
110
  export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-6fedb0a6.js';
111
111
  export { _ as OrSkeletonCircle } from '../OrSkeletonCircle-c4bf0e34.js';
@@ -216,7 +216,7 @@ import '../OrSelectMultipleControl-b62645f3.js';
216
216
  import '../isEqualValue-f8bf73d9.js';
217
217
  import '../OrSelectControlInput-d968f1b8.js';
218
218
  import '../OrSelectPlaceholder-d03c1076.js';
219
- import '../OrSelectSingleControl-6804ef1b.js';
219
+ import '../OrSelectSingleControl-1d337ddd.js';
220
220
  import 'lodash/range';
221
221
  import '../styles-ed564e39.js';
222
222
  import '../useOverflow-e91d2314.js';