@neovici/cosmoz-input 4.3.3 → 5.0.1

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.
Files changed (2) hide show
  1. package/dist/styles.js +9 -3
  2. package/package.json +1 -1
package/dist/styles.js CHANGED
@@ -41,8 +41,6 @@ export const styles = css `
41
41
 
42
42
  display: block;
43
43
  padding: var(--cosmoz-input-padding, 8px 0);
44
- padding-top: var(--paper-input-container_-_padding-top, 8px);
45
- padding-bottom: var(--paper-input-container_-_padding-bottom, 8px);
46
44
  position: relative;
47
45
  transition: transform 0.25s, width 0.25s;
48
46
  transform-origin: left top;
@@ -111,7 +109,10 @@ export const styles = css `
111
109
  text-transform: var(--cosmoz-input-label-text-transform);
112
110
  font-weight: var(--cosmoz-input-label-font-weight);
113
111
  }
114
-
112
+ .wrap:has(#input:not(:placeholder-shown)) slot[name='suffix']::slotted(*),
113
+ .wrap:has(#input:not(:placeholder-shown)) slot[name='prefix']::slotted(*) {
114
+ transform: translateY(var(--label-translate-y));
115
+ }
115
116
  :host([always-float-label]) label,
116
117
  #input:not(:placeholder-shown) + label {
117
118
  transform: translateY(
@@ -126,6 +127,11 @@ export const styles = css `
126
127
  transform: translateY(var(--label-translate-y));
127
128
  }
128
129
 
130
+ :host([always-float-label]) slot[name='suffix']::slotted(*),
131
+ :host([always-float-label]) slot[name='prefix']::slotted(*) {
132
+ transform: translateY(var(--label-translate-y));
133
+ }
134
+
129
135
  :host(:not(always-float-label):focus-within) #input::placeholder,
130
136
  :host(:focus-within) label {
131
137
  color: var(--focused-color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "4.3.3",
3
+ "version": "5.0.1",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",