@kubex/zinc 1.1.57 → 1.1.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubex/zinc",
3
- "version": "1.1.57",
3
+ "version": "1.1.58",
4
4
  "description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
5
5
  "keywords": [
6
6
  "web components",
@@ -112,6 +112,7 @@
112
112
  /* Border radii */
113
113
  --zn-border-radius: 6px;
114
114
  --zn-border-radius-small: 2px;
115
+ --zn-border-radius-x-large: var(--zn-border-radius); // For backwards compat modal border radius
115
116
  --zn-border-radius-circle: 50%;
116
117
  --zn-border-radius-pill: 9999px;
117
118
 
@@ -74,7 +74,7 @@ export default class ZnCols extends ZincElement {
74
74
  });
75
75
 
76
76
  return html`
77
- <div class="${classMap({
77
+ <div part="base" class="${classMap({
78
78
  'cols': true,
79
79
  'cols--no-gap': this.noGap,
80
80
  'cols--border': this.border,
@@ -83,3 +83,7 @@
83
83
  grid-column: span 5 / span 5;
84
84
  }
85
85
  }
86
+
87
+ zn-cols::part(base) {
88
+ gap: 70px;
89
+ }
@@ -19,8 +19,8 @@
19
19
  cursor: pointer;
20
20
  border-radius: 12px;
21
21
  align-items: center;
22
- background-color: rgba(0, 0, 0, 0.15);
23
- border: 0.92px solid transparent;
22
+ background-color: rgb(var(--zn-color-tab));
23
+ border: 0.92px solid rgb(var(--zn-color-tab));
24
24
  margin: var(--zn-toggle-margin);
25
25
  transition: color .2s ease-in-out, background-color .4s ease-in-out, border-color .2s ease-in-out;
26
26
  }
@@ -34,7 +34,7 @@
34
34
  border-color: rgb(var(--zn-color-primary));
35
35
 
36
36
  .switch__control {
37
- transform: translate(16px, -50%);
37
+ left: calc(100% - 20.32px - 0.92px);
38
38
  }
39
39
  }
40
40
 
@@ -54,15 +54,15 @@
54
54
  pointer-events: none;
55
55
  position: absolute;
56
56
  top: 50%;
57
- left: 3px;
58
- width: 20px;
59
- height: 20px;
57
+ left: 0.92px;
58
+ width: 20.32px;
59
+ height: 20.32px;
60
60
  border-radius: 50%;
61
61
  background: #fff;
62
- box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.1) 0 1px 2px -1px;
62
+ box-shadow: 0 2px 4px 0 rgba(var(--zn-color-text), 0.1);
63
63
 
64
64
  transform: translateY(-50%);
65
- transition: transform .3s ease-in-out, background-color .4s ease-in-out;
65
+ transition: left .3s ease-in-out, background-color .4s ease-in-out;
66
66
  outline: none;
67
67
  }
68
68
 
@@ -87,7 +87,7 @@
87
87
 
88
88
  :host([checked]) .switch__wrapper--small .switch__input-wrapper {
89
89
  .switch__control {
90
- transform: translate(13px, -50%);
90
+ left: calc(100% - 14px - 0.92px);
91
91
  }
92
92
  }
93
93