@olundot/ui 0.8.0 → 0.8.2
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +27 -27
- package/dist/index.js +27 -24
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @olundot/ui
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d2bebc8: Fix: the mobile bottom/top SheetDrawer now spans the full viewport width across the entire `<900px` band. The side variant's `sm:max-w-sm` cap was still applying at 640–899px and clamping the sheet to 24rem; `mobileSide=bottom/top` now overrides it with `max-w-none!`.
|
|
8
|
+
|
|
9
|
+
## 0.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 83aa187: Fix floating overlay edges to use `--border` for visible elevated borders, and align Sheet/SheetDrawer mobile behavior to the OLUN 900px breakpoint so bottom sheets stay full-width below 900px.
|
|
14
|
+
|
|
3
15
|
## 0.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ declare function useOlunTheme(): UseOlunThemeValue;
|
|
|
32
32
|
type SurfaceLevel = "surface" | "canvas" | "raised";
|
|
33
33
|
|
|
34
34
|
declare const buttonVariants: (props?: ({
|
|
35
|
-
variant?: "
|
|
36
|
-
size?: "
|
|
35
|
+
variant?: "primary" | "secondary" | "destructive" | "default" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "link" | null | undefined;
|
|
36
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "default" | "icon" | "icon-xs" | null | undefined;
|
|
37
37
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
38
38
|
type ButtonVariant = NonNullable<VariantProps<typeof buttonVariants>['variant']>;
|
|
39
39
|
type ButtonSize = NonNullable<VariantProps<typeof buttonVariants>['size']>;
|
|
@@ -54,7 +54,7 @@ type CopyButtonProps = Omit<ButtonProps, 'children' | 'leadingIcon' | 'loading'
|
|
|
54
54
|
variant?: ButtonVariant;
|
|
55
55
|
duration?: number;
|
|
56
56
|
};
|
|
57
|
-
declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "
|
|
57
|
+
declare const CopyButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "variant" | "size" | "leadingIcon" | "trailingIcon" | "loading" | "children"> & {
|
|
58
58
|
value: string;
|
|
59
59
|
label?: React.ReactNode;
|
|
60
60
|
copiedLabel?: React.ReactNode;
|
|
@@ -70,7 +70,7 @@ declare const inputVariants: (props?: ({
|
|
|
70
70
|
surface?: SurfaceLevel | null | undefined;
|
|
71
71
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
72
|
declare const inputMessageVariants: (props?: ({
|
|
73
|
-
state?: "
|
|
73
|
+
state?: "error" | "success" | "default" | null | undefined;
|
|
74
74
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
75
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
76
|
type InputState = NonNullable<VariantProps<typeof inputMessageVariants>["state"]>;
|
|
@@ -119,11 +119,11 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
119
119
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
120
120
|
|
|
121
121
|
declare const fileUploadZoneVariants: (props?: ({
|
|
122
|
-
size?: "
|
|
122
|
+
size?: "compact" | "default" | null | undefined;
|
|
123
123
|
surface?: SurfaceLevel | null | undefined;
|
|
124
124
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
125
125
|
declare const fileUploadIconVariants: (props?: ({
|
|
126
|
-
size?: "
|
|
126
|
+
size?: "compact" | "default" | null | undefined;
|
|
127
127
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
128
128
|
interface FileUploadZoneProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange">, VariantProps<typeof fileUploadZoneVariants> {
|
|
129
129
|
accept?: string;
|
|
@@ -142,10 +142,10 @@ interface FileUploadZoneProps extends Omit<React.LabelHTMLAttributes<HTMLLabelEl
|
|
|
142
142
|
declare const FileUploadZone: React.ForwardRefExoticComponent<FileUploadZoneProps & React.RefAttributes<HTMLLabelElement>>;
|
|
143
143
|
|
|
144
144
|
declare const alertVariants: (props?: ({
|
|
145
|
-
variant?: "error" | "
|
|
145
|
+
variant?: "error" | "warning" | "info" | "success" | null | undefined;
|
|
146
146
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
147
147
|
declare const inlineAlertVariants: (props?: ({
|
|
148
|
-
variant?: "error" | "
|
|
148
|
+
variant?: "error" | "warning" | "info" | "success" | null | undefined;
|
|
149
149
|
surface?: "filled" | "plain" | null | undefined;
|
|
150
150
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
151
151
|
type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;
|
|
@@ -175,7 +175,7 @@ declare const textareaVariants: (props?: ({
|
|
|
175
175
|
surface?: SurfaceLevel | null | undefined;
|
|
176
176
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
177
177
|
declare const textareaMessageVariants: (props?: ({
|
|
178
|
-
state?: "
|
|
178
|
+
state?: "error" | "success" | "default" | null | undefined;
|
|
179
179
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
180
180
|
type TextareaState = NonNullable<VariantProps<typeof textareaMessageVariants>["state"]>;
|
|
181
181
|
/** Canonical size type (0.2.0+). Use `size` prop with these values. */
|
|
@@ -230,7 +230,7 @@ declare const selectVariants: (props?: ({
|
|
|
230
230
|
surface?: SurfaceLevel | null | undefined;
|
|
231
231
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
232
232
|
declare const selectMessageVariants: (props?: ({
|
|
233
|
-
state?: "
|
|
233
|
+
state?: "error" | "success" | "default" | null | undefined;
|
|
234
234
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
235
235
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
236
236
|
type SelectState = NonNullable<VariantProps<typeof selectMessageVariants>["state"]>;
|
|
@@ -859,8 +859,8 @@ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProp
|
|
|
859
859
|
declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<Popover$1.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
860
860
|
|
|
861
861
|
declare const badgeVariants: (props?: ({
|
|
862
|
-
variant?: "
|
|
863
|
-
tone?: "accent" | "
|
|
862
|
+
variant?: "brand" | "neutral" | "status" | "semantic" | "pill" | "vibrant" | null | undefined;
|
|
863
|
+
tone?: "accent" | "warning" | "info" | "success" | "neutral" | "danger" | null | undefined;
|
|
864
864
|
size?: "xs" | "sm" | "md" | null | undefined;
|
|
865
865
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
866
866
|
declare const badgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -878,7 +878,7 @@ declare const twoTierBadgeVariants: (props?: ({
|
|
|
878
878
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
879
879
|
declare const twoTierBadgeLineVariants: (props?: ({
|
|
880
880
|
tier?: "primary" | "secondary" | null | undefined;
|
|
881
|
-
intent?: "
|
|
881
|
+
intent?: "brand" | "muted" | "warning" | "success" | "neutral" | "danger" | null | undefined;
|
|
882
882
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
883
883
|
type TwoTierBadgeIntent = NonNullable<VariantProps<typeof twoTierBadgeLineVariants>["intent"]>;
|
|
884
884
|
interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof twoTierBadgeVariants> {
|
|
@@ -892,7 +892,7 @@ interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, Varian
|
|
|
892
892
|
declare const TwoTierBadge: React.ForwardRefExoticComponent<TwoTierBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
893
893
|
|
|
894
894
|
declare const statusBadgeVariants: (props?: ({
|
|
895
|
-
status?: "error" | "
|
|
895
|
+
status?: "error" | "warning" | "info" | "success" | "active" | "pending" | "archived" | null | undefined;
|
|
896
896
|
size?: "xs" | "sm" | "md" | null | undefined;
|
|
897
897
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
898
898
|
declare const statusBadgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -922,12 +922,12 @@ declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBad
|
|
|
922
922
|
|
|
923
923
|
declare const chipVariants: (props?: ({
|
|
924
924
|
variant?: "filter" | "choice" | "removable" | "status-filter" | null | undefined;
|
|
925
|
-
tone?: "
|
|
925
|
+
tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
|
|
926
926
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
927
927
|
pressed?: boolean | null | undefined;
|
|
928
928
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
929
929
|
declare const chipCountVariants: (props?: ({
|
|
930
|
-
tone?: "
|
|
930
|
+
tone?: "muted" | "accent" | "warning" | "success" | "neutral" | "danger" | null | undefined;
|
|
931
931
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
932
932
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
933
933
|
type ChipVariant = NonNullable<VariantProps<typeof chipVariants>["variant"]>;
|
|
@@ -1121,7 +1121,7 @@ interface ActionFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
1121
1121
|
declare const ActionFooter: React.ForwardRefExoticComponent<ActionFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1122
1122
|
|
|
1123
1123
|
declare const toastVariants: (props?: ({
|
|
1124
|
-
variant?: "
|
|
1124
|
+
variant?: "error" | "warning" | "info" | "success" | "default" | null | undefined;
|
|
1125
1125
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1126
1126
|
declare const toastViewportVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
1127
1127
|
type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
|
|
@@ -1162,17 +1162,17 @@ interface ToastProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1162
1162
|
declare function ToastProvider({ children, maxToasts, className, ...props }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
1163
1163
|
|
|
1164
1164
|
declare const otpFieldVariants: (props?: ({
|
|
1165
|
-
size?: "
|
|
1165
|
+
size?: "compact" | "default" | null | undefined;
|
|
1166
1166
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1167
1167
|
declare const otpFieldGroupVariants: (props?: ({
|
|
1168
|
-
size?: "
|
|
1168
|
+
size?: "compact" | "default" | null | undefined;
|
|
1169
1169
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1170
1170
|
declare const otpCellVariants: (props?: ({
|
|
1171
|
-
size?: "
|
|
1171
|
+
size?: "compact" | "default" | null | undefined;
|
|
1172
1172
|
surface?: SurfaceLevel | null | undefined;
|
|
1173
1173
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1174
1174
|
declare const otpFieldMessageVariants: (props?: ({
|
|
1175
|
-
state?: "
|
|
1175
|
+
state?: "error" | "default" | null | undefined;
|
|
1176
1176
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1177
1177
|
type OTPFieldSize = NonNullable<VariantProps<typeof otpCellVariants>["size"]>;
|
|
1178
1178
|
interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "children" | "defaultValue" | "value">, VariantProps<typeof otpFieldVariants> {
|
|
@@ -1228,11 +1228,11 @@ declare const checkboxBoxVariants: (props?: ({
|
|
|
1228
1228
|
size?: "sm" | "md" | null | undefined;
|
|
1229
1229
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1230
1230
|
declare const checkboxGroupItemVariants: (props?: ({
|
|
1231
|
-
appearance?: "
|
|
1231
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1232
1232
|
density?: "compact" | "comfortable" | null | undefined;
|
|
1233
1233
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1234
1234
|
declare const checkboxGroupBoxVariants: (props?: ({
|
|
1235
|
-
appearance?: "
|
|
1235
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1236
1236
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1237
1237
|
type CheckboxSize = NonNullable<VariantProps<typeof checkboxBoxVariants>["size"]>;
|
|
1238
1238
|
type CheckboxCheckedState = React.ComponentProps<typeof Checkbox$1.Root>["checked"];
|
|
@@ -1257,7 +1257,7 @@ interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof Check
|
|
|
1257
1257
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1258
1258
|
|
|
1259
1259
|
declare const checkboxGroupVariants: (props?: ({
|
|
1260
|
-
appearance?: "
|
|
1260
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1261
1261
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1262
1262
|
columns?: "one" | "two" | "three" | null | undefined;
|
|
1263
1263
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1278,16 +1278,16 @@ interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
1278
1278
|
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1279
1279
|
|
|
1280
1280
|
declare const radioGroupVariants: (props?: ({
|
|
1281
|
-
appearance?: "
|
|
1281
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1282
1282
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1283
1283
|
columns?: "one" | "two" | "three" | null | undefined;
|
|
1284
1284
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1285
1285
|
declare const radioVariants: (props?: ({
|
|
1286
|
-
appearance?: "
|
|
1286
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1287
1287
|
density?: "compact" | "comfortable" | null | undefined;
|
|
1288
1288
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1289
1289
|
declare const radioControlVariants: (props?: ({
|
|
1290
|
-
appearance?: "
|
|
1290
|
+
appearance?: "card" | "plain" | null | undefined;
|
|
1291
1291
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1292
1292
|
type RadioGroupAppearance = NonNullable<VariantProps<typeof radioGroupVariants>["appearance"]>;
|
|
1293
1293
|
type RadioGroupColumns = NonNullable<VariantProps<typeof radioGroupVariants>["columns"]>;
|
package/dist/index.js
CHANGED
|
@@ -1497,13 +1497,13 @@ var Select = React7.forwardRef(
|
|
|
1497
1497
|
"data-slot": "select-content",
|
|
1498
1498
|
position: "popper",
|
|
1499
1499
|
sideOffset: 4,
|
|
1500
|
-
className: "z-[var(--z-popover)] max-h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-[var(--radius-md)] border border-[var(--border
|
|
1500
|
+
className: "z-[var(--z-popover)] max-h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-[var(--radius-md)] border border-[var(--border)] bg-[var(--bg-raised)] text-foreground shadow-md",
|
|
1501
1501
|
children: [
|
|
1502
1502
|
/* @__PURE__ */ jsx7(
|
|
1503
1503
|
SelectPrimitive.ScrollUpButton,
|
|
1504
1504
|
{
|
|
1505
1505
|
"data-slot": "select-scroll-up",
|
|
1506
|
-
className: "flex items-center justify-center border-b border-[var(--border
|
|
1506
|
+
className: "flex items-center justify-center border-b border-[var(--border)] bg-[var(--bg-raised)] py-[var(--space-0-5)] text-text-tertiary",
|
|
1507
1507
|
children: /* @__PURE__ */ jsx7(ChevronUp, { "aria-hidden": "true", className: "size-[16px]" })
|
|
1508
1508
|
}
|
|
1509
1509
|
),
|
|
@@ -1527,7 +1527,7 @@ var Select = React7.forwardRef(
|
|
|
1527
1527
|
SelectPrimitive.ScrollDownButton,
|
|
1528
1528
|
{
|
|
1529
1529
|
"data-slot": "select-scroll-down",
|
|
1530
|
-
className: "flex items-center justify-center border-t border-[var(--border
|
|
1530
|
+
className: "flex items-center justify-center border-t border-[var(--border)] bg-[var(--bg-raised)] py-[var(--space-0-5)] text-text-tertiary",
|
|
1531
1531
|
children: /* @__PURE__ */ jsx7(ChevronDown, { "aria-hidden": "true", className: "size-[16px]" })
|
|
1532
1532
|
}
|
|
1533
1533
|
)
|
|
@@ -4716,7 +4716,7 @@ function DropdownMenuContent({
|
|
|
4716
4716
|
className: cn(
|
|
4717
4717
|
"z-[var(--z-popover)] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]",
|
|
4718
4718
|
"origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
4719
|
-
"rounded-sm border border-
|
|
4719
|
+
"rounded-sm border border-[var(--border)] bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4720
4720
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
4721
4721
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4722
4722
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -4915,7 +4915,7 @@ function DropdownMenuSubContent({
|
|
|
4915
4915
|
"data-slot": "dropdown-menu-sub-content",
|
|
4916
4916
|
className: cn(
|
|
4917
4917
|
"z-[var(--z-popover)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden",
|
|
4918
|
-
"rounded-sm border border-
|
|
4918
|
+
"rounded-sm border border-[var(--border)] bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4919
4919
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
4920
4920
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
4921
4921
|
"data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
@@ -5027,7 +5027,7 @@ function SheetContent({
|
|
|
5027
5027
|
{
|
|
5028
5028
|
"data-slot": "sheet-content",
|
|
5029
5029
|
className: cn(
|
|
5030
|
-
"fixed z-[var(--z-modal)] flex flex-col gap-4 bg-background shadow-lg",
|
|
5030
|
+
"fixed z-[var(--z-modal)] flex flex-col gap-4 border-[var(--border)] bg-background shadow-lg",
|
|
5031
5031
|
motionConfig && cn(
|
|
5032
5032
|
"motion-reduce:animate-none",
|
|
5033
5033
|
motionConfig.type === "fade" && "data-[state=open]:animate-[olun-sheet-fade-in_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] data-[state=closed]:animate-[olun-sheet-fade-out_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
@@ -5049,20 +5049,23 @@ function SheetContent({
|
|
|
5049
5049
|
hasSlideMotion && "data-[state=open]:animate-[olun-sheet-in-from-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] data-[state=closed]:animate-[olun-sheet-out-to-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5050
5050
|
),
|
|
5051
5051
|
mobileSide === "right" && cn(
|
|
5052
|
-
"max-
|
|
5053
|
-
hasSlideMotion && "max-
|
|
5052
|
+
"max-[899px]:inset-y-0 max-[899px]:right-0 max-[899px]:left-auto max-[899px]:h-full max-[899px]:w-3/4 max-[899px]:border-l max-[899px]:border-t-0 max-[899px]:rounded-none",
|
|
5053
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-right_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-right_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5054
5054
|
),
|
|
5055
5055
|
mobileSide === "left" && cn(
|
|
5056
|
-
"max-
|
|
5057
|
-
hasSlideMotion && "max-
|
|
5056
|
+
"max-[899px]:inset-y-0 max-[899px]:left-0 max-[899px]:right-auto max-[899px]:h-full max-[899px]:w-3/4 max-[899px]:border-r max-[899px]:border-t-0 max-[899px]:rounded-none",
|
|
5057
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-left_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-left_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5058
5058
|
),
|
|
5059
5059
|
mobileSide === "top" && cn(
|
|
5060
|
-
|
|
5061
|
-
|
|
5060
|
+
// `max-w-none!` overrides the side variant's `sm:max-w-sm` cap (see mobileSide bottom).
|
|
5061
|
+
"max-[899px]:inset-x-0 max-[899px]:top-0 max-[899px]:bottom-auto max-[899px]:h-auto max-[899px]:w-full max-[899px]:max-w-none! max-[899px]:border-b max-[899px]:border-l-0 max-[899px]:rounded-none",
|
|
5062
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-top_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-top_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5062
5063
|
),
|
|
5063
5064
|
mobileSide === "bottom" && cn(
|
|
5064
|
-
|
|
5065
|
-
|
|
5065
|
+
// `max-w-none!` overrides the side variant's `sm:max-w-sm` cap so the bottom sheet
|
|
5066
|
+
// spans the full viewport width across the whole < 900px band (not capped to 24rem).
|
|
5067
|
+
"max-[899px]:inset-x-0 max-[899px]:bottom-0 max-[899px]:top-auto max-[899px]:h-auto max-[899px]:w-full max-[899px]:max-w-none! max-[899px]:border-t max-[899px]:border-l-0 max-[899px]:rounded-none",
|
|
5068
|
+
hasSlideMotion && "max-[899px]:data-[state=open]:animate-[olun-sheet-in-from-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both] max-[899px]:data-[state=closed]:animate-[olun-sheet-out-to-bottom_var(--sheet-motion-duration)_var(--sheet-motion-easing)_both]"
|
|
5066
5069
|
),
|
|
5067
5070
|
className
|
|
5068
5071
|
),
|
|
@@ -5132,19 +5135,19 @@ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
|
5132
5135
|
var sheetDrawerContentClassName = cn(
|
|
5133
5136
|
"gap-0 p-0",
|
|
5134
5137
|
"bg-[var(--bg-surface)] text-foreground",
|
|
5135
|
-
"border-[var(--border
|
|
5136
|
-
"
|
|
5137
|
-
"max-
|
|
5138
|
-
"max-
|
|
5138
|
+
"border-[var(--border)] shadow-[var(--elevation-4)]",
|
|
5139
|
+
"min-[900px]:w-[480px] min-[900px]:max-w-[480px]",
|
|
5140
|
+
"max-[899px]:h-[min(85dvh,720px)] max-[899px]:max-h-[85dvh] max-[899px]:w-full max-[899px]:max-w-none",
|
|
5141
|
+
"max-[899px]:rounded-t-[var(--radius-lg)]"
|
|
5139
5142
|
);
|
|
5140
|
-
var sheetDrawerWideContentClassName = "
|
|
5143
|
+
var sheetDrawerWideContentClassName = "min-[900px]:w-[720px] min-[900px]:max-w-[720px]";
|
|
5141
5144
|
var sheetDrawerFullContentClassName = cn(
|
|
5142
|
-
"
|
|
5143
|
-
"max-
|
|
5145
|
+
"min-[900px]:w-[calc(100vw_-_var(--space-4))] min-[900px]:max-w-[calc(100vw_-_var(--space-4))]",
|
|
5146
|
+
"max-[899px]:h-[100dvh] max-[899px]:max-h-[100dvh] max-[899px]:rounded-none"
|
|
5144
5147
|
);
|
|
5145
5148
|
var sheetDrawerHeaderClassName = cn(
|
|
5146
5149
|
"flex items-start justify-between gap-[var(--space-2)]",
|
|
5147
|
-
"border-b border-[var(--border
|
|
5150
|
+
"border-b border-[var(--border)] px-[var(--space-3)] py-[var(--space-3)]"
|
|
5148
5151
|
);
|
|
5149
5152
|
var sheetDrawerHeaderTextClassName = "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]";
|
|
5150
5153
|
var sheetDrawerCaptionClassName = "flex flex-wrap items-center gap-[var(--space-1)]";
|
|
@@ -5171,7 +5174,7 @@ var sheetDrawerBodyClassName = cn(
|
|
|
5171
5174
|
"px-[var(--space-3)] py-[var(--space-3)]"
|
|
5172
5175
|
);
|
|
5173
5176
|
var sheetDrawerFooterClassName = cn(
|
|
5174
|
-
"border-t border-[var(--border
|
|
5177
|
+
"border-t border-[var(--border)] px-[var(--space-3)] py-[var(--space-2)]",
|
|
5175
5178
|
"flex justify-end gap-[var(--space-1)]"
|
|
5176
5179
|
);
|
|
5177
5180
|
function SheetDrawer({
|
|
@@ -5304,7 +5307,7 @@ var PopoverContent = React24.forwardRef(({ className, align = "center", sideOffs
|
|
|
5304
5307
|
"data-slot": "popover-content",
|
|
5305
5308
|
className: cn(
|
|
5306
5309
|
"z-[var(--z-popover)] w-[260px] outline-none",
|
|
5307
|
-
"rounded-[var(--radius-md)] border border-[var(--border
|
|
5310
|
+
"rounded-[var(--radius-md)] border border-[var(--border)]",
|
|
5308
5311
|
"bg-[var(--bg-raised)] p-[var(--space-2)] text-foreground",
|
|
5309
5312
|
"shadow-[var(--elevation-4)]",
|
|
5310
5313
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|