@edux-design/popovers 0.0.1 → 0.0.3

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.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated styles
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated popover style
14
+
3
15
  ## 0.0.1
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.1",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -109,6 +109,7 @@ export const PopoverContent = forwardRef(
109
109
  alignOffset = 0,
110
110
  avoidCollisions = true,
111
111
  forceMount = false,
112
+ showArrow = false,
112
113
  contentProps = {},
113
114
  ...restProps
114
115
  },
@@ -135,17 +136,19 @@ export const PopoverContent = forwardRef(
135
136
  alignOffset={alignOffset}
136
137
  avoidCollisions={avoidCollisions}
137
138
  forceMount={forceMount}
138
- className={cx(base, positioning, className, "relative")}
139
+ className={cx(positioning, className, "relative")}
139
140
  style={style}
140
141
  {...contentProps}
141
142
  {...restProps}
142
143
  >
143
144
  {children}
144
- <PopoverPrimitive.Arrow
145
- className="fill-fg-base"
146
- width={12}
147
- height={8}
148
- />
145
+ {showArrow && (
146
+ <PopoverPrimitive.Arrow
147
+ className="fill-fg-base"
148
+ width={12}
149
+ height={8}
150
+ />
151
+ )}
149
152
  </PopoverPrimitive.Content>
150
153
  </PopoverPortal>
151
154
  );