@moldable-ai/ui 0.2.20 → 0.2.22
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/dist/catalog/catalog-coverage.d.ts +15 -0
- package/dist/catalog/catalog-coverage.d.ts.map +1 -0
- package/dist/catalog/catalog-coverage.js +44 -0
- package/dist/catalog/catalog-manifest.d.ts.map +1 -1
- package/dist/catalog/catalog-manifest.js +35 -23
- package/dist/catalog/catalog-types.d.ts +17 -0
- package/dist/catalog/catalog-types.d.ts.map +1 -1
- package/dist/catalog/catalog-types.js +7 -0
- package/dist/catalog/component-catalog.d.ts.map +1 -1
- package/dist/catalog/component-catalog.js +16 -6
- package/dist/catalog/core-catalog-exclusions.d.ts +8 -0
- package/dist/catalog/core-catalog-exclusions.d.ts.map +1 -0
- package/dist/catalog/core-catalog-exclusions.js +155 -0
- package/dist/catalog/core-catalog.d.ts +0 -4
- package/dist/catalog/core-catalog.d.ts.map +1 -1
- package/dist/catalog/core-catalog.js +12 -98
- package/dist/catalog/core-collection-stories.d.ts +3 -0
- package/dist/catalog/core-collection-stories.d.ts.map +1 -0
- package/dist/catalog/core-collection-stories.js +42 -0
- package/dist/catalog/core-control-stories.d.ts +3 -0
- package/dist/catalog/core-control-stories.d.ts.map +1 -0
- package/dist/catalog/core-control-stories.js +97 -0
- package/dist/catalog/core-feedback-stories.d.ts +3 -0
- package/dist/catalog/core-feedback-stories.d.ts.map +1 -0
- package/dist/catalog/core-feedback-stories.js +50 -0
- package/dist/catalog/core-foundation-stories.d.ts +3 -0
- package/dist/catalog/core-foundation-stories.d.ts.map +1 -0
- package/dist/catalog/core-foundation-stories.js +53 -0
- package/dist/catalog/core-navigation-stories.d.ts +3 -0
- package/dist/catalog/core-navigation-stories.d.ts.map +1 -0
- package/dist/catalog/core-navigation-stories.js +25 -0
- package/dist/catalog/core-overlay-stories.d.ts +3 -0
- package/dist/catalog/core-overlay-stories.d.ts.map +1 -0
- package/dist/catalog/core-overlay-stories.js +20 -0
- package/dist/catalog/index.d.ts +3 -1
- package/dist/catalog/index.d.ts.map +1 -1
- package/dist/catalog/index.js +3 -1
- package/dist/components/app-error-boundary.d.ts.map +1 -1
- package/dist/components/app-error-boundary.js +3 -2
- package/dist/components/chat/chat-panel.d.ts +0 -1
- package/dist/components/chat/chat-panel.d.ts.map +1 -1
- package/dist/components/chat/chat-panel.js +7 -11
- package/dist/components/ui/alert-dialog.d.ts +10 -4
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +14 -6
- package/dist/components/ui/alert.d.ts +19 -3
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +25 -8
- package/dist/components/ui/app-frame.d.ts +9 -3
- package/dist/components/ui/app-frame.d.ts.map +1 -1
- package/dist/components/ui/app-frame.js +45 -6
- package/dist/components/ui/button.d.ts +6 -4
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +40 -8
- package/dist/components/ui/collapsible.d.ts +9 -1
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +13 -2
- package/dist/components/ui/collection-navigation.d.ts +8 -0
- package/dist/components/ui/collection-navigation.d.ts.map +1 -0
- package/dist/components/ui/collection-navigation.js +19 -0
- package/dist/components/ui/command.d.ts +5 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +13 -1
- package/dist/components/ui/confirm-dialog.d.ts +19 -0
- package/dist/components/ui/confirm-dialog.d.ts.map +1 -0
- package/dist/components/ui/confirm-dialog.js +45 -0
- package/dist/components/ui/date-picker.d.ts +24 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +92 -0
- package/dist/components/ui/dialog-primary-action.d.ts +4 -0
- package/dist/components/ui/dialog-primary-action.d.ts.map +1 -0
- package/dist/components/ui/dialog-primary-action.js +37 -0
- package/dist/components/ui/dialog.d.ts +8 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +15 -5
- package/dist/components/ui/empty.d.ts +7 -2
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js +20 -7
- package/dist/components/ui/error-boundary-view.d.ts +12 -0
- package/dist/components/ui/error-boundary-view.d.ts.map +1 -0
- package/dist/components/ui/error-boundary-view.js +8 -0
- package/dist/components/ui/grid.d.ts.map +1 -1
- package/dist/components/ui/grid.js +70 -46
- package/dist/components/ui/icon-button.d.ts.map +1 -1
- package/dist/components/ui/icon-button.js +1 -2
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/list.d.ts +5 -1
- package/dist/components/ui/list.d.ts.map +1 -1
- package/dist/components/ui/list.js +27 -16
- package/dist/components/ui/material.d.ts +34 -0
- package/dist/components/ui/material.d.ts.map +1 -0
- package/dist/components/ui/material.js +34 -0
- package/dist/components/ui/message-scroller-controller.d.ts +162 -0
- package/dist/components/ui/message-scroller-controller.d.ts.map +1 -0
- package/dist/components/ui/message-scroller-controller.js +888 -0
- package/dist/components/ui/message-scroller-policy.d.ts +74 -0
- package/dist/components/ui/message-scroller-policy.d.ts.map +1 -0
- package/dist/components/ui/message-scroller-policy.js +129 -0
- package/dist/components/ui/message-scroller-primitive.d.ts +55 -0
- package/dist/components/ui/message-scroller-primitive.d.ts.map +1 -0
- package/dist/components/ui/message-scroller-primitive.js +226 -0
- package/dist/components/ui/message-scroller.d.ts +2 -2
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -15
- package/dist/components/ui/navigation-button-group.d.ts +16 -0
- package/dist/components/ui/navigation-button-group.d.ts.map +1 -0
- package/dist/components/ui/navigation-button-group.js +9 -0
- package/dist/components/ui/popover.d.ts +9 -2
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +13 -3
- package/dist/components/ui/scroll-area.d.ts +8 -2
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +6 -3
- package/dist/components/ui/search-field.d.ts.map +1 -1
- package/dist/components/ui/segmented-control.d.ts.map +1 -1
- package/dist/components/ui/segmented-control.js +6 -5
- package/dist/components/ui/sheet.d.ts +4 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +12 -9
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +7 -2
- package/dist/components/ui/toggle.d.ts +12 -4
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +13 -2
- package/dist/components/ui/toolbar.d.ts +9 -2
- package/dist/components/ui/toolbar.d.ts.map +1 -1
- package/dist/components/ui/toolbar.js +23 -4
- package/dist/components/ui/tooltip.d.ts +8 -3
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +11 -6
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/lib/frame-lifecycle.d.ts +23 -0
- package/dist/lib/frame-lifecycle.d.ts.map +1 -1
- package/dist/lib/frame-lifecycle.js +30 -3
- package/dist/lib/host-date-time-picker.d.ts +36 -0
- package/dist/lib/host-date-time-picker.d.ts.map +1 -0
- package/dist/lib/host-date-time-picker.js +162 -0
- package/dist/lib/host-file-dialog.d.ts +66 -0
- package/dist/lib/host-file-dialog.d.ts.map +1 -0
- package/dist/lib/host-file-dialog.js +221 -0
- package/dist/lib/host-native-menu.d.ts +75 -0
- package/dist/lib/host-native-menu.d.ts.map +1 -0
- package/dist/lib/host-native-menu.js +187 -0
- package/dist/lib/host-services.d.ts +13 -0
- package/dist/lib/host-services.d.ts.map +1 -0
- package/dist/lib/host-services.js +161 -0
- package/dist/lib/host-share.d.ts +39 -0
- package/dist/lib/host-share.d.ts.map +1 -0
- package/dist/lib/host-share.js +161 -0
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +2 -1
- package/docs/README.md +4 -1
- package/docs/adaptive-materials.md +79 -0
- package/docs/app-anatomy.md +3 -1
- package/docs/component-catalog.md +26 -3
- package/docs/design-tokens.md +17 -4
- package/docs/foundations.md +5 -3
- package/docs/standalone-app-windows.md +8 -0
- package/docs/visual-regression.md +78 -0
- package/package.json +12 -4
- package/src/components/ui/alert-dialog.md +58 -0
- package/src/components/ui/alert.md +28 -6
- package/src/components/ui/app-frame.md +5 -0
- package/src/components/ui/button.md +10 -3
- package/src/components/ui/collapsible.md +52 -0
- package/src/components/ui/combobox.md +0 -1
- package/src/components/ui/command.md +54 -0
- package/src/components/ui/date-field.md +1 -1
- package/src/components/ui/date-picker.md +55 -0
- package/src/components/ui/dialog.md +59 -0
- package/src/components/ui/empty.md +8 -3
- package/src/components/ui/error-boundary-view.md +98 -0
- package/src/components/ui/grid.md +8 -4
- package/src/components/ui/icon-button.md +2 -2
- package/src/components/ui/list.md +35 -2
- package/src/components/ui/material.md +51 -0
- package/src/components/ui/navigation-button-group.md +46 -0
- package/src/components/ui/popover.md +31 -0
- package/src/components/ui/scroll-area.md +11 -7
- package/src/components/ui/search-field.md +1 -1
- package/src/components/ui/segmented-control.md +2 -5
- package/src/components/ui/sheet.md +30 -0
- package/src/components/ui/table.md +4 -2
- package/src/components/ui/toggle-button.md +48 -0
- package/src/components/ui/toolbar.md +5 -0
- package/src/components/ui/tooltip.md +31 -0
- package/src/styles/index.css +213 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { CalendarDaysIcon } from 'lucide-react';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
import { Button } from './button';
|
|
7
|
+
import { Calendar } from './calendar';
|
|
8
|
+
import { Popover, PopoverContent, PopoverTrigger } from './popover';
|
|
9
|
+
const ISO_CALENDAR_DATE = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
10
|
+
function parseCalendarDate(value) {
|
|
11
|
+
if (!value)
|
|
12
|
+
return undefined;
|
|
13
|
+
const match = ISO_CALENDAR_DATE.exec(value);
|
|
14
|
+
if (!match)
|
|
15
|
+
return undefined;
|
|
16
|
+
const year = Number(match[1]);
|
|
17
|
+
const month = Number(match[2]);
|
|
18
|
+
const day = Number(match[3]);
|
|
19
|
+
const date = new Date(0);
|
|
20
|
+
date.setHours(0, 0, 0, 0);
|
|
21
|
+
date.setFullYear(year, month - 1, day);
|
|
22
|
+
if (date.getFullYear() !== year ||
|
|
23
|
+
date.getMonth() !== month - 1 ||
|
|
24
|
+
date.getDate() !== day) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
return date;
|
|
28
|
+
}
|
|
29
|
+
function formatCalendarDate(date) {
|
|
30
|
+
const year = String(date.getFullYear()).padStart(4, '0');
|
|
31
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
32
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
33
|
+
return `${year}-${month}-${day}`;
|
|
34
|
+
}
|
|
35
|
+
const densityClasses = {
|
|
36
|
+
compact: 'h-7 gap-1.5 px-2 text-xs',
|
|
37
|
+
default: 'h-9 px-3',
|
|
38
|
+
comfortable: 'h-10 px-3.5',
|
|
39
|
+
};
|
|
40
|
+
function DatePicker({ className, value, defaultValue = '', onValueChange, min, max, placeholder = 'Choose date', locale, formatValue, clearable = false, clearLabel = 'Clear date', density = 'default', open, defaultOpen = false, onOpenChange, disabled, variant = 'outline', 'aria-invalid': ariaInvalid, ...buttonProps }) {
|
|
41
|
+
const controlled = value !== undefined;
|
|
42
|
+
const [internalValue, setInternalValue] = React.useState(defaultValue);
|
|
43
|
+
const [internalOpen, setInternalOpen] = React.useState(defaultOpen);
|
|
44
|
+
const currentValue = controlled ? value : internalValue;
|
|
45
|
+
const selectedDate = parseCalendarDate(currentValue);
|
|
46
|
+
const minDate = parseCalendarDate(min);
|
|
47
|
+
const maxDate = parseCalendarDate(max);
|
|
48
|
+
const isOpen = open ?? internalOpen;
|
|
49
|
+
const invalid = Boolean(currentValue && !selectedDate);
|
|
50
|
+
const disabledDates = React.useMemo(() => {
|
|
51
|
+
const matchers = [];
|
|
52
|
+
if (minDate)
|
|
53
|
+
matchers.push({ before: minDate });
|
|
54
|
+
if (maxDate)
|
|
55
|
+
matchers.push({ after: maxDate });
|
|
56
|
+
return matchers;
|
|
57
|
+
}, [maxDate, minDate]);
|
|
58
|
+
const setOpen = React.useCallback((nextOpen) => {
|
|
59
|
+
if (open === undefined)
|
|
60
|
+
setInternalOpen(nextOpen);
|
|
61
|
+
onOpenChange?.(nextOpen);
|
|
62
|
+
}, [onOpenChange, open]);
|
|
63
|
+
const commitValue = React.useCallback((nextValue) => {
|
|
64
|
+
if (!controlled)
|
|
65
|
+
setInternalValue(nextValue);
|
|
66
|
+
onValueChange?.(nextValue);
|
|
67
|
+
}, [controlled, onValueChange]);
|
|
68
|
+
const displayValue = React.useMemo(() => {
|
|
69
|
+
if (!currentValue)
|
|
70
|
+
return null;
|
|
71
|
+
if (formatValue)
|
|
72
|
+
return formatValue(currentValue);
|
|
73
|
+
if (!selectedDate)
|
|
74
|
+
return currentValue;
|
|
75
|
+
return new Intl.DateTimeFormat(locale?.code, {
|
|
76
|
+
dateStyle: 'medium',
|
|
77
|
+
}).format(selectedDate);
|
|
78
|
+
}, [currentValue, formatValue, locale?.code, selectedDate]);
|
|
79
|
+
return (_jsxs(Popover, { open: isOpen, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { "data-slot": "date-picker-trigger", "data-density": density, type: "button", variant: variant, disabled: disabled, "aria-invalid": (ariaInvalid ?? invalid) || undefined, className: cn('min-w-0 justify-start font-normal', !displayValue && 'text-muted-foreground', densityClasses[density], className), ...buttonProps, children: [_jsx(CalendarDaysIcon, { "aria-hidden": "true" }), _jsx("span", { className: "min-w-0 truncate", children: displayValue ?? placeholder })] }) }), _jsxs(PopoverContent, { "data-slot": "date-picker-content", align: "start", className: "w-auto p-0", children: [_jsx(Calendar, { mode: "single", locale: locale, selected: selectedDate, defaultMonth: selectedDate ?? minDate, disabled: disabledDates, autoFocus: true, onSelect: (nextDate) => {
|
|
80
|
+
if (!nextDate) {
|
|
81
|
+
if (clearable)
|
|
82
|
+
commitValue('');
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
commitValue(formatCalendarDate(nextDate));
|
|
86
|
+
setOpen(false);
|
|
87
|
+
} }), clearable && currentValue ? (_jsx("div", { className: "border-border/60 flex justify-end border-t p-2", children: _jsx(Button, { type: "button", size: "xs", variant: "ghost", onClick: () => {
|
|
88
|
+
commitValue('');
|
|
89
|
+
setOpen(false);
|
|
90
|
+
}, children: clearLabel }) })) : null] })] }));
|
|
91
|
+
}
|
|
92
|
+
export { DatePicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-primary-action.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog-primary-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,IAAI,kBAAkB,EAAE,MAAM,OAAO,CAAA;AA6BhE,iBAAS,gCAAgC,CACvC,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,GACrC,IAAI,CAiCN;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const DIALOG_CONTENT_SELECTOR = '[data-slot="dialog-content"], [data-slot="alert-dialog-content"]';
|
|
2
|
+
const PRIMARY_ACTION_SELECTOR = '[data-dialog-primary-action="true"]';
|
|
3
|
+
function usesCommandKey() {
|
|
4
|
+
if (typeof navigator === 'undefined')
|
|
5
|
+
return false;
|
|
6
|
+
return /Mac|iPhone|iPad|iPod/i.test(`${navigator.platform} ${navigator.userAgent}`);
|
|
7
|
+
}
|
|
8
|
+
function hasPrimaryActionShortcut(event) {
|
|
9
|
+
const hasPlatformModifier = usesCommandKey()
|
|
10
|
+
? event.metaKey && !event.ctrlKey
|
|
11
|
+
: event.ctrlKey && !event.metaKey;
|
|
12
|
+
return (event.key === 'Enter' &&
|
|
13
|
+
hasPlatformModifier &&
|
|
14
|
+
!event.altKey &&
|
|
15
|
+
!event.shiftKey);
|
|
16
|
+
}
|
|
17
|
+
function handleDialogPrimaryActionKeyDown(event) {
|
|
18
|
+
if (event.defaultPrevented ||
|
|
19
|
+
event.repeat ||
|
|
20
|
+
event.nativeEvent.isComposing ||
|
|
21
|
+
!hasPrimaryActionShortcut(event)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const eventTarget = event.target;
|
|
25
|
+
if (eventTarget instanceof Element &&
|
|
26
|
+
eventTarget.closest(DIALOG_CONTENT_SELECTOR) !== event.currentTarget) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const action = event.currentTarget.querySelector(PRIMARY_ACTION_SELECTOR);
|
|
30
|
+
if (!action ||
|
|
31
|
+
action.matches(':disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading="true"]')) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
action.click();
|
|
36
|
+
}
|
|
37
|
+
export { handleDialogPrimaryActionKeyDown };
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { Button } from './button';
|
|
3
4
|
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
declare function DialogContent({ className, children, onKeyDown, size, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
10
|
+
size?: 'sm' | 'default' | 'lg' | 'full';
|
|
9
11
|
showCloseButton?: boolean;
|
|
10
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DialogBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
|
|
13
16
|
showCloseButton?: boolean;
|
|
14
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DialogAction({ primary, ...props }: React.ComponentProps<typeof Button> & {
|
|
19
|
+
primary?: boolean;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
22
|
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
23
|
+
export { Dialog, DialogAction, DialogClose, DialogContent, DialogDescription, DialogBody, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
18
24
|
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,2CAErD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAWtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,IAAgB,EAChB,eAAsB,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imitive from '@radix-ui/react-dialog';
|
|
|
4
4
|
import { XIcon } from 'lucide-react';
|
|
5
5
|
import { cn } from '../../lib/utils';
|
|
6
6
|
import { Button } from './button';
|
|
7
|
+
import { handleDialogPrimaryActionKeyDown } from './dialog-primary-action';
|
|
7
8
|
function Dialog({ ...props }) {
|
|
8
9
|
return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
9
10
|
}
|
|
@@ -19,14 +20,23 @@ function DialogClose({ ...props }) {
|
|
|
19
20
|
function DialogOverlay({ className, ...props }) {
|
|
20
21
|
return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50', className), ...props }));
|
|
21
22
|
}
|
|
22
|
-
function DialogContent({ className, children, showCloseButton = true, ...props }) {
|
|
23
|
-
return (_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn('bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95
|
|
23
|
+
function DialogContent({ className, children, onKeyDown, size = 'default', showCloseButton = true, ...props }) {
|
|
24
|
+
return (_jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [_jsx(DialogOverlay, {}), _jsx("div", { "data-slot": "dialog-positioner", className: "pointer-events-none fixed bottom-[max(var(--window-content-inset-bottom),var(--chat-safe-padding),1rem)] left-[max(var(--window-content-inset-inline-start),1rem)] right-[max(var(--window-content-inset-inline-end),1rem)] top-[max(var(--window-content-inset-top),1rem)] z-50 grid place-items-center", children: _jsxs(DialogPrimitive.Content, { "data-slot": "dialog-content", "data-size": size, className: cn('bg-background rounded-overlay border-separator shadow-overlay pointer-events-auto relative grid max-h-full min-h-0 w-full gap-4 overflow-hidden border p-6 outline-none', 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95', 'duration-[var(--motion-duration-normal)]', 'data-[size=default]:max-w-lg data-[size=lg]:max-w-2xl data-[size=sm]:max-w-sm', 'data-[size=full]:size-full data-[size=full]:max-w-none', className), onKeyDown: (event) => {
|
|
25
|
+
onKeyDown?.(event);
|
|
26
|
+
handleDialogPrimaryActionKeyDown(event);
|
|
27
|
+
}, ...props, children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", "aria-label": "Close", className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-control focus:outline-hidden absolute right-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center opacity-70 transition-opacity duration-[var(--motion-duration-fast)] hover:opacity-100 focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", children: _jsx(XIcon, { "aria-hidden": "true" }) }))] }) })] }));
|
|
24
28
|
}
|
|
25
29
|
function DialogHeader({ className, ...props }) {
|
|
26
|
-
return (_jsx("div", { "data-slot": "dialog-header", className: cn('flex flex-col gap-2 text-center sm:text-left', className), ...props }));
|
|
30
|
+
return (_jsx("div", { "data-slot": "dialog-header", className: cn('flex shrink-0 flex-col gap-2 pr-8 text-center sm:text-left', className), ...props }));
|
|
31
|
+
}
|
|
32
|
+
function DialogBody({ className, ...props }) {
|
|
33
|
+
return (_jsx("div", { "data-slot": "dialog-body", className: cn('min-h-0 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]', className), ...props }));
|
|
27
34
|
}
|
|
28
35
|
function DialogFooter({ className, showCloseButton = false, children, ...props }) {
|
|
29
|
-
return (_jsxs("div", { "data-slot": "dialog-footer", className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className), ...props, children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Close" }) }))] }));
|
|
36
|
+
return (_jsxs("div", { "data-slot": "dialog-footer", className: cn('flex shrink-0 flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-end', className), ...props, children: [children, showCloseButton && (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Close" }) }))] }));
|
|
37
|
+
}
|
|
38
|
+
function DialogAction({ primary = false, ...props }) {
|
|
39
|
+
return (_jsx(Button, { ...props, "data-slot": "dialog-action", "data-dialog-primary-action": primary || undefined }));
|
|
30
40
|
}
|
|
31
41
|
function DialogTitle({ className, ...props }) {
|
|
32
42
|
return (_jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn('text-lg font-semibold leading-none', className), ...props }));
|
|
@@ -34,4 +44,4 @@ function DialogTitle({ className, ...props }) {
|
|
|
34
44
|
function DialogDescription({ className, ...props }) {
|
|
35
45
|
return (_jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
36
46
|
}
|
|
37
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
47
|
+
export { Dialog, DialogAction, DialogClose, DialogContent, DialogDescription, DialogBody, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
declare
|
|
2
|
+
declare const emptyVariants: (props?: ({
|
|
3
|
+
variant?: "compact" | "full" | "pane" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
declare function Empty({ className, safeBottom, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof emptyVariants> & {
|
|
6
|
+
safeBottom?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
3
8
|
declare function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
9
|
declare const emptyMediaVariants: (props?: ({
|
|
5
10
|
variant?: "default" | "icon" | null | undefined;
|
|
@@ -8,5 +13,5 @@ declare function EmptyMedia({ className, variant, ...props }: React.ComponentPro
|
|
|
8
13
|
declare function EmptyTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
declare function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
declare function EmptyContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
|
|
16
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, emptyVariants, };
|
|
12
17
|
//# sourceMappingURL=empty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/ui/empty.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAEjE,iBAAS,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/ui/empty.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAEjE,QAAA,MAAM,aAAa;;8EAclB,CAAA;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,UAAkB,EAClB,OAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC5B,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,2CAeF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWxE;AAED,QAAA,MAAM,kBAAkB;;8EAavB,CAAA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,2CASvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,aAAa,GACd,CAAA"}
|
|
@@ -2,11 +2,24 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from '../../lib/utils';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const emptyVariants = cva('group/empty flex min-w-0 flex-col items-center justify-center text-balance text-center', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
compact: 'gap-3 p-4',
|
|
9
|
+
pane: 'flex-1 gap-4 p-6',
|
|
10
|
+
full: 'min-h-full flex-1 gap-6 p-8 md:p-10',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: 'pane',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
function Empty({ className, safeBottom = false, variant = 'pane', ...props }) {
|
|
18
|
+
return (_jsx("div", { "data-slot": "empty", "data-safe-bottom": safeBottom || undefined, "data-variant": variant, className: cn(emptyVariants({ variant }), safeBottom &&
|
|
19
|
+
'pb-[calc(var(--chat-safe-padding,0px)+var(--density-pane-padding))]', className), ...props }));
|
|
7
20
|
}
|
|
8
21
|
function EmptyHeader({ className, ...props }) {
|
|
9
|
-
return (_jsx("div", { "data-slot": "empty-header", className: cn('flex max-w-sm flex-col items-center gap-2 text-center', className), ...props }));
|
|
22
|
+
return (_jsx("div", { "data-slot": "empty-header", className: cn('flex max-w-sm flex-col items-center gap-2 text-center group-data-[variant=compact]/empty:gap-1.5', className), ...props }));
|
|
10
23
|
}
|
|
11
24
|
const emptyMediaVariants = cva('flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0', {
|
|
12
25
|
variants: {
|
|
@@ -23,12 +36,12 @@ function EmptyMedia({ className, variant = 'default', ...props }) {
|
|
|
23
36
|
return (_jsx("div", { "data-slot": "empty-icon", "data-variant": variant, className: cn(emptyMediaVariants({ variant, className })), ...props }));
|
|
24
37
|
}
|
|
25
38
|
function EmptyTitle({ className, ...props }) {
|
|
26
|
-
return (_jsx("div", { "data-slot": "empty-title", className: cn('
|
|
39
|
+
return (_jsx("div", { "data-slot": "empty-title", className: cn('font-medium tracking-tight group-data-[variant=compact]/empty:text-sm group-data-[variant=full]/empty:text-lg group-data-[variant=pane]/empty:text-base', className), ...props }));
|
|
27
40
|
}
|
|
28
41
|
function EmptyDescription({ className, ...props }) {
|
|
29
|
-
return (_jsx("p", { "data-slot": "empty-description", className: cn('text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4', className), ...props }));
|
|
42
|
+
return (_jsx("p", { "data-slot": "empty-description", className: cn('text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed group-data-[variant=compact]/empty:text-xs/relaxed [&>a]:underline [&>a]:underline-offset-4', className), ...props }));
|
|
30
43
|
}
|
|
31
44
|
function EmptyContent({ className, ...props }) {
|
|
32
|
-
return (_jsx("div", { "data-slot": "empty-content", className: cn('flex w-full min-w-0 max-w-sm flex-col items-center gap-
|
|
45
|
+
return (_jsx("div", { "data-slot": "empty-content", className: cn('flex w-full min-w-0 max-w-sm flex-col items-center gap-3 text-balance text-sm group-data-[variant=compact]/empty:gap-2', className), ...props }));
|
|
33
46
|
}
|
|
34
|
-
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
|
|
47
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, emptyVariants, };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface ErrorBoundaryViewProps {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
message?: ReactNode;
|
|
5
|
+
details?: string;
|
|
6
|
+
onRetry?: () => void;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function ErrorBoundaryView({ actions, className, details, message, onRetry, title, }: ErrorBoundaryViewProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { ErrorBoundaryView, type ErrorBoundaryViewProps };
|
|
12
|
+
//# sourceMappingURL=error-boundary-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-boundary-view.d.ts","sourceRoot":"","sources":["../../../src/components/ui/error-boundary-view.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,UAAU,sBAAsB;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,iBAAS,iBAAiB,CAAC,EACzB,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,EACP,OAAO,EACP,KAA8B,GAC/B,EAAE,sBAAsB,2CAwCxB;AAED,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
|
+
import { Button } from './button';
|
|
5
|
+
function ErrorBoundaryView({ actions, className, details, message, onRetry, title = 'Something went wrong', }) {
|
|
6
|
+
return (_jsx("main", { className: cn('bg-background text-foreground flex min-h-full w-full items-center justify-center p-4 sm:p-6', className), children: _jsxs("section", { className: "border-border bg-card w-full max-w-xl rounded-lg border p-5 shadow-lg sm:p-6", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("h1", { className: "text-xl font-semibold tracking-tight", children: title }), message ? (_jsx("p", { className: "text-muted-foreground text-sm leading-6", children: message })) : null] }), details ? (_jsxs("details", { className: "mt-5", children: [_jsx("summary", { className: "text-muted-foreground cursor-pointer text-sm font-medium", children: "Error details" }), _jsx("pre", { className: "bg-muted text-muted-foreground mt-2 max-h-44 overflow-auto whitespace-pre-wrap rounded-md border p-3 font-mono text-xs", children: details })] })) : null, onRetry || actions ? (_jsxs("div", { className: "mt-5 flex flex-col gap-2 sm:flex-row", children: [onRetry ? (_jsx(Button, { type: "button", onClick: onRetry, children: "Retry" })) : null, actions] })) : null] }) }));
|
|
7
|
+
}
|
|
8
|
+
export { ErrorBoundaryView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/components/ui/grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
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P,GAAG,EACH,GAAG,KAAK,EACT,EAAE,aAAa,2CA4Ef;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW1E;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ1E;AAED,iBAAS,mBAAmB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAQ3B;AAED,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,KAAK,SAAS,EACd,KAAK,iBAAiB,GACvB,CAAA"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { cn } from '../../lib/utils';
|
|
5
|
+
import { getCollectionItemsInDomOrder, isInteractiveDescendant, } from './collection-navigation';
|
|
5
6
|
const GridContext = React.createContext(null);
|
|
6
7
|
function useGridContext(component) {
|
|
7
8
|
const context = React.useContext(GridContext);
|
|
@@ -22,11 +23,6 @@ function sameSelection(a, b) {
|
|
|
22
23
|
}
|
|
23
24
|
return true;
|
|
24
25
|
}
|
|
25
|
-
function isInteractiveDescendant(target, currentTarget) {
|
|
26
|
-
if (!(target instanceof HTMLElement) || target === currentTarget)
|
|
27
|
-
return false;
|
|
28
|
-
return Boolean(target.closest('a,button,input,select,textarea,[contenteditable="true"],[role="button"],[role="link"]'));
|
|
29
|
-
}
|
|
30
26
|
function Grid({ className, children, columns = 1, selectionMode = 'none', selectedValues, defaultSelectedValues, onSelectionChange, onAction, loop = false, disabled = false, onKeyDown, style, ref, ...props }) {
|
|
31
27
|
const itemsRef = React.useRef(new Map());
|
|
32
28
|
const [activeValue, setActiveValueState] = React.useState(null);
|
|
@@ -40,18 +36,21 @@ function Grid({ className, children, columns = 1, selectionMode = 'none', select
|
|
|
40
36
|
if (!node)
|
|
41
37
|
return () => undefined;
|
|
42
38
|
itemsRef.current.set(value, { node, disabled: itemDisabled });
|
|
43
|
-
if (!disabled && !itemDisabled) {
|
|
44
|
-
setActiveValueState((current) => current ?? value);
|
|
45
|
-
}
|
|
46
39
|
return () => {
|
|
47
40
|
itemsRef.current.delete(value);
|
|
48
|
-
setActiveValueState((current) =>
|
|
49
|
-
if (current !== value)
|
|
50
|
-
return current;
|
|
51
|
-
return ([...itemsRef.current.entries()].find(([, item]) => !disabled && !item.disabled)?.[0] ?? null);
|
|
52
|
-
});
|
|
41
|
+
setActiveValueState((current) => (current === value ? null : current));
|
|
53
42
|
};
|
|
54
|
-
}, [
|
|
43
|
+
}, []);
|
|
44
|
+
React.useLayoutEffect(() => {
|
|
45
|
+
const items = getCollectionItemsInDomOrder(itemsRef.current).filter(([, item]) => !disabled && !item.disabled);
|
|
46
|
+
setActiveValueState((current) => {
|
|
47
|
+
if (current && items.some(([value]) => value === current))
|
|
48
|
+
return current;
|
|
49
|
+
return (items.find(([value]) => selection.has(value))?.[0] ??
|
|
50
|
+
items[0]?.[0] ??
|
|
51
|
+
null);
|
|
52
|
+
});
|
|
53
|
+
}, [children, disabled, selection]);
|
|
55
54
|
const setActiveValue = React.useCallback((value) => {
|
|
56
55
|
const item = itemsRef.current.get(value);
|
|
57
56
|
if (item && !item.disabled)
|
|
@@ -86,41 +85,61 @@ function Grid({ className, children, columns = 1, selectionMode = 'none', select
|
|
|
86
85
|
return;
|
|
87
86
|
onAction?.(value);
|
|
88
87
|
}, [disabled, onAction]);
|
|
89
|
-
const moveFocus = React.useCallback((
|
|
90
|
-
const entries =
|
|
88
|
+
const moveFocus = React.useCallback((direction) => {
|
|
89
|
+
const entries = getCollectionItemsInDomOrder(itemsRef.current);
|
|
91
90
|
if (entries.length === 0)
|
|
92
91
|
return;
|
|
93
92
|
const currentIndex = entries.findIndex(([value]) => value === activeValue);
|
|
94
93
|
const enabledAt = (index) => entries[index] && !disabled && !entries[index][1].disabled;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
94
|
+
const startIndex = currentIndex < 0 ? 0 : currentIndex;
|
|
95
|
+
const currentRow = Math.floor(startIndex / safeColumns);
|
|
96
|
+
const currentColumn = startIndex % safeColumns;
|
|
97
|
+
const rowStart = currentRow * safeColumns;
|
|
98
|
+
const rowEnd = Math.min(entries.length - 1, rowStart + safeColumns - 1);
|
|
99
|
+
let candidates = [];
|
|
100
|
+
if (direction === 'first') {
|
|
101
|
+
candidates = Array.from({ length: entries.length }, (_, index) => index);
|
|
103
102
|
}
|
|
104
|
-
else {
|
|
105
|
-
|
|
103
|
+
else if (direction === 'last') {
|
|
104
|
+
candidates = Array.from({ length: entries.length }, (_, index) => entries.length - index - 1);
|
|
105
|
+
}
|
|
106
|
+
else if (direction === 'row-first') {
|
|
107
|
+
candidates = Array.from({ length: rowEnd - rowStart + 1 }, (_, index) => rowStart + index);
|
|
106
108
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
else if (direction === 'row-last') {
|
|
110
|
+
candidates = Array.from({ length: rowEnd - rowStart + 1 }, (_, index) => rowEnd - index);
|
|
111
|
+
}
|
|
112
|
+
else if (direction === 'left' || direction === 'right') {
|
|
113
|
+
const step = direction === 'left' ? -1 : 1;
|
|
114
|
+
for (let index = startIndex + step; index >= rowStart && index <= rowEnd; index += step) {
|
|
115
|
+
candidates.push(index);
|
|
114
116
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
if (loop && candidates.length === 0) {
|
|
118
|
+
candidates =
|
|
119
|
+
direction === 'left'
|
|
120
|
+
? Array.from({ length: entries.length }, (_, index) => (startIndex - index - 1 + entries.length) % entries.length)
|
|
121
|
+
: Array.from({ length: entries.length }, (_, index) => (startIndex + index + 1) % entries.length);
|
|
117
122
|
}
|
|
118
|
-
attempts += 1;
|
|
119
123
|
}
|
|
124
|
+
else {
|
|
125
|
+
const step = direction === 'up' ? -safeColumns : safeColumns;
|
|
126
|
+
for (let index = startIndex + step; index >= 0 && index < entries.length; index += step) {
|
|
127
|
+
candidates.push(index);
|
|
128
|
+
}
|
|
129
|
+
if (loop && candidates.length === 0) {
|
|
130
|
+
const sameColumn = entries
|
|
131
|
+
.map((_, index) => index)
|
|
132
|
+
.filter((index) => index % safeColumns === currentColumn);
|
|
133
|
+
candidates = direction === 'up' ? sameColumn.reverse() : sameColumn;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const nextIndex = candidates.find(enabledAt);
|
|
137
|
+
if (nextIndex === undefined || nextIndex === currentIndex)
|
|
138
|
+
return;
|
|
120
139
|
const [value, item] = entries[nextIndex];
|
|
121
140
|
setActiveValueState(value);
|
|
122
141
|
item.node.focus();
|
|
123
|
-
}, [activeValue, disabled, loop]);
|
|
142
|
+
}, [activeValue, disabled, loop, safeColumns]);
|
|
124
143
|
const handleKeyDown = (event) => {
|
|
125
144
|
onKeyDown?.(event);
|
|
126
145
|
if (event.defaultPrevented || disabled)
|
|
@@ -129,19 +148,24 @@ function Grid({ className, children, columns = 1, selectionMode = 'none', select
|
|
|
129
148
|
if (target.dataset.slot !== 'grid-item')
|
|
130
149
|
return;
|
|
131
150
|
const movement = {
|
|
132
|
-
ArrowLeft:
|
|
133
|
-
ArrowRight:
|
|
134
|
-
ArrowUp:
|
|
135
|
-
ArrowDown:
|
|
151
|
+
ArrowLeft: 'left',
|
|
152
|
+
ArrowRight: 'right',
|
|
153
|
+
ArrowUp: 'up',
|
|
154
|
+
ArrowDown: 'down',
|
|
136
155
|
};
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
156
|
+
const direction = movement[event.key];
|
|
157
|
+
if (direction !== undefined) {
|
|
139
158
|
event.preventDefault();
|
|
140
|
-
moveFocus(
|
|
159
|
+
moveFocus(direction);
|
|
141
160
|
}
|
|
142
161
|
else if (event.key === 'Home' || event.key === 'End') {
|
|
143
162
|
event.preventDefault();
|
|
144
|
-
|
|
163
|
+
if (event.ctrlKey || event.metaKey) {
|
|
164
|
+
moveFocus(event.key === 'Home' ? 'first' : 'last');
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
moveFocus(event.key === 'Home' ? 'row-first' : 'row-last');
|
|
168
|
+
}
|
|
145
169
|
}
|
|
146
170
|
else if (event.key === ' ') {
|
|
147
171
|
event.preventDefault();
|
|
@@ -194,7 +218,7 @@ function GridItem({ className, children, value, disabled = false, onClick, onDou
|
|
|
194
218
|
ref.current = node;
|
|
195
219
|
}, [ref]);
|
|
196
220
|
React.useLayoutEffect(() => registerItem(value, itemRef.current, isDisabled), [isDisabled, registerItem, value]);
|
|
197
|
-
return (_jsx("div", { ref: setRef, role: "gridcell", tabIndex: isDisabled ? -1 : isActive ? 0 : -1, "aria-disabled": isDisabled || undefined, "aria-selected": context.selectionMode === 'none' ? undefined : isSelected, "data-slot": "grid-item", "data-active": isActive || undefined, "data-disabled": isDisabled || undefined, "data-selected": context.selectionMode === 'none' ? undefined : isSelected, "data-value": value, className: cn('group/grid-item relative min-w-0 cursor-default select-none overflow-hidden rounded-lg border
|
|
221
|
+
return (_jsx("div", { ref: setRef, role: "gridcell", tabIndex: isDisabled ? -1 : isActive ? 0 : -1, "aria-disabled": isDisabled || undefined, "aria-selected": context.selectionMode === 'none' ? undefined : isSelected, "data-slot": "grid-item", "data-active": isActive || undefined, "data-disabled": isDisabled || undefined, "data-selected": context.selectionMode === 'none' ? undefined : isSelected, "data-value": value, className: cn('group/grid-item border-border bg-card text-card-foreground relative min-w-0 cursor-default select-none overflow-hidden rounded-lg border outline-none transition-[background-color,border-color,box-shadow] duration-100', 'hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', 'data-[selected=true]:border-ring data-[selected=true]:bg-accent/60', 'data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50', className), onClick: (event) => {
|
|
198
222
|
onClick?.(event);
|
|
199
223
|
if (event.defaultPrevented ||
|
|
200
224
|
isDisabled ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icon-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,KAAK,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAA;AASpD,UAAU,eACR,SAAQ,IAAI,CACV,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EACnC,YAAY,GAAG,SAAS,GAAG,MAAM,CAClC;IACD,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,cAAc,CAAA;IACrB,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B;AAED,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAe,EACf,KAAiB,EACjB,IAAgB,EAChB,OAAO,EACP,IAAe,EACf,GAAG,KAAK,EACT,EAAE,eAAe,2CAgBjB;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { LoaderCircleIcon } from 'lucide-react';
|
|
4
3
|
import { cn } from '../../lib/utils';
|
|
5
4
|
import { Button } from './button';
|
|
6
5
|
const buttonSizeByIconSize = {
|
|
@@ -10,6 +9,6 @@ const buttonSizeByIconSize = {
|
|
|
10
9
|
lg: 'icon-lg',
|
|
11
10
|
};
|
|
12
11
|
function IconButton({ children, className, disabled, label, loading = false, shape = 'rounded', size = 'default', tooltip, type = 'button', ...props }) {
|
|
13
|
-
return (_jsx(Button, { "data-slot": "icon-button", "
|
|
12
|
+
return (_jsx(Button, { "data-slot": "icon-button", "aria-label": label, title: tooltip === true ? label : tooltip || undefined, type: type, size: buttonSizeByIconSize[size], disabled: disabled, loading: loading, className: cn(shape === 'circle' && 'rounded-full', className), ...props, children: children }));
|
|
14
13
|
}
|
|
15
14
|
export { IconButton };
|
|
@@ -17,13 +17,16 @@ export * from './collapsible';
|
|
|
17
17
|
export * from './color-well';
|
|
18
18
|
export * from './combobox';
|
|
19
19
|
export * from './command';
|
|
20
|
+
export * from './confirm-dialog';
|
|
20
21
|
export * from './context-menu';
|
|
21
22
|
export * from './dialog';
|
|
22
23
|
export * from './drawer';
|
|
23
24
|
export * from './dropdown-menu';
|
|
24
25
|
export * from './date-field';
|
|
26
|
+
export * from './date-picker';
|
|
25
27
|
export * from './empty';
|
|
26
28
|
export * from './edge-fade';
|
|
29
|
+
export * from './error-boundary-view';
|
|
27
30
|
export * from './field';
|
|
28
31
|
export * from './form';
|
|
29
32
|
export * from './grid';
|
|
@@ -38,8 +41,10 @@ export * from './kbd';
|
|
|
38
41
|
export * from './label';
|
|
39
42
|
export * from './list';
|
|
40
43
|
export * from './menubar';
|
|
44
|
+
export * from './material';
|
|
41
45
|
export * from './message-scroller';
|
|
42
46
|
export * from './navigation-menu';
|
|
47
|
+
export * from './navigation-button-group';
|
|
43
48
|
export * from './notification-dot';
|
|
44
49
|
export * from './number-input';
|
|
45
50
|
export * from './pagination';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,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cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA"}
|
|
@@ -17,13 +17,16 @@ export * from './collapsible';
|
|
|
17
17
|
export * from './color-well';
|
|
18
18
|
export * from './combobox';
|
|
19
19
|
export * from './command';
|
|
20
|
+
export * from './confirm-dialog';
|
|
20
21
|
export * from './context-menu';
|
|
21
22
|
export * from './dialog';
|
|
22
23
|
export * from './drawer';
|
|
23
24
|
export * from './dropdown-menu';
|
|
24
25
|
export * from './date-field';
|
|
26
|
+
export * from './date-picker';
|
|
25
27
|
export * from './empty';
|
|
26
28
|
export * from './edge-fade';
|
|
29
|
+
export * from './error-boundary-view';
|
|
27
30
|
export * from './field';
|
|
28
31
|
export * from './form';
|
|
29
32
|
export * from './grid';
|
|
@@ -38,8 +41,10 @@ export * from './kbd';
|
|
|
38
41
|
export * from './label';
|
|
39
42
|
export * from './list';
|
|
40
43
|
export * from './menubar';
|
|
44
|
+
export * from './material';
|
|
41
45
|
export * from './message-scroller';
|
|
42
46
|
export * from './navigation-menu';
|
|
47
|
+
export * from './navigation-button-group';
|
|
43
48
|
export * from './notification-dot';
|
|
44
49
|
export * from './number-input';
|
|
45
50
|
export * from './pagination';
|