@onereach/ui-components 8.8.4-beta.3740.0 → 8.8.4-beta.3743.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 (27) hide show
  1. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +1 -1
  2. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +18 -2
  3. package/dist/bundled/v2/components/OrRangeSliderV3/index.js +1 -1
  4. package/dist/bundled/v2/components/OrRangeSliderV3/styles.js +1 -1
  5. package/dist/bundled/v2/components/{OrRangeSliderV3-fb840def.js → OrRangeSliderV3-4fa067df.js} +37 -7
  6. package/dist/bundled/v2/components/index.js +1 -1
  7. package/dist/bundled/v2/index.js +1 -1
  8. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.js +1 -1
  9. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +9 -1
  10. package/dist/bundled/v3/components/OrRangeSliderV3/index.js +1 -1
  11. package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +1 -1
  12. package/dist/bundled/v3/components/{OrRangeSliderV3-ff251922.js → OrRangeSliderV3-b1e08082.js} +38 -9
  13. package/dist/bundled/v3/components/index.js +1 -1
  14. package/dist/bundled/v3/index.js +1 -1
  15. package/dist/esm/v2/{OrRangeSlider-1bc7cf55.js → OrRangeSlider-d34f950b.js} +37 -7
  16. package/dist/esm/v2/components/index.js +1 -1
  17. package/dist/esm/v2/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +18 -2
  18. package/dist/esm/v2/components/or-range-slider-v3/index.js +1 -1
  19. package/dist/esm/v2/index.js +1 -1
  20. package/dist/esm/v3/{OrRangeSlider-80d431a9.js → OrRangeSlider-94a100ae.js} +38 -9
  21. package/dist/esm/v3/components/index.js +1 -1
  22. package/dist/esm/v3/components/or-range-slider-v3/OrRangeSlider.vue.d.ts +9 -1
  23. package/dist/esm/v3/components/or-range-slider-v3/index.js +1 -1
  24. package/dist/esm/v3/index.js +1 -1
  25. package/package.json +2 -2
  26. package/src/components/or-range-slider-v3/OrRangeSlider.vue +32 -4
  27. package/src/components/or-range-slider-v3/styles.ts +9 -2
@@ -1,2 +1,2 @@
1
- export { _ as default } from '../OrRangeSliderV3-fb840def.js';
1
+ export { _ as default } from '../OrRangeSliderV3-4fa067df.js';
2
2
  import '../OrAvatar-1a4a3615.js';
@@ -3,6 +3,9 @@ import { RangeSliderColor, RangeSliderOrientation } from './props';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
5
  rail: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
+ offset: import("@vue/composition-api").Ref<HTMLElement | undefined>;
7
+ track: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
+ filler: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
9
  thumbFrom: import("@vue/composition-api").Ref<HTMLElement | undefined>;
7
10
  thumbTo: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
11
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -20,7 +23,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
20
23
  labelMarkStyles: import("@vue/composition-api").ComputedRef<string[]>;
21
24
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
22
25
  selectedControl: import("@vue/composition-api").Ref<"from" | "to" | undefined>;
23
- isHovering: import("@vue/composition-api").Ref<boolean>;
26
+ isHoveringOffset: import("@vue/composition-api").Ref<boolean>;
27
+ isHoveringTrack: import("@vue/composition-api").Ref<boolean>;
28
+ isHoveringFiller: import("@vue/composition-api").Ref<boolean>;
29
+ isHoveringRail: import("@vue/composition-api").ComputedRef<boolean>;
30
+ isHoveringThumbFrom: import("@vue/composition-api").Ref<boolean>;
31
+ isHoveringThumbTo: import("@vue/composition-api").Ref<boolean>;
24
32
  isDragging: import("@vue/composition-api").ComputedRef<boolean>;
