@almadar/ui 5.25.1 → 5.26.1
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/dist/avl/index.cjs +2210 -2295
- package/dist/avl/index.js +1159 -1244
- package/dist/components/core/atoms/FlipContainer.d.ts +4 -4
- package/dist/components/core/atoms/Icon.d.ts +4 -2
- package/dist/components/core/atoms/ProgressBar.d.ts +1 -1
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +8 -4
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +5 -1
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgNode.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgRing.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgShield.d.ts +6 -2
- package/dist/components/core/atoms/svg/SvgStack.d.ts +6 -2
- package/dist/components/core/atoms/types.d.ts +6 -0
- package/dist/components/core/molecules/ArrayEditor.d.ts +15 -0
- package/dist/components/core/molecules/Carousel.d.ts +8 -2
- package/dist/components/core/molecules/Container.d.ts +4 -4
- package/dist/components/core/molecules/DateRangeSelector.d.ts +3 -4
- package/dist/components/core/molecules/DocSidebar.d.ts +4 -4
- package/dist/components/core/molecules/EdgeDecoration.d.ts +3 -2
- package/dist/components/core/molecules/Flex.d.ts +4 -4
- package/dist/components/core/molecules/FlipCard.d.ts +3 -4
- package/dist/components/core/molecules/GradientDivider.d.ts +3 -2
- package/dist/components/core/molecules/MapEditor.d.ts +16 -0
- package/dist/components/core/molecules/ObjectEditor.d.ts +15 -0
- package/dist/components/core/molecules/SidePanel.d.ts +4 -4
- package/dist/components/core/molecules/SortableList.d.ts +4 -5
- package/dist/components/core/molecules/ViolationAlert.d.ts +4 -9
- package/dist/components/core/molecules/index.d.ts +4 -3
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +44 -2
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +2 -2
- package/dist/components/game/atoms/ResourceCounter.d.ts +3 -2
- package/dist/components/game/atoms/StateIndicator.d.ts +4 -5
- package/dist/components/game/atoms/StatusEffect.d.ts +2 -3
- package/dist/components/game/molecules/ActionButtons.d.ts +6 -0
- package/dist/components/game/molecules/GameHud.d.ts +2 -3
- package/dist/components/game/molecules/StatBadge.d.ts +6 -0
- package/dist/components/game/organisms/puzzles/state-architect/StateJsonView.d.ts +16 -0
- package/dist/components/game/organisms/puzzles/state-architect/index.d.ts +2 -2
- package/dist/components/index.cjs +2458 -2092
- package/dist/components/index.js +1558 -1192
- package/dist/docs/index.cjs +6021 -4606
- package/dist/docs/index.css +1252 -0
- package/dist/docs/index.d.cts +108 -16
- package/dist/docs/index.d.ts +2 -2
- package/dist/docs/index.js +5977 -4567
- package/dist/hooks/index.cjs +9 -2
- package/dist/hooks/index.js +9 -2
- package/dist/marketing/index.cjs +32 -9
- package/dist/marketing/index.d.cts +30 -20
- package/dist/marketing/index.js +32 -9
- package/dist/providers/index.cjs +2035 -2120
- package/dist/providers/index.js +1134 -1219
- package/dist/runtime/index.cjs +2075 -2160
- package/dist/runtime/index.js +1138 -1223
- package/package.json +1 -1
- package/dist/components/core/molecules/CodeViewer.d.ts +0 -70
- package/dist/components/core/molecules/DocCodeBlock.d.ts +0 -14
- package/dist/components/game/organisms/puzzles/state-architect/CodeView.d.ts +0 -24
package/dist/docs/index.d.cts
CHANGED
|
@@ -195,6 +195,28 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
195
195
|
}
|
|
196
196
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Cross-cutting atom-level prop shapes shared across the design system.
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* Canonical semantic color palette. Values are the Tailwind / CSS-var token
|
|
203
|
+
* names that every component in the design system understands. Prefer this
|
|
204
|
+
* over a bare `string` for any `color` or `variant` prop.
|
|
205
|
+
*/
|
|
206
|
+
type ColorToken = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'muted';
|
|
207
|
+
/**
|
|
208
|
+
* Concrete error-state shape read by display components (`error.message`,
|
|
209
|
+
* occasionally `error.stack`). Structurally assignable from the global `Error`,
|
|
210
|
+
* so existing call sites passing an `Error` keep working — this just gives the
|
|
211
|
+
* pattern extractor a readable field schema instead of the opaque `Error` global.
|
|
212
|
+
*/
|
|
213
|
+
type UiError = {
|
|
214
|
+
message: string;
|
|
215
|
+
name?: string;
|
|
216
|
+
code?: string;
|
|
217
|
+
stack?: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
198
220
|
/**
|
|
199
221
|
* Icon Atom Component
|
|
200
222
|
*
|
|
@@ -211,6 +233,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
211
233
|
|
|
212
234
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
213
235
|
type IconAnimation = 'spin' | 'pulse' | 'none';
|
|
236
|
+
|
|
214
237
|
interface IconProps {
|
|
215
238
|
/**
|
|
216
239
|
* Lucide icon component (preferred for type-safe usage), OR a canonical
|
|
@@ -222,8 +245,8 @@ interface IconProps {
|
|
|
222
245
|
name?: string;
|
|
223
246
|
/** Size of the icon */
|
|
224
247
|
size?: IconSize;
|
|
225
|
-
/**
|
|
226
|
-
color?: string;
|
|
248
|
+
/** Semantic palette token or an arbitrary Tailwind color class. */
|
|
249
|
+
color?: ColorToken | string;
|
|
227
250
|
/** Animation type */
|
|
228
251
|
animation?: IconAnimation;
|
|
229
252
|
/** Additional CSS classes */
|
|
@@ -326,10 +349,10 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
326
349
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement>>;
|
|
327
350
|
|
|
328
351
|
/**
|
|
329
|
-
* DocSidebar
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
352
|
+
* DocSidebar — collapsible documentation navigation sidebar.
|
|
353
|
+
* Renders a nested item tree with expand/collapse per category and active-item
|
|
354
|
+
* highlighting. Not a generic nav; it owns doc-site-specific UX (uppercase
|
|
355
|
+
* category headers, indented children, active highlight).
|
|
333
356
|
*/
|
|
334
357
|
|
|
335
358
|
interface DocSidebarItem {
|
|
@@ -414,20 +437,89 @@ declare const DocBreadcrumb: React.FC<DocBreadcrumbProps>;
|
|
|
414
437
|
*/
|
|
415
438
|
declare const CODE_LANGUAGES: readonly ["text", "json", "javascript", "js", "typescript", "ts", "jsx", "tsx", "css", "markdown", "md", "bash", "shell", "sh", "yaml", "yml", "rust", "python", "py", "sql", "diff", "toml", "go", "graphql", "html", "xml", "orb", "lolo"];
|
|
416
439
|
type CodeLanguage = (typeof CODE_LANGUAGES)[number];
|
|
417
|
-
|
|
418
|
-
interface
|
|
419
|
-
|
|
440
|
+
type CodeViewerMode = 'code' | 'diff';
|
|
441
|
+
interface DiffLine {
|
|
442
|
+
type: 'add' | 'remove' | 'context';
|
|
443
|
+
content: string;
|
|
444
|
+
lineNumber?: number;
|
|
445
|
+
}
|
|
446
|
+
interface CodeViewerAction {
|
|
447
|
+
label: string;
|
|
448
|
+
event?: string;
|
|
449
|
+
navigatesTo?: string;
|
|
450
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
451
|
+
}
|
|
452
|
+
interface CodeViewerFile {
|
|
453
|
+
label: string;
|
|
420
454
|
code: string;
|
|
421
|
-
/** Programming language label */
|
|
422
455
|
language?: CodeLanguage;
|
|
423
|
-
|
|
456
|
+
}
|
|
457
|
+
interface CodeBlockProps {
|
|
458
|
+
/** The code content to display */
|
|
459
|
+
code?: string;
|
|
460
|
+
/** Programming language for syntax highlighting */
|
|
461
|
+
language?: CodeLanguage;
|
|
462
|
+
/** Show the copy button */
|
|
463
|
+
showCopyButton?: boolean;
|
|
464
|
+
/** Show the language badge */
|
|
465
|
+
showLanguageBadge?: boolean;
|
|
466
|
+
/** Maximum height before scrolling */
|
|
467
|
+
maxHeight?: string | number;
|
|
468
|
+
/** Enable brace-based code folding of multi-line `{}`/`[]` blocks (default: true). */
|
|
469
|
+
foldable?: boolean;
|
|
470
|
+
/** Additional CSS classes */
|
|
471
|
+
className?: string;
|
|
472
|
+
/**
|
|
473
|
+
* When true, render an editable surface that composes a transparent `Textarea`
|
|
474
|
+
* over a Prism-highlighted overlay. The overlay re-tokenizes on each keystroke
|
|
475
|
+
* (driven from a local mirror of the textarea value), so users see syntax-highlighted
|
|
476
|
+
* code while still being able to type. Folding is skipped in editable mode.
|
|
477
|
+
*
|
|
478
|
+
* History: GAP-51 first-cut shipped plain (no-highlighting) editable text;
|
|
479
|
+
* GAP-77 (2026-04-12) added the Prism overlay layer.
|
|
480
|
+
*
|
|
481
|
+
* Default: false (existing read-only behavior unchanged).
|
|
482
|
+
*/
|
|
483
|
+
editable?: boolean;
|
|
484
|
+
/**
|
|
485
|
+
* GAP-51: called with the new code on every keystroke when `editable === true`.
|
|
486
|
+
* Consumers should debounce + parse downstream — `CodeBlock` does not.
|
|
487
|
+
*/
|
|
488
|
+
onChange?: (code: string) => void;
|
|
489
|
+
/**
|
|
490
|
+
* GAP-80: line-level error/warning highlights for editable mode.
|
|
491
|
+
* Map of 1-based line number → severity. The overlay paints a colored
|
|
492
|
+
* background on each line: error = red, warning = yellow. Pass undefined
|
|
493
|
+
* (default) to disable. The consumer is responsible for computing the
|
|
494
|
+
* path → line map from the schema + validation results.
|
|
495
|
+
*/
|
|
496
|
+
errorLines?: Map<number, 'error' | 'warning'>;
|
|
497
|
+
/** Title shown in the toolbar */
|
|
424
498
|
title?: string;
|
|
425
|
-
/**
|
|
499
|
+
/** Diff or plain-code display mode */
|
|
500
|
+
mode?: CodeViewerMode;
|
|
501
|
+
/** Pre-computed diff lines */
|
|
502
|
+
diff?: readonly DiffLine[];
|
|
503
|
+
/** Old source text — generates diff when combined with newValue */
|
|
504
|
+
oldValue?: string;
|
|
505
|
+
/** New source text — generates diff when combined with oldValue */
|
|
506
|
+
newValue?: string;
|
|
507
|
+
/** Show line numbers in code / diff mode */
|
|
426
508
|
showLineNumbers?: boolean;
|
|
427
|
-
/**
|
|
428
|
-
|
|
509
|
+
/** Enable word-wrap in code / diff mode */
|
|
510
|
+
wordWrap?: boolean;
|
|
511
|
+
/** Multiple files shown as tabs */
|
|
512
|
+
files?: readonly CodeViewerFile[];
|
|
513
|
+
/** Action badges in the toolbar */
|
|
514
|
+
actions?: readonly CodeViewerAction[];
|
|
515
|
+
/** Loading state */
|
|
516
|
+
isLoading?: boolean;
|
|
517
|
+
/** Error state */
|
|
518
|
+
error?: UiError | null;
|
|
519
|
+
/** Show copy button (viewer alias for showCopyButton) */
|
|
520
|
+
showCopy?: boolean;
|
|
429
521
|
}
|
|
430
|
-
declare
|
|
522
|
+
declare const CodeBlock: React.NamedExoticComponent<CodeBlockProps>;
|
|
431
523
|
|
|
432
524
|
interface DocPaginationLink {
|
|
433
525
|
label: string;
|
|
@@ -460,4 +552,4 @@ interface DocSearchProps {
|
|
|
460
552
|
}
|
|
461
553
|
declare function DocSearch({ placeholder, onSearch, className, }: DocSearchProps): react_jsx_runtime.JSX.Element;
|
|
462
554
|
|
|
463
|
-
export { Box, Button, Card, Divider, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, DocCodeBlock, type DocCodeBlockProps, DocPagination, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, HStack, Icon, Input, Typography, VStack };
|
|
555
|
+
export { Box, Button, Card, Divider, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, CodeBlock as DocCodeBlock, type CodeBlockProps as DocCodeBlockProps, DocPagination, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, HStack, Icon, Input, Typography, VStack };
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ export { DocTOC } from '../components/core/molecules/DocTOC';
|
|
|
21
21
|
export type { DocTOCProps, DocTOCItem } from '../components/core/molecules/DocTOC';
|
|
22
22
|
export { DocBreadcrumb } from '../components/core/molecules/DocBreadcrumb';
|
|
23
23
|
export type { DocBreadcrumbProps, DocBreadcrumbItem } from '../components/core/molecules/DocBreadcrumb';
|
|
24
|
-
export { DocCodeBlock } from '../components/core/molecules/
|
|
25
|
-
export type { DocCodeBlockProps } from '../components/core/molecules/
|
|
24
|
+
export { CodeBlock as DocCodeBlock } from '../components/core/molecules/markdown/CodeBlock';
|
|
25
|
+
export type { CodeBlockProps as DocCodeBlockProps } from '../components/core/molecules/markdown/CodeBlock';
|
|
26
26
|
export { DocPagination } from '../components/core/molecules/DocPagination';
|
|
27
27
|
export type { DocPaginationProps } from '../components/core/molecules/DocPagination';
|
|
28
28
|
export { DocSearch } from '../components/core/molecules/DocSearch';
|