@exponential-at/ui 0.0.0-stage → 0.1.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 (251) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +54 -0
  3. package/README.md +360 -2
  4. package/catalog/a11y.json +668 -0
  5. package/catalog/basic-map.json +104 -0
  6. package/catalog/code.json +58 -0
  7. package/catalog/core.catalog.json +4752 -0
  8. package/catalog/core.schema.json +22667 -0
  9. package/catalog/host.json +64 -0
  10. package/catalog/layout.json +20 -0
  11. package/catalog/limits.json +9 -0
  12. package/catalog/locale.json +48 -0
  13. package/catalog/macros.json +3417 -0
  14. package/catalog/recipes.json +61 -0
  15. package/catalog/strings.json +72 -0
  16. package/catalog/style.json +128 -0
  17. package/catalog/theme.schema.json +42543 -0
  18. package/catalog/tokens.json +47 -0
  19. package/conformance/README.md +217 -0
  20. package/conformance/baseline.ts +101 -0
  21. package/conformance/browser-page.ts +146 -0
  22. package/conformance/browser-suites.ts +683 -0
  23. package/conformance/compare.ts +201 -0
  24. package/conformance/dom.ts +96 -0
  25. package/conformance/dump.ts +163 -0
  26. package/conformance/fonts.json +154 -0
  27. package/conformance/manifest.json +224 -0
  28. package/conformance/parity-compare.ts +191 -0
  29. package/conformance/parity-report.schema.json +73 -0
  30. package/conformance/parity.ts +412 -0
  31. package/conformance/pixel.ts +177 -0
  32. package/conformance/primitives-page.ts +49 -0
  33. package/conformance/report.schema.json +66 -0
  34. package/conformance/run.ts +118 -0
  35. package/dist/chunks/index-98npjvsd.js +3940 -0
  36. package/dist/chunks/index-98npjvsd.js.map +27 -0
  37. package/dist/chunks/index-gwkt14w3.js +7314 -0
  38. package/dist/chunks/index-gwkt14w3.js.map +10 -0
  39. package/dist/chunks/index-njt7yzzm.js +134 -0
  40. package/dist/chunks/index-njt7yzzm.js.map +9 -0
  41. package/dist/chunks/index-we7va6v6.js +7984 -0
  42. package/dist/chunks/index-we7va6v6.js.map +15 -0
  43. package/dist/chunks/index-xrm6f7wc.js +2563 -0
  44. package/dist/chunks/index-xrm6f7wc.js.map +10 -0
  45. package/dist/conformance.js +182749 -0
  46. package/dist/conformance.js.map +10 -0
  47. package/dist/entries/prompt.js +251 -0
  48. package/dist/entries/prompt.js.map +11 -0
  49. package/dist/entries/schema.js +1725 -0
  50. package/dist/entries/schema.js.map +11 -0
  51. package/dist/host/index.js +122 -0
  52. package/dist/host/index.js.map +9 -0
  53. package/dist/index.js +3213 -0
  54. package/dist/index.js.map +27 -0
  55. package/dist/types/src/a11y.d.ts +21 -0
  56. package/dist/types/src/animation.d.ts +76 -0
  57. package/dist/types/src/basic-map.d.ts +38 -0
  58. package/dist/types/src/builder.d.ts +50 -0
  59. package/dist/types/src/catalog.d.ts +54 -0
  60. package/dist/types/src/catalog.described.d.ts +33 -0
  61. package/dist/types/src/catalog.generated.d.ts +829 -0
  62. package/dist/types/src/chart.d.ts +46 -0
  63. package/dist/types/src/code.d.ts +44 -0
  64. package/dist/types/src/color.d.ts +20 -0
  65. package/dist/types/src/conformance.d.ts +39 -0
  66. package/dist/types/src/connector/app.d.ts +14 -0
  67. package/dist/types/src/connector/connector.d.ts +77 -0
  68. package/dist/types/src/connector/index.d.ts +4 -0
  69. package/dist/types/src/css.d.ts +29 -0
  70. package/dist/types/src/define.d.ts +66 -0
  71. package/dist/types/src/direction.d.ts +16 -0
  72. package/dist/types/src/dynamic.d.ts +159 -0
  73. package/dist/types/src/entries/prompt.d.ts +11 -0
  74. package/dist/types/src/entries/schema.d.ts +8 -0
  75. package/dist/types/src/expr.d.ts +71 -0
  76. package/dist/types/src/extension.d.ts +4 -0
  77. package/dist/types/src/format.d.ts +112 -0
  78. package/dist/types/src/geometry.d.ts +40 -0
  79. package/dist/types/src/host/contract.d.ts +188 -0
  80. package/dist/types/src/host/decoders.d.ts +61 -0
  81. package/dist/types/src/host/index.d.ts +11 -0
  82. package/dist/types/src/host/package.d.ts +58 -0
  83. package/dist/types/src/host/policy.d.ts +105 -0
  84. package/dist/types/src/host/router.d.ts +34 -0
  85. package/dist/types/src/host/runtime.d.ts +205 -0
  86. package/dist/types/src/host/sources.d.ts +15 -0
  87. package/dist/types/src/host/transports.d.ts +109 -0
  88. package/dist/types/src/index.d.ts +63 -0
  89. package/dist/types/src/layout.d.ts +20 -0
  90. package/dist/types/src/limits.d.ts +21 -0
  91. package/dist/types/src/list.d.ts +133 -0
  92. package/dist/types/src/locale.d.ts +22 -0
  93. package/dist/types/src/macros.d.ts +29 -0
  94. package/dist/types/src/overlay.d.ts +27 -0
  95. package/dist/types/src/prompt.d.ts +44 -0
  96. package/dist/types/src/recipes.d.ts +17 -0
  97. package/dist/types/src/reducer.d.ts +41 -0
  98. package/dist/types/src/resizable.d.ts +38 -0
  99. package/dist/types/src/schema.d.ts +7 -0
  100. package/dist/types/src/strings.d.ts +13 -0
  101. package/dist/types/src/style.d.ts +201 -0
  102. package/dist/types/src/test-preload.d.ts +1 -0
  103. package/dist/types/src/text-shimmer.d.ts +24 -0
  104. package/dist/types/src/theme-types.d.ts +162 -0
  105. package/dist/types/src/theme.d.ts +73 -0
  106. package/dist/types/src/themes.d.ts +22 -0
  107. package/dist/types/src/tree-guides.d.ts +17 -0
  108. package/dist/types/src/types.d.ts +314 -0
  109. package/dist/types/src/validate.d.ts +31 -0
  110. package/dist/types/src/web/base-css.d.ts +1 -0
  111. package/dist/types/src/web/box-css.d.ts +55 -0
  112. package/dist/types/src/web/coerce.d.ts +32 -0
  113. package/dist/types/src/web/data.d.ts +105 -0
  114. package/dist/types/src/web/dates.d.ts +12 -0
  115. package/dist/types/src/web/form.d.ts +44 -0
  116. package/dist/types/src/web/host-types.d.ts +119 -0
  117. package/dist/types/src/web/index.d.ts +28 -0
  118. package/dist/types/src/web/inputs.d.ts +55 -0
  119. package/dist/types/src/web/list.d.ts +13 -0
  120. package/dist/types/src/web/listbox.d.ts +14 -0
  121. package/dist/types/src/web/markdown.d.ts +96 -0
  122. package/dist/types/src/web/media.d.ts +62 -0
  123. package/dist/types/src/web/parts.d.ts +4 -0
  124. package/dist/types/src/web/primitives/alert-dialog.d.ts +10 -0
  125. package/dist/types/src/web/primitives/alert.d.ts +9 -0
  126. package/dist/types/src/web/primitives/avatar-color.d.ts +2 -0
  127. package/dist/types/src/web/primitives/avatar.d.ts +13 -0
  128. package/dist/types/src/web/primitives/badge.d.ts +10 -0
  129. package/dist/types/src/web/primitives/breadcrumb.d.ts +10 -0
  130. package/dist/types/src/web/primitives/button.d.ts +6 -0
  131. package/dist/types/src/web/primitives/calendar.d.ts +43 -0
  132. package/dist/types/src/web/primitives/card.d.ts +9 -0
  133. package/dist/types/src/web/primitives/checkbox.d.ts +5 -0
  134. package/dist/types/src/web/primitives/choice-tiles.d.ts +32 -0
  135. package/dist/types/src/web/primitives/cn.d.ts +3 -0
  136. package/dist/types/src/web/primitives/code-block.d.ts +24 -0
  137. package/dist/types/src/web/primitives/command.d.ts +134 -0
  138. package/dist/types/src/web/primitives/context-ring.d.ts +24 -0
  139. package/dist/types/src/web/primitives/dialog-arms.d.ts +6 -0
  140. package/dist/types/src/web/primitives/dialog.d.ts +24 -0
  141. package/dist/types/src/web/primitives/disclosure-header.d.ts +5 -0
  142. package/dist/types/src/web/primitives/dock.d.ts +42 -0
  143. package/dist/types/src/web/primitives/dropdown-menu.d.ts +14 -0
  144. package/dist/types/src/web/primitives/empty-state.d.ts +15 -0
  145. package/dist/types/src/web/primitives/glass-card.d.ts +4 -0
  146. package/dist/types/src/web/primitives/hover-card.d.ts +7 -0
  147. package/dist/types/src/web/primitives/icon-disc.d.ts +12 -0
  148. package/dist/types/src/web/primitives/index.d.ts +48 -0
  149. package/dist/types/src/web/primitives/input.d.ts +5 -0
  150. package/dist/types/src/web/primitives/kbd.d.ts +4 -0
  151. package/dist/types/src/web/primitives/label.d.ts +3 -0
  152. package/dist/types/src/web/primitives/menu-surface.d.ts +17 -0
  153. package/dist/types/src/web/primitives/meter.d.ts +21 -0
  154. package/dist/types/src/web/primitives/popover.d.ts +3 -0
  155. package/dist/types/src/web/primitives/progress-ring.d.ts +5 -0
  156. package/dist/types/src/web/primitives/progress.d.ts +8 -0
  157. package/dist/types/src/web/primitives/scroll-area.d.ts +49 -0
  158. package/dist/types/src/web/primitives/segmented-control.d.ts +5 -0
  159. package/dist/types/src/web/primitives/select.d.ts +47 -0
  160. package/dist/types/src/web/primitives/separator.d.ts +3 -0
  161. package/dist/types/src/web/primitives/sheet-chrome.d.ts +4 -0
  162. package/dist/types/src/web/primitives/sheet.d.ts +20 -0
  163. package/dist/types/src/web/primitives/skeleton.d.ts +3 -0
  164. package/dist/types/src/web/primitives/spinner.d.ts +3 -0
  165. package/dist/types/src/web/primitives/switch.d.ts +4 -0
  166. package/dist/types/src/web/primitives/table.d.ts +11 -0
  167. package/dist/types/src/web/primitives/tabs.d.ts +13 -0
  168. package/dist/types/src/web/primitives/textarea.d.ts +3 -0
  169. package/dist/types/src/web/primitives/toast.d.ts +163 -0
  170. package/dist/types/src/web/primitives/tooltip.d.ts +3 -0
  171. package/dist/types/src/web/primitives/truncate.d.ts +7 -0
  172. package/dist/types/src/web/primitives/typeahead-portal.d.ts +12 -0
  173. package/dist/types/src/web/share.d.ts +6 -0
  174. package/dist/types/src/web/table.d.ts +20 -0
  175. package/dist/types/src/web/theme-css.d.ts +69 -0
  176. package/dist/types/src/web/urls.d.ts +21 -0
  177. package/dist/web/index.js +2303 -0
  178. package/dist/web/index.js.map +26 -0
  179. package/dist/web/primitives/index.js +1450 -0
  180. package/dist/web/primitives/index.js.map +57 -0
  181. package/docs/components.generated.json +6238 -0
  182. package/docs/round-1-contract.md +679 -0
  183. package/docs/round-2-contract.md +476 -0
  184. package/docs/round-3-contract.md +174 -0
  185. package/docs/themes.generated.json +3503 -0
  186. package/fixtures/animations.json +2890 -0
  187. package/fixtures/bench-list.json +58 -0
  188. package/fixtures/bind-time.json +30664 -0
  189. package/fixtures/catalog-basic-map.json +1692 -0
  190. package/fixtures/catalog-components.json +9323 -0
  191. package/fixtures/catalog-extension.json +620 -0
  192. package/fixtures/catalog-macros.json +36370 -0
  193. package/fixtures/code-tokens.json +1993 -0
  194. package/fixtures/conformance-baseline.json +55544 -0
  195. package/fixtures/conformance-cases.json +49 -0
  196. package/fixtures/conformance-known.json +2123 -0
  197. package/fixtures/control-geometry.json +4200 -0
  198. package/fixtures/dashboard.data.json +74 -0
  199. package/fixtures/dashboard.json +752 -0
  200. package/fixtures/demo-surface.json +47 -0
  201. package/fixtures/format.json +870 -0
  202. package/fixtures/host-policy.json +1067 -0
  203. package/fixtures/host-router.json +1152 -0
  204. package/fixtures/host-transport.json +590 -0
  205. package/fixtures/interactions-round1.json +773 -0
  206. package/fixtures/kitchen-sink.expanded.json +10844 -0
  207. package/fixtures/kitchen-sink.json +3049 -0
  208. package/fixtures/layout-geometry-round1.json +7278 -0
  209. package/fixtures/layout-geometry.json +2072 -0
  210. package/fixtures/overlay-geometry.json +272 -0
  211. package/fixtures/primitive-specimens.json +58 -0
  212. package/fixtures/prompt-budget.json +33 -0
  213. package/fixtures/resizable.json +714 -0
  214. package/fixtures/round4-contract.json +2985 -0
  215. package/fixtures/specimens.json +9832 -0
  216. package/fixtures/style-conditions.json +336 -0
  217. package/fixtures/template-items.json +2215 -0
  218. package/fixtures/text-direction.json +309 -0
  219. package/fixtures/text-shimmer.json +96 -0
  220. package/fixtures/theme-extends.json +573 -0
  221. package/fixtures/theme-invalid.json +1296 -0
  222. package/fixtures/theme-recipes.json +58600 -0
  223. package/fixtures/theme-resolved.json +23949 -0
  224. package/fixtures/toast-stack.json +215 -0
  225. package/fixtures/tree-guides.json +224 -0
  226. package/fixtures/virtual-list.json +733 -0
  227. package/generated/ExponentialUICatalog.generated.kt +67 -0
  228. package/generated/ExponentialUICatalog.generated.swift +67 -0
  229. package/generated/ExponentialUIThemes.generated.kt +23 -0
  230. package/generated/ExponentialUIThemes.generated.swift +23 -0
  231. package/generated/catalog.descriptions.generated.rs +6 -0
  232. package/generated/catalog.generated.rs +80 -0
  233. package/generated/catalog.themes.generated.rs +34 -0
  234. package/generated/core.descriptions.json +2505 -0
  235. package/generated/core.runtime.json +3609 -0
  236. package/package.json +87 -4
  237. package/themes/exponential.recipes.json +49 -0
  238. package/themes/exponential.theme.json +755 -0
  239. package/themes/neutral.theme.json +5676 -0
  240. package/themes/orange.theme.json +43 -0
  241. package/themes/playful.theme.json +219 -0
  242. package/vendor/a2ui/LICENSE.txt +203 -0
  243. package/vendor/a2ui/README.md +27 -0
  244. package/vendor/a2ui/v0_9/basic_catalog.json +1387 -0
  245. package/vendor/a2ui/v0_9/basic_catalog_rules.txt +5 -0
  246. package/vendor/a2ui/v0_9/client_capabilities.json +97 -0
  247. package/vendor/a2ui/v0_9/client_to_server.json +104 -0
  248. package/vendor/a2ui/v0_9/common_types.json +315 -0
  249. package/vendor/a2ui/v0_9/server_to_client.json +132 -0
  250. package/vendor/json-render/LICENSE.txt +201 -0
  251. package/vendor/json-render/README.md +13 -0
