@commander-services/cmd-dropdown-portal 1.8.0 → 1.9.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.
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "@commander-services/cmd-dropdown-portal",
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "description": "A cmd dropdown portal component",
5
5
  "type": "module",
6
- "main": "./src/index.tsx",
7
- "module": "./src/index.tsx",
8
- "types": "./src/index.tsx",
6
+ "main": "./src/index.ts",
7
+ "module": "./src/index.ts",
8
+ "types": "./src/index.ts",
9
9
  "exports": {
10
- ".": {
11
- "types": "./src/index.tsx",
12
- "import": "./src/index.tsx",
13
- "require": "./src/index.tsx"
14
- },
10
+ ".": "./src/index.ts",
15
11
  "./styles.css": "./src/styles.css",
16
12
  "./CHANGELOG.md": "./CHANGELOG.md"
17
13
  },
@@ -46,7 +42,7 @@
46
42
  "vitest": "^3.2.2"
47
43
  },
48
44
  "dependencies": {
49
- "@commander-services/cmd-hooks": "1.2.0"
45
+ "@commander-services/cmd-hooks": "1.3.1"
50
46
  },
51
47
  "scripts": {
52
48
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
@@ -97,6 +97,7 @@ function CmdDropdownPortal(props: CmdDropdownPortalProps): JSX.Element | null {
97
97
  className="font-poppins"
98
98
  id={`cmd-dropdown-portal-${props.elementId}`}
99
99
  ref={clickOutsideRef}
100
+ data-testid={`cmd-dropdown-portal-${props.elementId}`}
100
101
  style={{
101
102
  position: 'absolute',
102
103
  left: position.left,
package/src/styles.css CHANGED
@@ -1,18 +1,9 @@
1
- /* @import 'tailwindcss'; */
2
1
 
3
2
  @theme {
4
3
  --font-*: initial;
5
4
  --font-poppins: Poppins, sans-serif;
6
5
  }
7
6
 
8
- /*
9
- The default border color has changed to `currentColor` in Tailwind CSS v4,
10
- so we've added these compatibility styles to make sure everything still
11
- looks the same as it did with Tailwind CSS v3.
12
-
13
- If we ever want to remove these styles, we need to add an explicit border
14
- color utility to any element that depends on these defaults.
15
- */
16
7
  @layer base {
17
8
  *,
18
9
  ::after,