@hilum/ui 3.6.8 → 3.6.10

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 CHANGED
@@ -1826,9 +1826,10 @@ interface StackedListProps {
1826
1826
  children: React.ReactNode;
1827
1827
  divided?: boolean;
1828
1828
  bordered?: boolean;
1829
+ surface?: "card" | "responsive";
1829
1830
  className?: string;
1830
1831
  }
1831
- declare function StackedList({ children, divided, bordered, className }: StackedListProps): react_jsx_runtime.JSX.Element;
1832
+ declare function StackedList({ children, divided, bordered, surface, className, }: StackedListProps): react_jsx_runtime.JSX.Element;
1832
1833
  interface StackedListItemProps {
1833
1834
  children: React.ReactNode;
1834
1835
  href?: string;
package/dist/index.js CHANGED
@@ -585,9 +585,11 @@ function useProximityIndex(axis = "y") {
585
585
  // src/lib/mobile-popper-sheet.ts
586
586
  var mobileDialogSheetContentClassName = [
587
587
  "fixed inset-x-0 bottom-0 z-50 max-h-[calc(100dvh-1rem)] w-full overflow-y-auto",
588
- "max-lg:!w-full max-lg:!max-w-none max-lg:!rounded-b-none",
588
+ "max-lg:!fixed max-lg:!inset-x-0 max-lg:!bottom-0 max-lg:!top-auto",
589
+ "max-lg:!w-full max-lg:!max-w-none max-lg:!max-h-[calc(100dvh-1rem)]",
590
+ "max-lg:!rounded-b-none max-lg:overscroll-contain",
589
591
  "rounded-t-2xl border border-border bg-card p-6 shadow-elevated",
590
- "max-lg:pb-[calc(1.5rem+env(safe-area-inset-bottom))] max-lg:pt-8",
592
+ "max-lg:!px-5 max-lg:!pb-[calc(1.25rem+env(safe-area-inset-bottom))] max-lg:!pt-8",
591
593
  "max-lg:before:absolute max-lg:before:left-1/2 max-lg:before:top-3 max-lg:before:h-1 max-lg:before:w-9",
592
594
  "max-lg:before:-translate-x-1/2 max-lg:before:rounded-full max-lg:before:bg-muted-foreground/35"
593
595
  ].join(" ");
@@ -8333,7 +8335,17 @@ function DialogHeader({ className, ...props }) {
8333
8335
  return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-1.5 mb-4", className), ...props });
8334
8336
  }
8335
8337
  function DialogFooter({ className, ...props }) {
8336
- return /* @__PURE__ */ jsx("div", { className: cn("flex justify-end gap-2 mt-6", className), ...props });
8338
+ return /* @__PURE__ */ jsx(
8339
+ "div",
8340
+ {
8341
+ className: cn(
8342
+ "mt-6 flex justify-end gap-2",
8343
+ "max-sm:flex-col-reverse max-sm:[&>*]:w-full",
8344
+ className
8345
+ ),
8346
+ ...props
8347
+ }
8348
+ );
8337
8349
  }
8338
8350
  var DialogTitle = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8339
8351
  DialogPrimitive.Title,
@@ -13514,7 +13526,13 @@ function SectionHeading({
13514
13526
  }
13515
13527
  );
13516
13528
  }
13517
- function StackedList({ children, divided = true, bordered = true, className }) {
13529
+ function StackedList({
13530
+ children,
13531
+ divided = true,
13532
+ bordered = true,
13533
+ surface = "card",
13534
+ className
13535
+ }) {
13518
13536
  return /* @__PURE__ */ jsx(
13519
13537
  "ul",
13520
13538
  {
@@ -13523,6 +13541,7 @@ function StackedList({ children, divided = true, bordered = true, className }) {
13523
13541
  "overflow-hidden rounded-xl bg-card",
13524
13542
  bordered && "border border-border shadow-natural",
13525
13543
  divided && "divide-y divide-border",
13544
+ surface === "responsive" && "rounded-lg shadow-none max-sm:rounded-none max-sm:border-x-0 max-sm:bg-transparent",
13526
13545
  className
13527
13546
  ),
13528
13547
  children