@gaulatti/bleecker 0.1.7 → 0.1.9
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/components/accordion.js +2 -2
- package/dist/components/alert-dialog.d.ts +13 -0
- package/dist/components/alert-dialog.js +42 -0
- package/dist/components/avatar.d.ts +16 -0
- package/dist/components/avatar.js +36 -0
- package/dist/components/breadcrumb.d.ts +15 -0
- package/dist/components/breadcrumb.js +24 -0
- package/dist/components/button-group.d.ts +15 -0
- package/dist/components/button-group.js +23 -0
- package/dist/components/collection-filters.d.ts +1 -1
- package/dist/components/collection-filters.js +1 -1
- package/dist/components/command-spotlight.d.ts +30 -0
- package/dist/components/command-spotlight.js +214 -0
- package/dist/components/date-picker.d.ts +20 -0
- package/dist/components/date-picker.js +97 -0
- package/dist/components/drawer.d.ts +11 -0
- package/dist/components/drawer.js +42 -0
- package/dist/components/empty.d.ts +9 -0
- package/dist/components/empty.js +6 -0
- package/dist/components/hover-card.d.ts +12 -0
- package/dist/components/hover-card.js +9 -0
- package/dist/components/kbd.d.ts +7 -0
- package/dist/components/kbd.js +10 -0
- package/dist/components/menubar.d.ts +43 -0
- package/dist/components/menubar.js +58 -0
- package/dist/components/navigation-menu.d.ts +16 -0
- package/dist/components/navigation-menu.js +41 -0
- package/dist/components/otp-input.d.ts +11 -0
- package/dist/components/otp-input.js +53 -0
- package/dist/components/popover.d.ts +14 -0
- package/dist/components/popover.js +93 -0
- package/dist/components/progress.d.ts +11 -0
- package/dist/components/progress.js +17 -0
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/radio-group.js +14 -0
- package/dist/components/scroll-area.d.ts +11 -0
- package/dist/components/scroll-area.js +12 -0
- package/dist/components/sheet.d.ts +12 -0
- package/dist/components/sheet.js +53 -0
- package/dist/components/slider.d.ts +11 -0
- package/dist/components/slider.js +9 -0
- package/dist/components/sonner.d.ts +29 -0
- package/dist/components/sonner.js +76 -0
- package/dist/components/sortable-table-header.js +4 -3
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/switch.js +7 -0
- package/dist/components/table.d.ts +60 -0
- package/dist/components/table.js +92 -0
- package/dist/components/toggle-group.d.ts +26 -0
- package/dist/components/toggle-group.js +32 -0
- package/dist/components/toggle.d.ts +8 -0
- package/dist/components/toggle.js +26 -0
- package/dist/components/tooltip.d.ts +9 -0
- package/dist/components/tooltip.js +24 -0
- package/dist/index.d.ts +25 -1
- package/dist/index.js +25 -1
- package/dist/styles.css +1 -1
- package/dist/theme/theme-script.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../utils/cn.js';
|
|
4
|
+
export const Slider = React.forwardRef(function Slider({ className, disabled, label, max = 100, min = 0, onChange, showValue = false, step = 1, value = 0, ...props }, ref) {
|
|
5
|
+
const pct = ((value - min) / (max - min)) * 100;
|
|
6
|
+
return (_jsxs("div", { className: cn('space-y-2', className), children: [(label || showValue) && (_jsxs("div", { className: 'flex items-center justify-between', children: [label ? _jsx("span", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: label }) : _jsx("span", {}), showValue && _jsx("span", { className: 'text-sm tabular-nums text-text-secondary dark:text-text-primary', children: value })] })), _jsxs("div", { className: 'relative flex h-5 items-center', children: [_jsx("div", { className: 'pointer-events-none absolute inset-y-0 flex w-full items-center', children: _jsx("div", { className: 'h-2 w-full overflow-hidden rounded-full bg-sand/20 dark:bg-sand/30', children: _jsx("div", { className: 'h-full rounded-full bg-sea transition-[width] duration-150 dark:bg-accent-blue', style: { width: `${pct}%` } }) }) }), _jsx("input", { ref: ref, type: 'range', min: min, max: max, step: step, value: value, disabled: disabled, onChange: (e) => onChange?.(Number(e.target.value)), className: cn('relative h-2 w-full cursor-pointer appearance-none rounded-full bg-transparent',
|
|
7
|
+
// Thumb styling via arbitrary CSS
|
|
8
|
+
'[&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-sea [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-sm [&::-webkit-slider-thumb]:transition-transform [&::-webkit-slider-thumb]:duration-150 [&::-webkit-slider-thumb]:hover:scale-110 dark:[&::-webkit-slider-thumb]:border-accent-blue', '[&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-sea [&::-moz-range-thumb]:bg-white [&::-moz-range-thumb]:shadow-sm dark:[&::-moz-range-thumb]:border-accent-blue', 'focus:outline-none focus-visible:ring-2 focus-visible:ring-sea focus-visible:ring-offset-2 dark:focus-visible:ring-accent-blue', disabled && 'cursor-not-allowed opacity-50'), ...props })] })] }));
|
|
9
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SonnerVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
3
|
+
export type SonnerPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
4
|
+
export interface SonnerToast {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
duration?: number;
|
|
9
|
+
variant?: SonnerVariant;
|
|
10
|
+
action?: {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/** Call outside React to fire a toast — only works when <Sonner> is mounted. */
|
|
16
|
+
export declare const toast: {
|
|
17
|
+
show: (t: Omit<SonnerToast, "id">) => string;
|
|
18
|
+
success: (title: string, rest?: Partial<Omit<SonnerToast, "id" | "title" | "variant">>) => string;
|
|
19
|
+
error: (title: string, rest?: Partial<Omit<SonnerToast, "id" | "title" | "variant">>) => string;
|
|
20
|
+
warning: (title: string, rest?: Partial<Omit<SonnerToast, "id" | "title" | "variant">>) => string;
|
|
21
|
+
info: (title: string, rest?: Partial<Omit<SonnerToast, "id" | "title" | "variant">>) => string;
|
|
22
|
+
dismiss: (id: string) => void | undefined;
|
|
23
|
+
};
|
|
24
|
+
export interface SonnerProps {
|
|
25
|
+
position?: SonnerPosition;
|
|
26
|
+
/** Default duration in ms (0 = persistent) */
|
|
27
|
+
duration?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare function Sonner({ duration, position }: SonnerProps): React.ReactPortal | null;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { AlertCircle, AlertTriangle, CheckCircle, Info, X } from 'lucide-react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createPortal } from 'react-dom';
|
|
5
|
+
import { cn } from '../utils/cn.js';
|
|
6
|
+
const ToastContext = React.createContext(null);
|
|
7
|
+
let externalAdd = null;
|
|
8
|
+
let externalDismiss = null;
|
|
9
|
+
/** Call outside React to fire a toast — only works when <Sonner> is mounted. */
|
|
10
|
+
export const toast = {
|
|
11
|
+
show: (t) => externalAdd?.(t) ?? '',
|
|
12
|
+
success: (title, rest) => externalAdd?.({ title, variant: 'success', ...rest }) ?? '',
|
|
13
|
+
error: (title, rest) => externalAdd?.({ title, variant: 'error', ...rest }) ?? '',
|
|
14
|
+
warning: (title, rest) => externalAdd?.({ title, variant: 'warning', ...rest }) ?? '',
|
|
15
|
+
info: (title, rest) => externalAdd?.({ title, variant: 'info', ...rest }) ?? '',
|
|
16
|
+
dismiss: (id) => externalDismiss?.(id)
|
|
17
|
+
};
|
|
18
|
+
// ─── Variant config ─────────────────────────────────────────────────────────
|
|
19
|
+
const variantConfig = {
|
|
20
|
+
default: { icon: Info, color: 'text-text-secondary' },
|
|
21
|
+
info: { icon: Info, color: 'text-desert dark:text-accent-gold' },
|
|
22
|
+
success: { icon: CheckCircle, color: 'text-sea dark:text-accent-blue' },
|
|
23
|
+
warning: { icon: AlertTriangle, color: 'text-sunset dark:text-accent-gold' },
|
|
24
|
+
error: { icon: AlertCircle, color: 'text-terracotta' }
|
|
25
|
+
};
|
|
26
|
+
// ─── Single toast item ───────────────────────────────────────────────────────
|
|
27
|
+
function ToastItem({ toast, onDismiss }) {
|
|
28
|
+
const [visible, setVisible] = React.useState(false);
|
|
29
|
+
const { icon: Icon, color } = variantConfig[toast.variant ?? 'default'];
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
requestAnimationFrame(() => setVisible(true));
|
|
32
|
+
if (!toast.duration || toast.duration <= 0)
|
|
33
|
+
return;
|
|
34
|
+
const t = setTimeout(() => {
|
|
35
|
+
setVisible(false);
|
|
36
|
+
setTimeout(onDismiss, 300);
|
|
37
|
+
}, toast.duration);
|
|
38
|
+
return () => clearTimeout(t);
|
|
39
|
+
}, []);
|
|
40
|
+
return (_jsxs("div", { className: cn('flex w-full items-start gap-3 rounded-2xl border border-sand/10 bg-white/90 p-4 shadow-xl backdrop-blur-md transition-all duration-300 dark:border-sand/20 dark:bg-dark-sand/90', visible ? 'translate-y-0 opacity-100' : 'translate-y-2 opacity-0'), role: 'alert', children: [_jsx(Icon, { size: 18, className: cn('mt-0.5 flex-shrink-0', color) }), _jsxs("div", { className: 'min-w-0 flex-1', children: [_jsx("p", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: toast.title }), toast.description ? _jsx("p", { className: 'mt-0.5 text-xs text-text-secondary dark:text-text-secondary', children: toast.description }) : null, toast.action ? (_jsx("button", { type: 'button', onClick: toast.action.onClick, className: 'mt-2 text-xs font-medium text-sea underline-offset-2 hover:underline dark:text-accent-blue', children: toast.action.label })) : null] }), _jsx("button", { type: 'button', onClick: () => {
|
|
41
|
+
setVisible(false);
|
|
42
|
+
setTimeout(onDismiss, 300);
|
|
43
|
+
}, className: 'flex-shrink-0 rounded-md p-0.5 text-text-secondary transition-colors hover:bg-sand/10 hover:text-text-primary dark:hover:bg-sand/20', "aria-label": 'Dismiss', children: _jsx(X, { size: 14 }) })] }));
|
|
44
|
+
}
|
|
45
|
+
// ─── Position classes ────────────────────────────────────────────────────────
|
|
46
|
+
const positionClasses = {
|
|
47
|
+
'top-left': 'top-4 left-4 items-start',
|
|
48
|
+
'top-center': 'top-4 left-1/2 -translate-x-1/2 items-center',
|
|
49
|
+
'top-right': 'top-4 right-4 items-end',
|
|
50
|
+
'bottom-left': 'bottom-4 left-4 items-start',
|
|
51
|
+
'bottom-center': 'bottom-4 left-1/2 -translate-x-1/2 items-center',
|
|
52
|
+
'bottom-right': 'bottom-4 right-4 items-end'
|
|
53
|
+
};
|
|
54
|
+
export function Sonner({ duration = 4000, position = 'bottom-right' }) {
|
|
55
|
+
const [toasts, setToasts] = React.useState([]);
|
|
56
|
+
const add = React.useCallback((t) => {
|
|
57
|
+
const id = Math.random().toString(36).slice(2);
|
|
58
|
+
setToasts((prev) => [...prev, { duration, ...t, id }]);
|
|
59
|
+
return id;
|
|
60
|
+
}, [duration]);
|
|
61
|
+
const dismiss = React.useCallback((id) => {
|
|
62
|
+
setToasts((prev) => prev.filter((t) => t.id !== id));
|
|
63
|
+
}, []);
|
|
64
|
+
// Wire up external API
|
|
65
|
+
React.useEffect(() => {
|
|
66
|
+
externalAdd = add;
|
|
67
|
+
externalDismiss = dismiss;
|
|
68
|
+
return () => {
|
|
69
|
+
externalAdd = null;
|
|
70
|
+
externalDismiss = null;
|
|
71
|
+
};
|
|
72
|
+
}, [add, dismiss]);
|
|
73
|
+
if (typeof document === 'undefined')
|
|
74
|
+
return null;
|
|
75
|
+
return createPortal(_jsx("div", { "aria-live": 'polite', "aria-label": 'Notifications', className: cn('pointer-events-none fixed z-[9999] flex flex-col gap-2 p-4', positionClasses[position]), style: { maxWidth: '22rem', width: '100%' }, children: toasts.map((t) => (_jsx("div", { className: 'pointer-events-auto w-full', children: _jsx(ToastItem, { toast: t, onDismiss: () => dismiss(t.id) }) }, t.id))) }), document.body);
|
|
76
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ArrowUpDown } from 'lucide-react';
|
|
2
|
+
import { ArrowDown, ArrowUp, ArrowUpDown } from 'lucide-react';
|
|
3
3
|
import { cn } from '../utils/cn.js';
|
|
4
4
|
export function SortableTableHeader({ align = 'left', className, currentSort, field, label, onSort, sortable = true }) {
|
|
5
5
|
const isSorted = currentSort.field === field;
|
|
6
6
|
if (!sortable) {
|
|
7
|
-
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', '
|
|
7
|
+
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4 text-xs font-semibold uppercase tracking-wider text-text-secondary dark:text-text-secondary', className), children: label }));
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
const SortIcon = isSorted ? (currentSort.order === 'asc' ? ArrowUp : ArrowDown) : ArrowUpDown;
|
|
10
|
+
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4', className), children: _jsxs("button", { type: 'button', onClick: () => onSort(field, isSorted && currentSort.order === 'asc' ? 'desc' : 'asc'), className: cn('inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider transition-colors duration-150 focus:outline-none focus-visible:underline', isSorted ? 'text-sea dark:text-accent-blue' : 'text-text-secondary hover:text-text-primary dark:text-text-secondary dark:hover:text-text-primary'), children: [label, _jsx(SortIcon, { size: 12, className: cn('flex-shrink-0 transition-opacity duration-150', isSorted ? 'opacity-100' : 'opacity-40') })] }) }));
|
|
10
11
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../utils/cn.js';
|
|
4
|
+
export const Switch = React.forwardRef(function Switch({ checked = false, className, disabled, id, label, onCheckedChange, ...props }, ref) {
|
|
5
|
+
const inputId = id ?? React.useId();
|
|
6
|
+
return (_jsxs("label", { htmlFor: inputId, className: cn('inline-flex cursor-pointer select-none items-center gap-3', disabled && 'cursor-not-allowed opacity-50', className), children: [_jsxs("span", { className: 'relative inline-flex', children: [_jsx("input", { ref: ref, id: inputId, type: 'checkbox', role: 'switch', checked: checked, disabled: disabled, onChange: (e) => onCheckedChange?.(e.target.checked), className: 'sr-only', "aria-checked": checked, ...props }), _jsx("span", { className: cn('block h-6 w-11 rounded-full border-2 border-transparent transition-colors duration-300', checked ? 'bg-sea dark:bg-accent-blue' : 'bg-sand/30 dark:bg-sand/40') }), _jsx("span", { className: cn('absolute top-0.5 left-0.5 block h-5 w-5 rounded-full bg-white shadow-sm transition-transform duration-300', checked ? 'translate-x-5' : 'translate-x-0') })] }), label ? _jsx("span", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: label }) : null] }));
|
|
7
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SortState {
|
|
3
|
+
field: string;
|
|
4
|
+
order: 'asc' | 'desc';
|
|
5
|
+
}
|
|
6
|
+
export interface SortableTableHeaderProps {
|
|
7
|
+
align?: 'left' | 'right';
|
|
8
|
+
className?: string;
|
|
9
|
+
currentSort: SortState;
|
|
10
|
+
field: string;
|
|
11
|
+
label: string;
|
|
12
|
+
onSort: (field: string, order: 'asc' | 'desc') => void;
|
|
13
|
+
sortable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function SortableTableHeader({ align, className, currentSort, field, label, onSort, sortable }: SortableTableHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
17
|
+
/** Wraps the table in a horizontally-scrollable container */
|
|
18
|
+
containerClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
|
|
21
|
+
export declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
22
|
+
export declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
23
|
+
export declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
24
|
+
export declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
25
|
+
export declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
26
|
+
export declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
27
|
+
export declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
28
|
+
export interface ColumnDef<TData> {
|
|
29
|
+
/** Unique key matching a property of TData, or an arbitrary id for computed columns */
|
|
30
|
+
key: string;
|
|
31
|
+
header: string;
|
|
32
|
+
/** Render the cell value. Defaults to `String(row[key])`. */
|
|
33
|
+
cell?: (row: TData, index: number) => React.ReactNode;
|
|
34
|
+
sortable?: boolean;
|
|
35
|
+
/** Custom compare when sort is uncontrolled. Defaults to string/number comparison. */
|
|
36
|
+
sortFn?: (a: TData, b: TData) => number;
|
|
37
|
+
align?: 'left' | 'right' | 'center';
|
|
38
|
+
className?: string;
|
|
39
|
+
headerClassName?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface DataTableProps<TData> {
|
|
42
|
+
caption?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
columns: ColumnDef<TData>[];
|
|
45
|
+
containerClassName?: string;
|
|
46
|
+
data: TData[];
|
|
47
|
+
emptyMessage?: string;
|
|
48
|
+
/** Required so selection and keying work correctly */
|
|
49
|
+
getRowKey: (row: TData, index: number) => string;
|
|
50
|
+
/** Footer row — receives the current (sorted) data */
|
|
51
|
+
footer?: (data: TData[]) => React.ReactNode;
|
|
52
|
+
/** Controlled sort. If omitted, sort is managed internally. */
|
|
53
|
+
sort?: SortState;
|
|
54
|
+
onSortChange?: (sort: SortState) => void;
|
|
55
|
+
/** Enable checkbox selection */
|
|
56
|
+
selectable?: boolean;
|
|
57
|
+
selectedKeys?: Set<string>;
|
|
58
|
+
onSelectionChange?: (keys: Set<string>) => void;
|
|
59
|
+
}
|
|
60
|
+
export declare function DataTable<TData>({ caption, className, columns, containerClassName, data, emptyMessage, getRowKey, footer, sort: controlledSort, onSortChange, selectable, selectedKeys: controlledSelected, onSelectionChange }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowDown, ArrowUp, ArrowUpDown } from 'lucide-react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { cn } from '../utils/cn.js';
|
|
5
|
+
export function SortableTableHeader({ align = 'left', className, currentSort, field, label, onSort, sortable = true }) {
|
|
6
|
+
const isSorted = currentSort.field === field;
|
|
7
|
+
if (!sortable) {
|
|
8
|
+
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4 text-xs font-semibold uppercase tracking-wider text-text-secondary dark:text-text-secondary', className), children: label }));
|
|
9
|
+
}
|
|
10
|
+
const SortIcon = isSorted ? (currentSort.order === 'asc' ? ArrowUp : ArrowDown) : ArrowUpDown;
|
|
11
|
+
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4', className), children: _jsxs("button", { type: 'button', onClick: () => onSort(field, isSorted && currentSort.order === 'asc' ? 'desc' : 'asc'), className: cn('inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider transition-colors duration-150 focus:outline-none focus-visible:underline', isSorted ? 'text-sea dark:text-accent-blue' : 'text-text-secondary hover:text-text-primary dark:text-text-secondary dark:hover:text-text-primary'), children: [label, _jsx(SortIcon, { size: 12, className: cn('flex-shrink-0 transition-opacity duration-150', isSorted ? 'opacity-100' : 'opacity-40') })] }) }));
|
|
12
|
+
}
|
|
13
|
+
export const Table = React.forwardRef(function Table({ className, containerClassName, ...props }, ref) {
|
|
14
|
+
return (_jsx("div", { className: cn('w-full overflow-x-auto', containerClassName), children: _jsx("table", { ref: ref, className: cn('w-full caption-bottom text-sm', className), ...props }) }));
|
|
15
|
+
});
|
|
16
|
+
// ─── TableHeader ──────────────────────────────────────────────────────────────
|
|
17
|
+
export const TableHeader = React.forwardRef(function TableHeader({ className, ...props }, ref) {
|
|
18
|
+
return (_jsx("thead", { ref: ref, className: cn('border-b border-sand/10 bg-sand/5 dark:border-sand/20 dark:bg-sand/10', '[&_tr]:hover:bg-transparent', className), ...props }));
|
|
19
|
+
});
|
|
20
|
+
// ─── TableBody ────────────────────────────────────────────────────────────────
|
|
21
|
+
export const TableBody = React.forwardRef(function TableBody({ className, ...props }, ref) {
|
|
22
|
+
return _jsx("tbody", { ref: ref, className: cn('[&_tr:last-child]:border-0', className), ...props });
|
|
23
|
+
});
|
|
24
|
+
// ─── TableFooter ──────────────────────────────────────────────────────────────
|
|
25
|
+
export const TableFooter = React.forwardRef(function TableFooter({ className, ...props }, ref) {
|
|
26
|
+
return _jsx("tfoot", { ref: ref, className: cn('border-t border-sand/10 bg-sand/5 font-medium dark:border-sand/20 dark:bg-sand/10', className), ...props });
|
|
27
|
+
});
|
|
28
|
+
// ─── TableRow ─────────────────────────────────────────────────────────────────
|
|
29
|
+
export const TableRow = React.forwardRef(function TableRow({ className, ...props }, ref) {
|
|
30
|
+
return (_jsx("tr", { ref: ref, className: cn('border-b border-sand/10 transition-colors duration-150 data-[selected=true]:bg-sea/5 dark:border-sand/20 dark:data-[selected=true]:bg-accent-blue/10', 'hover:bg-sand/5 dark:hover:bg-sand/10', className), ...props }));
|
|
31
|
+
});
|
|
32
|
+
// ─── TableHead (<th>) ─────────────────────────────────────────────────────────
|
|
33
|
+
export const TableHead = React.forwardRef(function TableHead({ className, ...props }, ref) {
|
|
34
|
+
return (_jsx("th", { ref: ref, className: cn('h-11 px-4 text-left align-middle text-xs font-semibold uppercase tracking-wider text-text-secondary dark:text-text-secondary', '[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className), ...props }));
|
|
35
|
+
});
|
|
36
|
+
// ─── TableCell (<td>) ─────────────────────────────────────────────────────────
|
|
37
|
+
export const TableCell = React.forwardRef(function TableCell({ className, ...props }, ref) {
|
|
38
|
+
return (_jsx("td", { ref: ref, className: cn('px-4 py-3 align-middle text-sm text-text-primary dark:text-text-primary', '[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className), ...props }));
|
|
39
|
+
});
|
|
40
|
+
// ─── TableCaption ─────────────────────────────────────────────────────────────
|
|
41
|
+
export const TableCaption = React.forwardRef(function TableCaption({ className, ...props }, ref) {
|
|
42
|
+
return _jsx("caption", { ref: ref, className: cn('mt-4 text-sm text-text-secondary dark:text-text-secondary', className), ...props });
|
|
43
|
+
});
|
|
44
|
+
function defaultCompare(key, a, b) {
|
|
45
|
+
const av = a[key];
|
|
46
|
+
const bv = b[key];
|
|
47
|
+
if (typeof av === 'number' && typeof bv === 'number')
|
|
48
|
+
return av - bv;
|
|
49
|
+
return String(av ?? '').localeCompare(String(bv ?? ''));
|
|
50
|
+
}
|
|
51
|
+
export function DataTable({ caption, className, columns, containerClassName, data, emptyMessage = 'No results.', getRowKey, footer, sort: controlledSort, onSortChange, selectable = false, selectedKeys: controlledSelected, onSelectionChange }) {
|
|
52
|
+
const [internalSort, setInternalSort] = React.useState({ field: '', order: 'asc' });
|
|
53
|
+
const [internalSelected, setInternalSelected] = React.useState(new Set());
|
|
54
|
+
const sort = controlledSort ?? internalSort;
|
|
55
|
+
const selectedKeys = controlledSelected ?? internalSelected;
|
|
56
|
+
const setSort = (next) => {
|
|
57
|
+
setInternalSort(next);
|
|
58
|
+
onSortChange?.(next);
|
|
59
|
+
};
|
|
60
|
+
const setSelectedKeys = (next) => {
|
|
61
|
+
setInternalSelected(next);
|
|
62
|
+
onSelectionChange?.(next);
|
|
63
|
+
};
|
|
64
|
+
const handleSort = (field, order) => setSort({ field, order });
|
|
65
|
+
// Sort data
|
|
66
|
+
const sortedData = React.useMemo(() => {
|
|
67
|
+
if (!sort.field)
|
|
68
|
+
return data;
|
|
69
|
+
const col = columns.find((c) => c.key === sort.field);
|
|
70
|
+
const compare = col?.sortFn ?? ((a, b) => defaultCompare(sort.field, a, b));
|
|
71
|
+
return [...data].sort((a, b) => (sort.order === 'asc' ? compare(a, b) : -compare(a, b)));
|
|
72
|
+
}, [data, sort, columns]);
|
|
73
|
+
const rowKeys = sortedData.map(getRowKey);
|
|
74
|
+
const allSelected = rowKeys.length > 0 && rowKeys.every((k) => selectedKeys.has(k));
|
|
75
|
+
const someSelected = rowKeys.some((k) => selectedKeys.has(k)) && !allSelected;
|
|
76
|
+
const toggleAll = (checked) => {
|
|
77
|
+
setSelectedKeys(checked ? new Set(rowKeys) : new Set());
|
|
78
|
+
};
|
|
79
|
+
const toggleRow = (key, checked) => {
|
|
80
|
+
const next = new Set(selectedKeys);
|
|
81
|
+
checked ? next.add(key) : next.delete(key);
|
|
82
|
+
setSelectedKeys(next);
|
|
83
|
+
};
|
|
84
|
+
return (_jsx("div", { className: cn('overflow-hidden rounded-xl border border-sand/10 bg-white dark:border-sand/20 dark:bg-dark-sand', containerClassName), children: _jsxs(Table, { className: className, children: [caption && _jsx(TableCaption, { children: caption }), _jsx(TableHeader, { children: _jsxs(TableRow, { children: [selectable && (_jsx(TableHead, { className: 'w-10', children: _jsx("input", { type: 'checkbox', checked: allSelected, ref: (el) => {
|
|
85
|
+
if (el)
|
|
86
|
+
el.indeterminate = someSelected;
|
|
87
|
+
}, onChange: (e) => toggleAll(e.target.checked), className: 'h-4 w-4 rounded border-sand/30 accent-sea dark:accent-accent-blue', "aria-label": 'Select all' }) })), columns.map((col) => (_jsx(SortableTableHeader, { field: col.key, label: col.header, currentSort: sort, onSort: handleSort, sortable: col.sortable !== false, align: col.align === 'right' ? 'right' : 'left', className: col.headerClassName }, col.key)))] }) }), _jsx(TableBody, { children: sortedData.length === 0 ? (_jsx(TableRow, { children: _jsx(TableCell, { colSpan: columns.length + (selectable ? 1 : 0), className: 'h-24 text-center text-text-secondary dark:text-text-secondary', children: emptyMessage }) })) : (sortedData.map((row, i) => {
|
|
88
|
+
const key = rowKeys[i];
|
|
89
|
+
const isSelected = selectedKeys.has(key);
|
|
90
|
+
return (_jsxs(TableRow, { "data-selected": isSelected, children: [selectable && (_jsx(TableCell, { children: _jsx("input", { type: 'checkbox', checked: isSelected, onChange: (e) => toggleRow(key, e.target.checked), className: 'h-4 w-4 rounded border-sand/30 accent-sea dark:accent-accent-blue', "aria-label": `Select row ${key}` }) })), columns.map((col) => (_jsx(TableCell, { className: cn(col.align === 'right' && 'text-right', col.align === 'center' && 'text-center', col.className), children: col.cell ? col.cell(row, i) : String(row[col.key] ?? '') }, col.key)))] }, key));
|
|
91
|
+
})) }), footer && _jsx(TableFooter, { children: footer(sortedData) })] }) }));
|
|
92
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ToggleProps } from './toggle';
|
|
3
|
+
export type ToggleGroupType = 'single' | 'multiple';
|
|
4
|
+
interface ToggleGroupSingleProps {
|
|
5
|
+
type: 'single';
|
|
6
|
+
value?: string;
|
|
7
|
+
onValueChange?: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
interface ToggleGroupMultipleProps {
|
|
10
|
+
type: 'multiple';
|
|
11
|
+
value?: string[];
|
|
12
|
+
onValueChange?: (value: string[]) => void;
|
|
13
|
+
}
|
|
14
|
+
export type ToggleGroupProps = (ToggleGroupSingleProps | ToggleGroupMultipleProps) & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
size?: ToggleProps['size'];
|
|
19
|
+
variant?: ToggleProps['variant'];
|
|
20
|
+
};
|
|
21
|
+
export interface ToggleGroupItemProps extends Omit<ToggleProps, 'pressed' | 'onPressedChange'> {
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ToggleGroup({ children, className, disabled, size, type, variant, ...rest }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function ToggleGroupItem({ children, className, disabled, size, value, variant, ...props }: ToggleGroupItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../utils/cn.js';
|
|
4
|
+
import { Toggle } from './toggle.js';
|
|
5
|
+
const ToggleGroupContext = React.createContext(null);
|
|
6
|
+
function useToggleGroup() {
|
|
7
|
+
const ctx = React.useContext(ToggleGroupContext);
|
|
8
|
+
if (!ctx)
|
|
9
|
+
throw new Error('ToggleGroupItem must be used inside ToggleGroup');
|
|
10
|
+
return ctx;
|
|
11
|
+
}
|
|
12
|
+
export function ToggleGroup({ children, className, disabled, size, type, variant, ...rest }) {
|
|
13
|
+
const currentValue = type === 'single' ? (rest.value ?? '') : (rest.value ?? []);
|
|
14
|
+
const handleChange = (itemValue) => {
|
|
15
|
+
if (type === 'single') {
|
|
16
|
+
const { onValueChange } = rest;
|
|
17
|
+
onValueChange?.(currentValue === itemValue ? '' : itemValue);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
const { onValueChange } = rest;
|
|
21
|
+
const arr = currentValue;
|
|
22
|
+
onValueChange?.(arr.includes(itemValue) ? arr.filter((v) => v !== itemValue) : [...arr, itemValue]);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return (_jsx(ToggleGroupContext.Provider, { value: { type, value: currentValue, onValueChange: handleChange, size, variant, disabled }, children: _jsx("div", { role: 'group', className: cn('inline-flex items-center gap-0.5 rounded-xl bg-sand/10 p-0.5 dark:bg-sand/15', className), children: children }) }));
|
|
26
|
+
}
|
|
27
|
+
export function ToggleGroupItem({ children, className, disabled, size, value, variant, ...props }) {
|
|
28
|
+
const ctx = useToggleGroup();
|
|
29
|
+
const pressed = ctx.type === 'single' ? ctx.value === value : ctx.value.includes(value);
|
|
30
|
+
const isDisabled = disabled ?? ctx.disabled;
|
|
31
|
+
return (_jsx(Toggle, { pressed: pressed, onPressedChange: () => ctx.onValueChange(value), disabled: isDisabled, size: size ?? ctx.size, variant: variant ?? ctx.variant, className: cn('rounded-lg', className), ...props, children: children }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
pressed?: boolean;
|
|
4
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
variant?: 'default' | 'outline';
|
|
7
|
+
}
|
|
8
|
+
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { cn } from '../utils/cn.js';
|
|
4
|
+
const sizeClasses = {
|
|
5
|
+
sm: 'h-8 px-2.5 text-sm gap-1.5',
|
|
6
|
+
md: 'h-9 px-3 text-sm gap-2',
|
|
7
|
+
lg: 'h-10 px-4 text-base gap-2'
|
|
8
|
+
};
|
|
9
|
+
export const Toggle = React.forwardRef(function Toggle({ children, className, disabled, onPressedChange, pressed = false, size = 'md', variant = 'default', onClick, ...props }, ref) {
|
|
10
|
+
const handleClick = (event) => {
|
|
11
|
+
onPressedChange?.(!pressed);
|
|
12
|
+
onClick?.(event);
|
|
13
|
+
};
|
|
14
|
+
return (_jsx("button", { ref: ref, type: 'button', role: 'switch', "aria-checked": pressed, disabled: disabled, onClick: handleClick, className: cn('inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-accent-blue', sizeClasses[size], variant === 'outline'
|
|
15
|
+
? [
|
|
16
|
+
'border',
|
|
17
|
+
pressed
|
|
18
|
+
? 'border-sea bg-sea/10 text-sea dark:border-accent-blue dark:bg-accent-blue/15 dark:text-accent-blue'
|
|
19
|
+
: 'border-sand/30 bg-transparent text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:border-sand/40 dark:hover:bg-sand/15'
|
|
20
|
+
]
|
|
21
|
+
: [
|
|
22
|
+
pressed
|
|
23
|
+
? 'bg-sea/10 text-sea dark:bg-accent-blue/15 dark:text-accent-blue'
|
|
24
|
+
: 'bg-transparent text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:hover:bg-sand/15'
|
|
25
|
+
], className), ...props, children: children }));
|
|
26
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type TooltipSide = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
content: React.ReactNode;
|
|
7
|
+
side?: TooltipSide;
|
|
8
|
+
}
|
|
9
|
+
export declare function Tooltip({ children, className, content, side }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../utils/cn.js';
|
|
3
|
+
const sideClasses = {
|
|
4
|
+
top: {
|
|
5
|
+
container: 'bottom-full left-1/2 mb-2 -translate-x-1/2',
|
|
6
|
+
arrow: 'top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-dark-sand dark:border-t-sand/80'
|
|
7
|
+
},
|
|
8
|
+
bottom: {
|
|
9
|
+
container: 'top-full left-1/2 mt-2 -translate-x-1/2',
|
|
10
|
+
arrow: 'bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-dark-sand dark:border-b-sand/80'
|
|
11
|
+
},
|
|
12
|
+
left: {
|
|
13
|
+
container: 'right-full top-1/2 mr-2 -translate-y-1/2',
|
|
14
|
+
arrow: 'left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-dark-sand dark:border-l-sand/80'
|
|
15
|
+
},
|
|
16
|
+
right: {
|
|
17
|
+
container: 'left-full top-1/2 ml-2 -translate-y-1/2',
|
|
18
|
+
arrow: 'right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-dark-sand dark:border-r-sand/80'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export function Tooltip({ children, className, content, side = 'top' }) {
|
|
22
|
+
const { container, arrow } = sideClasses[side];
|
|
23
|
+
return (_jsxs("span", { className: cn('group relative inline-flex items-center', className), children: [children, _jsxs("span", { role: 'tooltip', className: cn('pointer-events-none absolute z-50 w-max max-w-[220px] rounded-lg bg-dark-sand px-3 py-1.5 text-xs leading-relaxed text-white shadow-xl opacity-0 transition-opacity duration-200 group-hover:opacity-100 group-focus-within:opacity-100 dark:bg-sand/80', container), children: [content, _jsx("span", { className: cn('absolute h-0 w-0 border-4', arrow), "aria-hidden": 'true' })] })] }));
|
|
24
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
export * from './components/brand-lockup';
|
|
2
2
|
export * from './components/bauhaus-background';
|
|
3
3
|
export * from './components/button';
|
|
4
|
+
export * from './components/button-group';
|
|
4
5
|
export * from './components/card';
|
|
5
6
|
export * from './components/accordion';
|
|
6
7
|
export * from './components/alert';
|
|
8
|
+
export * from './components/alert-dialog';
|
|
9
|
+
export * from './components/avatar';
|
|
10
|
+
export * from './components/breadcrumb';
|
|
11
|
+
export * from './components/date-picker';
|
|
12
|
+
export * from './components/drawer';
|
|
13
|
+
export * from './components/empty';
|
|
14
|
+
export * from './components/hover-card';
|
|
15
|
+
export * from './components/kbd';
|
|
16
|
+
export * from './components/menubar';
|
|
17
|
+
export * from './components/navigation-menu';
|
|
18
|
+
export * from './components/otp-input';
|
|
19
|
+
export * from './components/popover';
|
|
20
|
+
export * from './components/progress';
|
|
21
|
+
export * from './components/radio-group';
|
|
22
|
+
export * from './components/scroll-area';
|
|
23
|
+
export * from './components/sheet';
|
|
24
|
+
export * from './components/slider';
|
|
25
|
+
export * from './components/sonner';
|
|
26
|
+
export * from './components/switch';
|
|
27
|
+
export * from './components/toggle';
|
|
28
|
+
export * from './components/toggle-group';
|
|
29
|
+
export * from './components/tooltip';
|
|
7
30
|
export * from './components/header-select';
|
|
8
31
|
export * from './components/hero-carousel';
|
|
9
32
|
export * from './components/field-help-tooltip';
|
|
@@ -15,9 +38,10 @@ export * from './components/modal';
|
|
|
15
38
|
export * from './components/nav-menu';
|
|
16
39
|
export * from './components/pagination';
|
|
17
40
|
export * from './components/collection-filters';
|
|
41
|
+
export * from './components/command-spotlight';
|
|
18
42
|
export * from './components/select';
|
|
19
43
|
export * from './components/section-header';
|
|
20
|
-
export * from './components/
|
|
44
|
+
export * from './components/table';
|
|
21
45
|
export * from './components/tabs';
|
|
22
46
|
export * from './components/theme-toggle';
|
|
23
47
|
export * from './layout/app-shell';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
export * from './components/brand-lockup.js';
|
|
2
2
|
export * from './components/bauhaus-background.js';
|
|
3
3
|
export * from './components/button.js';
|
|
4
|
+
export * from './components/button-group.js';
|
|
4
5
|
export * from './components/card.js';
|
|
5
6
|
export * from './components/accordion.js';
|
|
6
7
|
export * from './components/alert.js';
|
|
8
|
+
export * from './components/alert-dialog.js';
|
|
9
|
+
export * from './components/avatar.js';
|
|
10
|
+
export * from './components/breadcrumb.js';
|
|
11
|
+
export * from './components/date-picker.js';
|
|
12
|
+
export * from './components/drawer.js';
|
|
13
|
+
export * from './components/empty.js';
|
|
14
|
+
export * from './components/hover-card.js';
|
|
15
|
+
export * from './components/kbd.js';
|
|
16
|
+
export * from './components/menubar.js';
|
|
17
|
+
export * from './components/navigation-menu.js';
|
|
18
|
+
export * from './components/otp-input.js';
|
|
19
|
+
export * from './components/popover.js';
|
|
20
|
+
export * from './components/progress.js';
|
|
21
|
+
export * from './components/radio-group.js';
|
|
22
|
+
export * from './components/scroll-area.js';
|
|
23
|
+
export * from './components/sheet.js';
|
|
24
|
+
export * from './components/slider.js';
|
|
25
|
+
export * from './components/sonner.js';
|
|
26
|
+
export * from './components/switch.js';
|
|
27
|
+
export * from './components/toggle.js';
|
|
28
|
+
export * from './components/toggle-group.js';
|
|
29
|
+
export * from './components/tooltip.js';
|
|
7
30
|
export * from './components/header-select.js';
|
|
8
31
|
export * from './components/hero-carousel.js';
|
|
9
32
|
export * from './components/field-help-tooltip.js';
|
|
@@ -15,9 +38,10 @@ export * from './components/modal.js';
|
|
|
15
38
|
export * from './components/nav-menu.js';
|
|
16
39
|
export * from './components/pagination.js';
|
|
17
40
|
export * from './components/collection-filters.js';
|
|
41
|
+
export * from './components/command-spotlight.js';
|
|
18
42
|
export * from './components/select.js';
|
|
19
43
|
export * from './components/section-header.js';
|
|
20
|
-
export * from './components/
|
|
44
|
+
export * from './components/table.js';
|
|
21
45
|
export * from './components/tabs.js';
|
|
22
46
|
export * from './components/theme-toggle.js';
|
|
23
47
|
export * from './layout/app-shell.js';
|