@dimasbaguspm/versaur 0.0.33 → 0.0.34

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/js/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { L as e, P as s, S as r } from "./skeleton-BNZyaRjo.js";
2
- import { A as n, a as p, B as u, b as i, F as l, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-Bg-zMaFY.js";
3
- import { B as b, C as T, b as x, a as h, D as f, k as C, E as P, M, P as k, R as A, d as F, c as D, S as L, e as R, j as w, i as G, h as j, f as v, T as y, g as E } from "./bottom-sheet-input-DRcyjeGh.js";
4
- import { B as q, D as H, M as z } from "./bottom-sheet-B3Rt2JC5.js";
5
- import { A as K, a as O, b as Q, c as U, d as V, B as W, p as X, e as Y, f as Z, h as _, i as $, g as aa, C as ta, j as ea, F as sa, I as ra, m as oa, o as na, n as pa, M as ua, N as ia, T as la, k as Ia, l as ca } from "./image-rectangle-oPc5hFMM.js";
6
- import { T as ma } from "./tooltip-DNKTNCQm.js";
2
+ import { A as n, a as p, B as u, b as i, F as l, e as I, P as c, c as S, d as m, S as B, T as g } from "./top-bar-CW5RI_Xd.js";
3
+ import { B as b, C as T, b as x, a as h, D as f, k as C, E as P, M, P as k, R as A, d as F, c as D, S as L, e as R, j as w, i as G, h as j, f as v, T as y, g as E } from "./bottom-sheet-input-86f0OVXf.js";
4
+ import { B as q, D as H, M as z } from "./bottom-sheet-DNCxKsrR.js";
5
+ import { A as K, a as O, b as Q, c as U, d as V, B as W, p as X, e as Y, f as Z, h as _, i as $, g as aa, C as ta, j as ea, F as sa, I as ra, m as oa, o as na, n as pa, M as ua, N as ia, T as la, k as Ia, l as ca } from "./image-rectangle-VLG1D0Cd.js";
6
+ import { T as ma } from "./tooltip-B_bTyMQN.js";
7
7
  import { S as ga } from "./snackbar-DH8jCh2V.js";
8
- import { B as ba, T as Ta } from "./tabs-CKLbsCWq.js";
8
+ import { B as ba, T as Ta } from "./tabs-DwXZsJC-.js";
9
9
  import { S as ha, u as fa } from "./use-snackbars-B0MaRlg1.js";
10
10
  export {
11
11
  K as Alert,
@@ -1,4 +1,4 @@
1
- import { A as r, a as e, B as s, b as t, F as p, e as B, P as u, c as d, d as g, S as P, T as i } from "../top-bar-Bg-zMaFY.js";
1
+ import { A as r, a as e, B as s, b as t, F as p, e as B, P as u, c as d, d as g, S as P, T as i } from "../top-bar-CW5RI_Xd.js";
2
2
  export {
3
3
  r as AppBar,
4
4
  e as BadgeGroup,
@@ -1,4 +1,4 @@
1
- import { B as s, T as b } from "../tabs-CKLbsCWq.js";
1
+ import { B as s, T as b } from "../tabs-DwXZsJC-.js";
2
2
  export {
3
3
  s as Breadcrumbs,
4
4
  b as Tabs
@@ -1,6 +1,6 @@
1
- import { B as a, D as e, M as t } from "../bottom-sheet-B3Rt2JC5.js";
2
- import { M as m } from "../image-rectangle-oPc5hFMM.js";
3
- import { T as M } from "../tooltip-DNKTNCQm.js";
1
+ import { B as a, D as e, M as t } from "../bottom-sheet-DNCxKsrR.js";
2
+ import { M as m } from "../image-rectangle-VLG1D0Cd.js";
3
+ import { T as M } from "../tooltip-B_bTyMQN.js";
4
4
  export {
5
5
  a as BottomSheet,
6
6
  e as Drawer,
@@ -1,4 +1,4 @@
1
- import { A as t, a as e, b as o, c as r, d as n, B as l, p as u, e as c, f as i, h as B, i as I, g, C as m, j as A, F as b, I as C, m as d, o as p, n as T, N as f, T as h, k as x, l as F } from "../image-rectangle-oPc5hFMM.js";
1
+ import { A as t, a as e, b as o, c as r, d as n, B as l, p as u, e as c, f as i, h as B, i as I, g, C as m, j as A, F as b, I as C, m as d, o as p, n as T, N as f, T as h, k as x, l as F } from "../image-rectangle-VLG1D0Cd.js";
2
2
  import { S as k } from "../snackbar-DH8jCh2V.js";
3
3
  export {
4
4
  t as Alert,
@@ -1,6 +1,6 @@
1
1
  import { c as d, j as s, a as u } from "./index-DOdDlCoL.js";
2
2
  import { forwardRef as f, createContext as x, useContext as g, useState as p, useLayoutEffect as y, useRef as h } from "react";
3
- import { I as w } from "./image-rectangle-oPc5hFMM.js";
3
+ import { I as w } from "./image-rectangle-VLG1D0Cd.js";
4
4
  import "./snackbar-DH8jCh2V.js";
5
5
  import { ChevronRight as T } from "lucide-react";
6
6
  const j = d(
@@ -1,6 +1,6 @@
1
1
  import { c as v, j as c, a as w } from "./index-DOdDlCoL.js";
2
2
  import { useRef as m, useState as d, useEffect as h, useId as T, cloneElement as j } from "react";
3
- import { k as y } from "./image-rectangle-oPc5hFMM.js";
3
+ import { k as y } from "./image-rectangle-VLG1D0Cd.js";
4
4
  function P(e = "auto") {
5
5
  const n = m(null), [a, t] = d("bottom");
6
6
  return h(() => {
@@ -1,7 +1,7 @@
1
1
  import { c as i, j as s, a as l } from "./index-DOdDlCoL.js";
2
2
  import * as b from "react";
3
3
  import { forwardRef as o } from "react";
4
- import { k as u } from "./image-rectangle-oPc5hFMM.js";
4
+ import { k as u } from "./image-rectangle-VLG1D0Cd.js";
5
5
  import "./snackbar-DH8jCh2V.js";
6
6
  const j = i(
7
7
  "w-full flex flex-wrap items-center pt-3 mb-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-leading]]:pl-4 [&:has([data-versaur-appbar-bottom])>[data-versaur-appbar-trailing]]:pr-4 [&:not(:has([data-versaur-appbar-bottom]))]:px-4",
@@ -1,9 +1,5 @@
1
1
  import { MenuPlacement } from './types';
2
2
  export declare function useMenuOutsideClick(isOpen: boolean, contentRef: React.RefObject<HTMLDivElement | null>, triggerRef: React.RefObject<HTMLButtonElement | null>, onOutsideClick: () => void): void;
3
- /**
4
- * Menu-specific escape close hook that doesn't disable body scrolling
5
- */
6
- export declare function useMenuEscapeClose(isOpen: boolean, onClose: () => void): void;
7
3
  interface MenuPosition {
8
4
  top?: number;
9
5
  bottom?: number;
@@ -11,6 +7,8 @@ interface MenuPosition {
11
7
  right?: number;
12
8
  maxHeight?: number;
13
9
  maxWidth?: number;
10
+ position?: 'absolute' | 'fixed';
11
+ isReady?: boolean;
14
12
  }
15
13
  export declare function useMenuPosition(isOpen: boolean, triggerRef: React.RefObject<HTMLElement | null>, contentRef: React.RefObject<HTMLDivElement | null>, placement?: MenuPlacement, container?: HTMLElement | null): MenuPosition;
16
14
  export {};
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IconProps } from '../icon';
3
3
  import { ButtonIconProps } from '../button-icon';
4
+ import { MenuPlacement } from '../../overlays/menu/types';
4
5
  export interface ButtonMenuIconProps extends Omit<ButtonIconProps, 'content'>, Pick<IconProps, 'as'> {
5
6
  /**
6
7
  * Callback function triggered when the menu open state changes.
@@ -10,4 +11,14 @@ export interface ButtonMenuIconProps extends Omit<ButtonIconProps, 'content'>, P
10
11
  * The content to be displayed inside the menu.
11
12
  */
12
13
  children: ReactNode;
14
+ /**
15
+ * Preferred placement of the menu relative to the button.
16
+ * @default 'bottom-start'
17
+ */
18
+ placement?: MenuPlacement;
19
+ /**
20
+ * Container element to respect boundaries for menu positioning.
21
+ * Defaults to viewport if not provided.
22
+ */
23
+ container?: HTMLElement | null;
13
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",