@salemcobalt/ui 0.2.0-rc.26 → 0.2.0-rc.28
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 +6 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +6 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -749,7 +749,8 @@ interface DialogContentProps extends Omit<Dialog$1.Popup.Props, 'className'> {
|
|
|
749
749
|
className?: string | undefined;
|
|
750
750
|
}
|
|
751
751
|
/**
|
|
752
|
-
* Portal, backdrop and the popup. Focus moves inside on open and returns to the trigger on close.
|
|
752
|
+
* Portal, backdrop and the popup. Focus moves inside on open and returns to the trigger on close. A dialog opened
|
|
753
|
+
* from inside another has its own backdrop too, over the first dialog.
|
|
753
754
|
* Menus, selects and tooltips opened from inside render above it (`--sc-z-dropdown` > `--sc-z-dialog`).
|
|
754
755
|
*/
|
|
755
756
|
declare function Content$2({ size, variant, dismissOnSwipe, className, children, ...rest }: DialogContentProps): react.JSX.Element;
|
|
@@ -2736,7 +2737,10 @@ interface PopoverTriggerProps extends Omit<Popover$1.Trigger.Props, 'className'>
|
|
|
2736
2737
|
*/
|
|
2737
2738
|
declare function Trigger({ render, className, children, ...rest }: PopoverTriggerProps): react.JSX.Element;
|
|
2738
2739
|
interface PopoverContentProps extends Omit<Popover$1.Popup.Props, 'className'> {
|
|
2739
|
-
/**
|
|
2740
|
+
/**
|
|
2741
|
+
* Side of the trigger it opens on. Default `bottom`. With no room it flips to the opposite side (`top` for `bottom`),
|
|
2742
|
+
* never to a perpendicular one; when neither side fits, it takes the roomier one and scrolls inside.
|
|
2743
|
+
*/
|
|
2740
2744
|
side?: PopoverSide | undefined;
|
|
2741
2745
|
/** Alignment along that side. Default `center`. */
|
|
2742
2746
|
align?: PopoverAlign | undefined;
|
package/dist/index.js
CHANGED
|
@@ -634,7 +634,7 @@ function Content({
|
|
|
634
634
|
const isSheet = variant === "sheet";
|
|
635
635
|
const swipe = isSheet && dismissOnSwipe && dismissible;
|
|
636
636
|
return /* @__PURE__ */ jsxs5(BaseDialog.Portal, { children: [
|
|
637
|
-
/* @__PURE__ */ jsx6(BaseDialog.Backdrop, { className: "sc-dialog__backdrop" }),
|
|
637
|
+
/* @__PURE__ */ jsx6(BaseDialog.Backdrop, { className: "sc-dialog__backdrop", forceRender: true }),
|
|
638
638
|
/* @__PURE__ */ jsxs5(
|
|
639
639
|
BaseDialog.Popup,
|
|
640
640
|
{
|
|
@@ -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,
|