@salemcobalt/ui 0.2.0-rc.26 → 0.2.0-rc.27
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/dist/index.d.ts +4 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2736,7 +2736,10 @@ interface PopoverTriggerProps extends Omit<Popover$1.Trigger.Props, 'className'>
|
|
|
2736
2736
|
*/
|
|
2737
2737
|
declare function Trigger({ render, className, children, ...rest }: PopoverTriggerProps): react.JSX.Element;
|
|
2738
2738
|
interface PopoverContentProps extends Omit<Popover$1.Popup.Props, 'className'> {
|
|
2739
|
-
/**
|
|
2739
|
+
/**
|
|
2740
|
+
* Side of the trigger it opens on. Default `bottom`. With no room it flips to the opposite side (`top` for `bottom`),
|
|
2741
|
+
* never to a perpendicular one; when neither side fits, it takes the roomier one and scrolls inside.
|
|
2742
|
+
*/
|
|
2740
2743
|
side?: PopoverSide | undefined;
|
|
2741
2744
|
/** Alignment along that side. Default `center`. */
|
|
2742
2745
|
align?: PopoverAlign | undefined;
|
package/dist/index.js
CHANGED
|
@@ -3310,6 +3310,7 @@ function Trigger3({ render, className, children, ...rest }) {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
);
|
|
3312
3312
|
}
|
|
3313
|
+
var COLLISION_AVOIDANCE = { fallbackAxisSide: "none" };
|
|
3313
3314
|
function Content3({
|
|
3314
3315
|
side = "bottom",
|
|
3315
3316
|
align = "center",
|
|
@@ -3327,6 +3328,7 @@ function Content3({
|
|
|
3327
3328
|
align,
|
|
3328
3329
|
sideOffset: sideOffset ?? (arrow ? 8 : 4),
|
|
3329
3330
|
anchor,
|
|
3331
|
+
collisionAvoidance: COLLISION_AVOIDANCE,
|
|
3330
3332
|
className: "sc-popover__positioner",
|
|
3331
3333
|
children: /* @__PURE__ */ jsxs27(BasePopover.Popup, { className: cx("sc-popover", className), ...rest, children: [
|
|
3332
3334
|
arrow ? /* @__PURE__ */ jsx32(BasePopover.Arrow, { className: "sc-popover__arrow" }) : null,
|