@onereach/ui-components 8.24.1-beta.4152.0 → 8.24.2-beta.4156.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 (43) hide show
  1. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +18 -11
  2. package/dist/bundled/v2/components/OrRangeSliderV3/styles.d.ts +1 -0
  3. package/dist/bundled/v2/components/OrRangeSliderV3/styles.js +24 -4
  4. package/dist/bundled/v2/components/OrSliderV3/OrSlider.js +18 -11
  5. package/dist/bundled/v2/components/OrSliderV3/styles.d.ts +1 -0
  6. package/dist/bundled/v2/components/OrSliderV3/styles.js +24 -4
  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/index.js +2 -2
  10. package/dist/bundled/v3/components/OrRangeSliderV3/props.js +1 -1
  11. package/dist/bundled/v3/components/OrRangeSliderV3/styles.d.ts +1 -0
  12. package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +2 -2
  13. package/dist/bundled/v3/components/{OrRangeSliderV3-f3efc232.js → OrRangeSliderV3-37003ca8.js} +42 -18
  14. package/dist/bundled/v3/components/OrSliderV3/OrSlider.js +1 -1
  15. package/dist/bundled/v3/components/OrSliderV3/index.js +1 -1
  16. package/dist/bundled/v3/components/OrSliderV3/props.js +1 -1
  17. package/dist/bundled/v3/components/OrSliderV3/styles.d.ts +1 -0
  18. package/dist/bundled/v3/components/OrSliderV3/styles.js +1 -1
  19. package/dist/bundled/v3/components/{OrSliderV3-8b81d47a.js → OrSliderV3-8912e4bc.js} +41 -17
  20. package/dist/bundled/v3/components/index.js +2 -2
  21. package/dist/bundled/v3/index.js +3 -3
  22. package/dist/esm/v2/{OrRangeSlider-45474510.js → OrRangeSlider-d2340af6.js} +41 -14
  23. package/dist/esm/v2/{OrSlider-c8b79715.js → OrSlider-8b597ea6.js} +17 -10
  24. package/dist/esm/v2/{OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js → OrSlider.vue_rollup-plugin-vue_script-2d2013f9.js} +24 -4
  25. package/dist/esm/v2/components/index.js +3 -3
  26. package/dist/esm/v2/components/or-range-slider-v3/index.js +2 -2
  27. package/dist/esm/v2/components/or-range-slider-v3/styles.d.ts +1 -0
  28. package/dist/esm/v2/components/or-slider-v3/index.js +2 -2
  29. package/dist/esm/v2/components/or-slider-v3/styles.d.ts +1 -0
  30. package/dist/esm/v2/index.js +3 -3
  31. package/dist/esm/v3/{OrRangeSlider-c9947eb2.js → OrRangeSlider-8b2688e5.js} +41 -17
  32. package/dist/esm/v3/{OrSlider-a5903a40.js → OrSlider-bb98a511.js} +40 -16
  33. package/dist/esm/v3/components/index.js +2 -2
  34. package/dist/esm/v3/components/or-range-slider-v3/index.js +2 -2
  35. package/dist/esm/v3/components/or-range-slider-v3/styles.d.ts +1 -0
  36. package/dist/esm/v3/components/or-slider-v3/index.js +1 -1
  37. package/dist/esm/v3/components/or-slider-v3/styles.d.ts +1 -0
  38. package/dist/esm/v3/index.js +2 -2
  39. package/package.json +1 -1
  40. package/src/components/or-range-slider-v3/OrRangeSlider.vue +24 -16
  41. package/src/components/or-range-slider-v3/styles.ts +40 -4
  42. package/src/components/or-slider-v3/OrSlider.vue +24 -16
  43. package/src/components/or-slider-v3/styles.ts +40 -4
@@ -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-a4fc2fe5.js';
8
8
  import './OrPopover-98ace710.js';
9
- import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
9
+ import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-2d2013f9.js';
10
10
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
11
11
 
