@almadar/ui 5.122.14 → 5.124.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.
Files changed (63) hide show
  1. package/dist/{TraitProvider-YkK6tXDw.d.cts → TraitProvider-Ch79cUcb.d.cts} +6 -1
  2. package/dist/{TraitProvider-YkK6tXDw.d.ts → TraitProvider-Ch79cUcb.d.ts} +6 -1
  3. package/dist/{UserContext-bziZwgFL.d.cts → UserContext-BKckAUv7.d.cts} +5 -5
  4. package/dist/{UserContext-bziZwgFL.d.ts → UserContext-BKckAUv7.d.ts} +5 -5
  5. package/dist/avl/index.cjs +354 -234
  6. package/dist/avl/index.js +356 -236
  7. package/dist/components/index.cjs +273 -198
  8. package/dist/components/index.d.cts +18 -12
  9. package/dist/components/index.d.ts +18 -12
  10. package/dist/components/index.js +273 -198
  11. package/dist/context/index.cjs +34 -66
  12. package/dist/context/index.d.cts +1 -1
  13. package/dist/context/index.d.ts +1 -1
  14. package/dist/context/index.js +34 -66
  15. package/dist/hooks/index.cjs +8 -0
  16. package/dist/hooks/index.js +8 -0
  17. package/dist/lib/drawable/three/index.cjs +6 -0
  18. package/dist/lib/drawable/three/index.js +6 -0
  19. package/dist/marketing/index.cjs +7 -0
  20. package/dist/marketing/index.js +7 -0
  21. package/dist/providers/index.cjs +343 -217
  22. package/dist/providers/index.d.cts +6 -6
  23. package/dist/providers/index.d.ts +6 -6
  24. package/dist/providers/index.js +343 -217
  25. package/dist/runtime/index.cjs +347 -227
  26. package/dist/runtime/index.d.cts +4 -2
  27. package/dist/runtime/index.d.ts +4 -2
  28. package/dist/runtime/index.js +349 -229
  29. package/package.json +8 -7
  30. package/themes/_contract.md +2 -0
  31. package/themes/almadar-website.css +3 -3
  32. package/themes/almadar.css +4 -4
  33. package/themes/bloomberg-dense.css +2 -2
  34. package/themes/clay.css +417 -0
  35. package/themes/corporate.css +411 -0
  36. package/themes/game-adventure.css +3 -3
  37. package/themes/game-rpg.css +2 -2
  38. package/themes/game-sci-fi.css +1 -1
  39. package/themes/game-ui-pack.css +2 -2
  40. package/themes/gazette.css +2 -2
  41. package/themes/glass.css +428 -0
  42. package/themes/index.css +9 -13
  43. package/themes/kiosk.css +5 -5
  44. package/themes/linear-clean.css +1 -1
  45. package/themes/minimalist.css +2 -2
  46. package/themes/neon.css +3 -3
  47. package/themes/notion-editorial.css +1 -1
  48. package/themes/prism.css +3 -3
  49. package/themes/retro.css +410 -0
  50. package/themes/terminal.css +1 -1
  51. package/themes/trait-wars.css +8 -8
  52. package/themes/wireframe.css +2 -2
  53. package/themes/arctic.css +0 -235
  54. package/themes/copper.css +0 -235
  55. package/themes/ember.css +0 -238
  56. package/themes/forest.css +0 -238
  57. package/themes/lavender.css +0 -233
  58. package/themes/midnight.css +0 -234
  59. package/themes/ocean.css +0 -238
  60. package/themes/rose.css +0 -233
  61. package/themes/sand.css +0 -234
  62. package/themes/slate.css +0 -233
  63. package/themes/sunset.css +0 -238
@@ -1104,7 +1104,8 @@ declare const TextHighlight: React__default.FC<TextHighlightProps>;
1104
1104
  */
1105
1105
 
1106
1106
  type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "heading" | "subheading" | "body1" | "body2" | "body" | "caption" | "overline" | "small" | "large" | "label";
