@neovici/cosmoz-input 6.0.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
@@ -10,7 +10,10 @@ export const styles = css `
10
10
  font-size: var(--cz-text-base);
11
11
  line-height: var(--cz-text-base-line-height);
12
12
  font-family: var(--cz-font-body);
13
- margin-bottom: calc(var(--cz-spacing) * 6);
13
+ }
14
+
15
+ :host(:not([compact])) {
16
+ margin-bottom: calc(var(--cz-spacing) * 3);
14
17
  }
15
18
 
16
19
  :host(:focus-within) {
@@ -108,14 +111,10 @@ export const styles = css `
108
111
  .hint {
109
112
  font-size: var(--cz-text-xs);
110
113
  color: var(--cz-color-text-tertiary);
111
- position: absolute;
112
- bottom: calc(var(--cz-spacing) * -6);
113
114
  }
114
115
 
115
116
  .error {
116
117
  font-size: var(--cz-text-xs);
117
- position: absolute;
118
- bottom: calc(var(--cz-spacing) * -6);
119
118
  }
120
119
 
121
120
  /* === Tooltip (fluid error indicator) === */
@@ -240,6 +239,7 @@ export const styles = css `
240
239
  }
241
240
 
242
241
  :host([variant='cell']) .error {
242
+ position: absolute;
243
243
  left: calc(var(--cz-spacing) * 3);
244
244
  bottom: 50%;
245
245
  transform: translateY(50%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-input",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "A input web component",
5
5
  "keywords": [
6
6
  "lit-html",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@neovici/cosmoz-icons": "^1.6.0",
62
- "@neovici/cosmoz-tokens": "^3.5.1",
62
+ "@neovici/cosmoz-tokens": "^4.1.0",
63
63
  "@neovici/cosmoz-tooltip": "^1.2.1",
64
64
  "@neovici/cosmoz-utils": "^6.0.0",
65
65
  "@pionjs/pion": "^2.0.0",
@@ -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",