@atom63/ui-react 0.2.0-beta.0
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 +121 -0
- package/dist/button-sktq-nvV.d.ts +13 -0
- package/dist/chunk-7VSPECOH.js +73 -0
- package/dist/chunk-7VSPECOH.js.map +1 -0
- package/dist/chunk-AJLHJRK6.js +11 -0
- package/dist/chunk-AJLHJRK6.js.map +1 -0
- package/dist/chunk-MXNO63TC.js +2745 -0
- package/dist/chunk-MXNO63TC.js.map +1 -0
- package/dist/chunk-STCXERLM.js +354 -0
- package/dist/chunk-STCXERLM.js.map +1 -0
- package/dist/destination-link-C9NKeKLe.d.ts +34 -0
- package/dist/index.d.ts +1605 -0
- package/dist/index.js +7337 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.d.ts +196 -0
- package/dist/layout/index.js +500 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/media/index.d.ts +208 -0
- package/dist/media/index.js +1498 -0
- package/dist/media/index.js.map +1 -0
- package/dist/media/media-lightbox/parts/index.d.ts +284 -0
- package/dist/media/media-lightbox/parts/index.js +5 -0
- package/dist/media/media-lightbox/parts/index.js.map +1 -0
- package/dist/theme/index.d.ts +350 -0
- package/dist/theme/index.js +1173 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types-Dxe5IzjE.d.ts +145 -0
- package/package.json +188 -0
- package/src/components/accordion/accordion.css +196 -0
- package/src/components/alert/alert.css +189 -0
- package/src/components/alert-dialog/alert-dialog.css +205 -0
- package/src/components/autocomplete/autocomplete.css +240 -0
- package/src/components/avatar/avatar.css +147 -0
- package/src/components/badge/badge.css +223 -0
- package/src/components/breadcrumb/breadcrumb.css +99 -0
- package/src/components/button/button.css +594 -0
- package/src/components/button-group/button-group.css +412 -0
- package/src/components/calendar/calendar.css +271 -0
- package/src/components/card/card.css +421 -0
- package/src/components/carousel/carousel.css +163 -0
- package/src/components/checkbox/checkbox.css +113 -0
- package/src/components/collapsible/collapsible.css +59 -0
- package/src/components/command/command.css +226 -0
- package/src/components/connected-panel/connected-panel.css +437 -0
- package/src/components/copy-button/copy-button.css +57 -0
- package/src/components/dialog/dialog.css +221 -0
- package/src/components/drawer/drawer.css +265 -0
- package/src/components/empty/empty.css +145 -0
- package/src/components/feedback-state/feedback-state.css +141 -0
- package/src/components/field/field.css +260 -0
- package/src/components/form/form.css +32 -0
- package/src/components/frame/frame.css +115 -0
- package/src/components/hover-card/hover-card.css +80 -0
- package/src/components/input/input.css +291 -0
- package/src/components/input-otp/input-otp.css +145 -0
- package/src/components/item/item.css +216 -0
- package/src/components/kbd/kbd.css +72 -0
- package/src/components/label/label.css +37 -0
- package/src/components/load-more-trigger/load-more-trigger.css +109 -0
- package/src/components/marquee/marquee.css +79 -0
- package/src/components/menu/menu.css +216 -0
- package/src/components/menubar/menubar.css +67 -0
- package/src/components/navigation-menu/navigation-menu.css +275 -0
- package/src/components/pagination/pagination.css +86 -0
- package/src/components/panel-setting-button/panel-setting-button.css +76 -0
- package/src/components/popover/popover.css +89 -0
- package/src/components/preview-card/preview-card.css +69 -0
- package/src/components/progress/progress.css +70 -0
- package/src/components/radio/radio.css +115 -0
- package/src/components/resizable/resizable.css +99 -0
- package/src/components/scroll-area/scroll-area.css +130 -0
- package/src/components/scrollable-list/scrollable-list.css +144 -0
- package/src/components/segmented-control/segmented-control.css +235 -0
- package/src/components/select/select.css +261 -0
- package/src/components/separator/separator.css +43 -0
- package/src/components/sheet/sheet.css +209 -0
- package/src/components/sidebar/sidebar.css +728 -0
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +179 -0
- package/src/components/skeleton/skeleton.css +42 -0
- package/src/components/slider/slider.css +124 -0
- package/src/components/switch/switch.css +149 -0
- package/src/components/table/table.css +183 -0
- package/src/components/tabs/tabs.css +416 -0
- package/src/components/text-ticker/text-ticker.css +139 -0
- package/src/components/textarea/textarea.css +122 -0
- package/src/components/toggle/toggle.css +185 -0
- package/src/components/toggle-group/toggle-group.css +102 -0
- package/src/components/tooltip/tooltip.css +133 -0
- package/src/media/media-lightbox/media-lightbox.css +171 -0
- package/src/styles/index.css +3 -0
- package/src/styles/recipes.css +70 -0
- package/src/styles/reset.css +22 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/layout/max-width.ts","../../src/layout/grid/hairline.ts","../../src/layout/grid/style.ts","../../src/layout/grid/chrome.tsx","../../src/layout/grid/crosshair.tsx","../../src/layout/grid/guides.tsx","../../src/layout/grid/rule.tsx","../../src/layout/container.tsx","../../src/layout/page.tsx","../../src/layout/page-skeleton.tsx","../../src/layout/section.tsx","../../src/layout/section-header.tsx","../../src/layout/reader-layout.tsx"],"names":["jsx","jsxs"],"mappings":";;;;;AAIO,IAAM,uBAAA,GAA6D;AAAA,EACxE,KAAA,EAAO,YAAA;AAAA,EACP,MAAA,EAAQ,WAAA;AAAA,EACR,KAAA,EAAO,WAAA;AAAA,EACP,IAAA,EAAM,WAAA;AAAA,EACN,OAAA,EAAS,WAAA;AAAA,EACT,MAAA,EAAQ,WAAA;AAAA,EACR,QAAA,EAAU,WAAA;AAAA,EACV,SAAA,EAAW;AACb;AAMO,SAAS,uBAAA,CAAwB,WAA8B,SAAA,EAAmB;AACvF,EAAA,OAAO,CAAA,uBAAA,EAA0B,uBAAA,CAAwB,QAAQ,CAAC,CAAA,CAAA;AACpE;;;ACjBO,IAAM,gBAAA,GAAmB;AAGzB,IAAM,0BAA0B,gBAAA,GAAmB;;;ACJnD,IAAM,gBAAA,GAAmB;AAAA,EAC9B,SAAA,EAAW,uBAAA;AAAA,EACX,UAAA,EAAY,wBAAA;AAAA,EACZ,cAAA,EAAgB,4BAAA;AAAA,EAChB,aAAA,EAAe,2BAAA;AAAA,EACf,SAAA,EAAW;AACb;AAWA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,MAAA,EAAQ;AAAA,IACN,CAAC,gBAAA,CAAiB,SAAS,GAAG,gEAAA;AAAA,IAC9B,CAAC,gBAAA,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AW,EAAA,CAAG,SAAA,EAAW,YAAA,CAAa,KAAK,CAAA,EAAG,oBAAoB,CAAA,EACxE,QAAA,EAAA,WAAA,EACH;AAAA;AAAA;AAAA,GAEJ;AAEJ;AC5GO,SAAS,YAAA,CAAa;AAAA,EAC3B,KAAA;AAAA,EACA,cAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,gBAAA;AAAA,EACA,YAAA,GAAe;AACjB,CAAA,EAAsB;AACpB,EAAA,uBACEC,KAAC,KAAA,EAAA,EAAI,SAAA,EAAW,GAAG,+BAAA,EAAiC,SAAS,CAAA,EAAG,WAAA,EAAU,eAAA,EACxE,QAAA,EAAA;AAAA,oBAAAD,GAAAA;AAAA,MAAC,SAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,EAAA;AAAA,UACT,sEAAA;AAAA,UACA;AAAA,SACF;AAAA,QACA,WAAA,EAAU,uBAAA;AAAA,QAET;AAAA;AAAA,KACH;AAAA,IACC,KAAA,IAAS,+BACRA,GAAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,aAAA,EAAa,QAAQ,MAAA,GAAY,IAAA;AAAA,QACjC,SAAA,EAAW,EAAA,CAAG,yCAAA,EAA2C,cAAc,CAAA;AAAA,QACvE,WAAA,EAAU,qBAAA;AAAA,QAET,QAAA,EAAA;AAAA;AAAA,KACH,GACE;AAAA,GAAA,EACN,CAAA;AAEJ","file":"index.js","sourcesContent":["export type ContainerMaxWidth =\n 'fluid' | 'widest' | 'wider' | 'wide' | 'default' | 'narrow' | 'narrower' | 'narrowest'\n\n/** Shared max-width class map for Container and GridChrome. */\nexport const containerMaxWidthStyles: Record<ContainerMaxWidth, string> = {\n fluid: 'max-w-full',\n widest: 'max-w-8xl',\n wider: 'max-w-7xl',\n wide: 'max-w-6xl',\n default: 'max-w-5xl',\n narrow: 'max-w-4xl',\n narrower: 'max-w-2xl',\n narrowest: 'max-w-xl',\n}\n\n/**\n * Centered max-width frame (no Tailwind `container` padding).\n * Used for fixed rails / guides so edges align with content chrome.\n */\nexport function containerFrameClassName(maxWidth: ContainerMaxWidth = 'default'): string {\n return `mx-auto w-full min-w-0 ${containerMaxWidthStyles[maxWidth]}`\n}\n","/**\n * Shared hairline metrics for grid chrome rails / rules / sparkles.\n * Must stay in sync with Tailwind `border` (1px) on rail + rule strokes.\n */\nexport const GRID_HAIRLINE_PX = 1\n\n/** Distance from the frame’s outer edge to the stroke’s optical center. */\nexport const GRID_HAIRLINE_CENTER_PX = GRID_HAIRLINE_PX / 2\n","import type { CSSProperties } from 'react'\nimport { GRID_HAIRLINE_PX } from './hairline'\n\nexport const GRID_CHROME_VARS = {\n lineColor: '--a63-grid-line-color',\n guideColor: '--a63-grid-guide-color',\n crosshairColor: '--a63-grid-crosshair-color',\n hairlineWidth: '--a63-grid-hairline-width',\n lineStyle: '--a63-grid-line-style',\n} as const\n\nexport type GridChromeLineStyle = 'solid' | 'dashed'\nexport type GridChromeTone = 'subtle' | 'default' | 'strong'\n\nexport type GridChromeCssVars = Partial<\n Record<(typeof GRID_CHROME_VARS)[keyof typeof GRID_CHROME_VARS], string>\n>\n\nexport type GridChromeStyle = CSSProperties & GridChromeCssVars\n\nconst GRID_CHROME_TONE_STYLES = {\n subtle: {\n [GRID_CHROME_VARS.lineColor]: 'color-mix(in oklch, var(--a63-border-subtle) 34%, transparent)',\n [GRID_CHROME_VARS.guideColor]: 'color-mix(in oklch, var(--a63-border-subtle) 16%, transparent)',\n [GRID_CHROME_VARS.crosshairColor]:\n 'color-mix(in oklch, var(--a63-border-subtle) 42%, transparent)',\n },\n default: {\n [GRID_CHROME_VARS.lineColor]: 'color-mix(in oklch, var(--a63-border-subtle) 50%, transparent)',\n [GRID_CHROME_VARS.guideColor]: 'color-mix(in oklch, var(--a63-border-subtle) 24%, transparent)',\n [GRID_CHROME_VARS.crosshairColor]:\n 'color-mix(in oklch, var(--a63-border-subtle) 58%, transparent)',\n },\n strong: {\n [GRID_CHROME_VARS.lineColor]: 'var(--a63-border-control)',\n [GRID_CHROME_VARS.guideColor]: 'var(--a63-border-subtle)',\n [GRID_CHROME_VARS.crosshairColor]: 'var(--a63-border-control)',\n },\n} as const satisfies Record<GridChromeTone, GridChromeCssVars>\n\nexport function gridChromeStyle({\n lineStyle,\n style,\n tone,\n}: {\n lineStyle: GridChromeLineStyle\n style?: GridChromeStyle\n tone: GridChromeTone\n}): GridChromeStyle {\n return {\n [GRID_CHROME_VARS.hairlineWidth]: `${GRID_HAIRLINE_PX}px`,\n [GRID_CHROME_VARS.lineStyle]: lineStyle,\n ...GRID_CHROME_TONE_STYLES[tone],\n ...style,\n }\n}\n","import { type ComponentPropsWithoutRef, createContext, type ReactNode, useContext } from 'react'\nimport { cn } from '../../lib/cn'\nimport { containerFrameClassName, type ContainerMaxWidth } from '../max-width'\nimport {\n gridChromeStyle,\n type GridChromeLineStyle,\n type GridChromeStyle,\n type GridChromeTone,\n} from './style'\n\nexport interface GridChromeContextValue {\n crosshairs: boolean\n /** True when page rails are painted by {@link GridChrome}. */\n fixedRails: boolean\n lineStyle: GridChromeLineStyle\n maxWidth: ContainerMaxWidth\n}\n\nconst GridChromeContext = createContext<GridChromeContextValue | null>(null)\n\nexport function useGridChrome(): GridChromeContextValue | null {\n return useContext(GridChromeContext)\n}\n\nexport interface GridChromeProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n children: ReactNode\n /**\n * Default sparkle crosshairs on nested `GridRule`s.\n * @default true\n */\n crosshairs?: boolean\n /**\n * Full-height vertical rails matching `maxWidth`. Absolute inside the chrome\n * (not `position: fixed` / sticky-on-self) so `max-w-*` + `mx-auto` keep working\n * and edges stay symmetric with the scroll container.\n * @default true\n */\n fixedRails?: boolean\n /**\n * Stroke style shared by rails, rules, and guides.\n * @default 'dashed'\n */\n lineStyle?: GridChromeLineStyle\n maxWidth?: ContainerMaxWidth\n /**\n * Central color preset for rails, rules, guides, and crosshairs.\n * Override individual values with CSS variables on `style`.\n * @default 'default'\n */\n tone?: GridChromeTone\n style?: GridChromeStyle\n}\n\n/**\n * Firecrawl-style page frame: continuous column rails + crosshair context.\n *\n * Wrap the **entire scroll document** (header, main, footer) so one pair of\n * rails meets every band. Nesting `GridChrome` only around a page body leaves\n * the footer as a floating card — the opposite of Firecrawl’s T-junctions.\n */\nexport function GridChrome({\n children,\n className,\n crosshairs = true,\n fixedRails = true,\n lineStyle = 'dashed',\n maxWidth = 'default',\n style,\n tone = 'default',\n ...props\n}: GridChromeProps) {\n return (\n <GridChromeContext.Provider value={{ crosshairs, fixedRails, lineStyle, maxWidth }}>\n <div\n className={cn('relative isolate flex min-h-svh flex-col', className)}\n data-slot=\"grid-chrome\"\n style={gridChromeStyle({ lineStyle, style, tone })}\n {...props}\n >\n {fixedRails ? (\n <div\n aria-hidden\n className=\"pointer-events-none absolute inset-0 z-[60]\"\n data-slot=\"grid-chrome-rails-root\"\n >\n {/*\n z-60 sits above sticky header (z-50) so backdrop-blur never frosts\n the hairlines. Width is constrained here (not sticky-on-self) so\n max-w + mx-auto stay aligned with the scrollport.\n */}\n <div\n className={cn(\n 'h-full min-h-svh border-y-0 border-[color:var(--a63-grid-line-color)]',\n lineStyle === 'solid' ? 'border-solid' : 'border-dashed',\n containerFrameClassName(maxWidth)\n )}\n data-slot=\"grid-chrome-rails\"\n style={{\n borderLeftWidth: 'var(--a63-grid-hairline-width)',\n borderRightWidth: 'var(--a63-grid-hairline-width)',\n }}\n />\n </div>\n ) : null}\n <div className=\"relative z-1 flex min-h-svh flex-1 flex-col\">{children}</div>\n </div>\n </GridChromeContext.Provider>\n )\n}\n","import type { ComponentPropsWithoutRef } from 'react'\nimport { cn } from '../../lib/cn'\n\n/**\n * Four-point sparkle at a rail / crossbar junction (Firecrawl-style).\n * Decorative — parent should set `aria-hidden`.\n */\nexport function GridCrosshair({\n className,\n ...props\n}: Omit<ComponentPropsWithoutRef<'svg'>, 'children' | 'viewBox'>) {\n return (\n <svg\n className={cn(\n 'size-3 text-[color:var(--a63-grid-crosshair-color,var(--input,var(--a63-border-subtle)))]',\n className\n )}\n fill=\"currentColor\"\n overflow=\"visible\"\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n {/*\n Classic 4-point sparkle (concave sides, tips on the axes). Larger\n viewBox + softer control points so it reads as a star, not a plus.\n */}\n <path d=\"M12 0C12.8 7.2 7.2 12.8 0 12C7.2 12.8 12.8 16.8 12 24C11.2 16.8 16.8 12.8 24 12C16.8 11.2 12.8 7.2 12 0Z\" />\n </svg>\n )\n}\n","import type { ComponentPropsWithoutRef } from 'react'\nimport { cn } from '../../lib/cn'\nimport { containerFrameClassName } from '../max-width'\nimport { useGridChrome } from './chrome'\n\nexport type GridGuidesColumns = 2 | 3 | 4\n\nexport interface GridGuidesProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n /**\n * Number of equal inset vertical columns (draws columns − 1 inner hairlines).\n * @default 3\n */\n columns?: GridGuidesColumns\n}\n\n/**\n * Nested vertical guides inside the chrome width for denser compositions.\n * Hidden below `md` to avoid noise on narrow viewports.\n */\nexport function GridGuides({ className, columns = 3, ...props }: GridGuidesProps) {\n const chrome = useGridChrome()\n const lineStyle = chrome?.lineStyle ?? 'dashed'\n const maxWidth = chrome?.maxWidth ?? 'default'\n const innerLines = Math.max(columns - 1, 0)\n\n return (\n <div\n aria-hidden\n className={cn('pointer-events-none absolute inset-0 z-0 hidden md:block', className)}\n data-slot=\"grid-guides\"\n {...props}\n >\n <div className={cn('relative h-full', containerFrameClassName(maxWidth))}>\n {Array.from({ length: innerLines }, (_, index) => {\n const position = ((index + 1) / columns) * 100\n return (\n <span\n className={cn(\n 'absolute inset-y-0 border-l border-[color:var(--a63-grid-guide-color,var(--input,var(--a63-border-subtle)))]',\n lineStyle === 'solid' ? 'border-solid' : 'border-dashed'\n )}\n data-slot=\"grid-guide\"\n key={position}\n style={{\n borderLeftWidth: 'var(--a63-grid-hairline-width, 1px)',\n left: `${position}%`,\n }}\n />\n )\n })}\n </div>\n </div>\n )\n}\n","import type { ComponentPropsWithoutRef } from 'react'\nimport { cn } from '../../lib/cn'\nimport { containerFrameClassName, containerMaxWidthStyles } from '../max-width'\nimport { useGridChrome } from './chrome'\nimport { GridCrosshair } from './crosshair'\nimport { GRID_HAIRLINE_CENTER_PX } from './hairline'\n\nexport interface GridRuleProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n /**\n * Stretch the hairline across the full scrollport width (crosshairs still sit on the rails).\n * @default false\n */\n bleed?: boolean\n /**\n * Sparkle marks at each rail intersection. Defaults to {@link GridChrome} context, else true.\n */\n crosshairs?: boolean\n}\n\n/**\n * Horizontal section hairline. Optional sparkle crosshairs at the left/right rails.\n */\nexport function GridRule({\n bleed = false,\n className,\n crosshairs: crosshairsProp,\n style,\n ...props\n}: GridRuleProps) {\n const chrome = useGridChrome()\n const crosshairs = crosshairsProp ?? chrome?.crosshairs ?? true\n const lineStyle = chrome?.lineStyle ?? 'dashed'\n const maxWidth = chrome?.maxWidth ?? 'default'\n\n return (\n <div\n aria-hidden\n className={cn('relative w-full', className)}\n data-slot=\"grid-rule\"\n style={{ height: 'var(--a63-grid-hairline-width, 1px)', ...style }}\n {...props}\n >\n <div\n className={cn(\n 'absolute inset-x-0 top-0 border-t border-[color:var(--a63-grid-line-color,var(--input,var(--a63-border-subtle)))]',\n lineStyle === 'solid' ? 'border-solid' : 'border-dashed',\n bleed ? null : cn('mx-auto w-full', containerMaxWidthStyles[maxWidth])\n )}\n data-slot=\"grid-rule-line\"\n style={{\n borderTopWidth: 'var(--a63-grid-hairline-width, 1px)',\n }}\n />\n {crosshairs ? (\n <div\n className={cn(\n 'pointer-events-none absolute inset-x-0 inset-y-0',\n containerFrameClassName(maxWidth)\n )}\n data-slot=\"grid-rule-crosshairs\"\n >\n {/*\n Frame left/right = outer edge of the border-box rails. Sparkle center\n sits on the stroke midline: outerEdge + hairline/2.\n */}\n <GridCrosshair\n className=\"absolute z-1 -translate-x-1/2 -translate-y-1/2\"\n style={{ left: GRID_HAIRLINE_CENTER_PX, top: GRID_HAIRLINE_CENTER_PX }}\n />\n <GridCrosshair\n className=\"absolute z-1 translate-x-1/2 -translate-y-1/2\"\n style={{ right: GRID_HAIRLINE_CENTER_PX, top: GRID_HAIRLINE_CENTER_PX }}\n />\n </div>\n ) : null}\n </div>\n )\n}\n","import type { ReactNode } from 'react'\nimport { cn } from '../lib/cn'\nimport { useGridChrome } from './grid'\nimport { type ContainerMaxWidth, containerFrameClassName } from './max-width'\n\nexport type { ContainerMaxWidth }\n\nexport type ContainerPadding = 'all' | 'x' | 'none'\n\nexport type ContainerChrome = 'none' | 'grid'\n\nexport interface ContainerProps {\n children: ReactNode\n /**\n * In-flow vertical rails (`border-x`). Skipped automatically when nested under\n * {@link GridChrome} with `fixedRails` so lines don’t double up.\n * @default 'none'\n */\n chrome?: ContainerChrome\n className?: string\n maxWidth?: ContainerMaxWidth\n padding?: ContainerPadding\n}\n\nconst paddingStyles: Record<ContainerPadding, string> = {\n all: 'p-6',\n x: 'px-6',\n none: 'p-0',\n}\n\nexport function Container({\n children,\n chrome = 'none',\n maxWidth = 'default',\n padding = 'all',\n className,\n}: ContainerProps) {\n const grid = useGridChrome()\n const showGridBorder = chrome === 'grid' && !grid?.fixedRails\n\n return (\n <div\n className={cn(\n 'flex min-w-0 flex-col gap-8',\n containerFrameClassName(maxWidth),\n paddingStyles[padding],\n showGridBorder &&\n 'relative border-y-0 border-[color:var(--a63-grid-line-color,var(--a63-border-subtle))]',\n showGridBorder && (grid?.lineStyle === 'solid' ? 'border-solid' : 'border-dashed'),\n className\n )}\n data-chrome={showGridBorder ? 'grid' : undefined}\n data-slot=\"container\"\n style={\n showGridBorder\n ? {\n borderLeftWidth: 'var(--a63-grid-hairline-width, 1px)',\n borderRightWidth: 'var(--a63-grid-hairline-width, 1px)',\n }\n : undefined\n }\n >\n {children}\n </div>\n )\n}\n","import type { ReactNode } from 'react'\nimport { cn } from '../lib/cn'\n\nexport interface PageProps {\n children: ReactNode\n className?: string\n id?: string\n noPadding?: boolean\n}\n\nexport function Page({ children, className, id, noPadding = false }: PageProps) {\n return (\n <main\n className={cn('min-h-full', !noPadding && 'pt-8 pb-20', className)}\n data-slot=\"page\"\n id={id}\n >\n {children}\n </main>\n )\n}\n","import type * as React from 'react'\nimport { cn } from '../lib/cn'\n\n/** Minimal loading placeholder (inlined — no @atom63/ui dep). */\nfunction Skeleton({ className }: { className?: string }): React.ReactElement {\n return <div className={cn('bg-muted animate-pulse rounded-md', className)} />\n}\n\nexport const DEFAULT_PAGE_SKELETON_COUNT = 6\n\nexport interface PageSkeletonProps {\n className?: string\n count?: number\n showFilters?: boolean\n showHeader?: boolean\n variant?: 'list' | 'card' | 'grid'\n}\n\nexport function PageSkeleton({\n variant = 'list',\n count = DEFAULT_PAGE_SKELETON_COUNT,\n className,\n showFilters = true,\n showHeader = true,\n}: PageSkeletonProps) {\n const skeletonItems = Array.from({ length: count }, (_, index) => ({\n id: `${variant}-${index + 1}`,\n }))\n\n const renderSkeletonItem = (id: string) => {\n switch (variant) {\n case 'card':\n return (\n <div className=\"space-y-3\" key={`skeleton-card-${id}`}>\n <Skeleton className=\"h-48 w-full rounded-sm\" />\n <div className=\"space-y-2\">\n <Skeleton className=\"h-5 w-3/4 rounded\" />\n <Skeleton className=\"h-4 w-full rounded\" />\n <Skeleton className=\"h-4 w-2/3 rounded\" />\n <div className=\"flex gap-2\">\n <Skeleton className=\"h-6 w-16 rounded\" />\n <Skeleton className=\"h-6 w-20 rounded\" />\n </div>\n </div>\n </div>\n )\n\n case 'grid':\n return (\n <div className=\"space-y-3\" key={`skeleton-grid-${id}`}>\n <Skeleton className=\"aspect-square w-full rounded-sm\" />\n <div className=\"space-y-2\">\n <Skeleton className=\"h-4 w-3/4 rounded\" />\n <Skeleton className=\"h-3 w-1/2 rounded\" />\n </div>\n </div>\n )\n\n default:\n return (\n <div className=\"flex items-center gap-4\" key={`skeleton-list-${id}`}>\n <Skeleton className=\"h-12 w-12 rounded-sm\" />\n <div className=\"flex-1 space-y-3\">\n <Skeleton className=\"h-4 w-full rounded\" />\n <Skeleton className=\"h-4 w-3/4 rounded\" />\n </div>\n </div>\n )\n }\n }\n\n return (\n <div aria-busy=\"true\" className={className} data-slot=\"page-skeleton\">\n {showHeader && (\n <div className=\"mb-8 space-y-4\">\n <Skeleton className=\"h-8 w-48\" />\n <Skeleton className=\"h-5 w-96\" />\n </div>\n )}\n\n {showFilters && (\n <div className=\"mb-8 space-y-4\">\n <div className=\"flex flex-wrap gap-2\">\n <Skeleton className=\"h-9 w-16\" />\n <Skeleton className=\"h-9 w-32\" />\n <Skeleton className=\"h-9 w-48\" />\n <Skeleton className=\"h-9 w-24\" />\n </div>\n <div className=\"flex items-center gap-4\">\n <Skeleton className=\"h-10 w-64\" />\n <Skeleton className=\"h-10 w-32\" />\n </div>\n </div>\n )}\n\n <div\n className={\n variant === 'grid' ? 'grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3' : 'space-y-6'\n }\n >\n {skeletonItems.map(item => renderSkeletonItem(item.id))}\n </div>\n </div>\n )\n}\n","import type { ReactNode } from 'react'\nimport { cn } from '../lib/cn'\n\nexport interface SectionProps {\n children: ReactNode\n className?: string\n gap?: boolean\n id?: string\n removeTopSpacing?: boolean\n spacing?: 'tight' | 'default' | 'loose' | 'generous' | 'spacious'\n}\n\nexport function Section({\n children,\n className,\n id,\n spacing = 'default',\n removeTopSpacing = true,\n gap = true,\n}: SectionProps) {\n const paddingClasses = {\n tight: 'py-8',\n default: 'py-16',\n loose: 'py-16 md:py-20',\n generous: 'py-20 sm:py-28 md:py-32',\n spacious: 'py-24 sm:py-32 md:py-40',\n }\n\n const gapClasses = {\n tight: 'space-y-4',\n default: 'space-y-6',\n loose: 'space-y-8',\n generous: 'space-y-6',\n spacious: 'space-y-8',\n }\n\n return (\n <section\n className={cn(\n paddingClasses[spacing],\n gap && gapClasses[spacing],\n removeTopSpacing && 'pt-0 md:pt-0',\n className\n )}\n data-slot=\"section\"\n id={id}\n >\n {children}\n </section>\n )\n}\n","import { cn } from '../lib/cn'\n\n/** Typography for index-style page heroes (projects, resources, …). */\nexport const pageIndexHeroTitleClassName =\n 'text-balance font-secondary text-4xl tracking-tight md:text-6xl'\n\nexport const pageIndexHeroDescriptionClassName = 'text-lg'\n\nexport type SectionHeaderLevel = 1 | 2 | 3 | 4 | 5 | 6\nexport type SectionHeaderVariant =\n 'display' | 'primary' | 'secondary' | 'muted' | 'subtle' | 'label'\n\nexport interface SectionHeaderProps {\n align?: 'left' | 'center' | 'right'\n className?: string\n description?: string\n descriptionClassName?: string\n /**\n * Semantic heading level for the title. Visual scale is still controlled by\n * `variant`; use this when the surrounding page hierarchy needs a different\n * heading level than the variant default.\n */\n level?: SectionHeaderLevel\n title: string\n titleClassName?: string\n variant?: SectionHeaderVariant\n}\n\nconst headingTags: Record<SectionHeaderLevel, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> = {\n 1: 'h1',\n 2: 'h2',\n 3: 'h3',\n 4: 'h4',\n 5: 'h5',\n 6: 'h6',\n} as const\n\ntype SectionHeaderVariantConfig = {\n DescTag: 'p'\n defaultLevel?: SectionHeaderLevel\n descClass: string\n titleClass: string\n}\n\nexport function SectionHeader({\n title,\n description,\n className,\n titleClassName,\n descriptionClassName,\n level,\n variant = 'primary',\n align = 'left',\n}: SectionHeaderProps) {\n const variantConfig = {\n display: {\n DescTag: 'p' as const,\n titleClass:\n 'max-w-3xl text-balance font-heading font-semibold text-5xl leading-none md:text-6xl',\n descClass:\n 'mt-4 max-w-2xl text-balance text-lg text-muted-foreground leading-relaxed md:text-xl',\n defaultLevel: 1,\n },\n primary: {\n DescTag: 'p' as const,\n titleClass: 'max-w-2xl text-balance font-heading font-semibold text-3xl leading-tight',\n descClass: 'mt-2 max-w-2xl text-balance text-muted-foreground text-base leading-7',\n defaultLevel: 1,\n },\n secondary: {\n DescTag: 'p' as const,\n titleClass: 'max-w-2xl text-balance font-heading font-semibold text-2xl leading-tight',\n descClass: 'mt-2 max-w-xl text-balance text-muted-foreground text-sm leading-6',\n defaultLevel: 2,\n },\n muted: {\n DescTag: 'p' as const,\n titleClass: 'max-w-xl text-balance font-heading font-medium text-lg leading-snug',\n descClass: 'mt-1.5 max-w-lg text-balance text-muted-foreground text-sm leading-6',\n defaultLevel: 3,\n },\n subtle: {\n DescTag: 'p' as const,\n titleClass: 'max-w-lg text-balance font-medium text-base leading-snug text-foreground',\n descClass: 'mt-1 max-w-md text-balance text-muted-foreground text-sm leading-5',\n defaultLevel: 4,\n },\n label: {\n DescTag: 'p' as const,\n titleClass: 'font-medium text-muted-foreground text-xs uppercase tracking-[0.16em]',\n descClass: 'mt-1 max-w-md text-balance text-muted-foreground text-sm leading-5',\n defaultLevel: undefined,\n },\n } satisfies Record<SectionHeaderVariant, SectionHeaderVariantConfig>\n\n const { DescTag, titleClass, descClass, defaultLevel } = variantConfig[variant]\n const titleLevel = level ?? defaultLevel\n const TitleTag = titleLevel ? headingTags[titleLevel] : 'p'\n\n const alignClasses = {\n center: 'mx-auto text-center',\n right: 'ml-auto text-right',\n left: '',\n }\n\n return (\n <div\n className={cn(\n align === 'center' && 'text-center',\n align === 'right' && 'text-right',\n className\n )}\n >\n <TitleTag className={cn(titleClass, alignClasses[align], titleClassName)}>{title}</TitleTag>\n {description && (\n <DescTag className={cn(descClass, alignClasses[align], descriptionClassName)}>\n {description}\n </DescTag>\n )}\n </div>\n )\n}\n","import type { ReactNode } from 'react'\nimport { cn } from '../lib/cn'\n\nexport interface ReaderLayoutProps {\n aside?: ReactNode\n asideClassName?: string\n children: ReactNode\n className?: string\n contentClassName?: string\n /** Keep the aside column even with no aside, so the content measure holds across pages. */\n reserveAside?: boolean\n}\n\nexport function ReaderLayout({\n aside,\n asideClassName,\n children,\n className,\n contentClassName,\n reserveAside = false,\n}: ReaderLayoutProps) {\n return (\n <div className={cn('mx-auto flex w-full max-w-5xl', className)} data-slot=\"reader-layout\">\n <article\n className={cn(\n 'min-w-0 flex-1 space-y-8 px-4 pt-8 pb-8 sm:px-6 lg:px-8 xl:max-w-4xl',\n contentClassName\n )}\n data-slot=\"reader-layout-content\"\n >\n {children}\n </article>\n {aside || reserveAside ? (\n <div\n aria-hidden={aside ? undefined : true}\n className={cn('hidden w-64 shrink-0 px-4 pt-8 xl:block', asideClassName)}\n data-slot=\"reader-layout-aside\"\n >\n {aside}\n </div>\n ) : null}\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import { ReactElement, PointerEvent, VideoHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { M as MediaLightboxLabels, a as MediaLightboxProps, b as MediaLightboxTransition } from '../types-Dxe5IzjE.js';
|
|
4
|
+
export { c as MediaLightboxAppearance, d as MediaLightboxItem, e as MediaLightboxItemKind, f as MediaLightboxVideoSource, g as MediaLightboxVideoTrack } from '../types-Dxe5IzjE.js';
|
|
5
|
+
|
|
6
|
+
declare const clearImageAnimationCache: () => void;
|
|
7
|
+
type AspectRatio = 'auto' | '1/1' | '4/3' | '3/4' | '16/9' | '9/16' | '2/3' | '3/2' | '5/4' | '21/9' | '9/21';
|
|
8
|
+
interface ImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
alt?: string;
|
|
10
|
+
aspectRatio?: AspectRatio;
|
|
11
|
+
className?: string;
|
|
12
|
+
containerClassName?: string;
|
|
13
|
+
decoding?: 'async' | 'sync' | 'auto';
|
|
14
|
+
errorText?: string;
|
|
15
|
+
fallbackText?: string;
|
|
16
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
17
|
+
forceNoLazy?: boolean;
|
|
18
|
+
imageClassName?: string;
|
|
19
|
+
lazy?: boolean;
|
|
20
|
+
onLoad?: () => void;
|
|
21
|
+
onError?: () => void;
|
|
22
|
+
priority?: boolean;
|
|
23
|
+
rootMargin?: string;
|
|
24
|
+
showSkeleton?: boolean;
|
|
25
|
+
skeletonClassName?: string;
|
|
26
|
+
src?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const Image: ({ src, alt, className, imageClassName, aspectRatio, fallbackText, errorText, showSkeleton, skeletonClassName, containerClassName, lazy, rootMargin, priority, forceNoLazy, onLoad, onError, decoding, fetchPriority, ...props }: ImageProps) => React$1.JSX.Element;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* English defaults so the common case needs no wiring. A localized surface
|
|
32
|
+
* passes `labels` and overrides only the pieces it needs.
|
|
33
|
+
*/
|
|
34
|
+
declare const DEFAULT_MEDIA_LIGHTBOX_LABELS: MediaLightboxLabels;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Enlarges media in place: pass the clicked element as `origin` and the media
|
|
38
|
+
* grows out of it instead of appearing somewhere else.
|
|
39
|
+
*
|
|
40
|
+
* Controlled by design — the caller owns `open`, `index`, `origin`, and the
|
|
41
|
+
* light/dark map so the thumbnail and the enlarged view never disagree.
|
|
42
|
+
*
|
|
43
|
+
* This is the default preset: a composition of the headless `Lightbox.*`
|
|
44
|
+
* parts under `./parts`, which carry mechanism and accessibility only. Every
|
|
45
|
+
* pixel of appearance — the glass buttons, the dock, the safe-area padding,
|
|
46
|
+
* the responsive reveal of the side chevrons — lives here.
|
|
47
|
+
*/
|
|
48
|
+
declare function MediaLightbox({ appearance, className, index, items, labels, onAppearanceChange, onExitComplete, onIndexChange, onOpenChange, open, origin, preload, thumbnails, transition, }: MediaLightboxProps): ReactElement | null;
|
|
49
|
+
|
|
50
|
+
type ExcludeRef = {
|
|
51
|
+
readonly current: HTMLElement | null;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Carousel-style pointer cursor for the enlarge target: a plus pill tracks the
|
|
55
|
+
* mouse, the system cursor hides, and touch is ignored so a swipe still looks
|
|
56
|
+
* like a swipe. Pass `excludeRefs` for tile chrome the plus must not cover.
|
|
57
|
+
*/
|
|
58
|
+
declare function useMediaLightboxZoomCursor({ excludeRefs, }?: {
|
|
59
|
+
excludeRefs?: ReadonlyArray<ExcludeRef>;
|
|
60
|
+
}): {
|
|
61
|
+
active: boolean;
|
|
62
|
+
overlay: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
};
|
|
66
|
+
targetProps: {
|
|
67
|
+
'data-zoom-cursor-active'?: '';
|
|
68
|
+
onPointerDown: () => void;
|
|
69
|
+
onPointerLeave: () => void;
|
|
70
|
+
onPointerMove: (event: PointerEvent<HTMLElement>) => void;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
declare function MediaLightboxZoomCursor({ active, x, y, }: {
|
|
74
|
+
active: boolean;
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
}): React$1.JSX.Element;
|
|
78
|
+
|
|
79
|
+
interface UseMediaLightboxOptions {
|
|
80
|
+
/**
|
|
81
|
+
* How open/close morphs. Defaults to `flip` (animate only the photo).
|
|
82
|
+
* `view-transition` snapshots the document — richer crop morph, hitchy on a
|
|
83
|
+
* dense page such as the homepage.
|
|
84
|
+
*/
|
|
85
|
+
morph?: MediaLightboxTransition;
|
|
86
|
+
}
|
|
87
|
+
interface UseMediaLightboxResult {
|
|
88
|
+
index: number;
|
|
89
|
+
isOpen: boolean;
|
|
90
|
+
/** The element the morph grows out of. */
|
|
91
|
+
origin: HTMLElement | null;
|
|
92
|
+
/** Which engine drove the last open/close — pass it straight to `MediaLightbox`. */
|
|
93
|
+
transition: MediaLightboxTransition;
|
|
94
|
+
openAt: (index: number, origin?: HTMLElement | null) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Pass the thumbnail for the item currently on screen. After a swipe that is
|
|
97
|
+
* no longer the one the lightbox opened from, and morphing back to the wrong
|
|
98
|
+
* tile is worse than not morphing at all.
|
|
99
|
+
*/
|
|
100
|
+
close: (origin?: HTMLElement | null) => void;
|
|
101
|
+
setIndex: (index: number) => void;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Open/close/index state for `MediaLightbox`, plus the element the morph runs
|
|
105
|
+
* against and the engine that drives it.
|
|
106
|
+
*
|
|
107
|
+
* The engine choice lives here rather than in the component because a view
|
|
108
|
+
* transition has to *wrap* the state change that mounts the lightbox — by the
|
|
109
|
+
* time the component renders, the browser has already missed its snapshot.
|
|
110
|
+
*/
|
|
111
|
+
declare function useMediaLightbox(itemCount: number, options?: UseMediaLightboxOptions): UseMediaLightboxResult;
|
|
112
|
+
|
|
113
|
+
interface VideoProps extends VideoHTMLAttributes<HTMLVideoElement> {
|
|
114
|
+
/** When true, displays as thumbnail with autoplay, muted, loop, no controls */
|
|
115
|
+
asThumbnail?: boolean;
|
|
116
|
+
className?: string;
|
|
117
|
+
fallbackText?: string;
|
|
118
|
+
sources: Array<{
|
|
119
|
+
src: string;
|
|
120
|
+
type?: string;
|
|
121
|
+
}>;
|
|
122
|
+
}
|
|
123
|
+
declare const Video: React$1.ForwardRefExoticComponent<VideoProps & React$1.RefAttributes<HTMLVideoElement>>;
|
|
124
|
+
|
|
125
|
+
interface VideoSource {
|
|
126
|
+
src: string;
|
|
127
|
+
type?: string;
|
|
128
|
+
}
|
|
129
|
+
interface VideoDialogProps {
|
|
130
|
+
captionsSrc?: string;
|
|
131
|
+
className?: string;
|
|
132
|
+
isOpen: boolean;
|
|
133
|
+
isVimeo?: boolean;
|
|
134
|
+
isYouTube?: boolean;
|
|
135
|
+
onOpenChange: (open: boolean) => void;
|
|
136
|
+
title?: string;
|
|
137
|
+
trigger: ReactElement;
|
|
138
|
+
videoSources?: VideoSource[];
|
|
139
|
+
vimeoId?: string;
|
|
140
|
+
youtubeId?: string;
|
|
141
|
+
}
|
|
142
|
+
declare const VideoDialog: ({ isOpen, onOpenChange, videoSources, title, trigger, className, captionsSrc, vimeoId, isVimeo, youtubeId, isYouTube, }: VideoDialogProps) => ReactElement;
|
|
143
|
+
|
|
144
|
+
interface VideoManagerContextType {
|
|
145
|
+
pauseAllVideos: () => void;
|
|
146
|
+
pauseVideo: (id: string) => void;
|
|
147
|
+
playVideo: (id: string) => void;
|
|
148
|
+
registerIframe: (id: string, iframeElement: HTMLIFrameElement) => void;
|
|
149
|
+
registerVideo: (id: string, videoElement: HTMLVideoElement) => void;
|
|
150
|
+
resumeAllVideos: () => void;
|
|
151
|
+
unregisterIframe: (id: string) => void;
|
|
152
|
+
unregisterVideo: (id: string) => void;
|
|
153
|
+
}
|
|
154
|
+
declare const VideoManagerContext: React$1.Context<VideoManagerContextType | null>;
|
|
155
|
+
interface VideoManagerProviderProps {
|
|
156
|
+
children: ReactNode;
|
|
157
|
+
maxConcurrentVideos?: number;
|
|
158
|
+
}
|
|
159
|
+
declare function VideoManagerProvider({ children, maxConcurrentVideos, }: VideoManagerProviderProps): React$1.JSX.Element;
|
|
160
|
+
declare function useVideoManager(): VideoManagerContextType;
|
|
161
|
+
|
|
162
|
+
type InteractionMode = 'autoplay' | 'lightbox';
|
|
163
|
+
interface VideoModalProps {
|
|
164
|
+
/** Alt text for accessibility */
|
|
165
|
+
alt?: string;
|
|
166
|
+
/** Aspect ratio for the video container */
|
|
167
|
+
aspectRatio?: string;
|
|
168
|
+
/** Additional CSS classes */
|
|
169
|
+
className?: string;
|
|
170
|
+
/** Whether to use Vimeo instead of local video */
|
|
171
|
+
isVimeo?: boolean;
|
|
172
|
+
/** Interaction mode - autoplay starts playing immediately */
|
|
173
|
+
mode?: InteractionMode;
|
|
174
|
+
/** Title for modal dialog */
|
|
175
|
+
title: string;
|
|
176
|
+
/** Video sources for both preview and modal */
|
|
177
|
+
videoSources?: Array<{
|
|
178
|
+
src: string;
|
|
179
|
+
type?: string;
|
|
180
|
+
}>;
|
|
181
|
+
/** Vimeo video ID for external hosting */
|
|
182
|
+
vimeoId?: string;
|
|
183
|
+
/** Vimeo thumbnail URL */
|
|
184
|
+
vimeoThumbnail?: string;
|
|
185
|
+
}
|
|
186
|
+
declare const VideoModal: ({ videoSources, title, className, mode, aspectRatio, alt, vimeoId, isVimeo, vimeoThumbnail, }: VideoModalProps) => React$1.JSX.Element;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* VideoThumbnail — silent autoplay video with lazy loading + fade-in.
|
|
190
|
+
*
|
|
191
|
+
* Matches the Image component's loading behavior:
|
|
192
|
+
* - Lazy: IntersectionObserver pauses when off-screen, plays when ≥25% visible
|
|
193
|
+
* - Fade-in: opacity 0 → 1 transition on first play (matching Image's 400ms reveal)
|
|
194
|
+
* - Reduced motion: never autoplays when prefers-reduced-motion is set
|
|
195
|
+
* - Zero React state for play/pause — refs + one observer + one matchMedia listener
|
|
196
|
+
*
|
|
197
|
+
* The video element has no controls, loops silently, and uses playsInline
|
|
198
|
+
* to prevent fullscreen on mobile (like a GIF-style preview).
|
|
199
|
+
*/
|
|
200
|
+
/** True when the src looks like a video file. */
|
|
201
|
+
declare function isVideoSrc(src?: string): boolean;
|
|
202
|
+
interface VideoThumbnailProps {
|
|
203
|
+
className?: string;
|
|
204
|
+
src: string;
|
|
205
|
+
}
|
|
206
|
+
declare function VideoThumbnail({ src, className }: VideoThumbnailProps): React$1.JSX.Element;
|
|
207
|
+
|
|
208
|
+
export { type AspectRatio, DEFAULT_MEDIA_LIGHTBOX_LABELS, Image, type ImageProps, MediaLightbox, MediaLightboxLabels, MediaLightboxProps, MediaLightboxTransition, MediaLightboxZoomCursor, type UseMediaLightboxOptions, type UseMediaLightboxResult, Video, VideoDialog, type VideoDialogProps, VideoManagerContext, VideoManagerProvider, VideoModal, type VideoProps, VideoThumbnail, clearImageAnimationCache, isVideoSrc, useMediaLightbox, useMediaLightboxZoomCursor, useVideoManager };
|