@gaulatti/bleecker 0.1.34 → 0.1.36
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/README.md +75 -0
- package/dist/components/accordion.js +3 -2
- package/dist/components/activity-item.js +1 -1
- package/dist/components/alert-dialog.js +24 -11
- package/dist/components/alert.d.ts +2 -1
- package/dist/components/alert.js +11 -10
- package/dist/components/avatar.d.ts +2 -1
- package/dist/components/avatar.js +1 -0
- package/dist/components/bauhaus-background.js +1 -1
- package/dist/components/brand-lockup.js +1 -1
- package/dist/components/breadcrumb.js +3 -2
- package/dist/components/button.d.ts +3 -5
- package/dist/components/button.js +17 -12
- package/dist/components/card.d.ts +5 -1
- package/dist/components/card.js +3 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/collection-filters.d.ts +2 -1
- package/dist/components/collection-filters.js +40 -7
- package/dist/components/command-spotlight.js +10 -5
- package/dist/components/context-menu.js +2 -2
- package/dist/components/dashboard-section.js +1 -1
- package/dist/components/data-list.js +1 -1
- package/dist/components/data-table-column-toggle.js +8 -20
- package/dist/components/data-table.js +2 -1
- package/dist/components/date-picker.d.ts +3 -1
- package/dist/components/date-picker.js +11 -29
- package/dist/components/date-range-picker.d.ts +3 -3
- package/dist/components/date-range-picker.js +24 -9
- package/dist/components/dialog-close-button.js +2 -2
- package/dist/components/donut-chart.js +1 -1
- package/dist/components/drawer.js +8 -22
- package/dist/components/dropdown-menu.js +7 -7
- package/dist/components/empty.js +1 -1
- package/dist/components/error-state.js +1 -1
- package/dist/components/feed-item.js +1 -1
- package/dist/components/field-help-tooltip.js +1 -1
- package/dist/components/field.d.ts +17 -0
- package/dist/components/field.js +16 -0
- package/dist/components/file-input.js +1 -1
- package/dist/components/filter-chip.js +2 -2
- package/dist/components/header-select.d.ts +13 -2
- package/dist/components/header-select.js +7 -3
- package/dist/components/hero-carousel.js +3 -2
- package/dist/components/hover-card.js +1 -1
- package/dist/components/icon-badge.d.ts +5 -2
- package/dist/components/icon-badge.js +2 -2
- package/dist/components/icon-button.d.ts +4 -0
- package/dist/components/icon-button.js +3 -2
- package/dist/components/input.d.ts +2 -3
- package/dist/components/input.js +5 -5
- package/dist/components/label.js +1 -1
- package/dist/components/loading-overlay.js +1 -1
- package/dist/components/loading-spinner.d.ts +3 -1
- package/dist/components/media-library.js +5 -3
- package/dist/components/menubar.js +17 -7
- package/dist/components/metric.d.ts +2 -2
- package/dist/components/metric.js +1 -0
- package/dist/components/modal.js +53 -13
- package/dist/components/navigation-menu.js +15 -5
- package/dist/components/notification-badge.js +1 -1
- package/dist/components/otp-input.js +2 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +3 -3
- package/dist/components/panel.js +1 -1
- package/dist/components/popover.d.ts +3 -2
- package/dist/components/popover.js +4 -91
- package/dist/components/progress.d.ts +4 -2
- package/dist/components/progress.js +3 -3
- package/dist/components/radio-group.d.ts +3 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/sankey-chart.js +1 -0
- package/dist/components/scatter-chart.js +1 -1
- package/dist/components/search-input.js +1 -1
- package/dist/components/section-header.js +1 -1
- package/dist/components/select.d.ts +12 -1
- package/dist/components/select.js +13 -64
- package/dist/components/sheet.js +8 -24
- package/dist/components/sidebar.js +4 -3
- package/dist/components/slider.js +2 -2
- package/dist/components/sonner.js +3 -2
- package/dist/components/stat-card.js +1 -1
- package/dist/components/status-badge.d.ts +2 -1
- package/dist/components/status-badge.js +5 -6
- package/dist/components/stepper.js +2 -2
- package/dist/components/sunburst-chart.js +1 -0
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +10 -8
- package/dist/components/tabs.d.ts +6 -1
- package/dist/components/tabs.js +30 -7
- package/dist/components/textarea.d.ts +2 -3
- package/dist/components/textarea.js +2 -2
- package/dist/components/theme-toggle.js +1 -0
- package/dist/components/timeline.js +1 -1
- package/dist/components/toggle-group.js +2 -1
- package/dist/components/toggle.d.ts +4 -2
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.d.ts +2 -1
- package/dist/components/tooltip.js +3 -21
- package/dist/core/contracts.d.ts +48 -0
- package/dist/core/contracts.js +23 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/layout/admin-shell.js +1 -1
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/footer.js +4 -4
- package/dist/layout/header.js +2 -1
- package/dist/styles.css +1 -1
- package/dist/theme/theme-provider.js +1 -0
- package/dist/theme/theme-script.d.ts +1 -2
- package/dist/theme/theme-script.js +1 -3
- package/dist/theme/types.d.ts +2 -1
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/source.d.ts +221 -0
- package/dist/tokens/source.js +140 -0
- package/dist/utils/hooks.d.ts +14 -0
- package/dist/utils/hooks.js +101 -0
- package/package.json +41 -7
- package/src/styles/global.css +82 -175
- package/src/styles/tokens.generated.css +171 -0
package/dist/components/table.js
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { ArrowDown, ArrowUp, ArrowUpDown } from 'lucide-react';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { cn } from '../utils/cn.js';
|
|
6
|
+
import { Checkbox } from './checkbox.js';
|
|
5
7
|
export function SortableTableHeader({ align = 'left', className, currentSort, field, label, onSort, sortable = true }) {
|
|
6
8
|
const isSorted = currentSort.field === field;
|
|
7
9
|
if (!sortable) {
|
|
8
|
-
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4 text-
|
|
10
|
+
return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'h-11 px-4 text-[11px] font-semibold uppercase tracking-[0.08em] text-text-secondary dark:text-text-secondary', className), children: label }));
|
|
9
11
|
}
|
|
10
12
|
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-
|
|
13
|
+
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-[11px] font-semibold uppercase tracking-[0.08em] transition-colors duration-[var(--motion-control)] ease-premium 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-[var(--motion-control)] ease-premium', isSorted ? 'opacity-100' : 'opacity-40') })] }) }));
|
|
12
14
|
}
|
|
13
15
|
export const Table = React.forwardRef(function Table({ className, containerClassName, ...props }, ref) {
|
|
14
16
|
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
17
|
});
|
|
16
18
|
// ─── TableHeader ──────────────────────────────────────────────────────────────
|
|
17
19
|
export const TableHeader = React.forwardRef(function TableHeader({ className, ...props }, ref) {
|
|
18
|
-
return (_jsx("thead", { ref: ref, className: cn('border-b border-sand/
|
|
20
|
+
return (_jsx("thead", { ref: ref, className: cn('border-b border-sand/25 bg-light-sand/40 dark:border-white/10 dark:bg-white/[0.035]', '[&_tr]:hover:bg-transparent', className), ...props }));
|
|
19
21
|
});
|
|
20
22
|
// ─── TableBody ────────────────────────────────────────────────────────────────
|
|
21
23
|
export const TableBody = React.forwardRef(function TableBody({ className, ...props }, ref) {
|
|
@@ -53,11 +55,11 @@ export const TableRow = React.forwardRef(function TableRow({ className, onMouseE
|
|
|
53
55
|
const handleMouseLeave = React.useCallback((e) => {
|
|
54
56
|
onMouseLeave?.(e);
|
|
55
57
|
}, [onMouseLeave]);
|
|
56
|
-
return (_jsx("tr", { ref: mergedRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, className: cn('border-b border-sand/
|
|
58
|
+
return (_jsx("tr", { ref: mergedRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, className: cn('border-b border-sand/20 data-[selected=true]:bg-sea/[0.045] dark:border-white/[0.07] dark:data-[selected=true]:bg-accent-blue/[0.08]', 'transition-colors duration-[var(--motion-surface)] ease-premium hover:bg-light-sand/45 dark:hover:bg-white/[0.035]', className), ...props }));
|
|
57
59
|
});
|
|
58
60
|
// ─── TableHead (<th>) ─────────────────────────────────────────────────────────
|
|
59
61
|
export const TableHead = React.forwardRef(function TableHead({ className, ...props }, ref) {
|
|
60
|
-
return (_jsx("th", { ref: ref, className: cn('h-11 px-4 text-left align-middle text-
|
|
62
|
+
return (_jsx("th", { ref: ref, className: cn('h-11 px-4 text-left align-middle text-[11px] font-semibold uppercase tracking-[0.08em] text-text-secondary dark:text-text-secondary', '[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className), ...props }));
|
|
61
63
|
});
|
|
62
64
|
// ─── TableCell (<td>) ─────────────────────────────────────────────────────────
|
|
63
65
|
export const TableCell = React.forwardRef(function TableCell({ className, ...props }, ref) {
|
|
@@ -107,12 +109,12 @@ export function DataTable({ caption, className, columns, containerClassName, dat
|
|
|
107
109
|
checked ? next.add(key) : next.delete(key);
|
|
108
110
|
setSelectedKeys(next);
|
|
109
111
|
};
|
|
110
|
-
return (_jsx("div", { className: cn('overflow-hidden rounded-
|
|
112
|
+
return (_jsx("div", { className: cn('overflow-hidden rounded-[var(--radius-card)] border border-sand/30 bg-white shadow-[var(--shadow-surface)] dark:border-white/10 dark:bg-deep-sea', 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(Checkbox, { checked: allSelected, ref: (el) => {
|
|
111
113
|
if (el)
|
|
112
114
|
el.indeterminate = someSelected;
|
|
113
|
-
}, onChange: (e) => toggleAll(e.target.checked),
|
|
115
|
+
}, onChange: (e) => toggleAll(e.target.checked), "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) => {
|
|
114
116
|
const key = rowKeys[i];
|
|
115
117
|
const isSelected = selectedKeys.has(key);
|
|
116
|
-
return (_jsxs(TableRow, { "data-selected": isSelected, children: [selectable && (_jsx(TableCell, { children: _jsx(
|
|
118
|
+
return (_jsxs(TableRow, { "data-selected": isSelected, children: [selectable && (_jsx(TableCell, { children: _jsx(Checkbox, { checked: isSelected, onChange: (e) => toggleRow(key, e.target.checked), "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));
|
|
117
119
|
})) }), footer && _jsx(TableFooter, { children: footer(sortedData) })] }) }));
|
|
118
120
|
}
|
|
@@ -4,6 +4,7 @@ export interface TabItem {
|
|
|
4
4
|
label: string;
|
|
5
5
|
href?: string;
|
|
6
6
|
external?: boolean;
|
|
7
|
+
panelId?: string;
|
|
7
8
|
}
|
|
8
9
|
export type TabRenderLink = (props: {
|
|
9
10
|
item: TabItem & {
|
|
@@ -14,9 +15,13 @@ export type TabRenderLink = (props: {
|
|
|
14
15
|
}) => React.ReactNode;
|
|
15
16
|
export interface TabsProps {
|
|
16
17
|
activeTab?: string;
|
|
18
|
+
'aria-label'?: string;
|
|
17
19
|
className?: string;
|
|
18
20
|
onChange?: (id: string) => void;
|
|
19
21
|
renderLink?: TabRenderLink;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
stretch?: boolean;
|
|
20
24
|
tabs: TabItem[];
|
|
25
|
+
variant?: 'underline' | 'segmented' | 'enclosed';
|
|
21
26
|
}
|
|
22
|
-
export declare function Tabs({ activeTab, className, onChange, renderLink, tabs }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function Tabs({ activeTab, 'aria-label': ariaLabel, className, onChange, renderLink, size, stretch, tabs, variant }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/tabs.js
CHANGED
|
@@ -2,20 +2,43 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { renderDefaultLink } from './nav-menu.js';
|
|
4
4
|
import { cn } from '../utils/cn.js';
|
|
5
|
-
export function Tabs({ activeTab, className, onChange, renderLink, tabs }) {
|
|
6
|
-
|
|
5
|
+
export function Tabs({ activeTab, 'aria-label': ariaLabel = 'Tabs', className, onChange, renderLink, size = 'md', stretch = false, tabs, variant = 'underline' }) {
|
|
6
|
+
const isNavigation = tabs.some((tab) => Boolean(tab.href));
|
|
7
|
+
const handleKeyDown = (event, index) => {
|
|
8
|
+
if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight' && event.key !== 'Home' && event.key !== 'End')
|
|
9
|
+
return;
|
|
10
|
+
event.preventDefault();
|
|
11
|
+
const nextIndex = event.key === 'Home' ? 0 : event.key === 'End' ? tabs.length - 1 : (index + (event.key === 'ArrowRight' ? 1 : -1) + tabs.length) % tabs.length;
|
|
12
|
+
const next = tabs[nextIndex];
|
|
13
|
+
onChange?.(next.id);
|
|
14
|
+
event.currentTarget.parentElement?.querySelectorAll('[role="tab"]')[nextIndex]?.focus();
|
|
15
|
+
};
|
|
16
|
+
return (_jsx("nav", { className: cn('flex items-center', variant === 'underline' && '-mb-px gap-1 border-b border-sand/20 dark:border-white/10', variant === 'segmented' && 'w-fit gap-1 rounded-[10px] bg-light-sand/70 p-1 dark:bg-white/[0.06]', variant === 'enclosed' && 'w-fit gap-1 rounded-[10px] border border-sand/30 bg-white p-1 shadow-[0_1px_2px_rgba(21,48,66,0.04)] dark:border-white/15 dark:bg-deep-sea', stretch && 'w-full', className), "aria-label": ariaLabel, role: isNavigation ? undefined : 'tablist', children: tabs.map((tab, index) => {
|
|
7
17
|
const isActive = tab.id === activeTab;
|
|
8
|
-
const tabClassName = cn('flex-
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
const tabClassName = cn('relative inline-flex translate-y-0 items-center justify-center whitespace-nowrap text-center font-medium tracking-ui outline-none transition-[background-color,border-color,color,box-shadow,transform] duration-[var(--motion-control)] ease-premium active:translate-y-px focus-visible:ring-2 focus-visible:ring-sea/30 dark:focus-visible:ring-accent-blue/40', size === 'sm' && 'min-h-8 px-3 text-xs', size === 'md' && 'min-h-10 px-4 text-sm', size === 'lg' && 'min-h-12 px-5 text-[15px]', stretch && 'flex-1', variant === 'underline' && [
|
|
19
|
+
'border-b-2 border-transparent',
|
|
20
|
+
isActive
|
|
21
|
+
? 'border-sea text-sea dark:border-accent-blue dark:text-accent-blue'
|
|
22
|
+
: 'text-text-secondary hover:border-sand/60 hover:text-text-primary dark:text-text-secondary dark:hover:border-white/25 dark:hover:text-text-primary'
|
|
23
|
+
], variant === 'segmented' && [
|
|
24
|
+
'rounded-[7px] border border-transparent',
|
|
25
|
+
isActive
|
|
26
|
+
? 'border-sand/25 bg-white text-deep-sea shadow-[0_1px_3px_rgba(21,48,66,0.10)] dark:border-white/10 dark:bg-deep-sea dark:text-text-primary'
|
|
27
|
+
: 'text-text-secondary hover:text-text-primary'
|
|
28
|
+
], variant === 'enclosed' && [
|
|
29
|
+
'rounded-[7px] border border-transparent',
|
|
30
|
+
isActive
|
|
31
|
+
? 'border-sand/30 bg-light-sand/70 text-deep-sea dark:border-white/10 dark:bg-white/[0.08] dark:text-text-primary'
|
|
32
|
+
: 'text-text-secondary hover:bg-light-sand/35 hover:text-text-primary dark:hover:bg-white/[0.04]'
|
|
33
|
+
]);
|
|
11
34
|
if (tab.href) {
|
|
12
|
-
const linkRenderer = renderLink ?? ((props) => renderDefaultLink({ ...props, item: { href: props.item.href, label: props.item.label } }));
|
|
35
|
+
const linkRenderer = renderLink ?? ((props) => renderDefaultLink({ ...props, item: { href: props.item.href, label: props.item.label, external: props.item.external } }));
|
|
13
36
|
return (_jsx(React.Fragment, { children: linkRenderer({
|
|
14
37
|
item: { ...tab, href: tab.href },
|
|
15
38
|
className: tabClassName,
|
|
16
39
|
children: tab.label
|
|
17
40
|
}) }, tab.id));
|
|
18
41
|
}
|
|
19
|
-
return (_jsx("button", { type: 'button', onClick: () => onChange?.(tab.id), className: tabClassName, children: tab.label }, tab.id));
|
|
42
|
+
return (_jsx("button", { type: 'button', role: 'tab', "aria-selected": isActive, "aria-controls": tab.panelId, tabIndex: isActive ? 0 : -1, onClick: () => onChange?.(tab.id), onKeyDown: (event) => handleKeyDown(event, index), className: tabClassName, children: tab.label }, tab.id));
|
|
20
43
|
}) }));
|
|
21
44
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
import type { ControlSize } from '../core';
|
|
3
3
|
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
4
|
error?: boolean;
|
|
5
|
-
textareaSize?:
|
|
5
|
+
textareaSize?: ControlSize;
|
|
6
6
|
}
|
|
7
7
|
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
8
|
-
export {};
|
|
@@ -6,6 +6,6 @@ const sizeClasses = {
|
|
|
6
6
|
md: 'min-h-28 px-4 py-3 text-sm',
|
|
7
7
|
lg: 'min-h-32 px-4 py-3 text-base'
|
|
8
8
|
};
|
|
9
|
-
export const Textarea = React.forwardRef(function Textarea({ className, error = false, textareaSize = 'md', rows = 4, ...props }, ref) {
|
|
10
|
-
return (_jsx("textarea", { ref: ref, rows: rows, className: cn('w-full rounded-[var(--radius-ui)] border
|
|
9
|
+
export const Textarea = React.forwardRef(function Textarea({ 'aria-invalid': ariaInvalid, className, error = false, textareaSize = 'md', rows = 4, ...props }, ref) {
|
|
10
|
+
return (_jsx("textarea", { ref: ref, rows: rows, "aria-invalid": ariaInvalid ?? (error || undefined), className: cn('w-full rounded-[var(--radius-ui)] border border-sand/40 bg-white text-text-primary shadow-[0_1px_2px_rgba(26,55,77,0.025)] outline-none transition-[background-color,border-color,box-shadow,opacity] duration-[var(--motion-control)] ease-premium placeholder:text-text-secondary/55 hover:border-sand/70 hover:shadow-[0_3px_10px_-8px_rgba(26,55,77,0.25)] focus:border-sea/70 focus:ring-2 focus:ring-sea/10 disabled:cursor-not-allowed disabled:bg-light-sand/65 disabled:opacity-60 dark:border-white/15 dark:bg-deep-sea dark:text-text-primary dark:placeholder:text-text-secondary dark:hover:border-white/25 dark:focus:border-accent-blue dark:focus:ring-accent-blue/12', 'resize-y', error ? 'border-terracotta focus:border-terracotta focus:ring-terracotta/15 dark:border-terracotta' : '', sizeClasses[textareaSize], className), ...props }));
|
|
11
11
|
});
|
|
@@ -10,6 +10,6 @@ export function Timeline({ items, className }) {
|
|
|
10
10
|
return (_jsx("div", { className: cn('relative space-y-0', className), children: items.map((item, index) => {
|
|
11
11
|
const status = item.status ?? (index === 0 ? 'active' : 'pending');
|
|
12
12
|
const isLast = index === items.length - 1;
|
|
13
|
-
return (_jsxs("div", { className: 'relative flex gap-4 pb-
|
|
13
|
+
return (_jsxs("div", { className: 'relative flex gap-4 pb-7 last:pb-0', children: [!isLast && (_jsx("div", { className: 'absolute left-[17px] top-8 h-full w-px bg-sand/20 dark:bg-sand/20' })), _jsx("div", { className: cn('relative z-10 flex h-9 w-9 shrink-0 items-center justify-center rounded-[9px] border border-white/50 shadow-[0_1px_2px_rgba(26,55,77,0.08)] dark:border-white/10', statusClasses[status]), children: item.icon ?? _jsx("span", { className: 'text-xs font-semibold', children: index + 1 }) }), _jsxs("div", { className: 'flex-1 pt-1', children: [_jsxs("div", { className: 'flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between', children: [_jsx("p", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: item.title }), item.timestamp && (_jsx("time", { className: 'font-secondary text-[11px] text-text-secondary dark:text-text-secondary', children: item.timestamp }))] }), item.description && (_jsx("p", { className: 'font-secondary mt-1 text-sm leading-6 text-text-secondary dark:text-text-secondary', children: item.description }))] })] }, item.id));
|
|
14
14
|
}) }));
|
|
15
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import React from 'react';
|
|
3
4
|
import { cn } from '../utils/cn.js';
|
|
@@ -22,7 +23,7 @@ export function ToggleGroup({ children, className, disabled, size, type, variant
|
|
|
22
23
|
onValueChange?.(arr.includes(itemValue) ? arr.filter((v) => v !== itemValue) : [...arr, itemValue]);
|
|
23
24
|
}
|
|
24
25
|
};
|
|
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-
|
|
26
|
+
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-[9px] border border-sand/20 bg-light-sand/65 p-1 dark:border-white/[0.07] dark:bg-white/[0.05]', className), children: children }) }));
|
|
26
27
|
}
|
|
27
28
|
export function ToggleGroupItem({ children, className, disabled, size, value, variant, ...props }) {
|
|
28
29
|
const ctx = useToggleGroup();
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ToggleSize, ToggleVariant } from '../core';
|
|
3
|
+
export type { ToggleSize, ToggleVariant } from '../core';
|
|
2
4
|
export interface ToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
5
|
pressed?: boolean;
|
|
4
6
|
onPressedChange?: (pressed: boolean) => void;
|
|
5
|
-
size?:
|
|
6
|
-
variant?:
|
|
7
|
+
size?: ToggleSize;
|
|
8
|
+
variant?: ToggleVariant;
|
|
7
9
|
}
|
|
8
10
|
export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -11,7 +11,7 @@ export const Toggle = React.forwardRef(function Toggle({ children, className, di
|
|
|
11
11
|
onPressedChange?.(!pressed);
|
|
12
12
|
onClick?.(event);
|
|
13
13
|
};
|
|
14
|
-
return (_jsx("button", { ref: ref, type: 'button',
|
|
14
|
+
return (_jsx("button", { ref: ref, type: 'button', "aria-pressed": pressed, disabled: disabled, onClick: handleClick, className: cn('inline-flex translate-y-0 scale-100 items-center justify-center rounded-[var(--radius-button)] font-medium transition-[background-color,border-color,color,box-shadow,transform,opacity] duration-[var(--motion-control)] ease-premium active:translate-y-px active:scale-[0.99] focus:outline-none focus-visible:ring-2 focus-visible:ring-sea disabled:pointer-events-none disabled:transform-none disabled:opacity-50 dark:focus-visible:ring-accent-blue', sizeClasses[size], variant === 'outline'
|
|
15
15
|
? [
|
|
16
16
|
'border',
|
|
17
17
|
pressed
|
|
@@ -4,6 +4,7 @@ export interface TooltipProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
content: React.ReactNode;
|
|
7
|
+
delayDuration?: number;
|
|
7
8
|
side?: TooltipSide;
|
|
8
9
|
}
|
|
9
|
-
export declare function Tooltip({ children, className, content, side }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function Tooltip({ children, className, content, delayDuration, side }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
3
|
import { cn } from '../utils/cn.js';
|
|
3
|
-
|
|
4
|
-
|
|
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/tooltip relative inline-flex items-center', className), children: [children, _jsxs("span", { role: 'tooltip', className: cn('pointer-events-none absolute z-[180] 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/tooltip:opacity-100 group-focus-within/tooltip:opacity-100 dark:bg-sand/80', container), children: [content, _jsx("span", { className: cn('absolute h-0 w-0 border-4', arrow), "aria-hidden": 'true' })] })] }));
|
|
4
|
+
export function Tooltip({ children, className, content, delayDuration = 400, side = 'top' }) {
|
|
5
|
+
return (_jsx(TooltipPrimitive.Provider, { delayDuration: delayDuration, skipDelayDuration: 150, children: _jsxs(TooltipPrimitive.Root, { children: [_jsx(TooltipPrimitive.Trigger, { asChild: true, children: children }), _jsx(TooltipPrimitive.Portal, { children: _jsxs(TooltipPrimitive.Content, { side: side, sideOffset: 7, collisionPadding: 10, className: cn('z-[180] max-w-56 rounded-md bg-deep-sea px-3 py-2 text-xs leading-relaxed text-white shadow-[var(--shadow-overlay)] data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=delayed-open]:zoom-in-[0.98] data-[state=closed]:zoom-out-[0.98] data-[state=delayed-open]:duration-[var(--motion-surface)] data-[state=closed]:duration-[var(--motion-exit)] data-[state=delayed-open]:ease-premium data-[state=closed]:ease-in dark:bg-sand dark:text-deep-sea', className), children: [content, _jsx(TooltipPrimitive.Arrow, { className: 'fill-deep-sea dark:fill-sand' })] }) })] }) }));
|
|
24
6
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const themeModes: readonly ["light", "dark", "system"];
|
|
2
|
+
export type ThemeMode = (typeof themeModes)[number];
|
|
3
|
+
export declare const buttonVariants: readonly ["primary", "secondary", "outline", "subtle", "ghost", "link", "destructive"];
|
|
4
|
+
export type ButtonVariant = (typeof buttonVariants)[number];
|
|
5
|
+
export declare const buttonSizes: readonly ["xs", "sm", "md", "lg"];
|
|
6
|
+
export type ButtonSize = (typeof buttonSizes)[number];
|
|
7
|
+
export interface ButtonContract {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
variant?: ButtonVariant;
|
|
13
|
+
}
|
|
14
|
+
export declare const controlSizes: readonly ["sm", "md", "lg"];
|
|
15
|
+
export type ControlSize = (typeof controlSizes)[number];
|
|
16
|
+
export declare const statusBadgeVariants: readonly ["live", "offline", "warning", "info", "default"];
|
|
17
|
+
export type StatusBadgeVariant = (typeof statusBadgeVariants)[number];
|
|
18
|
+
export declare const cardPaddings: readonly ["none", "sm", "md", "lg"];
|
|
19
|
+
export type CardPadding = (typeof cardPaddings)[number];
|
|
20
|
+
export declare const cardVariants: readonly ["surface", "outlined", "elevated", "subtle", "transparent"];
|
|
21
|
+
export type CardVariant = (typeof cardVariants)[number];
|
|
22
|
+
export declare const progressSizes: readonly ["sm", "md", "lg"];
|
|
23
|
+
export type ProgressSize = (typeof progressSizes)[number];
|
|
24
|
+
export declare const progressVariants: readonly ["default", "success", "warning", "destructive"];
|
|
25
|
+
export type ProgressVariant = (typeof progressVariants)[number];
|
|
26
|
+
export declare const iconButtonSizes: readonly ["sm", "md", "lg"];
|
|
27
|
+
export type IconButtonSize = (typeof iconButtonSizes)[number];
|
|
28
|
+
export declare const iconButtonVariants: readonly ["default", "subtle", "ghost"];
|
|
29
|
+
export type IconButtonVariant = (typeof iconButtonVariants)[number];
|
|
30
|
+
export declare const toggleSizes: readonly ["sm", "md", "lg"];
|
|
31
|
+
export type ToggleSize = (typeof toggleSizes)[number];
|
|
32
|
+
export declare const toggleVariants: readonly ["default", "outline"];
|
|
33
|
+
export type ToggleVariant = (typeof toggleVariants)[number];
|
|
34
|
+
export declare const alertTypes: readonly ["success", "error", "info", "warning"];
|
|
35
|
+
export type AlertType = (typeof alertTypes)[number];
|
|
36
|
+
export declare const metricFormats: readonly ["number", "currency", "percent", "compact"];
|
|
37
|
+
export type MetricFormat = (typeof metricFormats)[number];
|
|
38
|
+
export declare const avatarSizes: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
39
|
+
export type AvatarSize = (typeof avatarSizes)[number];
|
|
40
|
+
export declare const loadingSizes: readonly ["sm", "md", "lg"];
|
|
41
|
+
export type LoadingSize = (typeof loadingSizes)[number];
|
|
42
|
+
export declare const iconBadgeSizes: readonly ["md", "lg"];
|
|
43
|
+
export type IconBadgeSize = (typeof iconBadgeSizes)[number];
|
|
44
|
+
export declare const iconBadgeVariants: readonly ["primary", "subtle", "outlined"];
|
|
45
|
+
export type IconBadgeVariant = (typeof iconBadgeVariants)[number];
|
|
46
|
+
export declare const selectionOrientations: readonly ["vertical", "horizontal"];
|
|
47
|
+
export type SelectionOrientation = (typeof selectionOrientations)[number];
|
|
48
|
+
export declare function resolveTheme(theme: ThemeMode, prefersDark: boolean): Exclude<ThemeMode, 'system'>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const themeModes = ['light', 'dark', 'system'];
|
|
2
|
+
export const buttonVariants = ['primary', 'secondary', 'outline', 'subtle', 'ghost', 'link', 'destructive'];
|
|
3
|
+
export const buttonSizes = ['xs', 'sm', 'md', 'lg'];
|
|
4
|
+
export const controlSizes = ['sm', 'md', 'lg'];
|
|
5
|
+
export const statusBadgeVariants = ['live', 'offline', 'warning', 'info', 'default'];
|
|
6
|
+
export const cardPaddings = ['none', 'sm', 'md', 'lg'];
|
|
7
|
+
export const cardVariants = ['surface', 'outlined', 'elevated', 'subtle', 'transparent'];
|
|
8
|
+
export const progressSizes = ['sm', 'md', 'lg'];
|
|
9
|
+
export const progressVariants = ['default', 'success', 'warning', 'destructive'];
|
|
10
|
+
export const iconButtonSizes = ['sm', 'md', 'lg'];
|
|
11
|
+
export const iconButtonVariants = ['default', 'subtle', 'ghost'];
|
|
12
|
+
export const toggleSizes = ['sm', 'md', 'lg'];
|
|
13
|
+
export const toggleVariants = ['default', 'outline'];
|
|
14
|
+
export const alertTypes = ['success', 'error', 'info', 'warning'];
|
|
15
|
+
export const metricFormats = ['number', 'currency', 'percent', 'compact'];
|
|
16
|
+
export const avatarSizes = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
17
|
+
export const loadingSizes = ['sm', 'md', 'lg'];
|
|
18
|
+
export const iconBadgeSizes = ['md', 'lg'];
|
|
19
|
+
export const iconBadgeVariants = ['primary', 'subtle', 'outlined'];
|
|
20
|
+
export const selectionOrientations = ['vertical', 'horizontal'];
|
|
21
|
+
export function resolveTheme(theme, prefersDark) {
|
|
22
|
+
return theme === 'system' ? (prefersDark ? 'dark' : 'light') : theme;
|
|
23
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './tokens';
|
|
1
3
|
export * from './components/brand-lockup';
|
|
2
4
|
export * from './components/bauhaus-background';
|
|
3
5
|
export * from './components/activity-item';
|
|
@@ -72,6 +74,7 @@ export * from './components/toggle';
|
|
|
72
74
|
export * from './components/toggle-group';
|
|
73
75
|
export * from './components/tooltip';
|
|
74
76
|
export * from './components/feed-item';
|
|
77
|
+
export * from './components/field';
|
|
75
78
|
export * from './components/header-select';
|
|
76
79
|
export * from './components/hero-carousel';
|
|
77
80
|
export * from './components/field-help-tooltip';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './core.js';
|
|
2
|
+
export * from './tokens.js';
|
|
1
3
|
export * from './components/brand-lockup.js';
|
|
2
4
|
export * from './components/bauhaus-background.js';
|
|
3
5
|
export * from './components/activity-item.js';
|
|
@@ -72,6 +74,7 @@ export * from './components/toggle.js';
|
|
|
72
74
|
export * from './components/toggle-group.js';
|
|
73
75
|
export * from './components/tooltip.js';
|
|
74
76
|
export * from './components/feed-item.js';
|
|
77
|
+
export * from './components/field.js';
|
|
75
78
|
export * from './components/header-select.js';
|
|
76
79
|
export * from './components/hero-carousel.js';
|
|
77
80
|
export * from './components/field-help-tooltip.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../utils/cn.js';
|
|
3
3
|
export function AdminShell({ children, className, sidebar, header, footer, contentClassName }) {
|
|
4
|
-
return (_jsxs("div", { className: cn('flex min-h-screen flex-col bg-background text-foreground', className), children: [header, _jsxs("div", { className: 'flex flex-1 overflow-hidden', children: [sidebar, _jsxs("main", { className: cn('flex flex-1 flex-col min-h-0 overflow-y-auto scrollbar-thin bg-background', contentClassName), children: [_jsx("div", { className: 'flex-1
|
|
4
|
+
return (_jsxs("div", { className: cn('flex min-h-screen flex-col bg-background text-foreground', className), children: [header, _jsxs("div", { className: 'flex flex-1 overflow-hidden', children: [sidebar, _jsxs("main", { className: cn('flex flex-1 flex-col min-h-0 overflow-y-auto scrollbar-thin bg-background', contentClassName), children: [_jsx("div", { className: 'flex-1 px-5 py-6 sm:px-8 sm:py-8 lg:px-10 lg:py-10', children: children }), footer && _jsx("div", { className: 'border-t border-border px-5 py-5 sm:px-8 lg:px-10', children: footer })] })] })] }));
|
|
5
5
|
}
|
package/dist/layout/app-shell.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../utils/cn.js';
|
|
3
3
|
export function AppShell({ children, className, contentClassName, footer, header, offsetHeader = true }) {
|
|
4
|
-
return (_jsxs("div", { className: cn('min-h-screen flex flex-col text-text-primary dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0 bg-white dark:bg-deep-sea', offsetHeader && 'pt-
|
|
4
|
+
return (_jsxs("div", { className: cn('min-h-screen flex flex-col text-text-primary dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0 bg-white dark:bg-deep-sea', offsetHeader && 'pt-[72px]', contentClassName), children: _jsx("div", { className: 'flex-1 flex flex-col min-h-0', children: children }) }), footer] }));
|
|
5
5
|
}
|
package/dist/layout/footer.js
CHANGED
|
@@ -10,13 +10,13 @@ export function Footer({ bottomLeft, bottomRight, brand, className, renderLink,
|
|
|
10
10
|
(githubItem
|
|
11
11
|
? linkRenderer({
|
|
12
12
|
item: githubItem,
|
|
13
|
-
className: 'hover:underline
|
|
13
|
+
className: 'underline-offset-4 transition-colors duration-[var(--motion-control)] ease-premium hover:text-sea hover:underline dark:hover:text-accent-blue',
|
|
14
14
|
children: 'View source on GitHub'
|
|
15
15
|
})
|
|
16
16
|
: null);
|
|
17
|
-
return (_jsxs("footer", { className: cn('bg-light-sand text-text-primary dark:bg-sand dark:text-text-primary', className), children: [_jsx("div", { className: 'h-px w-full bg-
|
|
17
|
+
return (_jsxs("footer", { className: cn('bg-light-sand text-text-primary dark:bg-sand dark:text-text-primary', className), children: [_jsx("div", { className: 'h-px w-full bg-sand/30 dark:bg-white/10' }), _jsxs("div", { className: 'container mx-auto px-4 py-16', children: [_jsxs("div", { className: 'grid grid-cols-1 gap-12 md:grid-cols-2 lg:grid-cols-4', children: [_jsxs("div", { className: cn(brandColumnClassName), children: [_jsx(BrandLockup, { ...brand, size: 'lg', renderLink: renderLink }), brand.description ? (_jsx("p", { className: 'mt-8 max-w-md leading-relaxed tracking-refined text-text-secondary dark:text-text-secondary', children: brand.description })) : null] }), sections.map((section) => (_jsxs("div", { children: [_jsx("h3", { className: 'mb-8 text-sm font-medium uppercase tracking-elegant text-desert dark:text-desert', children: section.title }), _jsx("ul", { className: 'space-y-4', children: section.items.map((item) => (_jsx("li", { children: linkRenderer({
|
|
18
18
|
item,
|
|
19
|
-
className: 'text-text-secondary transition-colors duration-
|
|
19
|
+
className: 'text-text-secondary transition-colors duration-[var(--motion-surface)] ease-premium hover:text-sunset dark:text-text-secondary dark:hover:text-sunset',
|
|
20
20
|
children: item.label
|
|
21
|
-
}) }, `${section.title}:${item.href}:${item.label}`))) })] }, section.title)))] }), _jsxs("div", { className: 'mt-
|
|
21
|
+
}) }, `${section.title}:${item.href}:${item.label}`))) })] }, section.title)))] }), _jsxs("div", { className: 'mt-16 flex flex-col items-center justify-between gap-4 border-t border-sand/20 pt-7 md:flex-row', children: [_jsx("div", { className: 'text-sm tracking-refined text-text-secondary dark:text-text-secondary', children: bottomLeft }), _jsx("div", { className: 'text-sm tracking-refined text-text-secondary/70 dark:text-text-secondary/70', children: resolvedBottomRight })] })] }), showBottomAccent ? _jsx("div", { className: 'h-0.5 w-full bg-sea/70 dark:bg-accent-blue/70' }) : null] }));
|
|
22
22
|
}
|
package/dist/layout/header.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Menu, X } from 'lucide-react';
|
|
3
4
|
import React from 'react';
|
|
@@ -7,5 +8,5 @@ import { NavMenu } from '../components/nav-menu.js';
|
|
|
7
8
|
import { cn } from '../utils/cn.js';
|
|
8
9
|
export function Header({ actions, brand, className, fullWidth = false, mobileActions, navigation, renderLink }) {
|
|
9
10
|
const [mobileMenuOpen, setMobileMenuOpen] = React.useState(false);
|
|
10
|
-
return (_jsxs("header", { className: cn('fixed top-0 z-50 w-full bg-white/
|
|
11
|
+
return (_jsxs("header", { className: cn('fixed top-0 z-50 w-full border-b border-sand/25 bg-white/95 font-header backdrop-blur-[8px] dark:border-white/[0.09] dark:bg-deep-sea/95', className), children: [_jsx("div", { className: cn(fullWidth ? 'w-full px-4' : 'container mx-auto px-4'), children: _jsxs("div", { className: 'flex h-[72px] items-center justify-between gap-8', children: [_jsx(BrandLockup, { ...brand, renderLink: renderLink }), _jsx("div", { className: 'hidden md:flex md:flex-1 md:items-center md:justify-center', children: _jsx(NavMenu, { items: navigation, renderLink: renderLink }) }), _jsx("div", { className: 'hidden md:flex md:items-center md:gap-3', children: actions }), _jsx(IconButton, { variant: 'ghost', className: 'md:hidden', "aria-label": 'Toggle navigation menu', type: 'button', onClick: () => setMobileMenuOpen((value) => !value), children: mobileMenuOpen ? _jsx(X, { size: 20 }) : _jsx(Menu, { size: 20 }) })] }) }), _jsx("div", { className: cn('absolute left-0 top-[72px] w-full origin-top overflow-hidden border-t border-sand/20 bg-white shadow-[var(--shadow-overlay)] transition-[max-height,opacity] duration-200 dark:border-white/10 dark:bg-deep-sea md:hidden', mobileMenuOpen ? 'max-h-96 opacity-100' : 'max-h-0 opacity-0'), children: _jsxs("div", { className: cn(fullWidth ? 'w-full' : 'container mx-auto', 'flex flex-col gap-5 px-4 py-6'), children: [mobileActions ? _jsx("div", { className: 'flex items-center gap-3', children: mobileActions }) : null, _jsx(NavMenu, { direction: 'vertical', items: navigation, onItemClick: () => setMobileMenuOpen(false), renderLink: renderLink })] }) })] }));
|
|
11
12
|
}
|