@@ -0,0 +1,3417 @@
1
+ {
2
+ "$comment": "VAPP-85: the ONE declarative macro table. A macro component (core.catalog.json `kind: macro`) expands into this template before painting; the TS reference expander (src/macros.ts) and the Rust core apply the same table and fixtures/catalog-macros.json locks the output. Template node = { part, component, props?, style?, children?, slots?, $if?, $any?, $each?, $as?, $on?, $context?, $set?, $recipe?, $a11y? }. Values: `\"{props.x}\"` alone = the raw prop (a data BINDING passes through untouched, so two-way binding survives); `\"{props.x|fallback}\"` = with a default; `{…}` inside a longer string interpolates; `{id}` = the macro node's id; `{len(props.rows)}` = an array length; `{range(props.max|5)}` = the indexes 0..n-1 (for `$each`); `{index}` = the current $each index; `{!path}` negates. Value objects: $map {from, cases, default}, $cond [condition, then, else], $eq [a, b] (a number equals a string spelling it), $lt [a, b], $add [a, b], $sub [a, b], $clamp [value, min, max] (a missing bound does not clamp), $percent [value, max] (→ \"N%\"), $coalesce [a, b, …], $text value (→ the value as a string, absent when missing), $not condition, $fill [template, {name: value}] (ALWAYS emits the core `fill` call: the template is usually a `$string.<id>` sentence with `{name}` placeholders the surface's string table resolves at bind time). Object KEYS interpolate too (`\"@media (max-width: $breakpoint.{props.collapseBelow|md})\"`). `$if` = a condition or an array of conditions (all must hold); `$any` = an array where one must hold. `$each` repeats a part per item of an array (`$as` names the item, default `item`). Children: `\"$children\"` splices the author's children, `\"$slot:name\"` splices an author slot in place; `slots: {\"trigger\": \"$slot:trigger\"}` copies an author slot, `slots: {\"footer\": {template node}}` builds one as a part. `$on: {\"press\": \"change\"}` routes the author's `on.change` handler to this part's `press` (merging `$context` into an event action's context); without `$on` the author's `on` map stays on the root. `$set: {\"press\": {\"prop\": \"open\", \"value\": \"{!props.open}\"}}` = TWO-WAY BINDING (round 1): when the author's `props.open` is a data binding `{path}`, this part's `press` action also carries `functionCall: {call: \"set\", args: {path, value}}` (the value evaluated like any template value, so usually a call), key order `event` then `functionCall`; a literal prop adds nothing (the host owns the state through the routed event); when the author's routed handler is itself a FUNCTION (an Action carries one), it wins, no `set` is added and the reducer reports an issue. `$a11y: {role, label, description, level, expanded, current, selected, pressed, checked, valueNow, valueMin, valueMax, hidden, autoFocus}` = the part's ACCESSIBILITY (docs/round-1-contract.md §6): evaluated like props (a bound input emits a call) into the expanded node's `accessibility`; `role` is one of catalog/a11y.json `roles`; on the root the author's `accessibility` label/description win. Ids: the root keeps the author's id, parts get `<id>.<part>` and `<id>.<part>.<index>` under `$each`. Every expanded node carries `recipe: {macro, part, props}` where props = `recipeProps` evaluated from the author's props (+ a part's `$recipe`); the THEME (VAPP-92) keys its visual recipes on that, so nothing here states a colour, a border or a font — only structure and token-named spacing, radius and control heights. Macros may use other macros (Row → TreeGuides); expansion recurses until every node is native (innermost recipe wins). ROUND 1 (docs/round-1-contract.md §1, BOUND INPUTS): when an expression input is a data binding `{path}` or a function call, the expander does NOT evaluate — it EMITS an A2UI function call the renderer evaluates at bind time, over the core functions: interpolation → concat, `|fallback` → fallback (as an operand; a whole-string MEMBER of props/style/context passes the binding itself through, so two-way binding survives), `!` → not, len → len, $map → map, $cond → cond, $eq → eq, $lt → lt, $add → add, $sub → sub, $percent → percent, $text → text, $coalesce → coalesce, $not → not; a `$if`/`$any` whose conditions are bound emits the part WITH `visible` = the bound condition (`and{values}` over several bound `$if`s, `or{values}` over several bound `$any`s; literal conditions still decide at expansion); `$each` over a bound array emits nothing (use List with a template); a `$recipe` value may therefore be a call too (renderers resolve recipe props like props). RESPONSIVE PROPS: an author prop `{base, sm?, md?, lg?, xl?}` on a `responsive` prop is evaluated per breakpoint: a part's style is computed with the `base` values, then once per breakpoint named (ascending sm<md<lg<xl, each key inheriting the last smaller one) and every key that changed lands in a `\"@media (min-width: $breakpoint.<bp>)\"` block of that part; props and conditions see the `base` value. Strings of the form `$string.<id>` (catalog/strings.json) are built-in UI copy the renderer shows in the surface locale. Round 3 (VAPP-102): AFTER the table is applied the core runs ONE post-expansion pass, src/tree-guides.ts applyTreeGuides (Rust: tree_guides::apply): over every node's children in order, each Row root (`recipe.macro` Row, part root) contributes its numeric `recipe.props.depth` (anything else counts as depth 0 and ends every subtree), the ×4 treeGuides rule (elbow at depth-1, tee while a later sibling follows, pass-through for every ancestor level that continues) fills the Row's `guides` part (a TreeGuides) with `elbowAt`/`tee`/`passThrough`; fixtures/tree-guides.json locks the rule, catalog-macros.json the filled trees.",
3
+ "macros": {
4
+ "Stack": {
5
+ "recipeProps": [],
6
+ "root": {
7
+ "part": "root",
8
+ "component": "Box",
9
+ "style": {
10
+ "display": "flex",
11
+ "flexDirection": {
12
+ "$map": {
13
+ "from": "props.direction",
14
+ "cases": {
15
+ "horizontal": "row"
16
+ },
17
+ "default": "column"
18
+ }
19
+ },
20
+ "flexWrap": {
21
+ "$cond": [
22
+ "props.wrap",
23
+ "wrap",
24
+ "nowrap"
25
+ ]
26
+ },
27
+ "gap": "$spacing.{props.gap|md}",
28
+ "alignItems": {
29
+ "$coalesce": [
30
+ "{props.align}",
31
+ {
32
+ "$map": {
33
+ "from": "props.direction",
34
+ "cases": {
35
+ "horizontal": "center"
36
+ },
37
+ "default": "stretch"
38
+ }
39
+ }
40
+ ]
41
+ },
42
+ "justifyContent": {
43
+ "$map": {
44
+ "from": "props.justify",
45
+ "cases": {
46
+ "between": "space-between",
47
+ "around": "space-around",
48
+ "evenly": "space-evenly"
49
+ },
50
+ "default": "{props.justify|start}"
51
+ }
52
+ }
53
+ },
54
+ "children": [
55
+ "$children"
56
+ ]
57
+ }
58
+ },
59
+ "Grid": {
60
+ "recipeProps": [],
61
+ "root": {
62
+ "part": "root",
63
+ "component": "Box",
64
+ "style": {
65
+ "display": "grid",
66
+ "gridTemplateColumns": "repeat({props.columns|2}, minmax(0, 1fr))",
67
+ "gap": "$spacing.{props.gap|md}"
68
+ },
69
+ "children": [
70
+ "$children"
71
+ ]
72
+ }
73
+ },
74
+ "Card": {
75
+ "recipeProps": [],
76
+ "root": {
77
+ "part": "root",
78
+ "component": "Box",
79
+ "$a11y": {
80
+ "role": "group",
81
+ "label": "{props.title}"
82
+ },
83
+ "style": {
84
+ "display": "flex",
85
+ "flexDirection": "column",
86
+ "borderRadius": "$radius.xl",
87
+ "overflow": "hidden"
88
+ },
89
+ "children": [
90
+ {
91
+ "part": "header",
92
+ "component": "Box",
93
+ "$any": [
94
+ "props.title",
95
+ "props.description"
96
+ ],
97
+ "style": {
98
+ "display": "flex",
99
+ "flexDirection": "column",
100
+ "gap": "$spacing.xxs",
101
+ "paddingTop": "$spacing.lg",
102
+ "paddingHorizontal": "$spacing.lg"
103
+ },
104
+ "children": [
105
+ {
106
+ "part": "title",
107
+ "component": "Text",
108
+ "$if": "props.title",
109
+ "props": {
110
+ "text": "{props.title}",
111
+ "variant": "title"
112
+ }
113
+ },
114
+ {
115
+ "part": "description",
116
+ "component": "Text",
117
+ "$if": "props.description",
118
+ "props": {
119
+ "text": "{props.description}",
120
+ "variant": "muted"
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "part": "body",
127
+ "component": "Box",
128
+ "style": {
129
+ "display": "flex",
130
+ "flexDirection": "column",
131
+ "gap": "$spacing.md",
132
+ "padding": {
133
+ "$map": {
134
+ "from": "props.padded",
135
+ "cases": {
136
+ "false": "$spacing.none"
137
+ },
138
+ "default": "$spacing.lg"
139
+ }
140
+ }
141
+ },
142
+ "children": [
143
+ "$children"
144
+ ]
145
+ }
146
+ ]
147
+ }
148
+ },
149
+ "Separator": {
150
+ "recipeProps": [],
151
+ "root": {
152
+ "part": "root",
153
+ "component": "Box",
154
+ "$a11y": {
155
+ "role": "separator"
156
+ },
157
+ "style": {
158
+ "alignSelf": "stretch",
159
+ "flexShrink": 0,
160
+ "width": {
161
+ "$map": {
162
+ "from": "props.orientation",
163
+ "cases": {
164
+ "vertical": 1
165
+ },
166
+ "default": "auto"
167
+ }
168
+ },
169
+ "height": {
170
+ "$map": {
171
+ "from": "props.orientation",
172
+ "cases": {
173
+ "vertical": "auto"
174
+ },
175
+ "default": 1
176
+ }
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "Section": {
182
+ "recipeProps": [
183
+ "tint",
184
+ "tree",
185
+ "open",
186
+ "collapsible"
187
+ ],
188
+ "root": {
189
+ "part": "root",
190
+ "component": "Box",
191
+ "style": {
192
+ "display": "flex",
193
+ "flexDirection": "column",
194
+ "gap": "$spacing.sm"
195
+ },
196
+ "children": [
197
+ {
198
+ "part": "header",
199
+ "component": "Box",
200
+ "$if": [
201
+ "props.title",
202
+ {
203
+ "$not": "props.collapsible"
204
+ }
205
+ ],
206
+ "$a11y": {
207
+ "role": "heading",
208
+ "level": 3
209
+ },
210
+ "style": {
211
+ "display": "flex",
212
+ "flexDirection": "row",
213
+ "alignItems": "center",
214
+ "gap": "$spacing.sm",
215
+ "height": "$control.row",
216
+ "paddingHorizontal": "$spacing.md",
217
+ "borderRadius": "$radius.md"
218
+ },
219
+ "children": [
220
+ {
221
+ "part": "chevron",
222
+ "component": "Icon",
223
+ "$if": "props.collapsible",
224
+ "props": {
225
+ "name": "ui-chevron-right",
226
+ "size": "sm",
227
+ "tone": "neutral"
228
+ }
229
+ },
230
+ "$slot:leading",
231
+ {
232
+ "part": "icon",
233
+ "component": "Icon",
234
+ "$if": "props.icon",
235
+ "props": {
236
+ "name": "{props.icon}",
237
+ "size": "sm"
238
+ }
239
+ },
240
+ {
241
+ "part": "title",
242
+ "component": "Text",
243
+ "props": {
244
+ "text": "{props.title}",
245
+ "variant": "label",
246
+ "lines": 1
247
+ },
248
+ "style": {
249
+ "flexShrink": 1,
250
+ "minWidth": 0
251
+ }
252
+ },
253
+ {
254
+ "part": "caption",
255
+ "component": "Text",
256
+ "$if": "props.caption",
257
+ "props": {
258
+ "text": "{props.caption}",
259
+ "variant": "muted",
260
+ "lines": 1
261
+ },
262
+ "style": {
263
+ "flexShrink": 1,
264
+ "minWidth": 0
265
+ }
266
+ },
267
+ {
268
+ "part": "loading",
269
+ "component": "Spinner",
270
+ "$if": "props.loading",
271
+ "props": {
272
+ "size": "xs",
273
+ "label": "$string.loading"
274
+ }
275
+ },
276
+ {
277
+ "part": "count",
278
+ "component": "Text",
279
+ "$if": "props.count",
280
+ "props": {
281
+ "text": {
282
+ "$text": "props.count"
283
+ },
284
+ "variant": "muted"
285
+ }
286
+ },
287
+ {
288
+ "part": "spacer",
289
+ "component": "Box",
290
+ "style": {
291
+ "flexGrow": 1,
292
+ "minWidth": 0
293
+ }
294
+ },
295
+ "$slot:trailing"
296
+ ]
297
+ },
298
+ {
299
+ "part": "header",
300
+ "component": "Box",
301
+ "$if": [
302
+ "props.title",
303
+ "props.collapsible"
304
+ ],
305
+ "$a11y": {
306
+ "role": "button",
307
+ "expanded": "{props.open|true}"
308
+ },
309
+ "props": {
310
+ "pressable": true
311
+ },
312
+ "style": {
313
+ "display": "flex",
314
+ "flexDirection": "row",
315
+ "alignItems": "center",
316
+ "gap": "$spacing.sm",
317
+ "height": "$control.row",
318
+ "paddingHorizontal": "$spacing.md",
319
+ "borderRadius": "$radius.md"
320
+ },
321
+ "$on": {
322
+ "press": "change"
323
+ },
324
+ "$context": {
325
+ "open": {
326
+ "$not": "props.open|true"
327
+ }
328
+ },
329
+ "$set": {
330
+ "press": {
331
+ "prop": "open",
332
+ "value": {
333
+ "$not": "props.open|true"
334
+ }
335
+ }
336
+ },
337
+ "children": [
338
+ {
339
+ "part": "chevron",
340
+ "component": "Icon",
341
+ "$if": "props.collapsible",
342
+ "props": {
343
+ "name": "ui-chevron-right",
344
+ "size": "sm",
345
+ "tone": "neutral"
346
+ }
347
+ },
348
+ "$slot:leading",
349
+ {
350
+ "part": "icon",
351
+ "component": "Icon",
352
+ "$if": "props.icon",
353
+ "props": {
354
+ "name": "{props.icon}",
355
+ "size": "sm"
356
+ }
357
+ },
358
+ {
359
+ "part": "title",
360
+ "component": "Text",
361
+ "props": {
362
+ "text": "{props.title}",
363
+ "variant": "label",
364
+ "lines": 1
365
+ },
366
+ "style": {
367
+ "flexShrink": 1,
368
+ "minWidth": 0
369
+ }
370
+ },
371
+ {
372
+ "part": "caption",
373
+ "component": "Text",
374
+ "$if": "props.caption",
375
+ "props": {
376
+ "text": "{props.caption}",
377
+ "variant": "muted",
378
+ "lines": 1
379
+ },
380
+ "style": {
381
+ "flexShrink": 1,
382
+ "minWidth": 0
383
+ }
384
+ },
385
+ {
386
+ "part": "loading",
387
+ "component": "Spinner",
388
+ "$if": "props.loading",
389
+ "props": {
390
+ "size": "xs",
391
+ "label": "$string.loading"
392
+ }
393
+ },
394
+ {
395
+ "part": "count",
396
+ "component": "Text",
397
+ "$if": "props.count",
398
+ "props": {
399
+ "text": {
400
+ "$text": "props.count"
401
+ },
402
+ "variant": "muted"
403
+ }
404
+ },
405
+ {
406
+ "part": "spacer",
407
+ "component": "Box",
408
+ "style": {
409
+ "flexGrow": 1,
410
+ "minWidth": 0
411
+ }
412
+ },
413
+ "$slot:trailing"
414
+ ]
415
+ },
416
+ {
417
+ "part": "body",
418
+ "component": "List",
419
+ "$if": "props.open|true",
420
+ "$a11y": {
421
+ "role": {
422
+ "$cond": [
423
+ "props.tree",
424
+ "tree",
425
+ "list"
426
+ ]
427
+ }
428
+ },
429
+ "props": {
430
+ "divided": true,
431
+ "gap": "none",
432
+ "style": "{props.style}"
433
+ },
434
+ "children": [
435
+ "$children"
436
+ ]
437
+ }
438
+ ]
439
+ }
440
+ },
441
+ "Group": {
442
+ "recipeProps": [],
443
+ "root": {
444
+ "part": "root",
445
+ "component": "Box",
446
+ "$a11y": {
447
+ "role": "group",
448
+ "label": "{props.title}",
449
+ "description": "{props.footer}"
450
+ },
451
+ "style": {
452
+ "display": "flex",
453
+ "flexDirection": "column",
454
+ "gap": "$spacing.xs"
455
+ },
456
+ "children": [
457
+ {
458
+ "part": "title",
459
+ "component": "Text",
460
+ "$if": "props.title",
461
+ "props": {
462
+ "text": "{props.title}",
463
+ "variant": "label"
464
+ },
465
+ "style": {
466
+ "paddingHorizontal": "$spacing.md"
467
+ }
468
+ },
469
+ {
470
+ "part": "body",
471
+ "component": "Box",
472
+ "style": {
473
+ "display": "flex",
474
+ "flexDirection": "column",
475
+ "borderRadius": "$radius.lg",
476
+ "overflow": "hidden"
477
+ },
478
+ "children": [
479
+ "$children"
480
+ ]
481
+ },
482
+ {
483
+ "part": "footer",
484
+ "component": "Text",
485
+ "$if": "props.footer",
486
+ "props": {
487
+ "text": "{props.footer}",
488
+ "variant": "muted"
489
+ },
490
+ "style": {
491
+ "paddingHorizontal": "$spacing.md"
492
+ }
493
+ }
494
+ ]
495
+ }
496
+ },
497
+ "Heading": {
498
+ "recipeProps": [
499
+ "level"
500
+ ],
501
+ "root": {
502
+ "part": "root",
503
+ "component": "Text",
504
+ "$a11y": {
505
+ "role": "heading",
506
+ "level": {
507
+ "$map": {
508
+ "from": "props.level",
509
+ "cases": {
510
+ "h1": 1,
511
+ "h2": 2,
512
+ "h3": 3,
513
+ "h4": 4
514
+ },
515
+ "default": 2
516
+ }
517
+ }
518
+ },
519
+ "props": {
520
+ "text": "{props.text}",
521
+ "variant": "title"
522
+ }
523
+ }
524
+ },
525
+ "Collapsible": {
526
+ "recipeProps": [],
527
+ "root": {
528
+ "part": "root",
529
+ "component": "Box",
530
+ "style": {
531
+ "display": "flex",
532
+ "flexDirection": "column",
533
+ "gap": "$spacing.xs"
534
+ },
535
+ "children": [
536
+ {
537
+ "part": "trigger",
538
+ "component": "Box",
539
+ "$a11y": {
540
+ "role": "button",
541
+ "expanded": "{props.open|false}"
542
+ },
543
+ "props": {
544
+ "pressable": true
545
+ },
546
+ "style": {
547
+ "display": "flex",
548
+ "flexDirection": "row",
549
+ "alignItems": "center",
550
+ "gap": "$spacing.sm",
551
+ "minHeight": "$control.row",
552
+ "paddingHorizontal": "$spacing.sm",
553
+ "borderRadius": "$radius.md"
554
+ },
555
+ "$recipe": {
556
+ "open": "{props.open|false}"
557
+ },
558
+ "$on": {
559
+ "press": "change"
560
+ },
561
+ "$context": {
562
+ "open": "{!props.open}"
563
+ },
564
+ "$set": {
565
+ "press": {
566
+ "prop": "open",
567
+ "value": "{!props.open}"
568
+ }
569
+ },
570
+ "children": [
571
+ {
572
+ "part": "chevron",
573
+ "component": "Icon",
574
+ "props": {
575
+ "name": "ui-chevron-right",
576
+ "size": "sm",
577
+ "tone": "neutral"
578
+ },
579
+ "$recipe": {
580
+ "open": "{props.open|false}"
581
+ }
582
+ },
583
+ {
584
+ "part": "title",
585
+ "component": "Text",
586
+ "props": {
587
+ "text": "{props.title}",
588
+ "variant": "label",
589
+ "lines": 1
590
+ },
591
+ "style": {
592
+ "flexGrow": 1,
593
+ "minWidth": 0
594
+ }
595
+ },
596
+ {
597
+ "part": "count",
598
+ "component": "Text",
599
+ "$if": "props.count",
600
+ "props": {
601
+ "text": {
602
+ "$text": "props.count"
603
+ },
604
+ "variant": "muted"
605
+ }
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "part": "body",
611
+ "component": "Box",
612
+ "$if": "props.open",
613
+ "style": {
614
+ "display": "flex",
615
+ "flexDirection": "column",
616
+ "gap": "$spacing.md",
617
+ "paddingHorizontal": "$spacing.sm"
618
+ },
619
+ "children": [
620
+ "$children"
621
+ ]
622
+ }
623
+ ]
624
+ }
625
+ },
626
+ "Trace": {
627
+ "recipeProps": [
628
+ "size"
629
+ ],
630
+ "root": {
631
+ "part": "root",
632
+ "component": "Box",
633
+ "style": {
634
+ "display": "flex",
635
+ "flexDirection": "column",
636
+ "gap": {
637
+ "$map": {
638
+ "from": "props.size",
639
+ "cases": {
640
+ "sm": 6
641
+ },
642
+ "default": 8
643
+ }
644
+ },
645
+ "minWidth": 0
646
+ },
647
+ "children": [
648
+ "$children"
649
+ ]
650
+ }
651
+ },
652
+ "TraceItem": {
653
+ "recipeProps": [
654
+ "status",
655
+ "size",
656
+ "collapsible",
657
+ "open"
658
+ ],
659
+ "root": {
660
+ "part": "root",
661
+ "component": "Box",
662
+ "style": {
663
+ "display": "flex",
664
+ "flexDirection": "column",
665
+ "minWidth": 0
666
+ },
667
+ "children": [
668
+ {
669
+ "part": "line",
670
+ "component": "Box",
671
+ "$if": {
672
+ "$not": "props.collapsible"
673
+ },
674
+ "style": {
675
+ "display": "flex",
676
+ "flexDirection": "row",
677
+ "alignItems": "center",
678
+ "gap": {
679
+ "$map": {
680
+ "from": "props.size",
681
+ "cases": {
682
+ "sm": 6
683
+ },
684
+ "default": 8
685
+ }
686
+ },
687
+ "minHeight": {
688
+ "$map": {
689
+ "from": "props.size",
690
+ "cases": {
691
+ "sm": 18
692
+ },
693
+ "default": 20
694
+ }
695
+ },
696
+ "alignSelf": "flex-start",
697
+ "maxWidth": "100%",
698
+ "minWidth": 0,
699
+ "borderRadius": "$radius.md"
700
+ },
701
+ "children": [
702
+ {
703
+ "part": "icon",
704
+ "component": "Icon",
705
+ "$if": "props.icon",
706
+ "props": {
707
+ "name": "{props.icon}",
708
+ "size": "sm"
709
+ },
710
+ "style": {
711
+ "width": {
712
+ "$map": {
713
+ "from": "props.size",
714
+ "cases": {
715
+ "sm": 14
716
+ },
717
+ "default": 16
718
+ }
719
+ },
720
+ "height": {
721
+ "$map": {
722
+ "from": "props.size",
723
+ "cases": {
724
+ "sm": 14
725
+ },
726
+ "default": 16
727
+ }
728
+ },
729
+ "flexShrink": 0
730
+ }
731
+ },
732
+ {
733
+ "part": "title",
734
+ "component": "Text",
735
+ "props": {
736
+ "text": "{props.title}",
737
+ "lines": 1,
738
+ "shimmer": {
739
+ "$eq": [
740
+ "{props.status}",
741
+ "running"
742
+ ]
743
+ }
744
+ },
745
+ "style": {
746
+ "flexShrink": 1,
747
+ "minWidth": 0,
748
+ "fontSize": {
749
+ "$map": {
750
+ "from": "props.size",
751
+ "cases": {
752
+ "sm": 12
753
+ },
754
+ "default": 14
755
+ }
756
+ },
757
+ "lineHeight": {
758
+ "$map": {
759
+ "from": "props.size",
760
+ "cases": {
761
+ "sm": 18
762
+ },
763
+ "default": 20
764
+ }
765
+ }
766
+ }
767
+ },
768
+ {
769
+ "part": "description",
770
+ "component": "Text",
771
+ "$if": "props.description",
772
+ "props": {
773
+ "text": "{props.description}",
774
+ "lines": 1
775
+ },
776
+ "style": {
777
+ "flexShrink": 0,
778
+ "fontSize": {
779
+ "$map": {
780
+ "from": "props.size",
781
+ "cases": {
782
+ "sm": 12
783
+ },
784
+ "default": 14
785
+ }
786
+ },
787
+ "lineHeight": {
788
+ "$map": {
789
+ "from": "props.size",
790
+ "cases": {
791
+ "sm": 18
792
+ },
793
+ "default": 20
794
+ }
795
+ }
796
+ }
797
+ }
798
+ ]
799
+ },
800
+ {
801
+ "part": "line",
802
+ "component": "Box",
803
+ "$if": "props.collapsible",
804
+ "$a11y": {
805
+ "role": "button",
806
+ "expanded": "{props.open|false}"
807
+ },
808
+ "props": {
809
+ "pressable": true
810
+ },
811
+ "style": {
812
+ "display": "flex",
813
+ "flexDirection": "row",
814
+ "alignItems": "center",
815
+ "gap": {
816
+ "$map": {
817
+ "from": "props.size",
818
+ "cases": {
819
+ "sm": 6
820
+ },
821
+ "default": 8
822
+ }
823
+ },
824
+ "minHeight": {
825
+ "$map": {
826
+ "from": "props.size",
827
+ "cases": {
828
+ "sm": 18
829
+ },
830
+ "default": 20
831
+ }
832
+ },
833
+ "alignSelf": "flex-start",
834
+ "maxWidth": "100%",
835
+ "minWidth": 0,
836
+ "borderRadius": "$radius.md"
837
+ },
838
+ "$on": {
839
+ "press": "change"
840
+ },
841
+ "$context": {
842
+ "open": "{!props.open}"
843
+ },
844
+ "$set": {
845
+ "press": {
846
+ "prop": "open",
847
+ "value": "{!props.open}"
848
+ }
849
+ },
850
+ "children": [
851
+ {
852
+ "part": "icon",
853
+ "component": "Icon",
854
+ "$if": "props.icon",
855
+ "props": {
856
+ "name": "{props.icon}",
857
+ "size": "sm"
858
+ },
859
+ "style": {
860
+ "width": {
861
+ "$map": {
862
+ "from": "props.size",
863
+ "cases": {
864
+ "sm": 14
865
+ },
866
+ "default": 16
867
+ }
868
+ },
869
+ "height": {
870
+ "$map": {
871
+ "from": "props.size",
872
+ "cases": {
873
+ "sm": 14
874
+ },
875
+ "default": 16
876
+ }
877
+ },
878
+ "flexShrink": 0
879
+ }
880
+ },
881
+ {
882
+ "part": "title",
883
+ "component": "Text",
884
+ "props": {
885
+ "text": "{props.title}",
886
+ "lines": 1,
887
+ "shimmer": {
888
+ "$eq": [
889
+ "{props.status}",
890
+ "running"
891
+ ]
892
+ }
893
+ },
894
+ "style": {
895
+ "flexShrink": 1,
896
+ "minWidth": 0,
897
+ "fontSize": {
898
+ "$map": {
899
+ "from": "props.size",
900
+ "cases": {
901
+ "sm": 12
902
+ },
903
+ "default": 14
904
+ }
905
+ },
906
+ "lineHeight": {
907
+ "$map": {
908
+ "from": "props.size",
909
+ "cases": {
910
+ "sm": 18
911
+ },
912
+ "default": 20
913
+ }
914
+ }
915
+ }
916
+ },
917
+ {
918
+ "part": "description",
919
+ "component": "Text",
920
+ "$if": "props.description",
921
+ "props": {
922
+ "text": "{props.description}",
923
+ "lines": 1
924
+ },
925
+ "style": {
926
+ "flexShrink": 0,
927
+ "fontSize": {
928
+ "$map": {
929
+ "from": "props.size",
930
+ "cases": {
931
+ "sm": 12
932
+ },
933
+ "default": 14
934
+ }
935
+ },
936
+ "lineHeight": {
937
+ "$map": {
938
+ "from": "props.size",
939
+ "cases": {
940
+ "sm": 18
941
+ },
942
+ "default": 20
943
+ }
944
+ }
945
+ }
946
+ },
947
+ {
948
+ "part": "chevron",
949
+ "component": "Icon",
950
+ "props": {
951
+ "name": "trace-chevron",
952
+ "size": "sm"
953
+ },
954
+ "$recipe": {
955
+ "open": "{props.open|false}"
956
+ },
957
+ "style": {
958
+ "width": {
959
+ "$map": {
960
+ "from": "props.size",
961
+ "cases": {
962
+ "sm": 14
963
+ },
964
+ "default": 16
965
+ }
966
+ },
967
+ "height": {
968
+ "$map": {
969
+ "from": "props.size",
970
+ "cases": {
971
+ "sm": 14
972
+ },
973
+ "default": 16
974
+ }
975
+ },
976
+ "flexShrink": 0,
977
+ "marginLeft": {
978
+ "$map": {
979
+ "from": "props.size",
980
+ "cases": {
981
+ "sm": -2
982
+ },
983
+ "default": -4
984
+ }
985
+ }
986
+ }
987
+ }
988
+ ]
989
+ },
990
+ {
991
+ "part": "content",
992
+ "component": "Box",
993
+ "$if": [
994
+ "props.collapsible",
995
+ "props.open"
996
+ ],
997
+ "style": {
998
+ "display": "flex",
999
+ "flexDirection": "column",
1000
+ "gap": {
1001
+ "$map": {
1002
+ "from": "props.size",
1003
+ "cases": {
1004
+ "sm": 6
1005
+ },
1006
+ "default": 8
1007
+ }
1008
+ },
1009
+ "minWidth": 0,
1010
+ "marginTop": {
1011
+ "$map": {
1012
+ "from": "props.size",
1013
+ "cases": {
1014
+ "sm": 6
1015
+ },
1016
+ "default": 8
1017
+ }
1018
+ },
1019
+ "marginBottom": {
1020
+ "$map": {
1021
+ "from": "props.size",
1022
+ "cases": {
1023
+ "sm": 4
1024
+ },
1025
+ "default": 4
1026
+ }
1027
+ },
1028
+ "marginLeft": {
1029
+ "$map": {
1030
+ "from": "props.size",
1031
+ "cases": {
1032
+ "sm": 6
1033
+ },
1034
+ "default": 7
1035
+ }
1036
+ },
1037
+ "borderLeftWidth": 1,
1038
+ "paddingLeft": {
1039
+ "$map": {
1040
+ "from": "props.size",
1041
+ "cases": {
1042
+ "sm": 13
1043
+ },
1044
+ "default": 16
1045
+ }
1046
+ },
1047
+ "paddingRight": {
1048
+ "$map": {
1049
+ "from": "props.size",
1050
+ "cases": {
1051
+ "sm": 4
1052
+ },
1053
+ "default": 4
1054
+ }
1055
+ }
1056
+ },
1057
+ "children": [
1058
+ "$children"
1059
+ ]
1060
+ }
1061
+ ]
1062
+ }
1063
+ },
1064
+ "Pagination": {
1065
+ "recipeProps": [],
1066
+ "root": {
1067
+ "part": "root",
1068
+ "component": "Box",
1069
+ "$a11y": {
1070
+ "role": "navigation",
1071
+ "label": "$string.pagination"
1072
+ },
1073
+ "style": {
1074
+ "display": "flex",
1075
+ "flexDirection": "row",
1076
+ "alignItems": "center",
1077
+ "gap": "$spacing.sm"
1078
+ },
1079
+ "children": [
1080
+ {
1081
+ "part": "prev",
1082
+ "component": "Button",
1083
+ "props": {
1084
+ "icon": "ui-chevron-left",
1085
+ "variant": "outline",
1086
+ "size": "icon",
1087
+ "label": "$string.previous",
1088
+ "disabled": {
1089
+ "$not": {
1090
+ "$lt": [
1091
+ 1,
1092
+ "{props.page|1}"
1093
+ ]
1094
+ }
1095
+ }
1096
+ },
1097
+ "$on": {
1098
+ "press": "change"
1099
+ },
1100
+ "$context": {
1101
+ "page": {
1102
+ "$clamp": [
1103
+ {
1104
+ "$add": [
1105
+ "{props.page|1}",
1106
+ -1
1107
+ ]
1108
+ },
1109
+ 1,
1110
+ "{props.totalPages}"
1111
+ ]
1112
+ }
1113
+ },
1114
+ "$set": {
1115
+ "press": {
1116
+ "prop": "page",
1117
+ "value": {
1118
+ "$clamp": [
1119
+ {
1120
+ "$add": [
1121
+ "{props.page|1}",
1122
+ -1
1123
+ ]
1124
+ },
1125
+ 1,
1126
+ "{props.totalPages}"
1127
+ ]
1128
+ }
1129
+ }
1130
+ }
1131
+ },
1132
+ {
1133
+ "part": "label",
1134
+ "component": "Text",
1135
+ "props": {
1136
+ "text": "{props.page|1} / {props.totalPages}",
1137
+ "variant": "muted"
1138
+ },
1139
+ "$a11y": {
1140
+ "role": "status",
1141
+ "label": {
1142
+ "$fill": [
1143
+ "$string.pageOf",
1144
+ {
1145
+ "page": "{props.page|1}",
1146
+ "total": "{props.totalPages}"
1147
+ }
1148
+ ]
1149
+ }
1150
+ }
1151
+ },
1152
+ {
1153
+ "part": "next",
1154
+ "component": "Button",
1155
+ "props": {
1156
+ "icon": "ui-chevron-right",
1157
+ "variant": "outline",
1158
+ "size": "icon",
1159
+ "label": "$string.next",
1160
+ "disabled": {
1161
+ "$not": {
1162
+ "$lt": [
1163
+ "{props.page|1}",
1164
+ "{props.totalPages}"
1165
+ ]
1166
+ }
1167
+ }
1168
+ },
1169
+ "$on": {
1170
+ "press": "change"
1171
+ },
1172
+ "$context": {
1173
+ "page": {
1174
+ "$clamp": [
1175
+ {
1176
+ "$add": [
1177
+ "{props.page|1}",
1178
+ 1
1179
+ ]
1180
+ },
1181
+ 1,
1182
+ "{props.totalPages}"
1183
+ ]
1184
+ }
1185
+ },
1186
+ "$set": {
1187
+ "press": {
1188
+ "prop": "page",
1189
+ "value": {
1190
+ "$clamp": [
1191
+ {
1192
+ "$add": [
1193
+ "{props.page|1}",
1194
+ 1
1195
+ ]
1196
+ },
1197
+ 1,
1198
+ "{props.totalPages}"
1199
+ ]
1200
+ }
1201
+ }
1202
+ }
1203
+ }
1204
+ ]
1205
+ }
1206
+ },
1207
+ "Badge": {
1208
+ "recipeProps": [
1209
+ "variant"
1210
+ ],
1211
+ "root": {
1212
+ "part": "root",
1213
+ "component": "Box",
1214
+ "style": {
1215
+ "display": "flex",
1216
+ "flexDirection": "row",
1217
+ "alignItems": "center",
1218
+ "gap": "$spacing.xxs",
1219
+ "height": "$control.badge",
1220
+ "paddingHorizontal": "$spacing.sm",
1221
+ "borderRadius": "$radius.full",
1222
+ "alignSelf": "flex-start"
1223
+ },
1224
+ "children": [
1225
+ {
1226
+ "part": "icon",
1227
+ "component": "Icon",
1228
+ "$if": "props.icon",
1229
+ "props": {
1230
+ "name": "{props.icon}",
1231
+ "size": "sm"
1232
+ }
1233
+ },
1234
+ {
1235
+ "part": "label",
1236
+ "component": "Text",
1237
+ "props": {
1238
+ "text": "{props.text}",
1239
+ "variant": "caption",
1240
+ "lines": 1
1241
+ }
1242
+ }
1243
+ ]
1244
+ }
1245
+ },
1246
+ "Alert": {
1247
+ "recipeProps": [
1248
+ "type"
1249
+ ],
1250
+ "root": {
1251
+ "part": "root",
1252
+ "component": "Box",
1253
+ "$a11y": {
1254
+ "role": {
1255
+ "$map": {
1256
+ "from": "props.type",
1257
+ "cases": {
1258
+ "warning": "alert",
1259
+ "error": "alert"
1260
+ },
1261
+ "default": "status"
1262
+ }
1263
+ }
1264
+ },
1265
+ "style": {
1266
+ "display": "flex",
1267
+ "flexDirection": "row",
1268
+ "alignItems": "flex-start",
1269
+ "gap": "$spacing.sm",
1270
+ "padding": "$spacing.md",
1271
+ "borderRadius": "$radius.lg"
1272
+ },
1273
+ "children": [
1274
+ {
1275
+ "part": "icon",
1276
+ "component": "Icon",
1277
+ "props": {
1278
+ "name": {
1279
+ "$map": {
1280
+ "from": "props.type",
1281
+ "cases": {
1282
+ "success": "ui-success",
1283
+ "warning": "ui-warning",
1284
+ "error": "ui-error"
1285
+ },
1286
+ "default": "ui-info"
1287
+ }
1288
+ },
1289
+ "size": "sm",
1290
+ "tone": {
1291
+ "$map": {
1292
+ "from": "props.type",
1293
+ "cases": {
1294
+ "success": "success",
1295
+ "warning": "warning",
1296
+ "error": "danger"
1297
+ },
1298
+ "default": "info"
1299
+ }
1300
+ }
1301
+ }
1302
+ },
1303
+ {
1304
+ "part": "body",
1305
+ "component": "Box",
1306
+ "style": {
1307
+ "display": "flex",
1308
+ "flexDirection": "column",
1309
+ "gap": "$spacing.xxs",
1310
+ "flexGrow": 1,
1311
+ "minWidth": 0
1312
+ },
1313
+ "children": [
1314
+ {
1315
+ "part": "title",
1316
+ "component": "Text",
1317
+ "props": {
1318
+ "text": "{props.title}",
1319
+ "variant": "label"
1320
+ }
1321
+ },
1322
+ {
1323
+ "part": "message",
1324
+ "component": "Text",
1325
+ "$if": "props.message",
1326
+ "props": {
1327
+ "text": "{props.message}",
1328
+ "variant": "muted"
1329
+ }
1330
+ }
1331
+ ]
1332
+ }
1333
+ ]
1334
+ }
1335
+ },
1336
+ "Chip": {
1337
+ "recipeProps": [
1338
+ "shape",
1339
+ "selected",
1340
+ "tone"
1341
+ ],
1342
+ "root": {
1343
+ "part": "root",
1344
+ "component": "Box",
1345
+ "$a11y": {
1346
+ "role": {
1347
+ "$cond": [
1348
+ "props.pressable",
1349
+ "button",
1350
+ "none"
1351
+ ]
1352
+ },
1353
+ "pressed": {
1354
+ "$cond": [
1355
+ "props.pressable",
1356
+ "{props.selected|false}"
1357
+ ]
1358
+ }
1359
+ },
1360
+ "props": {
1361
+ "pressable": "{props.pressable|false}"
1362
+ },
1363
+ "style": {
1364
+ "display": "flex",
1365
+ "flexDirection": "row",
1366
+ "alignItems": "center",
1367
+ "gap": "$spacing.xs",
1368
+ "paddingHorizontal": "$spacing.sm",
1369
+ "alignSelf": "flex-start",
1370
+ "height": {
1371
+ "$map": {
1372
+ "from": "props.shape",
1373
+ "cases": {
1374
+ "rect": "$control.chip"
1375
+ },
1376
+ "default": "$control.pill"
1377
+ }
1378
+ },
1379
+ "borderRadius": {
1380
+ "$map": {
1381
+ "from": "props.shape",
1382
+ "cases": {
1383
+ "rect": "$radius.md"
1384
+ },
1385
+ "default": "$radius.full"
1386
+ }
1387
+ }
1388
+ },
1389
+ "children": [
1390
+ "$slot:leading",
1391
+ {
1392
+ "part": "dot",
1393
+ "component": "Box",
1394
+ "$if": "props.dot",
1395
+ "style": {
1396
+ "width": 8,
1397
+ "height": 8,
1398
+ "borderRadius": "$radius.full",
1399
+ "backgroundColor": "{props.dot}",
1400
+ "flexShrink": 0
1401
+ }
1402
+ },
1403
+ {
1404
+ "part": "image",
1405
+ "component": "Image",
1406
+ "$if": "props.image",
1407
+ "props": {
1408
+ "src": "{props.image}",
1409
+ "alt": "{props.label}",
1410
+ "width": 16,
1411
+ "height": 16,
1412
+ "fit": "cover"
1413
+ },
1414
+ "style": {
1415
+ "borderRadius": "$radius.full"
1416
+ }
1417
+ },
1418
+ {
1419
+ "part": "icon",
1420
+ "component": "Icon",
1421
+ "$if": [
1422
+ "props.icon",
1423
+ "!props.image"
1424
+ ],
1425
+ "props": {
1426
+ "name": "{props.icon}",
1427
+ "size": "sm"
1428
+ }
1429
+ },
1430
+ {
1431
+ "part": "label",
1432
+ "component": "Text",
1433
+ "props": {
1434
+ "text": "{props.label}",
1435
+ "variant": "caption",
1436
+ "lines": 1
1437
+ }
1438
+ },
1439
+ {
1440
+ "part": "detail",
1441
+ "component": "Text",
1442
+ "$if": "props.detail",
1443
+ "props": {
1444
+ "text": "{props.detail}",
1445
+ "variant": "muted",
1446
+ "lines": 1
1447
+ }
1448
+ },
1449
+ {
1450
+ "part": "remove",
1451
+ "component": "Button",
1452
+ "$if": "props.removable",
1453
+ "props": {
1454
+ "icon": "ui-close",
1455
+ "variant": "ghost",
1456
+ "size": "icon",
1457
+ "label": "$string.remove"
1458
+ },
1459
+ "$on": {
1460
+ "press": "remove"
1461
+ }
1462
+ }
1463
+ ]
1464
+ }
1465
+ },
1466
+ "EmptyState": {
1467
+ "recipeProps": [
1468
+ "size"
1469
+ ],
1470
+ "root": {
1471
+ "part": "root",
1472
+ "component": "Box",
1473
+ "$a11y": {
1474
+ "role": "status"
1475
+ },
1476
+ "style": {
1477
+ "display": "flex",
1478
+ "flexDirection": "column",
1479
+ "alignItems": "center",
1480
+ "gap": {
1481
+ "$map": {
1482
+ "from": "props.size",
1483
+ "cases": {
1484
+ "list": "$spacing.xs"
1485
+ },
1486
+ "default": "$spacing.md"
1487
+ }
1488
+ },
1489
+ "paddingVertical": {
1490
+ "$map": {
1491
+ "from": "props.size",
1492
+ "cases": {
1493
+ "list": "$spacing.xl"
1494
+ },
1495
+ "default": "$spacing.xl3"
1496
+ }
1497
+ },
1498
+ "paddingHorizontal": {
1499
+ "$map": {
1500
+ "from": "props.size",
1501
+ "cases": {
1502
+ "list": "$spacing.md"
1503
+ },
1504
+ "default": "$spacing.xl"
1505
+ }
1506
+ }
1507
+ },
1508
+ "children": [
1509
+ {
1510
+ "part": "disc",
1511
+ "component": "Box",
1512
+ "$if": {
1513
+ "$not": {
1514
+ "$eq": [
1515
+ "{props.size|page}",
1516
+ "list"
1517
+ ]
1518
+ }
1519
+ },
1520
+ "style": {
1521
+ "display": "flex",
1522
+ "alignItems": "center",
1523
+ "justifyContent": "center",
1524
+ "width": 48,
1525
+ "height": 48,
1526
+ "borderRadius": "$radius.full",
1527
+ "flexShrink": 0
1528
+ },
1529
+ "children": [
1530
+ {
1531
+ "part": "icon",
1532
+ "component": "Icon",
1533
+ "props": {
1534
+ "name": "{props.icon}",
1535
+ "size": "lg",
1536
+ "tone": "neutral"
1537
+ }
1538
+ }
1539
+ ]
1540
+ },
1541
+ {
1542
+ "part": "icon",
1543
+ "component": "Icon",
1544
+ "$if": {
1545
+ "$eq": [
1546
+ "{props.size|page}",
1547
+ "list"
1548
+ ]
1549
+ },
1550
+ "props": {
1551
+ "name": "{props.icon}",
1552
+ "size": "default",
1553
+ "tone": "neutral"
1554
+ }
1555
+ },
1556
+ {
1557
+ "part": "title",
1558
+ "component": "Text",
1559
+ "props": {
1560
+ "text": "{props.title}",
1561
+ "variant": {
1562
+ "$map": {
1563
+ "from": "props.size",
1564
+ "cases": {
1565
+ "list": "muted"
1566
+ },
1567
+ "default": "title"
1568
+ }
1569
+ },
1570
+ "align": "center"
1571
+ }
1572
+ },
1573
+ {
1574
+ "part": "description",
1575
+ "component": "Text",
1576
+ "$if": [
1577
+ "props.description",
1578
+ {
1579
+ "$not": {
1580
+ "$eq": [
1581
+ "{props.size|page}",
1582
+ "list"
1583
+ ]
1584
+ }
1585
+ }
1586
+ ],
1587
+ "props": {
1588
+ "text": "{props.description}",
1589
+ "variant": "muted",
1590
+ "align": "center"
1591
+ }
1592
+ },
1593
+ {
1594
+ "part": "action",
1595
+ "component": "Button",
1596
+ "$if": [
1597
+ "props.actionLabel",
1598
+ {
1599
+ "$not": {
1600
+ "$eq": [
1601
+ "{props.size|page}",
1602
+ "list"
1603
+ ]
1604
+ }
1605
+ }
1606
+ ],
1607
+ "props": {
1608
+ "label": "{props.actionLabel}",
1609
+ "variant": "outline"
1610
+ },
1611
+ "$on": {
1612
+ "press": "press"
1613
+ }
1614
+ }
1615
+ ]
1616
+ }
1617
+ },
1618
+ "Progress": {
1619
+ "recipeProps": [
1620
+ "tone"
1621
+ ],
1622
+ "root": {
1623
+ "part": "root",
1624
+ "component": "Box",
1625
+ "$a11y": {
1626
+ "role": "progressbar",
1627
+ "label": "{props.label}",
1628
+ "valueNow": "{props.value}",
1629
+ "valueMin": 0,
1630
+ "valueMax": "{props.max|100}"
1631
+ },
1632
+ "style": {
1633
+ "display": "flex",
1634
+ "flexDirection": "column",
1635
+ "gap": "$spacing.xs",
1636
+ "width": "100%"
1637
+ },
1638
+ "children": [
1639
+ {
1640
+ "part": "label",
1641
+ "component": "Text",
1642
+ "$if": "props.label",
1643
+ "props": {
1644
+ "text": "{props.label}",
1645
+ "variant": "caption"
1646
+ }
1647
+ },
1648
+ {
1649
+ "part": "track",
1650
+ "component": "Box",
1651
+ "style": {
1652
+ "height": "$control.progress",
1653
+ "borderRadius": "$radius.full",
1654
+ "overflow": "hidden",
1655
+ "width": "100%"
1656
+ },
1657
+ "children": [
1658
+ {
1659
+ "part": "fill",
1660
+ "component": "Box",
1661
+ "style": {
1662
+ "height": "100%",
1663
+ "width": {
1664
+ "$percent": [
1665
+ "{props.value}",
1666
+ "{props.max|100}"
1667
+ ]
1668
+ },
1669
+ "borderRadius": "$radius.full"
1670
+ }
1671
+ }
1672
+ ]
1673
+ }
1674
+ ]
1675
+ }
1676
+ },
1677
+ "Meter": {
1678
+ "recipeProps": [],
1679
+ "root": {
1680
+ "part": "root",
1681
+ "component": "Box",
1682
+ "$a11y": {
1683
+ "role": "meter",
1684
+ "label": "{props.label}"
1685
+ },
1686
+ "style": {
1687
+ "display": "flex",
1688
+ "flexDirection": "column",
1689
+ "gap": "$spacing.xs",
1690
+ "width": "100%"
1691
+ },
1692
+ "children": [
1693
+ {
1694
+ "part": "header",
1695
+ "component": "Box",
1696
+ "$any": [
1697
+ "props.label",
1698
+ "props.value"
1699
+ ],
1700
+ "style": {
1701
+ "display": "flex",
1702
+ "flexDirection": "row",
1703
+ "alignItems": "center",
1704
+ "gap": "$spacing.sm"
1705
+ },
1706
+ "children": [
1707
+ {
1708
+ "part": "label",
1709
+ "component": "Text",
1710
+ "$if": "props.label",
1711
+ "props": {
1712
+ "text": "{props.label}",
1713
+ "variant": "caption"
1714
+ },
1715
+ "style": {
1716
+ "flexGrow": 1,
1717
+ "minWidth": 0
1718
+ }
1719
+ },
1720
+ {
1721
+ "part": "value",
1722
+ "component": "Text",
1723
+ "$if": "props.value",
1724
+ "props": {
1725
+ "text": "{props.value}",
1726
+ "variant": "muted"
1727
+ }
1728
+ }
1729
+ ]
1730
+ },
1731
+ {
1732
+ "part": "track",
1733
+ "component": "Box",
1734
+ "style": {
1735
+ "display": "flex",
1736
+ "flexDirection": "row",
1737
+ "height": "$control.meter",
1738
+ "borderRadius": "$radius.full",
1739
+ "overflow": "hidden",
1740
+ "width": "100%"
1741
+ },
1742
+ "children": [
1743
+ {
1744
+ "part": "segment",
1745
+ "component": "Box",
1746
+ "$each": "props.segments",
1747
+ "$as": "item",
1748
+ "style": {
1749
+ "height": "100%",
1750
+ "width": {
1751
+ "$percent": [
1752
+ "{item.value}",
1753
+ "{props.max|100}"
1754
+ ]
1755
+ }
1756
+ },
1757
+ "$recipe": {
1758
+ "tone": "{item.tone|neutral}"
1759
+ }
1760
+ }
1761
+ ]
1762
+ }
1763
+ ]
1764
+ }
1765
+ },
1766
+ "Row": {
1767
+ "recipeProps": [
1768
+ "selected",
1769
+ "density",
1770
+ "surface",
1771
+ "depth"
1772
+ ],
1773
+ "root": {
1774
+ "part": "root",
1775
+ "component": "Box",
1776
+ "$a11y": {
1777
+ "role": {
1778
+ "$cond": [
1779
+ "props.pressable",
1780
+ "button",
1781
+ "none"
1782
+ ]
1783
+ },
1784
+ "selected": {
1785
+ "$cond": [
1786
+ "props.pressable",
1787
+ "{props.selected|false}"
1788
+ ]
1789
+ }
1790
+ },
1791
+ "props": {
1792
+ "pressable": "{props.pressable|false}"
1793
+ },
1794
+ "style": {
1795
+ "display": "flex",
1796
+ "flexDirection": "row",
1797
+ "alignItems": "center",
1798
+ "gap": "$spacing.sm",
1799
+ "minHeight": {
1800
+ "$map": {
1801
+ "from": "props.density",
1802
+ "cases": {
1803
+ "compact": "$control.rowCompact"
1804
+ },
1805
+ "default": "$control.row"
1806
+ }
1807
+ },
1808
+ "paddingHorizontal": "$spacing.md",
1809
+ "borderRadius": {
1810
+ "$map": {
1811
+ "from": "props.surface",
1812
+ "cases": {
1813
+ "card": "$radius.lg"
1814
+ },
1815
+ "default": "$radius.md"
1816
+ }
1817
+ }
1818
+ },
1819
+ "children": [
1820
+ {
1821
+ "part": "guides",
1822
+ "component": "TreeGuides",
1823
+ "$if": {
1824
+ "$lt": [
1825
+ 0,
1826
+ "{props.depth|0}"
1827
+ ]
1828
+ },
1829
+ "props": {
1830
+ "depth": "{props.depth}"
1831
+ }
1832
+ },
1833
+ "$slot:leading",
1834
+ {
1835
+ "part": "icon",
1836
+ "component": "Icon",
1837
+ "$if": "props.icon",
1838
+ "props": {
1839
+ "name": "{props.icon}",
1840
+ "size": "sm"
1841
+ }
1842
+ },
1843
+ {
1844
+ "part": "identifier",
1845
+ "component": "Text",
1846
+ "$if": "props.identifier",
1847
+ "props": {
1848
+ "text": "{props.identifier}",
1849
+ "variant": "code",
1850
+ "lines": 1
1851
+ },
1852
+ "style": {
1853
+ "flexShrink": 0
1854
+ }
1855
+ },
1856
+ {
1857
+ "part": "body",
1858
+ "component": "Box",
1859
+ "style": {
1860
+ "display": "flex",
1861
+ "flexDirection": "column",
1862
+ "gap": "$spacing.xxs",
1863
+ "flexGrow": 1,
1864
+ "minWidth": 0,
1865
+ "paddingVertical": {
1866
+ "$map": {
1867
+ "from": "props.surface",
1868
+ "cases": {
1869
+ "card": "$spacing.md"
1870
+ },
1871
+ "default": "$spacing.xs"
1872
+ }
1873
+ }
1874
+ },
1875
+ "children": [
1876
+ {
1877
+ "part": "title",
1878
+ "component": "Text",
1879
+ "props": {
1880
+ "text": "{props.title}",
1881
+ "variant": "body",
1882
+ "lines": 1
1883
+ }
1884
+ },
1885
+ {
1886
+ "part": "subtitle",
1887
+ "component": "Text",
1888
+ "$if": "props.subtitle",
1889
+ "props": {
1890
+ "text": "{props.subtitle}",
1891
+ "variant": "muted",
1892
+ "lines": 1
1893
+ }
1894
+ }
1895
+ ]
1896
+ },
1897
+ {
1898
+ "part": "meta",
1899
+ "component": "Text",
1900
+ "$if": "props.meta",
1901
+ "props": {
1902
+ "text": "{props.meta}",
1903
+ "variant": "muted",
1904
+ "lines": 1
1905
+ }
1906
+ },
1907
+ {
1908
+ "part": "value",
1909
+ "component": "Text",
1910
+ "$any": [
1911
+ "props.value",
1912
+ "props.placeholder"
1913
+ ],
1914
+ "props": {
1915
+ "text": {
1916
+ "$coalesce": [
1917
+ "{props.value}",
1918
+ "{props.placeholder}"
1919
+ ]
1920
+ },
1921
+ "variant": {
1922
+ "$cond": [
1923
+ "props.value",
1924
+ "body",
1925
+ "muted"
1926
+ ]
1927
+ },
1928
+ "lines": 1,
1929
+ "align": "end"
1930
+ }
1931
+ },
1932
+ "$slot:trailing",
1933
+ {
1934
+ "part": "chevron",
1935
+ "component": "Icon",
1936
+ "$if": {
1937
+ "$not": {
1938
+ "$eq": [
1939
+ "{props.chevron|none}",
1940
+ "none"
1941
+ ]
1942
+ }
1943
+ },
1944
+ "props": {
1945
+ "name": {
1946
+ "$map": {
1947
+ "from": "props.chevron",
1948
+ "cases": {
1949
+ "selector": "ui-selector"
1950
+ },
1951
+ "default": "ui-chevron-right"
1952
+ }
1953
+ },
1954
+ "size": "sm",
1955
+ "tone": "neutral"
1956
+ }
1957
+ }
1958
+ ]
1959
+ }
1960
+ },
1961
+ "ScrollArea": {
1962
+ "recipeProps": [],
1963
+ "root": {
1964
+ "part": "root",
1965
+ "component": "Box",
1966
+ "$a11y": {
1967
+ "role": "region"
1968
+ },
1969
+ "style": {
1970
+ "display": "flex",
1971
+ "flexDirection": {
1972
+ "$map": {
1973
+ "from": "props.direction",
1974
+ "cases": {
1975
+ "horizontal": "row"
1976
+ },
1977
+ "default": "column"
1978
+ }
1979
+ },
1980
+ "overflowX": {
1981
+ "$map": {
1982
+ "from": "props.direction",
1983
+ "cases": {
1984
+ "horizontal": "auto",
1985
+ "both": "auto"
1986
+ },
1987
+ "default": "hidden"
1988
+ }
1989
+ },
1990
+ "overflowY": {
1991
+ "$map": {
1992
+ "from": "props.direction",
1993
+ "cases": {
1994
+ "vertical": "auto",
1995
+ "both": "auto"
1996
+ },
1997
+ "default": "hidden"
1998
+ }
1999
+ },
2000
+ "minWidth": 0,
2001
+ "minHeight": 0,
2002
+ "maxHeight": "{props.maxHeight}"
2003
+ },
2004
+ "children": [
2005
+ "$children"
2006
+ ]
2007
+ }
2008
+ },
2009
+ "Sidebar": {
2010
+ "recipeProps": [
2011
+ "side"
2012
+ ],
2013
+ "root": {
2014
+ "part": "root",
2015
+ "component": "Box",
2016
+ "style": {
2017
+ "display": "flex",
2018
+ "flexDirection": {
2019
+ "$map": {
2020
+ "from": "props.side",
2021
+ "cases": {
2022
+ "right": "row-reverse"
2023
+ },
2024
+ "default": "row"
2025
+ }
2026
+ },
2027
+ "alignItems": "stretch",
2028
+ "width": "100%",
2029
+ "minHeight": 0
2030
+ },
2031
+ "children": [
2032
+ {
2033
+ "part": "sidebar",
2034
+ "component": "Box",
2035
+ "$if": "!props.collapsed",
2036
+ "$a11y": {
2037
+ "role": "navigation"
2038
+ },
2039
+ "style": {
2040
+ "display": "flex",
2041
+ "flexDirection": "column",
2042
+ "width": "{props.width|240}",
2043
+ "flexShrink": 0,
2044
+ "minHeight": 0,
2045
+ "@media (max-width: $breakpoint.{props.collapseBelow|md})": {
2046
+ "$cond": [
2047
+ {
2048
+ "$not": {
2049
+ "$eq": [
2050
+ "{props.collapseBelow|md}",
2051
+ "never"
2052
+ ]
2053
+ }
2054
+ },
2055
+ {
2056
+ "display": "none"
2057
+ }
2058
+ ]
2059
+ }
2060
+ },
2061
+ "children": [
2062
+ "$slot:sidebar"
2063
+ ]
2064
+ },
2065
+ {
2066
+ "part": "main",
2067
+ "component": "Box",
2068
+ "$a11y": {
2069
+ "role": "main"
2070
+ },
2071
+ "style": {
2072
+ "display": "flex",
2073
+ "flexDirection": "column",
2074
+ "flexGrow": 1,
2075
+ "minWidth": 0,
2076
+ "minHeight": 0
2077
+ },
2078
+ "children": [
2079
+ "$children"
2080
+ ]
2081
+ }
2082
+ ]
2083
+ }
2084
+ },
2085
+ "AppBar": {
2086
+ "recipeProps": [],
2087
+ "root": {
2088
+ "part": "root",
2089
+ "component": "Box",
2090
+ "$a11y": {
2091
+ "role": "banner"
2092
+ },
2093
+ "style": {
2094
+ "display": "flex",
2095
+ "flexDirection": "row",
2096
+ "alignItems": "center",
2097
+ "gap": "$spacing.sm",
2098
+ "height": "$control.appBar",
2099
+ "paddingHorizontal": "$spacing.md",
2100
+ "width": "100%"
2101
+ },
2102
+ "children": [
2103
+ {
2104
+ "part": "back",
2105
+ "component": "Button",
2106
+ "$if": "props.back",
2107
+ "props": {
2108
+ "icon": "ui-back",
2109
+ "variant": "ghost",
2110
+ "size": "icon",
2111
+ "label": "$string.back"
2112
+ },
2113
+ "$on": {
2114
+ "press": "back"
2115
+ }
2116
+ },
2117
+ "$slot:leading",
2118
+ {
2119
+ "part": "body",
2120
+ "component": "Box",
2121
+ "style": {
2122
+ "display": "flex",
2123
+ "flexDirection": "column",
2124
+ "flexGrow": 1,
2125
+ "minWidth": 0
2126
+ },
2127
+ "children": [
2128
+ {
2129
+ "part": "title",
2130
+ "component": "Text",
2131
+ "props": {
2132
+ "text": "{props.title}",
2133
+ "variant": "title",
2134
+ "lines": 1
2135
+ },
2136
+ "$a11y": {
2137
+ "role": "heading",
2138
+ "level": 1
2139
+ }
2140
+ },
2141
+ {
2142
+ "part": "subtitle",
2143
+ "component": "Text",
2144
+ "$if": "props.subtitle",
2145
+ "props": {
2146
+ "text": "{props.subtitle}",
2147
+ "variant": "muted",
2148
+ "lines": 1
2149
+ }
2150
+ }
2151
+ ]
2152
+ },
2153
+ "$slot:trailing"
2154
+ ]
2155
+ }
2156
+ },
2157
+ "Kbd": {
2158
+ "recipeProps": [],
2159
+ "root": {
2160
+ "part": "root",
2161
+ "component": "Box",
2162
+ "style": {
2163
+ "display": "flex",
2164
+ "flexDirection": "row",
2165
+ "alignItems": "center",
2166
+ "height": "$control.badge",
2167
+ "paddingHorizontal": "$spacing.xs",
2168
+ "borderRadius": "$radius.sm",
2169
+ "alignSelf": "flex-start"
2170
+ },
2171
+ "children": [
2172
+ {
2173
+ "part": "label",
2174
+ "component": "Text",
2175
+ "props": {
2176
+ "text": "{props.keys}",
2177
+ "variant": "code",
2178
+ "lines": 1
2179
+ }
2180
+ }
2181
+ ]
2182
+ }
2183
+ },
2184
+ "Label": {
2185
+ "recipeProps": [
2186
+ "required"
2187
+ ],
2188
+ "root": {
2189
+ "part": "root",
2190
+ "component": "Box",
2191
+ "style": {
2192
+ "display": "flex",
2193
+ "flexDirection": "row",
2194
+ "alignItems": "center",
2195
+ "gap": "$spacing.xxs"
2196
+ },
2197
+ "children": [
2198
+ {
2199
+ "part": "text",
2200
+ "component": "Text",
2201
+ "props": {
2202
+ "text": "{props.text}",
2203
+ "variant": "label"
2204
+ }
2205
+ },
2206
+ {
2207
+ "part": "mark",
2208
+ "component": "Text",
2209
+ "$if": "props.required",
2210
+ "props": {
2211
+ "text": "*",
2212
+ "variant": "label",
2213
+ "tone": "danger"
2214
+ }
2215
+ }
2216
+ ]
2217
+ }
2218
+ },
2219
+ "Breadcrumb": {
2220
+ "recipeProps": [],
2221
+ "root": {
2222
+ "part": "root",
2223
+ "component": "Box",
2224
+ "$a11y": {
2225
+ "role": "navigation",
2226
+ "label": "$string.breadcrumb"
2227
+ },
2228
+ "style": {
2229
+ "display": "flex",
2230
+ "flexDirection": "row",
2231
+ "alignItems": "center",
2232
+ "flexWrap": "wrap",
2233
+ "gap": "$spacing.xs"
2234
+ },
2235
+ "children": [
2236
+ {
2237
+ "part": "item",
2238
+ "component": "Box",
2239
+ "$each": "props.items",
2240
+ "$as": "item",
2241
+ "style": {
2242
+ "display": "flex",
2243
+ "flexDirection": "row",
2244
+ "alignItems": "center",
2245
+ "gap": "$spacing.xs"
2246
+ },
2247
+ "$recipe": {
2248
+ "current": {
2249
+ "$eq": [
2250
+ "{index}",
2251
+ {
2252
+ "$sub": [
2253
+ "{len(props.items)}",
2254
+ 1
2255
+ ]
2256
+ }
2257
+ ]
2258
+ }
2259
+ },
2260
+ "children": [
2261
+ {
2262
+ "part": "separator",
2263
+ "component": "Icon",
2264
+ "$if": {
2265
+ "$lt": [
2266
+ 0,
2267
+ "{index}"
2268
+ ]
2269
+ },
2270
+ "props": {
2271
+ "name": "ui-chevron-right",
2272
+ "size": "sm",
2273
+ "tone": "neutral"
2274
+ },
2275
+ "$a11y": {
2276
+ "hidden": true
2277
+ }
2278
+ },
2279
+ {
2280
+ "part": "link",
2281
+ "component": "Button",
2282
+ "$if": {
2283
+ "$not": {
2284
+ "$eq": [
2285
+ "{index}",
2286
+ {
2287
+ "$sub": [
2288
+ "{len(props.items)}",
2289
+ 1
2290
+ ]
2291
+ }
2292
+ ]
2293
+ }
2294
+ },
2295
+ "props": {
2296
+ "label": "{item.label}",
2297
+ "icon": "{item.icon}",
2298
+ "variant": "link",
2299
+ "size": "sm"
2300
+ },
2301
+ "$on": {
2302
+ "press": "select"
2303
+ },
2304
+ "$context": {
2305
+ "value": "{item.value}"
2306
+ }
2307
+ },
2308
+ {
2309
+ "part": "current",
2310
+ "component": "Text",
2311
+ "$if": {
2312
+ "$eq": [
2313
+ "{index}",
2314
+ {
2315
+ "$sub": [
2316
+ "{len(props.items)}",
2317
+ 1
2318
+ ]
2319
+ }
2320
+ ]
2321
+ },
2322
+ "props": {
2323
+ "text": "{item.label}",
2324
+ "variant": "label",
2325
+ "lines": 1
2326
+ },
2327
+ "$a11y": {
2328
+ "current": "page"
2329
+ }
2330
+ }
2331
+ ]
2332
+ }
2333
+ ]
2334
+ }
2335
+ },
2336
+ "Stepper": {
2337
+ "recipeProps": [
2338
+ "orientation"
2339
+ ],
2340
+ "root": {
2341
+ "part": "root",
2342
+ "component": "Box",
2343
+ "$a11y": {
2344
+ "role": "list"
2345
+ },
2346
+ "style": {
2347
+ "display": "flex",
2348
+ "flexDirection": {
2349
+ "$map": {
2350
+ "from": "props.orientation",
2351
+ "cases": {
2352
+ "vertical": "column"
2353
+ },
2354
+ "default": "row"
2355
+ }
2356
+ },
2357
+ "alignItems": {
2358
+ "$map": {
2359
+ "from": "props.orientation",
2360
+ "cases": {
2361
+ "vertical": "stretch"
2362
+ },
2363
+ "default": "flex-start"
2364
+ }
2365
+ },
2366
+ "gap": "$spacing.md",
2367
+ "width": "100%"
2368
+ },
2369
+ "children": [
2370
+ {
2371
+ "part": "step",
2372
+ "component": "Box",
2373
+ "$each": "props.steps",
2374
+ "$as": "step",
2375
+ "style": {
2376
+ "display": "flex",
2377
+ "flexDirection": {
2378
+ "$map": {
2379
+ "from": "props.orientation",
2380
+ "cases": {
2381
+ "vertical": "row"
2382
+ },
2383
+ "default": "column"
2384
+ }
2385
+ },
2386
+ "alignItems": {
2387
+ "$map": {
2388
+ "from": "props.orientation",
2389
+ "cases": {
2390
+ "vertical": "flex-start"
2391
+ },
2392
+ "default": "center"
2393
+ }
2394
+ },
2395
+ "gap": "$spacing.xs",
2396
+ "flexGrow": 1,
2397
+ "flexBasis": 0,
2398
+ "minWidth": 0
2399
+ },
2400
+ "$recipe": {
2401
+ "status": {
2402
+ "$cond": [
2403
+ {
2404
+ "$lt": [
2405
+ "{index}",
2406
+ "{props.current|0}"
2407
+ ]
2408
+ },
2409
+ "done",
2410
+ {
2411
+ "$cond": [
2412
+ {
2413
+ "$eq": [
2414
+ "{index}",
2415
+ "{props.current|0}"
2416
+ ]
2417
+ },
2418
+ "current",
2419
+ "upcoming"
2420
+ ]
2421
+ }
2422
+ ]
2423
+ }
2424
+ },
2425
+ "$a11y": {
2426
+ "role": "listitem",
2427
+ "current": {
2428
+ "$cond": [
2429
+ {
2430
+ "$eq": [
2431
+ "{index}",
2432
+ "{props.current|0}"
2433
+ ]
2434
+ },
2435
+ "step",
2436
+ false
2437
+ ]
2438
+ },
2439
+ "label": {
2440
+ "$fill": [
2441
+ {
2442
+ "$cond": [
2443
+ {
2444
+ "$lt": [
2445
+ "{index}",
2446
+ "{props.current|0}"
2447
+ ]
2448
+ },
2449
+ "$string.stepDone",
2450
+ {
2451
+ "$cond": [
2452
+ {
2453
+ "$eq": [
2454
+ "{index}",
2455
+ "{props.current|0}"
2456
+ ]
2457
+ },
2458
+ "$string.stepCurrent",
2459
+ "$string.stepUpcoming"
2460
+ ]
2461
+ }
2462
+ ]
2463
+ },
2464
+ {
2465
+ "step": {
2466
+ "$add": [
2467
+ "{index}",
2468
+ 1
2469
+ ]
2470
+ },
2471
+ "total": "{len(props.steps)}",
2472
+ "label": "{step.label}"
2473
+ }
2474
+ ]
2475
+ }
2476
+ },
2477
+ "children": [
2478
+ {
2479
+ "part": "marker",
2480
+ "component": "Box",
2481
+ "$a11y": {
2482
+ "hidden": true
2483
+ },
2484
+ "style": {
2485
+ "display": "flex",
2486
+ "alignItems": "center",
2487
+ "justifyContent": "center",
2488
+ "width": "$control.iconLg",
2489
+ "height": "$control.iconLg",
2490
+ "borderRadius": "$radius.full",
2491
+ "flexShrink": 0
2492
+ },
2493
+ "$recipe": {
2494
+ "status": {
2495
+ "$cond": [
2496
+ {
2497
+ "$lt": [
2498
+ "{index}",
2499
+ "{props.current|0}"
2500
+ ]
2501
+ },
2502
+ "done",
2503
+ {
2504
+ "$cond": [
2505
+ {
2506
+ "$eq": [
2507
+ "{index}",
2508
+ "{props.current|0}"
2509
+ ]
2510
+ },
2511
+ "current",
2512
+ "upcoming"
2513
+ ]
2514
+ }
2515
+ ]
2516
+ }
2517
+ },
2518
+ "children": [
2519
+ {
2520
+ "part": "check",
2521
+ "component": "Icon",
2522
+ "$if": {
2523
+ "$lt": [
2524
+ "{index}",
2525
+ "{props.current|0}"
2526
+ ]
2527
+ },
2528
+ "props": {
2529
+ "name": "ui-check",
2530
+ "size": "sm"
2531
+ }
2532
+ },
2533
+ {
2534
+ "part": "number",
2535
+ "component": "Text",
2536
+ "$if": {
2537
+ "$not": {
2538
+ "$lt": [
2539
+ "{index}",
2540
+ "{props.current|0}"
2541
+ ]
2542
+ }
2543
+ },
2544
+ "props": {
2545
+ "text": {
2546
+ "$text": {
2547
+ "$add": [
2548
+ "{index}",
2549
+ 1
2550
+ ]
2551
+ }
2552
+ },
2553
+ "variant": "caption"
2554
+ },
2555
+ "$recipe": {
2556
+ "status": {
2557
+ "$cond": [
2558
+ {
2559
+ "$eq": [
2560
+ "{index}",
2561
+ "{props.current|0}"
2562
+ ]
2563
+ },
2564
+ "current",
2565
+ "upcoming"
2566
+ ]
2567
+ }
2568
+ }
2569
+ }
2570
+ ]
2571
+ },
2572
+ {
2573
+ "part": "body",
2574
+ "component": "Box",
2575
+ "style": {
2576
+ "display": "flex",
2577
+ "flexDirection": "column",
2578
+ "gap": "$spacing.xxs",
2579
+ "minWidth": 0
2580
+ },
2581
+ "children": [
2582
+ {
2583
+ "part": "label",
2584
+ "component": "Text",
2585
+ "props": {
2586
+ "text": "{step.label}",
2587
+ "variant": "label",
2588
+ "lines": 1
2589
+ },
2590
+ "$recipe": {
2591
+ "status": {
2592
+ "$cond": [
2593
+ {
2594
+ "$lt": [
2595
+ "{index}",
2596
+ "{props.current|0}"
2597
+ ]
2598
+ },
2599
+ "done",
2600
+ {
2601
+ "$cond": [
2602
+ {
2603
+ "$eq": [
2604
+ "{index}",
2605
+ "{props.current|0}"
2606
+ ]
2607
+ },
2608
+ "current",
2609
+ "upcoming"
2610
+ ]
2611
+ }
2612
+ ]
2613
+ }
2614
+ }
2615
+ },
2616
+ {
2617
+ "part": "description",
2618
+ "component": "Text",
2619
+ "$if": "step.description",
2620
+ "props": {
2621
+ "text": "{step.description}",
2622
+ "variant": "muted",
2623
+ "lines": 2
2624
+ }
2625
+ }
2626
+ ]
2627
+ }
2628
+ ]
2629
+ }
2630
+ ]
2631
+ }
2632
+ },
2633
+ "Rating": {
2634
+ "recipeProps": [
2635
+ "size",
2636
+ "readOnly"
2637
+ ],
2638
+ "root": {
2639
+ "part": "root",
2640
+ "component": "Box",
2641
+ "$a11y": {
2642
+ "role": {
2643
+ "$cond": [
2644
+ "props.readOnly",
2645
+ "img",
2646
+ "group"
2647
+ ]
2648
+ },
2649
+ "label": {
2650
+ "$cond": [
2651
+ "props.readOnly",
2652
+ {
2653
+ "$fill": [
2654
+ "$string.ratingValue",
2655
+ {
2656
+ "value": "{props.value|0}",
2657
+ "max": "{props.max|5}"
2658
+ }
2659
+ ]
2660
+ }
2661
+ ]
2662
+ }
2663
+ },
2664
+ "style": {
2665
+ "display": "flex",
2666
+ "flexDirection": "row",
2667
+ "alignItems": "center",
2668
+ "gap": "$spacing.xxs",
2669
+ "alignSelf": "flex-start"
2670
+ },
2671
+ "children": [
2672
+ {
2673
+ "part": "star",
2674
+ "component": "Box",
2675
+ "$each": "range(props.max|5)",
2676
+ "$as": "star",
2677
+ "props": {
2678
+ "pressable": {
2679
+ "$not": "props.readOnly"
2680
+ }
2681
+ },
2682
+ "style": {
2683
+ "display": "flex",
2684
+ "alignItems": "center",
2685
+ "justifyContent": "center"
2686
+ },
2687
+ "$recipe": {
2688
+ "filled": {
2689
+ "$lt": [
2690
+ "{index}",
2691
+ "{props.value|0}"
2692
+ ]
2693
+ }
2694
+ },
2695
+ "$a11y": {
2696
+ "role": {
2697
+ "$cond": [
2698
+ "props.readOnly",
2699
+ "hidden",
2700
+ "button"
2701
+ ]
2702
+ },
2703
+ "label": {
2704
+ "$fill": [
2705
+ "$string.ratingStar",
2706
+ {
2707
+ "value": {
2708
+ "$add": [
2709
+ "{index}",
2710
+ 1
2711
+ ]
2712
+ },
2713
+ "max": "{props.max|5}"
2714
+ }
2715
+ ]
2716
+ },
2717
+ "pressed": {
2718
+ "$eq": [
2719
+ {
2720
+ "$add": [
2721
+ "{index}",
2722
+ 1
2723
+ ]
2724
+ },
2725
+ "{props.value|0}"
2726
+ ]
2727
+ }
2728
+ },
2729
+ "$on": {
2730
+ "press": "change"
2731
+ },
2732
+ "$context": {
2733
+ "value": {
2734
+ "$add": [
2735
+ "{index}",
2736
+ 1
2737
+ ]
2738
+ }
2739
+ },
2740
+ "$set": {
2741
+ "press": {
2742
+ "prop": "value",
2743
+ "value": {
2744
+ "$add": [
2745
+ "{index}",
2746
+ 1
2747
+ ]
2748
+ }
2749
+ }
2750
+ },
2751
+ "children": [
2752
+ {
2753
+ "part": "icon",
2754
+ "component": "Icon",
2755
+ "props": {
2756
+ "name": "star",
2757
+ "size": "{props.size|default}"
2758
+ },
2759
+ "$recipe": {
2760
+ "filled": {
2761
+ "$lt": [
2762
+ "{index}",
2763
+ "{props.value|0}"
2764
+ ]
2765
+ }
2766
+ }
2767
+ }
2768
+ ]
2769
+ }
2770
+ ]
2771
+ }
2772
+ },
2773
+ "AlertDialog": {
2774
+ "recipeProps": [
2775
+ "destructive"
2776
+ ],
2777
+ "root": {
2778
+ "part": "root",
2779
+ "component": "Dialog",
2780
+ "$a11y": {
2781
+ "role": "alertdialog"
2782
+ },
2783
+ "props": {
2784
+ "title": "{props.title}",
2785
+ "description": "{props.description}",
2786
+ "open": "{props.open|false}",
2787
+ "dismissible": false
2788
+ },
2789
+ "slots": {
2790
+ "trigger": "$slot:trigger",
2791
+ "footer": {
2792
+ "part": "footer",
2793
+ "component": "Box",
2794
+ "style": {
2795
+ "display": "flex",
2796
+ "flexDirection": "row",
2797
+ "justifyContent": "flex-end",
2798
+ "flexWrap": "wrap",
2799
+ "gap": "$spacing.sm"
2800
+ },
2801
+ "children": [
2802
+ {
2803
+ "part": "cancel",
2804
+ "component": "Button",
2805
+ "props": {
2806
+ "label": "{props.cancelLabel|$string.cancel}",
2807
+ "variant": "outline"
2808
+ },
2809
+ "$a11y": {
2810
+ "autoFocus": true
2811
+ },
2812
+ "$on": {
2813
+ "press": "cancel"
2814
+ },
2815
+ "$set": {
2816
+ "press": {
2817
+ "prop": "open",
2818
+ "value": false
2819
+ }
2820
+ }
2821
+ },
2822
+ {
2823
+ "part": "confirm",
2824
+ "component": "Button",
2825
+ "props": {
2826
+ "label": "{props.confirmLabel|$string.confirm}",
2827
+ "variant": {
2828
+ "$cond": [
2829
+ "props.destructive",
2830
+ "destructive",
2831
+ "default"
2832
+ ]
2833
+ }
2834
+ },
2835
+ "$on": {
2836
+ "press": "confirm"
2837
+ },
2838
+ "$set": {
2839
+ "press": {
2840
+ "prop": "open",
2841
+ "value": false
2842
+ }
2843
+ }
2844
+ }
2845
+ ]
2846
+ }
2847
+ },
2848
+ "$on": {
2849
+ "change": "change"
2850
+ },
2851
+ "children": [
2852
+ "$children"
2853
+ ]
2854
+ }
2855
+ },
2856
+ "DockCard": {
2857
+ "recipeProps": [
2858
+ "tone"
2859
+ ],
2860
+ "root": {
2861
+ "part": "root",
2862
+ "component": "Box",
2863
+ "style": {
2864
+ "display": "flex",
2865
+ "flexDirection": "column"
2866
+ },
2867
+ "children": [
2868
+ {
2869
+ "part": "trigger",
2870
+ "component": "Box",
2871
+ "$a11y": {
2872
+ "role": "button",
2873
+ "label": "{props.label}: {props.title}"
2874
+ },
2875
+ "props": {
2876
+ "pressable": true
2877
+ },
2878
+ "style": {
2879
+ "display": "flex",
2880
+ "flexDirection": "row",
2881
+ "alignItems": "flex-start",
2882
+ "gap": "$spacing.sm",
2883
+ "padding": "$spacing.md",
2884
+ "borderRadius": "$radius.xl"
2885
+ },
2886
+ "$on": {
2887
+ "press": "press"
2888
+ },
2889
+ "$set": {
2890
+ "press": {
2891
+ "prop": "open",
2892
+ "value": true
2893
+ }
2894
+ },
2895
+ "children": [
2896
+ {
2897
+ "part": "icon",
2898
+ "component": "Icon",
2899
+ "$if": "props.icon",
2900
+ "props": {
2901
+ "name": "{props.icon}",
2902
+ "size": "sm",
2903
+ "tone": "{props.tone|neutral}"
2904
+ },
2905
+ "style": {
2906
+ "flexShrink": 0
2907
+ }
2908
+ },
2909
+ {
2910
+ "part": "body",
2911
+ "component": "Box",
2912
+ "style": {
2913
+ "display": "flex",
2914
+ "flexDirection": "column",
2915
+ "gap": "$spacing.xxs",
2916
+ "flexGrow": 1,
2917
+ "minWidth": 0
2918
+ },
2919
+ "children": [
2920
+ {
2921
+ "part": "header",
2922
+ "component": "Box",
2923
+ "style": {
2924
+ "display": "flex",
2925
+ "flexDirection": "row",
2926
+ "alignItems": "center",
2927
+ "gap": "$spacing.sm"
2928
+ },
2929
+ "children": [
2930
+ {
2931
+ "part": "label",
2932
+ "component": "Text",
2933
+ "props": {
2934
+ "text": "{props.label}",
2935
+ "variant": "caption",
2936
+ "tone": "{props.tone|neutral}",
2937
+ "lines": 1
2938
+ }
2939
+ },
2940
+ {
2941
+ "part": "caption",
2942
+ "component": "Text",
2943
+ "$if": "props.caption",
2944
+ "props": {
2945
+ "text": "{props.caption}",
2946
+ "variant": "muted",
2947
+ "lines": 1
2948
+ },
2949
+ "style": {
2950
+ "flexShrink": 1,
2951
+ "minWidth": 0
2952
+ }
2953
+ },
2954
+ {
2955
+ "part": "spacer",
2956
+ "component": "Box",
2957
+ "style": {
2958
+ "flexGrow": 1,
2959
+ "minWidth": 0
2960
+ }
2961
+ },
2962
+ {
2963
+ "part": "meta",
2964
+ "component": "Text",
2965
+ "$if": "props.meta",
2966
+ "props": {
2967
+ "text": "{props.meta}",
2968
+ "variant": "muted",
2969
+ "lines": 1
2970
+ }
2971
+ }
2972
+ ]
2973
+ },
2974
+ {
2975
+ "part": "row",
2976
+ "component": "Box",
2977
+ "style": {
2978
+ "display": "flex",
2979
+ "flexDirection": "row",
2980
+ "alignItems": "center",
2981
+ "gap": "$spacing.sm"
2982
+ },
2983
+ "children": [
2984
+ {
2985
+ "part": "title",
2986
+ "component": "Text",
2987
+ "props": {
2988
+ "text": "{props.title}",
2989
+ "lines": 1
2990
+ },
2991
+ "style": {
2992
+ "flexGrow": 1,
2993
+ "minWidth": 0
2994
+ }
2995
+ },
2996
+ {
2997
+ "part": "chevron",
2998
+ "component": "Icon",
2999
+ "props": {
3000
+ "name": "ui-chevron-right",
3001
+ "size": "sm",
3002
+ "tone": "neutral"
3003
+ }
3004
+ }
3005
+ ]
3006
+ }
3007
+ ]
3008
+ }
3009
+ ]
3010
+ },
3011
+ {
3012
+ "part": "sheet",
3013
+ "component": "Drawer",
3014
+ "props": {
3015
+ "title": "{props.label}",
3016
+ "description": "{props.caption}",
3017
+ "open": "{props.open|false}",
3018
+ "side": "bottom"
3019
+ },
3020
+ "slots": {
3021
+ "footer": "$slot:footer"
3022
+ },
3023
+ "$on": {
3024
+ "change": "change"
3025
+ },
3026
+ "children": [
3027
+ "$children"
3028
+ ]
3029
+ }
3030
+ ]
3031
+ }
3032
+ },
3033
+ "Sparkline": {
3034
+ "recipeProps": [
3035
+ "tone"
3036
+ ],
3037
+ "root": {
3038
+ "part": "root",
3039
+ "component": "Chart",
3040
+ "props": {
3041
+ "kind": "sparkline",
3042
+ "series": [
3043
+ {
3044
+ "name": "",
3045
+ "values": "{props.values}",
3046
+ "tone": "{props.tone|primary}"
3047
+ }
3048
+ ],
3049
+ "height": "{props.height|24}",
3050
+ "showAxes": false,
3051
+ "showGrid": false,
3052
+ "showLegend": false
3053
+ },
3054
+ "style": {
3055
+ "width": "100%"
3056
+ }
3057
+ }
3058
+ },
3059
+ "Page": {
3060
+ "recipeProps": [],
3061
+ "root": {
3062
+ "part": "root",
3063
+ "component": "Box",
3064
+ "style": {
3065
+ "display": "flex",
3066
+ "flexDirection": "column",
3067
+ "flexGrow": 1,
3068
+ "minHeight": 0,
3069
+ "width": "100%"
3070
+ },
3071
+ "children": [
3072
+ {
3073
+ "part": "header",
3074
+ "component": "AppBar",
3075
+ "props": {
3076
+ "title": "{props.title}",
3077
+ "subtitle": "{props.subtitle}",
3078
+ "back": "{props.back|false}"
3079
+ },
3080
+ "slots": {
3081
+ "leading": "$slot:leading",
3082
+ "trailing": "$slot:trailing"
3083
+ },
3084
+ "$on": {
3085
+ "back": "back"
3086
+ }
3087
+ },
3088
+ {
3089
+ "part": "body",
3090
+ "component": "Box",
3091
+ "$a11y": {
3092
+ "role": "main"
3093
+ },
3094
+ "style": {
3095
+ "display": "flex",
3096
+ "flexDirection": "column",
3097
+ "flexGrow": 1,
3098
+ "minHeight": 0,
3099
+ "overflowY": "auto",
3100
+ "gap": "$spacing.lg",
3101
+ "padding": {
3102
+ "$map": {
3103
+ "from": "props.padded",
3104
+ "cases": {
3105
+ "false": "$spacing.none"
3106
+ },
3107
+ "default": "$spacing.lg"
3108
+ }
3109
+ }
3110
+ },
3111
+ "children": [
3112
+ "$children"
3113
+ ]
3114
+ }
3115
+ ]
3116
+ }
3117
+ },
3118
+ "Toolbar": {
3119
+ "recipeProps": [],
3120
+ "root": {
3121
+ "part": "root",
3122
+ "component": "Box",
3123
+ "$a11y": {
3124
+ "role": "group"
3125
+ },
3126
+ "style": {
3127
+ "display": "flex",
3128
+ "flexDirection": "row",
3129
+ "flexWrap": "wrap",
3130
+ "alignItems": "flex-end",
3131
+ "gap": "$spacing.{props.gap|sm}",
3132
+ "width": "100%"
3133
+ },
3134
+ "children": [
3135
+ "$children",
3136
+ {
3137
+ "part": "spacer",
3138
+ "component": "Box",
3139
+ "style": {
3140
+ "flexGrow": 1,
3141
+ "minWidth": 0
3142
+ }
3143
+ },
3144
+ "$slot:trailing"
3145
+ ]
3146
+ }
3147
+ },
3148
+ "SplitView": {
3149
+ "recipeProps": [],
3150
+ "root": {
3151
+ "part": "root",
3152
+ "component": "Box",
3153
+ "style": {
3154
+ "display": "flex",
3155
+ "flexDirection": "row",
3156
+ "alignItems": "stretch",
3157
+ "width": "100%",
3158
+ "flexGrow": 1,
3159
+ "minHeight": 0
3160
+ },
3161
+ "children": [
3162
+ {
3163
+ "part": "list",
3164
+ "component": "Box",
3165
+ "$a11y": {
3166
+ "role": "navigation"
3167
+ },
3168
+ "style": {
3169
+ "display": "flex",
3170
+ "flexDirection": "column",
3171
+ "width": "{props.width|320}",
3172
+ "flexShrink": 0,
3173
+ "minHeight": 0,
3174
+ "overflowY": "auto",
3175
+ "@media (max-width: $breakpoint.md)": {
3176
+ "width": "100%",
3177
+ "flexShrink": 1,
3178
+ "display": {
3179
+ "$cond": [
3180
+ "props.open",
3181
+ "none",
3182
+ "flex"
3183
+ ]
3184
+ }
3185
+ }
3186
+ },
3187
+ "children": [
3188
+ "$slot:list"
3189
+ ]
3190
+ },
3191
+ {
3192
+ "part": "divider",
3193
+ "component": "Separator",
3194
+ "props": {
3195
+ "orientation": "vertical"
3196
+ },
3197
+ "style": {
3198
+ "@media (max-width: $breakpoint.md)": {
3199
+ "display": "none"
3200
+ }
3201
+ }
3202
+ },
3203
+ {
3204
+ "part": "detail",
3205
+ "component": "Box",
3206
+ "$a11y": {
3207
+ "role": "main"
3208
+ },
3209
+ "style": {
3210
+ "display": "flex",
3211
+ "flexDirection": "column",
3212
+ "flexGrow": 1,
3213
+ "minWidth": 0,
3214
+ "minHeight": 0,
3215
+ "@media (max-width: $breakpoint.md)": {
3216
+ "display": {
3217
+ "$cond": [
3218
+ "props.open",
3219
+ "flex",
3220
+ "none"
3221
+ ]
3222
+ }
3223
+ }
3224
+ },
3225
+ "children": [
3226
+ {
3227
+ "part": "backBar",
3228
+ "component": "Box",
3229
+ "style": {
3230
+ "display": "none",
3231
+ "flexDirection": "row",
3232
+ "alignItems": "center",
3233
+ "height": "$control.appBar",
3234
+ "paddingHorizontal": "$spacing.sm",
3235
+ "@media (max-width: $breakpoint.md)": {
3236
+ "display": "flex"
3237
+ }
3238
+ },
3239
+ "children": [
3240
+ {
3241
+ "part": "back",
3242
+ "component": "Button",
3243
+ "props": {
3244
+ "icon": "ui-back",
3245
+ "variant": "ghost",
3246
+ "size": "icon",
3247
+ "label": "$string.back"
3248
+ },
3249
+ "$on": {
3250
+ "press": "back"
3251
+ },
3252
+ "$set": {
3253
+ "press": {
3254
+ "prop": "open",
3255
+ "value": false
3256
+ }
3257
+ }
3258
+ }
3259
+ ]
3260
+ },
3261
+ "$children"
3262
+ ]
3263
+ }
3264
+ ]
3265
+ }
3266
+ },
3267
+ "FieldGroup": {
3268
+ "recipeProps": [],
3269
+ "root": {
3270
+ "part": "root",
3271
+ "component": "Box",
3272
+ "$a11y": {
3273
+ "role": "group"
3274
+ },
3275
+ "style": {
3276
+ "display": "grid",
3277
+ "gridTemplateColumns": "repeat(1, minmax(0, 1fr))",
3278
+ "gap": "$spacing.md",
3279
+ "alignItems": "start",
3280
+ "@media (min-width: $breakpoint.md)": {
3281
+ "gridTemplateColumns": "repeat({props.columns|2}, minmax(0, 1fr))"
3282
+ }
3283
+ },
3284
+ "children": [
3285
+ "$children"
3286
+ ]
3287
+ }
3288
+ },
3289
+ "FormActions": {
3290
+ "recipeProps": [],
3291
+ "root": {
3292
+ "part": "root",
3293
+ "component": "Box",
3294
+ "$a11y": {
3295
+ "role": "group"
3296
+ },
3297
+ "style": {
3298
+ "display": "flex",
3299
+ "flexDirection": "row",
3300
+ "flexWrap": "wrap",
3301
+ "justifyContent": "flex-end",
3302
+ "alignItems": "center",
3303
+ "gap": "$spacing.sm",
3304
+ "width": "100%"
3305
+ },
3306
+ "children": [
3307
+ "$children",
3308
+ {
3309
+ "part": "cancel",
3310
+ "component": "Button",
3311
+ "$if": "props.cancel",
3312
+ "props": {
3313
+ "label": "$string.cancel",
3314
+ "variant": "outline"
3315
+ },
3316
+ "$on": {
3317
+ "press": "cancel"
3318
+ }
3319
+ },
3320
+ {
3321
+ "part": "submit",
3322
+ "component": "Button",
3323
+ "props": {
3324
+ "label": "{props.submit}",
3325
+ "variant": {
3326
+ "$cond": [
3327
+ "props.destructive",
3328
+ "destructive",
3329
+ "default"
3330
+ ]
3331
+ },
3332
+ "submit": true
3333
+ }
3334
+ }
3335
+ ]
3336
+ }
3337
+ },
3338
+ "StatTile": {
3339
+ "recipeProps": [],
3340
+ "root": {
3341
+ "part": "root",
3342
+ "component": "Box",
3343
+ "$a11y": {
3344
+ "role": "group",
3345
+ "label": "{props.label}"
3346
+ },
3347
+ "style": {
3348
+ "display": "flex",
3349
+ "flexDirection": "column",
3350
+ "minWidth": 0
3351
+ },
3352
+ "children": [
3353
+ {
3354
+ "part": "card",
3355
+ "component": "Card",
3356
+ "children": [
3357
+ {
3358
+ "part": "header",
3359
+ "component": "Box",
3360
+ "style": {
3361
+ "display": "flex",
3362
+ "flexDirection": "row",
3363
+ "alignItems": "center",
3364
+ "gap": "$spacing.sm"
3365
+ },
3366
+ "children": [
3367
+ {
3368
+ "part": "label",
3369
+ "component": "Text",
3370
+ "props": {
3371
+ "text": "{props.label}",
3372
+ "variant": "muted",
3373
+ "lines": 1
3374
+ },
3375
+ "style": {
3376
+ "flexGrow": 1,
3377
+ "flexShrink": 1,
3378
+ "minWidth": 0
3379
+ }
3380
+ },
3381
+ {
3382
+ "part": "delta",
3383
+ "component": "Text",
3384
+ "$if": "props.delta",
3385
+ "props": {
3386
+ "text": "{props.delta}",
3387
+ "variant": "caption",
3388
+ "tone": "{props.tone|neutral}"
3389
+ }
3390
+ }
3391
+ ]
3392
+ },
3393
+ {
3394
+ "part": "value",
3395
+ "component": "Text",
3396
+ "props": {
3397
+ "text": "{props.value}",
3398
+ "variant": "title",
3399
+ "lines": 1
3400
+ }
3401
+ },
3402
+ {
3403
+ "part": "trend",
3404
+ "component": "Sparkline",
3405
+ "$if": "props.trend",
3406
+ "props": {
3407
+ "values": "{props.trend}",
3408
+ "height": 32
3409
+ }
3410
+ }
3411
+ ]
3412
+ }
3413
+ ]
3414
+ }
3415
+ }
3416
+ }
3417
+ }