@edux-design/popovers 0.0.1 → 0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @edux-design/popovers
2
2
 
3
+ ## 0.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated popover style
8
+
3
9
  ## 0.0.1
4
10
 
5
11
  ### Patch Changes
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.2",
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
  );