@onereach/ui-components 6.4.1-beta.3382.0 → 6.4.1-beta.3383.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.
@@ -95,7 +95,7 @@ var __vue_render__$1 = function () {
95
95
  return _c('div', {
96
96
  ref: "root",
97
97
  class: _vm.rootStyles
98
- }, [_vm.label ? [_c('OrLabel', {
98
+ }, [_vm.label || _vm.$slots.addon ? [_c('OrLabel', {
99
99
  attrs: {
100
100
  "control-id": _vm.controlId,
101
101
  "variant": 'input',
@@ -417,13 +417,13 @@ var __vue_render__ = function () {
417
417
  "size": "l",
418
418
  "additional-styles": _vm.modalStyles
419
419
  },
420
- scopedSlots: _vm._u([_vm.$slots.modalHeader ? {
420
+ scopedSlots: _vm._u([{
421
421
  key: "header",
422
422
  fn: function () {
423
- return [_vm._t("modalHeader")];
423
+ return [_vm._v("\n " + _vm._s(_vm.label) + "\n ")];
424
424
  },
425
425
  proxy: true
426
- } : null, _vm.$slots.modalFooter ? {
426
+ }, _vm.$slots.modalFooter ? {
427
427
  key: "footer",
428
428
  fn: function () {
429
429
  return [_vm._t("modalFooter")];
@@ -434,7 +434,6 @@ var __vue_render__ = function () {
434
434
  ref: "fullscreenControl",
435
435
  attrs: {
436
436
  "control-id": _vm.controlAttributes.id,
437
- "label": _vm.label,
438
437
  "hint": _vm.hint,
439
438
  "error": _vm.error,
440
439
  "disabled": _vm.disabled,
@@ -104,7 +104,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
104
104
  return openBlock(), createElementBlock("div", {
105
105
  ref: "root",
106
106
  class: normalizeClass(_ctx.rootStyles)
107
- }, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
107
+ }, [_ctx.label || _ctx.$slots.addon ? (openBlock(), createBlock(_component_OrLabel, {
108
108
  key: 0,
109
109
  "control-id": _ctx.controlId,
110
110
  variant: 'input',
@@ -1,6 +1,6 @@
1
- import { s as script } from '../../OrCode.vue_vue_type_script_lang-bbb76e9c.js';
2
- export { s as default } from '../../OrCode.vue_vue_type_script_lang-bbb76e9c.js';
3
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, renderSlot, createBlock, withModifiers, createCommentVNode, createSlots } from 'vue';
1
+ import { s as script } from '../../OrCode.vue_vue_type_script_lang-e7131a78.js';
2
+ export { s as default } from '../../OrCode.vue_vue_type_script_lang-e7131a78.js';
3
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, renderSlot, createBlock, withModifiers, createCommentVNode, createSlots, createTextVNode, toDisplayString } from 'vue';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  class: /*#__PURE__*/normalizeClass(['layout-row', 'gap-xs'])
@@ -32,10 +32,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
32
32
  size: "l",
33
33
  "additional-styles": _ctx.modalStyles
34
34
  }, createSlots({
35
+ header: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
36
+
35
37
  default: withCtx(() => [createVNode(_component_OrCodeControl, {
36
38
  ref: "fullscreenControl",
37
39
  "control-id": _ctx.controlAttributes.id,
38
- label: _ctx.label,
39
40
  hint: _ctx.hint,
40
41
  error: _ctx.error,
41
42
  disabled: _ctx.disabled,
@@ -43,16 +44,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
43
44
  }, {
44
45
  addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
45
46
  _: 3 /* FORWARDED */
46
- }, 8 /* PROPS */, ["control-id", "label", "hint", "error", "disabled", "readonly"])]),
47
+ }, 8 /* PROPS */, ["control-id", "hint", "error", "disabled", "readonly"])]),
47
48
  _: 2 /* DYNAMIC */
48
- }, [_ctx.$slots.modalHeader ? {
49
- name: "header",
50
- fn: withCtx(() => [renderSlot(_ctx.$slots, "modalHeader")]),
51
- key: "0"
52
- } : undefined, _ctx.$slots.modalFooter ? {
49
+ }, [_ctx.$slots.modalFooter ? {
53
50
  name: "footer",
54
51
  fn: withCtx(() => [renderSlot(_ctx.$slots, "modalFooter")]),
55
- key: "1"
52
+ key: "0"
56
53
  } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["additional-styles"])], 2 /* CLASS */);
57
54
  }
58
55
 
@@ -1,2 +1,2 @@
1
1
  export { CodeLanguage } from './props.js';
2
- export { s as OrCodeV3 } from '../../OrCode.vue_vue_type_script_lang-bbb76e9c.js';
2
+ export { s as OrCodeV3 } from '../../OrCode.vue_vue_type_script_lang-e7131a78.js';
@@ -28,7 +28,7 @@ export { OrCodeLanguages } from './OrCode/constants.js';
28
28
  export { b as basicSetup, a as lintGutter, l as linter } from '../index-62bb1bac.js';
29
29
  export { j as javascript } from '../index-60e4eacf.js';
30
30
  export { h as html, j as json, a as jsonParseLinter } from '../index-eca317e0.js';
31
- export { s as OrCodeV3 } from '../OrCode.vue_vue_type_script_lang-bbb76e9c.js';
31
+ export { s as OrCodeV3 } from '../OrCode.vue_vue_type_script_lang-e7131a78.js';
32
32
  export { CodeLanguage } from './OrCodeV3/props.js';
33
33
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-be1c8c66.js';
34
34
  export { s as OrColorPicker } from '../OrColorPicker.vue_vue_type_script_lang-5c6fd662.js';
@@ -18,7 +18,7 @@ export { s as OrChips } from './OrChips.vue_vue_type_script_lang-e1f37564.js';
18
18
  import './components/OrCode/OrCode.js';
19
19
  export { s as OrCode } from './OrCode.vue_vue_type_script_lang-e88b2b44.js';
20
20
  import './components/OrCodeV3/OrCode.js';
21
- export { s as OrCodeV3 } from './OrCode.vue_vue_type_script_lang-bbb76e9c.js';
21
+ export { s as OrCodeV3 } from './OrCode.vue_vue_type_script_lang-e7131a78.js';
22
22
  import './components/OrColorPicker/OrColorPicker.js';
23
23
  export { s as OrColorPicker } from './OrColorPicker.vue_vue_type_script_lang-5c6fd662.js';
24
24
  import './components/OrCombinedInputV3/OrCombinedInput.js';
@@ -135,7 +135,7 @@ var __vue_render__$1 = function () {
135
135
  return _c('div', {
136
136
  ref: "root",
137
137
  class: _vm.rootStyles
138
- }, [_vm.label ? [_c('OrLabel', {
138
+ }, [_vm.label || _vm.$slots.addon ? [_c('OrLabel', {
139
139
  attrs: {
140
140
  "control-id": _vm.controlId,
141
141
  "variant": 'input',
@@ -456,13 +456,13 @@ var __vue_render__ = function () {
456
456
  "size": "l",
457
457
  "additional-styles": _vm.modalStyles
458
458
  },
459
- scopedSlots: _vm._u([_vm.$slots.modalHeader ? {
459
+ scopedSlots: _vm._u([{
460
460
  key: "header",
461
461
  fn: function () {
462
- return [_vm._t("modalHeader")];
462
+ return [_vm._v("\n " + _vm._s(_vm.label) + "\n ")];
463
463
  },
464
464
  proxy: true
465
- } : null, _vm.$slots.modalFooter ? {
465
+ }, _vm.$slots.modalFooter ? {
466
466
  key: "footer",
467
467
  fn: function () {
468
468
  return [_vm._t("modalFooter")];
@@ -473,7 +473,6 @@ var __vue_render__ = function () {
473
473
  ref: "fullscreenControl",
474
474
  attrs: {
475
475
  "control-id": _vm.controlAttributes.id,
476
- "label": _vm.label,
477
476
  "hint": _vm.hint,
478
477
  "error": _vm.error,
479
478
  "disabled": _vm.disabled,
@@ -22,7 +22,7 @@ export { lintGutter, linter } from '@codemirror/lint';
22
22
  export { javascript } from '@codemirror/lang-javascript';
23
23
  export { json, jsonParseLinter } from '@codemirror/lang-json';
24
24
  export { html } from '@codemirror/lang-html';
25
- export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-22356f1e.js';
25
+ export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-848c1f5d.js';
26
26
  export { _ as OrCollapse } from '../OrCollapse-9d22b072.js';
27
27
  export { _ 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-7a4f2fcb.js';
28
28
  export { _ as OrCombinedInputV3 } from '../OrCombinedInput-08f20c4c.js';
@@ -1,4 +1,4 @@
1
- export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-22356f1e.js';
1
+ export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-848c1f5d.js';
2
2
  import '@codemirror/commands';
3
3
  import '@codemirror/lang-css';
4
4
  import '@codemirror/lang-html';
@@ -22,7 +22,7 @@ export { lintGutter, linter } from '@codemirror/lint';
22
22
  export { javascript } from '@codemirror/lang-javascript';
23
23
  export { json, jsonParseLinter } from '@codemirror/lang-json';
24
24
  export { html } from '@codemirror/lang-html';
25
- export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-22356f1e.js';
25
+ export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-848c1f5d.js';
26
26
  export { _ as OrCollapse } from './OrCollapse-9d22b072.js';
27
27
  export { _ 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-7a4f2fcb.js';
28
28
  export { _ as OrCombinedInputV3 } from './OrCombinedInput-08f20c4c.js';
@@ -137,7 +137,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
137
137
  return openBlock(), createElementBlock("div", {
138
138
  ref: "root",
139
139
  class: normalizeClass(_ctx.rootStyles)
140
- }, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
140
+ }, [_ctx.label || _ctx.$slots.addon ? (openBlock(), createBlock(_component_OrLabel, {
141
141
  key: 0,
142
142
  "control-id": _ctx.controlId,
143
143
  variant: 'input',
@@ -413,10 +413,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
413
413
  size: "l",
414
414
  "additional-styles": _ctx.modalStyles
415
415
  }, createSlots({
416
+ header: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
417
+
416
418
  default: withCtx(() => [createVNode(_component_OrCodeControl, {
417
419
  ref: "fullscreenControl",
418
420
  "control-id": _ctx.controlAttributes.id,
419
- label: _ctx.label,
420
421
  hint: _ctx.hint,
421
422
  error: _ctx.error,
422
423
  disabled: _ctx.disabled,
@@ -424,16 +425,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
424
425
  }, {
425
426
  addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
426
427
  _: 3 /* FORWARDED */
427
- }, 8 /* PROPS */, ["control-id", "label", "hint", "error", "disabled", "readonly"])]),
428
+ }, 8 /* PROPS */, ["control-id", "hint", "error", "disabled", "readonly"])]),
428
429
  _: 2 /* DYNAMIC */
429
- }, [_ctx.$slots.modalHeader ? {
430
- name: "header",
431
- fn: withCtx(() => [renderSlot(_ctx.$slots, "modalHeader")]),
432
- key: "0"
433
- } : undefined, _ctx.$slots.modalFooter ? {
430
+ }, [_ctx.$slots.modalFooter ? {
434
431
  name: "footer",
435
432
  fn: withCtx(() => [renderSlot(_ctx.$slots, "modalFooter")]),
436
- key: "1"
433
+ key: "0"
437
434
  } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["additional-styles"])], 2 /* CLASS */);
438
435
  }
439
436
 
@@ -21,7 +21,7 @@ export { lintGutter, linter } from '@codemirror/lint';
21
21
  export { javascript } from '@codemirror/lang-javascript';
22
22
  export { json, jsonParseLinter } from '@codemirror/lang-json';
23
23
  export { html } from '@codemirror/lang-html';
24
- export { C as CodeLanguage, s as OrCodeV3 } from '../OrCode-d4ddbe26.js';
24
+ export { C as CodeLanguage, s as OrCodeV3 } from '../OrCode-2a99e5cd.js';
25
25
  export { s as OrCollapse } from '../OrCollapse-d7c0afae.js';
26
26
  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-252f482b.js';
27
27
  export { s as OrCombinedInputV3 } from '../OrCombinedInput-b8a868cb.js';
@@ -1,4 +1,4 @@
1
- export { C as CodeLanguage, s as OrCodeV3 } from '../../OrCode-d4ddbe26.js';
1
+ export { C as CodeLanguage, s as OrCodeV3 } from '../../OrCode-2a99e5cd.js';
2
2
  import '@codemirror/commands';
3
3
  import '@codemirror/lang-css';
4
4
  import '@codemirror/lang-html';
@@ -21,7 +21,7 @@ export { lintGutter, linter } from '@codemirror/lint';
21
21
  export { javascript } from '@codemirror/lang-javascript';
22
22
  export { json, jsonParseLinter } from '@codemirror/lang-json';
23
23
  export { html } from '@codemirror/lang-html';
24
- export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-d4ddbe26.js';
24
+ export { C as CodeLanguage, s as OrCodeV3 } from './OrCode-2a99e5cd.js';
25
25
  export { s as OrCollapse } from './OrCollapse-d7c0afae.js';
26
26
  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-252f482b.js';
27
27
  export { s as OrCombinedInputV3 } from './OrCombinedInput-b8a868cb.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "6.4.1-beta.3382.0",
3
+ "version": "6.4.1-beta.3383.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -30,15 +30,13 @@
30
30
  :additional-styles="modalStyles"
31
31
  >
32
32
  <template
33
- v-if="$slots.modalHeader"
34
33
  v-slot:header
35
34
  >
36
- <slot name="modalHeader" />
35
+ {{ label }}
37
36
  </template>
38
37
  <OrCodeControl
39
38
  ref="fullscreenControl"
40
39
  :control-id="controlAttributes.id"
41
- :label="label"
42
40
  :hint="hint"
43
41
  :error="error"
44
42
  :disabled="disabled"
@@ -3,7 +3,7 @@
3
3
  ref="root"
4
4
  :class="rootStyles"
5
5
  >
6
- <template v-if="label">
6
+ <template v-if="label || $slots.addon">
7
7
  <OrLabel
8
8
  :control-id="controlId"
9
9
  :variant="'input'"