@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
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Copy, Search, Trash2 } from 'lucide-react';
3
3
  import React from 'react';
4
+ import { IconButton } from './icon-button.js';
4
5
  import { Modal } from './modal.js';
5
6
  import { cn } from '../utils/cn.js';
6
7
  export function MediaLibrary({ actions, className, emptyMessage = 'No media found.', filterSlot, items, onCopy, onDelete, onSearchTermChange, searchPlaceholder = 'Search media...', searchTerm, title }) {
@@ -14,8 +15,8 @@ export function MediaLibrary({ actions, className, emptyMessage = 'No media foun
14
15
  void navigator.clipboard.writeText(text);
15
16
  }
16
17
  };
17
- return (_jsxs("div", { className: cn('p-4 md:p-8', className), children: [_jsxs("div", { className: 'mb-8 flex flex-col gap-4 md:flex-row md:items-center md:justify-between', children: [_jsx("h1", { className: 'text-3xl font-bold text-text-primary dark:text-text-primary', children: title }), actions] }), _jsxs("div", { className: 'mb-6 flex flex-col gap-4 md:flex-row', children: [_jsxs("div", { className: 'relative flex-1', children: [_jsx(Search, { size: 20, className: 'absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary' }), _jsx("input", { type: 'text', placeholder: searchPlaceholder, value: searchTerm, onChange: (event) => onSearchTermChange(event.target.value), className: 'w-full rounded-lg border border-sand/30 bg-white py-2 pl-10 pr-4 text-text-primary outline-none focus:ring-2 focus:ring-sea dark:border-sand/50 dark:bg-sand/10 dark:text-text-primary dark:focus:ring-accent-blue' })] }), filterSlot ? _jsx("div", { className: 'md:w-64', children: filterSlot }) : null] }), _jsx("div", { className: 'grid grid-cols-2 gap-6 md:grid-cols-4 lg:grid-cols-5', children: items.map((media) => (_jsxs("div", { className: 'group relative aspect-square cursor-pointer overflow-hidden rounded-xl border border-sand/10 bg-white dark:border-sand/20 dark:bg-sand/10', onClick: () => setSelectedMedia(media), children: [media.thumbnailUrl || media.url ? (_jsx("img", { src: media.thumbnailUrl || media.url, alt: media.alt || media.filename, className: 'h-full w-full object-cover' })) : (_jsx("div", { className: 'flex h-full w-full items-center justify-center bg-gray-100 text-gray-400 dark:bg-gray-800', children: "No Preview" })), _jsxs("div", { className: 'absolute inset-0 flex flex-col justify-end bg-black/50 p-4 opacity-0 transition-opacity group-hover:opacity-100', children: [_jsx("p", { className: 'mb-2 truncate text-sm text-white', children: media.filename }), onDelete ? (_jsx("button", { type: 'button', onClick: (event) => {
18
+ return (_jsxs("div", { className: cn('p-4 md:p-8', className), children: [_jsxs("div", { className: 'mb-8 flex flex-col gap-4 md:flex-row md:items-center md:justify-between', children: [_jsx("h1", { className: 'text-3xl font-bold text-text-primary dark:text-text-primary', children: title }), actions] }), _jsxs("div", { className: 'mb-6 flex flex-col gap-4 md:flex-row', children: [_jsxs("div", { className: 'relative flex-1', children: [_jsx(Search, { size: 20, className: 'absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary' }), _jsx("input", { type: 'text', placeholder: searchPlaceholder, value: searchTerm, onChange: (event) => onSearchTermChange(event.target.value), className: 'w-full rounded-lg border border-sand/30 bg-white py-2 pl-10 pr-4 text-text-primary outline-none focus:ring-2 focus:ring-sea dark:border-sand/50 dark:bg-sand/10 dark:text-text-primary dark:focus:ring-accent-blue' })] }), filterSlot ? _jsx("div", { className: 'md:w-64', children: filterSlot }) : null] }), _jsx("div", { className: 'grid grid-cols-2 gap-6 md:grid-cols-4 lg:grid-cols-5', children: items.map((media) => (_jsxs("div", { className: 'group relative aspect-square cursor-pointer overflow-hidden rounded-xl border border-sand/10 bg-white dark:border-sand/20 dark:bg-sand/10', onClick: () => setSelectedMedia(media), children: [media.thumbnailUrl || media.url ? (_jsx("img", { src: media.thumbnailUrl || media.url, alt: media.alt || media.filename, className: 'h-full w-full object-cover' })) : (_jsx("div", { className: 'flex h-full w-full items-center justify-center bg-gray-100 text-gray-400 dark:bg-gray-800', children: "No Preview" })), _jsxs("div", { className: 'absolute inset-0 flex flex-col justify-end bg-black/50 p-4 opacity-0 transition-opacity group-hover:opacity-100', children: [_jsx("p", { className: 'mb-2 truncate text-sm text-white', children: media.filename }), onDelete ? (_jsx(IconButton, { onClick: (event) => {
18
19
  event.stopPropagation();
19
20
  onDelete(media.id);
20
- }, className: 'self-end rounded-lg bg-white p-2 text-terracotta transition-colors hover:bg-gray-100', title: 'Delete', children: _jsx(Trash2, { size: 16 }) })) : null] })] }, media.id))) }), items.length === 0 ? _jsx("div", { className: 'p-8 text-center text-text-secondary', children: emptyMessage }) : null, _jsx(Modal, { isOpen: !!selectedMedia, onClose: () => setSelectedMedia(null), title: selectedMedia?.filename || 'Media Preview', className: 'max-w-4xl', children: selectedMedia ? (_jsxs("div", { className: 'space-y-4', children: [_jsx("div", { className: 'flex items-center justify-center overflow-hidden rounded-lg bg-black/5 dark:bg-black/20', children: selectedMedia.url ? _jsx("img", { src: selectedMedia.url, alt: selectedMedia.alt || selectedMedia.filename, className: 'max-h-[60vh] w-auto object-contain' }) : null }), _jsxs("div", { className: 'space-y-3', children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("h3", { className: 'flex-1 text-xl font-bold text-text-primary dark:text-text-primary', children: selectedMedia.filename }), _jsx("button", { type: 'button', onClick: () => handleCopy(selectedMedia.filename), className: 'rounded p-2 text-text-primary transition-colors hover:bg-sand/20 dark:text-text-primary dark:hover:bg-sand/30', title: 'Copy filename', children: _jsx(Copy, { size: 18 }) })] }), selectedMedia.alt ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "Alt Text:" }), _jsx("p", { className: 'text-text-primary dark:text-text-primary', children: selectedMedia.alt })] })) : null, _jsxs("div", { className: 'grid grid-cols-1 gap-4 border-t border-sand/10 pt-2 md:grid-cols-2 dark:border-sand/20', children: [selectedMedia.url ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "URL:" }), _jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("a", { href: selectedMedia.url, target: '_blank', rel: 'noreferrer noopener', className: 'flex-1 break-all text-sm text-sea hover:underline dark:text-accent-blue', children: selectedMedia.url }), _jsx("button", { type: 'button', onClick: () => handleCopy(selectedMedia.url || ''), className: 'flex-shrink-0 rounded p-1.5 text-text-primary transition-colors hover:bg-sand/20 dark:text-text-primary dark:hover:bg-sand/30', title: 'Copy URL', children: _jsx(Copy, { size: 14 }) })] })] })) : null, selectedMedia.createdAt ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "Created:" }), _jsx("p", { className: 'text-sm text-text-primary dark:text-text-primary', children: new Date(selectedMedia.createdAt).toLocaleDateString() })] })) : null] })] })] })) : null })] }));
21
+ }, className: 'self-end rounded-lg border-0 bg-white p-2 text-terracotta shadow-none backdrop-blur-none hover:translate-y-0 hover:scale-100 hover:bg-gray-100 dark:bg-white dark:text-terracotta dark:hover:bg-gray-100', title: 'Delete', "aria-label": 'Delete media item', children: _jsx(Trash2, { size: 16 }) })) : null] })] }, media.id))) }), items.length === 0 ? _jsx("div", { className: 'p-8 text-center text-text-secondary', children: emptyMessage }) : null, _jsx(Modal, { isOpen: !!selectedMedia, onClose: () => setSelectedMedia(null), title: selectedMedia?.filename || 'Media Preview', className: 'max-w-4xl', children: selectedMedia ? (_jsxs("div", { className: 'space-y-4', children: [_jsx("div", { className: 'flex items-center justify-center overflow-hidden rounded-lg bg-black/5 dark:bg-black/20', children: selectedMedia.url ? (_jsx("img", { src: selectedMedia.url, alt: selectedMedia.alt || selectedMedia.filename, className: 'max-h-[60vh] w-auto object-contain' })) : null }), _jsxs("div", { className: 'space-y-3', children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("h3", { className: 'flex-1 text-xl font-bold text-text-primary dark:text-text-primary', children: selectedMedia.filename }), _jsx(IconButton, { onClick: () => handleCopy(selectedMedia.filename), className: 'border-0 bg-transparent p-2 shadow-none backdrop-blur-none hover:translate-y-0 hover:scale-100 hover:bg-sand/20 dark:bg-transparent dark:hover:bg-sand/30', title: 'Copy filename', "aria-label": 'Copy filename', children: _jsx(Copy, { size: 18 }) })] }), selectedMedia.alt ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "Alt Text:" }), _jsx("p", { className: 'text-text-primary dark:text-text-primary', children: selectedMedia.alt })] })) : null, _jsxs("div", { className: 'grid grid-cols-1 gap-4 border-t border-sand/10 pt-2 md:grid-cols-2 dark:border-sand/20', children: [selectedMedia.url ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "URL:" }), _jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("a", { href: selectedMedia.url, target: '_blank', rel: 'noreferrer noopener', className: 'flex-1 break-all text-sm text-sea hover:underline dark:text-accent-blue', children: selectedMedia.url }), _jsx(IconButton, { onClick: () => handleCopy(selectedMedia.url || ''), className: 'shrink-0 border-0 bg-transparent p-1.5 shadow-none backdrop-blur-none hover:translate-y-0 hover:scale-100 hover:bg-sand/20 dark:bg-transparent dark:hover:bg-sand/30', title: 'Copy URL', "aria-label": 'Copy URL', children: _jsx(Copy, { size: 14 }) })] })] })) : null, selectedMedia.createdAt ? (_jsxs("div", { children: [_jsx("label", { className: 'text-sm font-medium text-text-secondary dark:text-text-secondary', children: "Created:" }), _jsx("p", { className: 'text-sm text-text-primary dark:text-text-primary', children: new Date(selectedMedia.createdAt).toLocaleDateString() })] })) : null] })] })] })) : null })] }));
21
22
  }
