@esportsplus/ui 0.21.9 → 0.22.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.
@@ -1,2 +1,2 @@
1
- @layer components {.border{--border-color:var(--border-color-default);--border-color-default:var(--color-border-400);--border-style:solid;--border-width:var(--border-width-400);border-top:var(--border-width)var(--border-style)var(--border-color);width:100%;position:relative}.border+.border{display:none}}
1
+ @layer components {.border{--border-color:var(--border-color-default);--border-color-default:var(--color-border-400);--border-style:solid;--border-width:var(--border-width-400);border-top:var(--border-width)var(--border-style)var(--border-color);z-index:-1;width:100%;position:relative}.border+.border{display:none}.border--offset-top{margin-top:calc(var(--border-width)*-1)}}
2
2
  /*$vite$:1*/
@@ -6,6 +6,9 @@ const OMIT_FIELD = ['state'];
6
6
  const OMIT_TAG = ['field-mask-tag'];
7
7
  function mask(attributes, modifier, state) {
8
8
  let a = attributes['field-mask-tag'] || {};
9
+ if (a.checked) {
10
+ state.active = true;
11
+ }
9
12
  return html `
10
13
  <div
11
14
  class='field-mask'
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "glob": "^11.0.3",
16
16
  "lightningcss": "^1.30.1",
17
17
  "npm-run-all": "^4.1.5",
18
- "sass": "^1.90.0",
18
+ "sass": "^1.91.0",
19
19
  "vite": "^7.1.3"
20
20
  },
21
21
  "exports": {
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.21.9",
51
+ "version": "0.22.0",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -4,9 +4,14 @@
4
4
  border-top: var(--border-width) var(--border-style) var(--border-color);
5
5
  position: relative;
6
6
  width: 100%;
7
+ z-index: -1;
7
8
 
8
9
 
9
10
  & + & {
10
11
  display: none;
11
12
  }
13
+
14
+ &--offset-top {
15
+ margin-top: calc(var(--border-width) * -1);
16
+ }
12
17
  }
@@ -17,6 +17,10 @@ const OMIT_TAG = ['field-mask-tag'];
17
17
  function mask(attributes: A, modifier: string, state: { active: boolean }) {
18
18
  let a = attributes['field-mask-tag'] || {};
19
19
 
20
+ if (a.checked) {
21
+ state.active = true;
22
+ }
23
+
20
24
  return html`
21
25
  <div
22
26
  class='field-mask'