@onereach/ui-components 8.22.2 → 8.22.3-beta.4122.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 (39) hide show
  1. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +28 -6
  2. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +21 -0
  3. package/dist/bundled/v2/components/OrSliderV3/OrSlider.js +16 -3
  4. package/dist/bundled/v2/components/OrSliderV3/OrSlider.vue.d.ts +21 -0
  5. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.js +1 -1
  6. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +9 -0
  7. package/dist/bundled/v3/components/OrRangeSliderV3/index.js +2 -2
  8. package/dist/bundled/v3/components/OrRangeSliderV3/props.js +1 -1
  9. package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +2 -2
  10. package/dist/bundled/v3/components/{OrRangeSliderV3-5b22cbac.js → OrRangeSliderV3-c8a3cfcc.js} +28 -12
  11. package/dist/bundled/v3/components/OrSliderV3/OrSlider.js +1 -1
  12. package/dist/bundled/v3/components/OrSliderV3/OrSlider.vue.d.ts +9 -0
  13. package/dist/bundled/v3/components/OrSliderV3/index.js +1 -1
  14. package/dist/bundled/v3/components/OrSliderV3/props.js +1 -1
  15. package/dist/bundled/v3/components/OrSliderV3/styles.js +1 -1
  16. package/dist/bundled/v3/components/{OrSliderV3-7bddcc19.js → OrSliderV3-626127c4.js} +16 -6
  17. package/dist/bundled/v3/components/index.js +2 -2
  18. package/dist/bundled/v3/index.js +2 -2
  19. package/dist/esm/v2/{OrRangeSlider-2770c783.js → OrRangeSlider-80e462f4.js} +29 -7
  20. package/dist/esm/v2/{OrSlider-2e29c468.js → OrSlider-f2c0da4d.js} +13 -4
  21. package/dist/esm/v2/{OrSlider.vue_rollup-plugin-vue_script-5b284c82.js → OrSlider.vue_rollup-plugin-vue_script-1f104c93.js} +4 -0
  22. package/dist/esm/v2/components/index.js +3 -3
  23. package/dist/esm/v2/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +21 -0
  24. package/dist/esm/v2/components/or-range-slider-v3/index.js +2 -2
  25. package/dist/esm/v2/components/or-slider-v3/OrSlider.vue.d.ts +21 -0
  26. package/dist/esm/v2/components/or-slider-v3/index.js +2 -2
  27. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  28. package/dist/esm/v2/index.js +3 -3
  29. package/dist/esm/v3/{OrRangeSlider-0869e30e.js → OrRangeSlider-411426ef.js} +28 -12
  30. package/dist/esm/v3/{OrSlider-8eed054b.js → OrSlider-9ffbc482.js} +16 -6
  31. package/dist/esm/v3/components/index.js +2 -2
  32. package/dist/esm/v3/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +9 -0
  33. package/dist/esm/v3/components/or-range-slider-v3/index.js +2 -2
  34. package/dist/esm/v3/components/or-slider-v3/OrSlider.vue.d.ts +9 -0
  35. package/dist/esm/v3/components/or-slider-v3/index.js +1 -1
  36. package/dist/esm/v3/index.js +2 -2
  37. package/package.json +2 -3
  38. package/src/components/or-range-slider-v3/OrRangeSlider.vue +27 -0
  39. package/src/components/or-slider-v3/OrSlider.vue +16 -0
