@esportsplus/ui 0.25.0 → 0.25.3

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.
@@ -1,2 +1,2 @@
1
- @layer components {.range{--background-default:var(--color-black-300);--border-width:var(--border-width-700);--height:var(--size-200);--thumb-background:var(--color-white-400);--thumb-size:var(--size-400);--width:100%;margin:calc((var(--height) - var(--thumb-size))/2)0}.range-tag{background:var(--background);height:var(--height);width:var(--width);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}}
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{margin:calc((var(--height) - var(--thumb-size))/2)0}.range,.range-tag{width:var(--width)}.range-tag{background:var(--background);height:var(--height);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
@@ -4,7 +4,7 @@
4
4
  "@esportsplus/action": "^0.0.58",
5
5
  "@esportsplus/queue": "^0.1.0",
6
6
  "@esportsplus/reactivity": "^0.16.7",
7
- "@esportsplus/template": "^0.23.1",
7
+ "@esportsplus/template": "^0.23.2",
8
8
  "@esportsplus/utilities": "^0.22.1",
9
9
  "modern-normalize": "^3.0.1"
10
10
  },
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.25.0",
51
+ "version": "0.25.3",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -1,4 +1,3 @@
1
- @use '/lib';
2
1
  @use '/tokens';
3
2
 
4
3
  .radio {
@@ -3,13 +3,17 @@
3
3
  .range {
4
4
  margin: calc((var(--height) - var(--thumb-size)) / 2) 0;
5
5
 
6
+ &,
7
+ &-tag {
8
+ width: var(--width);
9
+ }
10
+
6
11
  &-tag {
7
12
  background: var(--background);
8
13
  border-radius: 240px;
9
14
  border: 0px;
10
15
  height: var(--height);
11
16
  transition: opacity .2s;
12
- width: var(--width);
13
17
 
14
18
  &::-moz-range-thumb,
15
19
  &::-webkit-slider-thumb {
@@ -1,8 +1,29 @@
1
+ @use '/tokens';
2
+
1
3
  .range {
4
+ --background: var(--background-default);
5
+ --background-active: var(--background-default);
2
6
  --background-default: var(--color-black-300);
7
+ --background-hover: var(--background-default);
8
+ --background-pressed: var(--background-default);
3
9
  --border-width: var(--border-width-700);
4
10
  --height: var(--size-200);
5
11
  --thumb-background: var(--color-white-400);
6
12
  --thumb-size: var(--size-400);
7
13
  --width: 100%;
14
+
15
+ #{tokens.state(inactive, 'label')},
16
+ #{tokens.state(inactive)} {
17
+ @include tokens.state(hover) {
18
+ --background: var(--background-hover);
19
+ }
20
+
21
+ @include tokens.state(pressed) {
22
+ --background: var(--background-pressed);
23
+ }
24
+ }
25
+
26
+ #{tokens.state(active)} {
27
+ --background: var(--background-active);
28
+ }
8
29
  }