@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as useElementBounding, u as useElementHover, e as useDraggable } from '../../index-cc89d6b7.js';
|
|
2
2
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
3
|
-
import { RangeSlider, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderTrack, RangeSliderTrackColors, RangeSliderThumb, RangeSliderThumbColors, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelOrientations, RangeSliderLabelMark } from './styles.js';
|
|
3
|
+
import { RangeSlider, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderTrack, RangeSliderTrackColors, RangeSliderThumb, RangeSliderThumbColors, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelOrientations, RangeSliderLabelMark, RangeSliderLabelMarkOrientations } from './styles.js';
|
|
4
4
|
import __vue_component__$1 from '../OrTooltipV3/OrTooltip.js';
|
|
5
5
|
import { SliderColor, SliderOrientation } from '../OrSliderV3/props.js';
|
|
6
6
|
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
@@ -96,7 +96,7 @@ var script = defineComponent({
|
|
|
96
96
|
const thumbStyles = computed(() => ['or-range-slider-thumb-v3', ...RangeSliderThumb, ...RangeSliderThumbColors[props.color]]);
|
|
97
97
|
const breakpointMarkStyles = computed(() => [...RangeSliderBreakpointMark, ...RangeSliderBreakpointMarkColors[props.color]]);
|
|
98
98
|
const labelStyles = computed(() => [...RangeSliderLabel, ...RangeSliderLabelOrientations[props.orientation]]);
|
|
99
|
-
const labelMarkStyles = computed(() => [...RangeSliderLabelMark]);
|
|
99
|
+
const labelMarkStyles = computed(() => [...RangeSliderLabelMark, ...RangeSliderLabelMarkOrientations[props.orientation]]);
|
|
100
100
|
// State
|
|
101
101
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
102
102
|
defaultValue: computed(() => [props.minValue, props.maxValue])
|
|
@@ -393,7 +393,7 @@ var __vue_render__ = function () {
|
|
|
393
393
|
attrs: {
|
|
394
394
|
"disabled": _vm.disabled
|
|
395
395
|
}
|
|
396
|
-
}), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
|
|
396
|
+
}), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
397
397
|
return _c('div', {
|
|
398
398
|
key: breakpoint,
|
|
399
399
|
class: _vm.breakpointMarkStyles,
|
|
@@ -403,15 +403,22 @@ var __vue_render__ = function () {
|
|
|
403
403
|
"disabled": _vm.disabled
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
|
-
})], 2), _vm._v(" "), _c('div', {
|
|
406
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
407
407
|
class: _vm.labelStyles
|
|
408
|
-
}, [
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
408
|
+
}, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
409
|
+
return _c('div', {
|
|
410
|
+
key: breakpoint,
|
|
411
|
+
class: _vm.labelMarkStyles,
|
|
412
|
+
style: _vm.getBreakpointMarkComputedStyles(breakpoint),
|
|
413
|
+
attrs: {
|
|
414
|
+
"disabled": _vm.disabled
|
|
415
|
+
}
|
|
416
|
+
}, [_vm._t("label-" + breakpoint, function () {
|
|
417
|
+
return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
|
|
418
|
+
}, {
|
|
419
|
+
"value": breakpoint
|
|
420
|
+
})], 2);
|
|
421
|
+
}), 0)]);
|
|
415
422
|
};
|
|
416
423
|
var __vue_staticRenderFns__ = [];
|
|
417
424
|
|
|
@@ -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[]>;
|
|
@@ -144,7 +144,9 @@ const RangeSliderBreakpointMarkColors = {
|
|
|
144
144
|
// Theme (disabled)
|
|
145
145
|
'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
|
|
146
146
|
};
|
|
147
|
-
const RangeSliderLabel = [
|
|
147
|
+
const RangeSliderLabel = [
|
|
148
|
+
// Position
|
|
149
|
+
'relative'];
|
|
148
150
|
const RangeSliderLabelOrientations = {
|
|
149
151
|
[SliderOrientation.Horizontal]: [
|
|
150
152
|
// Layout
|
|
@@ -168,9 +170,27 @@ const RangeSliderLabelOrientations = {
|
|
|
168
170
|
'h-full']
|
|
169
171
|
};
|
|
170
172
|
const RangeSliderLabelMark = [
|
|
173
|
+
// Position
|
|
174
|
+
'absolute',
|
|
171
175
|
// Typography
|
|
172
|
-
'typography-caption-regular',
|
|
176
|
+
'typography-caption-regular whitespace-nowrap',
|
|
173
177
|
// Theme
|
|
174
|
-
'theme-foreground-
|
|
178
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
179
|
+
// Theme (hover)
|
|
180
|
+
'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
|
|
181
|
+
const RangeSliderLabelMarkOrientations = {
|
|
182
|
+
[SliderOrientation.Horizontal]: [
|
|
183
|
+
// Position
|
|
184
|
+
'-translate-x-1/2', 'translate-y-1/2'],
|
|
185
|
+
[SliderOrientation.HorizontalReversed]: [
|
|
186
|
+
// Position
|
|
187
|
+
'translate-x-1/2', 'translate-y-1/2'],
|
|
188
|
+
[SliderOrientation.Vertical]: [
|
|
189
|
+
// Position
|
|
190
|
+
'translate-x-1/2', 'translate-y-1/2'],
|
|
191
|
+
[SliderOrientation.VerticalReversed]: [
|
|
192
|
+
// Position
|
|
193
|
+
'translate-x-1/2', '-translate-y-1/2']
|
|
194
|
+
};
|
|
175
195
|
|
|
176
|
-
export { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors };
|
|
196
|
+
export { RangeSlider, RangeSliderBreakpointMark, RangeSliderBreakpointMarkColors, RangeSliderLabel, RangeSliderLabelMark, RangeSliderLabelMarkOrientations, RangeSliderLabelOrientations, RangeSliderOffset, RangeSliderOffsetOrientations, RangeSliderOrientations, RangeSliderRail, RangeSliderRailOrientations, RangeSliderThumb, RangeSliderThumbColors, RangeSliderTrack, RangeSliderTrackColors };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as useElementBounding, u as useElementHover, e as useDraggable } from '../../index-cc89d6b7.js';
|
|
2
2
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
3
3
|
import { SliderColor, SliderOrientation } from './props.js';
|
|
4
|
-
import { Slider, SliderOrientations, SliderRail, SliderRailOrientations, SliderTrack, SliderTrackColors, SliderThumb, SliderThumbColors, SliderBreakpointMark, SliderBreakpointMarkColors, SliderLabel, SliderLabelOrientations, SliderLabelMark } from './styles.js';
|
|
4
|
+
import { Slider, SliderOrientations, SliderRail, SliderRailOrientations, SliderTrack, SliderTrackColors, SliderThumb, SliderThumbColors, SliderBreakpointMark, SliderBreakpointMarkColors, SliderLabel, SliderLabelOrientations, SliderLabelMark, SliderLabelMarkOrientations } from './styles.js';
|
|
5
5
|
import __vue_component__$1 from '../OrTooltipV3/OrTooltip.js';
|
|
6
6
|
import { c as clamp } from '../../index-1612099e.js';
|
|
7
7
|
import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
@@ -77,7 +77,7 @@ var script = defineComponent({
|
|
|
77
77
|
const thumbStyles = computed(() => ['or-slider-thumb-v3', ...SliderThumb, ...SliderThumbColors[props.color]]);
|
|
78
78
|
const breakpointMarkStyles = computed(() => [...SliderBreakpointMark, ...SliderBreakpointMarkColors[props.color]]);
|
|
79
79
|
const labelStyles = computed(() => [...SliderLabel, ...SliderLabelOrientations[props.orientation]]);
|
|
80
|
-
const labelMarkStyles = computed(() => [...SliderLabelMark]);
|
|
80
|
+
const labelMarkStyles = computed(() => [...SliderLabelMark, ...SliderLabelMarkOrientations[props.orientation]]);
|
|
81
81
|
// State
|
|
82
82
|
const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit, {
|
|
83
83
|
defaultValue: toRef(props, 'minValue')
|
|
@@ -243,7 +243,7 @@ var __vue_render__ = function () {
|
|
|
243
243
|
attrs: {
|
|
244
244
|
"disabled": _vm.disabled
|
|
245
245
|
}
|
|
246
|
-
})]), _vm._v(" "), _vm._l(_vm.breakpoints, function (breakpoint) {
|
|
246
|
+
})]), _vm._v(" "), _vm.breakpoints.length > 0 ? _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
247
247
|
return _c('div', {
|
|
248
248
|
key: breakpoint,
|
|
249
249
|
class: _vm.breakpointMarkStyles,
|
|
@@ -253,15 +253,22 @@ var __vue_render__ = function () {
|
|
|
253
253
|
"disabled": _vm.disabled
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
})], 2), _vm._v(" "), _c('div', {
|
|
256
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
257
257
|
class: _vm.labelStyles
|
|
258
|
-
}, [
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
258
|
+
}, _vm._l([_vm.minValue].concat(_vm.breakpoints, [_vm.maxValue]), function (breakpoint) {
|
|
259
|
+
return _c('div', {
|
|
260
|
+
key: breakpoint,
|
|
261
|
+
class: _vm.labelMarkStyles,
|
|
262
|
+
style: _vm.getBreakpointMarkComputedStyles(breakpoint),
|
|
263
|
+
attrs: {
|
|
264
|
+
"disabled": _vm.disabled
|
|
265
|
+
}
|
|
266
|
+
}, [_vm._t("label-" + breakpoint, function () {
|
|
267
|
+
return [_vm._v("\n " + _vm._s(breakpoint) + "\n ")];
|
|
268
|
+
}, {
|
|
269
|
+
"value": breakpoint
|
|
270
|
+
})], 2);
|
|
271
|
+
}), 0)]);
|
|
265
272
|
};
|
|
266
273
|
var __vue_staticRenderFns__ = [];
|
|
267
274
|
|
|
@@ -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[]>;
|
|
@@ -129,7 +129,9 @@ const SliderBreakpointMarkColors = {
|
|
|
129
129
|
// Theme (disabled)
|
|
130
130
|
'disabled:!bg-on-disabled', 'dark:disabled:!bg-on-disabled-dark']
|
|
131
131
|
};
|
|
132
|
-
const SliderLabel = [
|
|
132
|
+
const SliderLabel = [
|
|
133
|
+
// Position
|
|
134
|
+
'relative'];
|
|
133
135
|
const SliderLabelOrientations = {
|
|
134
136
|
[SliderOrientation.Horizontal]: [
|
|
135
137
|
// Layout
|
|
@@ -153,9 +155,27 @@ const SliderLabelOrientations = {
|
|
|
153
155
|
'h-full']
|
|
154
156
|
};
|
|
155
157
|
const SliderLabelMark = [
|
|
158
|
+
// Position
|
|
159
|
+
'absolute',
|
|
156
160
|
// Typography
|
|
157
|
-
'typography-caption-regular',
|
|
161
|
+
'typography-caption-regular whitespace-nowrap',
|
|
158
162
|
// Theme
|
|
159
|
-
'theme-foreground-
|
|
163
|
+
'theme-foreground-outline', 'dark:theme-foreground-outline-dark',
|
|
164
|
+
// Theme (hover)
|
|
165
|
+
'hover:theme-foreground-default', 'dark:hover:theme-foreground-default-dark'];
|
|
166
|
+
const SliderLabelMarkOrientations = {
|
|
167
|
+
[SliderOrientation.Horizontal]: [
|
|
168
|
+
// Position
|
|
169
|
+
'-translate-x-1/2', 'translate-y-1/2'],
|
|
170
|
+
[SliderOrientation.HorizontalReversed]: [
|
|
171
|
+
// Position
|
|
172
|
+
'translate-x-1/2', 'translate-y-1/2'],
|
|
173
|
+
[SliderOrientation.Vertical]: [
|
|
174
|
+
// Position
|
|
175
|
+
'translate-x-1/2', 'translate-y-1/2'],
|
|
176
|
+
[SliderOrientation.VerticalReversed]: [
|
|
177
|
+
// Position
|
|
178
|
+
'translate-x-1/2', '-translate-y-1/2']
|
|
179
|
+
};
|
|
160
180
|
|
|
161
|
-
export { Slider, SliderBreakpointMark, SliderBreakpointMarkColors, SliderLabel, SliderLabelMark, SliderLabelOrientations, SliderOrientations, SliderRail, SliderRailOrientations, SliderThumb, SliderThumbColors, SliderTrack, SliderTrackColors };
|
|
181
|
+
export { Slider, SliderBreakpointMark, SliderBreakpointMarkColors, SliderLabel, SliderLabelMark, SliderLabelMarkOrientations, SliderLabelOrientations, SliderOrientations, SliderRail, SliderRailOrientations, SliderThumb, SliderThumbColors, SliderTrack, SliderTrackColors };
|