raft-ui 0.0.9 → 0.0.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/CHANGELOG.md +27 -0
- package/dist/index.d.mts +693 -73
- package/dist/index.mjs +914 -83
- package/dist/styles.css +40 -0
- package/dist/wip.d.mts +31 -1
- package/dist/wip.mjs +107 -4
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -48,6 +48,36 @@
|
|
|
48
48
|
height: 200%;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
@utility toast-gradient-border {
|
|
52
|
+
position: relative;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
content: "";
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: 0;
|
|
58
|
+
border-radius: inherit;
|
|
59
|
+
padding: var(--toast-gradient-border-width, 1px);
|
|
60
|
+
background: var(
|
|
61
|
+
--toast-gradient-border,
|
|
62
|
+
linear-gradient(
|
|
63
|
+
var(--toast-gradient-border-angle, to bottom),
|
|
64
|
+
var(--toast-gradient-border-from, rgba(255, 255, 255, 0.24)),
|
|
65
|
+
var(--toast-gradient-border-via, rgba(255, 255, 255, 0.1)),
|
|
66
|
+
var(--toast-gradient-border-to, transparent)
|
|
67
|
+
)
|
|
68
|
+
);
|
|
69
|
+
-webkit-mask:
|
|
70
|
+
linear-gradient(#fff 0 0) content-box,
|
|
71
|
+
linear-gradient(#fff 0 0);
|
|
72
|
+
-webkit-mask-composite: xor;
|
|
73
|
+
mask:
|
|
74
|
+
linear-gradient(#fff 0 0) content-box,
|
|
75
|
+
linear-gradient(#fff 0 0);
|
|
76
|
+
mask-composite: exclude;
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
51
81
|
@keyframes fadeIn {
|
|
52
82
|
from {
|
|
53
83
|
opacity: 0;
|
|
@@ -264,6 +294,7 @@
|
|
|
264
294
|
--color-info-base: var(--state-info-base);
|
|
265
295
|
--color-info-light: var(--state-info-light);
|
|
266
296
|
--color-info-lighter: var(--state-info-lighter);
|
|
297
|
+
--color-soft-signal: var(--soft-signal);
|
|
267
298
|
|
|
268
299
|
--color-success-dark: var(--state-success-dark);
|
|
269
300
|
--color-success-base: var(--state-success-base);
|
|
@@ -285,6 +316,9 @@
|
|
|
285
316
|
--shadow-md: var(--theme-shadow-md);
|
|
286
317
|
--shadow-lg: var(--theme-shadow-lg);
|
|
287
318
|
--shadow-xl: var(--theme-shadow-xl);
|
|
319
|
+
--shadow-brutal-sm: var(--theme-shadow-sm);
|
|
320
|
+
--shadow-brutal: var(--theme-shadow-md);
|
|
321
|
+
--shadow-brutal-lg: var(--theme-shadow-xl);
|
|
288
322
|
|
|
289
323
|
--font-heading: var(--heading-font);
|
|
290
324
|
--font-sans: var(--sans-font);
|
|
@@ -353,6 +387,7 @@
|
|
|
353
387
|
--state-info-base: var(--color-brutal-cyan);
|
|
354
388
|
--state-info-light: var(--color-brutal-cyan-200);
|
|
355
389
|
--state-info-lighter: var(--color-brutal-cyan-100);
|
|
390
|
+
--soft-signal: var(--color-brutal-yellow);
|
|
356
391
|
|
|
357
392
|
--state-success-dark: oklch(0.366 0.09 153.079);
|
|
358
393
|
--state-success-base: oklch(0.714 0.176 153.079);
|
|
@@ -375,6 +410,11 @@
|
|
|
375
410
|
--theme-shadow-md: 4px 4px 0px var(--line-strong);
|
|
376
411
|
--theme-shadow-lg: 4px 4px 0px var(--color-black);
|
|
377
412
|
--theme-shadow-xl: 6px 6px 0px var(--line-strong);
|
|
413
|
+
--shadow-brutal-active: 1px 1px 0px #141111;
|
|
414
|
+
--shadow-brutal-hover: 2px 2px 0px #141111;
|
|
415
|
+
--shadow-brutal-sm: 2px 2px 0px #141111;
|
|
416
|
+
--shadow-brutal: 4px 4px 0px #141111;
|
|
417
|
+
--shadow-brutal-lg: 6px 6px 0px #141111;
|
|
378
418
|
|
|
379
419
|
--heading-font: "Hanken Grotesk", system-ui, sans-serif;
|
|
380
420
|
--sans-font: "Hanken Grotesk", system-ui, sans-serif;
|
package/dist/wip.d.mts
CHANGED
|
@@ -871,6 +871,36 @@ declare function LightboxMedia({
|
|
|
871
871
|
className,
|
|
872
872
|
...props
|
|
873
873
|
}: LightboxMediaProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
874
|
+
type LightboxNavigationButtonProps = Omit<ButtonProps, "disabled" | "loading" | "size" | "variant"> & {
|
|
875
|
+
direction: "next" | "previous";
|
|
876
|
+
disabled?: boolean;
|
|
877
|
+
};
|
|
878
|
+
declare function LightboxNavigationButton({
|
|
879
|
+
className,
|
|
880
|
+
direction,
|
|
881
|
+
disabled,
|
|
882
|
+
onClick,
|
|
883
|
+
type,
|
|
884
|
+
...props
|
|
885
|
+
}: LightboxNavigationButtonProps): import("react").JSX.Element;
|
|
886
|
+
type LightboxInfoBarProps = useRender.ComponentProps<"div">;
|
|
887
|
+
declare function LightboxInfoBar({
|
|
888
|
+
render,
|
|
889
|
+
className,
|
|
890
|
+
...props
|
|
891
|
+
}: LightboxInfoBarProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
892
|
+
type LightboxInfoTitleProps = useRender.ComponentProps<"div">;
|
|
893
|
+
declare function LightboxInfoTitle({
|
|
894
|
+
render,
|
|
895
|
+
className,
|
|
896
|
+
...props
|
|
897
|
+
}: LightboxInfoTitleProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
898
|
+
type LightboxInfoActionsProps = useRender.ComponentProps<"div">;
|
|
899
|
+
declare function LightboxInfoActions({
|
|
900
|
+
render,
|
|
901
|
+
className,
|
|
902
|
+
...props
|
|
903
|
+
}: LightboxInfoActionsProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
874
904
|
type LightboxCloseProps = StyledProps<Dialog.Close.Props>;
|
|
875
905
|
declare function LightboxClose({
|
|
876
906
|
className,
|
|
@@ -967,4 +997,4 @@ declare function BottomSheetDescription({
|
|
|
967
997
|
...props
|
|
968
998
|
}: BottomSheetDescriptionProps): import("react").JSX.Element;
|
|
969
999
|
//#endregion
|
|
970
|
-
export { BottomSheet, BottomSheetActions, type BottomSheetActionsProps, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, BottomSheetOverlay, type BottomSheetOverlayProps, BottomSheetPortal, type BottomSheetPortalProps, BottomSheetPositioner, type BottomSheetPositionerProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, ConversationPreviewCard, ConversationPreviewCardAction, type ConversationPreviewCardActionProps, ConversationPreviewCardAuthor, ConversationPreviewCardAuthorName, type ConversationPreviewCardAuthorNameProps, type ConversationPreviewCardAuthorProps, ConversationPreviewCardAuthorSubtitle, type ConversationPreviewCardAuthorSubtitleProps, ConversationPreviewCardChannel, type ConversationPreviewCardChannelProps, ConversationPreviewCardContent, type ConversationPreviewCardContentProps, ConversationPreviewCardFooter, type ConversationPreviewCardFooterProps, ConversationPreviewCardMeta, type ConversationPreviewCardMetaProps, ConversationPreviewCardPreview, ConversationPreviewCardPreviewAuthor, type ConversationPreviewCardPreviewAuthorProps, ConversationPreviewCardPreviewLeading, type ConversationPreviewCardPreviewLeadingProps, type ConversationPreviewCardPreviewProps, type ConversationPreviewCardProps, ConversationPreviewCardSecondaryPreview, type ConversationPreviewCardSecondaryPreviewProps, ConversationPreviewCardTimestamp, type ConversationPreviewCardTimestampProps, DescriptionAction, type DescriptionActionProps, DescriptionDetails, type DescriptionDetailsProps, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DescriptionTerm, type DescriptionTermProps, Lightbox, LightboxActions, type LightboxActionsProps, LightboxClose, type LightboxCloseProps, LightboxContent, type LightboxContentProps, LightboxHeader, type LightboxHeaderProps, LightboxMedia, type LightboxMediaProps, LightboxPortal, type LightboxPortalProps, type LightboxProps, LightboxStage, type LightboxStageProps, LightboxTitle, type LightboxTitleProps, LightboxTrigger, type LightboxTriggerProps, ListItem, ListItemActionGroup, type ListItemActionGroupProps, ListItemBody, type ListItemBodyProps, ListItemDescription, type ListItemDescriptionProps, ListItemIcon, type ListItemIconProps, ListItemMeta, type ListItemMetaProps, type ListItemProps, ListItemRow, type ListItemRowProps, ListItemTitle, type ListItemTitleProps, MediaListItem, MediaListItemActionGroup, type MediaListItemActionGroupProps, MediaListItemAside, type MediaListItemAsideProps, MediaListItemBody, type MediaListItemBodyProps, type MediaListItemProps, MediaListItemSubtitle, type MediaListItemSubtitleProps, MediaListItemText, type MediaListItemTextProps, MediaListItemTitle, type MediaListItemTitleProps, MediaListItemVisual, type MediaListItemVisualProps, PanelHeader, PanelHeaderActions, type PanelHeaderActionsProps, PanelHeaderContent, type PanelHeaderContentProps, PanelHeaderIcon, type PanelHeaderIconProps, type PanelHeaderProps, PanelHeaderSubtitle, type PanelHeaderSubtitleProps, PanelHeaderSuffix, type PanelHeaderSuffixProps, PanelHeaderTitle, type PanelHeaderTitleProps, PanelHeaderTitleRow, type PanelHeaderTitleRowProps, PanelHeaderVisual, type PanelHeaderVisualProps, PreviewShell, type PreviewShellProps, QuotedMessageCard, QuotedMessageCardAttachments, type QuotedMessageCardAttachmentsProps, QuotedMessageCardAuthor, QuotedMessageCardAuthorName, type QuotedMessageCardAuthorNameProps, type QuotedMessageCardAuthorProps, QuotedMessageCardAuthorSubtitle, type QuotedMessageCardAuthorSubtitleProps, QuotedMessageCardBody, type QuotedMessageCardBodyProps, QuotedMessageCardChannel, type QuotedMessageCardChannelProps, QuotedMessageCardContent, type QuotedMessageCardContentProps, QuotedMessageCardContentWrap, type QuotedMessageCardContentWrapProps, QuotedMessageCardHeader, type QuotedMessageCardHeaderProps, QuotedMessageCardMeta, type QuotedMessageCardMetaProps, type QuotedMessageCardProps, QuotedMessageCardSeparator, type QuotedMessageCardSeparatorProps, QuotedMessageCardTag, type QuotedMessageCardTagProps, QuotedMessageCardThread, type QuotedMessageCardThreadProps, QuotedMessageCardTimestamp, type QuotedMessageCardTimestampProps, QuotedMessageCardUnavailable, type QuotedMessageCardUnavailableProps, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderCount, type SectionHeaderCountProps, SectionHeaderIcon, type SectionHeaderIconProps, type SectionHeaderProps, SectionHeaderTitle, type SectionHeaderTitleProps, SectionLabel, type SectionLabelProps, ToggleGroup, ToggleGroupCount, type ToggleGroupCountProps, ToggleGroupItem, type ToggleGroupItemProps, ToggleGroupLabel, type ToggleGroupLabelProps, type ToggleGroupProps };
|
|
1000
|
+
export { BottomSheet, BottomSheetActions, type BottomSheetActionsProps, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, BottomSheetOverlay, type BottomSheetOverlayProps, BottomSheetPortal, type BottomSheetPortalProps, BottomSheetPositioner, type BottomSheetPositionerProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, ConversationPreviewCard, ConversationPreviewCardAction, type ConversationPreviewCardActionProps, ConversationPreviewCardAuthor, ConversationPreviewCardAuthorName, type ConversationPreviewCardAuthorNameProps, type ConversationPreviewCardAuthorProps, ConversationPreviewCardAuthorSubtitle, type ConversationPreviewCardAuthorSubtitleProps, ConversationPreviewCardChannel, type ConversationPreviewCardChannelProps, ConversationPreviewCardContent, type ConversationPreviewCardContentProps, ConversationPreviewCardFooter, type ConversationPreviewCardFooterProps, ConversationPreviewCardMeta, type ConversationPreviewCardMetaProps, ConversationPreviewCardPreview, ConversationPreviewCardPreviewAuthor, type ConversationPreviewCardPreviewAuthorProps, ConversationPreviewCardPreviewLeading, type ConversationPreviewCardPreviewLeadingProps, type ConversationPreviewCardPreviewProps, type ConversationPreviewCardProps, ConversationPreviewCardSecondaryPreview, type ConversationPreviewCardSecondaryPreviewProps, ConversationPreviewCardTimestamp, type ConversationPreviewCardTimestampProps, DescriptionAction, type DescriptionActionProps, DescriptionDetails, type DescriptionDetailsProps, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DescriptionTerm, type DescriptionTermProps, Lightbox, LightboxActions, type LightboxActionsProps, LightboxClose, type LightboxCloseProps, LightboxContent, type LightboxContentProps, LightboxHeader, type LightboxHeaderProps, LightboxInfoActions, type LightboxInfoActionsProps, LightboxInfoBar, type LightboxInfoBarProps, LightboxInfoTitle, type LightboxInfoTitleProps, LightboxMedia, type LightboxMediaProps, LightboxNavigationButton, type LightboxNavigationButtonProps, LightboxPortal, type LightboxPortalProps, type LightboxProps, LightboxStage, type LightboxStageProps, LightboxTitle, type LightboxTitleProps, LightboxTrigger, type LightboxTriggerProps, ListItem, ListItemActionGroup, type ListItemActionGroupProps, ListItemBody, type ListItemBodyProps, ListItemDescription, type ListItemDescriptionProps, ListItemIcon, type ListItemIconProps, ListItemMeta, type ListItemMetaProps, type ListItemProps, ListItemRow, type ListItemRowProps, ListItemTitle, type ListItemTitleProps, MediaListItem, MediaListItemActionGroup, type MediaListItemActionGroupProps, MediaListItemAside, type MediaListItemAsideProps, MediaListItemBody, type MediaListItemBodyProps, type MediaListItemProps, MediaListItemSubtitle, type MediaListItemSubtitleProps, MediaListItemText, type MediaListItemTextProps, MediaListItemTitle, type MediaListItemTitleProps, MediaListItemVisual, type MediaListItemVisualProps, PanelHeader, PanelHeaderActions, type PanelHeaderActionsProps, PanelHeaderContent, type PanelHeaderContentProps, PanelHeaderIcon, type PanelHeaderIconProps, type PanelHeaderProps, PanelHeaderSubtitle, type PanelHeaderSubtitleProps, PanelHeaderSuffix, type PanelHeaderSuffixProps, PanelHeaderTitle, type PanelHeaderTitleProps, PanelHeaderTitleRow, type PanelHeaderTitleRowProps, PanelHeaderVisual, type PanelHeaderVisualProps, PreviewShell, type PreviewShellProps, QuotedMessageCard, QuotedMessageCardAttachments, type QuotedMessageCardAttachmentsProps, QuotedMessageCardAuthor, QuotedMessageCardAuthorName, type QuotedMessageCardAuthorNameProps, type QuotedMessageCardAuthorProps, QuotedMessageCardAuthorSubtitle, type QuotedMessageCardAuthorSubtitleProps, QuotedMessageCardBody, type QuotedMessageCardBodyProps, QuotedMessageCardChannel, type QuotedMessageCardChannelProps, QuotedMessageCardContent, type QuotedMessageCardContentProps, QuotedMessageCardContentWrap, type QuotedMessageCardContentWrapProps, QuotedMessageCardHeader, type QuotedMessageCardHeaderProps, QuotedMessageCardMeta, type QuotedMessageCardMetaProps, type QuotedMessageCardProps, QuotedMessageCardSeparator, type QuotedMessageCardSeparatorProps, QuotedMessageCardTag, type QuotedMessageCardTagProps, QuotedMessageCardThread, type QuotedMessageCardThreadProps, QuotedMessageCardTimestamp, type QuotedMessageCardTimestampProps, QuotedMessageCardUnavailable, type QuotedMessageCardUnavailableProps, SectionHeader, SectionHeaderActions, type SectionHeaderActionsProps, SectionHeaderContent, type SectionHeaderContentProps, SectionHeaderCount, type SectionHeaderCountProps, SectionHeaderIcon, type SectionHeaderIconProps, type SectionHeaderProps, SectionHeaderTitle, type SectionHeaderTitleProps, SectionLabel, type SectionLabelProps, ToggleGroup, ToggleGroupCount, type ToggleGroupCountProps, ToggleGroupItem, type ToggleGroupItemProps, ToggleGroupLabel, type ToggleGroupLabelProps, type ToggleGroupProps };
|
package/dist/wip.mjs
CHANGED
|
@@ -1013,15 +1013,67 @@ const lightbox = tv({
|
|
|
1013
1013
|
actions: ["flex shrink-0 items-center gap-1.5"],
|
|
1014
1014
|
stage: ["pointer-events-none relative flex min-h-0 flex-1 items-center justify-center overflow-hidden"],
|
|
1015
1015
|
media: ["pointer-events-auto max-h-[80vh] max-w-[86vw] border-2"],
|
|
1016
|
+
navigationButton: [
|
|
1017
|
+
"pointer-events-auto absolute z-10 inline-flex items-center justify-center",
|
|
1018
|
+
"border-2 border-line-strong bg-layer-panel text-foreground-strong shadow-sm",
|
|
1019
|
+
"transition-[background-color,color,opacity,box-shadow,transform] duration-150",
|
|
1020
|
+
"outline outline-[1px] outline-offset-2 outline-transparent",
|
|
1021
|
+
"focus-visible:outline-foreground-strong",
|
|
1022
|
+
"data-[disabled=true]:cursor-default",
|
|
1023
|
+
"[&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0"
|
|
1024
|
+
],
|
|
1025
|
+
infoBar: [
|
|
1026
|
+
"pointer-events-auto flex min-w-0 items-center",
|
|
1027
|
+
"bg-layer-panel text-foreground-strong",
|
|
1028
|
+
"shadow-[0_12px_32px_-18px_oklch(0_0_0_/_0.55)]"
|
|
1029
|
+
],
|
|
1030
|
+
infoTitle: ["min-w-0 flex-1 truncate font-heading text-sm font-bold"],
|
|
1031
|
+
infoActions: ["flex shrink-0 items-center gap-1.5"],
|
|
1016
1032
|
close: []
|
|
1017
1033
|
},
|
|
1018
1034
|
variants: { theme: {
|
|
1019
1035
|
brutal: {
|
|
1020
|
-
header: ["
|
|
1036
|
+
header: ["bg-transparent shadow-none"],
|
|
1021
1037
|
title: ["text-foreground-strong"],
|
|
1022
|
-
media: ["border-line-strong bg-layer-panel shadow-xl"]
|
|
1038
|
+
media: ["border-line-strong bg-layer-panel shadow-xl"],
|
|
1039
|
+
navigationButton: [
|
|
1040
|
+
"size-8 rounded-none",
|
|
1041
|
+
"hover:bg-layer-panel data-[disabled=true]:text-black/35",
|
|
1042
|
+
"[&_svg]:size-6"
|
|
1043
|
+
],
|
|
1044
|
+
infoBar: [
|
|
1045
|
+
"w-[clamp(9rem,20vw,14rem)] max-w-[calc(100vw-3rem)] min-w-[9rem]",
|
|
1046
|
+
"gap-2 rounded-none border-2 border-black py-0.5 pr-0.5 pl-2.5 shadow-[var(--shadow)]",
|
|
1047
|
+
"[&_[data-slot=button]_svg]:stroke-2"
|
|
1048
|
+
],
|
|
1049
|
+
infoTitle: ["text-xs text-black"]
|
|
1023
1050
|
},
|
|
1024
|
-
elegant: {
|
|
1051
|
+
elegant: {
|
|
1052
|
+
backdrop: ["bg-[oklch(0_0_0_/_0.72)] backdrop-blur-[2px]"],
|
|
1053
|
+
header: ["bg-transparent shadow-none"],
|
|
1054
|
+
title: ["font-sans font-medium text-foreground-strong"],
|
|
1055
|
+
actions: ["gap-2"],
|
|
1056
|
+
media: ["border border-line-subtle bg-layer-panel shadow-none"],
|
|
1057
|
+
navigationButton: [
|
|
1058
|
+
"size-8 rounded-full border-0",
|
|
1059
|
+
"bg-white/75 backdrop-blur-md",
|
|
1060
|
+
"text-foreground-muted",
|
|
1061
|
+
"shadow-none",
|
|
1062
|
+
"hover:bg-white/85 hover:text-foreground-strong",
|
|
1063
|
+
"active:scale-[0.97]",
|
|
1064
|
+
"data-[disabled=true]:bg-white/35 data-[disabled=true]:text-black/30 data-[disabled=true]:shadow-none",
|
|
1065
|
+
"data-[disabled=true]:hover:bg-white/35 data-[disabled=true]:active:scale-100",
|
|
1066
|
+
"[&_svg]:size-5"
|
|
1067
|
+
],
|
|
1068
|
+
infoBar: [
|
|
1069
|
+
"w-[clamp(9rem,20vw,14rem)] max-w-[calc(100vw-3rem)] min-w-[9rem]",
|
|
1070
|
+
"gap-2 rounded py-0.5 pr-0.5 pl-2.5",
|
|
1071
|
+
"bg-[rgba(245,245,245,0.8)] text-neutral-900 shadow-none backdrop-blur-[10px]",
|
|
1072
|
+
"[&_[data-slot=button]]:text-neutral-600 [&_[data-slot=button]]:hover:bg-neutral-900/10 [&_[data-slot=button]]:hover:text-neutral-800"
|
|
1073
|
+
],
|
|
1074
|
+
infoTitle: ["font-sans text-xs font-medium text-neutral-800"],
|
|
1075
|
+
infoActions: ["gap-1"]
|
|
1076
|
+
}
|
|
1025
1077
|
} }
|
|
1026
1078
|
});
|
|
1027
1079
|
function Lightbox({ closeOnModW = true, defaultOpen = false, modal = true, onOpenChange, open, children, ...props }) {
|
|
@@ -1075,6 +1127,7 @@ function LightboxContent({ className, initialFocus = false, finalFocus = false,
|
|
|
1075
1127
|
className: backdrop()
|
|
1076
1128
|
}), /* @__PURE__ */ jsx(Dialog.Popup, {
|
|
1077
1129
|
"data-slot": "lightbox-content",
|
|
1130
|
+
"data-theme": theme,
|
|
1078
1131
|
initialFocus,
|
|
1079
1132
|
finalFocus,
|
|
1080
1133
|
className: content({ className }),
|
|
@@ -1126,6 +1179,56 @@ function LightboxMedia({ render, className, ...props }) {
|
|
|
1126
1179
|
state: { slot: "lightbox-media" }
|
|
1127
1180
|
});
|
|
1128
1181
|
}
|
|
1182
|
+
function LightboxNavigationButton({ className, direction, disabled, onClick, type = "button", ...props }) {
|
|
1183
|
+
const { navigationButton } = lightbox({ theme: useThemeFamily() });
|
|
1184
|
+
const handleClick = useCallback((event) => {
|
|
1185
|
+
event.stopPropagation();
|
|
1186
|
+
if (disabled) {
|
|
1187
|
+
event.preventDefault();
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
onClick?.(event);
|
|
1191
|
+
}, [disabled, onClick]);
|
|
1192
|
+
return /* @__PURE__ */ jsx(Button$1, {
|
|
1193
|
+
"aria-disabled": disabled,
|
|
1194
|
+
className: navigationButton({ className: cn(direction === "previous" ? "left-8" : "right-8", className) }),
|
|
1195
|
+
"data-disabled": disabled ? "true" : void 0,
|
|
1196
|
+
"data-slot": "lightbox-navigation-button",
|
|
1197
|
+
"data-direction": direction,
|
|
1198
|
+
onClick: handleClick,
|
|
1199
|
+
size: "icon-lg",
|
|
1200
|
+
type,
|
|
1201
|
+
variant: "outline",
|
|
1202
|
+
...props
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
function LightboxInfoBar({ render, className, ...props }) {
|
|
1206
|
+
const { infoBar } = lightbox({ theme: useThemeFamily() });
|
|
1207
|
+
return useRender({
|
|
1208
|
+
defaultTagName: "div",
|
|
1209
|
+
render,
|
|
1210
|
+
props: mergeProps({ className: infoBar({ className }) }, props),
|
|
1211
|
+
state: { slot: "lightbox-info-bar" }
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
function LightboxInfoTitle({ render, className, ...props }) {
|
|
1215
|
+
const { infoTitle } = lightbox({ theme: useThemeFamily() });
|
|
1216
|
+
return useRender({
|
|
1217
|
+
defaultTagName: "div",
|
|
1218
|
+
render,
|
|
1219
|
+
props: mergeProps({ className: infoTitle({ className }) }, props),
|
|
1220
|
+
state: { slot: "lightbox-info-title" }
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
function LightboxInfoActions({ render, className, ...props }) {
|
|
1224
|
+
const { infoActions } = lightbox({ theme: useThemeFamily() });
|
|
1225
|
+
return useRender({
|
|
1226
|
+
defaultTagName: "div",
|
|
1227
|
+
render,
|
|
1228
|
+
props: mergeProps({ className: infoActions({ className }) }, props),
|
|
1229
|
+
state: { slot: "lightbox-info-actions" }
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1129
1232
|
function LightboxClose({ className, ...props }) {
|
|
1130
1233
|
const { close } = lightbox({ theme: useThemeFamily() });
|
|
1131
1234
|
return /* @__PURE__ */ jsx(Dialog.Close, {
|
|
@@ -1331,4 +1434,4 @@ function BottomSheetDescription({ className, ...props }) {
|
|
|
1331
1434
|
});
|
|
1332
1435
|
}
|
|
1333
1436
|
//#endregion
|
|
1334
|
-
export { BottomSheet, BottomSheetActions, BottomSheetBody, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetOverlay, BottomSheetPortal, BottomSheetPositioner, BottomSheetTitle, BottomSheetTrigger, ConversationPreviewCard, ConversationPreviewCardAction, ConversationPreviewCardAuthor, ConversationPreviewCardAuthorName, ConversationPreviewCardAuthorSubtitle, ConversationPreviewCardChannel, ConversationPreviewCardContent, ConversationPreviewCardFooter, ConversationPreviewCardMeta, ConversationPreviewCardPreview, ConversationPreviewCardPreviewAuthor, ConversationPreviewCardPreviewLeading, ConversationPreviewCardSecondaryPreview, ConversationPreviewCardTimestamp, DescriptionAction, DescriptionDetails, DescriptionItem, DescriptionList, DescriptionTerm, Lightbox, LightboxActions, LightboxClose, LightboxContent, LightboxHeader, LightboxMedia, LightboxPortal, LightboxStage, LightboxTitle, LightboxTrigger, ListItem, ListItemActionGroup, ListItemBody, ListItemDescription, ListItemIcon, ListItemMeta, ListItemRow, ListItemTitle, MediaListItem, MediaListItemActionGroup, MediaListItemAside, MediaListItemBody, MediaListItemSubtitle, MediaListItemText, MediaListItemTitle, MediaListItemVisual, PanelHeader, PanelHeaderActions, PanelHeaderContent, PanelHeaderIcon, PanelHeaderSubtitle, PanelHeaderSuffix, PanelHeaderTitle, PanelHeaderTitleRow, PanelHeaderVisual, PreviewShell, QuotedMessageCard, QuotedMessageCardAttachments, QuotedMessageCardAuthor, QuotedMessageCardAuthorName, QuotedMessageCardAuthorSubtitle, QuotedMessageCardBody, QuotedMessageCardChannel, QuotedMessageCardContent, QuotedMessageCardContentWrap, QuotedMessageCardHeader, QuotedMessageCardMeta, QuotedMessageCardSeparator, QuotedMessageCardTag, QuotedMessageCardThread, QuotedMessageCardTimestamp, QuotedMessageCardUnavailable, SectionHeader, SectionHeaderActions, SectionHeaderContent, SectionHeaderCount, SectionHeaderIcon, SectionHeaderTitle, SectionLabel, ToggleGroup, ToggleGroupCount, ToggleGroupItem, ToggleGroupLabel };
|
|
1437
|
+
export { BottomSheet, BottomSheetActions, BottomSheetBody, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetOverlay, BottomSheetPortal, BottomSheetPositioner, BottomSheetTitle, BottomSheetTrigger, ConversationPreviewCard, ConversationPreviewCardAction, ConversationPreviewCardAuthor, ConversationPreviewCardAuthorName, ConversationPreviewCardAuthorSubtitle, ConversationPreviewCardChannel, ConversationPreviewCardContent, ConversationPreviewCardFooter, ConversationPreviewCardMeta, ConversationPreviewCardPreview, ConversationPreviewCardPreviewAuthor, ConversationPreviewCardPreviewLeading, ConversationPreviewCardSecondaryPreview, ConversationPreviewCardTimestamp, DescriptionAction, DescriptionDetails, DescriptionItem, DescriptionList, DescriptionTerm, Lightbox, LightboxActions, LightboxClose, LightboxContent, LightboxHeader, LightboxInfoActions, LightboxInfoBar, LightboxInfoTitle, LightboxMedia, LightboxNavigationButton, LightboxPortal, LightboxStage, LightboxTitle, LightboxTrigger, ListItem, ListItemActionGroup, ListItemBody, ListItemDescription, ListItemIcon, ListItemMeta, ListItemRow, ListItemTitle, MediaListItem, MediaListItemActionGroup, MediaListItemAside, MediaListItemBody, MediaListItemSubtitle, MediaListItemText, MediaListItemTitle, MediaListItemVisual, PanelHeader, PanelHeaderActions, PanelHeaderContent, PanelHeaderIcon, PanelHeaderSubtitle, PanelHeaderSuffix, PanelHeaderTitle, PanelHeaderTitleRow, PanelHeaderVisual, PreviewShell, QuotedMessageCard, QuotedMessageCardAttachments, QuotedMessageCardAuthor, QuotedMessageCardAuthorName, QuotedMessageCardAuthorSubtitle, QuotedMessageCardBody, QuotedMessageCardChannel, QuotedMessageCardContent, QuotedMessageCardContentWrap, QuotedMessageCardHeader, QuotedMessageCardMeta, QuotedMessageCardSeparator, QuotedMessageCardTag, QuotedMessageCardThread, QuotedMessageCardTimestamp, QuotedMessageCardUnavailable, SectionHeader, SectionHeaderActions, SectionHeaderContent, SectionHeaderCount, SectionHeaderIcon, SectionHeaderTitle, SectionLabel, ToggleGroup, ToggleGroupCount, ToggleGroupItem, ToggleGroupLabel };
|