@olundot/ui 0.6.0 → 0.8.0
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 +17 -0
- package/dist/index.d.ts +33 -28
- package/dist/index.js +9 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @olundot/ui
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f49ba62: SheetDrawer: add `caption` slot; fix DropdownMenu/Select z-index so floating menus layer above the sheet/drawer (`--z-popover`).
|
|
8
|
+
|
|
9
|
+
## 0.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- d5616e4: Add DataTable sortable-header pointer affordance and document the Button/SearchField cross-control height map.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [d5616e4]
|
|
18
|
+
- @olundot/tokens@0.11.0
|
|
19
|
+
|
|
3
20
|
## 0.6.0
|
|
4
21
|
|
|
5
22
|
### 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?: "xs" | "sm" | "md" | "lg" | "xl" | "
|
|
35
|
+
variant?: "default" | "primary" | "outline" | "ghost" | "danger" | "emergency" | "subtle" | "destructive" | "secondary" | "link" | null | undefined;
|
|
36
|
+
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | "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, "size" | "variant" | "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?: "default" | "error" | "success" | 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?: "default" | "compact" | 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?: "default" | "compact" | 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" | "success" | "info" | "warning" | null | undefined;
|
|
146
146
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
147
147
|
declare const inlineAlertVariants: (props?: ({
|
|
148
|
-
variant?: "error" | "
|
|
148
|
+
variant?: "error" | "success" | "info" | "warning" | 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?: "default" | "error" | "success" | 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?: "default" | "error" | "success" | 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"]>;
|
|
@@ -793,6 +793,11 @@ declare function SheetDescription({ className, ...props }: React.ComponentProps<
|
|
|
793
793
|
interface SheetDrawerProps {
|
|
794
794
|
open: boolean;
|
|
795
795
|
onOpenChange: (open: boolean) => void;
|
|
796
|
+
/**
|
|
797
|
+
* Optional eyebrow content rendered ABOVE the title — e.g. a breadcrumb path or status badges.
|
|
798
|
+
* Distinct from `description`, which renders below the title.
|
|
799
|
+
*/
|
|
800
|
+
caption?: React.ReactNode;
|
|
796
801
|
title: string;
|
|
797
802
|
description?: string;
|
|
798
803
|
children: React.ReactNode;
|
|
@@ -807,7 +812,7 @@ interface SheetDrawerProps {
|
|
|
807
812
|
motion?: SheetMotionConfig | false;
|
|
808
813
|
closeLabel?: string;
|
|
809
814
|
}
|
|
810
|
-
declare function SheetDrawer({ open, onOpenChange, title, description, children, expandHref, onExpand, expandLabel, expanded, onExpandedChange, collapseLabel, footer, width, motion, closeLabel, }: SheetDrawerProps): react_jsx_runtime.JSX.Element;
|
|
815
|
+
declare function SheetDrawer({ open, onOpenChange, caption, title, description, children, expandHref, onExpand, expandLabel, expanded, onExpandedChange, collapseLabel, footer, width, motion, closeLabel, }: SheetDrawerProps): react_jsx_runtime.JSX.Element;
|
|
811
816
|
|
|
812
817
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof Tooltip$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
813
818
|
interface TooltipProps extends React.ComponentProps<typeof Tooltip$1.Root> {
|
|
@@ -854,8 +859,8 @@ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProp
|
|
|
854
859
|
declare const PopoverArrow: React.ForwardRefExoticComponent<Omit<Popover$1.PopoverArrowProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
855
860
|
|
|
856
861
|
declare const badgeVariants: (props?: ({
|
|
857
|
-
variant?: "
|
|
858
|
-
tone?: "accent" | "
|
|
862
|
+
variant?: "status" | "semantic" | "neutral" | "brand" | "pill" | "vibrant" | null | undefined;
|
|
863
|
+
tone?: "accent" | "danger" | "success" | "info" | "warning" | "neutral" | null | undefined;
|
|
859
864
|
size?: "xs" | "sm" | "md" | null | undefined;
|
|
860
865
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
861
866
|
declare const badgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -873,7 +878,7 @@ declare const twoTierBadgeVariants: (props?: ({
|
|
|
873
878
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
874
879
|
declare const twoTierBadgeLineVariants: (props?: ({
|
|
875
880
|
tier?: "primary" | "secondary" | null | undefined;
|
|
876
|
-
intent?: "
|
|
881
|
+
intent?: "danger" | "success" | "warning" | "neutral" | "brand" | "muted" | null | undefined;
|
|
877
882
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
878
883
|
type TwoTierBadgeIntent = NonNullable<VariantProps<typeof twoTierBadgeLineVariants>["intent"]>;
|
|
879
884
|
interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof twoTierBadgeVariants> {
|
|
@@ -887,7 +892,7 @@ interface TwoTierBadgeProps extends React.HTMLAttributes<HTMLDivElement>, Varian
|
|
|
887
892
|
declare const TwoTierBadge: React.ForwardRefExoticComponent<TwoTierBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
888
893
|
|
|
889
894
|
declare const statusBadgeVariants: (props?: ({
|
|
890
|
-
status?: "error" | "
|
|
895
|
+
status?: "error" | "success" | "info" | "warning" | "active" | "pending" | "archived" | null | undefined;
|
|
891
896
|
size?: "xs" | "sm" | "md" | null | undefined;
|
|
892
897
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
893
898
|
declare const statusBadgeDotVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -917,12 +922,12 @@ declare const NotificationBadge: React.ForwardRefExoticComponent<NotificationBad
|
|
|
917
922
|
|
|
918
923
|
declare const chipVariants: (props?: ({
|
|
919
924
|
variant?: "filter" | "choice" | "removable" | "status-filter" | null | undefined;
|
|
920
|
-
tone?: "
|
|
925
|
+
tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
|
|
921
926
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
922
927
|
pressed?: boolean | null | undefined;
|
|
923
928
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
924
929
|
declare const chipCountVariants: (props?: ({
|
|
925
|
-
tone?: "
|
|
930
|
+
tone?: "accent" | "danger" | "success" | "warning" | "neutral" | "muted" | null | undefined;
|
|
926
931
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
927
932
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
928
933
|
type ChipVariant = NonNullable<VariantProps<typeof chipVariants>["variant"]>;
|
|
@@ -1116,7 +1121,7 @@ interface ActionFooterProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
1116
1121
|
declare const ActionFooter: React.ForwardRefExoticComponent<ActionFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
1117
1122
|
|
|
1118
1123
|
declare const toastVariants: (props?: ({
|
|
1119
|
-
variant?: "
|
|
1124
|
+
variant?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
|
|
1120
1125
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1121
1126
|
declare const toastViewportVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
1122
1127
|
type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
|
|
@@ -1157,17 +1162,17 @@ interface ToastProviderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1157
1162
|
declare function ToastProvider({ children, maxToasts, className, ...props }: ToastProviderProps): react_jsx_runtime.JSX.Element;
|
|
1158
1163
|
|
|
1159
1164
|
declare const otpFieldVariants: (props?: ({
|
|
1160
|
-
size?: "
|
|
1165
|
+
size?: "default" | "compact" | null | undefined;
|
|
1161
1166
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1162
1167
|
declare const otpFieldGroupVariants: (props?: ({
|
|
1163
|
-
size?: "
|
|
1168
|
+
size?: "default" | "compact" | null | undefined;
|
|
1164
1169
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1165
1170
|
declare const otpCellVariants: (props?: ({
|
|
1166
|
-
size?: "
|
|
1171
|
+
size?: "default" | "compact" | null | undefined;
|
|
1167
1172
|
surface?: SurfaceLevel | null | undefined;
|
|
1168
1173
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1169
1174
|
declare const otpFieldMessageVariants: (props?: ({
|
|
1170
|
-
state?: "
|
|
1175
|
+
state?: "default" | "error" | null | undefined;
|
|
1171
1176
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1172
1177
|
type OTPFieldSize = NonNullable<VariantProps<typeof otpCellVariants>["size"]>;
|
|
1173
1178
|
interface OTPFieldProps extends Omit<React.FieldsetHTMLAttributes<HTMLFieldSetElement>, "onChange" | "children" | "defaultValue" | "value">, VariantProps<typeof otpFieldVariants> {
|
|
@@ -1223,11 +1228,11 @@ declare const checkboxBoxVariants: (props?: ({
|
|
|
1223
1228
|
size?: "sm" | "md" | null | undefined;
|
|
1224
1229
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1225
1230
|
declare const checkboxGroupItemVariants: (props?: ({
|
|
1226
|
-
appearance?: "
|
|
1231
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1227
1232
|
density?: "compact" | "comfortable" | null | undefined;
|
|
1228
1233
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1229
1234
|
declare const checkboxGroupBoxVariants: (props?: ({
|
|
1230
|
-
appearance?: "
|
|
1235
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1231
1236
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1232
1237
|
type CheckboxSize = NonNullable<VariantProps<typeof checkboxBoxVariants>["size"]>;
|
|
1233
1238
|
type CheckboxCheckedState = React.ComponentProps<typeof Checkbox$1.Root>["checked"];
|
|
@@ -1252,7 +1257,7 @@ interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<typeof Check
|
|
|
1252
1257
|
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
1253
1258
|
|
|
1254
1259
|
declare const checkboxGroupVariants: (props?: ({
|
|
1255
|
-
appearance?: "
|
|
1260
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1256
1261
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1257
1262
|
columns?: "one" | "two" | "three" | null | undefined;
|
|
1258
1263
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1273,16 +1278,16 @@ interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
|
1273
1278
|
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
1274
1279
|
|
|
1275
1280
|
declare const radioGroupVariants: (props?: ({
|
|
1276
|
-
appearance?: "
|
|
1281
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1277
1282
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1278
1283
|
columns?: "one" | "two" | "three" | null | undefined;
|
|
1279
1284
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1280
1285
|
declare const radioVariants: (props?: ({
|
|
1281
|
-
appearance?: "
|
|
1286
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1282
1287
|
density?: "compact" | "comfortable" | null | undefined;
|
|
1283
1288
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1284
1289
|
declare const radioControlVariants: (props?: ({
|
|
1285
|
-
appearance?: "
|
|
1290
|
+
appearance?: "plain" | "card" | null | undefined;
|
|
1286
1291
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1287
1292
|
type RadioGroupAppearance = NonNullable<VariantProps<typeof radioGroupVariants>["appearance"]>;
|
|
1288
1293
|
type RadioGroupColumns = NonNullable<VariantProps<typeof radioGroupVariants>["columns"]>;
|
package/dist/index.js
CHANGED
|
@@ -203,6 +203,7 @@ var buttonVariants = cva(
|
|
|
203
203
|
link: "border-transparent bg-transparent px-0 text-[var(--accent-fg)] underline-offset-4 hover:underline"
|
|
204
204
|
},
|
|
205
205
|
size: {
|
|
206
|
+
// Cross-control height map: pair Button xs/sm/md with field controls sm/md/lg (32/34/38px).
|
|
206
207
|
xs: "h-[32px] gap-[6px] px-pad-compact-x py-pad-compact-y text-[12px] [&_svg]:size-[14px] [&_svg]:stroke-[1.75]",
|
|
207
208
|
sm: "h-[34px] gap-[6px] px-pad-compact-x py-pad-compact-y text-body-sm [&_svg]:size-[16px]",
|
|
208
209
|
md: "h-[38px] gap-[6px] px-pad-default-x py-pad-default-y text-body-sm [&_svg]:size-[16px]",
|
|
@@ -1496,7 +1497,7 @@ var Select = React7.forwardRef(
|
|
|
1496
1497
|
"data-slot": "select-content",
|
|
1497
1498
|
position: "popper",
|
|
1498
1499
|
sideOffset: 4,
|
|
1499
|
-
className: "z-
|
|
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-subtle)] bg-[var(--bg-raised)] text-foreground shadow-md",
|
|
1500
1501
|
children: [
|
|
1501
1502
|
/* @__PURE__ */ jsx7(
|
|
1502
1503
|
SelectPrimitive.ScrollUpButton,
|
|
@@ -4269,7 +4270,7 @@ function DataTableInner({
|
|
|
4269
4270
|
{
|
|
4270
4271
|
type: "button",
|
|
4271
4272
|
className: cn(
|
|
4272
|
-
"inline-flex min-w-0 items-center gap-[var(--space-0-5)] rounded-[var(--radius-xs)]",
|
|
4273
|
+
"inline-flex min-w-0 cursor-pointer items-center gap-[var(--space-0-5)] rounded-[var(--radius-xs)]",
|
|
4273
4274
|
"text-inherit transition-colors motion-reduce:transition-none",
|
|
4274
4275
|
"hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)]"
|
|
4275
4276
|
),
|
|
@@ -4713,7 +4714,7 @@ function DropdownMenuContent({
|
|
|
4713
4714
|
"data-slot": "dropdown-menu-content",
|
|
4714
4715
|
sideOffset,
|
|
4715
4716
|
className: cn(
|
|
4716
|
-
"z-
|
|
4717
|
+
"z-[var(--z-popover)] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]",
|
|
4717
4718
|
"origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
4718
4719
|
"rounded-sm border border-subtle bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4719
4720
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
@@ -4913,7 +4914,7 @@ function DropdownMenuSubContent({
|
|
|
4913
4914
|
{
|
|
4914
4915
|
"data-slot": "dropdown-menu-sub-content",
|
|
4915
4916
|
className: cn(
|
|
4916
|
-
"z-
|
|
4917
|
+
"z-[var(--z-popover)] min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden",
|
|
4917
4918
|
"rounded-sm border border-subtle bg-canvas p-[var(--space-0-5)] text-text-primary shadow-elevation-2",
|
|
4918
4919
|
"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
|
|
4919
4920
|
"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
@@ -5146,6 +5147,7 @@ var sheetDrawerHeaderClassName = cn(
|
|
|
5146
5147
|
"border-b border-[var(--border-subtle)] px-[var(--space-3)] py-[var(--space-3)]"
|
|
5147
5148
|
);
|
|
5148
5149
|
var sheetDrawerHeaderTextClassName = "flex min-w-0 flex-1 flex-col gap-[var(--space-1)]";
|
|
5150
|
+
var sheetDrawerCaptionClassName = "flex flex-wrap items-center gap-[var(--space-1)]";
|
|
5149
5151
|
var sheetDrawerTitleClassName = "text-[18px] font-bold leading-snug text-foreground";
|
|
5150
5152
|
var sheetDrawerDescriptionClassName = "break-keep text-[14px] leading-normal text-text-secondary";
|
|
5151
5153
|
var sheetDrawerCloseButtonClassName = cn(
|
|
@@ -5175,6 +5177,7 @@ var sheetDrawerFooterClassName = cn(
|
|
|
5175
5177
|
function SheetDrawer({
|
|
5176
5178
|
open,
|
|
5177
5179
|
onOpenChange,
|
|
5180
|
+
caption,
|
|
5178
5181
|
title,
|
|
5179
5182
|
description,
|
|
5180
5183
|
children,
|
|
@@ -5210,6 +5213,7 @@ function SheetDrawer({
|
|
|
5210
5213
|
children: [
|
|
5211
5214
|
/* @__PURE__ */ jsxs27("div", { "data-slot": "sheet-drawer-header", className: sheetDrawerHeaderClassName, children: [
|
|
5212
5215
|
/* @__PURE__ */ jsxs27("div", { className: sheetDrawerHeaderTextClassName, children: [
|
|
5216
|
+
caption ? /* @__PURE__ */ jsx30("div", { "data-slot": "sheet-drawer-caption", className: sheetDrawerCaptionClassName, children: caption }) : null,
|
|
5213
5217
|
/* @__PURE__ */ jsx30(SheetTitle, { "data-slot": "sheet-drawer-title", className: sheetDrawerTitleClassName, children: title }),
|
|
5214
5218
|
description ? /* @__PURE__ */ jsx30(
|
|
5215
5219
|
SheetDescription,
|
|
@@ -7330,6 +7334,7 @@ import { jsx as jsx46, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
|
7330
7334
|
var searchFieldVariants = cva26("relative flex w-full items-center", {
|
|
7331
7335
|
variants: {
|
|
7332
7336
|
size: {
|
|
7337
|
+
// Field-control scale follows Select: sm/md/lg = 32/34/38px. Pair with Button xs/sm/md.
|
|
7333
7338
|
sm: "h-[var(--space-4)]",
|
|
7334
7339
|
md: "h-[34px]",
|
|
7335
7340
|
lg: "h-[38px]"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olundot/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "OLUN. shared React UI components built on OLUN design tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lucide-react": "^1.8.0",
|
|
45
45
|
"radix-ui": "^1.4.3",
|
|
46
46
|
"tailwind-merge": "^3.5.0",
|
|
47
|
-
"@olundot/tokens": "^0.
|
|
47
|
+
"@olundot/tokens": "^0.11.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=18",
|