@gaulatti/bleecker 0.1.39 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,12 +8,51 @@ Bleecker is a refined React component library built around the Encode Sans typef
8
8
  npm install @gaulatti/bleecker
9
9
  ```
10
10
 
11
- Import the compiled component styles once in your application:
11
+ Choose one stylesheet integration. Tailwind CSS v4 applications should compile
12
+ Bleecker together with their own utilities:
13
+
14
+ ```css
15
+ /* app.css */
16
+ @import "@gaulatti/bleecker/styles.base.css";
17
+ @source "../node_modules/@gaulatti/bleecker/dist/**/*.js";
18
+ @source "./**/*.{ts,tsx}";
19
+ ```
20
+
21
+ Do not also import `@gaulatti/bleecker/styles.css` in a Tailwind application.
22
+ Doing so loads a second compiled utility layer and can change responsive layout
23
+ behavior through the cascade.
24
+
25
+ Applications that do not compile Tailwind should instead import the complete,
26
+ precompiled stylesheet once:
12
27
 
13
28
  ```ts
14
29
  import '@gaulatti/bleecker/styles.css';
15
30
  ```
16
31
 
32
+ ## Attention feeds
33
+
34
+ Use Bleecker's feed primitives for multi-column monitoring, event indexes, and
35
+ other continuously updated operational views:
36
+
37
+ ```tsx
38
+ import { AttentionSurface } from '@gaulatti/bleecker/components/attention-surface';
39
+ import { FeedColumn } from '@gaulatti/bleecker/layout/feed-column';
40
+ import { FeedGrid } from '@gaulatti/bleecker/layout/feed-grid';
41
+
42
+ <FeedColumn accent='hsl(285 64% 66%)' count={50} title='Business'>
43
+ <AttentionSurface hue={285} intensity={2}>
44
+ Low-urgency item: 80% column hue, 20% red.
45
+ </AttentionSurface>
46
+ </FeedColumn>;
47
+
48
+ <FeedGrid minColumnWidth={360}>{eventCards}</FeedGrid>;
49
+ ```
50
+
51
+ `AttentionSurface` accepts a continuous intensity from 0–10. Intensity changes
52
+ both the category-to-red color mix and the distance traveled by the gradient.
53
+ Consumers decide what intensity means—relevance, magnitude, risk, confidence,
54
+ or another domain measure—but should not reimplement the visual interpolation.
55
+
17
56
  ```tsx
18
57
  import { Button, Field, Input } from '@gaulatti/bleecker';
19
58
 
@@ -40,6 +79,19 @@ import { Button } from '@gaulatti/bleecker/components/button';
40
79
  - Controls use consistent 32, 40, and 48 pixel heights.
41
80
  - Motion is brief and functional, with reduced-motion behavior included globally.
42
81
 
82
+ ## Luxury composition
83
+
84
+ Luxury in Bleecker comes from editing and proportion, not decoration. The most reliable compositions use one dominant focal plane, one quieter supporting rail, and enough negative space for the hierarchy to remain obvious.
85
+
86
+ - Start with `PageFrame` so product pages share the same gutters, readable widths, and vertical cadence.
87
+ - Use `DetailLayout` for asymmetric detail pages, editorial views, and sticky summary rails instead of assembling new grid proportions each time.
88
+ - Use `AuthShell` for focused sign-in, invitation, and onboarding moments with an optional narrative panel.
89
+ - Prefer hairline borders for default surfaces. Reserve `Card`'s `elevated` variant and stronger shadows for the single surface that truly sits above the page.
90
+ - Keep supporting copy in `font-secondary`, eyebrow copy brief, and data labels at a readable contrast. A restrained accent should guide attention rather than tint every section.
91
+ - Avoid grids of equally weighted cards when one number, action, or story is more important. Give that item more scale or span and quiet the rest.
92
+
93
+ Storybook's **Templates** section includes complete public, operational, commerce, hospitality, and private-client compositions. Treat them as starting points: keep their hierarchy and rhythm, then replace the domain copy and content.
94
+
43
95
  ## Theming
44
96
 