@@ -47,6 +47,10 @@ var script = defineComponent({
47
47
  disabled: {
48
48
  type: Boolean,
49
49
  default: () => false
50
+ },
51
+ tooltip: {
52
+ type: Object,
53
+ default: () => undefined
50
54
  }
51
55
  },
52
56
  emits: ['update:modelValue'],
@@ -350,7 +354,7 @@ var __vue_render__ = function () {
350
354
  attrs: {
351
355
  "disabled": _vm.disabled
352
356
  }
353
- }), _vm._v(" "), _c('OrTooltip', {
357
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
354
358
  class: ['relative', 'z-10'],
355
359
  attrs: {
356
360
  "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbFrom) || _vm.isDragging && _vm.selectedControl === 'from',
@@ -358,8 +362,17 @@ var __vue_render__ = function () {
358
362
  "placement": _vm.tooltipPlacement,
359
363
  "offset": 24,
360
364
  "external-control": true
361
- }
362
- }, [_c('div', {
365
+ },
366
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
367
+ key: "content",
368
+ fn: function () {
369
+ return [_vm._t("tooltipContent", null, {
370
+ "value": _vm.proxyModelValue[_vm.orientation.endsWith('-reversed') ? 1 : 0]
371
+ })];
372
+ },
373
+ proxy: true
374
+ } : null], null, true)
375
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
363
376
  ref: "thumbFrom",
364
377
  class: _vm.thumbStyles,
365
378
  attrs: {
@@ -372,7 +385,7 @@ var __vue_render__ = function () {
372
385
  attrs: {
373
386
  "disabled": _vm.disabled
374
387
  }
375
- }), _vm._v(" "), _c('OrTooltip', {
388
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
376
389
  class: ['relative', 'z-10'],
377
390
  attrs: {
378
391
  "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbTo) || _vm.isDragging && _vm.selectedControl === 'to',
@@ -380,8 +393,17 @@ var __vue_render__ = function () {
380
393
  "placement": _vm.tooltipPlacement,
381
394
  "offset": 24,
382
395
  "external-control": true
383
- }
384
- }, [_c('div', {
396
+ },
397
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
398
+ key: "content",
399
+ fn: function () {
400
+ return [_vm._t("tooltipContent", null, {
401
+ "value": _vm.proxyModelValue[_vm.orientation.endsWith('-reversed') ? 0 : 1]
402
+ })];
403
+ },
404
+ proxy: true
405
+ } : null], null, true)
406
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
385
407
  ref: "thumbTo",
386
408
  class: _vm.thumbStyles,
387
409
  attrs: {
@@ -74,6 +74,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
74
74
  type: BooleanConstructor;
75
75
  default: () => false;
76
76
  };
77
+ tooltip: {
78
+ type: PropType<Pick<Readonly<Partial<{
79
+ [x: number]: string;
80
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
81
+ default: () => undefined;
82
+ };
77
83
  }, import("@vue/composition-api").ExtractPropTypes<{
78
84
  modelValue: {
79
85
  type: PropType<[number, number]>;
@@ -107,6 +113,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
107
113
  type: BooleanConstructor;
108
114
  default: () => false;
109
115
  };
116
+ tooltip: {
117
+ type: PropType<Pick<Readonly<Partial<{
118
+ [x: number]: string;
119
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
120
+ default: () => undefined;
121
+ };
110
122
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
111
123
  modelValue: [number, number];
112
124
  minValue: number;
@@ -116,6 +128,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
116
128
  color: "primary" | "secondary";
117
129
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
118
130
  disabled: boolean;
131
+ tooltip: Pick<Readonly<Partial<{
132
+ [x: number]: string;
133
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
119
134
  } & {} & {
120
135
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
121
136
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -168,6 +183,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
168
183
  color: "primary" | "secondary";
169
184
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
170
185
  disabled: boolean;
186
+ tooltip: Pick<Readonly<Partial<{
187
+ [x: number]: string;
188
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
171
189
  } & {} & {
172
190
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
173
191
  }, {
@@ -179,5 +197,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
179
197
  color: "primary" | "secondary";
180
198
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
181
199
  disabled: boolean;
200
+ tooltip: Pick<Readonly<Partial<{
201
+ [x: number]: string;
202
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
182
203
  }, true>);
183
204
  export default _default;
@@ -47,6 +47,10 @@ var script = defineComponent({
47
47
  disabled: {
48
48
  type: Boolean,
49
49
  default: () => false
50
+ },
51
+ tooltip: {
52
+ type: Object,
53
+ default: () => undefined
50
54
  }
51
55
  },
52
56
  emits: ['update:modelValue'],
@@ -228,7 +232,7 @@ var __vue_render__ = function () {
228
232
  attrs: {
229
233
  "disabled": _vm.disabled
230
234
  }
231
- }), _vm._v(" "), _c('OrTooltip', {
235
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
232
236
  class: ['relative', 'z-10'],
233
237
  attrs: {
234
238
  "is-open": _vm.isHovering || _vm.isDragging,
@@ -236,8 +240,17 @@ var __vue_render__ = function () {
236
240
  "placement": _vm.tooltipPlacement,
237
241
  "offset": 24,
238
242
  "external-control": true
239
- }
240
- }, [_c('div', {
243
+ },
244
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
245
+ key: "content",
246
+ fn: function () {
247
+ return [_vm._t("tooltipContent", null, {
248
+ "value": _vm.proxyModelValue
249
+ })];
250
+ },
251
+ proxy: true
252
+ } : null], null, true)
253
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
241
254
  ref: "thumb",
242
255
  class: _vm.thumbStyles,
243
256
  attrs: {
@@ -56,6 +56,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
56
56
  type: BooleanConstructor;
57
57
  default: () => false;
58
58
  };
59
+ tooltip: {
60
+ type: PropType<Pick<Readonly<Partial<{
61
+ [x: number]: string;
62
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
63
+ default: () => undefined;
64
+ };
59
65
  }, import("@vue/composition-api").ExtractPropTypes<{
60
66
  modelValue: {
61
67
  type: NumberConstructor;
@@ -89,6 +95,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
89
95
  type: BooleanConstructor;
90
96
  default: () => false;
91
97
  };
98
+ tooltip: {
99
+ type: PropType<Pick<Readonly<Partial<{
100
+ [x: number]: string;
101
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
102
+ default: () => undefined;
103
+ };
92
104
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
93
105
  modelValue: number;
94
106
  minValue: number;
@@ -98,6 +110,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
98
110
  color: "primary" | "secondary";
99
111
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
100
112
  disabled: boolean;
113
+ tooltip: Pick<Readonly<Partial<{
114
+ [x: number]: string;
115
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
101
116
  } & {} & {
102
117
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
103
118
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -132,6 +147,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
132
147
  color: "primary" | "secondary";
133
148
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
134
149
  disabled: boolean;
150
+ tooltip: Pick<Readonly<Partial<{
151
+ [x: number]: string;
152
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
135
153
  } & {} & {
136
154
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
137
155
  }, {
@@ -143,5 +161,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
143
161
  color: "primary" | "secondary";
144
162
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
145
163
  disabled: boolean;
164
+ tooltip: Pick<Readonly<Partial<{
165
+ [x: number]: string;
166
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
146
167
  }, true>);
147
168
  export default _default;
@@ -1 +1 @@
1
- export { s as default } from '../OrRangeSliderV3-5b22cbac.js';
1
+ export { s as default } from '../OrRangeSliderV3-c8a3cfcc.js';
@@ -33,6 +33,10 @@ declare const _default: import("vue-demi").DefineComponent<{
33
33
  type: BooleanConstructor;
34
34
  default: () => boolean;
35
35
  };
36
+ tooltip: {
37
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
38
+ default: () => undefined;
39
+ };
36
40
  }, {
37
41
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
42
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
@@ -107,6 +111,10 @@ declare const _default: import("vue-demi").DefineComponent<{
107
111
  type: BooleanConstructor;
108
112
  default: () => boolean;
109
113
  };
114
+ tooltip: {
115
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
116
+ default: () => undefined;
117
+ };
110
118
  }>> & {
111
119
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
112
120
  }, {
@@ -118,5 +126,6 @@ declare const _default: import("vue-demi").DefineComponent<{
118
126
  color: "primary" | "secondary";
119
127
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
120
128
  disabled: boolean;
129
+ tooltip: Pick<any, "placement" | "offset" | "debounce">;
121
130
  }>;
122
131
  export default _default;
@@ -1,2 +1,2 @@
1
- export { s as OrRangeSliderV3 } from '../OrRangeSliderV3-5b22cbac.js';
2
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-7bddcc19.js';
1
+ export { s as OrRangeSliderV3 } from '../OrRangeSliderV3-c8a3cfcc.js';
2
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-626127c4.js';
@@ -1 +1 @@
1
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-7bddcc19.js';
1
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-626127c4.js';
@@ -1,2 +1,2 @@
1
- import '../OrSliderV3-7bddcc19.js';
2
- export { R as RangeSlider, j as RangeSliderBreakpointMark, k as RangeSliderBreakpointMarkColors, l as RangeSliderLabel, n as RangeSliderLabelMark, m as RangeSliderLabelOrientations, d as RangeSliderOffset, e as RangeSliderOffsetOrientations, a as RangeSliderOrientations, b as RangeSliderRail, c as RangeSliderRailOrientations, h as RangeSliderThumb, i as RangeSliderThumbColors, f as RangeSliderTrack, g as RangeSliderTrackColors } from '../OrRangeSliderV3-5b22cbac.js';
1
+ import '../OrSliderV3-626127c4.js';
2
+ export { R as RangeSlider, j as RangeSliderBreakpointMark, k as RangeSliderBreakpointMarkColors, l as RangeSliderLabel, n as RangeSliderLabelMark, m as RangeSliderLabelOrientations, d as RangeSliderOffset, e as RangeSliderOffsetOrientations, a as RangeSliderOrientations, b as RangeSliderRail, c as RangeSliderRailOrientations, h as RangeSliderThumb, i as RangeSliderThumbColors, f as RangeSliderTrack, g as RangeSliderTrackColors } from '../OrRangeSliderV3-c8a3cfcc.js';
@@ -1,5 +1,5 @@
1
- import { a as SliderOrientation, S as SliderColor } from './OrSliderV3-7bddcc19.js';
2
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
1
+ import { a as SliderOrientation, S as SliderColor } from './OrSliderV3-626127c4.js';
2
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, createSlots, withCtx, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
3
3
  import { h as useElementBounding, a as useElementHover, i as useDraggable, j as clamp } from './OrBottomSheetV3-83beaa38.js';
4
4
  import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
5
5
  import { s as script$1 } from './OrTooltipV3-71f1920b.js';
@@ -218,6 +218,10 @@ var script = defineComponent({
218
218
  disabled: {
219
219
  type: Boolean,
220
220
  default: () => false
221
+ },
222
+ tooltip: {
223
+ type: Object,
224
+ default: () => undefined
221
225
  }
222
226
  },
223
227
  emits: ['update:modelValue'],
@@ -521,40 +525,52 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
521
525
  class: normalizeClass(_ctx.offsetStyles),
522
526
  style: normalizeStyle(_ctx.offsetComputedStyles),
523
527
  disabled: _ctx.disabled
524
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
525
- class: normalizeClass(['relative', 'z-10']),
528
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, mergeProps({
529
+ class: ['relative', 'z-10'],
526
530
  "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbFrom) || _ctx.isDragging && _ctx.selectedControl === 'from',
527
531
  content: String(_ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0]),
528
532
  placement: _ctx.tooltipPlacement,
529
533
  offset: 24,
530
534
  "external-control": true
531
- }, {
535
+ }, _ctx.tooltip), createSlots({
532
536
  default: withCtx(() => [createElementVNode("div", {
533
537
  ref: "thumbFrom",
534
538
  class: normalizeClass(_ctx.thumbStyles),
535
539
  disabled: _ctx.disabled
536
540
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
537
- _: 1 /* STABLE */
538
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
541
+ _: 2 /* DYNAMIC */
542
+ }, [_ctx.$slots.tooltipContent ? {
543
+ name: "content",
544
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
545
+ value: _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0]
546
+ })]),
547
+ key: "0"
548
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), createElementVNode("div", {
539
549
  ref: "track",
540
550
  class: normalizeClass(_ctx.trackStyles),
541
551
  style: normalizeStyle(_ctx.trackComputedStyles),
542
552
  disabled: _ctx.disabled
543
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, {
544
- class: normalizeClass(['relative', 'z-10']),
553
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, mergeProps({
554
+ class: ['relative', 'z-10'],
545
555
  "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbTo) || _ctx.isDragging && _ctx.selectedControl === 'to',
546
556
  content: String(_ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1]),
547
557
  placement: _ctx.tooltipPlacement,
548
558
  offset: 24,
549
559
  "external-control": true
550
- }, {
560
+ }, _ctx.tooltip), createSlots({
551
561
  default: withCtx(() => [createElementVNode("div", {
552
562
  ref: "thumbTo",
553
563
  class: normalizeClass(_ctx.thumbStyles),
554
564
  disabled: _ctx.disabled
555
565
  }, null, 10 /* CLASS, PROPS */, _hoisted_6)]),
556
- _: 1 /* STABLE */
557
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
566
+ _: 2 /* DYNAMIC */
567
+ }, [_ctx.$slots.tooltipContent ? {
568
+ name: "content",
569
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
570
+ value: _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1]
571
+ })]),
572
+ key: "0"
573
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), createElementVNode("div", {
558
574
  ref: "filler",
559
575
  class: normalizeClass(['grow', ..._ctx.offsetStyles]),
560
576
  disabled: _ctx.disabled
@@ -1 +1 @@
1
- export { s as default } from '../OrSliderV3-7bddcc19.js';
1
+ export { s as default } from '../OrSliderV3-626127c4.js';
@@ -33,6 +33,10 @@ declare const _default: import("vue-demi").DefineComponent<{
33
33
  type: BooleanConstructor;
34
34
  default: () => boolean;
35
35
  };
36
+ tooltip: {
37
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
38
+ default: () => undefined;
39
+ };
36
40
  }, {
37
41
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
42
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
@@ -89,6 +93,10 @@ declare const _default: import("vue-demi").DefineComponent<{
89
93
  type: BooleanConstructor;
90
94
  default: () => boolean;
91
95
  };
96
+ tooltip: {
97
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
98
+ default: () => undefined;
99
+ };
92
100
  }>> & {
93
101
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
94
102
  }, {
@@ -100,5 +108,6 @@ declare const _default: import("vue-demi").DefineComponent<{
100
108
  color: "primary" | "secondary";
101
109
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
102
110
  disabled: boolean;
111
+ tooltip: Pick<any, "placement" | "offset" | "debounce">;
103
112
  }>;
104
113
  export default _default;
@@ -1 +1 @@
1
- export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../OrSliderV3-7bddcc19.js';
1
+ export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../OrSliderV3-626127c4.js';
@@ -1 +1 @@
1
- export { S as SliderColor, a as SliderOrientation } from '../OrSliderV3-7bddcc19.js';
1
+ export { S as SliderColor, a as SliderOrientation } from '../OrSliderV3-626127c4.js';
@@ -1 +1 @@
1
- export { b as Slider, j as SliderBreakpointMark, k as SliderBreakpointMarkColors, l as SliderLabel, n as SliderLabelMark, m as SliderLabelOrientations, c as SliderOrientations, d as SliderRail, e as SliderRailOrientations, h as SliderThumb, i as SliderThumbColors, f as SliderTrack, g as SliderTrackColors } from '../OrSliderV3-7bddcc19.js';
1
+ export { b as Slider, j as SliderBreakpointMark, k as SliderBreakpointMarkColors, l as SliderLabel, n as SliderLabelMark, m as SliderLabelOrientations, c as SliderOrientations, d as SliderRail, e as SliderRailOrientations, h as SliderThumb, i as SliderThumbColors, f as SliderTrack, g as SliderTrackColors } from '../OrSliderV3-626127c4.js';
@@ -1,4 +1,4 @@
1
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, createSlots, withCtx, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
2
2
  import { h as useElementBounding, a as useElementHover, i as useDraggable, j as clamp } from './OrBottomSheetV3-83beaa38.js';
3
3
  import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
4
4
  import { s as script$1 } from './OrTooltipV3-71f1920b.js';
@@ -215,6 +215,10 @@ var script = defineComponent({
215
215
  disabled: {
216
216
  type: Boolean,
217
217
  default: () => false
218
+ },
219
+ tooltip: {
220
+ type: Object,
221
+ default: () => undefined
218
222
  }
219
223
  },
220
224
  emits: ['update:modelValue'],
@@ -393,21 +397,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
393
397
  class: normalizeClass(_ctx.trackStyles),
394
398
  style: normalizeStyle(_ctx.trackComputedStyles),
395
399
  disabled: _ctx.disabled
396
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
397
- class: normalizeClass(['relative', 'z-10']),
400
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, mergeProps({
401
+ class: ['relative', 'z-10'],
398
402
  "is-open": _ctx.isHovering || _ctx.isDragging,
399
403
  content: String(_ctx.proxyModelValue),
400
404
  placement: _ctx.tooltipPlacement,
401
405
  offset: 24,
402
406
  "external-control": true
403
- }, {
407
+ }, _ctx.tooltip), createSlots({
404
408
  default: withCtx(() => [createElementVNode("div", {
405
409
  ref: "thumb",
406
410
  class: normalizeClass(_ctx.thumbStyles),
407
411
  disabled: _ctx.disabled
408
412
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
409
- _: 1 /* STABLE */
410
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
413
+ _: 2 /* DYNAMIC */
414
+ }, [_ctx.$slots.tooltipContent ? {
415
+ name: "content",
416
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
417
+ value: _ctx.proxyModelValue
418
+ })]),
419
+ key: "0"
420
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
411
421
  return openBlock(), createElementBlock("div", {
412
422
  key: breakpoint,
413
423
  class: normalizeClass(_ctx.breakpointMarkStyles),
@@ -77,8 +77,8 @@ export { s as OrRadio } from './OrRadio-57f50838.js';
77
77
  export { default as OrRadioGroup } from './OrRadioGroup/OrRadioGroup.js';
78
78
  export { default as OrRadioGroupV3 } from './OrRadioGroupV3/OrRadioGroup.js';
79
79
  export { s as OrRadioV3 } from './OrRadioV3-091f1eab.js';
80
- export { s as OrRangeSliderV3 } from './OrRangeSliderV3-5b22cbac.js';
81
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSliderV3-7bddcc19.js';
80
+ export { s as OrRangeSliderV3 } from './OrRangeSliderV3-c8a3cfcc.js';
81
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSliderV3-626127c4.js';
82
82
  export { s as OrRatingV3 } from './OrRatingV3-b6b47938.js';
83
83
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanelV3-084bbd82.js';
84
84
  export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditorV3-ae8f39d3.js';
@@ -41,7 +41,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './comp
41
41
  export { s as OrRadio } from './components/OrRadio-57f50838.js';
42
42
  export { default as OrRadioGroup } from './components/OrRadioGroup/OrRadioGroup.js';
43
43
  export { default as OrRadioGroupV3 } from './components/OrRadioGroupV3/OrRadioGroup.js';
44
- export { s as OrRangeSliderV3 } from './components/OrRangeSliderV3-5b22cbac.js';
44
+ export { s as OrRangeSliderV3 } from './components/OrRangeSliderV3-c8a3cfcc.js';
45
45
  export { s as OrRatingV3 } from './components/OrRatingV3-b6b47938.js';
46
46
  export { F as Formats, s as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-ae8f39d3.js';
47
47
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-d7578374.js';
@@ -52,7 +52,7 @@ export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from
52
52
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './components/OrSkeleton-d2c6d5e5.js';
53
53
  export { s as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from './components/OrSkeletonV3-1291edf4.js';
54
54
  export { default as OrSlider } from './components/OrSlider/OrSlider.js';
55
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './components/OrSliderV3-7bddcc19.js';
55
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './components/OrSliderV3-626127c4.js';
56
56
  export { s as OrStatusV3, a as StatusSize, S as StatusVariant } from './components/OrStatusV3-b719dab5.js';
57
57
  export { default as OrStepper } from './components/OrStepper/OrStepper.js';
58
58
  export { default as OrSwitch } from './components/OrSwitch/OrSwitch.js';
@@ -6,7 +6,7 @@ import '@onereach/styles/tailwind/plugins/core';
6
6
  import '@onereach/styles/tailwind.config.json';
7
7
  import { _ as __vue_component__$1 } from './OrTooltip-3bf8772e.js';
8
8
  import './OrPopover-9471c7ea.js';
9
- import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
9
+ import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
10
10
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
11
11
 
12
12
  const RangeSlider = [
@@ -222,6 +222,10 @@ var script = defineComponent({
222
222
  disabled: {
223
223
  type: Boolean,
224
224
  default: () => false
225
+ },
226
+ tooltip: {
227
+ type: Object,
228
+ default: () => undefined
225
229
  }
226
230
  },
227
231
  emits: ['update:modelValue'],
@@ -525,7 +529,7 @@ var __vue_render__ = function () {
525
529
  attrs: {
526
530
  "disabled": _vm.disabled
527
531
  }
528
- }), _vm._v(" "), _c('OrTooltip', {
532
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
529
533
  class: ['relative', 'z-10'],
530
534
  attrs: {
531
535
  "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbFrom) || _vm.isDragging && _vm.selectedControl === 'from',
@@ -533,8 +537,17 @@ var __vue_render__ = function () {
533
537
  "placement": _vm.tooltipPlacement,
534
538
  "offset": 24,
535
539
  "external-control": true
536
- }
537
- }, [_c('div', {
540
+ },
541
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
542
+ key: "content",
543
+ fn: function () {
544
+ return [_vm._t("tooltipContent", null, {
545
+ "value": _vm.proxyModelValue[_vm.orientation.endsWith('-reversed') ? 1 : 0]
546
+ })];
547
+ },
548
+ proxy: true
549
+ } : null], null, true)
550
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
538
551
  ref: "thumbFrom",
539
552
  class: _vm.thumbStyles,
540
553
  attrs: {
@@ -547,7 +560,7 @@ var __vue_render__ = function () {
547
560
  attrs: {
548
561
  "disabled": _vm.disabled
549
562
  }
550
- }), _vm._v(" "), _c('OrTooltip', {
563
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
551
564
  class: ['relative', 'z-10'],
552
565
  attrs: {
553
566
  "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbTo) || _vm.isDragging && _vm.selectedControl === 'to',
@@ -555,8 +568,17 @@ var __vue_render__ = function () {
555
568
  "placement": _vm.tooltipPlacement,
556
569
  "offset": 24,
557
570
  "external-control": true
558
- }
559
- }, [_c('div', {
571
+ },
572
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
573
+ key: "content",
574
+ fn: function () {
575
+ return [_vm._t("tooltipContent", null, {
576
+ "value": _vm.proxyModelValue[_vm.orientation.endsWith('-reversed') ? 0 : 1]
577
+ })];
578
+ },
579
+ proxy: true
580
+ } : null], null, true)
581
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
560
582
  ref: "thumbTo",
561
583
  class: _vm.thumbStyles,
562
584
  attrs: {
@@ -1,4 +1,4 @@
1
- import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
1
+ import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
2
2
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
3
3
 
4
4
  /* script */
@@ -27,7 +27,7 @@ var __vue_render__ = function () {
27
27
  attrs: {
28
28
  "disabled": _vm.disabled
29
29
  }
30
- }), _vm._v(" "), _c('OrTooltip', {
30
+ }), _vm._v(" "), _c('OrTooltip', _vm._b({
31
31
  class: ['relative', 'z-10'],
32
32
  attrs: {
33
33
  "is-open": _vm.isHovering || _vm.isDragging,
@@ -35,8 +35,17 @@ var __vue_render__ = function () {
35
35
  "placement": _vm.tooltipPlacement,
36
36
  "offset": 24,
37
37
  "external-control": true
38
- }
39
- }, [_c('div', {
38
+ },
39
+ scopedSlots: _vm._u([_vm.$slots.tooltipContent ? {
40
+ key: "content",
41
+ fn: function () {
42
+ return [_vm._t("tooltipContent", null, {
43
+ "value": _vm.proxyModelValue
44
+ })];
45
+ },
46
+ proxy: true
47
+ } : null], null, true)
48
+ }, 'OrTooltip', _vm.tooltip, false), [_c('div', {
40
49
  ref: "thumb",
41
50
  class: _vm.thumbStyles,
42
51
  attrs: {
@@ -218,6 +218,10 @@ var script = defineComponent({
218
218
  disabled: {
219
219
  type: Boolean,
220
220
  default: () => false
221
+ },
222
+ tooltip: {
223
+ type: Object,
224
+ default: () => undefined
221
225
  }
222
226
  },
223
227
  emits: ['update:modelValue'],
@@ -95,9 +95,9 @@ export { _ as OrRadio } from '../OrRadio-811ad5a4.js';
95
95
  export { _ as OrRadioGroup } from '../OrRadioGroup-11424644.js';
96
96
  export { _ as OrRadioGroupV3 } from '../OrRadioGroup-825def2c.js';
97
97
  export { _ as OrRadioV3 } from '../OrRadio-c1b7cde1.js';
98
- export { _ as OrRangeSliderV3 } from '../OrRangeSlider-2770c783.js';
99
- export { _ as OrSliderV3 } from '../OrSlider-2e29c468.js';
100
- export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
98
+ export { _ as OrRangeSliderV3 } from '../OrRangeSlider-80e462f4.js';
99
+ export { _ as OrSliderV3 } from '../OrSlider-f2c0da4d.js';
100
+ export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
101
101
  export { _ as OrRatingV3 } from '../OrRating-abf1b609.js';
102
102
  export { _ as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from '../OrResizeablePanel-23b6fb7b.js';
103
103
  export { F as Formats, _ as OrRichTextEditorV3 } from '../OrRichTextEditor-8ea77303.js';
@@ -74,6 +74,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
74
74
  type: BooleanConstructor;
75
75
  default: () => false;
76
76
  };
77
+ tooltip: {
78
+ type: PropType<Pick<Readonly<Partial<{
79
+ [x: number]: string;
80
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
81
+ default: () => undefined;
82
+ };
77
83
  }, import("@vue/composition-api").ExtractPropTypes<{
78
84
  modelValue: {
79
85
  type: PropType<[number, number]>;
@@ -107,6 +113,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
107
113
  type: BooleanConstructor;
108
114
  default: () => false;
109
115
  };
116
+ tooltip: {
117
+ type: PropType<Pick<Readonly<Partial<{
118
+ [x: number]: string;
119
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
120
+ default: () => undefined;
121
+ };
110
122
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
111
123
  modelValue: [number, number];
112
124
  minValue: number;
@@ -116,6 +128,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
116
128
  color: "primary" | "secondary";
117
129
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
118
130
  disabled: boolean;
131
+ tooltip: Pick<Readonly<Partial<{
132
+ [x: number]: string;
133
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
119
134
  } & {} & {
120
135
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
121
136
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -168,6 +183,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
168
183
  color: "primary" | "secondary";
169
184
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
170
185
  disabled: boolean;
186
+ tooltip: Pick<Readonly<Partial<{
187
+ [x: number]: string;
188
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
171
189
  } & {} & {
172
190
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
173
191
  }, {
@@ -179,5 +197,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
179
197
  color: "primary" | "secondary";
180
198
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
181
199
  disabled: boolean;
200
+ tooltip: Pick<Readonly<Partial<{
201
+ [x: number]: string;
202
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
182
203
  }, true>);
183
204
  export default _default;
@@ -1,5 +1,5 @@
1
- export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-2770c783.js';
2
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
1
+ export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-80e462f4.js';
2
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import '../../dom-aecadd9a.js';
@@ -56,6 +56,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
56
56
  type: BooleanConstructor;
57
57
  default: () => false;
58
58
  };
59
+ tooltip: {
60
+ type: PropType<Pick<Readonly<Partial<{
61
+ [x: number]: string;
62
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
63
+ default: () => undefined;
64
+ };
59
65
  }, import("@vue/composition-api").ExtractPropTypes<{
60
66
  modelValue: {
61
67
  type: NumberConstructor;
@@ -89,6 +95,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
89
95
  type: BooleanConstructor;
90
96
  default: () => false;
91
97
  };
98
+ tooltip: {
99
+ type: PropType<Pick<Readonly<Partial<{
100
+ [x: number]: string;
101
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">>;
102
+ default: () => undefined;
103
+ };
92
104
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
93
105
  modelValue: number;
94
106
  minValue: number;
@@ -98,6 +110,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
98
110
  color: "primary" | "secondary";
99
111
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
100
112
  disabled: boolean;
113
+ tooltip: Pick<Readonly<Partial<{
114
+ [x: number]: string;
115
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
101
116
  } & {} & {
102
117
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
103
118
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -132,6 +147,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
132
147
  color: "primary" | "secondary";
133
148
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
134
149
  disabled: boolean;
150
+ tooltip: Pick<Readonly<Partial<{
151
+ [x: number]: string;
152
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
135
153
  } & {} & {
136
154
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
137
155
  }, {
@@ -143,5 +161,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
143
161
  color: "primary" | "secondary";
144
162
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
145
163
  disabled: boolean;
164
+ tooltip: Pick<Readonly<Partial<{
165
+ [x: number]: string;
166
+ } | {}> & Omit<{} & {}, never>>, "placement" | "offset" | "debounce">;
146
167
  }, true>);
147
168
  export default _default;
@@ -1,5 +1,5 @@
1
- export { _ as OrSliderV3 } from '../../OrSlider-2e29c468.js';
2
- export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
1
+ export { _ as OrSliderV3 } from '../../OrSlider-f2c0da4d.js';
2
+ export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
3
3
  import '../../normalize-component-6e8e3d80.js';
4
4
  import '@vueuse/core';
5
5
  import 'vue-demi';
@@ -3,7 +3,7 @@
3
3
  * Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
4
4
  * that have same beginning and differ in the ending part.
5
5
  */
6
- declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
6
+ declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
7
7
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
8
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
9
  mainTextStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -48,7 +48,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
48
48
  type: NumberConstructor;
49
49
  default: number;
50
50
  };
51
- }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
51
+ }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
52
52
  text: string;
53
53
  sliceIndex: number;
54
54
  } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -95,9 +95,9 @@ export { _ as OrRadio } from './OrRadio-811ad5a4.js';
95
95
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
96
96
  export { _ as OrRadioGroupV3 } from './OrRadioGroup-825def2c.js';
97
97
  export { _ as OrRadioV3 } from './OrRadio-c1b7cde1.js';
98
- export { _ as OrRangeSliderV3 } from './OrRangeSlider-2770c783.js';
99
- export { _ as OrSliderV3 } from './OrSlider-2e29c468.js';
100
- export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-5b284c82.js';
98
+ export { _ as OrRangeSliderV3 } from './OrRangeSlider-80e462f4.js';
99
+ export { _ as OrSliderV3 } from './OrSlider-f2c0da4d.js';
100
+ export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-1f104c93.js';
101
101
  export { _ as OrRatingV3 } from './OrRating-abf1b609.js';
102
102
  export { _ as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanel-23b6fb7b.js';
103
103
  export { F as Formats, _ as OrRichTextEditorV3 } from './OrRichTextEditor-8ea77303.js';
@@ -6,8 +6,8 @@ import '@onereach/styles/tailwind/plugins/core';
6
6
  import '@onereach/styles/tailwind.config.json';
7
7
  import { s as script$1 } from './OrTooltip-287ff0e4.js';
8
8
  import './OrPopover-1c87b4ed.js';
9
- import { a as SliderOrientation, S as SliderColor } from './OrSlider-8eed054b.js';
10
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
9
+ import { a as SliderOrientation, S as SliderColor } from './OrSlider-9ffbc482.js';
10
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, createSlots, withCtx, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
11
11
 
12
12
  const RangeSlider = [
13
13
  // Interactivity
@@ -222,6 +222,10 @@ var script = defineComponent({
222
222
  disabled: {
223
223
  type: Boolean,
224
224
  default: () => false
225
+ },
226
+ tooltip: {
227
+ type: Object,
228
+ default: () => undefined
225
229
  }
226
230
  },
227
231
  emits: ['update:modelValue'],
@@ -525,40 +529,52 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
525
529
  class: normalizeClass(_ctx.offsetStyles),
526
530
  style: normalizeStyle(_ctx.offsetComputedStyles),
527
531
  disabled: _ctx.disabled
528
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
529
- class: normalizeClass(['relative', 'z-10']),
532
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, mergeProps({
533
+ class: ['relative', 'z-10'],
530
534
  "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbFrom) || _ctx.isDragging && _ctx.selectedControl === 'from',
531
535
  content: String(_ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0]),
532
536
  placement: _ctx.tooltipPlacement,
533
537
  offset: 24,
534
538
  "external-control": true
535
- }, {
539
+ }, _ctx.tooltip), createSlots({
536
540
  default: withCtx(() => [createElementVNode("div", {
537
541
  ref: "thumbFrom",
538
542
  class: normalizeClass(_ctx.thumbStyles),
539
543
  disabled: _ctx.disabled
540
544
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
541
- _: 1 /* STABLE */
542
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
545
+ _: 2 /* DYNAMIC */
546
+ }, [_ctx.$slots.tooltipContent ? {
547
+ name: "content",
548
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
549
+ value: _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0]
550
+ })]),
551
+ key: "0"
552
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), createElementVNode("div", {
543
553
  ref: "track",
544
554
  class: normalizeClass(_ctx.trackStyles),
545
555
  style: normalizeStyle(_ctx.trackComputedStyles),
546
556
  disabled: _ctx.disabled
547
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, {
548
- class: normalizeClass(['relative', 'z-10']),
557
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, mergeProps({
558
+ class: ['relative', 'z-10'],
549
559
  "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbTo) || _ctx.isDragging && _ctx.selectedControl === 'to',
550
560
  content: String(_ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1]),
551
561
  placement: _ctx.tooltipPlacement,
552
562
  offset: 24,
553
563
  "external-control": true
554
- }, {
564
+ }, _ctx.tooltip), createSlots({
555
565
  default: withCtx(() => [createElementVNode("div", {
556
566
  ref: "thumbTo",
557
567
  class: normalizeClass(_ctx.thumbStyles),
558
568
  disabled: _ctx.disabled
559
569
  }, null, 10 /* CLASS, PROPS */, _hoisted_6)]),
560
- _: 1 /* STABLE */
561
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
570
+ _: 2 /* DYNAMIC */
571
+ }, [_ctx.$slots.tooltipContent ? {
572
+ name: "content",
573
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
574
+ value: _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1]
575
+ })]),
576
+ key: "0"
577
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), createElementVNode("div", {
562
578
  ref: "filler",
563
579
  class: normalizeClass(['grow', ..._ctx.offsetStyles]),
564
580
  disabled: _ctx.disabled
@@ -6,7 +6,7 @@ import '@onereach/styles/tailwind/plugins/core';
6
6
  import '@onereach/styles/tailwind.config.json';
7
7
  import { s as script$1 } from './OrTooltip-287ff0e4.js';
8
8
  import './OrPopover-1c87b4ed.js';
9
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, toDisplayString } from 'vue';
9
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, createSlots, withCtx, renderSlot, Fragment, renderList, toDisplayString } from 'vue';
10
10
 
11
11
  var SliderColor;
12
12
  (function (SliderColor) {
@@ -219,6 +219,10 @@ var script = defineComponent({
219
219
  disabled: {
220
220
  type: Boolean,
221
221
  default: () => false
222
+ },
223
+ tooltip: {
224
+ type: Object,
225
+ default: () => undefined
222
226
  }
223
227
  },
224
228
  emits: ['update:modelValue'],
@@ -397,21 +401,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
397
401
  class: normalizeClass(_ctx.trackStyles),
398
402
  style: normalizeStyle(_ctx.trackComputedStyles),
399
403
  disabled: _ctx.disabled
400
- }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
401
- class: normalizeClass(['relative', 'z-10']),
404
+ }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, mergeProps({
405
+ class: ['relative', 'z-10'],
402
406
  "is-open": _ctx.isHovering || _ctx.isDragging,
403
407
  content: String(_ctx.proxyModelValue),
404
408
  placement: _ctx.tooltipPlacement,
405
409
  offset: 24,
406
410
  "external-control": true
407
- }, {
411
+ }, _ctx.tooltip), createSlots({
408
412
  default: withCtx(() => [createElementVNode("div", {
409
413
  ref: "thumb",
410
414
  class: normalizeClass(_ctx.thumbStyles),
411
415
  disabled: _ctx.disabled
412
416
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
413
- _: 1 /* STABLE */
414
- }, 8 /* PROPS */, ["is-open", "content", "placement"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
417
+ _: 2 /* DYNAMIC */
418
+ }, [_ctx.$slots.tooltipContent ? {
419
+ name: "content",
420
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltipContent", {
421
+ value: _ctx.proxyModelValue
422
+ })]),
423
+ key: "0"
424
+ } : undefined]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["is-open", "content", "placement"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
415
425
  return openBlock(), createElementBlock("div", {
416
426
  key: breakpoint,
417
427
  class: normalizeClass(_ctx.breakpointMarkStyles),
@@ -92,8 +92,8 @@ export { s as OrRadio } from '../OrRadio-40bf2c87.js';
92
92
  export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
93
93
  export { s as OrRadioGroupV3 } from '../OrRadioGroup-cb6e81cb.js';
94
94
  export { s as OrRadioV3 } from '../OrRadio-c6f7ba23.js';
95
- export { s as OrRangeSliderV3 } from '../OrRangeSlider-0869e30e.js';
96
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-8eed054b.js';
95
+ export { s as OrRangeSliderV3 } from '../OrRangeSlider-411426ef.js';
96
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-9ffbc482.js';
97
97
  export { s as OrRatingV3 } from '../OrRating-ec9462c5.js';
98
98
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from '../OrResizeablePanel-6d9a3ca1.js';
99
99
  export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditor-2575cf3e.js';
@@ -33,6 +33,10 @@ declare const _default: import("vue-demi").DefineComponent<{
33
33
  type: BooleanConstructor;
34
34
  default: () => boolean;
35
35
  };
36
+ tooltip: {
37
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
38
+ default: () => undefined;
39
+ };
36
40
  }, {
37
41
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
42
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
@@ -107,6 +111,10 @@ declare const _default: import("vue-demi").DefineComponent<{
107
111
  type: BooleanConstructor;
108
112
  default: () => boolean;
109
113
  };
114
+ tooltip: {
115
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
116
+ default: () => undefined;
117
+ };
110
118
  }>> & {
111
119
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
112
120
  }, {
@@ -118,5 +126,6 @@ declare const _default: import("vue-demi").DefineComponent<{
118
126
  color: "primary" | "secondary";
119
127
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
120
128
  disabled: boolean;
129
+ tooltip: Pick<any, "placement" | "offset" | "debounce">;
121
130
  }>;
122
131
  export default _default;
@@ -1,5 +1,5 @@
1
- export { s as OrRangeSliderV3 } from '../../OrRangeSlider-0869e30e.js';
2
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-8eed054b.js';
1
+ export { s as OrRangeSliderV3 } from '../../OrRangeSlider-411426ef.js';
2
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-9ffbc482.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import '../../dom-aecadd9a.js';
@@ -33,6 +33,10 @@ declare const _default: import("vue-demi").DefineComponent<{
33
33
  type: BooleanConstructor;
34
34
  default: () => boolean;
35
35
  };
36
+ tooltip: {
37
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
38
+ default: () => undefined;
39
+ };
36
40
  }, {
37
41
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
42
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
@@ -89,6 +93,10 @@ declare const _default: import("vue-demi").DefineComponent<{
89
93
  type: BooleanConstructor;
90
94
  default: () => boolean;
91
95
  };
96
+ tooltip: {
97
+ type: PropType<Pick<any, "placement" | "offset" | "debounce">>;
98
+ default: () => undefined;
99
+ };
92
100
  }>> & {
93
101
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
94
102
  }, {
@@ -100,5 +108,6 @@ declare const _default: import("vue-demi").DefineComponent<{
100
108
  color: "primary" | "secondary";
101
109
  orientation: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
102
110
  disabled: boolean;
111
+ tooltip: Pick<any, "placement" | "offset" | "debounce">;
103
112
  }>;
104
113
  export default _default;
@@ -1,4 +1,4 @@
1
- export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../../OrSlider-8eed054b.js';
1
+ export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../../OrSlider-9ffbc482.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../dom-aecadd9a.js';
@@ -92,8 +92,8 @@ export { s as OrRadio } from './OrRadio-40bf2c87.js';
92
92
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
93
93
  export { s as OrRadioGroupV3 } from './OrRadioGroup-cb6e81cb.js';
94
94
  export { s as OrRadioV3 } from './OrRadio-c6f7ba23.js';
95
- export { s as OrRangeSliderV3 } from './OrRangeSlider-0869e30e.js';
96
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-8eed054b.js';
95
+ export { s as OrRangeSliderV3 } from './OrRangeSlider-411426ef.js';
96
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-9ffbc482.js';
97
97
  export { s as OrRatingV3 } from './OrRating-ec9462c5.js';
98
98
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanel-6d9a3ca1.js';
99
99
  export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-2575cf3e.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "8.22.2",
3
+ "version": "8.22.3-beta.4122.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -177,6 +177,5 @@
177
177
  "default": "./dist/bundled/v3/components/*/index.js"
178
178
  },
179
179
  "./package.json": "./package.json"
180
- },
181
- "gitHead": "e25654439cc46123247a6d0f70a117015a8a8274"
180
+ }
182
181
  }
@@ -23,12 +23,23 @@
23
23
  :placement="tooltipPlacement"
24
24
  :offset="24"
25
25
  :external-control="true"
26
+ v-bind="tooltip"
26
27
  >
27
28
  <div
28
29
  ref="thumbFrom"
29
30
  :class="thumbStyles"
30
31
  :disabled="disabled"
31
32
  />
33
+
34
+ <template
35
+ v-if="$slots.tooltipContent"
36
+ v-slot:content
37
+ >
38
+ <slot
39
+ name="tooltipContent"
40
+ :value="proxyModelValue[orientation.endsWith('-reversed') ? 1 : 0]"
41
+ />
42
+ </template>
32
43
  </OrTooltip>
33
44
 
34
45
  <div
@@ -45,12 +56,23 @@
45
56
  :placement="tooltipPlacement"
46
57
  :offset="24"
47
58
  :external-control="true"
59
+ v-bind="tooltip"
48
60
  >
49
61
  <div
50
62
  ref="thumbTo"
51
63
  :class="thumbStyles"
52
64
  :disabled="disabled"
53
65
  />
66
+
67
+ <template
68
+ v-if="$slots.tooltipContent"
69
+ v-slot:content
70
+ >
71
+ <slot
72
+ name="tooltipContent"
73
+ :value="proxyModelValue[orientation.endsWith('-reversed') ? 0 : 1]"
74
+ />
75
+ </template>
54
76
  </OrTooltip>
55
77
 
56
78
  <div
@@ -141,6 +163,11 @@ export default defineComponent({
141
163
  type: Boolean,
142
164
  default: () => false,
143
165
  },
166
+
167
+ tooltip: {
168
+ type: Object as PropType<Pick<InstanceType<typeof OrTooltip>['$props'], 'placement' | 'offset' | 'debounce'>>,
169
+ default: () => undefined,
170
+ },
144
171
  },
145
172
 
146
173
  emits: [
@@ -22,12 +22,23 @@
22
22
  :placement="tooltipPlacement"
23
23
  :offset="24"
24
24
  :external-control="true"
25
+ v-bind="tooltip"
25
26
  >
26
27
  <div
27
28
  ref="thumb"
28
29
  :class="thumbStyles"
29
30
  :disabled="disabled"
30
31
  />
32
+
33
+ <template
34
+ v-if="$slots.tooltipContent"
35
+ v-slot:content
36
+ >
37
+ <slot
38
+ name="tooltipContent"
39
+ :value="proxyModelValue"
40
+ />
41
+ </template>
31
42
  </OrTooltip>
32
43
 
33
44
  <div
@@ -112,6 +123,11 @@ export default defineComponent({
112
123
  type: Boolean,
113
124
  default: () => false,
114
125
  },
126
+
127
+ tooltip: {
128
+ type: Object as PropType<Pick<InstanceType<typeof OrTooltip>['$props'], 'placement' | 'offset' | 'debounce'>>,
129
+ default: () => undefined,
130
+ },
115
131
  },
116
132
 
117
133
  emits: [