@gaulatti/bleecker 0.1.1 → 0.1.6

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 (43) hide show
  1. package/dist/components/accordion.d.ts +14 -0
  2. package/dist/components/accordion.js +11 -0
  3. package/dist/components/bauhaus-background.d.ts +8 -0
  4. package/dist/components/bauhaus-background.js +25 -0
  5. package/dist/components/brand-lockup.js +3 -3
  6. package/dist/components/button.js +1 -1
  7. package/dist/components/card.js +1 -1
  8. package/dist/components/collection-filters.d.ts +24 -0
  9. package/dist/components/collection-filters.js +24 -0
  10. package/dist/components/header-select.d.ts +13 -0
  11. package/dist/components/header-select.js +5 -0
  12. package/dist/components/hero-carousel.d.ts +31 -0
  13. package/dist/components/hero-carousel.js +76 -0
  14. package/dist/components/icon-badge.d.ts +5 -0
  15. package/dist/components/icon-badge.js +9 -0
  16. package/dist/components/icon-button.js +1 -1
  17. package/dist/components/loading-spinner.d.ts +5 -0
  18. package/dist/components/loading-spinner.js +10 -0
  19. package/dist/components/media-library.d.ts +23 -0
  20. package/dist/components/media-library.js +21 -0
  21. package/dist/components/modal.d.ts +9 -0
  22. package/dist/components/modal.js +29 -0
  23. package/dist/components/nav-menu.js +1 -1
  24. package/dist/components/pagination.d.ts +9 -0
  25. package/dist/components/pagination.js +23 -0
  26. package/dist/components/section-header.js +1 -1
  27. package/dist/components/select.d.ts +14 -0
  28. package/dist/components/select.js +51 -0
  29. package/dist/components/sortable-table-header.d.ts +14 -0
  30. package/dist/components/sortable-table-header.js +10 -0
  31. package/dist/components/tabs.d.ts +11 -0
  32. package/dist/components/tabs.js +10 -0
  33. package/dist/components/theme-toggle.js +2 -2
  34. package/dist/index.d.ts +13 -0
  35. package/dist/index.js +27 -14
  36. package/dist/layout/app-shell.js +1 -1
  37. package/dist/layout/footer.d.ts +1 -1
  38. package/dist/layout/footer.js +24 -7
  39. package/dist/layout/header.js +4 -4
  40. package/dist/theme/theme-provider.js +1 -1
  41. package/package.json +16 -6
  42. package/src/styles/compiled.css +2 -2
  43. package/src/styles/global.css +227 -0
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface AccordionItem {
3
+ actions?: React.ReactNode;
4
+ content: React.ReactNode;
5
+ id: string;
6
+ subtitle?: React.ReactNode;
7
+ title: React.ReactNode;
8
+ }
9
+ export interface AccordionProps {
10
+ className?: string;
11
+ defaultExpandedId?: string | null;
12
+ items: AccordionItem[];
13
+ }
14
+ export declare function Accordion({ className, defaultExpandedId, items }: AccordionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronDown, ChevronRight } from 'lucide-react';
3
+ import React from 'react';
4
+ import { cn } from '../utils/cn.js';
5
+ export function Accordion({ className, defaultExpandedId = null, items }) {
6
+ const [expandedId, setExpandedId] = React.useState(defaultExpandedId);
7
+ return (_jsx("div", { className: cn('overflow-hidden rounded-xl border border-sand/10 bg-white shadow-sm dark:border-sand/20 dark:bg-sand/10', className), children: _jsx("ul", { className: 'divide-y divide-sand/10 dark:divide-sand/20', children: items.map((item) => {
8
+ const isExpanded = expandedId === item.id;
9
+ return (_jsxs("li", { children: [_jsxs("div", { className: 'flex cursor-pointer items-center justify-between px-4 py-4 transition-colors hover:bg-sand/5 dark:hover:bg-sand/10 sm:px-6', onClick: () => setExpandedId(isExpanded ? null : item.id), children: [_jsxs("div", { className: 'flex min-w-0 items-center gap-3', children: [isExpanded ? (_jsx(ChevronDown, { size: 16, className: 'flex-shrink-0 text-text-secondary' })) : (_jsx(ChevronRight, { size: 16, className: 'flex-shrink-0 text-text-secondary' })), _jsxs("div", { className: 'min-w-0', children: [_jsx("div", { className: 'text-sm font-medium text-text-primary dark:text-text-primary', children: item.title }), item.subtitle ? _jsx("div", { className: 'mt-0.5 text-xs text-text-secondary dark:text-text-secondary', children: item.subtitle }) : null] })] }), item.actions ? (_jsx("div", { className: 'ml-4 flex items-center gap-2', onClick: (event) => event.stopPropagation(), children: item.actions })) : null] }), isExpanded ? _jsx("div", { className: 'bg-sand/5 dark:bg-sand/5', children: item.content }) : null] }, item.id));
10
+ }) }) }));
11
+ }
@@ -0,0 +1,8 @@
1
+ export type BauhausBackgroundType = 'nazca' | 'autostrada' | 'pompeii' | 'monitor';
2
+ export interface BauhausBackgroundProps {
3
+ className?: string;
4
+ defaultImageUrl?: string;
5
+ imageUrl?: string;
6
+ type: BauhausBackgroundType;
7
+ }
8
+ export declare function BauhausBackground({ className, defaultImageUrl, imageUrl, type }: BauhausBackgroundProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const patternConfig = {
4
+ nazca: {
5
+ bgClassName: 'bg-accent-bronze',
6
+ pattern: 'circles'
7
+ },
8
+ autostrada: {
9
+ bgClassName: 'bg-accent-oxblood',
10
+ pattern: 'lines'
11
+ },
12
+ pompeii: {
13
+ bgClassName: 'bg-accent-bronze',
14
+ pattern: 'squares'
15
+ },
16
+ monitor: {
17
+ bgClassName: 'bg-accent-oxblood',
18
+ pattern: 'circles'
19
+ }
20
+ };
21
+ export function BauhausBackground({ className, defaultImageUrl = '/hero/pompeii.avif', imageUrl, type }) {
22
+ const { bgClassName, pattern } = patternConfig[type];
23
+ const resolvedImageUrl = imageUrl ?? defaultImageUrl;
24
+ return (_jsxs("div", { className: cn('relative h-full w-full overflow-hidden', className), children: [_jsxs("div", { className: 'absolute inset-0', children: [_jsx("img", { src: resolvedImageUrl, alt: '', className: 'h-full w-full object-cover' }), _jsx("div", { className: 'absolute inset-0 bg-gradient-to-t from-black/30 to-transparent mix-blend-multiply' })] }), _jsxs("div", { className: cn('absolute inset-0 mix-blend-soft-light', bgClassName), children: [pattern === 'circles' ? (_jsxs("div", { className: 'absolute inset-0', children: [_jsx("div", { className: 'shape-rotate absolute left-1/4 top-1/4 h-1/2 w-1/2 rounded-full border-8 border-white' }), _jsx("div", { className: 'shape-rotate absolute left-1/3 top-1/3 h-1/3 w-1/3 rounded-full border-4 border-white [animation-direction:reverse]' })] })) : null, pattern === 'lines' ? (_jsx("div", { className: 'absolute inset-0', children: _jsx("div", { className: 'grid h-full grid-cols-6', children: Array.from({ length: 6 }).map((_, index) => (_jsx("div", { className: 'h-full border-l-2 border-white transition-transform duration-300 hover:rotate-3', style: { transitionDelay: `${index * 100}ms` } }, `line-${index}`))) }) })) : null, pattern === 'squares' ? (_jsx("div", { className: 'absolute inset-0', children: _jsx("div", { className: 'grid h-full grid-cols-3 grid-rows-3 gap-4 p-4', children: Array.from({ length: 9 }).map((_, index) => (_jsx("div", { className: 'border-2 border-white transition-transform duration-300 hover:rotate-3' }, `square-${index}`))) }) })) : null] })] }));
25
+ }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { renderDefaultLink } from './nav-menu';
3
- import { cn } from '../utils/cn';
2
+ import { renderDefaultLink } from './nav-menu.js';
3
+ import { cn } from '../utils/cn.js';
4
4
  export function BrandLockup({ className, href, logoAlt, logoSrc, name, renderLink }) {
5
5
  const linkRenderer = renderLink ?? renderDefaultLink;
6
6
  return (_jsx(_Fragment, { children: linkRenderer({
@@ -9,6 +9,6 @@ export function BrandLockup({ className, href, logoAlt, logoSrc, name, renderLin
9
9
  label: name
10
10
  },
11
11
  className: cn('group inline-flex items-center gap-4 transition-all duration-400', className),
12
- children: (_jsxs(_Fragment, { children: [_jsx("img", { src: logoSrc, alt: logoAlt, className: 'h-8 w-auto opacity-90 transition-opacity duration-400 group-hover:opacity-100 dark:invert' }), _jsx("div", { className: 'h-8 w-px bg-gradient-to-b from-sunset/0 via-sunset to-sunset/0' }), _jsx("span", { className: 'text-xl font-bold tracking-tight text-text-primary dark:text-text-primary', children: name })] }))
12
+ children: (_jsxs(_Fragment, { children: [_jsx("img", { src: logoSrc, alt: logoAlt, className: 'h-8 w-auto opacity-90 transition-opacity duration-400 group-hover:opacity-100 dark:invert' }), _jsx("div", { className: 'h-8 w-px bg-gradient-to-b from-sunset/0 via-sunset to-sunset/0' }), _jsx("span", { className: 'font-[family-name:var(--font-header)] text-xl font-bold tracking-tight text-text-primary dark:text-text-primary', children: name })] }))
13
13
  }) }));
14
14
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import { cn } from '../utils/cn';
3
+ import { cn } from '../utils/cn.js';
4
4
  const variantClasses = {
5
5
  primary: 'bg-sea text-white hover:bg-desert border-transparent',
6
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',
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../utils/cn';
2
+ import { cn } from '../utils/cn.js';
3
3
  export function Card({ className, ...props }) {
4
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 }));
5
5
  }
@@ -0,0 +1,24 @@
1
+ import type { SortState } from './sortable-table-header';
2
+ export interface CollectionFilterOption {
3
+ field: string;
4
+ label: string;
5
+ options?: Array<{
6
+ label: string;
7
+ value: string;
8
+ }>;
9
+ type: 'select' | 'boolean' | 'date';
10
+ }
11
+ export interface CollectionSortOption {
12
+ field: string;
13
+ label: string;
14
+ }
15
+ export interface CollectionFiltersProps {
16
+ className?: string;
17
+ currentFilters: Record<string, boolean | string>;
18
+ currentSort: SortState;
19
+ filterOptions: CollectionFilterOption[];
20
+ onFilterChange: (filters: Record<string, boolean | string>) => void;
21
+ onSortChange: (sort: SortState) => void;
22
+ sortOptions: CollectionSortOption[];
23
+ }
24
+ export declare function CollectionFilters({ className, currentFilters, currentSort, filterOptions, onFilterChange, onSortChange, sortOptions }: CollectionFiltersProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowUpDown, Filter, X } from 'lucide-react';
3
+ import React from 'react';
4
+ import { Select } from './select.js';
5
+ import { cn } from '../utils/cn.js';
6
+ export function CollectionFilters({ className, currentFilters, currentSort, filterOptions, onFilterChange, onSortChange, sortOptions }) {
7
+ const [showFilters, setShowFilters] = React.useState(false);
8
+ const activeFilterCount = Object.keys(currentFilters).length;
9
+ const handleFilterChange = (field, value) => {
10
+ const nextFilters = { ...currentFilters };
11
+ if (value === '' || value === null || value === undefined) {
12
+ delete nextFilters[field];
13
+ }
14
+ else {
15
+ nextFilters[field] = value;
16
+ }
17
+ onFilterChange(nextFilters);
18
+ };
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: [
20
+ { label: 'All', value: '' },
21
+ { label: 'Yes', value: 'true' },
22
+ { label: 'No', value: 'false' }
23
+ ] })) : null, option.type === 'date' ? (_jsx("input", { type: 'date', value: currentFilters[option.field] || '', onChange: (event) => handleFilterChange(option.field, event.target.value), className: 'w-full rounded-lg border border-sand/30 bg-white px-3 py-2 text-text-primary outline-none focus:ring-2 focus:ring-sea dark:border-sand/50 dark:bg-sand/5 dark:text-text-primary dark:focus:ring-accent-blue' })) : null] }, option.field))) }) })) : null] }));
24
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface HeaderSelectOption {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export interface HeaderSelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> {
7
+ icon?: React.ReactNode;
8
+ onChange: (value: string) => void;
9
+ options: HeaderSelectOption[];
10
+ placeholder?: string;
11
+ wrapperClassName?: string;
12
+ }
13
+ export declare function HeaderSelect({ className, disabled, icon, onChange, options, placeholder, value, wrapperClassName, ...props }: HeaderSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ export function HeaderSelect({ className, disabled, icon, onChange, options, placeholder = 'Select option', value, wrapperClassName, ...props }) {
4
+ return (_jsxs("div", { className: cn('inline-flex items-center gap-1.5 rounded-full border border-sand/20 bg-white/35 px-3 py-1.5 shadow-sm backdrop-blur-md dark:border-sand/70 dark:bg-sand/25', disabled && 'opacity-50', wrapperClassName), children: [icon, _jsxs("select", { value: value, disabled: disabled, onChange: (event) => onChange(event.target.value), className: cn('max-w-[140px] cursor-pointer bg-transparent text-sm text-text-primary focus:outline-none dark:text-text-primary', className), ...props, children: [_jsx("option", { value: '', children: placeholder }), options.map((option) => (_jsx("option", { value: option.value, children: option.label }, option.value)))] })] }));
5
+ }
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ export type HeroCarouselItemKind = 'post' | 'project';
3
+ export interface HeroCarouselItem {
4
+ ctaLabel?: string;
5
+ description: string;
6
+ external?: boolean;
7
+ href: string;
8
+ id?: string;
9
+ imageUrl?: string;
10
+ kind?: HeroCarouselItemKind;
11
+ tags?: string[];
12
+ title: string;
13
+ }
14
+ export interface HeroCarouselRenderLinkProps {
15
+ ariaLabel: string;
16
+ children: React.ReactNode;
17
+ className?: string;
18
+ item: HeroCarouselItem;
19
+ }
20
+ export type HeroCarouselRenderLink = (props: HeroCarouselRenderLinkProps) => React.ReactNode;
21
+ export interface HeroCarouselProps {
22
+ autoAdvanceMs?: number;
23
+ className?: string;
24
+ defaultBackgroundClassName?: string;
25
+ emptyState?: React.ReactNode;
26
+ items: HeroCarouselItem[];
27
+ renderLink?: HeroCarouselRenderLink;
28
+ showControls?: boolean;
29
+ showIndicators?: boolean;
30
+ }
31
+ export declare function HeroCarousel({ autoAdvanceMs, className, defaultBackgroundClassName: fallbackBackgroundClassName, emptyState, items, renderLink, showControls, showIndicators }: HeroCarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { cn } from '../utils/cn.js';
4
+ const defaultBackgroundClassName = 'bg-gradient-to-r from-deep-sea via-dusk to-accent-oxblood';
5
+ function defaultRenderLink({ ariaLabel, children, className, item }) {
6
+ return (_jsx("a", { href: item.href, "aria-label": ariaLabel, className: className, rel: item.external ? 'noreferrer noopener' : undefined, target: item.external ? '_blank' : undefined, children: children }));
7
+ }
8
+ function getAriaLabel(item) {
9
+ const kind = item.kind ?? 'project';
10
+ if (kind === 'post') {
11
+ return `Read article: ${item.title}`;
12
+ }
13
+ return `View project: ${item.title}`;
14
+ }
15
+ function getKicker(item) {
16
+ if (item.kind === 'post') {
17
+ return 'From the Blog';
18
+ }
19
+ return 'Featured Project';
20
+ }
21
+ function getCtaLabel(item) {
22
+ if (item.ctaLabel) {
23
+ return item.ctaLabel;
24
+ }
25
+ if (item.kind === 'post') {
26
+ return 'Read Article';
27
+ }
28
+ return 'View Project';
29
+ }
30
+ export function HeroCarousel({ autoAdvanceMs = 5000, className, defaultBackgroundClassName: fallbackBackgroundClassName = defaultBackgroundClassName, emptyState, items, renderLink, showControls = true, showIndicators = true }) {
31
+ const [currentSlide, setCurrentSlide] = React.useState(0);
32
+ const [isPaused, setIsPaused] = React.useState(false);
33
+ const linkRenderer = renderLink ?? defaultRenderLink;
34
+ const hasMultipleSlides = items.length > 1;
35
+ React.useEffect(() => {
36
+ if (!hasMultipleSlides || isPaused) {
37
+ return undefined;
38
+ }
39
+ const interval = window.setInterval(() => {
40
+ setCurrentSlide((previous) => (previous + 1) % items.length);
41
+ }, autoAdvanceMs);
42
+ return () => window.clearInterval(interval);
43
+ }, [autoAdvanceMs, hasMultipleSlides, isPaused, items.length]);
44
+ React.useEffect(() => {
45
+ if (!hasMultipleSlides) {
46
+ return undefined;
47
+ }
48
+ const handleKeydown = (event) => {
49
+ if (document.activeElement?.tagName === 'INPUT' || document.activeElement?.tagName === 'TEXTAREA') {
50
+ return;
51
+ }
52
+ if (event.key === 'ArrowLeft') {
53
+ setCurrentSlide((previous) => (previous - 1 + items.length) % items.length);
54
+ }
55
+ else if (event.key === 'ArrowRight') {
56
+ setCurrentSlide((previous) => (previous + 1) % items.length);
57
+ }
58
+ };
59
+ document.addEventListener('keydown', handleKeydown);
60
+ return () => document.removeEventListener('keydown', handleKeydown);
61
+ }, [hasMultipleSlides, items.length]);
62
+ 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" }) }) }));
64
+ }
65
+ 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: {
67
+ 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
+ } }), _jsx("div", { className: 'absolute inset-0 mix-blend-overlay opacity-[0.07]', style: {
69
+ backgroundImage: 'repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0px, rgba(255,255,255,0.28) 1px, transparent 1px, transparent 3px)'
70
+ } }), _jsx("div", { className: 'absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(0,0,0,0.18)_0%,rgba(0,0,0,0.44)_55%,rgba(0,0,0,0.72)_100%)]' })] })) : (_jsx("div", { className: cn('h-full w-full', fallbackBackgroundClassName) })) }), _jsx("div", { className: 'relative mx-auto h-full max-w-7xl px-4 sm:px-6 lg:px-8', children: linkRenderer({
71
+ item,
72
+ ariaLabel: getAriaLabel(item),
73
+ 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
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface IconBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ size?: 'md' | 'lg';
4
+ }
5
+ export declare function IconBadge({ children, className, size, ...props }: IconBadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const sizeClassNames = {
4
+ md: 'h-14 w-14',
5
+ lg: 'h-16 w-16'
6
+ };
7
+ export function IconBadge({ children, className, size = 'lg', ...props }) {
8
+ return (_jsx("div", { className: cn('flex items-center justify-center bg-black text-white dark:bg-white dark:text-black', sizeClassNames[size], className), ...props, children: children }));
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import { cn } from '../utils/cn';
3
+ import { cn } from '../utils/cn.js';
4
4
  export const IconButton = React.forwardRef(function IconButton({ className, type = 'button', ...props }, ref) {
5
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 }));
6
6
  });
@@ -0,0 +1,5 @@
1
+ export interface LoadingSpinnerProps {
2
+ className?: string;
3
+ size?: 'sm' | 'md' | 'lg';
4
+ }
5
+ export declare function LoadingSpinner({ className, size }: LoadingSpinnerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const sizeClasses = {
4
+ sm: 'h-4 w-4 border-2',
5
+ md: 'h-8 w-8 border-2',
6
+ lg: 'h-12 w-12 border-[3px]'
7
+ };
8
+ export function LoadingSpinner({ className, size = 'md' }) {
9
+ return (_jsx("div", { className: cn('flex items-center justify-center', className), children: _jsx("div", { className: cn(sizeClasses[size], 'animate-spin rounded-full border-sea border-t-transparent dark:border-accent-blue dark:border-t-transparent') }) }));
10
+ }
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export interface MediaLibraryItem {
3
+ alt?: string;
4
+ createdAt?: string;
5
+ filename: string;
6
+ id: string;
7
+ thumbnailUrl?: string;
8
+ url?: string;
9
+ }
10
+ export interface MediaLibraryProps {
11
+ actions?: React.ReactNode;
12
+ className?: string;
13
+ emptyMessage?: string;
14
+ filterSlot?: React.ReactNode;
15
+ items: MediaLibraryItem[];
16
+ onCopy?: (text: string) => void;
17
+ onDelete?: (id: string) => void;
18
+ onSearchTermChange: (value: string) => void;
19
+ searchPlaceholder?: string;
20
+ searchTerm: string;
21
+ title: string;
22
+ }
23
+ export declare function MediaLibrary({ actions, className, emptyMessage, filterSlot, items, onCopy, onDelete, onSearchTermChange, searchPlaceholder, searchTerm, title }: MediaLibraryProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Copy, Search, Trash2 } from 'lucide-react';
3
+ import React from 'react';
4
+ import { Modal } from './modal.js';
5
+ import { cn } from '../utils/cn.js';
6
+ export function MediaLibrary({ actions, className, emptyMessage = 'No media found.', filterSlot, items, onCopy, onDelete, onSearchTermChange, searchPlaceholder = 'Search media...', searchTerm, title }) {
7
+ const [selectedMedia, setSelectedMedia] = React.useState(null);
8
+ const handleCopy = (text) => {
9
+ if (onCopy) {
10
+ onCopy(text);
11
+ return;
12
+ }
13
+ if (typeof navigator !== 'undefined') {
14
+ void navigator.clipboard.writeText(text);
15
+ }
16
+ };
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
+ event.stopPropagation();
19
+ 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
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface ModalProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ title: string;
8
+ }
9
+ export declare function Modal({ children, className, isOpen, onClose, title }: ModalProps): React.ReactPortal | null;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { X } from 'lucide-react';
3
+ import React from 'react';
4
+ import { createPortal } from 'react-dom';
5
+ import { cn } from '../utils/cn.js';
6
+ export function Modal({ children, className, isOpen, onClose, title }) {
7
+ const dialogRef = React.useRef(null);
8
+ React.useEffect(() => {
9
+ const dialog = dialogRef.current;
10
+ if (!dialog) {
11
+ return;
12
+ }
13
+ if (isOpen && !dialog.open) {
14
+ dialog.showModal();
15
+ return;
16
+ }
17
+ if (!isOpen && dialog.open) {
18
+ dialog.close();
19
+ }
20
+ }, [isOpen]);
21
+ if (typeof document === 'undefined' || !isOpen) {
22
+ return null;
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) => {
25
+ if (event.target === dialogRef.current) {
26
+ onClose();
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);
29
+ }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import { cn } from '../utils/cn';
3
+ import { cn } from '../utils/cn.js';
4
4
  export function renderDefaultLink({ children, className, item, onClick }) {
5
5
  return (_jsx("a", { href: item.href, className: className, onClick: onClick, rel: item.external ? 'noreferrer noopener' : undefined, target: item.external ? '_blank' : undefined, children: children }));
6
6
  }
@@ -0,0 +1,9 @@
1
+ export interface PaginationProps {
2
+ className?: string;
3
+ currentPage: number;
4
+ hasNextPage: boolean;
5
+ hasPrevPage: boolean;
6
+ onPageChange: (page: number) => void;
7
+ totalPages: number;
8
+ }
9
+ export declare function Pagination({ className, currentPage, hasNextPage, hasPrevPage, onPageChange, totalPages }: PaginationProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ChevronLeft, ChevronRight } from 'lucide-react';
3
+ import { cn } from '../utils/cn.js';
4
+ export function Pagination({ className, currentPage, hasNextPage, hasPrevPage, onPageChange, totalPages }) {
5
+ if (totalPages <= 1) {
6
+ return null;
7
+ }
8
+ const visiblePages = Array.from({ length: Math.min(totalPages, 7) }, (_, index) => {
9
+ if (totalPages <= 7) {
10
+ return index + 1;
11
+ }
12
+ if (currentPage <= 4) {
13
+ return index + 1;
14
+ }
15
+ if (currentPage >= totalPages - 3) {
16
+ return totalPages - 6 + index;
17
+ }
18
+ return currentPage - 3 + index;
19
+ });
20
+ return (_jsxs("div", { className: cn('mt-8 flex items-center justify-center gap-2', className), children: [_jsx("button", { type: 'button', onClick: () => onPageChange(currentPage - 1), disabled: !hasPrevPage, className: 'rounded-lg border border-sand/10 bg-white p-2 transition-colors hover:bg-sand/10 disabled:cursor-not-allowed disabled:opacity-50 dark:border-sand/20 dark:bg-sand/10 dark:hover:bg-sand/20', title: 'Previous page', children: _jsx(ChevronLeft, { size: 20 }) }), _jsx("div", { className: 'flex items-center gap-1', children: visiblePages.map((pageNumber) => (_jsx("button", { type: 'button', onClick: () => onPageChange(pageNumber), className: cn('rounded-lg px-3 py-2 text-sm font-medium transition-colors', pageNumber === currentPage
21
+ ? 'bg-sea text-white dark:bg-accent-blue'
22
+ : 'border border-sand/10 bg-white text-text-primary hover:bg-sand/10 dark:border-sand/20 dark:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/20'), children: pageNumber }, pageNumber))) }), _jsx("button", { type: 'button', onClick: () => onPageChange(currentPage + 1), disabled: !hasNextPage, className: 'rounded-lg border border-sand/10 bg-white p-2 transition-colors hover:bg-sand/10 disabled:cursor-not-allowed disabled:opacity-50 dark:border-sand/20 dark:bg-sand/10 dark:hover:bg-sand/20', title: 'Next page', children: _jsx(ChevronRight, { size: 20 }) })] }));
23
+ }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '../utils/cn';
2
+ import { cn } from '../utils/cn.js';
3
3
  export function SectionHeader({ className, description, eyebrow, title, ...props }) {
4
4
  return (_jsxs("div", { className: cn('space-y-3', className), ...props, children: [eyebrow ? _jsx("p", { className: 'text-sm uppercase tracking-elegant text-desert', children: eyebrow }) : null, _jsxs("div", { className: 'space-y-2', children: [_jsx("h2", { className: 'text-3xl font-semibold text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'max-w-2xl text-base leading-relaxed text-text-secondary dark:text-text-secondary', children: description }) : null] })] }));
5
5
  }
@@ -0,0 +1,14 @@
1
+ export interface SelectOption {
2
+ label: string;
3
+ value: string;
4
+ }
5
+ export interface SelectProps {
6
+ className?: string;
7
+ disabled?: boolean;
8
+ error?: boolean;
9
+ onChange: (value: string) => void;
10
+ options: SelectOption[];
11
+ placeholder?: string;
12
+ value: string;
13
+ }
14
+ export declare function Select({ className, disabled, error, onChange, options, placeholder, value }: SelectProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check, ChevronDown } from 'lucide-react';
3
+ import React from 'react';
4
+ import { cn } from '../utils/cn.js';
5
+ export function Select({ className, disabled = false, error = false, onChange, options, placeholder = 'Select...', value }) {
6
+ const [isOpen, setIsOpen] = React.useState(false);
7
+ const [searchTerm, setSearchTerm] = React.useState('');
8
+ const dropdownRef = React.useRef(null);
9
+ const buttonRef = React.useRef(null);
10
+ const selectedOption = options.find((option) => option.value === value);
11
+ const filteredOptions = options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
12
+ React.useEffect(() => {
13
+ if (!isOpen) {
14
+ return undefined;
15
+ }
16
+ const handleClickOutside = (event) => {
17
+ if (dropdownRef.current &&
18
+ !dropdownRef.current.contains(event.target) &&
19
+ buttonRef.current &&
20
+ !buttonRef.current.contains(event.target)) {
21
+ setIsOpen(false);
22
+ setSearchTerm('');
23
+ }
24
+ };
25
+ document.addEventListener('mousedown', handleClickOutside);
26
+ return () => document.removeEventListener('mousedown', handleClickOutside);
27
+ }, [isOpen]);
28
+ const handleSelect = (nextValue) => {
29
+ onChange(nextValue);
30
+ setIsOpen(false);
31
+ setSearchTerm('');
32
+ };
33
+ return (_jsxs("div", { className: cn('relative', className), children: [_jsx("button", { ref: buttonRef, type: 'button', disabled: disabled, onClick: () => !disabled && setIsOpen((open) => !open), onKeyDown: (event) => {
34
+ if (disabled) {
35
+ return;
36
+ }
37
+ if (event.key === 'Enter' || event.key === ' ') {
38
+ event.preventDefault();
39
+ setIsOpen((open) => !open);
40
+ }
41
+ if (event.key === 'Escape') {
42
+ setIsOpen(false);
43
+ setSearchTerm('');
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) => {
46
+ const isSelected = option.value === value;
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
+ ? 'bg-sea/10 font-medium text-sea dark:bg-accent-blue/10 dark:text-accent-blue'
49
+ : 'text-text-primary hover:bg-sand/10 dark:text-text-primary dark:hover:bg-sand/20'), children: [_jsx("span", { className: 'flex-1 tracking-refined', children: option.label }), isSelected ? _jsx(Check, { size: 16, className: 'flex-shrink-0 text-sea dark:text-accent-blue' }) : null] }, option.value));
50
+ })) })] })) : null] }));
51
+ }
@@ -0,0 +1,14 @@
1
+ export interface SortState {
2
+ field: string;
3
+ order: 'asc' | 'desc';
4
+ }
5
+ export interface SortableTableHeaderProps {
6
+ align?: 'left' | 'right';
7
+ className?: string;
8
+ currentSort: SortState;
9
+ field: string;
10
+ label: string;
11
+ onSort: (field: string, order: 'asc' | 'desc') => void;
12
+ sortable?: boolean;
13
+ }
14
+ export declare function SortableTableHeader({ align, className, currentSort, field, label, onSort, sortable }: SortableTableHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowUpDown } from 'lucide-react';
3
+ import { cn } from '../utils/cn.js';
4
+ export function SortableTableHeader({ align = 'left', className, currentSort, field, label, onSort, sortable = true }) {
5
+ const isSorted = currentSort.field === field;
6
+ if (!sortable) {
7
+ return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'px-6 py-4 text-sm font-semibold text-text-primary dark:text-text-primary', className), children: label }));
8
+ }
9
+ return (_jsx("th", { className: cn(align === 'right' ? 'text-right' : 'text-left', 'px-6 py-4', className), children: _jsxs("button", { type: 'button', onClick: () => onSort(field, isSorted && currentSort.order === 'asc' ? 'desc' : 'asc'), className: 'flex items-center gap-2 text-sm font-semibold text-text-primary transition-colors hover:text-sea dark:text-text-primary dark:hover:text-accent-blue', children: [label, isSorted ? _jsx(ArrowUpDown, { size: 14, className: currentSort.order === 'desc' ? 'rotate-180' : '' }) : null] }) }));
10
+ }
@@ -0,0 +1,11 @@
1
+ export interface TabItem {
2
+ id: string;
3
+ label: string;
4
+ }
5
+ export interface TabsProps {
6
+ activeTab: string;
7
+ className?: string;
8
+ onChange: (id: string) => void;
9
+ tabs: TabItem[];
10
+ }
11
+ export declare function Tabs({ activeTab, className, onChange, tabs }: TabsProps): import("react/jsx-runtime").JSX.Element;