12
12
  const RangeSlider = [
@@ -153,7 +153,9 @@ const RangeSliderBreakpointMarkColors = {
153
153
  // Theme (disabled)
154
154
  'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
155
155
  };
156
- const RangeSliderLabel = [];
156
+ const RangeSliderLabel = [
157
+ // Position
158
+ 'relative'];
157
159
  const RangeSliderLabelOrientations = {
158
160
  [SliderOrientation.Horizontal]: [
159
161
  // Layout
@@ -177,10 +179,28 @@ const RangeSliderLabelOrientations = {
177
179
  'h-full']
178
180
  };
179
181
  const RangeSliderLabelMark = [
182
+ // Position
183
+ 'absolute',
180
184
  // Typography
181
- 'typography-caption-regular',
185
+ 'typography-caption-regular whitespace-nowrap',
182
186
  // Theme
183
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
187
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
188
+ // Theme (hover)
189
+ 'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
190
+ const RangeSliderLabelMarkOrientations = {
191
+ [SliderOrientation.Horizontal]: [
192
+ // Position
193
+ '-translate-x-1/2', 'translate-y-1/2'],
194
+ [SliderOrientation.HorizontalReversed]: [
195
+ // Position
196
+ 'translate-x-1/2', 'translate-y-1/2'],
197
+ [SliderOrientation.Vertical]: [
198
+ // Position
199
+ 'translate-x-1/2', 'translate-y-1/2'],
200
+ [SliderOrientation.VerticalReversed]: [
201
+ // Position
202
+ 'translate-x-1/2', '-translate-y-1/2']
203
+ };
184
204
 
185
205
  var script = defineComponent({
186
206
  components: {
@@ -275,7 +295,7 @@ var script = defineComponent({
275
295
  const thumbStyles = computed(() => ['or-range-slider-thumb-v3', ...RangeSliderThumb, ...RangeSliderThumbColors[props.color]]);
276
296
  const breakpointMarkStyles = computed(() => [...RangeSliderBreakpointMark, ...RangeSliderBreakpointMarkColors[props.color]]);
277
297
  const labelStyles = computed(() => [...RangeSliderLabel, ...RangeSliderLabelOrientations[props.orientation]]);
278
- const labelMarkStyles = computed(() => [...RangeSliderLabelMark]);
298
+ const labelMarkStyles = computed(() => [...RangeSliderLabelMark, ...RangeSliderLabelMarkOrientations[props.orientation]]);
279
299
  // State
280
300
  const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
281
301
  defaultValue: computed(() => [props.minValue, props.maxValue])
@@ -592,7 +612,7 @@ var __vue_render__ = function () {
592
612
  attrs: {
593
613
  "disabled": _vm.disabled
594
614
  }
595
- }), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
615
+ }), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
596
616
  return _c('div', {
597
617
  key: breakpoint,
598
618
  class: _vm.breakpointMarkStyles,
@@ -602,15 +622,22 @@ var __vue_render__ = function () {
602
622
  "disabled": _vm.disabled
603
623
  }
604
624
  });
605
- })], 2), _vm._v(" "), _c('div', {
625
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
606
626
  class: _vm.labelStyles
607
- }, [_c('div', {
608
- class: _vm.labelMarkStyles
609
- }, [_vm._v("\n " + _vm._s(_vm.minValue) + "\n ")]), _vm._v(" "), _c('div', {
610
- class: ['grow']
611
- }), _vm._v(" "), _c('div', {
612
- class: _vm.labelMarkStyles
613
- }, [_vm._v("\n " + _vm._s(_vm.maxValue) + "\n ")])])]);
627
+ }, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
628
+ return _c('div', {
629
+ key: breakpoint,
630
+ class: _vm.labelMarkStyles,
631
+ style: _vm.getBreakpointMarkComputedStyles(breakpoint),
632
+ attrs: {
633
+ "disabled": _vm.disabled
634
+ }
635
+ }, [_vm._t(breakpoint + "-label", function () {
636
+ return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
637
+ }, {
638
+ "value": breakpoint
639
+ })], 2);
640
+ }), 0)]);
614
641
  };
615
642
  var __vue_staticRenderFns__ = [];
616
643
 
@@ -1,4 +1,4 @@
1
- import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
1
+ import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-2d2013f9.js';
2
2
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
3
3
 
4
4
  /* script */
@@ -52,7 +52,7 @@ var __vue_render__ = function () {
52
52
  attrs: {
53
53
  "disabled": _vm.disabled
54
54
  }
55
- })]), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
55
+ })]), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
56
56
  return _c('div', {
57
57
  key: breakpoint,
58
58
  class: _vm.breakpointMarkStyles,
@@ -62,15 +62,22 @@ var __vue_render__ = function () {
62
62
  "disabled": _vm.disabled
63
63
  }
64
64
  });
