@particle-network/ui-react 0.4.5-beta.14 → 0.4.5-beta.16
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.
|
@@ -16,15 +16,11 @@ const UXSlider = forwardRef((props, ref)=>{
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
color: color,
|
|
19
|
-
onChangeEnd: (
|
|
20
|
-
onChangeEnd?.(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
cancelable: true,
|
|
25
|
-
view: window
|
|
26
|
-
});
|
|
27
|
-
document.body.dispatchEvent(clickEvent);
|
|
19
|
+
onChangeEnd: (value)=>{
|
|
20
|
+
onChangeEnd?.(value);
|
|
21
|
+
setTimeout(()=>{
|
|
22
|
+
if (document.activeElement) document.activeElement.blur();
|
|
23
|
+
}, 200);
|
|
28
24
|
},
|
|
29
25
|
...restProps
|
|
30
26
|
});
|
|
@@ -2,24 +2,26 @@ const sliderClasses = {
|
|
|
2
2
|
variants: {
|
|
3
3
|
size: {
|
|
4
4
|
sm: {
|
|
5
|
-
label: 'text-
|
|
6
|
-
value: 'text-
|
|
7
|
-
thumb: 'w-4 h-4 after:w-3 after:h-3
|
|
5
|
+
label: '!text-xxs',
|
|
6
|
+
value: '!text-xxs',
|
|
7
|
+
thumb: 'w-4 h-4 after:w-3 after:h-3',
|
|
8
8
|
step: 'data-[in-range=false]:bg-default-200',
|
|
9
|
+
mark: '!text-xxs mt-1',
|
|
9
10
|
track: 'bg-background-200'
|
|
10
11
|
},
|
|
11
12
|
md: {
|
|
12
|
-
thumb: 'w-4 h-4 after:w-3 after:h-3
|
|
13
|
-
label: 'text-
|
|
14
|
-
value: 'text-
|
|
13
|
+
thumb: 'w-4 h-4 after:w-3 after:h-3',
|
|
14
|
+
label: 'text-xs',
|
|
15
|
+
value: 'text-xs',
|
|
16
|
+
mark: 'text-xs mt-1',
|
|
15
17
|
track: 'bg-background-200'
|
|
16
18
|
},
|
|
17
19
|
lg: {
|
|
18
|
-
thumb: 'h-7 w-7 after:w-5 after:h-5
|
|
20
|
+
thumb: 'h-7 w-7 after:w-5 after:h-5',
|
|
19
21
|
step: 'w-2 h-2',
|
|
20
|
-
label: 'text-
|
|
21
|
-
value: 'text-
|
|
22
|
-
mark: 'mt-2',
|
|
22
|
+
label: 'text-sm',
|
|
23
|
+
value: 'text-sm',
|
|
24
|
+
mark: 'text-sm mt-2',
|
|
23
25
|
track: 'bg-background-200'
|
|
24
26
|
}
|
|
25
27
|
},
|
|
@@ -177,11 +179,12 @@ const sliderClasses = {
|
|
|
177
179
|
{
|
|
178
180
|
size: [
|
|
179
181
|
'sm',
|
|
180
|
-
'md'
|
|
182
|
+
'md',
|
|
183
|
+
'lg'
|
|
181
184
|
],
|
|
182
185
|
showOutline: false,
|
|
183
186
|
class: {
|
|
184
|
-
thumb: 'shadow-
|
|
187
|
+
thumb: 'shadow-none'
|
|
185
188
|
}
|
|
186
189
|
},
|
|
187
190
|
{
|