@@ -7,7 +7,7 @@ function MenuItems({ items, radioGroupValue, onClose }) {
7
7
  const [openSub, setOpenSub] = React.useState(null);
8
8
  return (_jsx("div", { className: 'flex flex-col py-1', children: items.map((item, i) => {
9
9
  if (item.type === 'separator') {
10
- return _jsx("div", { className: 'my-1 h-px bg-sand/15 dark:bg-sand/25', role: 'separator' }, i);
10
+ return _jsx("div", { className: 'my-1 h-px bg-black/5 dark:bg-white/10', role: 'separator' }, i);
11
11
  }
12
12
  if (item.type === 'radioGroup') {
13
13
  return (_jsx("div", { role: 'group', children: item.items.map((rItem) => {
@@ -26,7 +26,7 @@ function MenuItems({ items, radioGroupValue, onClose }) {
26
26
  }
27
27
  if (item.type === 'sub') {
28
28
  const isSubOpen = openSub === i;
29
- return (_jsxs("div", { className: 'relative', children: [_jsxs("button", { type: 'button', role: 'menuitem', "aria-haspopup": 'menu', "aria-expanded": isSubOpen, disabled: item.disabled, onPointerEnter: () => setOpenSub(i), onPointerLeave: () => setOpenSub(null), className: 'flex w-full items-center rounded-lg px-3 py-1.5 text-sm text-text-primary transition-colors hover:bg-sand/10 disabled:opacity-50 dark:text-text-primary dark:hover:bg-sand/15', children: [_jsx("span", { className: 'flex-1', children: item.label }), _jsx(ChevronRight, { size: 14, className: 'text-text-secondary' })] }), isSubOpen && (_jsx("div", { className: 'absolute left-full top-0 z-10 min-w-[12rem] rounded-xl border border-sand/10 bg-white shadow-xl dark:border-sand/20 dark:bg-dark-sand', onPointerEnter: () => setOpenSub(i), onPointerLeave: () => setOpenSub(null), children: _jsx(MenuItems, { items: item.items, onClose: onClose }) }))] }, i));
29
+ return (_jsxs("div", { className: 'relative', children: [_jsxs("button", { type: 'button', role: 'menuitem', "aria-haspopup": 'menu', "aria-expanded": isSubOpen, disabled: item.disabled, onPointerEnter: () => setOpenSub(i), onPointerLeave: () => setOpenSub(null), className: 'flex w-full items-center rounded-lg px-3 py-1.5 text-sm text-text-primary transition-colors hover:bg-sand/10 disabled:opacity-50 dark:text-text-primary dark:hover:bg-sand/15', children: [_jsx("span", { className: 'flex-1', children: item.label }), _jsx(ChevronRight, { size: 14, className: 'text-text-secondary' })] }), isSubOpen && (_jsx("div", { className: 'absolute z-[100] left-full top-0 ml-1 min-w-[12rem] animate-in fade-in slide-in-from-left-2 duration-200 ease-out-expo rounded-[var(--radius-card)] border-0 ring-1 ring-black/5 bg-white/95 backdrop-blur-xl p-1 shadow-[0_8px_32px_rgba(0,0,0,0.08)] outline-none dark:ring-white/10 dark:bg-deep-sea/95 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', onPointerEnter: () => setOpenSub(i), onPointerLeave: () => setOpenSub(null), children: _jsx(MenuItems, { items: item.items, onClose: onClose }) }))] }, i));
30
30
  }
31
31
  // type === 'item'
32
32
  return (_jsxs("button", { type: 'button', role: 'menuitem', disabled: item.disabled, onClick: () => {
@@ -49,10 +49,10 @@ export function Menubar({ className, menus }) {
49
49
  document.addEventListener('pointerdown', handler);
50
50
  return () => document.removeEventListener('pointerdown', handler);
51
51
  }, [activeIndex]);
52
- return (_jsx("div", { ref: barRef, role: 'menubar', className: cn('flex items-center gap-1 rounded-xl border border-sand/10 bg-white/80 px-1 py-1 shadow-sm backdrop-blur-md dark:border-sand/20 dark:bg-dark-sand/80', className), children: menus.map((menu, i) => {
52
+ return (_jsx("div", { ref: barRef, role: 'menubar', className: cn('flex items-center gap-1 rounded-2xl ring-1 ring-black/5 bg-white/80 px-1 py-1 shadow-sm backdrop-blur-md dark:ring-white/10 dark:bg-deep-sea/80', className), children: menus.map((menu, i) => {
53
53
  const isOpen = activeIndex === i;
54
54
  return (_jsxs("div", { className: 'relative', children: [_jsx("button", { type: 'button', role: 'menuitem', "aria-haspopup": 'menu', "aria-expanded": isOpen, onClick: () => setActiveIndex(isOpen ? null : i), className: cn('rounded-lg px-3 py-1.5 text-sm font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea dark:focus-visible:ring-accent-blue', isOpen
55
55
  ? 'bg-sea text-white dark:bg-accent-blue'
56
- : 'text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/15 dark:hover:text-text-primary'), children: menu.trigger }), isOpen && (_jsx("div", { role: 'menu', className: 'absolute left-0 top-full z-50 mt-1 min-w-[14rem] rounded-xl border border-sand/10 bg-white p-1 shadow-xl dark:border-sand/20 dark:bg-dark-sand', children: _jsx(MenuItems, { items: menu.items, onClose: () => setActiveIndex(null) }) }))] }, menu.trigger));
56
+ : 'text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/15 dark:hover:text-text-primary'), children: menu.trigger }), isOpen && (_jsx("div", { role: 'menu', className: 'absolute z-[100] left-0 top-full mt-1 min-w-[14rem] animate-in fade-in slide-in-from-top-2 duration-200 ease-out-expo rounded-[var(--radius-card)] border-0 ring-1 ring-black/5 bg-white/95 backdrop-blur-xl p-1 shadow-[0_8px_32px_rgba(0,0,0,0.08)] outline-none dark:ring-white/10 dark:bg-deep-sea/95 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', children: _jsx(MenuItems, { items: menu.items, onClose: () => setActiveIndex(null) }) }))] }, menu.trigger));
57
57
  }) }));
58
58
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { X } from 'lucide-react';
3
2
  import React from 'react';
4
3
  import { createPortal } from 'react-dom';
4
+ import { DialogCloseButton } from './dialog-close-button.js';
5
5
  import { cn } from '../utils/cn.js';
6
6
  export function Modal({ children, className, isOpen, onClose, title }) {
7
7
  const dialogRef = React.useRef(null);
@@ -21,9 +21,9 @@ export function Modal({ children, className, isOpen, onClose, title }) {
21
21
  if (typeof document === 'undefined' || !isOpen) {
22
22
  return null;
23
23
  }
24
- return createPortal(_jsx("dialog", { ref: dialogRef, className: cn('m-auto w-full max-w-xl rounded-[28px] border border-sand/10 bg-white p-0 text-text-primary shadow-xl outline-none backdrop:bg-black/50 backdrop:backdrop-blur-sm dark:border-sand/20 dark:bg-dark-sand dark:text-text-primary dark:backdrop:bg-black/70', className), onClick: (event) => {
24
+ return createPortal(_jsx("dialog", { ref: dialogRef, className: cn('m-auto w-full max-w-xl animate-in fade-in zoom-in-95 duration-200 ease-out-expo rounded-[var(--radius-card)] border-0 bg-white p-0 text-text-primary shadow-[0_16px_64px_rgba(0,0,0,0.08),0_0_0_1px_rgba(0,0,0,0.02)] outline-none backdrop:bg-deep-sea/40 backdrop:backdrop-blur-md dark:bg-deep-sea dark:shadow-[0_16px_64px_rgba(0,0,0,0.4),0_0_0_1px_rgba(255,255,255,0.08)] dark:text-text-primary dark:backdrop:bg-black/70', className), onClick: (event) => {
25
25
  if (event.target === dialogRef.current) {
26
26
  onClose();
27
27
  }
28
- }, onClose: onClose, children: _jsxs("div", { className: 'p-6 md:p-8', children: [_jsxs("div", { className: 'mb-5 flex items-center justify-between gap-4', children: [_jsx("h3", { className: 'text-2xl text-text-primary dark:text-text-primary', children: title }), _jsx("button", { type: 'button', onClick: onClose, className: 'inline-flex items-center justify-center rounded-full p-2 text-text-secondary transition-colors duration-400 hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/20 dark:hover:text-text-primary', children: _jsx(X, { size: 20 }) })] }), _jsx("div", { children: children })] }) }), document.body);
28
+ }, onClose: onClose, children: _jsxs("div", { className: 'p-6 md:p-8', children: [_jsxs("div", { className: 'mb-5 flex items-center justify-between gap-4', children: [_jsx("h3", { className: 'text-2xl text-text-primary dark:text-text-primary', children: title }), _jsx(DialogCloseButton, { onClick: onClose, "aria-label": 'Close' })] }), _jsx("div", { children: children })] }) }), document.body);
29
29
  }
@@ -31,7 +31,7 @@ export function NavigationMenu({ className, entries, renderLink }) {
31
31
  const isOpen = activeIndex === i;
32
32
  return (_jsxs("div", { className: 'relative', children: [_jsxs("button", { type: 'button', onClick: () => setActiveIndex(isOpen ? null : i), "aria-expanded": isOpen, className: cn('flex items-center gap-1 rounded-lg px-3 py-2 text-sm font-medium transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-sea dark:focus-visible:ring-accent-blue', isOpen
33
33
  ? 'bg-sand/10 text-text-primary dark:bg-sand/15 dark:text-text-primary'
34
- : 'text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/15 dark:hover:text-text-primary'), children: [entry.trigger, _jsx(ChevronDown, { size: 14, className: cn('transition-transform duration-200', isOpen ? 'rotate-180' : 'rotate-0') })] }), isOpen && (_jsx("div", { className: 'absolute left-0 top-full z-50 mt-1.5 min-w-[16rem] rounded-2xl border border-sand/10 bg-white p-2 shadow-xl dark:border-sand/20 dark:bg-dark-sand', children: entry.items.map((item) => (_jsx(React.Fragment, { children: linkRenderer({
34
+ : 'text-text-secondary hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/15 dark:hover:text-text-primary'), children: [entry.trigger, _jsx(ChevronDown, { size: 14, className: cn('transition-transform duration-200', isOpen ? 'rotate-180' : 'rotate-0') })] }), isOpen && (_jsx("div", { className: 'absolute left-0 top-full z-50 mt-1.5 min-w-[16rem] animate-in fade-in slide-in-from-top-2 duration-200 ease-out-expo rounded-[var(--radius-card)] border-0 ring-1 ring-black/5 bg-white/95 backdrop-blur-xl p-2 shadow-[0_8px_32px_rgba(0,0,0,0.08)] dark:ring-white/10 dark:bg-deep-sea/95 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', children: entry.items.map((item) => (_jsx(React.Fragment, { children: linkRenderer({
35
35
  item,
36
36
  className: 'flex flex-col rounded-lg px-3 py-2.5 hover:bg-sand/10 dark:hover:bg-sand/15 transition-colors duration-200',
37
37
  children: (_jsxs(_Fragment, { children: [_jsx("span", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: item.label }), item.description ? (_jsx("span", { className: 'mt-0.5 text-xs leading-relaxed text-text-secondary dark:text-text-secondary', children: item.description })) : null] })),
@@ -7,5 +7,7 @@ export function Panel({ accent, children, className, count, dragHandle, filter,
7
7
  ...(widthValue ? { width: widthValue, minWidth: widthValue } : {}),
8
8
  borderLeftColor: accent ?? 'var(--color-sea)'
9
9
  };
10
- return (_jsxs("div", { className: cn('flex flex-col h-full overflow-hidden rounded-xl border border-white/8 bg-white/2', 'border-l-[3px] transition-all duration-200', isDragging ? 'rotate-1 shadow-2xl' : 'shadow-sm hover:-translate-y-0.5 hover:shadow-md', className), style: accentStyle, children: [_jsxs("div", { className: cn('flex flex-col rounded-t-xl border-b border-white/8 bg-white/3 select-none', 'text-[color:var(--panel-accent,var(--color-sea))]'), children: [_jsxs("div", { className: 'flex items-center gap-3 px-5 py-4', children: [dragHandle ? _jsx("span", { className: 'cursor-grab text-text-secondary active:cursor-grabbing', children: dragHandle }) : null, _jsx("span", { className: 'h-1.5 w-1.5 flex-shrink-0 rounded-full animate-pulse', style: { backgroundColor: accent ?? 'var(--color-sea)' } }), _jsx("span", { className: 'flex-1 text-sm font-bold uppercase tracking-wider', children: title }), count !== undefined ? (_jsx("span", { className: 'rounded-full bg-text-secondary/10 px-2 py-0.5 text-xs font-medium tabular-nums text-text-secondary dark:text-text-secondary', children: count })) : null] }), filter ? _jsx("div", { className: 'px-5 pb-3', children: filter }) : null, toolbar ? (_jsx("div", { className: 'flex items-center justify-center gap-2 border-t border-white/5 bg-white/1 px-5 py-2', children: toolbar })) : null] }), _jsx("div", { className: 'flex-1 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-text-secondary/30 hover:scrollbar-thumb-text-secondary/50', children: children })] }));
10
+ return (_jsxs("div", { className: cn('group flex flex-col h-full min-h-0 overflow-hidden rounded-[var(--radius-card)] bg-white dark:bg-deep-sea/90', 'ring-1 ring-inset ring-black/[0.04] dark:ring-white/[0.08]', 'shadow-[0_2px_10px_rgba(0,0,0,0.02),0_8px_32px_rgba(26,55,77,0.04)] dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)]', 'border-l-4 transition-all duration-300 ease-out-expo', isDragging
11
+ ? 'rotate-1 scale-105 shadow-[0_16px_64px_rgba(26,55,77,0.12)]'
12
+ : 'hover:shadow-[0_8px_32px_rgba(26,55,77,0.08)] dark:hover:shadow-[0_16px_64px_rgba(0,0,0,0.5)]', className), style: accentStyle, children: [_jsxs("div", { className: cn('flex flex-col relative z-10 bg-white/40 dark:bg-deep-sea/40 backdrop-blur-md', 'border-b border-black/[0.04] dark:border-white/[0.08] select-none'), children: [_jsxs("div", { className: 'flex items-center gap-3 px-5 py-4', children: [dragHandle ? (_jsx("span", { className: 'cursor-grab text-black/40 hover:text-black/80 dark:text-white/40 dark:hover:text-white/80 active:cursor-grabbing transition-colors', children: dragHandle })) : null, _jsx("span", { className: 'h-2 w-2 flex-shrink-0 rounded-full shadow-[0_0_8px_currentColor] opacity-80 group-hover:opacity-100 transition-opacity', style: { backgroundColor: accent ?? 'var(--color-sea)', color: accent ?? 'var(--color-sea)' } }), _jsx("span", { className: 'flex-1 text-xs font-bold uppercase tracking-widest text-[color:var(--panel-accent,var(--color-sea))]', children: title }), count !== undefined ? (_jsx("span", { className: 'rounded-full bg-light-sand/50 dark:bg-white/10 px-2.5 py-0.5 text-xs font-semibold tabular-nums text-text-primary ring-1 ring-inset ring-black/5 dark:ring-white/10', children: count })) : null] }), filter ? _jsx("div", { className: 'px-5 pb-4', children: filter }) : null, toolbar ? (_jsx("div", { className: 'flex items-center justify-center gap-2 border-t border-black/[0.04] dark:border-white/[0.04] bg-light-sand/20 dark:bg-white/5 px-5 py-2.5', children: toolbar })) : null] }), _jsx("div", { className: 'flex-1 overflow-y-auto bg-light-sand/10 dark:bg-transparent scrollbar-thin scrollbar-track-transparent scrollbar-thumb-black/10 hover:scrollbar-thumb-black/20 dark:scrollbar-thumb-white/10 dark:hover:scrollbar-thumb-white/20', children: children })] }));
11
13
  }
@@ -87,7 +87,7 @@ export function Popover({ align = 'center', children, className, content, onOpen
87
87
  return () => document.removeEventListener('keydown', handleKey);
88
88
  }, [isOpen]);
89
89
  const panel = isOpen && typeof document !== 'undefined'
90
- ? createPortal(_jsx("div", { ref: panelRef, role: 'dialog', className: cn('absolute z-50 min-w-[14rem] rounded-2xl border border-sand/10 bg-white p-1 shadow-xl outline-none dark:border-sand/20 dark:bg-dark-sand', 'animate-in fade-in-0 zoom-in-95', className), style: { top: coords.top, left: coords.left }, children: content }), document.body)
90
+ ? createPortal(_jsx("div", { ref: panelRef, role: 'dialog', className: cn('absolute z-50 min-w-[14rem] rounded-[var(--radius-card)] border-0 ring-1 ring-black/5 bg-white/95 backdrop-blur-xl p-1 shadow-[0_8px_32px_rgba(0,0,0,0.08)] outline-none dark:ring-white/10 dark:bg-deep-sea/95 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', 'animate-in fade-in-0 zoom-in-95 duration-200 ease-out-expo', className), style: { top: coords.top, left: coords.left }, children: content }), document.body)
91
91
  : null;
92
92
  return (_jsxs(_Fragment, { children: [_jsx("span", { ref: triggerRef, className: 'inline-flex', onClick: () => setOpen(!isOpen), children: children }), panel] }));
93
93
  }
@@ -42,7 +42,7 @@ export function Select({ className, disabled = false, error = false, onChange, o
42
42
  setIsOpen(false);
43
43
  setSearchTerm('');
44
44
  }
45
- }, className: cn('w-full rounded-[18px] border bg-white px-4 py-3 text-left text-text-primary transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-sea dark:bg-dark-sand dark:text-text-primary dark:focus:ring-accent-blue', disabled ? 'cursor-not-allowed opacity-50 bg-sand/10' : 'cursor-pointer hover:border-sea/50 dark:hover:border-accent-blue/50', error ? 'border-terracotta dark:border-terracotta' : 'border-sand/30 dark:border-sand/50', isOpen && 'border-sea ring-2 ring-sea dark:border-accent-blue dark:ring-accent-blue'), children: _jsxs("div", { className: 'flex items-center justify-between gap-3', children: [_jsx("span", { className: selectedOption ? 'text-text-primary dark:text-text-primary' : 'text-text-secondary dark:text-text-secondary', children: selectedOption ? selectedOption.label : placeholder }), _jsx(ChevronDown, { size: 18, className: cn('text-text-secondary transition-transform duration-200 dark:text-text-secondary', isOpen && 'rotate-180') })] }) }), isOpen ? (_jsxs("div", { ref: dropdownRef, className: 'absolute z-50 mt-2 w-full overflow-hidden rounded-[20px] border border-sand/30 bg-white shadow-lg dark:border-sand/50 dark:bg-dark-sand dark:shadow-2xl', children: [options.length > 5 ? (_jsx("div", { className: 'border-b border-sand/20 p-2 dark:border-sand/40', children: _jsx("input", { type: 'text', value: searchTerm, onChange: (event) => setSearchTerm(event.target.value), placeholder: 'Search...', className: 'w-full rounded-lg border border-sand/20 bg-sand/5 px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-1 focus:ring-sea dark:border-sand/30 dark:bg-sand/10 dark:text-text-primary dark:placeholder:text-text-secondary dark:focus:ring-accent-blue', onClick: (event) => event.stopPropagation() }) })) : null, _jsx("div", { className: 'max-h-60 overflow-y-auto py-1', children: filteredOptions.length === 0 ? (_jsx("div", { className: 'px-4 py-3 text-center text-sm text-text-secondary dark:text-text-secondary', children: "No options found" })) : (filteredOptions.map((option) => {
45
+ }, className: cn('w-full rounded-[var(--radius-ui)] border-0 ring-1 ring-inset ring-black/10 bg-light-sand/50 px-4 py-2.5 text-left text-text-primary outline-none transition-all duration-200 hover:bg-white hover:ring-black/20 focus:bg-white focus:ring-2 focus:ring-inset focus:ring-sea dark:bg-deep-sea/50 dark:text-text-primary dark:ring-white/10 dark:hover:bg-deep-sea dark:focus:ring-accent-blue', disabled ? 'cursor-not-allowed opacity-50 bg-sand/10' : 'cursor-pointer', error ? 'ring-terracotta/50 focus:ring-terracotta dark:ring-terracotta/50' : '', isOpen && 'bg-white ring-2 ring-inset ring-sea dark:bg-deep-sea dark:ring-accent-blue'), children: _jsxs("div", { className: 'flex items-center justify-between gap-3', children: [_jsx("span", { className: selectedOption ? 'text-text-primary dark:text-text-primary' : 'text-text-secondary dark:text-text-secondary', children: selectedOption ? selectedOption.label : placeholder }), _jsx(ChevronDown, { size: 18, className: cn('text-text-secondary transition-transform duration-200 dark:text-text-secondary', isOpen && 'rotate-180') })] }) }), isOpen ? (_jsxs("div", { ref: dropdownRef, className: 'absolute z-50 mt-2 w-full overflow-hidden animate-in fade-in slide-in-from-top-2 duration-200 ease-out-expo rounded-[var(--radius-ui)] border-0 ring-1 ring-black/5 bg-white shadow-[0_8px_32px_rgba(0,0,0,0.08)] dark:bg-deep-sea dark:ring-white/10 dark:shadow-[0_8px_32px_rgba(0,0,0,0.3)]', children: [options.length > 5 ? (_jsx("div", { className: 'border-b border-sand/20 p-2 dark:border-sand/40', children: _jsx("input", { type: 'text', value: searchTerm, onChange: (event) => setSearchTerm(event.target.value), placeholder: 'Search...', className: 'w-full rounded-lg border border-sand/20 bg-sand/5 px-3 py-2 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-1 focus:ring-sea dark:border-sand/30 dark:bg-sand/10 dark:text-text-primary dark:placeholder:text-text-secondary dark:focus:ring-accent-blue', onClick: (event) => event.stopPropagation() }) })) : null, _jsx("div", { className: 'max-h-60 overflow-y-auto py-1', children: filteredOptions.length === 0 ? (_jsx("div", { className: 'px-4 py-3 text-center text-sm text-text-secondary dark:text-text-secondary', children: "No options found" })) : (filteredOptions.map((option) => {
46
46
  const isSelected = option.value === value;
47
47
  return (_jsxs("button", { type: 'button', onClick: () => handleSelect(option.value), className: cn('flex w-full items-center justify-between gap-2 px-4 py-2.5 text-left text-sm transition-colors duration-150', isSelected
48
48
  ? 'bg-sea/10 font-medium text-sea dark:bg-accent-blue/10 dark:text-accent-blue'
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ decorative?: boolean;
4
+ orientation?: 'horizontal' | 'vertical';
5
+ }
6
+ export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { cn } from '../utils/cn.js';
4
+ export const Separator = React.forwardRef(function Separator({ className, decorative = true, orientation = 'horizontal', ...props }, ref) {
5
+ return (_jsx("div", { ref: ref, role: decorative ? 'presentation' : 'separator', "aria-orientation": orientation, className: cn('shrink-0 bg-black/5 dark:bg-white/10', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className), ...props }));
6
+ });
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { X } from 'lucide-react';
3
2
  import React from 'react';
4
3
  import { createPortal } from 'react-dom';
4
+ import { DialogCloseButton } from './dialog-close-button.js';
5
5
  import { cn } from '../utils/cn.js';
6
6
  const sideStyles = {
7
7
  right: {
@@ -30,7 +30,9 @@ export function Sheet({ children, className, description, isOpen, onClose, side
30
30
  const { panel, enter, leave } = sideStyles[side];
31
31
  React.useEffect(() => {
32
32
  if (isOpen) {
33
- requestAnimationFrame(() => setVisible(true));
33
+ requestAnimationFrame(() => {
34
+ setVisible(true);
35
+ });
34
36
  }
35
37
  else {
36
38
  setVisible(false);
@@ -49,5 +51,5 @@ export function Sheet({ children, className, description, isOpen, onClose, side
49
51
  }, [isOpen, onClose]);
50
52
  if (typeof document === 'undefined' || !isOpen)
51
53
  return null;
52
- return createPortal(_jsxs("div", { className: 'fixed inset-0 z-50 flex', 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", { role: 'dialog', "aria-modal": 'true', "aria-label": title, className: cn('absolute flex flex-col border border-sand/10 bg-white shadow-2xl transition-transform duration-300 ease-in-out dark:border-sand/20 dark:bg-dark-sand', panel, visible ? enter : leave, (side === 'left' || side === 'right') && 'rounded-none', side === 'top' && 'rounded-b-2xl', side === 'bottom' && 'rounded-t-2xl', className), children: [_jsxs("div", { className: 'flex items-center justify-between border-b border-sand/10 px-6 py-4 dark:border-sand/20', children: [_jsxs("div", { 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("button", { type: 'button', onClick: onClose, className: 'inline-flex items-center justify-center rounded-full p-2 text-text-secondary transition-colors duration-200 hover:bg-sand/10 hover:text-text-primary dark:text-text-secondary dark:hover:bg-sand/20 dark:hover:text-text-primary', "aria-label": 'Close', children: _jsx(X, { size: 18 }) })] }), _jsx("div", { className: 'flex-1 overflow-y-auto p-6', children: children })] })] }), document.body);
54
+ return createPortal(_jsxs("div", { className: 'fixed inset-0 z-50 flex', 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' }), _jsx("div", { role: 'dialog', "aria-modal": 'true', "aria-label": title, className: cn('absolute flex flex-col border border-sand/10 bg-white text-text-primary shadow-2xl outline-none transition-transform duration-300 ease-in-out dark:border-sand/20 dark:bg-dark-sand dark:text-text-primary', panel, visible ? enter : leave, (side === 'left' || side === 'right') && 'rounded-none', side === 'top' && 'rounded-b-2xl', side === 'bottom' && 'rounded-t-2xl', className), children: _jsxs("div", { className: 'flex flex-1 flex-col p-6 md:p-8', children: [title || description ? (_jsxs("div", { className: 'mb-5 flex items-start justify-between gap-4', children: [_jsxs("div", { className: 'min-w-0 flex-1', children: [title ? _jsx("h2", { className: 'text-2xl text-text-primary dark:text-text-primary', children: title }) : null, description ? _jsx("p", { className: 'mt-1.5 text-sm leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] }), _jsx(DialogCloseButton, { onClick: onClose, "aria-label": 'Close' })] })) : (_jsx("div", { className: 'mb-5 flex justify-end', children: _jsx(DialogCloseButton, { onClick: onClose, "aria-label": 'Close' }) })), _jsx("div", { className: 'flex-1 overflow-y-auto', children: children })] }) })] }), document.body);
53
55
  }
@@ -6,12 +6,12 @@ const variantClasses = {
6
6
  dot: 'bg-emerald-500 shadow-[0_0_0_2px_rgba(16,185,129,0.2),0_0_8px_rgba(16,185,129,0.4)]'
7
7
  },
8
8
  offline: {
9
- badge: 'bg-red-500/10 border-red-500/20 text-red-500 dark:bg-red-500/10 dark:border-red-500/20 dark:text-red-400',
10
- dot: 'bg-red-500 shadow-[0_0_0_2px_rgba(239,68,68,0.2),0_0_8px_rgba(239,68,68,0.4)]'
9
+ badge: 'bg-terracotta/10 border-terracotta/20 text-terracotta dark:bg-terracotta/10 dark:border-terracotta/20 dark:text-terracotta',
10
+ dot: 'bg-terracotta shadow-[0_0_0_2px_rgba(166,93,87,0.2),0_0_8px_rgba(166,93,87,0.4)]'
11
11
  },
12
12
  warning: {
13
- badge: 'bg-amber-500/10 border-amber-500/20 text-amber-600 dark:bg-amber-500/10 dark:border-amber-500/20 dark:text-amber-400',
14
- dot: 'bg-amber-500 shadow-[0_0_0_2px_rgba(245,158,11,0.2),0_0_8px_rgba(245,158,11,0.4)]'
13
+ badge: 'bg-desert/10 border-desert/20 text-desert dark:bg-desert/10 dark:border-desert/20 dark:text-desert',
14
+ dot: 'bg-desert shadow-[0_0_0_2px_rgba(193,129,77,0.2),0_0_8px_rgba(193,129,77,0.4)]'
15
15
  },
16
16
  info: {
17
17
  badge: 'bg-sea/10 border-sea/20 text-sea dark:bg-accent-blue/10 dark:border-accent-blue/20 dark:text-accent-blue',
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ type TextareaSize = 'sm' | 'md' | 'lg';
3
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ error?: boolean;
5
+ textareaSize?: TextareaSize;
6
+ }
7
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
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: 'min-h-24 px-3 py-2 text-sm',
6
+ md: 'min-h-28 px-4 py-3 text-sm',
7
+ lg: 'min-h-32 px-4 py-3 text-base'
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-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', 'resize-y', error ? 'ring-terracotta/50 focus:ring-terracotta dark:ring-terracotta/50' : '', sizeClasses[textareaSize], className), ...props }));
11
+ });
package/dist/index.d.ts CHANGED
@@ -9,9 +9,11 @@ export * from './components/alert-dialog';
9
9
  export * from './components/avatar';
10
10
  export * from './components/breadcrumb';
11
11
  export * from './components/date-picker';
12
+ export * from './components/dialog-close-button';
12
13
  export * from './components/drawer';
13
14
  export * from './components/empty';
14
15
  export * from './components/hover-card';
16
+ export * from './components/input';
15
17
  export * from './components/kbd';
16
18
  export * from './components/menubar';
17
19
  export * from './components/navigation-menu';
@@ -19,11 +21,14 @@ export * from './components/otp-input';
19
21
  export * from './components/popover';
20
22
  export * from './components/progress';
21
23
  export * from './components/radio-group';
24
+ export * from './components/checkbox';
22
25
  export * from './components/scroll-area';
26
+ export * from './components/separator';
23
27
  export * from './components/sheet';
24
28
  export * from './components/slider';
25
29
  export * from './components/sonner';
26
30
  export * from './components/switch';
31
+ export * from './components/textarea';
27
32
  export * from './components/toggle';
28
33
  export * from './components/toggle-group';
29
34
  export * from './components/tooltip';
@@ -40,6 +45,7 @@ export * from './components/pagination';
40
45
  export * from './components/collection-filters';
41
46
  export * from './components/command-spotlight';
42
47
  export * from './components/select';
48
+ export * from './components/file-input';
43
49
  export * from './components/section-header';
44
50
  export * from './assets/logo';
45
51
  export * from './components/panel';
package/dist/index.js CHANGED
@@ -9,9 +9,11 @@ export * from './components/alert-dialog.js';
9
9
  export * from './components/avatar.js';
10
10
  export * from './components/breadcrumb.js';
11
11
  export * from './components/date-picker.js';
12
+ export * from './components/dialog-close-button.js';
12
13
  export * from './components/drawer.js';
13
14
  export * from './components/empty.js';
14
15
  export * from './components/hover-card.js';
16
+ export * from './components/input.js';
15
17
  export * from './components/kbd.js';
16
18
  export * from './components/menubar.js';
17
19
  export * from './components/navigation-menu.js';
@@ -19,11 +21,14 @@ export * from './components/otp-input.js';
19
21
  export * from './components/popover.js';
20
22
  export * from './components/progress.js';
21
23
  export * from './components/radio-group.js';
24
+ export * from './components/checkbox.js';
22
25
  export * from './components/scroll-area.js';
26
+ export * from './components/separator.js';
23
27
  export * from './components/sheet.js';
24
28
  export * from './components/slider.js';
25
29
  export * from './components/sonner.js';
26
30
  export * from './components/switch.js';
31
+ export * from './components/textarea.js';
27
32
  export * from './components/toggle.js';
28
33
  export * from './components/toggle-group.js';
29
34
  export * from './components/tooltip.js';
@@ -40,6 +45,7 @@ export * from './components/pagination.js';
40
45
  export * from './components/collection-filters.js';
41
46
  export * from './components/command-spotlight.js';
42
47
  export * from './components/select.js';
48
+ export * from './components/file-input.js';
43
49
  export * from './components/section-header.js';
44
50
  export * from './assets/logo.js';
45
51
  export * from './components/panel.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 AppShell({ children, className, contentClassName, footer, header, offsetHeader = true }) {
4
- return (_jsxs("div", { className: cn('min-h-screen flex flex-col bg-light-sand text-text-primary dark:bg-deep-sea dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0', offsetHeader && 'pt-20', contentClassName), children: _jsx("div", { className: 'flex-1 flex flex-col min-h-0', children: children }) }), footer] }));
4
+ return (_jsxs("div", { className: cn('min-h-screen flex flex-col bg-white text-text-primary dark:bg-deep-sea dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0', offsetHeader && 'pt-20', contentClassName), children: _jsx("div", { className: 'flex-1 flex flex-col min-h-0', children: children }) }), footer] }));
5
5
  }
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Menu, X } from 'lucide-react';
2
3
  import React from 'react';
3
4
  import { BrandLockup } from '../components/brand-lockup.js';
5
+ import { IconButton } from '../components/icon-button.js';
4
6
  import { NavMenu } from '../components/nav-menu.js';
5
7
  import { cn } from '../utils/cn.js';
6
8
  export function Header({ actions, brand, className, fullWidth = false, mobileActions, navigation, renderLink }) {
7
9
  const [mobileMenuOpen, setMobileMenuOpen] = React.useState(false);
8
- return (_jsxs("header", { className: cn('fixed top-0 z-50 w-full bg-white/90 font-[family-name:var(--font-header)] backdrop-blur-2xl shadow-[0_1px_3px_0_rgb(0,0,0,0.02)] dark:bg-dark-sand/95 dark:shadow-[0_1px_3px_0_rgb(0,0,0,0.3)]', className), children: [_jsx("div", { className: cn(fullWidth ? 'w-full px-4' : 'container mx-auto px-4'), children: _jsxs("div", { className: 'flex h-20 items-center justify-between gap-6', 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("button", { className: 'group md:hidden', "aria-label": 'Toggle navigation menu', type: 'button', onClick: () => setMobileMenuOpen((value) => !value), children: _jsxs("div", { className: 'flex h-5 w-6 flex-col justify-between', children: [_jsx("span", { className: cn('h-px w-full bg-text-primary transition-all duration-400', mobileMenuOpen && 'translate-y-2 rotate-45') }), _jsx("span", { className: cn('h-px w-full bg-text-primary transition-all duration-400', mobileMenuOpen && 'opacity-0') }), _jsx("span", { className: cn('h-px w-full bg-text-primary transition-all duration-400', mobileMenuOpen && '-translate-y-2 -rotate-45') })] }) })] }) }), _jsx("div", { className: cn('md:hidden absolute left-0 top-20 w-full origin-top overflow-hidden border-t border-sand/10 bg-white/95 shadow-lg backdrop-blur-xl transition-all duration-400 dark:bg-sand/95', 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 })] }) }), _jsx("div", { className: 'h-px w-full bg-gradient-to-r from-transparent via-sunset/30 to-transparent' })] }));
10
+ return (_jsxs("header", { className: cn('fixed top-0 z-50 w-full bg-white/90 font-header backdrop-blur-2xl shadow-[0_1px_3px_0_rgb(0,0,0,0.02)] dark:bg-dark-sand/95 dark:shadow-[0_1px_3px_0_rgb(0,0,0,0.3)]', className), children: [_jsx("div", { className: cn(fullWidth ? 'w-full px-4' : 'container mx-auto px-4'), children: _jsxs("div", { className: 'flex h-20 items-center justify-between gap-6', 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, { className: 'md:hidden h-10 w-10 border-transparent bg-transparent p-0 shadow-none backdrop-blur-none hover:translate-y-0 hover:scale-100 hover:bg-sand/10 dark:border-transparent dark:bg-transparent dark:hover:bg-sand/15', "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('md:hidden absolute left-0 top-20 w-full origin-top overflow-hidden border-t border-sand/10 bg-white/95 shadow-lg backdrop-blur-xl transition-all duration-400 dark:bg-sand/95', 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 })] }) }), _jsx("div", { className: 'h-px w-full bg-linear-to-r from-transparent via-sunset/30 to-transparent' })] }));
9
11
  }
@@ -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 function PanelLayout({ children, className, mode = 'scroll', padding = 'p-6' }) {
5
- return (_jsx("div", { className: cn('flex flex-1 min-h-0', mode === 'scroll' ? 'overflow-x-auto' : 'overflow-x-visible', padding, className), children: _jsx("div", { className: cn('flex h-full gap-5', mode === 'scroll' ? 'flex-nowrap' : 'flex-wrap flex-1'), children: React.Children.map(children, (child) => (_jsx("div", { className: cn('flex flex-col h-full', mode === 'expand' && 'flex-1 min-w-0'), children: child }))) }) }));
5
+ return (_jsx("div", { className: cn('flex flex-1 min-h-0', mode === 'scroll' ? 'overflow-x-auto' : 'overflow-x-visible', padding, className), children: _jsx("div", { className: cn('flex h-full min-h-0 gap-5', mode === 'scroll' ? 'flex-nowrap' : 'flex-wrap flex-1'), children: React.Children.map(children, (child) => (_jsx("div", { className: cn('flex flex-col h-full min-h-0', mode === 'expand' && 'flex-1 min-w-0'), children: child }))) }) }));
6
6
  }
@@ -0,0 +1 @@
1
+ export declare const LoginScreen: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Card } from './components/card.js';
3
+ import { Button } from './components/button.js';
4
+ import { Input } from './components/input.js';
5
+ import { Label } from './components/label.js';
6
+ export const LoginScreen = () => {
7
+ return (_jsx("div", { className: 'flex min-h-screen items-center justify-center bg-white dark:bg-deep-sea p-4', children: _jsx(Card, { className: 'w-full max-w-sm p-6', children: _jsxs("div", { className: 'space-y-6', children: [_jsxs("div", { className: 'space-y-1.5 text-center', children: [_jsx("h2", { className: 'text-2xl font-semibold tracking-tight text-text-primary dark:text-text-primary', children: "Welcome Back" }), _jsx("p", { className: 'text-sm text-text-secondary dark:text-text-secondary', children: "Sign in to your account to continue." })] }), _jsxs("form", { className: 'space-y-4', onSubmit: (e) => {
8
+ e.preventDefault();
9
+ }, children: [_jsxs("div", { className: 'space-y-2', children: [_jsx(Label, { htmlFor: 'email', children: "Email Address" }), _jsx(Input, { id: 'email', type: 'email', placeholder: 'jane@example.com', required: true })] }), _jsxs("div", { className: 'space-y-2', children: [_jsxs("div", { className: 'flex items-center justify-between', children: [_jsx(Label, { htmlFor: 'password', children: "Password" }), _jsx("a", { href: '#', className: 'text-sm font-medium text-sea hover:underline dark:text-accent-blue', children: "Forgot password?" })] }), _jsx(Input, { id: 'password', type: 'password', required: true }), _jsx("p", { className: 'text-xs text-terracotta mt-1', children: "This field is required." })] }), _jsx(Button, { className: 'w-full mt-2', type: 'submit', children: "Sign In" })] }), _jsxs("div", { className: 'text-center text-sm text-text-secondary dark:text-text-secondary', children: ["Don't have an account?", ' ', _jsx("a", { href: '#', className: 'font-medium text-sea hover:underline dark:text-accent-blue', children: "Sign up" })] })] }) }) }));
10
+ };