25
33
  }> & import("@vue/composition-api").Data, {}, {}, {
26
34
  modelValue: {
@@ -102,6 +110,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
102
110
  }, import("@vue/composition-api").ShallowUnwrapRef<{
103
111
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
104
112
  rail: import("@vue/composition-api").Ref<HTMLElement | undefined>;
113
+ offset: import("@vue/composition-api").Ref<HTMLElement | undefined>;
114
+ track: import("@vue/composition-api").Ref<HTMLElement | undefined>;
115
+ filler: import("@vue/composition-api").Ref<HTMLElement | undefined>;
105
116
  thumbFrom: import("@vue/composition-api").Ref<HTMLElement | undefined>;
106
117
  thumbTo: import("@vue/composition-api").Ref<HTMLElement | undefined>;
107
118
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -119,7 +130,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
119
130
  labelMarkStyles: import("@vue/composition-api").ComputedRef<string[]>;
120
131
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
121
132
  selectedControl: import("@vue/composition-api").Ref<"from" | "to" | undefined>;
122
- isHovering: import("@vue/composition-api").Ref<boolean>;
133
+ isHoveringOffset: import("@vue/composition-api").Ref<boolean>;
134
+ isHoveringTrack: import("@vue/composition-api").Ref<boolean>;
135
+ isHoveringFiller: import("@vue/composition-api").Ref<boolean>;
136
+ isHoveringRail: import("@vue/composition-api").ComputedRef<boolean>;
137
+ isHoveringThumbFrom: import("@vue/composition-api").Ref<boolean>;
138
+ isHoveringThumbTo: import("@vue/composition-api").Ref<boolean>;
123
139
  isDragging: import("@vue/composition-api").ComputedRef<boolean>;
124
140
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
125
141
  modelValue: [number, number];
@@ -1,2 +1,2 @@
1
- export { _ as OrRangeSliderV3 } from '../OrRangeSliderV3-fb840def.js';
1
+ export { _ as OrRangeSliderV3 } from '../OrRangeSliderV3-4fa067df.js';
2
2
  export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-428479c8.js';
@@ -1,2 +1,2 @@
1
1
  import '../OrSliderV3-428479c8.js';
2
- export { R as RangeSlider, j as RangeSliderLabel, l as RangeSliderLabelMark, k 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-fb840def.js';
2
+ export { R as RangeSlider, j as RangeSliderLabel, l as RangeSliderLabelMark, k 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-4fa067df.js';
@@ -38,8 +38,12 @@ const RangeSliderRailOrientations = {
38
38
  };
39
39
  const RangeSliderOffset = [];
40
40
  const RangeSliderOffsetOrientations = {
41
- [SliderOrientation.Horizontal]: [],
42
- [SliderOrientation.Vertical]: []
41
+ [SliderOrientation.Horizontal]: [
42
+ // Box
43
+ 'h-full'],
44
+ [SliderOrientation.Vertical]: [
45
+ // Box
46
+ 'w-full']
43
47
  };
44
48
  const RangeSliderTrack = [
45
49
  // Shape
@@ -146,6 +150,9 @@ var script = defineComponent({
146
150
  // Refs
147
151
  const root = ref();
148
152
  const rail = ref();
153
+ const offset = ref();
154
+ const track = ref();
155
+ const filler = ref();
149
156
  const thumbFrom = ref();
150
157
  const thumbTo = ref();
151
158
  // Styles
@@ -210,7 +217,14 @@ var script = defineComponent({
210
217
  }
211
218
  }
212
219
  // Effects
213
- const isHovering = useElementHover(rail);
220
+ const isHoveringOffset = useElementHover(offset);
221
+ const isHoveringTrack = useElementHover(track);
222
+ const isHoveringFiller = useElementHover(filler);
223
+ const isHoveringRail = computed(() => {
224
+ return isHoveringOffset.value || isHoveringTrack.value || isHoveringFiller.value;
225
+ });
226
+ const isHoveringThumbFrom = useElementHover(thumbFrom);
227
+ const isHoveringThumbTo = useElementHover(thumbTo);
214
228
  const {
215
229
  isDragging
216
230
  } = useDraggable(rail, {
@@ -248,6 +262,9 @@ var script = defineComponent({
248
262
  return {
249
263
  root,
250
264
  rail,
265
+ offset,
266
+ track,
267
+ filler,
251
268
  thumbFrom,
252
269
  thumbTo,
253
270
  rootStyles,
@@ -261,7 +278,12 @@ var script = defineComponent({
261
278
  labelMarkStyles,
262
279
  proxyModelValue,
263
280
  selectedControl,
264
- isHovering,
281
+ isHoveringOffset,
282
+ isHoveringTrack,
283
+ isHoveringFiller,
284
+ isHoveringRail,
285
+ isHoveringThumbFrom,
286
+ isHoveringThumbTo,
265
287
  isDragging
266
288
  };
267
289
  }
@@ -288,6 +310,7 @@ var __vue_render__ = function () {
288
310
  "disabled": _vm.disabled
289
311
  }
290
312
  }, [_c('div', {
313
+ ref: "offset",
291
314
  class: _vm.offsetStyles,
292
315
  style: _vm.offsetComputedStyles,
293
316
  attrs: {
@@ -296,7 +319,7 @@ var __vue_render__ = function () {
296
319
  }), _vm._v(" "), _c('OrTooltip', {
297
320
  class: ['relative', 'z-10'],
298
321
  attrs: {
299
- "is-open": !_vm.isDragging && _vm.isHovering || _vm.isDragging && _vm.selectedControl === 'from',
322
+ "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbFrom) || _vm.isDragging && _vm.selectedControl === 'from',
300
323
  "content": String(_vm.proxyModelValue[0]),
301
324
  "placement": _vm.orientation === 'horizontal' ? 'top' : 'right',
302
325
  "offset": 24,
@@ -309,6 +332,7 @@ var __vue_render__ = function () {
309
332
  "disabled": _vm.disabled
310
333
  }
311
334
  })]), _vm._v(" "), _c('div', {
335
+ ref: "track",
312
336
  class: _vm.trackStyles,
313
337
  style: _vm.trackComputedStyles,
314
338
  attrs: {
@@ -317,7 +341,7 @@ var __vue_render__ = function () {
317
341
  }), _vm._v(" "), _c('OrTooltip', {
318
342
  class: ['relative', 'z-10'],
319
343
  attrs: {
320
- "is-open": !_vm.isDragging && _vm.isHovering || _vm.isDragging && _vm.selectedControl === 'to',
344
+ "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbTo) || _vm.isDragging && _vm.selectedControl === 'to',
321
345
  "content": String(_vm.proxyModelValue[1]),
322
346
  "placement": _vm.orientation === 'horizontal' ? 'top' : 'right',
323
347
  "offset": 24,
@@ -329,7 +353,13 @@ var __vue_render__ = function () {
329
353
  attrs: {
330
354
  "disabled": _vm.disabled
331
355
  }
332
- })])], 1), _vm._v(" "), _c('div', {
356
+ })]), _vm._v(" "), _c('div', {
357
+ ref: "filler",
358
+ class: ['grow'].concat(_vm.offsetStyles),
359
+ attrs: {
360
+ "disabled": _vm.disabled
361
+ }
362
+ })], 1), _vm._v(" "), _c('div', {
333
363
  class: _vm.labelStyles
334
364
  }, [_c('div', {
335
365
  class: _vm.labelMarkStyles
@@ -76,7 +76,7 @@ export { default as OrRadio } from './OrRadio/OrRadio.js';
76
76
  export { default as OrRadioGroup } from './OrRadioGroup/OrRadioGroup.js';
77
77
  export { default as OrRadioGroupV3 } from './OrRadioGroupV3/OrRadioGroup.js';
78
78
  export { _ as OrRadioV3 } from './OrRadioV3-0327f619.js';
79
- export { _ as OrRangeSliderV3 } from './OrRangeSliderV3-fb840def.js';
79
+ export { _ as OrRangeSliderV3 } from './OrRangeSliderV3-4fa067df.js';
80
80
  export { _ as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSliderV3-428479c8.js';
81
81
  export { _ as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanelV3-aba57745.js';
82
82
  export { F as Formats, _ as OrRichTextEditorV3 } from './OrRichTextEditorV3-4f884012.js';
@@ -41,7 +41,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './comp
41
41
  export { default as OrRadio } from './components/OrRadio/OrRadio.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 { _ as OrRangeSliderV3 } from './components/OrRangeSliderV3-fb840def.js';
44
+ export { _ as OrRangeSliderV3 } from './components/OrRangeSliderV3-4fa067df.js';
45
45
  export { F as Formats, _ as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-4f884012.js';
46
46
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-e76d3e8d.js';
47
47
  export { _ as OrSelect } from './components/OrSelect-157d7097.js';
@@ -1 +1 @@
1
- export { s as default } from '../OrRangeSliderV3-ff251922.js';
1
+ export { s as default } from '../OrRangeSliderV3-b1e08082.js';
@@ -36,6 +36,9 @@ declare const _default: import("vue-demi").DefineComponent<{
36
36
  }, {
37
37
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
38
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
39
+ offset: import("vue-demi").Ref<HTMLElement | undefined>;
40
+ track: import("vue-demi").Ref<HTMLElement | undefined>;
41
+ filler: import("vue-demi").Ref<HTMLElement | undefined>;
39
42
  thumbFrom: import("vue-demi").Ref<HTMLElement | undefined>;
40
43
  thumbTo: import("vue-demi").Ref<HTMLElement | undefined>;
41
44
  rootStyles: import("vue-demi").ComputedRef<string[]>;
@@ -53,7 +56,12 @@ declare const _default: import("vue-demi").DefineComponent<{
53
56
  labelMarkStyles: import("vue-demi").ComputedRef<string[]>;
54
57
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
55
58
  selectedControl: import("vue-demi").Ref<"from" | "to" | undefined>;
56
- isHovering: import("vue-demi").Ref<boolean>;
59
+ isHoveringOffset: import("vue-demi").Ref<boolean>;
60
+ isHoveringTrack: import("vue-demi").Ref<boolean>;
61
+ isHoveringFiller: import("vue-demi").Ref<boolean>;
62
+ isHoveringRail: import("vue-demi").ComputedRef<boolean>;
63
+ isHoveringThumbFrom: import("vue-demi").Ref<boolean>;
64
+ isHoveringThumbTo: import("vue-demi").Ref<boolean>;
57
65
  isDragging: import("vue-demi").ComputedRef<boolean>;
58
66
  }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
59
67
  modelValue: {
@@ -1,2 +1,2 @@
1
- export { s as OrRangeSliderV3 } from '../OrRangeSliderV3-ff251922.js';
1
+ export { s as OrRangeSliderV3 } from '../OrRangeSliderV3-b1e08082.js';
2
2
  export { S as RangeSliderColor, a as RangeSliderOrientation } from '../OrSliderV3-999ec5f5.js';
@@ -1,2 +1,2 @@
1
1
  import '../OrSliderV3-999ec5f5.js';
2
- export { R as RangeSlider, j as RangeSliderLabel, l as RangeSliderLabelMark, k 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-ff251922.js';
2
+ export { R as RangeSlider, j as RangeSliderLabel, l as RangeSliderLabelMark, k 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-b1e08082.js';
@@ -38,8 +38,12 @@ const RangeSliderRailOrientations = {
38
38
  };
39
39
  const RangeSliderOffset = [];
40
40
  const RangeSliderOffsetOrientations = {
41
- [SliderOrientation.Horizontal]: [],
42
- [SliderOrientation.Vertical]: []
41
+ [SliderOrientation.Horizontal]: [
42
+ // Box
43
+ 'h-full'],
44
+ [SliderOrientation.Vertical]: [
45
+ // Box
46
+ 'w-full']
43
47
  };
44
48
  const RangeSliderTrack = [
45
49
  // Shape
@@ -146,6 +150,9 @@ var script = defineComponent({
146
150
  // Refs
147
151
  const root = ref();
148
152
  const rail = ref();
153
+ const offset = ref();
154
+ const track = ref();
155
+ const filler = ref();
149
156
  const thumbFrom = ref();
150
157
  const thumbTo = ref();
151
158
  // Styles
@@ -210,7 +217,14 @@ var script = defineComponent({
210
217
  }
211
218
  }
212
219
  // Effects
213
- const isHovering = useElementHover(rail);
220
+ const isHoveringOffset = useElementHover(offset);
221
+ const isHoveringTrack = useElementHover(track);
222
+ const isHoveringFiller = useElementHover(filler);
223
+ const isHoveringRail = computed(() => {
224
+ return isHoveringOffset.value || isHoveringTrack.value || isHoveringFiller.value;
225
+ });
226
+ const isHoveringThumbFrom = useElementHover(thumbFrom);
227
+ const isHoveringThumbTo = useElementHover(thumbTo);
214
228
  const {
215
229
  isDragging
216
230
  } = useDraggable(rail, {
@@ -248,6 +262,9 @@ var script = defineComponent({
248
262
  return {
249
263
  root,
250
264
  rail,
265
+ offset,
266
+ track,
267
+ filler,
251
268
  thumbFrom,
252
269
  thumbTo,
253
270
  rootStyles,
@@ -261,7 +278,12 @@ var script = defineComponent({
261
278
  labelMarkStyles,
262
279
  proxyModelValue,
263
280
  selectedControl,
264
- isHovering,
281
+ isHoveringOffset,
282
+ isHoveringTrack,
283
+ isHoveringFiller,
284
+ isHoveringRail,
285
+ isHoveringThumbFrom,
286
+ isHoveringThumbTo,
265
287
  isDragging
266
288
  };
267
289
  }
@@ -273,7 +295,8 @@ const _hoisted_3 = ["disabled"];
273
295
  const _hoisted_4 = ["disabled"];
274
296
  const _hoisted_5 = ["disabled"];
275
297
  const _hoisted_6 = ["disabled"];
276
- const _hoisted_7 = /*#__PURE__*/createElementVNode("div", {
298
+ const _hoisted_7 = ["disabled"];
299
+ const _hoisted_8 = /*#__PURE__*/createElementVNode("div", {
277
300
  class: /*#__PURE__*/normalizeClass(['grow'])
278
301
  }, null, -1 /* HOISTED */);
279
302
 
@@ -288,12 +311,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
288
311
  class: normalizeClass(_ctx.railStyles),
289
312
  disabled: _ctx.disabled
290
313
  }, [createElementVNode("div", {
314
+ ref: "offset",
291
315
  class: normalizeClass(_ctx.offsetStyles),
292
316
  style: normalizeStyle(_ctx.offsetComputedStyles),
293
317
  disabled: _ctx.disabled
294
318
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
295
319
  class: normalizeClass(['relative', 'z-10']),
296
- "is-open": !_ctx.isDragging && _ctx.isHovering || _ctx.isDragging && _ctx.selectedControl === 'from',
320
+ "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbFrom) || _ctx.isDragging && _ctx.selectedControl === 'from',
297
321
  content: String(_ctx.proxyModelValue[0]),
298
322
  placement: _ctx.orientation === 'horizontal' ? 'top' : 'right',
299
323
  offset: 24,
@@ -306,12 +330,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
306
330
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
307
331
  _: 1 /* STABLE */
308
332
  }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
333
+ ref: "track",
309
334
  class: normalizeClass(_ctx.trackStyles),
310
335
  style: normalizeStyle(_ctx.trackComputedStyles),
311
336
  disabled: _ctx.disabled
312
337
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, {
313
338
  class: normalizeClass(['relative', 'z-10']),
314
- "is-open": !_ctx.isDragging && _ctx.isHovering || _ctx.isDragging && _ctx.selectedControl === 'to',
339
+ "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbTo) || _ctx.isDragging && _ctx.selectedControl === 'to',
315
340
  content: String(_ctx.proxyModelValue[1]),
316
341
  placement: _ctx.orientation === 'horizontal' ? 'top' : 'right',
317
342
  offset: 24,
@@ -323,11 +348,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
323
348
  disabled: _ctx.disabled
324
349
  }, null, 10 /* CLASS, PROPS */, _hoisted_6)]),
325
350
  _: 1 /* STABLE */
326
- }, 8 /* PROPS */, ["is-open", "content", "placement"])], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
351
+ }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
352
+ ref: "filler",
353
+ class: normalizeClass(['grow', ..._ctx.offsetStyles]),
354
+ disabled: _ctx.disabled
355
+ }, null, 10 /* CLASS, PROPS */, _hoisted_7)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
327
356
  class: normalizeClass(_ctx.labelStyles)
328
357
  }, [createElementVNode("div", {
329
358
  class: normalizeClass(_ctx.labelMarkStyles)
330
- }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_7, createElementVNode("div", {
359
+ }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_8, createElementVNode("div", {
331
360
  class: normalizeClass(_ctx.labelMarkStyles)
332
361
  }, toDisplayString(_ctx.maxValue), 3 /* TEXT, CLASS */)], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
333
362
  }
@@ -76,7 +76,7 @@ export { default as OrRadio } from './OrRadio/OrRadio.js';
76
76
  export { default as OrRadioGroup } from './OrRadioGroup/OrRadioGroup.js';
77
77
  export { default as OrRadioGroupV3 } from './OrRadioGroupV3/OrRadioGroup.js';
78
78
  export { s as OrRadioV3 } from './OrRadioV3-b63608b2.js';
79
- export { s as OrRangeSliderV3 } from './OrRangeSliderV3-ff251922.js';
79
+ export { s as OrRangeSliderV3 } from './OrRangeSliderV3-b1e08082.js';
80
80
  export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSliderV3-999ec5f5.js';
81
81
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanelV3-b91fdff5.js';
82
82
  export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditorV3-b9198d0d.js';
@@ -40,7 +40,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './comp
40
40
  export { default as OrRadio } from './components/OrRadio/OrRadio.js';
41
41
  export { default as OrRadioGroup } from './components/OrRadioGroup/OrRadioGroup.js';
42
42
  export { default as OrRadioGroupV3 } from './components/OrRadioGroupV3/OrRadioGroup.js';
43
- export { s as OrRangeSliderV3 } from './components/OrRangeSliderV3-ff251922.js';
43
+ export { s as OrRangeSliderV3 } from './components/OrRangeSliderV3-b1e08082.js';
44
44
  export { F as Formats, s as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-b9198d0d.js';
45
45
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-8a604c3a.js';
46
46
  export { s as OrSelect } from './components/OrSelect-5db0c0bf.js';
@@ -43,8 +43,12 @@ const RangeSliderRailOrientations = {
43
43
  };
44
44
  const RangeSliderOffset = [];
45
45
  const RangeSliderOffsetOrientations = {
46
- [SliderOrientation.Horizontal]: [],
47
- [SliderOrientation.Vertical]: []
46
+ [SliderOrientation.Horizontal]: [
47
+ // Box
48
+ 'h-full'],
49
+ [SliderOrientation.Vertical]: [
50
+ // Box
51
+ 'w-full']
48
52
  };
49
53
  const RangeSliderTrack = [
50
54
  // Shape
@@ -151,6 +155,9 @@ var script = defineComponent({
151
155
  // Refs
152
156
  const root = ref();
153
157
  const rail = ref();
158
+ const offset = ref();
159
+ const track = ref();
160
+ const filler = ref();
154
161
  const thumbFrom = ref();
155
162
  const thumbTo = ref();
156
163
  // Styles
@@ -215,7 +222,14 @@ var script = defineComponent({
215
222
  }
216
223
  }
217
224
  // Effects
218
- const isHovering = useElementHover(rail);
225
+ const isHoveringOffset = useElementHover(offset);
226
+ const isHoveringTrack = useElementHover(track);
227
+ const isHoveringFiller = useElementHover(filler);
228
+ const isHoveringRail = computed(() => {
229
+ return isHoveringOffset.value || isHoveringTrack.value || isHoveringFiller.value;
230
+ });
231
+ const isHoveringThumbFrom = useElementHover(thumbFrom);
232
+ const isHoveringThumbTo = useElementHover(thumbTo);
219
233
  const {
220
234
  isDragging
221
235
  } = useDraggable(rail, {
@@ -253,6 +267,9 @@ var script = defineComponent({
253
267
  return {
254
268
  root,
255
269
  rail,
270
+ offset,
271
+ track,
272
+ filler,
256
273
  thumbFrom,
257
274
  thumbTo,
258
275
  rootStyles,
@@ -266,7 +283,12 @@ var script = defineComponent({
266
283
  labelMarkStyles,
267
284
  proxyModelValue,
268
285
  selectedControl,
269
- isHovering,
286
+ isHoveringOffset,
287
+ isHoveringTrack,
288
+ isHoveringFiller,
289
+ isHoveringRail,
290
+ isHoveringThumbFrom,
291
+ isHoveringThumbTo,
270
292
  isDragging
271
293
  };
272
294
  }
@@ -293,6 +315,7 @@ var __vue_render__ = function () {
293
315
  "disabled": _vm.disabled
294
316
  }
295
317
  }, [_c('div', {
318
+ ref: "offset",
296
319
  class: _vm.offsetStyles,
297
320
  style: _vm.offsetComputedStyles,
298
321
  attrs: {
@@ -301,7 +324,7 @@ var __vue_render__ = function () {
301
324
  }), _vm._v(" "), _c('OrTooltip', {
302
325
  class: ['relative', 'z-10'],
303
326
  attrs: {
304
- "is-open": !_vm.isDragging && _vm.isHovering || _vm.isDragging && _vm.selectedControl === 'from',
327
+ "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbFrom) || _vm.isDragging && _vm.selectedControl === 'from',
305
328
  "content": String(_vm.proxyModelValue[0]),
306
329
  "placement": _vm.orientation === 'horizontal' ? 'top' : 'right',
307
330
  "offset": 24,
@@ -314,6 +337,7 @@ var __vue_render__ = function () {
314
337
  "disabled": _vm.disabled
315
338
  }
316
339
  })]), _vm._v(" "), _c('div', {
340
+ ref: "track",
317
341
  class: _vm.trackStyles,
318
342
  style: _vm.trackComputedStyles,
319
343
  attrs: {
@@ -322,7 +346,7 @@ var __vue_render__ = function () {
322
346
  }), _vm._v(" "), _c('OrTooltip', {
323
347
  class: ['relative', 'z-10'],
324
348
  attrs: {
325
- "is-open": !_vm.isDragging && _vm.isHovering || _vm.isDragging && _vm.selectedControl === 'to',
349
+ "is-open": !_vm.isDragging && (_vm.isHoveringRail || _vm.isHoveringThumbTo) || _vm.isDragging && _vm.selectedControl === 'to',
326
350
  "content": String(_vm.proxyModelValue[1]),
327
351
  "placement": _vm.orientation === 'horizontal' ? 'top' : 'right',
328
352
  "offset": 24,
@@ -334,7 +358,13 @@ var __vue_render__ = function () {
334
358
  attrs: {
335
359
  "disabled": _vm.disabled
336
360
  }
337
- })])], 1), _vm._v(" "), _c('div', {
361
+ })]), _vm._v(" "), _c('div', {
362
+ ref: "filler",
363
+ class: ['grow'].concat(_vm.offsetStyles),
364
+ attrs: {
365
+ "disabled": _vm.disabled
366
+ }
367
+ })], 1), _vm._v(" "), _c('div', {
338
368
  class: _vm.labelStyles
339
369
  }, [_c('div', {
340
370
  class: _vm.labelMarkStyles
@@ -92,7 +92,7 @@ export { _ as OrRadio } from '../OrRadio-811ad5a4.js';
92
92
  export { _ as OrRadioGroup } from '../OrRadioGroup-11424644.js';
93
93
  export { _ as OrRadioGroupV3 } from '../OrRadioGroup-c0ad9bf3.js';
94
94
  export { _ as OrRadioV3 } from '../OrRadio-81a1263e.js';
95
- export { _ as OrRangeSliderV3 } from '../OrRangeSlider-1bc7cf55.js';
95
+ export { _ as OrRangeSliderV3 } from '../OrRangeSlider-d34f950b.js';
96
96
  export { _ as OrSliderV3 } from '../OrSlider-2217ee40.js';
97
97
  export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-2e53b6b1.js';
98
98
  export { _ as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from '../OrResizeablePanel-2bb20c95.js';
@@ -3,6 +3,9 @@ import { RangeSliderColor, RangeSliderOrientation } from './props';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
5
  rail: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
+ offset: import("@vue/composition-api").Ref<HTMLElement | undefined>;
7
+ track: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
+ filler: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
9
  thumbFrom: import("@vue/composition-api").Ref<HTMLElement | undefined>;
7
10
  thumbTo: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
11
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -20,7 +23,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
20
23
  labelMarkStyles: import("@vue/composition-api").ComputedRef<string[]>;
21
24
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
22
25
  selectedControl: import("@vue/composition-api").Ref<"from" | "to" | undefined>;
23
- isHovering: import("@vue/composition-api").Ref<boolean>;
26
+ isHoveringOffset: import("@vue/composition-api").Ref<boolean>;
27
+ isHoveringTrack: import("@vue/composition-api").Ref<boolean>;
28
+ isHoveringFiller: import("@vue/composition-api").Ref<boolean>;
29
+ isHoveringRail: import("@vue/composition-api").ComputedRef<boolean>;
30
+ isHoveringThumbFrom: import("@vue/composition-api").Ref<boolean>;
31
+ isHoveringThumbTo: import("@vue/composition-api").Ref<boolean>;
24
32
  isDragging: import("@vue/composition-api").ComputedRef<boolean>;
25
33
  }> & import("@vue/composition-api").Data, {}, {}, {
26
34
  modelValue: {
@@ -102,6 +110,9 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
102
110
  }, import("@vue/composition-api").ShallowUnwrapRef<{
103
111
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
104
112
  rail: import("@vue/composition-api").Ref<HTMLElement | undefined>;
113
+ offset: import("@vue/composition-api").Ref<HTMLElement | undefined>;
114
+ track: import("@vue/composition-api").Ref<HTMLElement | undefined>;
115
+ filler: import("@vue/composition-api").Ref<HTMLElement | undefined>;
105
116
  thumbFrom: import("@vue/composition-api").Ref<HTMLElement | undefined>;
106
117
  thumbTo: import("@vue/composition-api").Ref<HTMLElement | undefined>;
107
118
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -119,7 +130,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
119
130
  labelMarkStyles: import("@vue/composition-api").ComputedRef<string[]>;
120
131
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
121
132
  selectedControl: import("@vue/composition-api").Ref<"from" | "to" | undefined>;
122
- isHovering: import("@vue/composition-api").Ref<boolean>;
133
+ isHoveringOffset: import("@vue/composition-api").Ref<boolean>;
134
+ isHoveringTrack: import("@vue/composition-api").Ref<boolean>;
135
+ isHoveringFiller: import("@vue/composition-api").Ref<boolean>;
136
+ isHoveringRail: import("@vue/composition-api").ComputedRef<boolean>;
137
+ isHoveringThumbFrom: import("@vue/composition-api").Ref<boolean>;
138
+ isHoveringThumbTo: import("@vue/composition-api").Ref<boolean>;
123
139
  isDragging: import("@vue/composition-api").ComputedRef<boolean>;
124
140
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
125
141
  modelValue: [number, number];
@@ -1,4 +1,4 @@
1
- export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-1bc7cf55.js';
1
+ export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-d34f950b.js';
2
2
  export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-2e53b6b1.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -92,7 +92,7 @@ export { _ as OrRadio } from './OrRadio-811ad5a4.js';
92
92
  export { _ as OrRadioGroup } from './OrRadioGroup-11424644.js';
93
93
  export { _ as OrRadioGroupV3 } from './OrRadioGroup-c0ad9bf3.js';
94
94
  export { _ as OrRadioV3 } from './OrRadio-81a1263e.js';
95
- export { _ as OrRangeSliderV3 } from './OrRangeSlider-1bc7cf55.js';
95
+ export { _ as OrRangeSliderV3 } from './OrRangeSlider-d34f950b.js';
96
96
  export { _ as OrSliderV3 } from './OrSlider-2217ee40.js';
97
97
  export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-2e53b6b1.js';
98
98
  export { _ as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanel-2bb20c95.js';
@@ -43,8 +43,12 @@ const RangeSliderRailOrientations = {
43
43
  };
44
44
  const RangeSliderOffset = [];
45
45
  const RangeSliderOffsetOrientations = {
46
- [SliderOrientation.Horizontal]: [],
47
- [SliderOrientation.Vertical]: []
46
+ [SliderOrientation.Horizontal]: [
47
+ // Box
48
+ 'h-full'],
49
+ [SliderOrientation.Vertical]: [
50
+ // Box
51
+ 'w-full']
48
52
  };
49
53
  const RangeSliderTrack = [
50
54
  // Shape
@@ -151,6 +155,9 @@ var script = defineComponent({
151
155
  // Refs
152
156
  const root = ref();
153
157
  const rail = ref();
158
+ const offset = ref();
159
+ const track = ref();
160
+ const filler = ref();
154
161
  const thumbFrom = ref();
155
162
  const thumbTo = ref();
156
163
  // Styles
@@ -215,7 +222,14 @@ var script = defineComponent({
215
222
  }
216
223
  }
217
224
  // Effects
218
- const isHovering = useElementHover(rail);
225
+ const isHoveringOffset = useElementHover(offset);
226
+ const isHoveringTrack = useElementHover(track);
227
+ const isHoveringFiller = useElementHover(filler);
228
+ const isHoveringRail = computed(() => {
229
+ return isHoveringOffset.value || isHoveringTrack.value || isHoveringFiller.value;
230
+ });
231
+ const isHoveringThumbFrom = useElementHover(thumbFrom);
232
+ const isHoveringThumbTo = useElementHover(thumbTo);
219
233
  const {
220
234
  isDragging
221
235
  } = useDraggable(rail, {
@@ -253,6 +267,9 @@ var script = defineComponent({
253
267
  return {
254
268
  root,
255
269
  rail,
270
+ offset,
271
+ track,
272
+ filler,
256
273
  thumbFrom,
257
274
  thumbTo,
258
275
  rootStyles,
@@ -266,7 +283,12 @@ var script = defineComponent({
266
283
  labelMarkStyles,
267
284
  proxyModelValue,
268
285
  selectedControl,
269
- isHovering,
286
+ isHoveringOffset,
287
+ isHoveringTrack,
288
+ isHoveringFiller,
289
+ isHoveringRail,
290
+ isHoveringThumbFrom,
291
+ isHoveringThumbTo,
270
292
  isDragging
271
293
  };
272
294
  }
@@ -278,7 +300,8 @@ const _hoisted_3 = ["disabled"];
278
300
  const _hoisted_4 = ["disabled"];
279
301
  const _hoisted_5 = ["disabled"];
280
302
  const _hoisted_6 = ["disabled"];
281
- const _hoisted_7 = /*#__PURE__*/createElementVNode("div", {
303
+ const _hoisted_7 = ["disabled"];
304
+ const _hoisted_8 = /*#__PURE__*/createElementVNode("div", {
282
305
  class: /*#__PURE__*/normalizeClass(['grow'])
283
306
  }, null, -1 /* HOISTED */);
284
307
 
@@ -293,12 +316,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
293
316
  class: normalizeClass(_ctx.railStyles),
294
317
  disabled: _ctx.disabled
295
318
  }, [createElementVNode("div", {
319
+ ref: "offset",
296
320
  class: normalizeClass(_ctx.offsetStyles),
297
321
  style: normalizeStyle(_ctx.offsetComputedStyles),
298
322
  disabled: _ctx.disabled
299
323
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_3), createVNode(_component_OrTooltip, {
300
324
  class: normalizeClass(['relative', 'z-10']),
301
- "is-open": !_ctx.isDragging && _ctx.isHovering || _ctx.isDragging && _ctx.selectedControl === 'from',
325
+ "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbFrom) || _ctx.isDragging && _ctx.selectedControl === 'from',
302
326
  content: String(_ctx.proxyModelValue[0]),
303
327
  placement: _ctx.orientation === 'horizontal' ? 'top' : 'right',
304
328
  offset: 24,
@@ -311,12 +335,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
311
335
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
312
336
  _: 1 /* STABLE */
313
337
  }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
338
+ ref: "track",
314
339
  class: normalizeClass(_ctx.trackStyles),
315
340
  style: normalizeStyle(_ctx.trackComputedStyles),
316
341
  disabled: _ctx.disabled
317
342
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5), createVNode(_component_OrTooltip, {
318
343
  class: normalizeClass(['relative', 'z-10']),
319
- "is-open": !_ctx.isDragging && _ctx.isHovering || _ctx.isDragging && _ctx.selectedControl === 'to',
344
+ "is-open": !_ctx.isDragging && (_ctx.isHoveringRail || _ctx.isHoveringThumbTo) || _ctx.isDragging && _ctx.selectedControl === 'to',
320
345
  content: String(_ctx.proxyModelValue[1]),
321
346
  placement: _ctx.orientation === 'horizontal' ? 'top' : 'right',
322
347
  offset: 24,
@@ -328,11 +353,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
328
353
  disabled: _ctx.disabled
329
354
  }, null, 10 /* CLASS, PROPS */, _hoisted_6)]),
330
355
  _: 1 /* STABLE */
331
- }, 8 /* PROPS */, ["is-open", "content", "placement"])], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
356
+ }, 8 /* PROPS */, ["is-open", "content", "placement"]), createElementVNode("div", {
357
+ ref: "filler",
358
+ class: normalizeClass(['grow', ..._ctx.offsetStyles]),
359
+ disabled: _ctx.disabled
360
+ }, null, 10 /* CLASS, PROPS */, _hoisted_7)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
332
361
  class: normalizeClass(_ctx.labelStyles)
333
362
  }, [createElementVNode("div", {
334
363
  class: normalizeClass(_ctx.labelMarkStyles)
335
- }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_7, createElementVNode("div", {
364
+ }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_8, createElementVNode("div", {
336
365
  class: normalizeClass(_ctx.labelMarkStyles)
337
366
  }, toDisplayString(_ctx.maxValue), 3 /* TEXT, CLASS */)], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
338
367
  }
@@ -89,7 +89,7 @@ export { s as OrRadio } from '../OrRadio-40bf2c87.js';
89
89
  export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
90
90
  export { s as OrRadioGroupV3 } from '../OrRadioGroup-b4b6d364.js';
91
91
  export { s as OrRadioV3 } from '../OrRadio-50b0ead5.js';
92
- export { s as OrRangeSliderV3 } from '../OrRangeSlider-80d431a9.js';
92
+ export { s as OrRangeSliderV3 } from '../OrRangeSlider-94a100ae.js';
93
93
  export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-2c39e9a2.js';
94
94
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from '../OrResizeablePanel-8f76dfa6.js';
95
95
  export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditor-1cb33557.js';
@@ -36,6 +36,9 @@ declare const _default: import("vue-demi").DefineComponent<{
36
36
  }, {
37
37
  root: import("vue-demi").Ref<HTMLElement | undefined>;
38
38
  rail: import("vue-demi").Ref<HTMLElement | undefined>;
39
+ offset: import("vue-demi").Ref<HTMLElement | undefined>;
40
+ track: import("vue-demi").Ref<HTMLElement | undefined>;
41
+ filler: import("vue-demi").Ref<HTMLElement | undefined>;
39
42
  thumbFrom: import("vue-demi").Ref<HTMLElement | undefined>;
40
43
  thumbTo: import("vue-demi").Ref<HTMLElement | undefined>;
41
44
  rootStyles: import("vue-demi").ComputedRef<string[]>;
@@ -53,7 +56,12 @@ declare const _default: import("vue-demi").DefineComponent<{
53
56
  labelMarkStyles: import("vue-demi").ComputedRef<string[]>;
54
57
  proxyModelValue: import("../../hooks").UseProxyModelValueReturn<[number, number]>;
55
58
  selectedControl: import("vue-demi").Ref<"from" | "to" | undefined>;
56
- isHovering: import("vue-demi").Ref<boolean>;
59
+ isHoveringOffset: import("vue-demi").Ref<boolean>;
60
+ isHoveringTrack: import("vue-demi").Ref<boolean>;
61
+ isHoveringFiller: import("vue-demi").Ref<boolean>;
62
+ isHoveringRail: import("vue-demi").ComputedRef<boolean>;
63
+ isHoveringThumbFrom: import("vue-demi").Ref<boolean>;
64
+ isHoveringThumbTo: import("vue-demi").Ref<boolean>;
57
65
  isDragging: import("vue-demi").ComputedRef<boolean>;
58
66
  }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
59
67
  modelValue: {
@@ -1,4 +1,4 @@
1
- export { s as OrRangeSliderV3 } from '../../OrRangeSlider-80d431a9.js';
1
+ export { s as OrRangeSliderV3 } from '../../OrRangeSlider-94a100ae.js';
2
2
  export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-2c39e9a2.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -89,7 +89,7 @@ export { s as OrRadio } from './OrRadio-40bf2c87.js';
89
89
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
90
90
  export { s as OrRadioGroupV3 } from './OrRadioGroup-b4b6d364.js';
91
91
  export { s as OrRadioV3 } from './OrRadio-50b0ead5.js';
92
- export { s as OrRangeSliderV3 } from './OrRangeSlider-80d431a9.js';
92
+ export { s as OrRangeSliderV3 } from './OrRangeSlider-94a100ae.js';
93
93
  export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-2c39e9a2.js';
94
94
  export { s as OrResizeablePanelV3, R as ResizeablePanelPadding, a as ResizeablePanelPlacement, R as SidebarPadding } from './OrResizeablePanel-8f76dfa6.js';
95
95
  export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-1cb33557.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "8.8.4-beta.3740.0",
3
+ "version": "8.8.4-beta.3743.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -40,7 +40,7 @@
40
40
  "@codemirror/lang-json": "6.0.1",
41
41
  "@codemirror/lang-markdown": "6.1.1",
42
42
  "@floating-ui/dom": "1.4.2",
43
- "@onereach/styles": "^6.4.1-beta.3740.0",
43
+ "@onereach/styles": "^6.4.1-beta.3743.0",
44
44
  "@splidejs/splide": "4.0.6",
45
45
  "@tiptap/core": "2.0.3",
46
46
  "@tiptap/extension-blockquote": "2.0.3",
@@ -10,6 +10,7 @@
10
10
  :disabled="disabled"
11
11
  >
12
12
  <div
13
+ ref="offset"
13
14
  :class="offsetStyles"
14
15
  :style="offsetComputedStyles"
15
16
  :disabled="disabled"
@@ -17,7 +18,7 @@
17
18
 
18
19
  <OrTooltip
19
20
  :class="['relative', 'z-10']"
20
- :is-open="(!isDragging && isHovering) || (isDragging && selectedControl === 'from')"
21
+ :is-open="(!isDragging && (isHoveringRail || isHoveringThumbFrom)) || (isDragging && selectedControl === 'from')"
21
22
  :content="String(proxyModelValue[0])"
22
23
  :placement="orientation === 'horizontal' ? 'top' : 'right'"
23
24
  :offset="24"
@@ -31,6 +32,7 @@
31
32
  </OrTooltip>
32
33
 
33
34
  <div
35
+ ref="track"
34
36
  :class="trackStyles"
35
37
  :style="trackComputedStyles"
36
38
  :disabled="disabled"
@@ -38,7 +40,7 @@
38
40
 
39
41
  <OrTooltip
40
42
  :class="['relative', 'z-10']"
41
- :is-open="(!isDragging && isHovering) || (isDragging && selectedControl === 'to')"
43
+ :is-open="(!isDragging && (isHoveringRail || isHoveringThumbTo)) || (isDragging && selectedControl === 'to')"
42
44
  :content="String(proxyModelValue[1])"
43
45
  :placement="orientation === 'horizontal' ? 'top' : 'right'"
44
46
  :offset="24"
@@ -50,6 +52,12 @@
50
52
  :disabled="disabled"
51
53
  />
52
54
  </OrTooltip>
55
+
56
+ <div
57
+ ref="filler"
58
+ :class="['grow', ...offsetStyles]"
59
+ :disabled="disabled"
60
+ />
53
61
  </div>
54
62
 
55
63
  <div :class="labelStyles">
@@ -138,6 +146,9 @@ export default defineComponent({
138
146
  // Refs
139
147
  const root = ref<HTMLElement>();
140
148
  const rail = ref<HTMLElement>();
149
+ const offset = ref<HTMLElement>();
150
+ const track = ref<HTMLElement>();
151
+ const filler = ref<HTMLElement>();
141
152
  const thumbFrom = ref<HTMLElement>();
142
153
  const thumbTo = ref<HTMLElement>();
143
154
 
@@ -263,7 +274,16 @@ export default defineComponent({
263
274
  }
264
275
 
265
276
  // Effects
266
- const isHovering = useElementHover(rail);
277
+ const isHoveringOffset = useElementHover(offset);
278
+ const isHoveringTrack = useElementHover(track);
279
+ const isHoveringFiller = useElementHover(filler);
280
+
281
+ const isHoveringRail = computed(() => {
282
+ return isHoveringOffset.value || isHoveringTrack.value || isHoveringFiller.value;
283
+ });
284
+
285
+ const isHoveringThumbFrom = useElementHover(thumbFrom);
286
+ const isHoveringThumbTo = useElementHover(thumbTo);
267
287
 
268
288
  const { isDragging } = useDraggable(rail, {
269
289
  onStart: (position, event) => {
@@ -303,6 +323,9 @@ export default defineComponent({
303
323
  return {
304
324
  root,
305
325
  rail,
326
+ offset,
327
+ track,
328
+ filler,
306
329
  thumbFrom,
307
330
  thumbTo,
308
331
  rootStyles,
@@ -318,7 +341,12 @@ export default defineComponent({
318
341
  proxyModelValue,
319
342
  selectedControl,
320
343
 
321
- isHovering,
344
+ isHoveringOffset,
345
+ isHoveringTrack,
346
+ isHoveringFiller,
347
+ isHoveringRail,
348
+ isHoveringThumbFrom,
349
+ isHoveringThumbTo,
322
350
  isDragging,
323
351
  };
324
352
  },
@@ -63,8 +63,15 @@ export const RangeSliderRailOrientations: Record<RangeSliderOrientation, string[
63
63
  export const RangeSliderOffset: string[] = [];
64
64
 
65
65
  export const RangeSliderOffsetOrientations: Record<RangeSliderOrientation, string[]> = {
66
- [RangeSliderOrientation.Horizontal]: [],
67
- [RangeSliderOrientation.Vertical]: [],
66
+ [RangeSliderOrientation.Horizontal]: [
67
+ // Box
68
+ 'h-full',
69
+ ],
70
+
71
+ [RangeSliderOrientation.Vertical]: [
72
+ // Box
73
+ 'w-full',
74
+ ],
68
75
  };
69
76
 
70
77
  export const RangeSliderTrack: string[] = [