45
97
  The default light and dark themes are defined with `--app-*` custom properties in the stylesheet. Override those properties after importing Bleecker styles to adapt the theme without changing component markup.
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export type AttentionSurfaceElement = 'article' | 'button' | 'div' | 'li' | 'section';
3
+ export type AttentionSurfaceDensity = 'compact' | 'comfortable';
4
+ export interface AttentionSurfaceProps extends Omit<React.ComponentPropsWithoutRef<'button'>, 'color'> {
5
+ as?: AttentionSurfaceElement;
6
+ density?: AttentionSurfaceDensity;
7
+ hue: number;
8
+ intensity: number;
9
+ interactive?: boolean;
10
+ }
11
+ export declare const AttentionSurface: React.ForwardRefExoticComponent<AttentionSurfaceProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { cn } from '../utils/cn.js';
3
+ import { createAttentionColor } from '../utils/attention-color.js';
4
+ export const AttentionSurface = React.forwardRef(function AttentionSurface({ as: Component = 'article', children, className, density = 'comfortable', hue, intensity, interactive, style, type, ...props }, ref) {
5
+ const attention = createAttentionColor({ hue, intensity });
6
+ const isInteractive = interactive ?? Component === 'button';
7
+ return React.createElement(Component, {
8
+ ...props,
9
+ ...(Component === 'button' ? { type: type ?? 'button' } : {}),
10
+ className: cn('rounded-[11px] border text-left shadow-[0_16px_38px_-30px_rgba(0,0,0,0.92)]', 'transition-[background-color,border-color,box-shadow,transform] duration-[var(--motion-surface)] ease-premium', density === 'compact' ? 'px-4 py-4' : 'px-5 py-5', isInteractive && 'hover:-translate-y-px hover:shadow-[0_24px_48px_-28px_rgba(0,0,0,0.9)] focus:outline-none focus:ring-2 focus:ring-sea/30', className),
11
+ 'data-attention-intensity': attention.intensity,
12
+ 'data-attention-red-mix': attention.redMix,
13
+ ref,
14
+ style: { ...attention.style, ...style }
15
+ }, children);
16
+ });
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from '../utils/cn.js';
3
3
  const paddingClasses = { none: 'p-0', sm: 'p-4', md: 'p-6', lg: 'p-8' };
4
4
  export function Card({ className, padding = 'md', variant = 'surface', ...props }) {
5
- return (_jsx("div", { className: cn('relative overflow-hidden rounded-[var(--radius-card)] transition-[background-color,border-color,box-shadow,transform] duration-[var(--motion-surface)] ease-premium', paddingClasses[padding], variant === 'surface' && 'border border-sand/30 bg-white shadow-[var(--shadow-surface)] dark:border-white/[0.09] dark:bg-deep-sea dark:shadow-none', variant === 'outlined' && 'border border-sand/40 bg-white shadow-none dark:border-white/15 dark:bg-deep-sea', variant === 'elevated' && 'border border-sand/25 bg-white shadow-[var(--shadow-raised)] dark:border-white/10 dark:bg-deep-sea', variant === 'subtle' && 'border border-sand/20 bg-light-sand/45 shadow-none dark:border-white/[0.07] dark:bg-white/[0.035]', variant === 'transparent' && 'border border-transparent bg-transparent shadow-none', className), ...props }));
5
+ return (_jsx("div", { className: cn('relative overflow-hidden rounded-[var(--radius-card)] transition-[background-color,border-color,box-shadow,transform] duration-[var(--motion-surface)] ease-premium', paddingClasses[padding], variant === 'surface' && 'border border-sand/30 bg-white shadow-none dark:border-white/[0.09] dark:bg-deep-sea', variant === 'outlined' && 'border border-sand/40 bg-white shadow-none dark:border-white/15 dark:bg-deep-sea', variant === 'elevated' && 'border border-sand/25 bg-white shadow-[var(--shadow-raised)] dark:border-white/10 dark:bg-deep-sea', variant === 'subtle' && 'border border-sand/20 bg-light-sand/45 shadow-none dark:border-white/[0.07] dark:bg-white/[0.035]', variant === 'transparent' && 'border border-transparent bg-transparent shadow-none', className), ...props }));
6
6
  }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export type EyebrowTone = 'accent' | 'muted' | 'inverse';
3
+ export interface EyebrowProps extends React.HTMLAttributes<HTMLElement> {
4
+ as?: 'div' | 'p' | 'span';
5
+ rule?: boolean;
6
+ tone?: EyebrowTone;
7
+ }
8
+ export declare function Eyebrow({ as: Component, children, className, rule, tone, ...props }: EyebrowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const toneClasses = {
4
+ accent: 'text-accent-text',
5
+ muted: 'text-text-secondary',
6
+ inverse: 'text-white/75'
7
+ };
8
+ export function Eyebrow({ as: Component = 'p', children, className, rule = false, tone = 'accent', ...props }) {
9
+ return (_jsxs(Component, { className: cn('inline-flex items-center gap-3 text-[11px] font-semibold uppercase leading-4 tracking-[0.12em]', toneClasses[tone], className), ...props, children: [rule ? _jsx("span", { "aria-hidden": 'true', className: 'h-px w-7 shrink-0 bg-current opacity-60' }) : null, children] }));
10
+ }
@@ -5,6 +5,7 @@ type FieldControlProps = {
5
5
  id?: string;
6
6
  };
7
7
  export interface FieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
8
+ action?: React.ReactNode;
8
9
  children: React.ReactElement<FieldControlProps>;
9
10
  description?: React.ReactNode;
10
11
  error?: React.ReactNode;
@@ -13,5 +14,5 @@ export interface FieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, '
13
14
  required?: boolean;
14
15
  }
15
16
  /** A consistent, accessible label/control/help/error composition. */
