@gaulatti/bleecker 0.1.13 → 0.1.16

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.
Files changed (55) hide show
  1. package/dist/components/alert-dialog.js +2 -1
  2. package/dist/components/alert.js +12 -12
  3. package/dist/components/avatar.js +2 -2
  4. package/dist/components/button-group.js +8 -3
  5. package/dist/components/button.js +7 -7
  6. package/dist/components/card.js +1 -1
  7. package/dist/components/chart.d.ts +6 -0
  8. package/dist/components/chart.js +13 -0
  9. package/dist/components/checkbox.d.ts +7 -0
  10. package/dist/components/checkbox.js +10 -0
  11. package/dist/components/collection-filters.js +3 -1
  12. package/dist/components/command-spotlight.js +6 -11
  13. package/dist/components/context-menu.d.ts +9 -0
  14. package/dist/components/context-menu.js +11 -0
  15. package/dist/components/data-table.d.ts +11 -0
  16. package/dist/components/data-table.js +31 -0
  17. package/dist/components/dialog-close-button.d.ts +5 -0
  18. package/dist/components/dialog-close-button.js +7 -0
  19. package/dist/components/drawer.js +1 -1
  20. package/dist/components/empty.js +1 -1
  21. package/dist/components/field-help-tooltip.js +3 -2
  22. package/dist/components/file-input.d.ts +8 -0
  23. package/dist/components/file-input.js +11 -0
  24. package/dist/components/hero-carousel.js +6 -4
  25. package/dist/components/icon-button.js +1 -1
  26. package/dist/components/input.d.ts +10 -0
  27. package/dist/components/input.js +11 -0
  28. package/dist/components/kbd.js +2 -2
  29. package/dist/components/label.d.ts +4 -0
  30. package/dist/components/label.js +7 -0
  31. package/dist/components/media-library.js +3 -2
  32. package/dist/components/menubar.js +4 -4
  33. package/dist/components/modal.js +3 -3
  34. package/dist/components/navigation-menu.js +1 -1
  35. package/dist/components/panel.js +3 -1
  36. package/dist/components/popover.js +1 -1
  37. package/dist/components/select.js +1 -1
  38. package/dist/components/separator.d.ts +6 -0
  39. package/dist/components/separator.js +6 -0
  40. package/dist/components/sheet.js +5 -3
  41. package/dist/components/status-badge.js +4 -4
  42. package/dist/components/textarea.d.ts +8 -0
  43. package/dist/components/textarea.js +11 -0
  44. package/dist/index.d.ts +6 -0
  45. package/dist/index.js +6 -0
  46. package/dist/layout/app-shell.js +1 -1
  47. package/dist/layout/header.js +3 -1
  48. package/dist/layout/panel-layout.js +1 -1
  49. package/dist/login-screen.d.ts +1 -0
  50. package/dist/login-screen.js +10 -0
  51. package/dist/styles.css +1 -1
  52. package/package.json +6 -1
  53. package/src/styles/global.css +30 -12
  54. package/dist/components/sortable-table-header.d.ts +0 -14
  55. package/dist/components/sortable-table-header.js +0 -11
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { AlertTriangle } from 'lucide-react';
3
3
  import React from 'react';
4
4
  import { createPortal } from 'react-dom';
5
+ import { Button } from './button.js';
5
6
  import { cn } from '../utils/cn.js';
6
7
  export function AlertDialog({ cancelLabel = 'Cancel', className, confirmLabel = 'Continue', description, isOpen, onCancel, onConfirm, title, variant = 'default' }) {
7
8
  const dialogRef = React.useRef(null);
@@ -38,5 +39,5 @@ export function AlertDialog({ cancelLabel = 'Cancel', className, confirmLabel =
38
39
  }
39
40
  }, onClose: onCancel, children: _jsxs("div", { className: 'p-6', children: [_jsxs("div", { className: 'mb-4 flex items-start gap-4', children: [_jsx("div", { className: cn('flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full', variant === 'destructive'
40
41
  ? 'bg-terracotta/10 text-terracotta dark:bg-terracotta/20'
41
- : 'bg-desert/10 text-desert dark:bg-desert/20 dark:text-accent-gold'), children: _jsx(AlertTriangle, { size: 20 }) }), _jsxs("div", { className: 'min-w-0 flex-1', children: [_jsx("h3", { className: 'text-lg font-semibold leading-tight text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'mt-1.5 text-sm leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] })] }), _jsxs("div", { className: 'flex justify-end gap-3', children: [_jsx("button", { type: 'button', onClick: onCancel, className: 'inline-flex items-center justify-center rounded-full border border-sand/20 bg-white/65 px-4 py-2 text-sm font-medium tracking-refined text-text-primary transition-all duration-400 hover:-translate-y-0.5 hover:bg-white focus:outline-none focus-visible:ring-2 focus-visible:ring-sea dark:border-sand/50 dark:bg-sand/20 dark:text-text-primary dark:hover:bg-sand/30 dark:focus-visible:ring-accent-blue', children: cancelLabel }), _jsx("button", { type: 'button', onClick: onConfirm, className: cn('inline-flex items-center justify-center rounded-full border-transparent px-4 py-2 text-sm font-medium tracking-refined text-white transition-all duration-400 hover:-translate-y-0.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-accent-blue', variant === 'destructive' ? 'bg-terracotta hover:opacity-90' : 'bg-sea hover:bg-desert'), children: confirmLabel })] })] }) }), document.body);
42
+ : 'bg-desert/10 text-desert dark:bg-desert/20 dark:text-accent-gold'), children: _jsx(AlertTriangle, { size: 20 }) }), _jsxs("div", { className: 'min-w-0 flex-1', children: [_jsx("h3", { className: 'text-lg font-semibold leading-tight text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'mt-1.5 text-sm leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] })] }), _jsxs("div", { className: 'flex justify-end gap-3', children: [_jsx(Button, { variant: 'secondary', size: 'sm', onClick: onCancel, children: cancelLabel }), _jsx(Button, { variant: variant === 'destructive' ? 'destructive' : 'primary', size: 'sm', onClick: onConfirm, children: confirmLabel })] })] }) }), document.body);
42
43
  }
