@onereach/ui-components 8.22.2 → 8.22.3-beta.4120.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.
- package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +18 -11
- package/dist/bundled/v2/components/OrRangeSliderV3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/OrRangeSliderV3/styles.js +24 -4
- package/dist/bundled/v2/components/OrSliderV3/OrSlider.js +18 -11
- package/dist/bundled/v2/components/OrSliderV3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/OrSliderV3/styles.js +24 -4
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.js +1 -1
- package/dist/bundled/v3/components/OrRangeSliderV3/index.js +2 -2
- package/dist/bundled/v3/components/OrRangeSliderV3/props.js +1 -1
- package/dist/bundled/v3/components/OrRangeSliderV3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +2 -2
- package/dist/bundled/v3/components/{OrRangeSliderV3-5b22cbac.js → OrRangeSliderV3-71b95de0.js} +42 -18
- package/dist/bundled/v3/components/OrSliderV3/OrSlider.js +1 -1
- package/dist/bundled/v3/components/OrSliderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSliderV3/props.js +1 -1
- package/dist/bundled/v3/components/OrSliderV3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/OrSliderV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrSliderV3-7bddcc19.js → OrSliderV3-53a7d617.js} +41 -17
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +3 -3
- package/dist/esm/v2/{OrRangeSlider-2770c783.js → OrRangeSlider-3615db44.js} +41 -14
- package/dist/esm/v2/{OrSlider-2e29c468.js → OrSlider-0c597a11.js} +17 -10
- package/dist/esm/v2/{OrSlider.vue_rollup-plugin-vue_script-5b284c82.js → OrSlider.vue_rollup-plugin-vue_script-c96b0631.js} +24 -4
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-range-slider-v3/index.js +2 -2
- package/dist/esm/v2/components/or-range-slider-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-slider-v3/index.js +2 -2
- package/dist/esm/v2/components/or-slider-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v3/{OrRangeSlider-0869e30e.js → OrRangeSlider-194f2057.js} +41 -17
- package/dist/esm/v3/{OrSlider-8eed054b.js → OrSlider-ce227f39.js} +40 -16
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-range-slider-v3/index.js +2 -2
- package/dist/esm/v3/components/or-range-slider-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-slider-v3/index.js +1 -1
- package/dist/esm/v3/components/or-slider-v3/styles.d.ts +1 -0
- package/dist/esm/v3/index.js +2 -2
- package/package.json +2 -3
- package/src/components/or-range-slider-v3/OrRangeSlider.vue +24 -16
- package/src/components/or-range-slider-v3/styles.ts +40 -4
- package/src/components/or-slider-v3/OrSlider.vue +24 -16
- 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-3bf8772e.js';
|
|
8
8
|
import './OrPopover-9471c7ea.js';
|
|
9
|
-
import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-
|
|
9
|
+
import { a as SliderOrientation, S as SliderColor } from './OrSlider.vue_rollup-plugin-vue_script-c96b0631.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-
|
|
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: {
|
|
@@ -271,7 +291,7 @@ var script = defineComponent({
|
|
|
271
291
|
const thumbStyles = computed(() => ['or-range-slider-thumb-v3', ...RangeSliderThumb, ...RangeSliderThumbColors[props.color]]);
|
|
272
292
|
const breakpointMarkStyles = computed(() => [...RangeSliderBreakpointMark, ...RangeSliderBreakpointMarkColors[props.color]]);
|
|
273
293
|
const labelStyles = computed(() => [...RangeSliderLabel, ...RangeSliderLabelOrientations[props.orientation]]);
|
|
274
|
-
const labelMarkStyles = computed(() => [...RangeSliderLabelMark]);
|
|
294
|
+
const labelMarkStyles = computed(() => [...RangeSliderLabelMark, ...RangeSliderLabelMarkOrientations[props.orientation]]);
|
|
275
295
|
// State
|
|
276
296
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
277
297
|
defaultValue: computed(() => [props.minValue, props.maxValue])
|
|
@@ -568,7 +588,7 @@ var __vue_render__ = function () {
|
|
|
568
588
|
attrs: {
|
|
569
589
|
"disabled": _vm.disabled
|
|
570
590
|
}
|
|
571
|
-
}), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
|
|
591
|
+
}), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
572
592
|
return _c('div', {
|
|
573
593
|
key: breakpoint,
|
|
574
594
|
class: _vm.breakpointMarkStyles,
|
|
@@ -578,15 +598,22 @@ var __vue_render__ = function () {
|
|
|
578
598
|
"disabled": _vm.disabled
|
|
579
599
|
}
|
|
580
600
|
});
|
|
581
|
-
})], 2), _vm._v(" "), _c('div', {
|
|
601
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
582
602
|
class: _vm.labelStyles
|
|
583
|
-
}, [
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
603
|
+
}, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
604
|
+
return _c('div', {
|
|
605
|
+
key: breakpoint,
|
|
606
|
+
class: _vm.labelMarkStyles,
|
|
607
|
+
style: _vm.getBreakpointMarkComputedStyles(breakpoint),
|
|
608
|
+
attrs: {
|
|
609
|
+
"disabled": _vm.disabled
|
|
610
|
+
}
|
|
611
|
+
}, [_vm._t("label-" + breakpoint, function () {
|
|
612
|
+
return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
|
|
613
|
+
}, {
|
|
614
|
+
"value": breakpoint
|
|
615
|
+
})], 2);
|
|
616
|
+
}), 0)]);
|
|
590
617
|
};
|
|
591
618
|
var __vue_staticRenderFns__ = [];
|
|
592
619
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-
|
|
1
|
+
import { s as script } from './OrSlider.vue_rollup-plugin-vue_script-c96b0631.js';
|
|
2
2
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
3
3
|
|
|
4
4
|
/* script */
|
|
@@ -42,7 +42,7 @@ var __vue_render__ = function () {
|
|
|
42
42
|
attrs: {
|
|
43
43
|
"disabled": _vm.disabled
|
|
44
44
|
}
|
|
45
|
-
})]), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
|
|
45
|
+
})]), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
46
46
|
return _c('div', {
|
|
47
47
|
key: breakpoint,
|
|
48
48
|
class: _vm.breakpointMarkStyles,
|
|
@@ -52,15 +52,22 @@ var __vue_render__ = function () {
|
|
|
52
52
|
"disabled": _vm.disabled
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
})], 2), _vm._v(" "), _c('div', {
|
|
55
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
56
56
|
class: _vm.labelStyles
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
}, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
58
|
+
return _c('div', {
|
|
59
|
+
key: breakpoint,
|
|
60
|
+
class: _vm.labelMarkStyles,
|
|
61
|
+
style: _vm.getBreakpointMarkComputedStyles(breakpoint),
|
|
62
|
+
attrs: {
|
|
63
|
+
"disabled": _vm.disabled
|
|
64
|
+
}
|
|
65
|
+
}, [_vm._t("label-" + breakpoint, function () {
|
|
66
|
+
return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
|
|
67
|
+
}, {
|
|
68
|
+
"value": breakpoint
|
|
69
|
+
})], 2);
|
|
70
|
+
}), 0)]);
|
|
64
71
|
};
|
|
65
72
|
var __vue_staticRenderFns__ = [];
|
|
66
73
|
|
|
@@ -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-
|
|
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: {
|
|
@@ -248,7 +268,7 @@ var script = defineComponent({
|
|
|
248
268
|
const thumbStyles = computed(() => ['or-slider-thumb-v3', ...SliderThumb, ...SliderThumbColors[props.color]]);
|
|
249
269
|
const breakpointMarkStyles = computed(() => [...SliderBreakpointMark, ...SliderBreakpointMarkColors[props.color]]);
|
|
250
270
|
const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
|
|
251
|
-
const labelMarkStyles = computed(() => [...SliderLabelMark]);
|
|
271
|
+
const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
|
|
252
272
|
// State
|
|
253
273
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
254
274
|
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-
|
|
99
|
-
export { _ as OrSliderV3 } from '../OrSlider-
|
|
100
|
-
export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-
|
|
98
|
+
export { _ as OrRangeSliderV3 } from '../OrRangeSlider-3615db44.js';
|
|
99
|
+
export { _ as OrSliderV3 } from '../OrSlider-0c597a11.js';
|
|
100
|
+
export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider.vue_rollup-plugin-vue_script-c96b0631.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-
|
|
2
|
-
export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-
|
|
1
|
+
export { _ as OrRangeSliderV3 } from '../../OrRangeSlider-3615db44.js';
|
|
2
|
+
export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-c96b0631.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-
|
|
2
|
-
export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-
|
|
1
|
+
export { _ as OrSliderV3 } from '../../OrSlider-0c597a11.js';
|
|
2
|
+
export { S as SliderColor, a as SliderOrientation } from '../../OrSlider.vue_rollup-plugin-vue_script-c96b0631.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[]>;
|
|
@@ -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("
|
|
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("
|
|
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<{
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -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-
|
|
99
|
-
export { _ as OrSliderV3 } from './OrSlider-
|
|
100
|
-
export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-
|
|
98
|
+
export { _ as OrRangeSliderV3 } from './OrRangeSlider-3615db44.js';
|
|
99
|
+
export { _ as OrSliderV3 } from './OrSlider-0c597a11.js';
|
|
100
|
+
export { S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider.vue_rollup-plugin-vue_script-c96b0631.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-
|
|
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-ce227f39.js';
|
|
10
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, withCtx, Fragment, renderList, createCommentVNode, renderSlot, createTextVNode, toDisplayString } 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-
|
|
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: {
|
|
@@ -271,7 +291,7 @@ var script = defineComponent({
|
|
|
271
291
|
const thumbStyles = computed(() => ['or-range-slider-thumb-v3', ...RangeSliderThumb, ...RangeSliderThumbColors[props.color]]);
|
|
272
292
|
const breakpointMarkStyles = computed(() => [...RangeSliderBreakpointMark, ...RangeSliderBreakpointMarkColors[props.color]]);
|
|
273
293
|
const labelStyles = computed(() => [...RangeSliderLabel, ...RangeSliderLabelOrientations[props.orientation]]);
|
|
274
|
-
const labelMarkStyles = computed(() => [...RangeSliderLabelMark]);
|
|
294
|
+
const labelMarkStyles = computed(() => [...RangeSliderLabelMark, ...RangeSliderLabelMarkOrientations[props.orientation]]);
|
|
275
295
|
// State
|
|
276
296
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
277
297
|
defaultValue: computed(() => [props.minValue, props.maxValue])
|
|
@@ -506,10 +526,7 @@ const _hoisted_5 = ["disabled"];
|
|
|
506
526
|
const _hoisted_6 = ["disabled"];
|
|
507
527
|
const _hoisted_7 = ["disabled"];
|
|
508
528
|
const _hoisted_8 = ["activated", "disabled"];
|
|
509
|
-
const _hoisted_9 =
|
|
510
|
-
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
511
|
-
}, null, -1 /* HOISTED */);
|
|
512
|
-
|
|
529
|
+
const _hoisted_9 = ["disabled"];
|
|
513
530
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
514
531
|
const _component_OrTooltip = resolveComponent("OrTooltip");
|
|
515
532
|
return openBlock(), createElementBlock("div", {
|
|
@@ -562,7 +579,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
562
579
|
ref: "filler",
|
|
563
580
|
class: normalizeClass(['grow', ..._ctx.offsetStyles]),
|
|
564
581
|
disabled: _ctx.disabled
|
|
565
|
-
}, null, 10 /* CLASS, PROPS */, _hoisted_7), (openBlock(true), createElementBlock(Fragment,
|
|
582
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_7), _ctx.breakpoints.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
|
|
583
|
+
key: 0
|
|
584
|
+
}, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
|
|
566
585
|
return openBlock(), createElementBlock("div", {
|
|
567
586
|
key: breakpoint,
|
|
568
587
|
class: normalizeClass(_ctx.breakpointMarkStyles),
|
|
@@ -570,13 +589,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
570
589
|
activated: breakpoint >= _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= _ctx.proxyModelValue[_ctx.orientation.endsWith('-reversed') ? 0 : 1],
|
|
571
590
|
disabled: _ctx.disabled
|
|
572
591
|
}, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_8);
|
|
573
|
-
}), 128 /* KEYED_FRAGMENT */))], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
|
|
592
|
+
}), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
|
|
574
593
|
class: normalizeClass(_ctx.labelStyles)
|
|
575
|
-
}, [
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
594
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
|
|
595
|
+
return openBlock(), createElementBlock("div", {
|
|
596
|
+
key: breakpoint,
|
|
597
|
+
class: normalizeClass(_ctx.labelMarkStyles),
|
|
598
|
+
style: normalizeStyle(_ctx.getBreakpointMarkComputedStyles(breakpoint)),
|
|
599
|
+
disabled: _ctx.disabled
|
|
600
|
+
}, [renderSlot(_ctx.$slots, `label-${breakpoint}`, {
|
|
601
|
+
value: breakpoint
|
|
602
|
+
}, () => [createTextVNode(toDisplayString(breakpoint), 1 /* TEXT */)])], 14 /* CLASS, STYLE, PROPS */, _hoisted_9);
|
|
603
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
580
604
|
}
|
|
581
605
|
|
|
582
606
|
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-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, withCtx, Fragment, renderList, createCommentVNode, renderSlot, createTextVNode, toDisplayString } 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-
|
|
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: {
|
|
@@ -249,7 +269,7 @@ var script = defineComponent({
|
|
|
249
269
|
const thumbStyles = computed(() => ['or-slider-thumb-v3', ...SliderThumb, ...SliderThumbColors[props.color]]);
|
|
250
270
|
const breakpointMarkStyles = computed(() => [...SliderBreakpointMark, ...SliderBreakpointMarkColors[props.color]]);
|
|
251
271
|
const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
|
|
252
|
-
const labelMarkStyles = computed(() => [...SliderLabelMark]);
|
|
272
|
+
const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
|
|
253
273
|
// State
|
|
254
274
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
255
275
|
defaultValue: toRef(props, 'minValue')
|
|
@@ -379,10 +399,7 @@ const _hoisted_2 = ["disabled"];
|
|
|
379
399
|
const _hoisted_3 = ["disabled"];
|
|
380
400
|
const _hoisted_4 = ["disabled"];
|
|
381
401
|
const _hoisted_5 = ["activated", "disabled"];
|
|
382
|
-
const _hoisted_6 =
|
|
383
|
-
class: /*#__PURE__*/normalizeClass(['grow'])
|
|
384
|
-
}, null, -1 /* HOISTED */);
|
|
385
|
-
|
|
402
|
+
const _hoisted_6 = ["disabled"];
|
|
386
403
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
387
404
|
const _component_OrTooltip = resolveComponent("OrTooltip");
|
|
388
405
|
return openBlock(), createElementBlock("div", {
|
|
@@ -411,7 +428,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
411
428
|
disabled: _ctx.disabled
|
|
412
429
|
}, null, 10 /* CLASS, PROPS */, _hoisted_4)]),
|
|
413
430
|
_: 1 /* STABLE */
|
|
414
|
-
}, 8 /* PROPS */, ["is-open", "content", "placement"]), (openBlock(true), createElementBlock(Fragment,
|
|
431
|
+
}, 8 /* PROPS */, ["is-open", "content", "placement"]), _ctx.breakpoints.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
|
|
432
|
+
key: 0
|
|
433
|
+
}, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
|
|
415
434
|
return openBlock(), createElementBlock("div", {
|
|
416
435
|
key: breakpoint,
|
|
417
436
|
class: normalizeClass(_ctx.breakpointMarkStyles),
|
|
@@ -419,13 +438,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
419
438
|
activated: breakpoint <= _ctx.proxyModelValue,
|
|
420
439
|
disabled: _ctx.disabled
|
|
421
440
|
}, null, 14 /* CLASS, STYLE, PROPS */, _hoisted_5);
|
|
422
|
-
}), 128 /* KEYED_FRAGMENT */))], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
|
|
441
|
+
}), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 10 /* CLASS, PROPS */, _hoisted_2), createElementVNode("div", {
|
|
423
442
|
class: normalizeClass(_ctx.labelStyles)
|
|
424
|
-
}, [
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
443
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList([_ctx.minValue, ..._ctx.breakpoints, _ctx.maxValue], breakpoint => {
|
|
444
|
+
return openBlock(), createElementBlock("div", {
|
|
445
|
+
key: breakpoint,
|
|
446
|
+
class: normalizeClass(_ctx.labelMarkStyles),
|
|
447
|
+
style: normalizeStyle(_ctx.getBreakpointMarkComputedStyles(breakpoint)),
|
|
448
|
+
disabled: _ctx.disabled
|
|
449
|
+
}, [renderSlot(_ctx.$slots, `label-${breakpoint}`, {
|
|
450
|
+
value: breakpoint
|
|
451
|
+
}, () => [createTextVNode(toDisplayString(breakpoint), 1 /* TEXT */)])], 14 /* CLASS, STYLE, PROPS */, _hoisted_6);
|
|
452
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 10 /* CLASS, PROPS */, _hoisted_1);
|
|
429
453
|
}
|
|
430
454
|
|
|
431
455
|
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-
|
|
96
|
-
export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-
|
|
95
|
+
export { s as OrRangeSliderV3 } from '../OrRangeSlider-194f2057.js';
|
|
96
|
+
export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from '../OrSlider-ce227f39.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { s as OrRangeSliderV3 } from '../../OrRangeSlider-
|
|
2
|
-
export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-
|
|
1
|
+
export { s as OrRangeSliderV3 } from '../../OrRangeSlider-194f2057.js';
|
|
2
|
+
export { S as RangeSliderColor, a as RangeSliderOrientation } from '../../OrSlider-ce227f39.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-
|
|
1
|
+
export { s as OrSliderV3, S as SliderColor, a as SliderOrientation } from '../../OrSlider-ce227f39.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[]>;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -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-
|
|
96
|
-
export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-
|
|
95
|
+
export { s as OrRangeSliderV3 } from './OrRangeSlider-194f2057.js';
|
|
96
|
+
export { s as OrSliderV3, S as RangeSliderColor, a as RangeSliderOrientation, S as SliderColor, a as SliderOrientation } from './OrSlider-ce227f39.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.
|
|
3
|
+
"version": "8.22.3-beta.4120.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
|
}
|
|
@@ -59,25 +59,32 @@
|
|
|
59
59
|
:disabled="disabled"
|
|
60
60
|
/>
|
|
61
61
|
|
|
62
|
+
<template v-if="breakpoints.length > 0">
|
|
63
|
+
<div
|
|
64
|
+
v-for="breakpoint of [minValue, ...breakpoints, maxValue]"
|
|
65
|
+
:key="breakpoint"
|
|
66
|
+
:class="breakpointMarkStyles"
|
|
67
|
+
:style="getBreakpointMarkComputedStyles(breakpoint)"
|
|
68
|
+
:activated="breakpoint >= proxyModelValue[orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= proxyModelValue[orientation.endsWith('-reversed') ? 0 : 1]"
|
|
69
|
+
:disabled="disabled"
|
|
70
|
+
/>
|
|
71
|
+
</template>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div :class="labelStyles">
|
|
62
75
|
<div
|
|
63
|
-
v-for="breakpoint of breakpoints"
|
|
76
|
+
v-for="breakpoint of [minValue, ...breakpoints, maxValue]"
|
|
64
77
|
:key="breakpoint"
|
|
65
|
-
:class="
|
|
78
|
+
:class="labelMarkStyles"
|
|
66
79
|
:style="getBreakpointMarkComputedStyles(breakpoint)"
|
|
67
|
-
:activated="breakpoint >= proxyModelValue[orientation.endsWith('-reversed') ? 1 : 0] && breakpoint <= proxyModelValue[orientation.endsWith('-reversed') ? 0 : 1]"
|
|
68
80
|
:disabled="disabled"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<div :class="['grow']" />
|
|
78
|
-
|
|
79
|
-
<div :class="labelMarkStyles">
|
|
80
|
-
{{ maxValue }}
|
|
81
|
+
>
|
|
82
|
+
<slot
|
|
83
|
+
:name="`label-${breakpoint}`"
|
|
84
|
+
:value="breakpoint"
|
|
85
|
+
>
|
|
86
|
+
{{ breakpoint }}
|
|
87
|
+
</slot>
|
|
81
88
|
</div>
|
|
82
89
|
</div>
|
|
83
90
|
</div>
|
|
@@ -89,7 +96,7 @@ import { PropType, computed, defineComponent, ref, toRef, watch } from 'vue-demi
|
|
|
89
96
|
import { useProxyModelValue } from '../../hooks';
|
|
90
97
|
import { OrTooltipV3 as OrTooltip } from '../or-tooltip-v3';
|
|
91
98
|
import { RangeSliderColor, RangeSliderOrientation } from './props';
|
|
92
|
-
import { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors } from './styles';
|
|
99
|
+
import { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelMarkOrientations, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors } from './styles';
|
|
93
100
|
|
|
94
101
|
export default defineComponent({
|
|
95
102
|
components: {
|
|
@@ -226,6 +233,7 @@ export default defineComponent({
|
|
|
226
233
|
|
|
227
234
|
const labelMarkStyles = computed(() => [
|
|
228
235
|
...RangeSliderLabelMark,
|
|
236
|
+
...RangeSliderLabelMarkOrientations[props.orientation],
|
|
229
237
|
]);
|
|
230
238
|
|
|
231
239
|
// State
|