@edux-design/popovers 0.0.2 → 0.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @edux-design/popovers
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated package json deps and peer deps
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated styles
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -59,6 +59,7 @@ var PopoverContent = (0, import_react.forwardRef)(
59
59
  alignOffset = 0,
60
60
  avoidCollisions = true,
61
61
  forceMount = false,
62
+ showArrow = false,
62
63
  contentProps = {},
63
64
  ...restProps
64
65
  }, ref) => {
@@ -79,13 +80,13 @@ var PopoverContent = (0, import_react.forwardRef)(
79
80
  alignOffset,
80
81
  avoidCollisions,
81
82
  forceMount,
82
- className: (0, import_utils.cx)(base, positioning, className, "relative"),
83
+ className: (0, import_utils.cx)(positioning, className, "relative"),
83
84
  style,
84
85
  ...contentProps,
85
86
  ...restProps
86
87
  },
87
88
  children,
88
- /* @__PURE__ */ import_react.default.createElement(
89
+ showArrow && /* @__PURE__ */ import_react.default.createElement(
89
90
  PopoverPrimitive.Arrow,
90
91
  {
91
92
  className: "fill-fg-base",
package/dist/index.mjs CHANGED
@@ -18,6 +18,7 @@ var PopoverContent = forwardRef(
18
18
  alignOffset = 0,
19
19
  avoidCollisions = true,
20
20
  forceMount = false,
21
+ showArrow = false,
21
22
  contentProps = {},
22
23
  ...restProps
23
24
  }, ref) => {
@@ -38,13 +39,13 @@ var PopoverContent = forwardRef(
38
39
  alignOffset,
39
40
  avoidCollisions,
40
41
  forceMount,
41
- className: cx(base, positioning, className, "relative"),
42
+ className: cx(positioning, className, "relative"),
42
43
  style,
43
44
  ...contentProps,
44
45
  ...restProps
45
46
  },
46
47
  children,
47
- /* @__PURE__ */ React.createElement(
48
+ showArrow && /* @__PURE__ */ React.createElement(
48
49
  PopoverPrimitive.Arrow,
49
50
  {
50
51
  className: "fill-fg-base",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edux-design/popovers",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -20,6 +20,12 @@
20
20
  "generate:component": "turbo gen react-component",
21
21
  "check-types": "tsc --noEmit"
22
22
  },
23
+ "peerDependencies": {
24
+ "react": ">=18",
25
+ "react-dom": ">=18",
26
+ "@edux-design/utils": "*",
27
+ "@radix-ui/react-popover": "1.1.15"
28
+ },
23
29
  "devDependencies": {
24
30
  "typescript": "^5.9.2",
25
31
  "tailwindcss": "^4.1.12",
@@ -27,11 +33,5 @@
27
33
  "tsup": "^8.5.0",
28
34
  "@tailwindcss/cli": "^4.1.12",
29
35
  "@tailwindcss/postcss": "^4.1.12"
30
- },
31
- "dependencies": {
32
- "react": "^19.1.0",
33
- "react-dom": "^19.1.0",
34
- "@radix-ui/react-popover": "1.1.15",
35
- "@edux-design/utils": "*"
36
36
  }
37
37
  }