@@ -6,29 +6,29 @@ import { cn } from '../utils/cn.js';
6
6
  const alertConfig = {
7
7
  success: {
8
8
  icon: CheckCircle,
9
- bgColor: 'bg-sea/10 dark:bg-accent-blue/10',
10
- borderColor: 'border-sea dark:border-accent-blue',
11
- textColor: 'text-sea dark:text-accent-blue',
9
+ bgColor: 'bg-white/80 dark:bg-deep-sea/80',
10
+ borderColor: 'ring-sea/20 dark:ring-accent-blue/20',
11
+ textColor: 'text-text-primary dark:text-text-primary',
12
12
  iconColor: 'text-sea dark:text-accent-blue'
13
13
  },
14
14
  error: {
15
15
  icon: AlertCircle,
16
- bgColor: 'bg-terracotta/10 dark:bg-terracotta/20',
17
- borderColor: 'border-terracotta dark:border-accent-oxblood',
18
- textColor: 'text-terracotta dark:text-terracotta',
16
+ bgColor: 'bg-white/80 dark:bg-deep-sea/80',
17
+ borderColor: 'ring-terracotta/20 dark:ring-terracotta/30',
18
+ textColor: 'text-text-primary dark:text-text-primary',
19
19
  iconColor: 'text-terracotta dark:text-terracotta'
20
20
  },
21
21
  warning: {
22
22
  icon: AlertTriangle,
23
- bgColor: 'bg-sunset/10 dark:bg-sunset/20',
24
- borderColor: 'border-sunset dark:border-accent-gold',
25
- textColor: 'text-desert dark:text-accent-gold',
23
+ bgColor: 'bg-white/80 dark:bg-deep-sea/80',
24
+ borderColor: 'ring-sunset/30 dark:ring-sunset/20',
25
+ textColor: 'text-text-primary dark:text-text-primary',
26
26
  iconColor: 'text-sunset dark:text-accent-gold'
27
27
  },
28
28
  info: {
29
29
  icon: Info,
30
- bgColor: 'bg-desert/10 dark:bg-accent-gold/10',
31
- borderColor: 'border-desert dark:border-accent-gold',
30
+ bgColor: 'bg-white/80 dark:bg-deep-sea/80',
31
+ borderColor: 'ring-desert/20 dark:ring-desert/20',
32
32
  textColor: 'text-text-primary dark:text-text-primary',
33
33
  iconColor: 'text-desert dark:text-accent-gold'
34
34
  }
@@ -63,7 +63,7 @@ export function Alert({ className, duration = 5000, message, onClose, type = 'in
63
63
  if (typeof document === 'undefined') {
64
64
  return null;
65
65
  }
66
- return createPortal(_jsx("div", { className: 'pointer-events-none fixed inset-0 z-[9999] flex items-start justify-center px-4 pt-24', children: _jsx("div", { className: cn('pointer-events-auto w-full max-w-md rounded-lg border-l-4 shadow-lg backdrop-blur-xl transition-all duration-400 ease-out dark:shadow-2xl', config.bgColor, config.borderColor, isVisible ? 'translate-y-0 opacity-100' : '-translate-y-4 opacity-0', className), children: _jsxs("div", { className: 'flex items-start gap-3 p-4', children: [_jsx(Icon, { className: cn('mt-0.5 h-5 w-5 flex-shrink-0', config.iconColor) }), _jsx("p", { className: cn('flex-1 text-sm font-medium tracking-refined', config.textColor), children: message }), _jsx("button", { type: 'button', onClick: handleClose, className: cn('hover:bg-black/5 dark:hover:bg-white/10 -mr-1 -mt-0.5 rounded-md p-1 transition-colors duration-200', config.textColor), "aria-label": 'Close alert', children: _jsx(X, { className: 'h-4 w-4' }) })] }) }) }), document.body);
66
+ return createPortal(_jsx("div", { className: 'pointer-events-none fixed inset-0 z-[9999] flex items-start justify-center px-4 pt-24', children: _jsx("div", { className: cn('pointer-events-auto w-full max-w-md rounded-[var(--radius-button)] ring-1 ring-inset shadow-[0_8px_32px_rgba(0,0,0,0.08)] backdrop-blur-xl transition-all duration-400 ease-out-expo dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', config.bgColor, config.borderColor, isVisible ? 'translate-y-0 scale-100 opacity-100' : 'translate-y-4 scale-95 opacity-0', className), children: _jsxs("div", { className: 'flex items-start gap-3 p-4', children: [_jsx(Icon, { className: cn('mt-0.5 h-5 w-5 flex-shrink-0', config.iconColor) }), _jsx("p", { className: cn('flex-1 text-sm font-medium tracking-refined', config.textColor), children: message }), _jsx("button", { type: 'button', onClick: handleClose, className: cn('hover:bg-black/5 dark:hover:bg-white/10 -mr-1 -mt-0.5 rounded-md p-1 transition-colors duration-200', config.textColor), "aria-label": 'Close alert', children: _jsx(X, { className: 'h-4 w-4' }) })] }) }) }), document.body);
67
67
  }
68
68
  let alertsState = [];
69
69
  let listeners = [];
@@ -20,7 +20,7 @@ export function Avatar({ alt, className, fallback, size = 'md', src }) {
20
20
  const [imgError, setImgError] = React.useState(false);
21
21
  const showFallback = !src || imgError;
22
22
  const initials = fallback ? getInitials(fallback) : null;
23
- return (_jsxs("span", { className: cn('relative inline-flex flex-shrink-0 items-center justify-center overflow-hidden rounded-full border border-sand/20 bg-sand/10 dark:border-sand/40 dark:bg-sand/20', sizeClasses[size], className), children: [!showFallback && _jsx("img", { src: src, alt: alt ?? fallback ?? '', className: 'h-full w-full object-cover', onError: () => setImgError(true) }), showFallback && initials ? _jsx("span", { className: 'select-none font-medium text-text-secondary dark:text-text-primary', children: initials }) : null, showFallback && !initials ? (_jsx("svg", { className: 'h-3/5 w-3/5 text-text-secondary dark:text-text-primary', viewBox: '0 0 24 24', fill: 'currentColor', "aria-hidden": 'true', children: _jsx("path", { d: 'M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z' }) })) : null] }));
23
+ return (_jsxs("span", { className: cn('relative inline-flex flex-shrink-0 items-center justify-center overflow-hidden rounded-full ring-1 ring-inset ring-black/10 bg-light-sand dark:ring-white/10 dark:bg-deep-sea', sizeClasses[size], className), children: [!showFallback && _jsx("img", { src: src, alt: alt ?? fallback ?? '', className: 'h-full w-full object-cover', onError: () => setImgError(true) }), showFallback && initials ? _jsx("span", { className: 'select-none font-medium text-text-secondary dark:text-text-primary', children: initials }) : null, showFallback && !initials ? (_jsx("svg", { className: 'h-3/5 w-3/5 text-text-secondary dark:text-text-primary', viewBox: '0 0 24 24', fill: 'currentColor', "aria-hidden": 'true', children: _jsx("path", { d: 'M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z' }) })) : null] }));
24
24
  }
25
25
  export function AvatarGroup({ avatars, className, max = 4, size = 'md' }) {
26
26
  const visible = avatars.slice(0, max);
@@ -32,5 +32,5 @@ export function AvatarGroup({ avatars, className, max = 4, size = 'md' }) {
32
32
  lg: 'h-12 w-12 text-sm',
33
33
  xl: 'h-16 w-16 text-base'
34
34
  };
35
- return (_jsxs("div", { className: cn('flex -space-x-2', className), children: [visible.map((avatar, index) => (_jsx(Avatar, { ...avatar, size: size, className: 'ring-2 ring-white dark:ring-dark-sand' }, index))), overflow > 0 && (_jsxs("span", { className: cn('inline-flex flex-shrink-0 items-center justify-center rounded-full border border-sand/20 bg-sand/10 font-medium text-text-secondary ring-2 ring-white dark:border-sand/40 dark:bg-sand/20 dark:text-text-primary dark:ring-dark-sand', overflowSizeClasses[size]), children: ["+", overflow] }))] }));
35
+ return (_jsxs("div", { className: cn('flex -space-x-2', className), children: [visible.map((avatar, index) => (_jsx(Avatar, { ...avatar, size: size, className: 'ring-2 ring-white dark:ring-deep-sea' }, index))), overflow > 0 && (_jsxs("span", { className: cn('inline-flex flex-shrink-0 items-center justify-center rounded-full bg-light-sand font-medium text-text-secondary ring-2 ring-white dark:bg-deep-sea dark:text-text-primary dark:ring-deep-sea shadow-sm', overflowSizeClasses[size]), children: ["+", overflow] }))] }));
36
36
  }
@@ -14,10 +14,15 @@ export function ButtonGroup({ children, className, orientation = 'horizontal' })
14
14
  '[&>*]:rounded-none', orientation === 'horizontal'
15
15
  ? [
16
16
  '[&>*:not(:last-child)]:border-r-0',
17
- '[&>*:first-child]:rounded-l-full',
18
- '[&>*:last-child]:rounded-r-full',
17
+ '[&>*:first-child]:rounded-l-[var(--radius-button)]',
18
+ '[&>*:last-child]:rounded-r-[var(--radius-button)]',
19
19
  // Ensure vertical borders between buttons are visible
20
20
  '[&>*:not(:first-child)]:border-l'
21
21
  ]
22
- : ['[&>*:not(:last-child)]:border-b-0', '[&>*:first-child]:rounded-t-full', '[&>*:last-child]:rounded-b-full', '[&>*:not(:first-child)]:border-t'], className), children: children }));
22
+ : [
23
+ '[&>*:not(:last-child)]:border-b-0',
24
+ '[&>*:first-child]:rounded-t-[var(--radius-button)]',
25
+ '[&>*:last-child]:rounded-b-[var(--radius-button)]',
26
+ '[&>*:not(:first-child)]:border-t'
27
+ ], className), children: children }));
23
28
  }
@@ -2,16 +2,16 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { cn } from '../utils/cn.js';
4
4
  const variantClasses = {
5
- primary: 'bg-sea text-white hover:bg-desert border-transparent',
6
- secondary: 'bg-white/65 text-text-primary border-sand/20 hover:bg-white dark:bg-sand/20 dark:text-text-primary dark:border-sand/50 dark:hover:bg-sand/30',
5
+ primary: 'bg-sea text-white hover:opacity-90 border-transparent shadow-sm',
6
+ secondary: 'bg-white/65 text-text-primary border-sand/20 hover:bg-white shadow-[0_2px_8px_rgba(26,55,77,0.04)] dark:bg-sand/10 dark:text-text-primary dark:border-sand/30 dark:hover:bg-sand/20',
7
7
  ghost: 'bg-transparent text-text-primary border-transparent hover:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/15',
8
- destructive: 'bg-terracotta text-white hover:opacity-90 border-transparent'
8
+ destructive: 'bg-terracotta text-white hover:opacity-90 border-transparent shadow-sm'
9
9
  };
10
10
  const sizeClasses = {
11
- sm: 'px-3 py-2 text-sm',
12
- md: 'px-4 py-2.5 text-sm',
13
- lg: 'px-6 py-3 text-base'
11
+ sm: 'px-3 py-1.5 text-sm',
12
+ md: 'px-4 py-2 text-sm',
13
+ lg: 'px-6 py-2.5 text-base'
14
14
  };
