@neovici/cosmoz-autocomplete 13.7.0-beta.4 → 13.7.0-beta.6
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.
|
@@ -19,6 +19,15 @@ export default css `
|
|
|
19
19
|
margin-top: var(--cz-spacing);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
cosmoz-input[variant='inline'] cosmoz-tag {
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin-left: var(--cz-spacing);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
cosmoz-input[variant='inline'] cosmoz-tag:first-of-type {
|
|
28
|
+
margin-left: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
22
31
|
cosmoz-tag {
|
|
23
32
|
align-items: center;
|
|
24
33
|
margin-left: calc(var(--cz-spacing) * 2);
|
|
@@ -33,7 +33,7 @@ const overflow = (host) => {
|
|
|
33
33
|
};
|
|
34
34
|
export const useOverflow = ({ value, opened, wrap, limit, }) => {
|
|
35
35
|
const host = useHost();
|
|
36
|
-
const enabled = !(wrap || limit === 1);
|
|
36
|
+
const enabled = !(wrap || limit === 1) && value.length > 0;
|
|
37
37
|
const doRaf = useMemo(() => raf(() => overflow(host)), []);
|
|
38
38
|
const [width, setWidth] = useState(0);
|
|
39
39
|
useLayoutEffect(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-autocomplete",
|
|
3
|
-
"version": "13.7.0-beta.
|
|
3
|
+
"version": "13.7.0-beta.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A autocomplete input web component",
|
|
6
6
|
"keywords": [
|
|
@@ -37,18 +37,8 @@
|
|
|
37
37
|
"storybook:start": "storybook dev -p 8000",
|
|
38
38
|
"storybook:build": "storybook build",
|
|
39
39
|
"storybook:deploy": "storybook-to-ghpages",
|
|
40
|
-
"storybook:preview": "npm run storybook:build && http-server ./storybook-static/ --silent"
|
|
41
|
-
|
|
42
|
-
"release": {
|
|
43
|
-
"plugins": [
|
|
44
|
-
"@semantic-release/commit-analyzer",
|
|
45
|
-
"@semantic-release/release-notes-generator",
|
|
46
|
-
"@semantic-release/changelog",
|
|
47
|
-
"@semantic-release/github",
|
|
48
|
-
"@semantic-release/npm",
|
|
49
|
-
"@semantic-release/git"
|
|
50
|
-
],
|
|
51
|
-
"preset": "conventionalcommits"
|
|
40
|
+
"storybook:preview": "npm run storybook:build && http-server ./storybook-static/ --silent",
|
|
41
|
+
"changeset": "changeset"
|
|
52
42
|
},
|
|
53
43
|
"publishConfig": {
|
|
54
44
|
"access": "public"
|
|
@@ -89,13 +79,11 @@
|
|
|
89
79
|
"lit-html": "^2.0.0 || ^3.0.0"
|
|
90
80
|
},
|
|
91
81
|
"devDependencies": {
|
|
82
|
+
"@changesets/cli": "^2.27.0",
|
|
92
83
|
"@commitlint/cli": "^20.0.0",
|
|
93
84
|
"@commitlint/config-conventional": "^20.0.0",
|
|
94
85
|
"@neovici/cfg": "^2.8.0",
|
|
95
|
-
"@playwright/test": "
|
|
96
|
-
"@semantic-release/changelog": "^6.0.0",
|
|
97
|
-
"@semantic-release/git": "^10.0.0",
|
|
98
|
-
"@storybook/addon-a11y": "^10.3.4",
|
|
86
|
+
"@playwright/test": "1.60.0",
|
|
99
87
|
"@storybook/addon-docs": "^10.0.0",
|
|
100
88
|
"@storybook/addon-vitest": "^10.0.0",
|
|
101
89
|
"@storybook/web-components-vite": "^10.0.0",
|
|
@@ -110,7 +98,6 @@
|
|
|
110
98
|
"lint-staged": "^16.2.7",
|
|
111
99
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
112
100
|
"rollup-plugin-terser": "^7.0.2",
|
|
113
|
-
"semantic-release": "^25.0.0",
|
|
114
101
|
"shadow-dom-testing-library": "^1.13.1",
|
|
115
102
|
"sinon": "^19.0.0",
|
|
116
103
|
"storybook": "^10.0.0",
|