@neovici/cosmoz-dropdown 7.0.1 → 7.0.2

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.
@@ -1,8 +1,8 @@
1
- import { UseFocusOpts } from './use-focus';
2
1
  import { Content } from './cosmoz-dropdown-content';
3
2
  import { UseFloating } from './use-floating';
3
+ import { UseFocusOpts } from './use-focus';
4
4
  export interface Props extends UseFocusOpts, UseFloating {
5
5
  render: () => unknown;
6
6
  }
7
7
  declare const Dropdown: (host: HTMLElement & Props) => import("lit-html").TemplateResult<1>;
8
- export { Dropdown, Content };
8
+ export { Content, Dropdown };
@@ -1,12 +1,12 @@
1
1
  import { component, css } from '@pionjs/pion';
2
2
  import { html, nothing } from 'lit-html';
3
- import { when } from 'lit-html/directives/when.js';
3
+ import { guard } from 'lit-html/directives/guard.js';
4
4
  import { ref } from 'lit-html/directives/ref.js';
5
5
  import { styleMap } from 'lit-html/directives/style-map.js';
6
- import { guard } from 'lit-html/directives/guard.js';
7
- import { useHostFocus } from './use-focus';
6
+ import { when } from 'lit-html/directives/when.js';
8
7
  import { Content } from './cosmoz-dropdown-content';
9
8
  import { useFloating } from './use-floating';
9
+ import { useHostFocus } from './use-focus';
10
10
  const preventDefault = (e) => e.preventDefault();
11
11
  const style = css `
12
12
  .anchor {
@@ -15,6 +15,10 @@ const style = css `
15
15
  }
16
16
  button {
17
17
  pointer-events: auto;
18
+ border: none;
19
+ cursor: pointer;
20
+ background: transparent;
21
+ padding: 0;
18
22
  }
19
23
  ::slotted(svg) {
20
24
  pointer-events: none;
@@ -55,4 +59,4 @@ const Dropdown = (host) => {
55
59
  > `)}`;
56
60
  };
57
61
  customElements.define('cosmoz-dropdown', component(Dropdown, { styleSheets: [style] }));
58
- export { Dropdown, Content };
62
+ export { Content, Dropdown };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-dropdown",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "A simple dropdown web component",
5
5
  "keywords": [
6
6
  "lit-html",
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "scripts": {
24
24
  "lint": "tsc && eslint --cache .",
25
+ "check:duplicates": "check-duplicate-components",
25
26
  "build": "tsc -p tsconfig.build.json",
26
27
  "start": "wds",
27
28
  "test": "wtr --coverage",
@@ -79,7 +80,7 @@
79
80
  "devDependencies": {
80
81
  "@commitlint/cli": "^20.0.0",
81
82
  "@commitlint/config-conventional": "^20.0.0",
82
- "@neovici/cfg": "^1.51.0",
83
+ "@neovici/cfg": "^2.8.0",
83
84
  "@open-wc/testing": "^4.0.0",
84
85
  "@semantic-release/changelog": "^6.0.0",
85
86
  "@semantic-release/git": "^10.0.0",
@@ -89,6 +90,7 @@
89
90
  "esbuild": "^0.25.0",
90
91
  "http-server": "^14.1.1",
91
92
  "husky": "^9.0.11",
93
+ "lint-staged": "^16.2.7",
92
94
  "rollup-plugin-esbuild": "^6.1.1",
93
95
  "semantic-release": "^25.0.0",
94
96
  "sinon": "^21.0.0",