15
15
  export const Button = React.forwardRef(function Button({ className, size = 'md', type = 'button', variant = 'primary', ...props }, ref) {
16
- return (_jsx("button", { ref: ref, type: type, className: cn('inline-flex items-center justify-center gap-2 rounded-full border font-[family-name:var(--font-header)] font-medium tracking-refined transition-all duration-400 hover:-translate-y-0.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-accent-blue', variantClasses[variant], sizeClasses[size], className), ...props }));
16
+ return (_jsx("button", { ref: ref, type: type, className: cn('inline-flex items-center justify-center gap-2 rounded-[var(--radius-button)] border font-[family-name:var(--font-header)] font-medium tracking-ui transition-all duration-200 active:scale-[0.98] outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white focus-visible:ring-sea disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-offset-deep-sea dark:focus-visible:ring-accent-blue', variantClasses[variant], sizeClasses[size], className), ...props }));
17
17
  });
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from '../utils/cn.js';
3
3
  export function Card({ className, ...props }) {
4
- return (_jsx("div", { className: cn('rounded-[28px] border border-sand/10 dark:border-dark-sand/30 bg-white/80 dark:bg-dark-sand/80 p-6 shadow-sm backdrop-blur-sm transition-all duration-400', className), ...props }));
4
+ return (_jsx("div", { className: cn('relative overflow-hidden rounded-[var(--radius-card)] bg-white p-6 shadow-[0_2px_10px_rgba(0,0,0,0.02),0_8px_32px_rgba(26,55,77,0.04)] ring-1 ring-black/[0.04] backdrop-blur-md transition-all duration-300 dark:bg-deep-sea/90 dark:ring-white/[0.08] dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)]', className), ...props }));
5
5
  }