1107
- type TypographySize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1107
+ /** `none` = no size override the variant's baked size applies. */
1108
+ type TypographySize = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1108
1109
  interface TypographyProps {
1109
1110
  /** Typography variant */
1110
1111
  variant?: TypographyVariant;
@@ -1114,8 +1115,8 @@ interface TypographyProps {
1114
1115
  color?: "primary" | "secondary" | "muted" | "error" | "success" | "warning" | "inherit";
1115
1116
  /** Text alignment */
1116
1117
  align?: "left" | "center" | "right";
1117
- /** Font weight override */
1118
- weight?: "light" | "normal" | "medium" | "semibold" | "bold";
1118
+ /** Font weight override — `none` = no override, the variant's baked weight applies */
1119
+ weight?: "none" | "light" | "normal" | "medium" | "semibold" | "bold";
1119
1120
  /** Font size override */
1120
1121
  size?: TypographySize;
1121
1122
  /** Truncate with ellipsis (single line) */
@@ -4005,6 +4006,10 @@ interface FilterGroupProps {
4005
4006
  isLoading?: boolean;
4006
4007
  /** Layer 2 visual treatment — orthogonal to the semantic variant. */
4007
4008
  look?: FilterGroupLook;
4009
+ /** Declarative filter event — emits UI:{event} via eventBus on filter change (alongside canonical UI:FILTER) */
4010
+ event?: EventKey;
4011
+ /** Declarative clear event — emits UI:{clearEvent} via eventBus on clear-all (alongside canonical UI:CLEAR_FILTERS) */
4012
+ clearEvent?: EventKey;
4008
4013
  }
4009
4014
  /**
4010
4015
  * FilterGroup - Renders filter controls for entity data
@@ -4683,11 +4688,8 @@ interface SearchInputProps extends Omit<React__default.InputHTMLAttributes<HTMLI
4683
4688
  * Additional CSS classes
4684
4689
  */
4685
4690
  className?: string;
4686
- /**
4687
- * Event name to dispatch on search (schema metadata, wired by trait)
4688
- * This is metadata used by the trait generator, not by the component.
4689
- */
4690
- event?: string;
4691
+ /** Declarative search event — emits UI:{event} via eventBus on query submit (alongside canonical UI:SEARCH) */
4692
+ event?: EventKey;
4691
4693
  /**
4692
4694
  * Entity type for context-aware search.
4693
4695
  * When provided, search events include entity context.
@@ -6321,8 +6323,12 @@ interface DataGridField {
6321
6323
  interface DataGridItemAction {
6322
6324
  /** Button label */
6323
6325
  label: string;
6324
- /** Event name to emit (dispatched as UI:{event} with { row: itemData }) */
6325
- event: EventKey;
6326
+ /** Event name to emit (dispatched as UI:{event} with { row: itemData }).
6327
+ * Optional when `navigatesTo` is set — a navigating action never emits. */
6328
+ event?: EventKey;
6329
+ /** Route to navigate to instead of emitting — `{{row.field}}`
6330
+ * placeholders interpolate from the item row (CardGrid's contract). */
6331
+ navigatesTo?: string;
6326
6332
  /** Lucide icon name or component */
6327
6333
  icon?: IconInput;
6328
6334
  /** Button variant */
@@ -6379,8 +6385,8 @@ interface DataGridProps extends DataDndProps {
6379
6385
  loadMoreEvent?: EventKey;
6380
6386
  /** Whether more items are available for infinite scroll */
6381
6387
  hasMore?: boolean;
6382
- /** Render prop for custom per-card content. When provided, `fields` and
6383
- * `itemActions` are ignored. */
6388
+ /** Render prop for custom per-card content. When provided, `fields` are
6389
+ * ignored; `itemActions` render as a footer beneath the custom content. */
6384
6390
  children?: (item: EntityRow, index: number) => React__default.ReactNode;
6385
6391
  /**
6386
6392
  * Per-item render function (schema-level alias for children render prop).
@@ -1104,7 +1104,8 @@ declare const TextHighlight: React__default.FC<TextHighlightProps>;
1104
1104
  */
1105
1105
 
1106
1106
  type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "heading" | "subheading" | "body1" | "body2" | "body" | "caption" | "overline" | "small" | "large" | "label";
1107
- type TypographySize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1107
+ /** `none` = no size override the variant's baked size applies. */
1108
+ type TypographySize = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
1108
1109
  interface TypographyProps {
1109
1110
  /** Typography variant */
1110
1111
  variant?: TypographyVariant;
@@ -1114,8 +1115,8 @@ interface TypographyProps {
1114
1115
  color?: "primary" | "secondary" | "muted" | "error" | "success" | "warning" | "inherit";
1115
1116
  /** Text alignment */
1116
1117
  align?: "left" | "center" | "right";
1117
- /** Font weight override */
1118
- weight?: "light" | "normal" | "medium" | "semibold" | "bold";
1118
+ /** Font weight override — `none` = no override, the variant's baked weight applies */
1119
+ weight?: "none" | "light" | "normal" | "medium" | "semibold" | "bold";
1119
1120
  /** Font size override */
1120
1121
  size?: TypographySize;
1121
1122
  /** Truncate with ellipsis (single line) */
@@ -4005,6 +4006,10 @@ interface FilterGroupProps {
4005
4006
  isLoading?: boolean;
4006
4007
  /** Layer 2 visual treatment — orthogonal to the semantic variant. */
4007
4008
  look?: FilterGroupLook;
4009
+ /** Declarative filter event — emits UI:{event} via eventBus on filter change (alongside canonical UI:FILTER) */
4010
+ event?: EventKey;
4011
+ /** Declarative clear event — emits UI:{clearEvent} via eventBus on clear-all (alongside canonical UI:CLEAR_FILTERS) */
4012
+ clearEvent?: EventKey;
4008
4013
  }
4009
4014
  /**
4010
4015
  * FilterGroup - Renders filter controls for entity data
@@ -4683,11 +4688,8 @@ interface SearchInputProps extends Omit<React__default.InputHTMLAttributes<HTMLI
4683
4688
  * Additional CSS classes
4684
4689
  */
4685
4690
  className?: string;
4686
- /**
4687
- * Event name to dispatch on search (schema metadata, wired by trait)
4688
- * This is metadata used by the trait generator, not by the component.
4689
- */
4690
- event?: string;
4691
+ /** Declarative search event — emits UI:{event} via eventBus on query submit (alongside canonical UI:SEARCH) */
4692
+ event?: EventKey;
4691
4693
  /**
4692
4694
  * Entity type for context-aware search.
4693
4695
  * When provided, search events include entity context.
@@ -6321,8 +6323,12 @@ interface DataGridField {
6321
6323
  interface DataGridItemAction {
6322
6324
  /** Button label */
6323
6325
  label: string;
6324
- /** Event name to emit (dispatched as UI:{event} with { row: itemData }) */
6325
- event: EventKey;
6326
+ /** Event name to emit (dispatched as UI:{event} with { row: itemData }).
6327
+ * Optional when `navigatesTo` is set — a navigating action never emits. */
6328
+ event?: EventKey;
6329
+ /** Route to navigate to instead of emitting — `{{row.field}}`
6330
+ * placeholders interpolate from the item row (CardGrid's contract). */
6331
+ navigatesTo?: string;
6326
6332
  /** Lucide icon name or component */
6327
6333
  icon?: IconInput;
6328
6334
  /** Button variant */
@@ -6379,8 +6385,8 @@ interface DataGridProps extends DataDndProps {
6379
6385
  loadMoreEvent?: EventKey;
6380
6386
  /** Whether more items are available for infinite scroll */
6381
6387
  hasMore?: boolean;
6382
- /** Render prop for custom per-card content. When provided, `fields` and
6383
- * `itemActions` are ignored. */
6388
+ /** Render prop for custom per-card content. When provided, `fields` are
6389
+ * ignored; `itemActions` render as a footer beneath the custom content. */
6384
6390
  children?: (item: EntityRow, index: number) => React__default.ReactNode;
6385
6391
  /**
6386
6392
  * Per-item render function (schema-level alias for children render prop).