@sarunyu/system-one 4.9.26 → 4.9.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.js CHANGED
@@ -1515,11 +1515,20 @@ function BottomSheet({
1515
1515
  className,
1516
1516
  contentClassName
1517
1517
  }) {
1518
- return /* @__PURE__ */ jsxs(Drawer, { direction: "bottom", open, onOpenChange, children: [
1518
+ const [everOpened, setEverOpened] = useState(!!open);
1519
+ useEffect(() => {
1520
+ if (open) setEverOpened(true);
1521
+ }, [open]);
1522
+ const handleOpenChange = (next) => {
1523
+ if (next) setEverOpened(true);
1524
+ onOpenChange == null ? void 0 : onOpenChange(next);
1525
+ };
1526
+ return /* @__PURE__ */ jsxs(Drawer, { direction: "bottom", open, onOpenChange: handleOpenChange, children: [
1519
1527
  trigger ? /* @__PURE__ */ jsx(DrawerTrigger, { asChild: true, children: trigger }) : null,
1520
- /* @__PURE__ */ jsxs(
1528
+ everOpened && /* @__PURE__ */ jsxs(
1521
1529
  DrawerContent,
1522
1530
  {
1531
+ "aria-describedby": void 0,
1523
1532
  className: cn(
1524
1533
  "[&>div:first-child]:hidden rounded-t-[24px] border-t-0 px-4 pb-6 pt-2",
1525
1534
  className