@neovici/cosmoz-input 6.1.0 → 6.2.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.
@@ -12,6 +12,7 @@ const observedAttributes = [
12
12
  'placeholder',
13
13
  'label',
14
14
  'hint',
15
+ 'compact',
15
16
  'required',
16
17
  ...attributes,
17
18
  ];
package/dist/styles.js CHANGED
@@ -13,7 +13,7 @@ export const styles = css `
13
13
  }
14
14
 
15
15
  :host(:not([compact])) {
16
- margin-bottom: calc(var(--cz-spacing) * 6);
16
+ margin-bottom: calc(var(--cz-spacing) * 3);
17
17
  }
18
18
 
19
19
  :host(:focus-within) {
@@ -111,14 +111,10 @@ export const styles = css `
111
111
  .hint {
112
112
  font-size: var(--cz-text-xs);
113
113
  color: var(--cz-color-text-tertiary);
114
- position: absolute;
115
- bottom: calc(var(--cz-spacing) * -6);
116
114
  }
117
115
 
118
116
  .error {
119
117
  font-size: var(--cz-text-xs);
120
- position: absolute;
121
- bottom: calc(var(--cz-spacing) * -6);
122
118
  }
123
119
 
124
120
  /* === Tooltip (fluid error indicator) === */
@@ -243,6 +239,7 @@ export const styles = css `
243
239
  }
244
240
 
245
241
  :host([variant='cell']) .error {
242
+ position: absolute;
246
243
  left: calc(var(--cz-spacing) * 3);
247
244
  bottom: 50%;
248
245
  transform: translateY(50%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",
@@ -69,7 +69,7 @@
69
69
  "@changesets/cli": "^3.0.1",
70
70
  "@commitlint/cli": "^21.0.0",
71
71
  "@commitlint/config-conventional": "^21.0.1",
72
- "@neovici/cfg": "^2.8.0",
72
+ "@neovici/cfg": "^2.15.0",
73
73
  "@neovici/testing": "^2.3.0",
74
74
  "@playwright/test": "1.62.1",
75
75
  "@storybook/addon-a11y": "^10.4.6",