65
- })], 2), _vm._v(" "), _c('div', {
65
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
66
66
  class: _vm.labelStyles
67
- }, [_c('div', {
68
- class: _vm.labelMarkStyles
69
- }, [_vm._v("\n " + _vm._s(_vm.minValue) + "\n ")]), _vm._v(" "), _c('div', {
70
- class: ['grow']
71
- }), _vm._v(" "), _c('div', {
72
- class: _vm.labelMarkStyles
73
- }, [_vm._v("\n " + _vm._s(_vm.maxValue) + "\n ")])])]);
67
+ }, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
68
+ return _c('div', {
69
+ key: breakpoint,
70
+ class: _vm.labelMarkStyles,
71
+ style: _vm.getBreakpointMarkComputedStyles(breakpoint),
72
+ attrs: {
73
+ "disabled": _vm.disabled
74
+ }
75
+ }, [_vm._t(breakpoint + "-label", function () {
76
+ return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
77
+ }, {
78
+ "value": breakpoint
79
+ })], 2);
80
+ }), 0)]);
74
81
  };
75
82
  var __vue_staticRenderFns__ = [];
76
83
 
@@ -149,7 +149,9 @@ const SliderBreakpointMarkColors = {
149
149
  // Theme (disabled)
150
150
  'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
151
151
  };
