@olundot/ui 0.8.1 → 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 +6 -0
- package/dist/index.d.ts +27 -27
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.8.1
|
|
4
10
|
|
|
5
11
|
### Patch 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
|
@@ -5057,11 +5057,14 @@ function SheetContent({
|
|
|
5057
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
|
-
|
|
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",
|
|
5061
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
|
+
// `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",
|
|
5065
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
|