@esportsplus/ui 0.25.6 → 0.25.8
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.
|
@@ -5,7 +5,7 @@ import template from '../../components/template/index.js';
|
|
|
5
5
|
import './scss/index.scss';
|
|
6
6
|
const OMIT = ['loader-content', 'loader-logo'];
|
|
7
7
|
export default template.factory((attributes, content) => {
|
|
8
|
-
let
|
|
8
|
+
let state = reactive({
|
|
9
9
|
load: false,
|
|
10
10
|
remove: false,
|
|
11
11
|
scale: false
|
|
@@ -24,7 +24,7 @@ export default template.factory((attributes, content) => {
|
|
|
24
24
|
state.remove = true;
|
|
25
25
|
}
|
|
26
26
|
}}
|
|
27
|
-
${
|
|
27
|
+
${omit(attributes, OMIT)}
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
30
|
class='loader ${() => state.load && 'loader--load'}'
|
|
@@ -33,7 +33,7 @@ export default template.factory((attributes, content) => {
|
|
|
33
33
|
state.load = true;
|
|
34
34
|
}
|
|
35
35
|
}}
|
|
36
|
-
${
|
|
36
|
+
${attributes.loader}
|
|
37
37
|
>
|
|
38
38
|
${content && html `
|
|
39
39
|
<div class='loader-content' ${attributes['loader-content']}>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.range{--background:var(--background-default);--background-active:var(--background-default);--background-default:var(--color-black-300);--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-width:var(--border-width-700);--height:var(--size-200);--thumb-background:var(--color-white-400);--thumb-size:var(--size-400);--width:100%}.range label:not(.--active):not(.--active):hover,.range:not(.--active):not(.--active):hover{--background:var(--background-hover)}.range label:not(.--active):not(.--active):active,.range:not(.--active):not(.--active):active{--background:var(--background-pressed)}.range.--active{--background:var(--background-active)}.range
|
|
1
|
+
@layer components {.range{--background:var(--background-default);--background-active:var(--background-default);--background-default:var(--color-black-300);--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-width:var(--border-width-700);--height:var(--size-200);--thumb-background:var(--color-white-400);--thumb-size:var(--size-400);--width:100%}.range label:not(.--active):not(.--active):hover,.range:not(.--active):not(.--active):hover{--background:var(--background-hover)}.range label:not(.--active):not(.--active):active,.range:not(.--active):not(.--active):active{--background:var(--background-pressed)}.range.--active{--background:var(--background-active)}.range,.range-tag{width:var(--width)}.range-tag{background:var(--background);height:var(--height);margin:calc((var(--height) - var(--thumb-size))/2)0;border:0;border-radius:240px;transition:opacity .2s}.range-tag::-moz-range-thumb{background:var(--thumb-background);border:var(--border-width)solid var(--border-color);cursor:pointer;height:var(--thumb-size);width:var(--thumb-size);border-radius:100%}.range-tag::-webkit-slider-thumb{background:var(--thumb-background);border:var(--border-width)solid var(--border-color);cursor:pointer;height:var(--thumb-size);width:var(--thumb-size);border-radius:100%}.range-tag{appearance:none;outline:none}.range-tag::-moz-range-thumb{appearance:none;outline:none}.range-tag::-webkit-slider-thumb{appearance:none;outline:none}}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import './scss/index.scss';
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
type A = Attributes & {
|
|
9
|
+
'loader'?: Attributes,
|
|
9
10
|
'loader-content'?: Attributes,
|
|
10
11
|
'loader-logo'?: Attributes
|
|
11
12
|
};
|
|
@@ -16,8 +17,7 @@ const OMIT = ['loader-content', 'loader-logo'];
|
|
|
16
17
|
|
|
17
18
|
export default template.factory(
|
|
18
19
|
(attributes: A, content) => {
|
|
19
|
-
let
|
|
20
|
-
state = reactive({
|
|
20
|
+
let state = reactive({
|
|
21
21
|
load: false,
|
|
22
22
|
remove: false,
|
|
23
23
|
scale: false
|
|
@@ -40,7 +40,7 @@ export default template.factory(
|
|
|
40
40
|
state.remove = true;
|
|
41
41
|
}
|
|
42
42
|
}}
|
|
43
|
-
${
|
|
43
|
+
${omit(attributes, OMIT)}
|
|
44
44
|
>
|
|
45
45
|
<div
|
|
46
46
|
class='loader ${() => state.load && 'loader--load'}'
|
|
@@ -49,7 +49,7 @@ export default template.factory(
|
|
|
49
49
|
state.load = true;
|
|
50
50
|
}
|
|
51
51
|
}}
|
|
52
|
-
${
|
|
52
|
+
${attributes.loader}
|
|
53
53
|
>
|
|
54
54
|
${content && html`
|
|
55
55
|
<div class='loader-content' ${attributes['loader-content']}>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use 'variables';
|
|
2
2
|
|
|
3
3
|
.range {
|
|
4
|
-
margin: calc((var(--height) - var(--thumb-size)) / 2) 0;
|
|
5
|
-
|
|
6
4
|
&,
|
|
7
5
|
&-tag {
|
|
8
6
|
width: var(--width);
|
|
@@ -13,6 +11,7 @@
|
|
|
13
11
|
border-radius: 240px;
|
|
14
12
|
border: 0px;
|
|
15
13
|
height: var(--height);
|
|
14
|
+
margin: calc((var(--height) - var(--thumb-size)) / 2) 0;
|
|
16
15
|
transition: opacity .2s;
|
|
17
16
|
|
|
18
17
|
&::-moz-range-thumb,
|