152
- const SliderLabel = [];
152
+ const SliderLabel = [
153
+ // Position
154
+ 'relative'];
153
155
  const SliderLabelOrientations = {
154
156
  [SliderOrientation.Horizontal]: [
155
157
  // Layout
@@ -173,10 +175,28 @@ const SliderLabelOrientations = {
173
175
  'h-full']
174
176
  };
175
177
  const SliderLabelMark = [
178
+ // Position
179
+ 'absolute',
176
180
  // Typography
177
- 'typography-caption-regular',
181
+ 'typography-caption-regular whitespace-nowrap',
178
182
  // Theme
179
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
183
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
184
+ // Theme (hover)
185
+ 'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
186
+ const SliderLabelMarkOrientations = {
187
+ [SliderOrientation.Horizontal]: [
188
+ // Position
189
+ '-translate-x-1/2', 'translate-y-1/2'],
190
+ [SliderOrientation.HorizontalReversed]: [
191
+ // Position
192
+ 'translate-x-1/2', 'translate-y-1/2'],
193
+ [SliderOrientation.Vertical]: [
194
+ // Position
195
+ 'translate-x-1/2', 'translate-y-1/2'],
196
+ [SliderOrientation.VerticalReversed]: [
197
+ // Position
198
+ 'translate-x-1/2', '-translate-y-1/2']
199
+ };
180
200
 
181
201
  var script = defineComponent({
182
202
  components: {
@@ -252,7 +272,7 @@ var script = defineComponent({
252
272
  const thumbStyles = computed(() => ['or-slider-thumb-v3', ...SliderThumb, ...SliderThumbColors[props.color]]);
253
273
  const breakpointMarkStyles = computed(() => [...SliderBreakpointMark, ...SliderBreakpointMarkColors[props.color]]);
254
274
  const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
255
- const labelMarkStyles = computed(() => [...SliderLabelMark]);
275
+ const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
256
276
  // State
257
277
  const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
258
278
  defaultValue: toRef(props, 'minValue')
@@ -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-45474510.js';
99
- export { _ as OrSliderV3 } from '../OrSlider-c8b79715.js';
100
- export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
98
+ export { _ as OrRangeSliderV3 } from '../OrRangeSlider-d2340af6.js';
99
+ export { _ as OrSliderV3 } from '../OrSlider-8b597ea6.js';
100
+ export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-2d2013f9.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-c3ee9f53.js';
103
103
  export { F as Formats, _ as OrRichTextEditorV3 } from '../OrRichTextEditor-8886dae7.js';
@@ -1,5 +1,5 @@
1
- export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-45474510.js';
2
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
1
+ export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-d2340af6.js';
2
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-2d2013f9.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import '../../dom-aecadd9a.js';
@@ -14,3 +14,4 @@ export declare const RangeSliderBreakpointMarkColors: Record<RangeSliderColor, s
14
14
  export declare const RangeSliderLabel: string[];
15
15
  export declare const RangeSliderLabelOrientations: Record<RangeSliderOrientation, string[]>;
16
16
  export declare const RangeSliderLabelMark: string[];
17
+ export declare const RangeSliderLabelMarkOrientations: Record<RangeSliderOrientation, string[]>;
@@ -1,5 +1,5 @@
1
- export { _ as OrSliderV3 } from '../../OrSlider-c8b79715.js';
2
- export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
1
+ export { _ as OrSliderV3 } from '../../OrSlider-8b597ea6.js';
2
+ export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-2d2013f9.js';
3
3
  import '../../normalize-component-6e8e3d80.js';
4
4
  import '@vueuse/core';
5
5
  import 'vue-demi';
@@ -12,3 +12,4 @@ export declare const SliderBreakpointMarkColors: Record<SliderColor, string[]>;
12
12
  export declare const SliderLabel: string[];
13
13
  export declare const SliderLabelOrientations: Record<SliderOrientation, string[]>;
14
14
  export declare const SliderLabelMark: string[];
15
+ export declare const SliderLabelMarkOrientations: Record<SliderOrientation, string[]>;
@@ -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-45474510.js';
99
- export { _ as OrSliderV3 } from './OrSlider-c8b79715.js';
100
- export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-43f26d1a.js';
98
+ export { _ as OrRangeSliderV3 } from './OrRangeSlider-d2340af6.js';
99
+ export { _ as OrSliderV3 } from './OrSlider-8b597ea6.js';
100
+ export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-2d2013f9.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-c3ee9f53.js';
103
103
  export { F as Formats, _ as OrRichTextEditorV3 } from './OrRichTextEditor-8886dae7.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-e982adca.js';
8
8
  import './OrPopover-d8067ed8.js';
9
- import { a as SliderOrientation, S as SliderColor } from './OrSlider-a5903a40.js';
10
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList } from 'vue';
9
+ import { a as SliderOrientation, S as SliderColor } from './OrSlider-bb98a511.js';
10
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from 'vue';
11
11
 
12
12
  const RangeSlider = [
13
13
  // Interactivity
@@ -153,7 +153,9 @@ const RangeSliderBreakpointMarkColors = {
153
153
  // Theme (disabled)
154
154
  'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
155
155
  };
156
- const RangeSliderLabel = [];
156
+ const RangeSliderLabel = [
157
+ // Position
158
+ 'relative'];
157
159
  const RangeSliderLabelOrientations = {
158
160
  [SliderOrientation.Horizontal]: [
159
161
  // Layout
@@ -177,10 +179,28 @@ const RangeSliderLabelOrientations = {
177
179
  'h-full']
178
180
  };
179
181
  const RangeSliderLabelMark = [
182
+ // Position
183
+ 'absolute',
180
184
  // Typography
181
- 'typography-caption-regular',
185
+ 'typography-caption-regular whitespace-nowrap',
182
186
  // Theme
183
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
187
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
188
+ // Theme (hover)
189
+ 'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
190
+ const RangeSliderLabelMarkOrientations = {
191
+ [SliderOrientation.Horizontal]: [
192
+ // Position
193
+ '-translate-x-1/2', 'translate-y-1/2'],
194
+ [SliderOrientation.HorizontalReversed]: [
195
+ // Position
196
+ 'translate-x-1/2', 'translate-y-1/2'],
197
+ [SliderOrientation.Vertical]: [
198
+ // Position
199
+ 'translate-x-1/2', 'translate-y-1/2'],
200
+ [SliderOrientation.VerticalReversed]: [
201
+ // Position
202
+ 'translate-x-1/2', '-translate-y-1/2']
203
+ };
184
204
 
185
205
  var script = defineComponent({
186
206
  components: {
@@ -275,7 +295,7 @@ var script = defineComponent({
275
295
  const thumbStyles = computed(() => ['or-range-slider-thumb-v3', ...RangeSliderThumb, ...RangeSliderThumbColors[props.color]]);
276
296
  const breakpointMarkStyles = computed(() => [...RangeSliderBreakpointMark, ...RangeSliderBreakpointMarkColors[props.color]]);
277
297
  const labelStyles = computed(() => [...RangeSliderLabel, ...RangeSliderLabelOrientations[props.orientation]]);
278
- const labelMarkStyles = computed(() => [...RangeSliderLabelMark]);
298
+ const labelMarkStyles = computed(() => [...RangeSliderLabelMark, ...RangeSliderLabelMarkOrientations[props.orientation]]);
279
299
  // State
280
300
  const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
281
301
  defaultValue: computed(() => [props.minValue, props.maxValue])
@@ -510,10 +530,7 @@ const _hoisted_5 = ["disabled"];
510
530
  const _hoisted_6 = ["disabled"];
511
531
  const _hoisted_7 = ["disabled"];
512
532
  const _hoisted_8 = ["activated", "disabled"];
513
- const _hoisted_9 = /*#__PURE__*/createElementVNode("div", {
514
- class: /*#__PURE__*/normalizeClass(['grow'])
515
- }, null, -1 /* HOISTED */);
516
-
533
+ const _hoisted_9 = ["disabled"];
517
534
  function render(_ctx, _cache, $props, $setup, $data, $options) {
518
535
  const _component_OrTooltip = resolveComponent("OrTooltip");
519
536
  return openBlock(), createElementBlock("div", {
@@ -572,7 +589,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
572
589
  ref: "filler",
573
590
  class: normalizeClass(['grow', ..._ctx.offsetStyles]),
574
591
  disabled: _ctx.disabled
575
- }, null, 10 /* CLASS, PROPS */, _hoisted_7), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
592
+ }, null, 10 /* CLASS, PROPS */, _hoisted_7), _ctx.breakpoints.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
593
+ key: 0
594
+ }, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
576
595
  return openBlock(), createElementBlock("div", {
577
596
  key: breakpoint,
578
597
  class: normalizeClass(_ctx.breakpointMarkStyles),
@@ -580,13 +599,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
580
599
  activated: breakpoint >= _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1],
581
600
  disabled: _ctx.disabled
582
601
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_8);
583
- }), 128 /* KEYED_FRAGMENT */))], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
602
+ }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
584
603
  class: normalizeClass(_ctx.labelStyles)
585
- }, [createElementVNode("div", {
586
- class: normalizeClass(_ctx.labelMarkStyles)
587
- }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_9, createElementVNode("div", {
588
- class: normalizeClass(_ctx.labelMarkStyles)
589
- }, toDisplayString(_ctx.maxValue), 3 /* TEXT, CLASS */)], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
604
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
605
+ return openBlock(), createElementBlock("div", {
606
+ key: breakpoint,
607
+ class: normalizeClass(_ctx.labelMarkStyles),
608
+ style: normalizeStyle(_ctx.getBreakpointMarkComputedStyles(breakpoint)),
609
+ disabled: _ctx.disabled
610
+ }, [renderSlot(_ctx.$slots, `${breakpoint}-label`, {
611
+ value: breakpoint
612
+ }, () => [createTextVNode(toDisplayString(breakpoint), 1 /* TEXT */)])], 14 /* CLASS, STYLE, PROPS */, _hoisted_9);
613
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
590
614
  }
591
615
 
592
616
  script.render = render;
@@ -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-e982adca.js';
8
8
  import './OrPopover-d8067ed8.js';
9
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList } from 'vue';
9
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode } from 'vue';
10
10
 
11
11
  var SliderColor;
12
12
  (function (SliderColor) {
@@ -150,7 +150,9 @@ const SliderBreakpointMarkColors = {
150
150
  // Theme (disabled)
151
151
  'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
152
152
  };
153
- const SliderLabel = [];
153
+ const SliderLabel = [
154
+ // Position
155
+ 'relative'];
154
156
  const SliderLabelOrientations = {
155
157
  [SliderOrientation.Horizontal]: [
156
158
  // Layout
@@ -174,10 +176,28 @@ const SliderLabelOrientations = {
174
176
  'h-full']
175
177
  };
176
178
  const SliderLabelMark = [
179
+ // Position
180
+ 'absolute',
177
181
  // Typography
178
- 'typography-caption-regular',
182
+ 'typography-caption-regular whitespace-nowrap',
179
183
  // Theme
180
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
184
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
185
+ // Theme (hover)
186
+ 'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
187
+ const SliderLabelMarkOrientations = {
188
+ [SliderOrientation.Horizontal]: [
189
+ // Position
190
+ '-translate-x-1/2', 'translate-y-1/2'],
191
+ [SliderOrientation.HorizontalReversed]: [
192
+ // Position
193
+ 'translate-x-1/2', 'translate-y-1/2'],
194
+ [SliderOrientation.Vertical]: [
195
+ // Position
196
+ 'translate-x-1/2', 'translate-y-1/2'],
197
+ [SliderOrientation.VerticalReversed]: [
198
+ // Position
199
+ 'translate-x-1/2', '-translate-y-1/2']
200
+ };
181
201
 
182
202
  var script = defineComponent({
183
203
  components: {
@@ -253,7 +273,7 @@ var script = defineComponent({
253
273
  const thumbStyles = computed(() => ['or-slider-thumb-v3', ...SliderThumb, ...SliderThumbColors[props.color]]);
254
274
  const breakpointMarkStyles = computed(() => [...SliderBreakpointMark, ...SliderBreakpointMarkColors[props.color]]);
255
275
  const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
256
- const labelMarkStyles = computed(() => [...SliderLabelMark]);
276
+ const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
257
277
  // State
258
278
  const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
259
279
  defaultValue: toRef(props, 'minValue')
@@ -383,10 +403,7 @@ const _hoisted_2 = ["disabled"];
383
403
  const _hoisted_3 = ["disabled"];
384
404
  const _hoisted_4 = ["disabled"];
385
405
  const _hoisted_5 = ["activated", "disabled"];
386
- const _hoisted_6 = /*#__PURE__*/createElementVNode("div", {
387
- class: /*#__PURE__*/normalizeClass(['grow'])
388
- }, null, -1 /* HOISTED */);
389
-
406
+ const _hoisted_6 = ["disabled"];
390
407
  function render(_ctx, _cache, $props, $setup, $data, $options) {
391
408
  const _component_OrTooltip = resolveComponent("OrTooltip");
392
409
  return openBlock(), createElementBlock("div", {
@@ -418,7 +435,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
418
435
  disabled: _ctx.disabled
419
436
  }, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
420
437
  _: 3 /* FORWARDED */
421
- }, 16 /* FULL_PROPS */, ["is-open", "placement"]), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.breakpoints, breakpoint => {
438
+ }, 16 /* FULL_PROPS */, ["is-open", "placement"]), _ctx.breakpoints.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
439
+ key: 0
440
+ }, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
422
441
  return openBlock(), createElementBlock("div", {
423
442
  key: breakpoint,
424
443
  class: normalizeClass(_ctx.breakpointMarkStyles),
@@ -426,13 +445,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
426
445
  activated: breakpoint <= _ctx.proxyModelValue,
427
446
  disabled: _ctx.disabled
428
447
  }, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5);
429
- }), 128 /* KEYED_FRAGMENT */))], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
448
+ }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
430
449
  class: normalizeClass(_ctx.labelStyles)
431
- }, [createElementVNode("div", {
432
- class: normalizeClass(_ctx.labelMarkStyles)
433
- }, toDisplayString(_ctx.minValue), 3 /* TEXT, CLASS */), _hoisted_6, createElementVNode("div", {
434
- class: normalizeClass(_ctx.labelMarkStyles)
435
- }, toDisplayString(_ctx.maxValue), 3 /* TEXT, CLASS */)], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
450
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
451
+ return openBlock(), createElementBlock("div", {
452
+ key: breakpoint,
453
+ class: normalizeClass(_ctx.labelMarkStyles),
454
+ style: normalizeStyle(_ctx.getBreakpointMarkComputedStyles(breakpoint)),
455
+ disabled: _ctx.disabled
456
+ }, [renderSlot(_ctx.$slots, `${breakpoint}-label`, {
457
+ value: breakpoint
458
+ }, () => [createTextVNode(toDisplayString(breakpoint), 1 /* TEXT */)])], 14 /* CLASS, STYLE, PROPS */, _hoisted_6);
459
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
436
460
  }
437
461
 
438
462
  script.render = render;
@@ -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-c9947eb2.js';
96
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-a5903a40.js';
95
+ export { s as OrRangeSliderV3 } from '../OrRangeSlider-8b2688e5.js';
96
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-bb98a511.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-35e64b58.js';
99
99
  export { F as Formats, s as OrRichTextEditorV3 } from '../OrRichTextEditor-b46eab67.js';
@@ -1,5 +1,5 @@
1
- export { s as OrRangeSliderV3 } from '../../OrRangeSlider-c9947eb2.js';
2
- export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-a5903a40.js';
1
+ export { s as OrRangeSliderV3 } from '../../OrRangeSlider-8b2688e5.js';
2
+ export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-bb98a511.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
5
5
  import '../../dom-aecadd9a.js';
@@ -14,3 +14,4 @@ export declare const RangeSliderBreakpointMarkColors: Record<RangeSliderColor, s
14
14
  export declare const RangeSliderLabel: string[];
15
15
  export declare const RangeSliderLabelOrientations: Record<RangeSliderOrientation, string[]>;
16
16
  export declare const RangeSliderLabelMark: string[];
17
+ export declare const RangeSliderLabelMarkOrientations: Record<RangeSliderOrientation, string[]>;
@@ -1,4 +1,4 @@
1
- export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../../OrSlider-a5903a40.js';
1
+ export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../../OrSlider-bb98a511.js';
2
2
  import '@vueuse/core';
3
3
  import 'vue-demi';
4
4
  import '../../dom-aecadd9a.js';
@@ -12,3 +12,4 @@ export declare const SliderBreakpointMarkColors: Record<SliderColor, string[]>;
12
12
  export declare const SliderLabel: string[];
13
13
  export declare const SliderLabelOrientations: Record<SliderOrientation, string[]>;
14
14
  export declare const SliderLabelMark: string[];
15
+ export declare const SliderLabelMarkOrientations: Record<SliderOrientation, string[]>;
@@ -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-c9947eb2.js';
96
- export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-a5903a40.js';
95
+ export { s as OrRangeSliderV3 } from './OrRangeSlider-8b2688e5.js';
96
+ export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-bb98a511.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-35e64b58.js';
99
99
  export { F as Formats, s as OrRichTextEditorV3 } from './OrRichTextEditor-b46eab67.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "8.24.1-beta.4152.0",
3
+ "version": "8.24.2-beta.4156.0",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v2/3",
6
6
  "sideEffects": false,
@@ -77,25 +77,32 @@
77
77
  :disabled="disabled"
78
78
  />
79
79
 
80
+ <template v-if="breakpoints.length > 0">
81
+ <div
82
+ v-for="breakpoint of [minValue, ...breakpoints, maxValue]"
83
+ :key="breakpoint"
84
+ :class="breakpointMarkStyles"
85
+ :style="getBreakpointMarkComputedStyles(breakpoint)"
86
+ :activated="breakpoint >= proxyModelValue[orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= proxyModelValue[orientation.endsWith('-reversed') ? 0 : 1]"
87
+ :disabled="disabled"
88
+ />
89
+ </template>
90
+ </div>
91
+
92
+ <div :class="labelStyles">
80
93
  <div
81
- v-for="breakpoint of breakpoints"
94
+ v-for="breakpoint of [minValue, ...breakpoints, maxValue]"
82
95
  :key="breakpoint"
83
- :class="breakpointMarkStyles"
96
+ :class="labelMarkStyles"
84
97
  :style="getBreakpointMarkComputedStyles(breakpoint)"
85
- :activated="breakpoint >= proxyModelValue[orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= proxyModelValue[orientation.endsWith('-reversed') ? 0 : 1]"
86
98
  :disabled="disabled"
87
- />
88
- </div>
89
-
90
- <div :class="labelStyles">
91
- <div :class="labelMarkStyles">
92
- {{ minValue }}
93
- </div>
94
-
95
- <div :class="['grow']" />
96
-
97
- <div :class="labelMarkStyles">
98
- {{ maxValue }}
99
+ >
100
+ <slot
101
+ :name="`${breakpoint}-label`"
102
+ :value="breakpoint"
103
+ >
104
+ {{ breakpoint }}
105
+ </slot>
99
106
  </div>
100
107
  </div>
101
108
  </div>
@@ -107,7 +114,7 @@ import { PropType, computed, defineComponent, ref, toRef, watch } from 'vue-demi
107
114
  import { useProxyModelValue } from '../../hooks';
108
115
  import { OrTooltipV3 as OrTooltip } from '../or-tooltip-v3';
109
116
  import { RangeSliderColor, RangeSliderOrientation } from './props';
110
- import { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors } from './styles';
117
+ import { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelMarkOrientations, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors } from './styles';
111
118
 
112
119
  export default defineComponent({
113
120
  components: {
@@ -249,6 +256,7 @@ export default defineComponent({
249
256
 
250
257
  const labelMarkStyles = computed(() => [
251
258
  ...RangeSliderLabelMark,
259
+ ...RangeSliderLabelMarkOrientations[props.orientation],
252
260
  ]);
253
261
 
254
262
  // State