@@ -0,0 +1,6 @@
1
+ interface ChartProps {
2
+ data: any[];
3
+ height?: number;
4
+ }
5
+ export declare function Chart({ data, height }: ChartProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Line, LineChart as RechartsLineChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
3
+ export function Chart({ data, height = 300 }) {
4
+ return (_jsx("div", { className: 'w-full', style: { height }, children: _jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(RechartsLineChart, { data: data, margin: { top: 5, right: 20, bottom: 5, left: 0 }, children: [_jsx(XAxis, { dataKey: 'name', stroke: '#1a374d' // color-sea idea
5
+ , fontSize: 12, tickLine: false, axisLine: false }), _jsx(YAxis, { stroke: '#1a374d', fontSize: 12, tickLine: false, axisLine: false, tickFormatter: (value) => `$${value}` }), _jsx(Tooltip, { contentStyle: {
6
+ backgroundColor: 'rgba(255, 255, 255, 0.95)',
7
+ borderRadius: '8px',
8
+ border: '1px solid rgba(0,0,0,0.1)',
9
+ boxShadow: '0 8px 32px rgba(0,0,0,0.08)',
10
+ backdropFilter: 'blur(8px)'
11
+ }, itemStyle: { color: '#1a374d' } }), _jsx(Line, { type: 'monotone', dataKey: 'total', stroke: '#c8825f' // color-terracotta or similar accent
12
+ , strokeWidth: 2, dot: false, activeDot: { r: 6, fill: '#c8825f', stroke: '#fff', strokeWidth: 2 } })] }) }) }));
13
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
3
+ containerClassName?: string;
4
+ description?: React.ReactNode;
5
+ label?: React.ReactNode;
6
+ }
7
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,10 @@
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 Checkbox = React.forwardRef(function Checkbox({ className, containerClassName, description, id, label, ...props }, ref) {
5
+ const checkbox = (_jsxs("div", { className: 'relative flex h-5 w-5 shrink-0 items-center justify-center', children: [_jsx("input", { ref: ref, id: id, type: 'checkbox', className: cn('peer absolute inset-0 m-0 h-full w-full appearance-none rounded-[5px] border border-sand/60 bg-light-sand shadow-[inset_0_1px_2px_rgba(0,0,0,0.02)] transition-all duration-200 hover:border-sea/40 hover:bg-white checked:border-sea checked:bg-sea checked:shadow-none focus:outline-none focus-visible:ring-2 focus-visible:ring-sea/20 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 dark:border-dark-sand/50 dark:bg-dark-sand/30 dark:checked:border-accent-blue dark:checked:bg-accent-blue dark:focus-visible:ring-offset-deep-sea', className), ...props }), _jsx("svg", { className: 'pointer-events-none relative z-10 h-3.5 w-3.5 scale-50 text-white opacity-0 transition-all duration-200 ease-bouncy peer-checked:scale-100 peer-checked:opacity-100', viewBox: '0 0 14 10', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: _jsx("path", { d: 'M1 5L4.5 8.5L13 1', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round', strokeLinejoin: 'round' }) })] }));
6
+ if (!label && !description) {
7
+ return checkbox;
8
+ }
9
+ return (_jsxs("label", { htmlFor: id, className: cn('flex items-start gap-3', containerClassName), children: [checkbox, _jsxs("span", { className: 'min-w-0', children: [label ? _jsx("span", { className: 'block text-sm font-medium text-text-primary dark:text-text-primary', children: label }) : null, description ? _jsx("span", { className: 'mt-0.5 block text-sm text-text-secondary dark:text-text-secondary', children: description }) : null] })] }));
10
+ });
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArrowUpDown, Filter, X } from 'lucide-react';
3
3
  import React from 'react';
4
+ import { Button } from './button.js';
5
+ import { IconButton } from './icon-button.js';
4
6
  import { Select } from './select.js';
5
7
  import { cn } from '../utils/cn.js';
6
8
  export function CollectionFilters({ className, currentFilters, currentSort, filterOptions, onFilterChange, onSortChange, sortOptions }) {
@@ -16,7 +18,7 @@ export function CollectionFilters({ className, currentFilters, currentSort, filt
16
18
  }
17
19
  onFilterChange(nextFilters);
18
20
  };
19
- return (_jsxs("div", { className: cn('mb-6 space-y-4', className), children: [_jsxs("div", { className: 'flex flex-wrap items-center gap-3', children: [_jsxs("button", { type: 'button', onClick: () => setShowFilters((open) => !open), className: 'inline-flex items-center gap-2 rounded-lg border border-sand/30 bg-white px-4 py-2 text-text-primary transition-colors hover:bg-sand/5 dark:border-sand/50 dark:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/20', children: [_jsx(Filter, { size: 18 }), "Filters", activeFilterCount > 0 ? (_jsx("span", { className: 'ml-1 rounded-full bg-sea px-2 py-0.5 text-xs text-white dark:bg-accent-blue', children: activeFilterCount })) : null] }), _jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(Select, { value: currentSort.field, onChange: (value) => onSortChange({ field: value, order: currentSort.order }), options: sortOptions.map((option) => ({ label: option.label, value: option.field })) }), _jsx("button", { type: 'button', onClick: () => onSortChange({ field: currentSort.field, order: currentSort.order === 'asc' ? 'desc' : 'asc' }), className: 'rounded-lg border border-sand/30 bg-white p-2 text-text-primary transition-colors hover:bg-sand/5 dark:border-sand/50 dark:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/20', title: `Sort ${currentSort.order === 'asc' ? 'Descending' : 'Ascending'}`, children: _jsx(ArrowUpDown, { size: 18, className: currentSort.order === 'desc' ? 'rotate-180' : '' }) })] }), activeFilterCount > 0 ? (_jsxs("button", { type: 'button', onClick: () => onFilterChange({}), className: 'inline-flex items-center gap-2 rounded-lg px-3 py-2 text-sm text-terracotta transition-colors hover:bg-sand/5 dark:hover:bg-sand/10', children: [_jsx(X, { size: 16 }), "Clear all"] })) : null] }), showFilters ? (_jsx("div", { className: 'rounded-lg border border-sand/30 bg-white p-4 dark:border-sand/50 dark:bg-sand/10', children: _jsx("div", { className: 'grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3', children: filterOptions.map((option) => (_jsxs("div", { className: 'space-y-2', children: [_jsx("label", { className: 'block text-sm font-medium text-text-primary dark:text-text-primary', children: option.label }), option.type === 'select' && option.options ? (_jsx(Select, { value: currentFilters[option.field] || '', onChange: (value) => handleFilterChange(option.field, value), options: [{ label: 'All', value: '' }, ...option.options] })) : null, option.type === 'boolean' ? (_jsx(Select, { value: currentFilters[option.field] === undefined ? '' : String(currentFilters[option.field]), onChange: (value) => handleFilterChange(option.field, value === '' ? null : value === 'true'), options: [
21
+ return (_jsxs("div", { className: cn('mb-6 space-y-4', className), children: [_jsxs("div", { className: 'flex flex-wrap items-center gap-3', children: [_jsxs(Button, { variant: 'secondary', size: 'sm', onClick: () => setShowFilters((open) => !open), className: 'rounded-lg border-sand/30 bg-white hover:bg-sand/5 dark:border-sand/50 dark:bg-sand/10 dark:hover:bg-sand/20', children: [_jsx(Filter, { size: 18 }), "Filters", activeFilterCount > 0 ? (_jsx("span", { className: 'ml-1 rounded-full bg-sea px-2 py-0.5 text-xs text-white dark:bg-accent-blue', children: activeFilterCount })) : null] }), _jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(Select, { value: currentSort.field, onChange: (value) => onSortChange({ field: value, order: currentSort.order }), options: sortOptions.map((option) => ({ label: option.label, value: option.field })) }), _jsx(IconButton, { onClick: () => onSortChange({ field: currentSort.field, order: currentSort.order === 'asc' ? 'desc' : 'asc' }), className: 'rounded-lg border-sand/30 bg-white p-2 shadow-none backdrop-blur-none hover:translate-y-0 hover:scale-100 hover:bg-sand/5 dark:border-sand/50 dark:bg-sand/10 dark:hover:bg-sand/20', title: `Sort ${currentSort.order === 'asc' ? 'Descending' : 'Ascending'}`, "aria-label": `Sort ${currentSort.order === 'asc' ? 'descending' : 'ascending'}`, children: _jsx(ArrowUpDown, { size: 18, className: currentSort.order === 'desc' ? 'rotate-180' : '' }) })] }), activeFilterCount > 0 ? (_jsxs(Button, { variant: 'ghost', size: 'sm', onClick: () => onFilterChange({}), className: 'rounded-lg px-3 text-terracotta hover:bg-sand/5 hover:text-terracotta dark:hover:bg-sand/10 dark:hover:text-terracotta', children: [_jsx(X, { size: 16 }), "Clear all"] })) : null] }), showFilters ? (_jsx("div", { className: 'rounded-lg border border-sand/30 bg-white p-4 dark:border-sand/50 dark:bg-sand/10', children: _jsx("div", { className: 'grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3', children: filterOptions.map((option) => (_jsxs("div", { className: 'space-y-2', children: [_jsx("label", { className: 'block text-sm font-medium text-text-primary dark:text-text-primary', children: option.label }), option.type === 'select' && option.options ? (_jsx(Select, { value: currentFilters[option.field] || '', onChange: (value) => handleFilterChange(option.field, value), options: [{ label: 'All', value: '' }, ...option.options] })) : null, option.type === 'boolean' ? (_jsx(Select, { value: currentFilters[option.field] === undefined ? '' : String(currentFilters[option.field]), onChange: (value) => handleFilterChange(option.field, value === '' ? null : value === 'true'), options: [
20
22
  { label: 'All', value: '' },
21
23
  { label: 'Yes', value: 'true' },
22
24
  { label: 'No', value: 'false' }
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Search } from 'lucide-react';
3
3
  import React from 'react';
4
4
  import { createPortal } from 'react-dom';
5
+ import { Button } from './button.js';
5
6
  import { Kbd } from './kbd.js';
6
7
  import { cn } from '../utils/cn.js';
7
8
  const DEFAULT_GROUP = 'Actions';
@@ -39,13 +40,7 @@ export function CommandSpotlight({ actions, className, dialogClassName, emptyMes
39
40
  return actions;
40
41
  }
41
42
  return actions.filter((action) => {
42
- const haystack = normalize([
43
- action.title,
44
- action.description || '',
45
- action.group || '',
46
- ...(action.keywords || []),
47
- action.href || ''
48
- ].join(' '));
43
+ const haystack = normalize([action.title, action.description || '', action.group || '', ...(action.keywords || []), action.href || ''].join(' '));
49
44
  return haystack.includes(normalizedQuery);
50
45
  });
51
46
  }, [actions, query]);
@@ -172,11 +167,11 @@ export function CommandSpotlight({ actions, className, dialogClassName, emptyMes
172
167
  const modifier = isMacLike ? '⌘' : 'Ctrl';
173
168
  return [modifier, hotkey.toUpperCase()];
174
169
  }, [hotkey, isMacLike]);
175
- const renderTrigger = showTrigger ? (_jsxs("button", { type: 'button', onClick: () => {
170
+ const renderTrigger = showTrigger ? (_jsxs(Button, { type: 'button', variant: 'secondary', size: 'sm', onClick: () => {
176
171
  setIsOpen(true);
177
- }, className: cn('inline-flex items-center gap-2 rounded-full border border-sand/20 bg-white/35 px-3 py-1.5 text-sm text-text-primary shadow-sm backdrop-blur-md transition-colors duration-200 hover:bg-white/65 dark:border-sand/70 dark:bg-sand/25 dark:hover:bg-sand/35', triggerClassName), "aria-label": 'Open command spotlight', children: [_jsx(Search, { size: 15, className: 'text-text-secondary dark:text-text-secondary' }), _jsx("span", { className: 'hidden sm:inline', children: triggerLabel }), _jsx(Kbd, { keys: hotkeyHint, className: 'hidden sm:inline-flex' })] })) : null;
172
+ }, className: cn('border-sand/20 bg-white/35 px-3 py-1.5 text-text-primary shadow-sm backdrop-blur-md hover:bg-white/65 dark:border-sand/70 dark:bg-sand/25 dark:hover:bg-sand/35', triggerClassName), "aria-label": 'Open command spotlight', children: [_jsx(Search, { size: 15, className: 'text-text-secondary dark:text-text-secondary' }), _jsx("span", { className: 'hidden sm:inline', children: triggerLabel }), _jsx(Kbd, { keys: hotkeyHint, className: 'hidden sm:inline-flex' })] })) : null;
178
173
  const renderOverlay = isOpen && typeof document !== 'undefined'
179
- ? createPortal(_jsxs("div", { className: cn('fixed inset-0 z-[9999] flex items-start justify-center px-4 pt-[12vh]', overlayClassName), children: [_jsx("button", { type: 'button', onClick: closeSpotlight, className: 'absolute inset-0 bg-black/45 backdrop-blur-sm', "aria-label": 'Close command spotlight' }), _jsxs("div", { role: 'dialog', "aria-modal": 'true', className: cn('relative z-10 w-full max-w-2xl overflow-hidden rounded-[28px] border border-sand/10 bg-white/95 text-text-primary shadow-2xl backdrop-blur-xl dark:border-sand/20 dark:bg-dark-sand/95 dark:text-text-primary', dialogClassName), onClick: (event) => event.stopPropagation(), children: [_jsxs("div", { className: 'flex items-center gap-3 border-b border-sand/15 px-4 py-3 dark:border-sand/20', children: [_jsx(Search, { size: 18, className: 'flex-shrink-0 text-text-secondary dark:text-text-secondary' }), _jsx("input", { ref: inputRef, type: 'text', value: query, onChange: (event) => setQuery(event.target.value), onKeyDown: (event) => {
174
+ ? createPortal(_jsxs("div", { className: cn('fixed inset-0 z-9999 flex items-start justify-center px-4 pt-[12vh]', overlayClassName), children: [_jsx("button", { type: 'button', onClick: closeSpotlight, className: 'absolute inset-0 bg-black/45 backdrop-blur-sm', "aria-label": 'Close command spotlight' }), _jsxs("div", { role: 'dialog', "aria-modal": 'true', className: cn('relative z-10 w-full max-w-2xl overflow-hidden rounded-[28px] border border-sand/10 bg-white/95 text-text-primary shadow-2xl backdrop-blur-xl dark:border-sand/20 dark:bg-dark-sand/95 dark:text-text-primary', dialogClassName), onClick: (event) => event.stopPropagation(), children: [_jsxs("div", { className: 'flex items-center gap-3 border-b border-sand/15 px-4 py-3 dark:border-sand/20', children: [_jsx(Search, { size: 18, className: 'shrink-0 text-text-secondary dark:text-text-secondary' }), _jsx("input", { ref: inputRef, type: 'text', value: query, onChange: (event) => setQuery(event.target.value), onKeyDown: (event) => {
180
175
  if (event.key === 'ArrowDown') {
181
176
  event.preventDefault();
182
177
  moveSelection(1);
@@ -207,7 +202,7 @@ export function CommandSpotlight({ actions, className, dialogClassName, emptyMes
207
202
  }
208
203
  }, className: cn('flex w-full items-center justify-between gap-3 rounded-xl px-3 py-2.5 text-left transition-colors', isSelected
209
204
  ? 'bg-sea/10 text-sea dark:bg-accent-blue/15 dark:text-accent-blue'
210
- : 'text-text-primary hover:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/15', action.disabled && 'cursor-not-allowed opacity-40'), children: [_jsxs("div", { className: 'flex min-w-0 items-center gap-3', children: [action.icon ? (_jsx("span", { className: 'flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-sand/10 text-text-secondary dark:bg-sand/20 dark:text-text-secondary', children: action.icon })) : null, _jsxs("div", { className: 'min-w-0', children: [_jsx("p", { className: 'truncate text-sm font-medium', children: action.title }), action.description ? (_jsx("p", { className: 'truncate text-xs text-text-secondary dark:text-text-secondary', children: action.description })) : null] })] }), action.shortcut && action.shortcut.length > 0 ? _jsx(Kbd, { keys: action.shortcut }) : null] }, action.id));
205
+ : 'text-text-primary hover:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/15', action.disabled && 'cursor-not-allowed opacity-40'), children: [_jsxs("div", { className: 'flex min-w-0 items-center gap-3', children: [action.icon ? (_jsx("span", { className: 'flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-sand/10 text-text-secondary dark:bg-sand/20 dark:text-text-secondary', children: action.icon })) : null, _jsxs("div", { className: 'min-w-0', children: [_jsx("p", { className: 'truncate text-sm font-medium', children: action.title }), action.description ? (_jsx("p", { className: 'truncate text-xs text-text-secondary dark:text-text-secondary', children: action.description })) : null] })] }), action.shortcut && action.shortcut.length > 0 ? _jsx(Kbd, { keys: action.shortcut }) : null] }, action.id));
211
206
  }) })] }, group)))) })] })] }), document.body)
212
207
  : null;
213
208
  return (_jsxs("div", { className: className, children: [renderTrigger, renderOverlay] }));
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
3
+ declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
4
+ declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
5
+ declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
7
+ inset?: boolean;
8
+ } & React.RefAttributes<HTMLDivElement>>;
9
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem };
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
4
+ import { cn } from '../utils/cn.js';
5
+ const ContextMenu = ContextMenuPrimitive.Root;
6
+ const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
7
+ const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { ref: ref, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border border-black/10 bg-white/95 backdrop-blur-xl p-1 text-black shadow-[0_8px_32px_rgba(0,0,0,0.08)] animate-in fade-in zoom-in-95 ease-out duration-200', className), ...props }) })));
8
+ ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
9
+ const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(ContextMenuPrimitive.Item, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-light-sand focus:text-black data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors duration-150', inset && 'pl-8', className), ...props })));
10
+ ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
11
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem };
@@ -0,0 +1,11 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ interface DataTableProps<TData, TValue> {
3
+ columns: ColumnDef<TData, TValue>[];
4
+ data: TData[];
5
+ /**
6
+ * If provided, displays a search input that filters this specific column.
7
+ */
8
+ searchKey?: string;
9
+ }
10
+ export declare function DataTable<TData, TValue>({ columns, data, searchKey }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
4
+ import { Search, ChevronLeft, ChevronRight } from 'lucide-react';
5
+ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './table.js';
6
+ import { Input } from './input.js';
7
+ import { Button } from './button.js';
8
+ export function DataTable({ columns, data, searchKey }) {
9
+ const [sorting, setSorting] = React.useState([]);
10
+ const [columnFilters, setColumnFilters] = React.useState([]);
11
+ const [rowSelection, setRowSelection] = React.useState({});
12
+ const table = useReactTable({
13
+ data,
14
+ columns,
15
+ getCoreRowModel: getCoreRowModel(),
16
+ getPaginationRowModel: getPaginationRowModel(),
17
+ onSortingChange: setSorting,
18
+ getSortedRowModel: getSortedRowModel(),
19
+ onColumnFiltersChange: setColumnFilters,
20
+ getFilteredRowModel: getFilteredRowModel(),
21
+ onRowSelectionChange: setRowSelection,
22
+ state: {
23
+ sorting,
24
+ columnFilters,
25
+ rowSelection
26
+ }
27
+ });
28
+ return (_jsxs("div", { className: 'w-full space-y-4', children: [searchKey && (_jsx("div", { className: 'flex items-center', children: _jsx("div", { className: 'w-full max-w-sm', children: _jsx(Input, { placeholder: `Search ${searchKey}...`, value: table.getColumn(searchKey)?.getFilterValue() ?? '', onChange: (event) => table.getColumn(searchKey)?.setFilterValue(event.target.value), startIcon: _jsx(Search, { className: 'w-4 h-4' }), className: 'bg-white' }) }) })), _jsx("div", { className: 'rounded-md border border-black/10 overflow-hidden shadow-[0_2px_10px_rgba(0,0,0,0.02),0_8px_32px_rgba(26,55,77,0.04)] bg-white', children: _jsxs(Table, { children: [_jsx(TableHeader, { className: 'bg-light-sand/50', children: table.getHeaderGroups().map((headerGroup) => (_jsx(TableRow, { children: headerGroup.headers.map((header) => {
29
+ return _jsx(TableHead, { children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }, header.id);
30
+ }) }, headerGroup.id))) }), _jsx(TableBody, { className: 'bg-white', children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (_jsx(TableRow, { "data-state": row.getIsSelected() && 'selected', className: 'hover:bg-light-sand/20 transition-colors duration-[200ms]', children: row.getVisibleCells().map((cell) => (_jsx(TableCell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (_jsx(TableRow, { children: _jsx(TableCell, { colSpan: columns.length, className: 'h-24 text-center text-text-secondary', children: "No results." }) })) })] }) }), _jsxs("div", { className: 'flex items-center justify-between px-2', children: [_jsx("div", { className: 'flex-1 text-sm text-text-secondary', children: table.getFilteredSelectedRowModel().rows.length > 0 && (_jsxs(_Fragment, { children: [table.getFilteredSelectedRowModel().rows.length, " of ", table.getFilteredRowModel().rows.length, " row(s) selected."] })) }), _jsxs("div", { className: 'flex items-center space-x-2', children: [_jsx(Button, { variant: 'secondary', size: 'sm', onClick: () => table.previousPage(), disabled: !table.getCanPreviousPage(), className: 'h-8 w-8 p-0', children: _jsx(ChevronLeft, { className: 'h-4 w-4' }) }), _jsx(Button, { variant: 'secondary', size: 'sm', onClick: () => table.nextPage(), disabled: !table.getCanNextPage(), className: 'h-8 w-8 p-0', children: _jsx(ChevronRight, { className: 'h-4 w-4' }) })] })] })] }));
31
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface DialogCloseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ iconSize?: number;
4
+ }
5
+ export declare const DialogCloseButton: React.ForwardRefExoticComponent<DialogCloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { X } from 'lucide-react';
3
+ import React from 'react';
4
+ import { cn } from '../utils/cn.js';
5
+ export const DialogCloseButton = React.forwardRef(function DialogCloseButton({ className, iconSize = 20, type = 'button', ...props }, ref) {
6
+ return (_jsx("button", { ref: ref, type: type, className: cn('inline-flex items-center justify-center rounded-full border-2 border-sea bg-white p-3 text-text-primary shadow-sm transition-all duration-400 hover:-translate-y-0.5 hover:bg-light-sand focus:outline-none focus-visible:ring-2 focus-visible:ring-sea focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:border-accent-blue dark:bg-dark-sand dark:text-text-primary dark:hover:bg-sand/20 dark:focus-visible:ring-accent-blue dark:focus-visible:ring-offset-dark-sand', className), ...props, children: _jsx(X, { size: iconSize }) }));
7
+ });
@@ -38,5 +38,5 @@ export function Drawer({ children, className, description, isOpen, onClose, titl
38
38
  };
39
39
  if (typeof document === 'undefined' || !isOpen)
40
40
  return null;
41
- return createPortal(_jsxs("div", { className: 'fixed inset-0 z-50', children: [_jsx("div", { className: cn('absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity duration-300', visible ? 'opacity-100' : 'opacity-0'), onClick: onClose, "aria-hidden": 'true' }), _jsxs("div", { ref: panelRef, role: 'dialog', "aria-modal": 'true', "aria-label": title, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, className: cn('absolute inset-x-0 bottom-0 flex max-h-[90dvh] flex-col rounded-t-3xl border-t border-sand/10 bg-white shadow-2xl transition-transform duration-300 ease-in-out dark:border-sand/20 dark:bg-dark-sand', visible ? 'translate-y-0' : 'translate-y-full', className), children: [_jsx("div", { className: 'flex items-center justify-center pt-3 pb-1', children: _jsx(Minus, { size: 24, className: 'text-sand/40 dark:text-sand/50', strokeWidth: 3, "aria-hidden": 'true' }) }), (title || description) && (_jsxs("div", { className: 'px-6 pb-4 pt-1', children: [title ? _jsx("h2", { className: 'text-base font-semibold text-text-primary dark:text-text-primary', children: title }) : null, description ? _jsx("p", { className: 'mt-0.5 text-sm text-text-secondary dark:text-text-secondary', children: description }) : null] })), _jsx("div", { className: 'flex-1 overflow-y-auto px-6 pb-6 pt-0', children: children })] })] }), document.body);
41
+ return createPortal(_jsxs("div", { className: 'fixed inset-0 z-50', children: [_jsx("div", { className: cn('absolute inset-0 bg-deep-sea/40 backdrop-blur-md transition-opacity duration-300 dark:bg-black/70', visible ? 'opacity-100' : 'opacity-0'), onClick: onClose, "aria-hidden": 'true' }), _jsxs("div", { ref: panelRef, role: 'dialog', "aria-modal": 'true', "aria-label": title, onTouchStart: handleTouchStart, onTouchEnd: handleTouchEnd, className: cn('absolute inset-x-0 bottom-0 flex max-h-[90dvh] flex-col rounded-t-[32px] border-t border-black/[0.04] bg-white shadow-[0_-8px_40px_rgba(0,0,0,0.08)] transition-transform duration-400 ease-out-expo dark:border-white/10 dark:bg-deep-sea dark:shadow-[0_-8px_40px_rgba(0,0,0,0.4)]', visible ? 'translate-y-0' : 'translate-y-full', className), children: [_jsx("div", { className: 'flex items-center justify-center pt-3 pb-1', children: _jsx(Minus, { size: 24, className: 'text-sand/40 dark:text-sand/50', strokeWidth: 3, "aria-hidden": 'true' }) }), (title || description) && (_jsxs("div", { className: 'px-6 pb-4 pt-1', children: [title ? _jsx("h2", { className: 'text-base font-semibold text-text-primary dark:text-text-primary', children: title }) : null, description ? _jsx("p", { className: 'mt-0.5 text-sm text-text-secondary dark:text-text-secondary', children: description }) : null] })), _jsx("div", { className: 'flex-1 overflow-y-auto px-6 pb-6 pt-0', children: children })] })] }), document.body);
42
42
  }
@@ -2,5 +2,5 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from '../utils/cn.js';
3
3
  const DefaultIcon = () => (_jsxs("svg", { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 64 64', fill: 'none', className: 'h-full w-full', "aria-hidden": 'true', children: [_jsx("rect", { x: '8', y: '16', width: '48', height: '36', rx: '6', stroke: 'currentColor', strokeWidth: '2' }), _jsx("path", { d: 'M8 28h48', stroke: 'currentColor', strokeWidth: '2' }), _jsx("path", { d: 'M24 40h16', stroke: 'currentColor', strokeWidth: '2', strokeLinecap: 'round' })] }));
4
4
  export function Empty({ action, className, description, icon, title }) {
5
- return (_jsxs("div", { className: cn('flex flex-col items-center justify-center gap-4 rounded-2xl border border-dashed border-sand/30 px-6 py-16 text-center dark:border-sand/30', className), children: [_jsx("div", { className: 'flex h-14 w-14 items-center justify-center rounded-full bg-sand/10 text-text-secondary dark:bg-sand/15 dark:text-text-primary', children: icon ?? (_jsx("span", { className: 'h-7 w-7 text-text-secondary dark:text-text-primary', children: _jsx(DefaultIcon, {}) })) }), _jsxs("div", { className: 'space-y-1.5', children: [_jsx("h3", { className: 'text-base font-semibold text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'max-w-xs text-sm leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] }), action ? _jsx("div", { className: 'mt-1', children: action }) : null] }));
5
+ return (_jsxs("div", { className: cn('flex flex-col items-center justify-center gap-4 rounded-2xl border-2 border-dashed border-black/5 bg-light-sand/30 px-6 py-16 text-center dark:border-white/10 dark:bg-deep-sea/30', className), children: [_jsx("div", { className: 'flex h-16 w-16 items-center justify-center rounded-2xl bg-white text-text-secondary shadow-[0_2px_8px_rgba(0,0,0,0.04)] ring-1 ring-black/5 dark:bg-deep-sea dark:text-text-primary dark:ring-white/10', children: icon ?? (_jsx("span", { className: 'h-8 w-8 text-sea dark:text-accent-blue', children: _jsx(DefaultIcon, {}) })) }), _jsxs("div", { className: 'space-y-1.5', children: [_jsx("h3", { className: 'text-base font-semibold text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'max-w-xs text-sm leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] }), action ? _jsx("div", { className: 'mt-1', children: action }) : null] }));
6
6
  }
@@ -1,9 +1,10 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Info } from 'lucide-react';
3
+ import { Tooltip } from './tooltip.js';
3
4
  import { cn } from '../utils/cn.js';
4
5
  export function FieldHelpTooltip({ className, text }) {
5
6
  if (!text.trim()) {
6
7
  return null;
7
8
  }
8
- return (_jsxs("span", { className: cn('group relative inline-flex items-center align-middle', className), children: [_jsx("button", { type: 'button', tabIndex: 0, "aria-label": text, title: text, className: 'inline-flex h-4 w-4 items-center justify-center rounded-full text-text-secondary transition-colors hover:text-text-primary focus:outline-none focus:ring-2 focus:ring-sea dark:focus:ring-accent-blue', children: _jsx(Info, { size: 14 }) }), _jsx("span", { className: 'pointer-events-none absolute left-1/2 top-full z-50 mt-2 hidden w-64 -translate-x-1/2 rounded-lg bg-dark-sand px-3 py-2 text-left text-xs font-normal leading-relaxed text-white shadow-xl group-hover:block group-focus-within:block', children: text })] }));
9
+ return (_jsx(Tooltip, { content: text, side: 'bottom', className: cn('align-middle', className), children: _jsx("button", { type: 'button', tabIndex: 0, "aria-label": text, className: 'inline-flex h-4 w-4 items-center justify-center rounded-full text-text-secondary transition-colors hover:text-text-primary focus:outline-none focus:ring-2 focus:ring-sea dark:focus:ring-accent-blue', children: _jsx(Info, { size: 14 }) }) }));
9
10
  }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type FileInputSize = 'sm' | 'md' | 'lg';
3
+ export interface FileInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
+ error?: boolean;
5
+ inputSize?: FileInputSize;
6
+ }
7
+ export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
8
+ export {};
@@ -0,0 +1,11 @@
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: 'text-sm file:px-3 file:py-2',
6
+ md: 'text-sm file:px-4 file:py-2.5',
7
+ lg: 'text-base file:px-4 file:py-3'
8
+ };
9
+ export const FileInput = React.forwardRef(function FileInput({ className, error = false, inputSize = 'md', ...props }, ref) {
10
+ return (_jsx("input", { ref: ref, type: 'file', className: cn('block w-full rounded-[18px] border bg-white p-2 text-text-primary shadow-sm outline-none transition-all duration-200 file:mr-4 file:rounded-full file:border-0 file:font-[family-name:var(--font-header)] file:font-medium file:tracking-refined file:transition-all file:duration-300', 'file:bg-sea/10 file:text-sea hover:file:bg-sea/20 dark:bg-dark-sand dark:text-text-primary dark:file:bg-accent-blue/10 dark:file:text-accent-blue dark:hover:file:bg-accent-blue/20', error ? 'border-terracotta dark:border-terracotta' : 'border-sand/30 dark:border-sand/50', 'focus:ring-2 focus:ring-sea disabled:cursor-not-allowed disabled:opacity-50 dark:focus:ring-accent-blue', sizeClasses[inputSize], className), ...props }));
11
+ });
@@ -1,5 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronLeft, ChevronRight } from 'lucide-react';
2
3
  import React from 'react';
4
+ import { IconButton } from './icon-button.js';
3
5
  import { cn } from '../utils/cn.js';
4
6
  const defaultBackgroundClassName = 'bg-gradient-to-r from-deep-sea via-dusk to-accent-oxblood';
5
7
  function defaultRenderLink({ ariaLabel, children, className, item }) {
@@ -60,10 +62,10 @@ export function HeroCarousel({ autoAdvanceMs = 5000, className, defaultBackgroun
60
62
  return () => document.removeEventListener('keydown', handleKeydown);
61
63
  }, [hasMultipleSlides, items.length]);
62
64
  if (items.length === 0) {
63
- return (_jsx("section", { className: cn('relative w-full overflow-hidden', className), children: _jsx("div", { className: cn('flex h-[600px] w-full items-center justify-center pt-16 text-white', fallbackBackgroundClassName), children: emptyState ?? _jsx("p", { className: 'text-xl', children: "No featured content available" }) }) }));
65
+ return (_jsx("section", { className: cn('relative w-full overflow-hidden', className), children: _jsx("div", { className: cn('flex h-150 w-full items-center justify-center pt-16 text-white', fallbackBackgroundClassName), children: emptyState ?? _jsx("p", { className: 'text-xl', children: "No featured content available" }) }) }));
64
66
  }
65
67
  const showNavigation = hasMultipleSlides && showControls;
66
- return (_jsx("section", { className: cn('relative w-full overflow-hidden', className), children: _jsxs("div", { className: 'hero-carousel flex h-[600px] w-full', onMouseEnter: () => setIsPaused(true), onMouseLeave: () => setIsPaused(false), children: [items.map((item, index) => (_jsxs("div", { className: cn('absolute inset-0 w-full transition-opacity duration-500', index === currentSlide ? 'opacity-100' : 'opacity-0'), "aria-hidden": index !== currentSlide, children: [_jsx("div", { className: 'absolute inset-0 h-full w-full', children: item.imageUrl ? (_jsxs(_Fragment, { children: [_jsx("img", { src: item.imageUrl, alt: item.title, className: 'h-full w-full object-cover', loading: index === 0 ? 'eager' : 'lazy', fetchPriority: index === 0 ? 'high' : 'auto' }), _jsx("div", { className: 'absolute inset-0 bg-black/20' }), _jsx("div", { className: 'absolute inset-0 bg-gradient-to-b from-black/70 via-black/25 to-black/85' }), _jsx("div", { className: 'absolute inset-0 bg-gradient-to-r from-black/60 via-transparent to-black/60' }), _jsx("div", { className: 'absolute inset-0 mix-blend-soft-light opacity-45', style: {
68
+ return (_jsx("section", { className: cn('relative w-full overflow-hidden', className), children: _jsxs("div", { className: 'hero-carousel flex h-150 w-full', onMouseEnter: () => setIsPaused(true), onMouseLeave: () => setIsPaused(false), children: [items.map((item, index) => (_jsxs("div", { className: cn('absolute inset-0 w-full transition-opacity duration-500', index === currentSlide ? 'opacity-100' : 'opacity-0'), "aria-hidden": index !== currentSlide, children: [_jsx("div", { className: 'absolute inset-0 h-full w-full', children: item.imageUrl ? (_jsxs(_Fragment, { children: [_jsx("img", { src: item.imageUrl, alt: item.title, className: 'h-full w-full object-cover', loading: index === 0 ? 'eager' : 'lazy', fetchPriority: index === 0 ? 'high' : 'auto' }), _jsx("div", { className: 'absolute inset-0 bg-black/20' }), _jsx("div", { className: 'absolute inset-0 bg-linear-to-b from-black/70 via-black/25 to-black/85' }), _jsx("div", { className: 'absolute inset-0 bg-linear-to-r from-black/60 via-transparent to-black/60' }), _jsx("div", { className: 'absolute inset-0 mix-blend-soft-light opacity-45', style: {
67
69
  backgroundImage: 'radial-gradient(120% 90% at 50% 55%, rgba(26,55,77,0.9) 0%, rgba(193,129,77,0.45) 45%, rgba(0,0,0,0) 75%)'
68
70
  } }), _jsx("div", { className: 'absolute inset-0 mix-blend-overlay opacity-[0.07]', style: {
69
71
  backgroundImage: 'repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0px, rgba(255,255,255,0.28) 1px, transparent 1px, transparent 3px)'
@@ -71,6 +73,6 @@ export function HeroCarousel({ autoAdvanceMs = 5000, className, defaultBackgroun
71
73
  item,
72
74
  ariaLabel: getAriaLabel(item),
73
75
  className: 'group flex h-full items-center pb-8 pt-16',
74
- children: (_jsx("div", { className: 'mx-auto max-w-3xl px-4 text-center', children: _jsxs("div", { className: 'text-shadow-lg relative z-10 px-2 sm:px-6', children: [_jsxs("div", { className: 'flex flex-col items-center opacity-75', children: [_jsx("span", { className: 'text-sm font-light uppercase tracking-widest light:text-white', children: getKicker(item) }), _jsx("div", { className: 'mb-6 mt-4 h-px w-12 bg-white/30' })] }), item.kind === 'project' && item.tags?.length ? (_jsx("div", { className: 'mb-4 space-x-2', children: item.tags.map((tag) => (_jsx("span", { className: 'inline-block rounded-full border border-white/10 bg-white/15 px-3 py-1 text-sm backdrop-blur-sm light:text-white', children: tag }, `${item.id ?? item.href}:${tag}`))) })) : null, _jsx("h1", { className: 'mb-4 text-3xl font-bold transition-colors [text-wrap:balance] drop-shadow-[0_0_14px_rgba(0,0,0,0.5)] group-hover:text-white/90 light:text-white sm:text-4xl lg:text-5xl', children: item.title }), _jsx("p", { className: 'mb-6 text-base text-gray-100 transition-colors drop-shadow-[0_0_10px_rgba(0,0,0,0.45)] group-hover:text-gray-200 sm:text-lg', children: item.description }), _jsx("div", { className: 'inline-block rounded-full border px-6 py-2 font-medium transition-colors backdrop-blur-sm light:border-white/20 light:bg-white/90 light:text-gray-900 light:group-hover:bg-white dark:border-sand/35 dark:bg-sand/90 dark:text-text-primary dark:group-hover:bg-dark-sand/90', children: getCtaLabel(item) })] }) }))
75
- }) })] }, item.id ?? `${item.title}:${item.href}`))), showNavigation ? (_jsxs("div", { className: 'absolute bottom-8 left-4 right-4 flex items-center justify-between', children: [_jsx("button", { className: 'rounded-full bg-black/20 p-2 text-white/75 transition-colors backdrop-blur-sm hover:bg-black/30 hover:text-white', "data-carousel-prev": true, "aria-label": 'Previous slide', onClick: () => setCurrentSlide((previous) => (previous - 1 + items.length) % items.length), type: 'button', children: _jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', stroke: 'currentColor', strokeWidth: 2, className: 'h-5 w-5', children: _jsx("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M15.75 19.5 8.25 12l7.5-7.5' }) }) }), showIndicators ? (_jsx("div", { className: 'flex gap-2 rounded-full bg-black/20 p-2 backdrop-blur-sm', children: items.map((item, index) => (_jsxs("button", { className: cn('relative flex h-10 w-10 touch-manipulation items-center justify-center', index === currentSlide && 'active'), "data-dot": index, "aria-label": `Go to slide ${index + 1}`, onClick: () => setCurrentSlide(index), type: 'button', children: [_jsx("span", { className: 'dot-indicator block h-2 w-2 rounded-full bg-white/50 transition-colors' }), _jsxs("span", { className: 'sr-only', children: ["Slide ", index + 1] })] }, `dot:${item.id ?? `${item.title}:${item.href}`}`))) })) : null, _jsx("button", { className: 'rounded-full bg-black/20 p-2 text-white/75 transition-colors backdrop-blur-sm hover:bg-black/30 hover:text-white', "data-carousel-next": true, "aria-label": 'Next slide', onClick: () => setCurrentSlide((previous) => (previous + 1) % items.length), type: 'button', children: _jsx("svg", { xmlns: 'http://www.w3.org/2000/svg', fill: 'none', viewBox: '0 0 24 24', stroke: 'currentColor', strokeWidth: 2, className: 'h-5 w-5', children: _jsx("path", { strokeLinecap: 'round', strokeLinejoin: 'round', d: 'm8.25 4.5 7.5 7.5-7.5 7.5' }) }) })] })) : null] }) }));
76
+ children: (_jsx("div", { className: 'mx-auto max-w-3xl px-4 text-center', children: _jsxs("div", { className: 'text-shadow-lg relative z-10 px-2 sm:px-6', children: [_jsxs("div", { className: 'flex flex-col items-center opacity-75', children: [_jsx("span", { className: 'text-sm font-light uppercase tracking-widest light:text-white', children: getKicker(item) }), _jsx("div", { className: 'mb-6 mt-4 h-px w-12 bg-white/30' })] }), item.kind === 'project' && item.tags?.length ? (_jsx("div", { className: 'mb-4 space-x-2', children: item.tags.map((tag) => (_jsx("span", { className: 'inline-block rounded-full border border-white/10 bg-white/15 px-3 py-1 text-sm backdrop-blur-sm light:text-white', children: tag }, `${item.id ?? item.href}:${tag}`))) })) : null, _jsx("h1", { className: 'mb-4 text-3xl font-bold text-balance transition-colors drop-shadow-[0_0_14px_rgba(0,0,0,0.5)] group-hover:text-white/90 light:text-white sm:text-4xl lg:text-5xl', children: item.title }), _jsx("p", { className: 'mb-6 text-base text-gray-100 transition-colors drop-shadow-[0_0_10px_rgba(0,0,0,0.45)] group-hover:text-gray-200 sm:text-lg', children: item.description }), _jsx("div", { className: 'inline-block rounded-full border px-6 py-2 font-medium transition-colors backdrop-blur-sm light:border-white/20 light:bg-white/90 light:text-gray-900 light:group-hover:bg-white dark:border-sand/35 dark:bg-sand/90 dark:text-text-primary dark:group-hover:bg-dark-sand/90', children: getCtaLabel(item) })] }) }))
77
+ }) })] }, item.id ?? `${item.title}:${item.href}`))), showNavigation ? (_jsxs("div", { className: 'absolute bottom-8 left-4 right-4 flex items-center justify-between', children: [_jsx(IconButton, { className: 'border-0 bg-black/20 p-2 text-white/75 shadow-none backdrop-blur-sm hover:translate-y-0 hover:scale-100 hover:bg-black/30 hover:text-white dark:bg-black/20 dark:hover:bg-black/30', "data-carousel-prev": true, "aria-label": 'Previous slide', onClick: () => setCurrentSlide((previous) => (previous - 1 + items.length) % items.length), type: 'button', children: _jsx(ChevronLeft, { size: 20 }) }), showIndicators ? (_jsx("div", { className: 'flex gap-2 rounded-full bg-black/20 p-2 backdrop-blur-sm', children: items.map((item, index) => (_jsxs("button", { className: cn('relative flex h-10 w-10 touch-manipulation items-center justify-center', index === currentSlide && 'active'), "data-dot": index, "aria-label": `Go to slide ${index + 1}`, onClick: () => setCurrentSlide(index), type: 'button', children: [_jsx("span", { className: 'dot-indicator block h-2 w-2 rounded-full bg-white/50 transition-colors' }), _jsxs("span", { className: 'sr-only', children: ["Slide ", index + 1] })] }, `dot:${item.id ?? `${item.title}:${item.href}`}`))) })) : null, _jsx(IconButton, { className: 'border-0 bg-black/20 p-2 text-white/75 shadow-none backdrop-blur-sm hover:translate-y-0 hover:scale-100 hover:bg-black/30 hover:text-white dark:bg-black/20 dark:hover:bg-black/30', "data-carousel-next": true, "aria-label": 'Next slide', onClick: () => setCurrentSlide((previous) => (previous + 1) % items.length), type: 'button', children: _jsx(ChevronRight, { size: 20 }) })] })) : null] }) }));
76
78
  }
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { cn } from '../utils/cn.js';
4
4
  export const IconButton = React.forwardRef(function IconButton({ className, type = 'button', ...props }, ref) {
5
- return (_jsx("button", { ref: ref, type: type, className: cn('inline-flex items-center justify-center rounded-full p-2.5 border border-sand/20 dark:border-sand/70 bg-white/35 dark:bg-sand/25 backdrop-blur-md shadow-sm transition-all duration-400 hover:-translate-y-0.5 hover:scale-105 hover:bg-white/55 dark:hover:bg-sand/35 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea dark:focus-visible:ring-accent-blue', className), ...props }));
5
+ return (_jsx("button", { ref: ref, type: type, className: cn('inline-flex items-center justify-center rounded-full p-2.5 border border-sand/20 dark:border-sand/70 bg-white/35 dark:bg-sand/25 backdrop-blur-md shadow-sm transition-all duration-400 hover:-translate-y-0.5 hover:scale-105 hover:bg-white/55 dark:hover:bg-sand/35 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-accent-blue dark:focus-visible:ring-offset-dark-sand', className), ...props }));
6
6
  });
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type InputSize = 'sm' | 'md' | 'lg';
3
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
+ endIcon?: React.ReactNode;
5
+ error?: boolean;
6
+ inputSize?: InputSize;
7
+ startIcon?: React.ReactNode;
8
+ }
9
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
10
+ export {};
@@ -0,0 +1,11 @@
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
+ const sizeClasses = {
5
+ sm: 'min-h-9 px-3 py-2 text-sm',
6
+ md: 'min-h-11 px-4 py-2.5 text-sm',
7
+ lg: 'min-h-12 px-4 py-3 text-base'
8
+ };
9
+ export const Input = React.forwardRef(function Input({ className, endIcon, error = false, inputSize = 'md', startIcon, type = 'text', ...props }, ref) {
10
+ return (_jsxs("div", { className: 'relative w-full', children: [startIcon ? (_jsx("div", { className: 'pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-text-secondary dark:text-text-secondary', children: startIcon })) : null, _jsx("input", { ref: ref, type: type, className: cn('w-full rounded-[var(--radius-ui)] border-0 ring-1 ring-inset ring-black/10 bg-light-sand/50 text-text-primary shadow-[inset_0_1px_2px_rgba(0,0,0,0.02)] outline-none transition-all duration-200 placeholder:text-text-secondary/60 hover:bg-white hover:ring-black/20 focus:bg-white focus:ring-2 focus:ring-inset focus:ring-sea disabled:cursor-not-allowed disabled:opacity-50 dark:bg-deep-sea/50 dark:text-text-primary dark:ring-white/10 dark:placeholder:text-text-secondary dark:hover:bg-deep-sea dark:focus:ring-accent-blue', error ? 'ring-terracotta/50 focus:ring-terracotta dark:ring-terracotta/50' : '', startIcon ? 'pl-10' : sizeClasses[inputSize], startIcon && inputSize === 'sm' && 'min-h-9 py-2 pr-3 text-sm', startIcon && inputSize === 'md' && 'min-h-11 py-2.5 pr-4 text-sm', startIcon && inputSize === 'lg' && 'min-h-12 py-3 pr-4 text-base', endIcon ? 'pr-10' : undefined, className), ...props }), endIcon ? (_jsx("div", { className: 'pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-text-secondary dark:text-text-secondary', children: endIcon })) : null] }));
11
+ });
@@ -4,7 +4,7 @@ import { cn } from '../utils/cn.js';
4
4
  /** Renders a keyboard key or key combination as styled <kbd> elements. */
5
5
  export function Kbd({ className, keys, children, ...props }) {
6
6
  if (keys && keys.length > 0) {
7
- return (_jsx("span", { className: 'inline-flex items-center gap-0.5', "aria-label": keys.join('+'), role: 'group', children: keys.map((key, i) => (_jsxs(React.Fragment, { children: [i > 0 && _jsx("span", { className: 'text-xs text-text-secondary', children: "+" }), _jsx("kbd", { ...props, className: cn('inline-flex h-5 min-w-5 items-center justify-center rounded border border-sand/30 bg-sand/10 px-1.5 font-mono text-[11px] font-medium text-text-secondary shadow-[inset_0_-1px_0] shadow-sand/20 dark:border-sand/40 dark:bg-sand/15 dark:text-text-primary dark:shadow-sand/30', className), children: key })] }, key))) }));
7
+ return (_jsx("span", { className: 'inline-flex items-center gap-0.5', "aria-label": keys.join('+'), role: 'group', children: keys.map((key, i) => (_jsxs(React.Fragment, { children: [i > 0 && _jsx("span", { className: 'text-xs text-text-secondary', children: "+" }), _jsx("kbd", { ...props, className: cn('inline-flex h-5 min-w-5 items-center justify-center rounded-[4px] border border-black/[0.08] bg-light-sand/50 px-1.5 font-mono text-[11px] font-medium text-text-secondary shadow-[0_1px_0_0_rgba(0,0,0,0.08)] dark:border-white/10 dark:bg-deep-sea/50 dark:text-text-primary dark:shadow-[0_1px_0_0_rgba(255,255,255,0.1)]', className), children: key })] }, key))) }));
8
8
  }
9
- return (_jsx("kbd", { ...props, className: cn('inline-flex h-5 min-w-5 items-center justify-center rounded border border-sand/30 bg-sand/10 px-1.5 font-mono text-[11px] font-medium text-text-secondary shadow-[inset_0_-1px_0] shadow-sand/20 dark:border-sand/40 dark:bg-sand/15 dark:text-text-primary dark:shadow-sand/30', className), children: children }));
9
+ return (_jsx("kbd", { ...props, className: cn('inline-flex h-5 min-w-5 items-center justify-center rounded-[4px] border border-black/[0.08] bg-light-sand/50 px-1.5 font-mono text-[11px] font-medium text-text-secondary shadow-[0_1px_0_0_rgba(0,0,0,0.08)] dark:border-white/10 dark:bg-deep-sea/50 dark:text-text-primary dark:shadow-[0_1px_0_0_rgba(255,255,255,0.1)]', className), children: children }));
10
10
  }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as LabelPrimitive from '@radix-ui/react-label';
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
4
+ export { Label };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import * as LabelPrimitive from '@radix-ui/react-label';
4
+ import { cn } from '../utils/cn.js';
5
+ const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx(LabelPrimitive.Root, { ref: ref, className: cn('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-text-primary dark:text-text-primary', className), ...props })));
6
+ Label.displayName = LabelPrimitive.Root.displayName;
7
+ export { Label };