@varlet/ui 2.10.0 → 2.10.1-alpha.1682608027166
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/es/date-picker/src/day-picker-panel.mjs +2 -2
- package/es/date-picker/src/month-picker-panel.mjs +2 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/slider/Slider.mjs +67 -33
- package/es/slider/props.mjs +4 -0
- package/es/slider/slider.css +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/swipe/Swipe.mjs +8 -3
- package/es/varlet.esm.js +7310 -7374
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +658 -707
- package/package.json +6 -6
- package/types/slider.d.ts +4 -1
- package/umd/varlet.js +5 -5
|
@@ -69,7 +69,7 @@ function __render__(_ctx, _cache) {
|
|
|
69
69
|
ripple: false,
|
|
70
70
|
elevation: _ctx.componentProps.buttonElevation
|
|
71
71
|
}, _extends({}, _ctx.buttonProps(day)), {
|
|
72
|
-
onClick:
|
|
72
|
+
onClick: event => _ctx.chooseDay(day, event)
|
|
73
73
|
}), {
|
|
74
74
|
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.filterDay(day)), 1
|
|
75
75
|
/* TEXT */
|
|
@@ -79,7 +79,7 @@ function __render__(_ctx, _cache) {
|
|
|
79
79
|
|
|
80
80
|
}, 1040
|
|
81
81
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
82
|
-
, ["elevation"])]);
|
|
82
|
+
, ["elevation", "onClick"])]);
|
|
83
83
|
}), 128
|
|
84
84
|
/* KEYED_FRAGMENT */
|
|
85
85
|
))], 2
|
|
@@ -53,7 +53,7 @@ function __render__(_ctx, _cache) {
|
|
|
53
53
|
ripple: false,
|
|
54
54
|
elevation: _ctx.componentProps.buttonElevation
|
|
55
55
|
}, _extends({}, _ctx.buttonProps(month.index)), {
|
|
56
|
-
onClick:
|
|
56
|
+
onClick: event => _ctx.chooseMonth(month, event)
|
|
57
57
|
}), {
|
|
58
58
|
default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.getMonthAbbr(month.index)), 1
|
|
59
59
|
/* TEXT */
|
|
@@ -63,7 +63,7 @@ function __render__(_ctx, _cache) {
|
|
|
63
63
|
|
|
64
64
|
}, 1040
|
|
65
65
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
66
|
-
, ["elevation"])]);
|
|
66
|
+
, ["elevation", "onClick"])]);
|
|
67
67
|
}), 128
|
|
68
68
|
/* KEYED_FRAGMENT */
|
|
69
69
|
))]))]),
|
package/es/index.bundle.mjs
CHANGED
|
@@ -241,7 +241,7 @@ import './time-picker/style/index.mjs'
|
|
|
241
241
|
import './tooltip/style/index.mjs'
|
|
242
242
|
import './uploader/style/index.mjs'
|
|
243
243
|
|
|
244
|
-
const version = '2.10.
|
|
244
|
+
const version = '2.10.1-alpha.1682608027166'
|
|
245
245
|
|
|
246
246
|
function install(app) {
|
|
247
247
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '..\types'
|
package/es/index.mjs
CHANGED
|
@@ -160,7 +160,7 @@ export * from './time-picker/index.mjs'
|
|
|
160
160
|
export * from './tooltip/index.mjs'
|
|
161
161
|
export * from './uploader/index.mjs'
|
|
162
162
|
|
|
163
|
-
const version = '2.10.
|
|
163
|
+
const version = '2.10.1-alpha.1682608027166'
|
|
164
164
|
|
|
165
165
|
function install(app) {
|
|
166
166
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/slider/Slider.mjs
CHANGED
|
@@ -27,25 +27,26 @@ function __render__(_ctx, _cache) {
|
|
|
27
27
|
var _directive_hover = _resolveDirective("hover");
|
|
28
28
|
|
|
29
29
|
return _openBlock(), _createElementBlock("div", {
|
|
30
|
-
class: _normalizeClass(_ctx.n())
|
|
30
|
+
class: _normalizeClass(_ctx.n(_ctx.direction))
|
|
31
31
|
}, [_createElementVNode("div", {
|
|
32
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(
|
|
32
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(_ctx.direction + "-block"), [_ctx.isDisabled, _ctx.n('--disabled')], [_ctx.errorMessage, _ctx.n('--error')])),
|
|
33
33
|
ref: "sliderEl",
|
|
34
34
|
onClick: _cache[0] || (_cache[0] = function () {
|
|
35
35
|
return _ctx.click && _ctx.click(...arguments);
|
|
36
36
|
})
|
|
37
37
|
}, [_createElementVNode("div", {
|
|
38
|
-
class: _normalizeClass(_ctx.n(
|
|
38
|
+
class: _normalizeClass(_ctx.n(_ctx.direction + "-track"))
|
|
39
39
|
}, [_createElementVNode("div", {
|
|
40
|
-
class: _normalizeClass(_ctx.n(
|
|
40
|
+
class: _normalizeClass(_ctx.n(_ctx.direction + "-track-background")),
|
|
41
41
|
style: _normalizeStyle({
|
|
42
42
|
background: _ctx.trackColor,
|
|
43
|
-
height: _ctx.multiplySizeUnit(_ctx.trackHeight)
|
|
43
|
+
height: _ctx.isVertical ? '100%' : _ctx.multiplySizeUnit(_ctx.trackHeight),
|
|
44
|
+
width: _ctx.isVertical ? _ctx.multiplySizeUnit(_ctx.trackHeight) : '100%'
|
|
44
45
|
})
|
|
45
46
|
}, null, 6
|
|
46
47
|
/* CLASS, STYLE */
|
|
47
48
|
), _createElementVNode("div", {
|
|
48
|
-
class: _normalizeClass(_ctx.n(
|
|
49
|
+
class: _normalizeClass(_ctx.n(_ctx.direction + "-track-fill")),
|
|
49
50
|
style: _normalizeStyle(_ctx.getFillStyle)
|
|
50
51
|
}, null, 6
|
|
51
52
|
/* CLASS, STYLE */
|
|
@@ -53,12 +54,9 @@ function __render__(_ctx, _cache) {
|
|
|
53
54
|
/* CLASS */
|
|
54
55
|
), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.thumbList, item => {
|
|
55
56
|
return _openBlock(), _createElementBlock("div", {
|
|
56
|
-
class: _normalizeClass(_ctx.n(
|
|
57
|
+
class: _normalizeClass(_ctx.n(_ctx.direction + "-thumb")),
|
|
57
58
|
key: item.enumValue,
|
|
58
|
-
style: _normalizeStyle(
|
|
59
|
-
left: item.value + "%",
|
|
60
|
-
zIndex: _ctx.thumbsProps[item.enumValue].active ? 1 : undefined
|
|
61
|
-
}),
|
|
59
|
+
style: _normalizeStyle(_ctx.thumbStyle(item)),
|
|
62
60
|
onTouchstart: _withModifiers($event => _ctx.start($event, item.enumValue), ["stop"]),
|
|
63
61
|
onTouchmove: _withModifiers($event => _ctx.move($event, item.enumValue), ["stop"]),
|
|
64
62
|
onTouchend: $event => _ctx.end(item.enumValue),
|
|
@@ -66,14 +64,14 @@ function __render__(_ctx, _cache) {
|
|
|
66
64
|
}, [_renderSlot(_ctx.$slots, "button", {
|
|
67
65
|
currentValue: item.text
|
|
68
66
|
}, () => [_withDirectives(_createElementVNode("div", {
|
|
69
|
-
class: _normalizeClass(_ctx.n(
|
|
67
|
+
class: _normalizeClass(_ctx.n(_ctx.direction + "-thumb-block")),
|
|
70
68
|
style: _normalizeStyle({
|
|
71
69
|
background: _ctx.thumbColor
|
|
72
70
|
})
|
|
73
71
|
}, null, 6
|
|
74
72
|
/* CLASS, STYLE */
|
|
75
73
|
), [[_directive_hover, value => _ctx.hover(value, item), "desktop"]]), _createElementVNode("div", {
|
|
76
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(
|
|
74
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(_ctx.direction + "-thumb-ripple"), [_ctx.thumbsProps[item.enumValue].active, _ctx.n(_ctx.direction + "-thumb-ripple--active")])),
|
|
77
75
|
style: _normalizeStyle({
|
|
78
76
|
background: _ctx.thumbsProps[item.enumValue].active ? _ctx.thumbColor : undefined
|
|
79
77
|
})
|
|
@@ -84,7 +82,7 @@ function __render__(_ctx, _cache) {
|
|
|
84
82
|
, ["hovering"])], 6
|
|
85
83
|
/* CLASS, STYLE */
|
|
86
84
|
), _createElementVNode("div", {
|
|
87
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(
|
|
85
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(_ctx.direction + "-thumb-label"), [_ctx.showLabel(item.enumValue), _ctx.n(_ctx.direction + "-thumb-label--active")])),
|
|
88
86
|
style: _normalizeStyle({
|
|
89
87
|
background: _ctx.labelColor,
|
|
90
88
|
color: _ctx.labelTextColor,
|
|
@@ -148,7 +146,7 @@ var __sfc__ = defineComponent({
|
|
|
148
146
|
|
|
149
147
|
var getThumbProps = () => ({
|
|
150
148
|
startPosition: 0,
|
|
151
|
-
|
|
149
|
+
currentOffset: 0,
|
|
152
150
|
active: false,
|
|
153
151
|
percentValue: 0
|
|
154
152
|
});
|
|
@@ -156,14 +154,14 @@ var __sfc__ = defineComponent({
|
|
|
156
154
|
var validateWithTrigger = () => nextTick(() => vt(['onChange'], 'onChange', props.rules, props.modelValue));
|
|
157
155
|
|
|
158
156
|
var sliderEl = ref(null);
|
|
159
|
-
var
|
|
157
|
+
var maxDistance = ref(0);
|
|
160
158
|
var isScroll = ref(false);
|
|
161
159
|
var thumbsProps = reactive({
|
|
162
160
|
[Thumbs.First]: getThumbProps(),
|
|
163
161
|
[Thumbs.Second]: getThumbProps()
|
|
164
162
|
});
|
|
165
163
|
var scope = computed(() => toNumber(props.max) - toNumber(props.min));
|
|
166
|
-
var unitWidth = computed(() =>
|
|
164
|
+
var unitWidth = computed(() => maxDistance.value / scope.value * toNumber(props.step));
|
|
167
165
|
var thumbList = computed(() => {
|
|
168
166
|
var {
|
|
169
167
|
modelValue,
|
|
@@ -203,16 +201,42 @@ var __sfc__ = defineComponent({
|
|
|
203
201
|
range,
|
|
204
202
|
modelValue
|
|
205
203
|
} = props;
|
|
206
|
-
var
|
|
207
|
-
var
|
|
208
|
-
return {
|
|
209
|
-
|
|
210
|
-
|
|
204
|
+
var gap = range && isArray(modelValue) ? getValue(Math.min(modelValue[0], modelValue[1])) : 0;
|
|
205
|
+
var fillLength = range && isArray(modelValue) ? getValue(Math.max(modelValue[0], modelValue[1])) - gap : getValue(modelValue);
|
|
206
|
+
return isVertical.value ? {
|
|
207
|
+
left: '0px',
|
|
208
|
+
height: fillLength + "%",
|
|
209
|
+
bottom: gap + "%",
|
|
210
|
+
background: activeColor
|
|
211
|
+
} : {
|
|
212
|
+
top: '0px',
|
|
213
|
+
width: fillLength + "%",
|
|
214
|
+
left: gap + "%",
|
|
211
215
|
background: activeColor
|
|
212
216
|
};
|
|
213
217
|
});
|
|
214
218
|
var isDisabled = computed(() => props.disabled || (form == null ? void 0 : form.disabled.value));
|
|
215
219
|
var isReadonly = computed(() => props.readonly || (form == null ? void 0 : form.readonly.value));
|
|
220
|
+
var isVertical = computed(() => props.direction === 'vertical');
|
|
221
|
+
|
|
222
|
+
var getOffset = e => {
|
|
223
|
+
var currentTarget = e.currentTarget;
|
|
224
|
+
if (!currentTarget) return 0;
|
|
225
|
+
|
|
226
|
+
if (!isVertical.value) {
|
|
227
|
+
return e.clientX - getLeft(currentTarget);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return maxDistance.value - (e.clientY - currentTarget.getBoundingClientRect().top);
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
var thumbStyle = thumb => {
|
|
234
|
+
var key = isVertical.value ? 'bottom' : 'left';
|
|
235
|
+
return {
|
|
236
|
+
[key]: thumb.value + "%",
|
|
237
|
+
zIndex: thumbsProps[thumb.enumValue].active ? 1 : undefined
|
|
238
|
+
};
|
|
239
|
+
};
|
|
216
240
|
|
|
217
241
|
var showLabel = type => {
|
|
218
242
|
if (props.labelVisible === 'always') return true;
|
|
@@ -281,7 +305,7 @@ var __sfc__ = defineComponent({
|
|
|
281
305
|
};
|
|
282
306
|
|
|
283
307
|
var start = (event, type) => {
|
|
284
|
-
if (!
|
|
308
|
+
if (!maxDistance.value) maxDistance.value = sliderEl.value.offsetWidth;
|
|
285
309
|
|
|
286
310
|
if (!isDisabled.value) {
|
|
287
311
|
thumbsProps[type].active = true;
|
|
@@ -290,13 +314,21 @@ var __sfc__ = defineComponent({
|
|
|
290
314
|
if (isDisabled.value || isReadonly.value) return;
|
|
291
315
|
call(props.onStart);
|
|
292
316
|
isScroll.value = true;
|
|
293
|
-
thumbsProps[type].startPosition = event.touches[0].clientX;
|
|
317
|
+
thumbsProps[type].startPosition = event.touches[0][isVertical.value ? 'clientY' : 'clientX'];
|
|
294
318
|
};
|
|
295
319
|
|
|
296
320
|
var move = (event, type) => {
|
|
297
321
|
if (isDisabled.value || isReadonly.value || !isScroll.value) return;
|
|
298
|
-
var
|
|
299
|
-
|
|
322
|
+
var {
|
|
323
|
+
startPosition,
|
|
324
|
+
currentOffset
|
|
325
|
+
} = thumbsProps[type];
|
|
326
|
+
var {
|
|
327
|
+
clientX,
|
|
328
|
+
clientY
|
|
329
|
+
} = event.touches[0];
|
|
330
|
+
var moveDistance = (isVertical.value ? startPosition - clientY : clientX - startPosition) + currentOffset;
|
|
331
|
+
if (moveDistance <= 0) moveDistance = 0;else if (moveDistance >= maxDistance.value) moveDistance = maxDistance.value;
|
|
300
332
|
setPercent(moveDistance, type);
|
|
301
333
|
};
|
|
302
334
|
|
|
@@ -315,7 +347,7 @@ var __sfc__ = defineComponent({
|
|
|
315
347
|
|
|
316
348
|
if (isDisabled.value || isReadonly.value) return;
|
|
317
349
|
var rangeValue = [];
|
|
318
|
-
thumbsProps[type].
|
|
350
|
+
thumbsProps[type].currentOffset = thumbsProps[type].percentValue * unitWidth.value;
|
|
319
351
|
var curValue = thumbsProps[type].percentValue * toNumber(step) + toNumber(min);
|
|
320
352
|
|
|
321
353
|
if (range && isArray(modelValue)) {
|
|
@@ -329,7 +361,7 @@ var __sfc__ = defineComponent({
|
|
|
329
361
|
var click = event => {
|
|
330
362
|
if (isDisabled.value || isReadonly.value) return;
|
|
331
363
|
if (event.target.closest("." + n('thumb'))) return;
|
|
332
|
-
var offset =
|
|
364
|
+
var offset = getOffset(event);
|
|
333
365
|
var type = getType(offset);
|
|
334
366
|
setPercent(offset, type);
|
|
335
367
|
end(type);
|
|
@@ -396,11 +428,11 @@ var __sfc__ = defineComponent({
|
|
|
396
428
|
|
|
397
429
|
if (props.range && isArray(modelValue)) {
|
|
398
430
|
thumbsProps[Thumbs.First].percentValue = getPercent(modelValue[0]);
|
|
399
|
-
thumbsProps[Thumbs.First].
|
|
431
|
+
thumbsProps[Thumbs.First].currentOffset = thumbsProps[Thumbs.First].percentValue * unitWidth.value;
|
|
400
432
|
thumbsProps[Thumbs.Second].percentValue = getPercent(modelValue[1]);
|
|
401
|
-
thumbsProps[Thumbs.Second].
|
|
433
|
+
thumbsProps[Thumbs.Second].currentOffset = thumbsProps[Thumbs.Second].percentValue * unitWidth.value;
|
|
402
434
|
} else if (isNumber(modelValue)) {
|
|
403
|
-
thumbsProps[Thumbs.First].
|
|
435
|
+
thumbsProps[Thumbs.First].currentOffset = getPercent(modelValue) * unitWidth.value;
|
|
404
436
|
}
|
|
405
437
|
};
|
|
406
438
|
|
|
@@ -421,10 +453,10 @@ var __sfc__ = defineComponent({
|
|
|
421
453
|
if (!stepValidator() || !valueValidator() || isScroll.value) return;
|
|
422
454
|
setProps(modelValue, toNumber(step));
|
|
423
455
|
});
|
|
424
|
-
watch(
|
|
456
|
+
watch(maxDistance, () => setProps());
|
|
425
457
|
useMounted(() => {
|
|
426
458
|
if (!stepValidator() || !valueValidator()) return;
|
|
427
|
-
|
|
459
|
+
maxDistance.value = sliderEl.value[isVertical.value ? 'offsetHeight' : 'offsetWidth'];
|
|
428
460
|
});
|
|
429
461
|
return {
|
|
430
462
|
n,
|
|
@@ -433,6 +465,8 @@ var __sfc__ = defineComponent({
|
|
|
433
465
|
sliderEl,
|
|
434
466
|
getFillStyle,
|
|
435
467
|
isDisabled,
|
|
468
|
+
isVertical,
|
|
469
|
+
thumbStyle,
|
|
436
470
|
errorMessage,
|
|
437
471
|
thumbsProps,
|
|
438
472
|
thumbList,
|
package/es/slider/props.mjs
CHANGED
package/es/slider/slider.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --slider-error-color: var(--color-danger); --slider-track-background: #bdbdbd; --slider-track-fill-background: var(--color-primary); --slider-thumb-block-background: var(--color-primary); --slider-thumb-ripple-background: var(--color-primary); --slider-thumb-label-background: var(--color-primary); --slider-thumb-label-font-size: var(--font-size-sm); --slider-disabled-opacity: var(--opacity-disabled);}.var-slider { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%;}.var-
|
|
1
|
+
:root { --slider-error-color: var(--color-danger); --slider-track-background: #bdbdbd; --slider-track-fill-background: var(--color-primary); --slider-thumb-block-background: var(--color-primary); --slider-thumb-ripple-background: var(--color-primary); --slider-thumb-label-background: var(--color-primary); --slider-thumb-label-font-size: var(--font-size-sm); --slider-disabled-opacity: var(--opacity-disabled);}.var-slider { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%;}.var-slider-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider-track { width: 100%; align-items: center; position: relative;}.var-slider-track-background { width: 100%; height: 2px; background: var(--slider-track-background); transition: filter, background-color, 0.25s;}.var-slider-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background);}.var-slider-thumb { position: absolute; cursor: pointer;}.var-slider-thumb-block { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: #fff; border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider-thumb-label span { transform: rotate(-45deg);}.var-slider-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider--error .var-slider__track-background { background-color: var(--slider-error-color) !important; filter: opacity(0.6);}.var-slider--error .var-slider__track-fill { background-color: var(--slider-error-color) !important;}.var-slider--error .var-slider__thumb-block { background-color: var(--slider-error-color) !important;}.var-slider--error .var-slider__thumb-ripple--active { background-color: var(--slider-error-color) !important;}.var-slider--error .var-slider__thumb-label { background-color: var(--slider-error-color) !important;}.var-slider__form[var-slider-cover] { margin: 0;}.var-slider__horizontal { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%;}.var-slider__horizontal-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider__horizontal--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider__horizontal-track { width: 100%; align-items: center; position: relative;}.var-slider__horizontal-track-background { width: 100%; height: 2px; background: var(--slider-track-background); transition: filter, background-color, 0.25s;}.var-slider__horizontal-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background);}.var-slider__horizontal-thumb { position: absolute; cursor: pointer;}.var-slider__horizontal-thumb-block { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider__horizontal-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider__horizontal-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider__horizontal-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: #fff; border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider__horizontal-thumb-label span { transform: rotate(-45deg);}.var-slider__horizontal-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider__horizontal--error .var-slider__track-background { background-color: var(--slider-error-color) !important; filter: opacity(0.6);}.var-slider__horizontal--error .var-slider__track-fill { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__thumb-block { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__thumb-ripple--active { background-color: var(--slider-error-color) !important;}.var-slider__horizontal--error .var-slider__thumb-label { background-color: var(--slider-error-color) !important;}.var-slider__horizontal__form[var-slider-cover] { margin: 0;}.var-slider__vertical { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); width: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100%;}.var-slider__vertical-block { display: flex; align-items: center; position: relative; flex: 1; user-select: none; height: 36px; margin: 0 6px; transition: filter 0.25s;}.var-slider__vertical--disabled { filter: opacity(var(--slider-disabled-opacity)); cursor: not-allowed;}.var-slider__vertical-track { width: 100%; align-items: center; position: relative;}.var-slider__vertical-track-background { width: 100%; height: 2px; background: var(--slider-track-background); transition: filter, background-color, 0.25s;}.var-slider__vertical-track-fill { position: absolute; height: 100%; left: 0; transition: background-color 0.25s; background-color: var(--slider-track-fill-background);}.var-slider__vertical-thumb { position: absolute; cursor: pointer;}.var-slider__vertical-thumb-block { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); transition: background-color 0.25s; z-index: 1; background-color: var(--slider-thumb-block-background);}.var-slider__vertical-thumb-ripple { position: absolute; width: 36px; height: 36px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0.3; background: transparent; transition: 0.3s var(--cubic-bezier);}.var-slider__vertical-thumb-ripple--active { background: var(--slider-thumb-ripple-background);}.var-slider__vertical-thumb-label { height: 24px; width: 24px; background-color: var(--slider-thumb-label-background); display: flex; align-items: center; border: none; justify-content: center; color: #fff; border-radius: 50% 50% 0; padding: 13px; bottom: 60%; user-select: none; position: absolute; left: 45%; transition: 0.3s var(--cubic-bezier); font-size: var(--slider-thumb-label-font-size); overflow: hidden; transform: translateY(0) translateY(0) translateX(-50%) rotate(45deg) scale(0);}.var-slider__vertical-thumb-label span { transform: rotate(-45deg);}.var-slider__vertical-thumb-label--active { transform: translateY(-20%) translateY(-8px) translateX(-50%) rotate(45deg) scale(1);}.var-slider__vertical--error .var-slider__track-background { background-color: var(--slider-error-color) !important; filter: opacity(0.6);}.var-slider__vertical--error .var-slider__track-fill { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__thumb-block { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__thumb-ripple--active { background-color: var(--slider-error-color) !important;}.var-slider__vertical--error .var-slider__thumb-label { background-color: var(--slider-error-color) !important;}.var-slider__vertical__form[var-slider-cover] { margin: 0;}.var-slider__vertical-block { width: 36px; display: flex; align-items: center; justify-content: center; position: relative; user-select: none; margin: 0 6px; transition: filter 0.25s;}.var-slider__vertical-track { height: 100%; width: fit-content;}.var-slider__vertical-track-background { width: 2px; height: 100%; background: var(--slider-track-background); transition: filter, background-color, 0.25s;}.var-slider__vertical-track-fill { width: 100%; top: none; bottom: 0;}.var-slider__vertical-thumb-label { transform: translateX(0) translateX(0) translateY(50%) rotate(-225deg) scale(0);}.var-slider__vertical-thumb-label span { transform: rotate(-135deg);}.var-slider__vertical-thumb-label--active { transform: translateX(20%) translateX(8px) translateY(50%) rotate(-225deg) scale(1);}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
-
import '../SnackbarSfc.css'
|
|
3
2
|
import '../../styles/elevation.css'
|
|
4
3
|
import '../../loading/loading.css'
|
|
5
4
|
import '../../button/button.css'
|
|
6
5
|
import '../../icon/icon.css'
|
|
7
6
|
import '../snackbar.css'
|
|
8
7
|
import '../coreSfc.css'
|
|
8
|
+
import '../SnackbarSfc.css'
|