16
- export declare function Field({ children, className, description, error, label, optional, required, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Field({ action, children, className, description, error, label, optional, required, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
17
18
  export {};
@@ -2,13 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { cn } from '../utils/cn.js';
4
4
  /** A consistent, accessible label/control/help/error composition. */
5
- export function Field({ children, className, description, error, label, optional, required, ...props }) {
5
+ export function Field({ action, children, className, description, error, label, optional, required, ...props }) {
6
6
  const generatedId = React.useId();
7
7
  const controlId = children.props.id ?? `${generatedId}-control`;
8
8
  const descriptionId = description ? `${generatedId}-description` : undefined;
9
9
  const errorId = error ? `${generatedId}-error` : undefined;
10
10
  const describedBy = [children.props['aria-describedby'], descriptionId, errorId].filter(Boolean).join(' ') || undefined;
11
- return (_jsxs("div", { className: cn('space-y-2.5', className), ...props, children: [_jsxs("div", { className: 'flex items-baseline justify-between gap-4', children: [_jsxs("label", { htmlFor: controlId, className: 'text-[13px] font-medium tracking-ui text-text-primary dark:text-text-primary', children: [label, required ? _jsx("span", { className: 'ml-1 text-terracotta', "aria-hidden": 'true', children: "*" }) : null] }), optional ? _jsx("span", { className: 'font-secondary text-[11px] text-text-secondary', children: "Optional" }) : null] }), React.cloneElement(children, {
11
+ return (_jsxs("div", { className: cn('space-y-2.5', className), ...props, children: [_jsxs("div", { className: 'flex items-baseline justify-between gap-4', children: [_jsxs("label", { htmlFor: controlId, className: 'text-[13px] font-medium tracking-ui text-text-primary dark:text-text-primary', children: [label, required ? _jsx("span", { className: 'ml-1 text-terracotta', "aria-hidden": 'true', children: "*" }) : null] }), action ?? (optional ? _jsx("span", { className: 'font-secondary text-[11px] text-text-secondary', children: "Optional" }) : null)] }), React.cloneElement(children, {
12
12
  id: controlId,
13
13
  'aria-describedby': describedBy,
14
14
  'aria-invalid': error ? true : children.props['aria-invalid']
@@ -4,5 +4,5 @@ import { cn } from '../utils/cn.js';
4
4
  import { Button } from './button.js';
5
5
  export function PageHeader({ title, description, breadcrumbs, actions, backHref, onBack, className }) {
6
6
  const showBack = Boolean(backHref || onBack);
7
- return (_jsxs("header", { className: cn('space-y-5', className), children: [breadcrumbs && _jsx("div", { className: 'text-sm text-text-secondary dark:text-text-secondary', children: breadcrumbs }), _jsxs("div", { className: 'flex flex-col gap-7 sm:flex-row sm:items-start sm:justify-between', children: [_jsxs("div", { className: 'flex items-start gap-4', children: [showBack && (_jsx(Button, { variant: 'ghost', size: 'sm', className: 'mt-0.5 h-8 w-8 p-0', onClick: onBack, as: backHref ? 'a' : 'button', href: backHref, children: _jsx(ChevronLeft, { size: 18 }) })), _jsxs("div", { children: [_jsx("h1", { className: 'text-[2rem] font-semibold leading-[1.15] tracking-refined text-text-primary dark:text-text-primary', children: title }), description && _jsx("p", { className: 'font-secondary mt-2.5 max-w-2xl text-sm leading-6 text-text-secondary dark:text-text-secondary', children: description })] })] }), actions && _jsx("div", { className: 'flex flex-wrap items-center gap-3', children: actions })] })] }));
7
+ return (_jsxs("header", { className: cn('space-y-5', className), children: [breadcrumbs && _jsx("div", { className: 'text-sm text-text-secondary dark:text-text-secondary', children: breadcrumbs }), _jsxs("div", { className: 'flex flex-col gap-7 sm:flex-row sm:items-start sm:justify-between', children: [_jsxs("div", { className: 'flex items-start gap-4', children: [showBack && (_jsx(Button, { variant: 'ghost', size: 'sm', className: 'mt-0.5 h-8 w-8 p-0', onClick: onBack, as: backHref ? 'a' : 'button', href: backHref, children: _jsx(ChevronLeft, { size: 18 }) })), _jsxs("div", { children: [_jsx("h1", { className: 'text-balance text-[2rem] font-semibold leading-[1.15] tracking-refined text-text-primary dark:text-text-primary', children: title }), description && _jsx("p", { className: 'font-secondary mt-2.5 max-w-2xl text-pretty text-sm leading-6 text-text-secondary dark:text-text-secondary', children: description })] })] }), actions && _jsx("div", { className: 'flex flex-wrap items-center gap-3', children: actions })] })] }));
8
8
  }
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from '../utils/cn.js';
3
+ import { Eyebrow } from './eyebrow.js';
3
4
  export function SectionHeader({ className, description, eyebrow, title, ...props }) {
4
- return (_jsxs("div", { className: cn('space-y-3.5', className), ...props, children: [eyebrow ? _jsx("p", { className: 'text-[11px] font-semibold uppercase tracking-[0.12em] text-desert', children: eyebrow }) : null, _jsxs("div", { className: 'space-y-3', children: [_jsx("h2", { className: 'text-[1.75rem] font-semibold leading-tight tracking-refined text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'font-secondary max-w-2xl text-base leading-7 text-text-secondary dark:text-text-secondary', children: description }) : null] })] }));
5
+ return (_jsxs("div", { className: cn('space-y-3.5', className), ...props, children: [eyebrow ? _jsx(Eyebrow, { children: eyebrow }) : null, _jsxs("div", { className: 'space-y-3', children: [_jsx("h2", { className: 'text-balance text-[1.75rem] font-semibold leading-tight tracking-refined text-text-primary dark:text-text-primary', children: title }), description ? _jsx("p", { className: 'font-secondary max-w-2xl text-pretty text-base leading-7 text-text-secondary dark:text-text-secondary', children: description }) : null] })] }));
5
6
  }
@@ -2,15 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from '../utils/cn.js';
3
3
  const variantClasses = {
4
4
  live: {
5
- badge: 'bg-emerald-500/10 border-emerald-500/20 text-emerald-500 dark:bg-emerald-500/10 dark:border-emerald-500/20 dark:text-emerald-400',
5
+ badge: 'border-emerald-600/20 bg-emerald-600/[0.08] text-emerald-700 dark:border-emerald-400/20 dark:bg-emerald-400/10 dark:text-emerald-300',
6
6
  dot: 'bg-emerald-500'
7
7
  },
8
8
  offline: {
9
- badge: 'bg-terracotta/10 border-terracotta/20 text-terracotta dark:bg-terracotta/10 dark:border-terracotta/20 dark:text-terracotta',
9
+ badge: 'border-terracotta/20 bg-terracotta/10 text-[#874641] dark:border-terracotta/20 dark:bg-terracotta/10 dark:text-terracotta',
10
10
  dot: 'bg-terracotta'
11
11
  },
12
12
  warning: {
13
- badge: 'bg-desert/10 border-desert/20 text-desert dark:bg-desert/10 dark:border-desert/20 dark:text-desert',
13
+ badge: 'border-desert/20 bg-desert/10 text-accent-text dark:border-desert/20 dark:bg-desert/10 dark:text-accent-text',
14
14
  dot: 'bg-desert'
15
15
  },
16
16
  info: {
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './tokens';
3
3
  export * from './components/brand-lockup';
4
4
  export * from './components/bauhaus-background';
5
5
  export * from './components/activity-item';
6
+ export * from './components/attention-surface';
6
7
  export * from './components/button';
7
8
  export * from './components/button-group';
8
9
  export * from './components/card';
@@ -51,6 +52,7 @@ export * from './components/date-picker';
51
52
  export * from './components/dialog-close-button';
52
53
  export * from './components/drawer';
53
54
  export * from './components/empty';
55
+ export * from './components/eyebrow';
54
56
  export * from './components/hover-card';
55
57
  export * from './components/input';
56
58
  export * from './components/kbd';
@@ -99,13 +101,19 @@ export * from './components/tabs';
99
101
  export * from './components/theme-toggle';
100
102
  export * from './layout/app-shell';
101
103
  export * from './layout/admin-shell';
104
+ export * from './layout/auth-shell';
105
+ export * from './layout/detail-layout';
102
106
  export * from './layout/footer';
107
+ export * from './layout/feed-column';
108
+ export * from './layout/feed-grid';
103
109
  export * from './layout/header';
110
+ export * from './layout/page-frame';
104
111
  export * from './layout/panel-layout';
105
112
  export * from './login-screen';
106
113
  export * from './theme/theme-provider';
107
114
  export * from './theme/theme-script';
108
115
  export * from './theme/types';
109
116
  export * from './utils/cn';
117
+ export * from './utils/attention-color';
110
118
  export * from './utils/format';
111
119
  export * from './utils/hooks';
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './tokens.js';
3
3
  export * from './components/brand-lockup.js';
4
4
  export * from './components/bauhaus-background.js';
5
5
  export * from './components/activity-item.js';
6
+ export * from './components/attention-surface.js';
6
7
  export * from './components/button.js';
7
8
  export * from './components/button-group.js';
8
9
  export * from './components/card.js';
@@ -51,6 +52,7 @@ export * from './components/date-picker.js';
51
52
  export * from './components/dialog-close-button.js';
52
53
  export * from './components/drawer.js';
53
54
  export * from './components/empty.js';
55
+ export * from './components/eyebrow.js';
54
56
  export * from './components/hover-card.js';
55
57
  export * from './components/input.js';
56
58
  export * from './components/kbd.js';
@@ -99,13 +101,19 @@ export * from './components/tabs.js';
99
101
  export * from './components/theme-toggle.js';
100
102
  export * from './layout/app-shell.js';
101
103
  export * from './layout/admin-shell.js';
104
+ export * from './layout/auth-shell.js';
105
+ export * from './layout/detail-layout.js';
102
106
  export * from './layout/footer.js';
107
+ export * from './layout/feed-column.js';
108
+ export * from './layout/feed-grid.js';
103
109
  export * from './layout/header.js';
110
+ export * from './layout/page-frame.js';
104
111
  export * from './layout/panel-layout.js';
105
112
  export * from './login-screen.js';
106
113
  export * from './theme/theme-provider.js';
107
114
  export * from './theme/theme-script.js';
108
115
  export * from './theme/types.js';
109
116
  export * from './utils/cn.js';
117
+ export * from './utils/attention-color.js';
110
118
  export * from './utils/format.js';
111
119
  export * from './utils/hooks.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 text-text-primary dark:text-text-primary', className), children: [header, _jsx("main", { className: cn('flex-1 flex flex-col min-h-0 bg-white dark:bg-deep-sea', offsetHeader && 'pt-[72px]', contentClassName), children: _jsx("div", { className: 'flex-1 flex flex-col min-h-0', children: children }) }), footer] }));
4
+ return (_jsxs("div", { className: cn('flex min-h-screen flex-col bg-background text-foreground', className), children: [header, _jsx("main", { className: cn('flex min-h-0 flex-1 flex-col bg-background', header && offsetHeader && 'pt-[var(--bleecker-header-height)]', contentClassName), children: _jsx("div", { className: 'flex min-h-0 flex-1 flex-col', children: children }) }), footer] }));
5
5
  }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export type AuthShellLayout = 'centered' | 'split';
3
+ export type AuthShellSide = 'start' | 'end';
4
+ export interface AuthShellProps extends React.HTMLAttributes<HTMLElement> {
5
+ aside?: React.ReactNode;
6
+ asideLabel?: string;
7
+ brand?: React.ReactNode;
8
+ children: React.ReactNode;
9
+ footer?: React.ReactNode;
10
+ layout?: AuthShellLayout;
11
+ side?: AuthShellSide;
12
+ }
13
+ /** A page-level shell for sign-in, recovery, invitation, and other access flows. */
14
+ export declare function AuthShell({ aside, asideLabel, brand, children, className, footer, layout, side, ...props }: AuthShellProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const splitColumnClasses = {
4
+ start: 'lg:grid-cols-[minmax(24rem,5fr)_minmax(0,7fr)]',
5
+ end: 'lg:grid-cols-[minmax(0,7fr)_minmax(24rem,5fr)]'
6
+ };
7
+ /** A page-level shell for sign-in, recovery, invitation, and other access flows. */
8
+ export function AuthShell({ aside, asideLabel, brand, children, className, footer, layout = 'centered', side = 'end', ...props }) {
9
+ const hasAside = layout === 'split' && Boolean(aside);
10
+ return (_jsxs("main", { className: cn('min-h-screen bg-light-sand/35 text-text-primary dark:bg-background dark:text-text-primary', hasAside && 'grid bg-background', hasAside && splitColumnClasses[side], className), "data-layout": layout, "data-side": side, ...props, children: [_jsx("section", { className: 'flex min-h-screen bg-background px-5 py-6 sm:px-8 sm:py-8 lg:px-12 xl:px-16', "data-slot": 'access', children: _jsxs("div", { className: 'mx-auto flex w-full max-w-md flex-1 flex-col', children: [brand ? _jsx("div", { "data-slot": 'brand', children: brand }) : null, _jsx("div", { className: 'flex flex-1 items-center py-10 sm:py-14', "data-slot": 'content', children: _jsx("div", { className: 'w-full', children: children }) }), footer ? _jsx("footer", { className: 'font-secondary text-xs leading-5 text-text-secondary', "data-slot": 'footer', children: footer }) : null] }) }), hasAside ? (_jsxs("aside", { "aria-label": asideLabel, className: cn('relative hidden min-h-screen overflow-hidden bg-deep-sea text-white lg:flex', side === 'start' && 'lg:order-first'), "data-slot": 'aside', children: [_jsx("div", { className: 'relative z-10 flex w-full items-end p-12 xl:p-16', children: aside }), _jsx("div", { className: 'pointer-events-none absolute -right-24 -top-24 size-80 rounded-full border border-white/10', "aria-hidden": 'true' }), _jsx("div", { className: 'pointer-events-none absolute -right-10 -top-10 size-52 rounded-full border border-white/10', "aria-hidden": 'true' })] })) : null] }));
11
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export type DetailLayoutRatio = 'balanced' | 'primary';
3
+ export type DetailLayoutSide = 'start' | 'end';
4
+ export interface DetailLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ children: React.ReactNode;
6
+ ratio?: DetailLayoutRatio;
7
+ side?: DetailLayoutSide;
8
+ sideRail?: React.ReactNode;
9
+ sideRailLabel?: string;
10
+ sticky?: boolean;
11
+ }
12
+ /** A responsive detail composition with an optional, independently sticky side rail. */
13
+ export declare function DetailLayout({ children, className, ratio, side, sideRail, sideRailLabel, sticky, ...props }: DetailLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const columnClasses = {
4
+ start: {
5
+ balanced: 'lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]',
6
+ primary: 'lg:grid-cols-[minmax(17rem,1fr)_minmax(0,2fr)]'
7
+ },
8
+ end: {
9
+ balanced: 'lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]',
10
+ primary: 'lg:grid-cols-[minmax(0,2fr)_minmax(17rem,1fr)]'
11
+ }
12
+ };
13
+ /** A responsive detail composition with an optional, independently sticky side rail. */
14
+ export function DetailLayout({ children, className, ratio = 'primary', side = 'end', sideRail, sideRailLabel, sticky = true, ...props }) {
15
+ return (_jsxs("div", { className: cn('grid items-start gap-10 lg:gap-12 xl:gap-16', sideRail && columnClasses[side][ratio], className), "data-ratio": ratio, "data-side": side, ...props, children: [_jsx("div", { className: 'min-w-0', "data-slot": 'content', children: children }), sideRail ? (_jsx("aside", { "aria-label": sideRailLabel, className: cn('min-w-0 self-start', side === 'start' && 'lg:order-first', sticky && 'lg:sticky lg:top-8'), "data-slot": 'side-rail', children: sideRail })) : null] }));
16
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface FeedColumnProps extends React.HTMLAttributes<HTMLElement> {
3
+ accent?: string;
4
+ bodyClassName?: string;
5
+ children: React.ReactNode;
6
+ count?: number;
7
+ filter?: React.ReactNode;
8
+ title: string;
9
+ viewportRef?: React.Ref<HTMLDivElement>;
10
+ width?: number | string;
11
+ }
12
+ export declare function FeedColumn({ accent, bodyClassName, children, className, count, filter, style, title, viewportRef, width, ...props }: FeedColumnProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ export function FeedColumn({ accent = 'var(--color-sea)', bodyClassName, children, className, count, filter, style, title, viewportRef, width = 372, ...props }) {
4
+ const resolvedWidth = typeof width === 'number' ? `${width}px` : width;
5
+ return (_jsxs("section", { ...props, className: cn('flex h-full min-h-0 shrink-0 flex-col overflow-hidden rounded-[12px] border', 'bg-deep-sea/75 shadow-[0_22px_54px_-38px_rgba(0,0,0,0.95)]', className), style: {
6
+ background: `linear-gradient(45deg, color-mix(in oklab, ${accent} 11%, rgba(24,37,49,.88)) 0, rgba(24,37,49,.88) 13rem, rgba(13,24,33,.96) 32rem)`,
7
+ borderColor: `color-mix(in oklab, ${accent} 15%, rgba(255,255,255,.075))`,
8
+ minWidth: resolvedWidth,
9
+ width: resolvedWidth,
10
+ ...style
11
+ }, children: [_jsxs("header", { className: 'shrink-0 border-b border-white/[0.065] px-4 pb-4 pt-4', children: [_jsxs("div", { className: 'mb-4 flex min-h-7 items-center gap-2.5', children: [_jsx("span", { "aria-hidden": 'true', className: 'h-2 w-2 rounded-full shadow-[0_0_14px_currentColor]', style: { backgroundColor: accent, color: accent } }), _jsx("h2", { className: 'flex-1 text-[11px] font-semibold uppercase tracking-[0.12em]', style: { color: accent }, children: title }), count !== undefined ? (_jsx("span", { className: 'rounded-full border border-white/[0.08] bg-black/15 px-2.5 py-1 text-[11px] font-semibold tabular-nums text-text-primary/85', children: count })) : null] }), filter] }), _jsx("div", { className: cn('h-full min-h-0 overflow-y-auto p-3', bodyClassName), ref: viewportRef, children: children })] }));
12
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface FeedGridProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ minColumnWidth?: number | string;
4
+ }
5
+ export declare function FeedGrid({ children, className, minColumnWidth, style, ...props }: FeedGridProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ export function FeedGrid({ children, className, minColumnWidth = 340, style, ...props }) {
4
+ const resolvedWidth = typeof minColumnWidth === 'number' ? `${minColumnWidth}px` : minColumnWidth;
5
+ return (_jsx("div", { ...props, className: cn('grid gap-3 p-4', className), style: { gridTemplateColumns: `repeat(auto-fill, minmax(min(100%, ${resolvedWidth}), 1fr))`, ...style }, children: children }));
6
+ }
@@ -8,6 +8,7 @@ export interface HeaderProps {
8
8
  fullWidth?: boolean;
9
9
  mobileActions?: React.ReactNode;
10
10
  navigation: NavItem[];
11
+ position?: 'fixed' | 'sticky' | 'static';
11
12
  renderLink?: RenderLink;
12
13
  }
13
- export declare function Header({ actions, brand, className, fullWidth, mobileActions, navigation, renderLink }: HeaderProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Header({ actions, brand, className, fullWidth, mobileActions, navigation, position, renderLink }: HeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -6,7 +6,7 @@ import { BrandLockup } from '../components/brand-lockup.js';
6
6
  import { IconButton } from '../components/icon-button.js';
7
7
  import { NavMenu } from '../components/nav-menu.js';
8
8
  import { cn } from '../utils/cn.js';
9
- export function Header({ actions, brand, className, fullWidth = false, mobileActions, navigation, renderLink }) {
9
+ export function Header({ actions, brand, className, fullWidth = false, mobileActions, navigation, position = 'fixed', renderLink }) {
10
10
  const [mobileMenuOpen, setMobileMenuOpen] = React.useState(false);
11
- return (_jsxs("header", { className: cn('fixed top-0 z-50 w-full border-b border-sand/25 bg-white/95 font-header backdrop-blur-[8px] dark:border-white/[0.09] dark:bg-deep-sea/95', className), children: [_jsx("div", { className: cn(fullWidth ? 'w-full px-4' : 'container mx-auto px-4'), children: _jsxs("div", { className: 'flex h-[72px] items-center justify-between gap-8 lg:grid lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]', children: [_jsx("div", { className: 'min-w-0 justify-self-start', children: _jsx(BrandLockup, { ...brand, renderLink: renderLink }) }), _jsx("div", { className: 'hidden lg:flex lg:items-center lg:justify-self-center', children: _jsx(NavMenu, { items: navigation, renderLink: renderLink }) }), _jsx("div", { className: 'hidden lg:flex lg:items-center lg:justify-self-end lg:gap-3', children: actions }), _jsx(IconButton, { variant: 'ghost', className: 'lg:hidden', "aria-label": 'Toggle navigation menu', type: 'button', onClick: () => setMobileMenuOpen((value) => !value), children: mobileMenuOpen ? _jsx(X, { size: 20 }) : _jsx(Menu, { size: 20 }) })] }) }), _jsx("div", { className: cn('absolute left-0 top-[72px] w-full origin-top overflow-hidden border-t border-sand/20 bg-white shadow-[var(--shadow-overlay)] transition-[max-height,opacity] duration-200 dark:border-white/10 dark:bg-deep-sea lg:hidden', mobileMenuOpen ? 'max-h-96 opacity-100' : 'max-h-0 opacity-0'), children: _jsxs("div", { className: cn(fullWidth ? 'w-full' : 'container mx-auto', 'flex flex-col gap-5 px-4 py-6'), children: [mobileActions ? _jsx("div", { className: 'flex items-center gap-3', children: mobileActions }) : null, _jsx(NavMenu, { direction: 'vertical', items: navigation, onItemClick: () => setMobileMenuOpen(false), renderLink: renderLink })] }) })] }));
11
+ return (_jsxs("header", { className: cn('z-50 w-full border-b border-sand/25 bg-white/95 font-header backdrop-blur-[8px] dark:border-white/[0.09] dark:bg-deep-sea/95', position === 'fixed' && 'fixed top-0', position === 'sticky' && 'sticky top-0', position === 'static' && 'relative', className), children: [_jsx("div", { className: cn(fullWidth ? 'w-full px-4' : 'container mx-auto px-4'), children: _jsxs("div", { className: 'flex h-[var(--bleecker-header-height)] items-center justify-between gap-8 lg:grid lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]', children: [_jsx("div", { className: 'min-w-0 justify-self-start', children: _jsx(BrandLockup, { ...brand, renderLink: renderLink }) }), _jsx("div", { className: 'hidden lg:flex lg:items-center lg:justify-self-center', children: _jsx(NavMenu, { items: navigation, renderLink: renderLink }) }), _jsx("div", { className: 'hidden lg:flex lg:items-center lg:justify-self-end lg:gap-3', children: actions }), _jsx(IconButton, { variant: 'ghost', className: 'lg:hidden', "aria-label": 'Toggle navigation menu', type: 'button', onClick: () => setMobileMenuOpen((value) => !value), children: mobileMenuOpen ? _jsx(X, { size: 20 }) : _jsx(Menu, { size: 20 }) })] }) }), _jsx("div", { className: cn('absolute left-0 top-[var(--bleecker-header-height)] w-full origin-top overflow-hidden border-t border-sand/20 bg-white shadow-[var(--shadow-overlay)] transition-[max-height,opacity] duration-200 dark:border-white/10 dark:bg-deep-sea lg:hidden', mobileMenuOpen ? 'max-h-96 opacity-100' : 'max-h-0 opacity-0'), children: _jsxs("div", { className: cn(fullWidth ? 'w-full' : 'container mx-auto', 'flex flex-col gap-5 px-4 py-6'), children: [mobileActions ? _jsx("div", { className: 'flex items-center gap-3', children: mobileActions }) : null, _jsx(NavMenu, { direction: 'vertical', items: navigation, onItemClick: () => setMobileMenuOpen(false), renderLink: renderLink })] }) })] }));
12
12
  }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export type PageFrameElement = 'article' | 'div' | 'main' | 'section';
3
+ export type PageFrameGutter = 'none' | 'compact' | 'comfortable' | 'spacious';
4
+ export type PageFrameVerticalSpacing = 'none' | 'compact' | 'comfortable' | 'spacious';
5
+ export type PageFrameWidth = 'reading' | 'content' | 'wide' | 'full';
6
+ export interface PageFrameProps extends React.HTMLAttributes<HTMLElement> {
7
+ as?: PageFrameElement;
8
+ children: React.ReactNode;
9
+ gutter?: PageFrameGutter;
10
+ verticalSpacing?: PageFrameVerticalSpacing;
11
+ width?: PageFrameWidth;
12
+ }
13
+ /** A centered page boundary with semantic measures and responsive breathing room. */
14
+ export declare function PageFrame({ as: Component, children, className, gutter, verticalSpacing, width, ...props }: PageFrameProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../utils/cn.js';
3
+ const widthClasses = {
4
+ reading: 'max-w-3xl',
5
+ content: 'max-w-6xl',
6
+ wide: 'max-w-[90rem]',
7
+ full: 'max-w-none'
8
+ };
9
+ const gutterClasses = {
10
+ none: '',
11
+ compact: 'px-4 sm:px-5',
12
+ comfortable: 'px-5 sm:px-8 lg:px-10',
13
+ spacious: 'px-6 sm:px-10 lg:px-16'
14
+ };
15
+ const verticalSpacingClasses = {
16
+ none: '',
17
+ compact: 'py-6 sm:py-8',
18
+ comfortable: 'py-10 sm:py-12 lg:py-16',
19
+ spacious: 'py-14 sm:py-16 lg:py-24'
20
+ };
21
+ /** A centered page boundary with semantic measures and responsive breathing room. */
22
+ export function PageFrame({ as: Component = 'div', children, className, gutter = 'comfortable', verticalSpacing = 'comfortable', width = 'content', ...props }) {
23
+ return (_jsx(Component, { className: cn('mx-auto w-full', widthClasses[width], gutterClasses[gutter], verticalSpacingClasses[verticalSpacing], className), ...props, children: children }));
24
+ }
@@ -1 +1,10 @@
1
- export declare const LoginScreen: () => import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ export interface LoginScreenProps {
3
+ brand?: React.ReactNode;
4
+ description?: string;
5
+ forgotPasswordHref?: string;
6
+ onSubmit?: React.FormEventHandler<HTMLFormElement>;
7
+ signUpHref?: string;
8
+ title?: string;
9
+ }
10
+ export declare function LoginScreen({ brand, description, forgotPasswordHref, onSubmit, signUpHref, title }: LoginScreenProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card } from './components/card.js';
3
2
  import { Button } from './components/button.js';
3
+ import { Card } from './components/card.js';
4
+ import { Field } from './components/field.js';
4
5
  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
- };
6
+ import { AuthShell } from './layout/auth-shell.js';
7
+ export function LoginScreen({ brand, description = 'Sign in to your account to continue.', forgotPasswordHref = '#', onSubmit, signUpHref = '#', title = 'Welcome back' }) {
8
+ return (_jsx(AuthShell, { brand: brand, layout: 'centered', children: _jsxs(Card, { variant: 'elevated', className: 'w-full space-y-7 p-7 sm:p-8', children: [_jsxs("header", { className: 'space-y-2 text-center', children: [_jsx("h1", { className: 'text-balance text-3xl font-semibold tracking-refined text-text-primary', children: title }), _jsx("p", { className: 'font-secondary text-pretty text-sm leading-6 text-text-secondary', children: description })] }), _jsxs("form", { className: 'space-y-5', onSubmit: (event) => {
9
+ if (!onSubmit)
10
+ event.preventDefault();
11
+ onSubmit?.(event);
12
+ }, children: [_jsx(Field, { label: 'Email address', required: true, children: _jsx(Input, { id: 'email', name: 'email', type: 'email', autoComplete: 'email', placeholder: 'name@example.com', required: true }) }), _jsx(Field, { label: 'Password', required: true, action: _jsx("a", { href: forgotPasswordHref, className: 'text-xs font-medium text-sea underline-offset-4 hover:underline dark:text-accent-blue', children: "Forgot password?" }), children: _jsx(Input, { id: 'password', name: 'password', type: 'password', autoComplete: 'current-password', required: true }) }), _jsx(Button, { fullWidth: true, size: 'lg', type: 'submit', children: "Sign in" })] }), _jsxs("p", { className: 'font-secondary text-center text-sm text-text-secondary', children: ["Don't have an account?", ' ', _jsx("a", { href: signUpHref, className: 'font-medium text-sea underline-offset-4 hover:underline dark:text-accent-blue', children: "Sign up" })] })] }) }));
13
+ }