@hilum/ui 3.6.4 → 3.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilum/ui",
3
- "version": "3.6.4",
3
+ "version": "3.6.5",
4
4
  "private": false,
5
5
  "description": "Hilum UI — design system primitives (Button, Input, Dialog, Combobox, …) + tokens + fonts + icons",
6
6
  "license": "MIT",
@@ -84,10 +84,10 @@ const DialogContent = forwardRef<HTMLDivElement, DialogContentProps>(
84
84
  size === "sm"
85
85
  ? container
86
86
  ? "max-w-[400px]"
87
- : "sm:max-w-[400px]"
87
+ : "lg:max-w-[400px]"
88
88
  : container
89
89
  ? "max-w-[540px]"
90
- : "sm:max-w-[540px]";
90
+ : "lg:max-w-[540px]";
91
91
 
92
92
  return (
93
93
  <DialogPrimitive.Portal forceMount container={container ?? undefined}>
@@ -1,19 +1,20 @@
1
1
  export const mobileDialogSheetContentClassName = [
2
2
  "fixed inset-x-0 bottom-0 z-50 max-h-[calc(100dvh-1rem)] w-full overflow-y-auto",
3
+ "max-lg:!w-full max-lg:!max-w-none max-lg:!rounded-b-none",
3
4
  "rounded-t-2xl border border-border bg-card p-6 shadow-elevated",
4
- "max-md:pb-[calc(1.5rem+env(safe-area-inset-bottom))] max-md:pt-8",
5
- "max-md:before:absolute max-md:before:left-1/2 max-md:before:top-3 max-md:before:h-1 max-md:before:w-9",
6
- "max-md:before:-translate-x-1/2 max-md:before:rounded-full max-md:before:bg-muted-foreground/35",
5
+ "max-lg:pb-[calc(1.5rem+env(safe-area-inset-bottom))] max-lg:pt-8",
6
+ "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",
7
+ "max-lg:before:-translate-x-1/2 max-lg:before:rounded-full max-lg:before:bg-muted-foreground/35",
7
8
  ].join(" ");
8
9
 
9
10
  export const desktopDialogContentClassName =
10
- "md:bottom-auto md:left-1/2 md:top-1/2 md:max-h-[calc(100dvh-2rem)] md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-2xl";
11
+ "lg:bottom-auto lg:left-1/2 lg:top-1/2 lg:max-h-[calc(100dvh-2rem)] lg:-translate-x-1/2 lg:-translate-y-1/2 lg:rounded-2xl";
11
12
 
12
13
  export const dialogSheetMotionClassName = [
13
14
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
14
15
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
15
16
  "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
16
- "md:data-[state=closed]:zoom-out-95 md:data-[state=open]:zoom-in-95",
17
+ "lg:data-[state=closed]:zoom-out-95 lg:data-[state=open]:zoom-in-95",
17
18
  ].join(" ");
18
19
 
19
20
  export const mobilePopperSheetPositionClassName = [