@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.
- package/LICENSE +201 -0
- package/NOTICE +54 -0
- package/README.md +360 -2
- package/catalog/a11y.json +668 -0
- package/catalog/basic-map.json +104 -0
- package/catalog/code.json +58 -0
- package/catalog/core.catalog.json +4752 -0
- package/catalog/core.schema.json +22667 -0
- package/catalog/host.json +64 -0
- package/catalog/layout.json +20 -0
- package/catalog/limits.json +9 -0
- package/catalog/locale.json +48 -0
- package/catalog/macros.json +3417 -0
- package/catalog/recipes.json +61 -0
- package/catalog/strings.json +72 -0
- package/catalog/style.json +128 -0
- package/catalog/theme.schema.json +42543 -0
- package/catalog/tokens.json +47 -0
- package/conformance/README.md +217 -0
- package/conformance/baseline.ts +101 -0
- package/conformance/browser-page.ts +146 -0
- package/conformance/browser-suites.ts +683 -0
- package/conformance/compare.ts +201 -0
- package/conformance/dom.ts +96 -0
- package/conformance/dump.ts +163 -0
- package/conformance/fonts.json +154 -0
- package/conformance/manifest.json +224 -0
- package/conformance/parity-compare.ts +191 -0
- package/conformance/parity-report.schema.json +73 -0
- package/conformance/parity.ts +412 -0
- package/conformance/pixel.ts +177 -0
- package/conformance/primitives-page.ts +49 -0
- package/conformance/report.schema.json +66 -0
- package/conformance/run.ts +118 -0
- package/dist/chunks/index-98npjvsd.js +3940 -0
- package/dist/chunks/index-98npjvsd.js.map +27 -0
- package/dist/chunks/index-gwkt14w3.js +7314 -0
- package/dist/chunks/index-gwkt14w3.js.map +10 -0
- package/dist/chunks/index-njt7yzzm.js +134 -0
- package/dist/chunks/index-njt7yzzm.js.map +9 -0
- package/dist/chunks/index-we7va6v6.js +7984 -0
- package/dist/chunks/index-we7va6v6.js.map +15 -0
- package/dist/chunks/index-xrm6f7wc.js +2563 -0
- package/dist/chunks/index-xrm6f7wc.js.map +10 -0
- package/dist/conformance.js +182749 -0
- package/dist/conformance.js.map +10 -0
- package/dist/entries/prompt.js +251 -0
- package/dist/entries/prompt.js.map +11 -0
- package/dist/entries/schema.js +1725 -0
- package/dist/entries/schema.js.map +11 -0
- package/dist/host/index.js +122 -0
- package/dist/host/index.js.map +9 -0
- package/dist/index.js +3213 -0
- package/dist/index.js.map +27 -0
- package/dist/types/src/a11y.d.ts +21 -0
- package/dist/types/src/animation.d.ts +76 -0
- package/dist/types/src/basic-map.d.ts +38 -0
- package/dist/types/src/builder.d.ts +50 -0
- package/dist/types/src/catalog.d.ts +54 -0
- package/dist/types/src/catalog.described.d.ts +33 -0
- package/dist/types/src/catalog.generated.d.ts +829 -0
- package/dist/types/src/chart.d.ts +46 -0
- package/dist/types/src/code.d.ts +44 -0
- package/dist/types/src/color.d.ts +20 -0
- package/dist/types/src/conformance.d.ts +39 -0
- package/dist/types/src/connector/app.d.ts +14 -0
- package/dist/types/src/connector/connector.d.ts +77 -0
- package/dist/types/src/connector/index.d.ts +4 -0
- package/dist/types/src/css.d.ts +29 -0
- package/dist/types/src/define.d.ts +66 -0
- package/dist/types/src/direction.d.ts +16 -0
- package/dist/types/src/dynamic.d.ts +159 -0
- package/dist/types/src/entries/prompt.d.ts +11 -0
- package/dist/types/src/entries/schema.d.ts +8 -0
- package/dist/types/src/expr.d.ts +71 -0
- package/dist/types/src/extension.d.ts +4 -0
- package/dist/types/src/format.d.ts +112 -0
- package/dist/types/src/geometry.d.ts +40 -0
- package/dist/types/src/host/contract.d.ts +188 -0
- package/dist/types/src/host/decoders.d.ts +61 -0
- package/dist/types/src/host/index.d.ts +11 -0
- package/dist/types/src/host/package.d.ts +58 -0
- package/dist/types/src/host/policy.d.ts +105 -0
- package/dist/types/src/host/router.d.ts +34 -0
- package/dist/types/src/host/runtime.d.ts +205 -0
- package/dist/types/src/host/sources.d.ts +15 -0
- package/dist/types/src/host/transports.d.ts +109 -0
- package/dist/types/src/index.d.ts +63 -0
- package/dist/types/src/layout.d.ts +20 -0
- package/dist/types/src/limits.d.ts +21 -0
- package/dist/types/src/list.d.ts +133 -0
- package/dist/types/src/locale.d.ts +22 -0
- package/dist/types/src/macros.d.ts +29 -0
- package/dist/types/src/overlay.d.ts +27 -0
- package/dist/types/src/prompt.d.ts +44 -0
- package/dist/types/src/recipes.d.ts +17 -0
- package/dist/types/src/reducer.d.ts +41 -0
- package/dist/types/src/resizable.d.ts +38 -0
- package/dist/types/src/schema.d.ts +7 -0
- package/dist/types/src/strings.d.ts +13 -0
- package/dist/types/src/style.d.ts +201 -0
- package/dist/types/src/test-preload.d.ts +1 -0
- package/dist/types/src/text-shimmer.d.ts +24 -0
- package/dist/types/src/theme-types.d.ts +162 -0
- package/dist/types/src/theme.d.ts +73 -0
- package/dist/types/src/themes.d.ts +22 -0
- package/dist/types/src/tree-guides.d.ts +17 -0
- package/dist/types/src/types.d.ts +314 -0
- package/dist/types/src/validate.d.ts +31 -0
- package/dist/types/src/web/base-css.d.ts +1 -0
- package/dist/types/src/web/box-css.d.ts +55 -0
- package/dist/types/src/web/coerce.d.ts +32 -0
- package/dist/types/src/web/data.d.ts +105 -0
- package/dist/types/src/web/dates.d.ts +12 -0
- package/dist/types/src/web/form.d.ts +44 -0
- package/dist/types/src/web/host-types.d.ts +119 -0
- package/dist/types/src/web/index.d.ts +28 -0
- package/dist/types/src/web/inputs.d.ts +55 -0
- package/dist/types/src/web/list.d.ts +13 -0
- package/dist/types/src/web/listbox.d.ts +14 -0
- package/dist/types/src/web/markdown.d.ts +96 -0
- package/dist/types/src/web/media.d.ts +62 -0
- package/dist/types/src/web/parts.d.ts +4 -0
- package/dist/types/src/web/primitives/alert-dialog.d.ts +10 -0
- package/dist/types/src/web/primitives/alert.d.ts +9 -0
- package/dist/types/src/web/primitives/avatar-color.d.ts +2 -0
- package/dist/types/src/web/primitives/avatar.d.ts +13 -0
- package/dist/types/src/web/primitives/badge.d.ts +10 -0
- package/dist/types/src/web/primitives/breadcrumb.d.ts +10 -0
- package/dist/types/src/web/primitives/button.d.ts +6 -0
- package/dist/types/src/web/primitives/calendar.d.ts +43 -0
- package/dist/types/src/web/primitives/card.d.ts +9 -0
- package/dist/types/src/web/primitives/checkbox.d.ts +5 -0
- package/dist/types/src/web/primitives/choice-tiles.d.ts +32 -0
- package/dist/types/src/web/primitives/cn.d.ts +3 -0
- package/dist/types/src/web/primitives/code-block.d.ts +24 -0
- package/dist/types/src/web/primitives/command.d.ts +134 -0
- package/dist/types/src/web/primitives/context-ring.d.ts +24 -0
- package/dist/types/src/web/primitives/dialog-arms.d.ts +6 -0
- package/dist/types/src/web/primitives/dialog.d.ts +24 -0
- package/dist/types/src/web/primitives/disclosure-header.d.ts +5 -0
- package/dist/types/src/web/primitives/dock.d.ts +42 -0
- package/dist/types/src/web/primitives/dropdown-menu.d.ts +14 -0
- package/dist/types/src/web/primitives/empty-state.d.ts +15 -0
- package/dist/types/src/web/primitives/glass-card.d.ts +4 -0
- package/dist/types/src/web/primitives/hover-card.d.ts +7 -0
- package/dist/types/src/web/primitives/icon-disc.d.ts +12 -0
- package/dist/types/src/web/primitives/index.d.ts +48 -0
- package/dist/types/src/web/primitives/input.d.ts +5 -0
- package/dist/types/src/web/primitives/kbd.d.ts +4 -0
- package/dist/types/src/web/primitives/label.d.ts +3 -0
- package/dist/types/src/web/primitives/menu-surface.d.ts +17 -0
- package/dist/types/src/web/primitives/meter.d.ts +21 -0
- package/dist/types/src/web/primitives/popover.d.ts +3 -0
- package/dist/types/src/web/primitives/progress-ring.d.ts +5 -0
- package/dist/types/src/web/primitives/progress.d.ts +8 -0
- package/dist/types/src/web/primitives/scroll-area.d.ts +49 -0
- package/dist/types/src/web/primitives/segmented-control.d.ts +5 -0
- package/dist/types/src/web/primitives/select.d.ts +47 -0
- package/dist/types/src/web/primitives/separator.d.ts +3 -0
- package/dist/types/src/web/primitives/sheet-chrome.d.ts +4 -0
- package/dist/types/src/web/primitives/sheet.d.ts +20 -0
- package/dist/types/src/web/primitives/skeleton.d.ts +3 -0
- package/dist/types/src/web/primitives/spinner.d.ts +3 -0
- package/dist/types/src/web/primitives/switch.d.ts +4 -0
- package/dist/types/src/web/primitives/table.d.ts +11 -0
- package/dist/types/src/web/primitives/tabs.d.ts +13 -0
- package/dist/types/src/web/primitives/textarea.d.ts +3 -0
- package/dist/types/src/web/primitives/toast.d.ts +163 -0
- package/dist/types/src/web/primitives/tooltip.d.ts +3 -0
- package/dist/types/src/web/primitives/truncate.d.ts +7 -0
- package/dist/types/src/web/primitives/typeahead-portal.d.ts +12 -0
- package/dist/types/src/web/share.d.ts +6 -0
- package/dist/types/src/web/table.d.ts +20 -0
- package/dist/types/src/web/theme-css.d.ts +69 -0
- package/dist/types/src/web/urls.d.ts +21 -0
- package/dist/web/index.js +2303 -0
- package/dist/web/index.js.map +26 -0
- package/dist/web/primitives/index.js +1450 -0
- package/dist/web/primitives/index.js.map +57 -0
- package/docs/components.generated.json +6238 -0
- package/docs/round-1-contract.md +679 -0
- package/docs/round-2-contract.md +476 -0
- package/docs/round-3-contract.md +174 -0
- package/docs/themes.generated.json +3503 -0
- package/fixtures/animations.json +2890 -0
- package/fixtures/bench-list.json +58 -0
- package/fixtures/bind-time.json +30664 -0
- package/fixtures/catalog-basic-map.json +1692 -0
- package/fixtures/catalog-components.json +9323 -0
- package/fixtures/catalog-extension.json +620 -0
- package/fixtures/catalog-macros.json +36370 -0
- package/fixtures/code-tokens.json +1993 -0
- package/fixtures/conformance-baseline.json +55544 -0
- package/fixtures/conformance-cases.json +49 -0
- package/fixtures/conformance-known.json +2123 -0
- package/fixtures/control-geometry.json +4200 -0
- package/fixtures/dashboard.data.json +74 -0
- package/fixtures/dashboard.json +752 -0
- package/fixtures/demo-surface.json +47 -0
- package/fixtures/format.json +870 -0
- package/fixtures/host-policy.json +1067 -0
- package/fixtures/host-router.json +1152 -0
- package/fixtures/host-transport.json +590 -0
- package/fixtures/interactions-round1.json +773 -0
- package/fixtures/kitchen-sink.expanded.json +10844 -0
- package/fixtures/kitchen-sink.json +3049 -0
- package/fixtures/layout-geometry-round1.json +7278 -0
- package/fixtures/layout-geometry.json +2072 -0
- package/fixtures/overlay-geometry.json +272 -0
- package/fixtures/primitive-specimens.json +58 -0
- package/fixtures/prompt-budget.json +33 -0
- package/fixtures/resizable.json +714 -0
- package/fixtures/round4-contract.json +2985 -0
- package/fixtures/specimens.json +9832 -0
- package/fixtures/style-conditions.json +336 -0
- package/fixtures/template-items.json +2215 -0
- package/fixtures/text-direction.json +309 -0
- package/fixtures/text-shimmer.json +96 -0
- package/fixtures/theme-extends.json +573 -0
- package/fixtures/theme-invalid.json +1296 -0
- package/fixtures/theme-recipes.json +58600 -0
- package/fixtures/theme-resolved.json +23949 -0
- package/fixtures/toast-stack.json +215 -0
- package/fixtures/tree-guides.json +224 -0
- package/fixtures/virtual-list.json +733 -0
- package/generated/ExponentialUICatalog.generated.kt +67 -0
- package/generated/ExponentialUICatalog.generated.swift +67 -0
- package/generated/ExponentialUIThemes.generated.kt +23 -0
- package/generated/ExponentialUIThemes.generated.swift +23 -0
- package/generated/catalog.descriptions.generated.rs +6 -0
- package/generated/catalog.generated.rs +80 -0
- package/generated/catalog.themes.generated.rs +34 -0
- package/generated/core.descriptions.json +2505 -0
- package/generated/core.runtime.json +3609 -0
- package/package.json +87 -4
- package/themes/exponential.recipes.json +49 -0
- package/themes/exponential.theme.json +755 -0
- package/themes/neutral.theme.json +5676 -0
- package/themes/orange.theme.json +43 -0
- package/themes/playful.theme.json +219 -0
- package/vendor/a2ui/LICENSE.txt +203 -0
- package/vendor/a2ui/README.md +27 -0
- package/vendor/a2ui/v0_9/basic_catalog.json +1387 -0
- package/vendor/a2ui/v0_9/basic_catalog_rules.txt +5 -0
- package/vendor/a2ui/v0_9/client_capabilities.json +97 -0
- package/vendor/a2ui/v0_9/client_to_server.json +104 -0
- package/vendor/a2ui/v0_9/common_types.json +315 -0
- package/vendor/a2ui/v0_9/server_to_client.json +132 -0
- package/vendor/json-render/LICENSE.txt +201 -0
- package/vendor/json-render/README.md +13 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// AUTO-GENERATED by packages/exponential-ui/scripts/generate.ts — do not edit.
|
|
2
|
+
// Source of truth: packages/exponential-ui/catalog/core.catalog.json (+ tokens.json, style.json, basic-map.json, strings.json, locale.json, code.json, a11y.json, layout.json).
|
|
3
|
+
// Consumed by apps/desktop/crates/exponential-ui (VAPP-86): the generator copies this file to
|
|
4
|
+
// apps/desktop/crates/exponential-ui/src/generated/catalog.rs (drift-gated there) so the crate packages standalone.
|
|
5
|
+
|
|
6
|
+
pub const CATALOG_ID: &str = "https://ui.exponential.at/catalogs/core/v1";
|
|
7
|
+
pub const LITE_CATALOG_ID: &str = "https://ui.exponential.at/catalogs/core-lite/v1";
|
|
8
|
+
pub const BASIC_CATALOG_ID: &str = "https://a2ui.org/specification/v0_9/basic_catalog.json";
|
|
9
|
+
pub const BASIC_VERSION: &str = "v0.9";
|
|
10
|
+
pub const CATALOG_VERSION: &str = "1";
|
|
11
|
+
pub const UNKNOWN_COMPONENT: &str = "Unknown";
|
|
12
|
+
pub const BASIC_PLACEHOLDER_ICON: &str = "ui-icon-placeholder";
|
|
13
|
+
pub const STYLE_MEDIA_PATTERN: &str = "^@media \\((min-width|max-width|min-height|max-height): (\\d+(\\.\\d+)?px|\\$breakpoint\\.[a-zA-Z0-9]+)\\)$|^@media \\(orientation: (portrait|landscape)\\)$|^@media \\(hover: (hover|none)\\)$|^@media \\(prefers-reduced-motion: (reduce|no-preference)\\)$";
|
|
14
|
+
pub const STYLE_TRANSFORM_PATTERN: &str = "^((translate\\(-?\\d+(\\.\\d+)?px, -?\\d+(\\.\\d+)?px\\)|scale\\(-?\\d+(\\.\\d+)?\\)|rotate\\(-?\\d+(\\.\\d+)?deg\\))( (?=\\S)|$))+$";
|
|
15
|
+
pub const DEFAULT_LOCALE: &str = "en-US";
|
|
16
|
+
pub const WEEK_START_DEFAULT: &str = "1";
|
|
17
|
+
pub const COMPONENT_NAMES: &[&str] = &["Box", "Stack", "Grid", "Card", "Separator", "List", "Resizable", "ScrollArea", "Sidebar", "SplitView", "AppBar", "Page", "Toolbar", "Section", "Group", "Text", "Heading", "Markdown", "CodeBlock", "Kbd", "Label", "Image", "Icon", "Video", "AudioPlayer", "Avatar", "Carousel", "Tabs", "Segmented", "Accordion", "Collapsible", "Trace", "TraceItem", "Pagination", "Breadcrumb", "Stepper", "Dialog", "Drawer", "DockCard", "AlertDialog", "Popover", "Tooltip", "Menu", "Toast", "Badge", "Alert", "Chip", "EmptyState", "Progress", "Meter", "Ring", "Spinner", "Skeleton", "Table", "Chart", "Sparkline", "StatTile", "Button", "Link", "Toggle", "Form", "FieldGroup", "FormActions", "Input", "Textarea", "NumberField", "Checkbox", "Radio", "ChoiceTiles", "Switch", "Slider", "Rating", "Select", "SearchList", "ChipInput", "DatePicker", "DateRangePicker", "TimePicker", "FileUpload", "Composer", "Row", "TreeGuides", "Unknown"];
|
|
18
|
+
pub const COMPONENT_KINDS: &[&str] = &["native", "macro", "macro", "macro", "macro", "native", "native", "macro", "macro", "macro", "macro", "macro", "macro", "macro", "macro", "native", "macro", "native", "native", "macro", "macro", "native", "native", "native", "native", "native", "native", "native", "native", "native", "macro", "macro", "macro", "macro", "macro", "macro", "native", "native", "macro", "macro", "native", "native", "native", "native", "macro", "macro", "macro", "macro", "macro", "macro", "native", "native", "native", "native", "native", "macro", "macro", "native", "native", "native", "native", "macro", "macro", "native", "native", "native", "native", "native", "native", "native", "native", "macro", "native", "native", "native", "native", "native", "native", "native", "native", "macro", "native", "native"];
|
|
19
|
+
pub const COMPONENT_GROUPS: &[&str] = &["layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "layout", "list", "list", "text", "text", "text", "text", "text", "text", "media", "media", "media", "media", "media", "media", "navigation", "navigation", "navigation", "navigation", "list", "list", "navigation", "navigation", "navigation", "overlay", "overlay", "overlay", "overlay", "overlay", "overlay", "overlay", "overlay", "feedback", "feedback", "feedback", "feedback", "feedback", "feedback", "feedback", "feedback", "feedback", "data", "data", "data", "data", "action", "action", "action", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "input", "list", "list", "feedback"];
|
|
20
|
+
pub const COMPONENT_CHILDREN: &[&str] = &["many", "many", "many", "many", "none", "many", "many", "many", "many", "many", "none", "many", "many", "many", "many", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "many", "many", "none", "many", "many", "many", "many", "none", "none", "none", "many", "many", "many", "many", "many", "many", "one", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "one", "none", "none", "many", "many", "many", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"];
|
|
21
|
+
pub const COMPONENT_PROPS: &[&str] = &["style,pressable", "direction,gap,align,justify,wrap,style", "columns,gap,style", "title,description,padded,style", "orientation", "direction,gap,divided,sectionBy,stickyHeaders,style", "direction,sizes,panels,handle,style", "direction,maxHeight,style", "side,width,collapseBelow,collapsed", "open,width", "title,subtitle,back", "title,subtitle,back,padded", "gap", "title,caption,count,icon,collapsible,open,tint,tree,loading,style", "title,footer", "text,variant,align,lines,tone,shimmer,live,style", "text,level", "text,lines,style", "code,language,title,lineNumbers,wrap,copyable,highlight,maxLines,variant,size", "keys", "text,for,required", "src,alt,fit,width,height,aspectRatio,fallback,loading,focalX,focalY,style", "name,size,tone,label", "src,poster,durationMs,autoplay,aspectRatio,style", "src,title,durationMs", "name,src,size,seed", "page,loop,indicators", "tabs,value,fill,closable,addable", "items,type,value,variant,size,fill", "items,type,value", "title,open,count", "size", "title,icon,description,status,size,collapsible,open", "totalPages,page", "items", "steps,current,orientation", "title,description,open,dismissible", "title,description,open,side,dismissible,dragToDismiss", "label,title,caption,meta,icon,tone,open", "title,description,confirmLabel,cancelLabel,destructive,open", "open,side,openOn", "content,side", "label,icon,items,openOn", "title,description,type,open,duration,actionLabel,dismissible", "text,variant,icon", "title,message,type", "label,shape,selected,tone,dot,icon,image,detail,removable,pressable", "icon,title,description,actionLabel,size", "value,max,label,tone", "segments,max,label,value", "value,size,tone,label", "size,label", "width,height,rounded,rows,rowHeight,dot", "columns,rows,rowKey,sort,selectable,selected,caption,emptyText,striped,density,stickyHeader", "kind,categories,series,title,height,xLabel,yLabel,min,max,showAxes,showGrid,showLegend,showValues", "values,tone,height", "label,value,delta,tone,trend", "label,icon,variant,size,disabled,loading,pendingLabel,submit", "label,href,external", "label,icon,pressed,variant,size", "name,disabled,busy,summary", "columns", "submit,cancel,destructive", "label,name,type,placeholder,value,disabled,checks,validateOn", "label,name,placeholder,rows,autosize,maxRows,value,disabled,checks,validateOn", "label,name,value,min,max,step,precision,unit,placeholder,disabled,checks,validateOn", "label,name,checked,disabled,checks", "label,name,options,value,orientation,checks", "name,options,type,value,columns,disabled,checks", "label,name,checked,description,disabled", "label,min,max,step,value", "value,max,readOnly,size", "label,name,options,source,placeholder,value,multiple,searchable,emptyText,disabled,checks,validateOn", "items,query,placeholder,value,emptyText,maxRows,showCount", "label,name,values,suggestions,placeholder,max,disabled,checks", "label,name,value,min,max,placeholder,firstDayOfWeek", "label,name,start,end,min,max,placeholder,firstDayOfWeek", "label,name,value,min,max,step,placeholder,disabled", "label,name,accept,multiple,maxSize,files,hint,disabled", "placeholder,value,submitLabel,attachments,busy", "title,identifier,subtitle,meta,value,placeholder,icon,chevron,selected,density,surface,pressable,depth", "depth,elbowAt,tee,passThrough", "component,catalogId"];
|
|
22
|
+
pub const COMPONENT_EVENTS: &[&str] = &["press", "", "", "", "", "", "change", "", "", "back", "back", "back", "", "change", "", "", "", "", "", "", "", "", "", "", "", "", "change", "change,close,new", "change", "change", "change", "", "change", "change", "select", "", "change", "change", "press,change", "confirm,cancel,change", "change", "", "select", "dismiss,action,change", "", "", "press,remove", "press", "", "", "", "", "", "sort,select,rowPress", "", "", "", "press", "press", "change", "submit,invalid,change", "", "cancel", "change,submit,focus,blur", "change,focus,blur", "change,submit,focus,blur", "change", "change", "change", "change", "change", "change", "change,search", "search,select", "change,add,remove", "change", "change", "change", "upload,remove", "submit,change,stop", "press", "", ""];
|
|
23
|
+
pub const COMPONENT_SLOTS: &[&str] = &["", "", "", "", "", "section", "", "", "sidebar", "list", "leading,trailing", "leading,trailing", "trailing", "leading,trailing", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "trigger,footer", "trigger,footer", "footer", "trigger", "trigger", "", "", "", "", "", "leading", "", "", "", "", "", "", "*", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "leading,trailing", "", ""];
|
|
24
|
+
pub const COMPONENT_SPECIMEN_IDS: &[&str] = &["exponential-ui-box", "exponential-ui-stack", "exponential-ui-grid", "exponential-ui-card", "exponential-ui-separator", "exponential-ui-list", "exponential-ui-resizable", "exponential-ui-scroll-area", "exponential-ui-sidebar", "exponential-ui-split-view", "exponential-ui-app-bar", "exponential-ui-page", "exponential-ui-toolbar", "exponential-ui-section", "exponential-ui-group", "exponential-ui-text", "exponential-ui-heading", "exponential-ui-markdown", "exponential-ui-code-block", "exponential-ui-kbd", "exponential-ui-label", "exponential-ui-image", "exponential-ui-icon", "exponential-ui-video", "exponential-ui-audio-player", "exponential-ui-avatar", "exponential-ui-carousel", "exponential-ui-tabs", "exponential-ui-segmented", "exponential-ui-accordion", "exponential-ui-collapsible", "exponential-ui-trace", "exponential-ui-trace-item", "exponential-ui-pagination", "exponential-ui-breadcrumb", "exponential-ui-stepper", "exponential-ui-dialog", "exponential-ui-drawer", "exponential-ui-dock-card", "exponential-ui-alert-dialog", "exponential-ui-popover", "exponential-ui-tooltip", "exponential-ui-menu", "exponential-ui-toast", "exponential-ui-badge", "exponential-ui-alert", "exponential-ui-chip", "exponential-ui-empty-state", "exponential-ui-progress", "exponential-ui-meter", "exponential-ui-ring", "exponential-ui-spinner", "exponential-ui-skeleton", "exponential-ui-table", "exponential-ui-chart", "exponential-ui-sparkline", "exponential-ui-stat-tile", "exponential-ui-button", "exponential-ui-link", "exponential-ui-toggle", "exponential-ui-form", "exponential-ui-field-group", "exponential-ui-form-actions", "exponential-ui-input", "exponential-ui-textarea", "exponential-ui-number-field", "exponential-ui-checkbox", "exponential-ui-radio", "exponential-ui-choice-tiles", "exponential-ui-switch", "exponential-ui-slider", "exponential-ui-rating", "exponential-ui-select", "exponential-ui-search-list", "exponential-ui-chip-input", "exponential-ui-date-picker", "exponential-ui-date-range-picker", "exponential-ui-time-picker", "exponential-ui-file-upload", "exponential-ui-composer", "exponential-ui-row", "exponential-ui-tree-guides", "exponential-ui-unknown"];
|
|
25
|
+
pub const LITE_COMPONENTS: &[&str] = &["Box", "Stack", "Grid", "Card", "Separator", "List", "Resizable", "ScrollArea", "Sidebar", "SplitView", "AppBar", "Page", "Toolbar", "Section", "Group", "Text", "Heading", "Markdown", "CodeBlock", "Kbd", "Label", "Icon", "Avatar", "Tabs", "Segmented", "Collapsible", "Trace", "TraceItem", "Breadcrumb", "Stepper", "Badge", "Alert", "Chip", "EmptyState", "Progress", "Meter", "Ring", "Skeleton", "StatTile", "Button", "Link", "Form", "FieldGroup", "FormActions", "Input", "Textarea", "NumberField", "Checkbox", "Switch", "Rating", "Select", "SearchList", "ChipInput", "DatePicker", "DateRangePicker", "TimePicker", "FileUpload", "Composer", "Row"];
|
|
26
|
+
pub const NATIVE_COMPONENTS: &[&str] = &["Box", "List", "Resizable", "Text", "Markdown", "CodeBlock", "Image", "Icon", "Video", "AudioPlayer", "Avatar", "Carousel", "Tabs", "Segmented", "Accordion", "Dialog", "Drawer", "Popover", "Tooltip", "Menu", "Toast", "Ring", "Spinner", "Skeleton", "Table", "Chart", "Button", "Link", "Toggle", "Form", "Input", "Textarea", "NumberField", "Checkbox", "Radio", "ChoiceTiles", "Switch", "Slider", "Select", "SearchList", "ChipInput", "DatePicker", "DateRangePicker", "TimePicker", "FileUpload", "Composer", "TreeGuides", "Unknown"];
|
|
27
|
+
pub const MACRO_COMPONENTS: &[&str] = &["Stack", "Grid", "Card", "Separator", "ScrollArea", "Sidebar", "SplitView", "AppBar", "Page", "Toolbar", "Section", "Group", "Heading", "Kbd", "Label", "Collapsible", "Trace", "TraceItem", "Pagination", "Breadcrumb", "Stepper", "DockCard", "AlertDialog", "Badge", "Alert", "Chip", "EmptyState", "Progress", "Meter", "Sparkline", "StatTile", "FieldGroup", "FormActions", "Rating", "Row"];
|
|
28
|
+
pub const ENUM_NAMES: &[&str] = &["variant", "size", "tone", "gap", "align", "justify", "textVariant", "headingLevel", "imageFit", "orientation", "side", "inputType", "validateOn", "alertType", "controlSize", "spinnerSize", "tabClosable", "groupType", "rowChevron", "rowSurface", "chipShape", "density", "listDirection", "chartKind", "segmentedVariant", "liveTone", "menuItemKind", "openOn", "menuOpenOn", "live", "selectable", "cellType", "sortDirection", "imageLoading", "scrollDirection", "collapseBelow", "codeLanguage", "codeToken", "codeBlockVariant", "codeBlockSize", "traceStatus", "traceSize"];
|
|
29
|
+
pub const ENUM_VALUES: &[&str] = &["default|secondary|outline|ghost|destructive|link", "sm|default|lg|icon", "neutral|primary|success|warning|danger|info", "none|xs|sm|md|lg|xl", "start|center|end|stretch", "start|center|end|between|around|evenly", "body|caption|muted|lead|code|label|title", "h1|h2|h3|h4", "contain|cover|fill|none|scaleDown", "horizontal|vertical", "top|right|bottom|left", "text|email|password|number|search|url|tel", "change|blur|submit", "info|success|warning|error", "sm|default|lg", "xs|sm|default|lg", "none|hover|always", "single|multiple", "none|right|selector", "flat|card", "pill|rect", "default|compact", "vertical|horizontal", "bar|stackedBar|line|area|pie|donut|sparkline", "segmented|toggles|outline|bar", "live|attention|done|unread|idle|muted", "item|checkbox|separator|label|submenu", "press|hover", "press|contextmenu", "off|polite|assertive", "none|single|multiple", "text|number|date|boolean|badge|slot|currency|percent|relativeTime", "asc|desc", "lazy|eager", "vertical|horizontal|both", "never|sm|md|lg|xl", "plain|json|js|ts|tsx|rust|swift|kotlin|python|bash|html|css|sql|yaml|markdown|ansi", "plain|keyword|string|number|comment|punctuation|operator|type|function|property|tag|attribute|success|warning|error", "default|destructive", "default|sm", "running|error|pending", "default|sm"];
|
|
30
|
+
pub const TOKEN_GROUPS: &[&str] = &["color", "spacing", "radius", "type.size", "type.lineHeight", "type.weight", "type.family", "control", "shadow", "opacity", "border", "motion", "breakpoint", "ease", "density", "blur", "scale"];
|
|
31
|
+
pub const TOKEN_NAMES: &[&str] = &["background,foreground,card,cardForeground,popover,popoverForeground,primary,primaryForeground,secondary,secondaryForeground,muted,mutedForeground,accent,accentForeground,destructive,destructiveForeground,success,successForeground,warning,warningForeground,info,infoForeground,border,input,ring,chart1,chart2,chart3,chart4,chart5,chart6,chart7,chart8", "none,xxs,xs,sm,md,lg,xl,xl2,xl3", "none,sm,md,lg,xl,xl2,xl3,full", "xs,sm,base,lg,xl,xl2,xl3", "xs,sm,base,lg,xl,xl2,xl3", "regular,medium,semibold,bold", "sans,mono", "buttonSm,buttonMd,buttonLg,buttonIcon,input,textarea,row,rowCompact,pill,badge,chip,toggle,switch,checkbox,slider,progress,meter,avatarSm,avatarMd,avatarLg,iconSm,iconMd,iconLg,hairline,appBar,tabBar,toast", "none,sm,md,lg,xl", "primary,secondary,tertiary,quaternary,disabled", "none,hairline,thick", "fast,standard,slow", "sm,md,lg,xl", "standard,decelerate,accelerate", "compact,comfortable", "sm,md,lg,xl", "press,popoverFrom"];
|
|
32
|
+
pub const STYLE_KEYS: &[&str] = &["display", "flexDirection", "flexWrap", "justifyContent", "alignItems", "alignContent", "alignSelf", "justifySelf", "flexGrow", "flexShrink", "flexBasis", "gap", "rowGap", "columnGap", "direction", "overflow", "overflowX", "overflowY", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "position", "top", "right", "bottom", "left", "inset", "insetInlineStart", "insetInlineEnd", "insetBlockStart", "insetBlockEnd", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingHorizontal", "paddingVertical", "paddingInlineStart", "paddingInlineEnd", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginHorizontal", "marginVertical", "marginInlineStart", "marginInlineEnd", "gridTemplateColumns", "gridTemplateRows", "gridTemplateAreas", "gridArea", "gridColumn", "gridRow", "backgroundColor", "backgroundGradient", "color", "borderWidth", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderColor", "borderStyle", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius", "opacity", "boxShadow", "fontSize", "fontWeight", "lineHeight", "letterSpacing", "textAlign", "textDecoration", "textTransform", "fontStyle", "fontFamily", "transition", "transitionEasing", "transform", "visibility", "pointerEvents", "userSelect", "cursor", "backdropBlur", "animation", "animationDuration"];
|
|
33
|
+
pub const STYLE_LAYOUT_KEYS: &[&str] = &["display", "flexDirection", "flexWrap", "justifyContent", "alignItems", "alignContent", "alignSelf", "justifySelf", "flexGrow", "flexShrink", "flexBasis", "gap", "rowGap", "columnGap", "direction", "overflow", "overflowX", "overflowY", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "aspectRatio", "position", "top", "right", "bottom", "left", "inset", "insetInlineStart", "insetInlineEnd", "insetBlockStart", "insetBlockEnd", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingHorizontal", "paddingVertical", "paddingInlineStart", "paddingInlineEnd", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginHorizontal", "marginVertical", "marginInlineStart", "marginInlineEnd", "gridTemplateColumns", "gridTemplateRows", "gridTemplateAreas", "gridArea", "gridColumn", "gridRow"];
|
|
34
|
+
pub const STYLE_STATES: &[&str] = &[":hover", ":focus-visible", ":pressed"];
|
|
35
|
+
pub const STYLE_LAYOUT_EFFECT_KEYS: &[&str] = &["borderWidth", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"];
|
|
36
|
+
pub const FUNCTION_NAMES: &[&str] = &["required", "regex", "length", "numeric", "email", "formatString", "formatNumber", "formatCurrency", "formatDate", "pluralize", "openUrl", "and", "or", "not", "percent", "add", "sub", "eq", "lt", "clamp", "cond", "fallback", "concat", "coalesce", "text", "map", "len", "fill", "set", "formatPercent", "formatRelativeTime", "filter"];
|
|
37
|
+
pub const CORE_FUNCTION_NAMES: &[&str] = &["percent", "add", "sub", "eq", "lt", "clamp", "cond", "fallback", "concat", "coalesce", "text", "map", "len", "fill", "set", "formatPercent", "formatRelativeTime", "filter"];
|
|
38
|
+
pub const BIND_FUNCTION_NAMES: &[&str] = &["and", "or", "not", "required", "percent", "add", "sub", "eq", "lt", "clamp", "cond", "fallback", "concat", "coalesce", "text", "map", "len", "fill", "filter", "formatPercent", "formatRelativeTime", "formatNumber", "formatCurrency", "formatDate", "pluralize"];
|
|
39
|
+
pub const STRING_IDS: &[&str] = &["back", "breadcrumb", "browse", "cancel", "carousel", "chartSummary", "choose", "clear", "close", "closeTab", "codeBlock", "collapse", "confirm", "copied", "copy", "decrement", "dialog", "dismiss", "dropFiles", "expand", "fileTooLarge", "fileTooLargeNamed", "increment", "invalidFields", "invalidValue", "loading", "menu", "message", "more", "newTab", "next", "nextMonth", "noResults", "optional", "pageOf", "pagination", "previous", "previousMonth", "ratingStar", "ratingValue", "remove", "removeItem", "required", "resize", "search", "selectAll", "selectedCount", "selectRow", "send", "showLess", "showMore", "slide", "sortAscending", "sortByAscending", "sortByDescending", "sortDescending", "sparklineSummary", "stepCurrent", "stepDone", "stepUpcoming", "stop", "submit", "table", "today", "unknownComponent", "unsupportedFile", "unsupportedFileNamed"];
|
|
40
|
+
pub const STRING_DEFAULTS: &[&str] = &["Back", "Breadcrumb", "Browse", "Cancel", "Carousel", "Chart of {series}, values from {min} to {max}", "Choose", "Clear", "Close", "Close {name}", "Code", "Collapse", "Confirm", "Copied", "Copy", "Decrease", "Dialog", "Dismiss", "Drop files here", "Expand", "File too large", "{name}: File too large", "Increase", "Check the highlighted fields", "Invalid value", "Loading", "Menu", "Message", "More", "New tab", "Next", "Next month", "No results", "Optional", "Page {page} of {total}", "Pagination", "Previous", "Previous month", "{value} of {max}", "Rated {value} of {max}", "Remove", "Remove {name}", "Required", "Resize", "Search…", "Select all", "{count} selected", "Select row", "Send", "Show less", "Show more", "Slide", "Sort ascending", "{name}: Sort ascending", "{name}: Sort descending", "Sort descending", "Trend from {first} to {last}, low {min}, high {max}", "Step {step} of {total}: {label}, current", "Step {step} of {total}: {label}, completed", "Step {step} of {total}: {label}", "Stop", "Submit", "Table", "Today", "Unknown component", "Unsupported file", "{name}: Unsupported file"];
|
|
41
|
+
pub const CODE_LANGUAGE_NAMES: &[&str] = &["plain", "json", "js", "ts", "tsx", "rust", "swift", "kotlin", "python", "bash", "html", "css", "sql", "yaml", "markdown", "ansi"];
|
|
42
|
+
pub const BUILTIN_ICON_SLOTS: &[&str] = &["Accordion.trigger", "Carousel.previous", "Carousel.next", "Checkbox.check", "ChipInput.remove", "CodeBlock.copy", "CodeBlock.copied", "Composer.attachment", "Composer.send", "Composer.stop", "DatePicker.trigger", "DatePicker.previousMonth", "DatePicker.nextMonth", "DateRangePicker.trigger", "Dialog.close", "Menu.check", "Menu.submenuIndicator", "FileUpload.icon", "FileUpload.file", "FileUpload.remove", "Image.fallback", "NumberField.decrement", "NumberField.increment", "Select.trigger", "Select.search", "Select.check", "SearchList.search", "SearchList.check", "Table.sortIcon.asc", "Table.sortIcon.desc", "Tabs.close", "Tabs.new", "TimePicker.trigger", "Toast.close", "Toast.icon.info", "Toast.icon.success", "Toast.icon.warning", "Toast.icon.error", "Unknown.root"];
|
|
43
|
+
pub const BUILTIN_ICON_NAMES: &[&str] = &["ui-chevron-down", "ui-chevron-left", "ui-chevron-right", "ui-check", "ui-close", "ui-copy", "ui-check", "ui-attach", "ui-send", "ui-stop", "calendar", "ui-chevron-left", "ui-chevron-right", "calendar", "ui-close", "ui-check", "ui-chevron-right", "upload", "ui-file", "ui-close", "ui-icon-placeholder", "ui-minus", "ui-add", "ui-selector", "search", "ui-check", "search", "ui-check", "ui-chevron-up", "ui-chevron-down", "ui-close", "ui-add", "ui-clock", "ui-close", "ui-info", "ui-success", "ui-warning", "ui-error", "ui-warning"];
|
|
44
|
+
pub const WEEK_START_REGIONS: &[&str] = &["AG", "AS", "BD", "BR", "BS", "BT", "BW", "BZ", "CA", "CN", "CO", "DM", "DO", "ET", "GT", "GU", "HK", "HN", "ID", "IL", "IN", "JM", "JP", "KE", "KH", "KR", "LA", "MH", "MM", "MO", "MT", "MX", "MZ", "NI", "NP", "PA", "PE", "PH", "PK", "PR", "PT", "PY", "SA", "SG", "SV", "TH", "TT", "TW", "UM", "US", "VE", "VI", "WS", "YE", "ZA", "ZW", "MV", "AE", "AF", "BH", "DJ", "DZ", "EG", "IQ", "IR", "JO", "KW", "LY", "OM", "QA", "SD", "SY"];
|
|
45
|
+
pub const WEEK_START_DAYS: &[&str] = &["0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "5", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6", "6"];
|
|
46
|
+
pub const LIKELY_REGION_LANGUAGES: &[&str] = &["af", "am", "ar", "az", "be", "bg", "bn", "bs", "ca", "ckb", "cs", "cy", "da", "de", "dv", "el", "en", "es", "et", "eu", "fa", "fi", "fil", "fr", "ga", "gl", "gu", "ha", "he", "hi", "hr", "hu", "hy", "id", "ig", "is", "it", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "lo", "lt", "lv", "mk", "ml", "mn", "mr", "ms", "mt", "my", "nb", "ne", "nl", "nn", "no", "or", "pa", "pl", "ps", "pt", "ro", "ru", "sd", "si", "sk", "sl", "so", "sq", "sr", "sv", "sw", "ta", "te", "th", "tl", "tr", "ug", "uk", "ur", "uz", "vi", "yi", "yo", "zh", "zu"];
|
|
47
|
+
pub const LIKELY_REGIONS: &[&str] = &["ZA", "ET", "EG", "AZ", "BY", "BG", "BD", "BA", "ES", "IQ", "CZ", "GB", "DK", "DE", "MV", "GR", "US", "ES", "EE", "ES", "IR", "FI", "PH", "FR", "IE", "ES", "IN", "NG", "IL", "IN", "HR", "HU", "AM", "ID", "NG", "IS", "IT", "JP", "ID", "GE", "KZ", "KH", "IN", "KR", "TR", "KG", "LA", "LT", "LV", "MK", "IN", "MN", "IN", "MY", "MT", "MM", "NO", "NP", "NL", "NO", "NO", "IN", "IN", "PL", "AF", "BR", "RO", "RU", "PK", "LK", "SK", "SI", "SO", "AL", "RS", "SE", "TZ", "IN", "IN", "TH", "PH", "TR", "CN", "UA", "PK", "UZ", "VN", "001", "NG", "CN", "ZA"];
|
|
48
|
+
pub const RTL_LANGUAGES: &[&str] = &["ar", "ckb", "dv", "fa", "he", "ps", "sd", "ug", "ur", "yi"];
|
|
49
|
+
pub const LANGUAGE_ALIASES: &[&str] = &["in", "iw", "ji", "jw", "mo", "tl"];
|
|
50
|
+
pub const LANGUAGE_ALIAS_TARGETS: &[&str] = &["id", "he", "yi", "jv", "ro", "fil"];
|
|
51
|
+
pub const RTL_MIRRORED_ICONS: &[&str] = &["ui-back", "ui-chevron-left", "ui-chevron-right", "ui-arrow-right", "ui-send", "ui-undo", "ui-external-link", "arrow-left", "arrow-right", "chevron-left", "chevron-right", "send", "undo-2", "external-link"];
|
|
52
|
+
pub const A11Y_ROLES: &[&str] = &["alert", "alertdialog", "banner", "button", "checkbox", "combobox", "dialog", "document", "form", "group", "heading", "hidden", "img", "link", "list", "listitem", "main", "menu", "meter", "navigation", "none", "progressbar", "radio", "radiogroup", "region", "separator", "slider", "spinbutton", "status", "switch", "tablist", "table", "text", "textbox", "tooltip", "tree", "treeitem"];
|
|
53
|
+
pub const ROW_SLOT_COMPONENTS: &[&str] = &["List", "Table"];
|
|
54
|
+
pub const DATA_PROPS: &[&str] = &["Table.rows"];
|
|
55
|
+
pub const BASIC_COMPONENT_NAMES: &[&str] = &["Text", "Image", "Icon", "Video", "AudioPlayer", "Row", "Column", "List", "Card", "Tabs", "Modal", "Divider", "Button", "TextField", "CheckBox", "ChoicePicker", "Slider", "DateTimeInput"];
|
|
56
|
+
pub const BASIC_COMPONENT_TARGETS: &[&str] = &["Text", "Image", "Icon", "Video", "AudioPlayer", "Stack", "Stack", "List", "Card", "Tabs", "Dialog", "Separator", "Button", "Input", "Checkbox", "Radio", "Slider", "DatePicker"];
|
|
57
|
+
pub const BASIC_ICON_NAMES: &[&str] = &["accountCircle", "add", "arrowBack", "arrowForward", "attachFile", "calendarToday", "call", "camera", "check", "close", "delete", "download", "edit", "event", "error", "fastForward", "favorite", "favoriteOff", "folder", "help", "home", "info", "locationOn", "lock", "lockOpen", "mail", "menu", "moreVert", "moreHoriz", "notificationsOff", "notifications", "pause", "payment", "person", "phone", "photo", "play", "print", "refresh", "rewind", "search", "send", "settings", "share", "shoppingCart", "skipNext", "skipPrevious", "star", "starHalf", "starOff", "stop", "upload", "visibility", "visibilityOff", "volumeDown", "volumeMute", "volumeOff", "volumeUp", "warning"];
|
|
58
|
+
pub const BASIC_ICON_TARGETS: &[&str] = &["ui-assignee", "ui-add", "ui-back", "ui-arrow-right", "ui-attach", "calendar", "phone", "camera", "ui-check", "ui-close", "ui-delete", "ui-download", "ui-edit", "ui-due-date", "ui-error", "media-fast-forward", "heart", "ui-favorite-off", "ui-folder", "ui-help", "house", "ui-info", "map-pin", "ui-private", "ui-unlock", "ui-mail", "ui-menu", "ui-more-vertical", "ui-more", "ui-unsubscribe", "ui-subscribe", "run-pause", "credit-card", "ui-avatar-placeholder", "smartphone", "image", "action-run", "ui-print", "ui-refresh", "media-rewind", "nav-search", "ui-send", "nav-settings", "ui-share", "shopping-cart", "media-skip-next", "media-skip-previous", "star", "ui-star-half", "ui-star-off", "ui-stop", "sc-push", "ui-watch", "ui-hide", "media-volume-down", "media-volume-mute", "media-volume-off", "media-volume-up", "ui-warning"];
|
|
59
|
+
pub const ANIMATION_NAMES: &[&str] = &["pulse", "spin", "fade-in", "slide-in-up", "slide-in-down", "slide-in-left", "slide-in-right", "shimmer"];
|
|
60
|
+
pub const FORMAT_FUNCTION_NAMES: &[&str] = &["formatNumber", "formatCurrency", "formatPercent", "formatDate", "formatRelativeTime", "pluralize"];
|
|
61
|
+
pub const LAYOUT_CONSTANT_NAMES: &[&str] = &["windowThreshold", "windowOverscan", "resizeStep", "panelMin", "resizeHandleHit", "fieldIntrinsicWidth", "mediaIntrinsicWidth", "mediaAspectRatio", "treeGuideColumn", "treeGuideRadius", "treeGuideBridge", "pendingDelayMs", "skeletonPulseMs", "skeletonOpacityLow", "skeletonOpacityHigh", "skeletonReducedOpacity", "searchListFade"];
|
|
62
|
+
pub const LAYOUT_CONSTANT_VALUES: &[&str] = &["50", "5", "10", "10", "8", "160", "320", "1.7777778", "14", "3", "1", "150", "1600", "0.45", "0.9", "0.6", "24"];
|
|
63
|
+
pub const LIMIT_NAMES: &[&str] = &["maxComponents", "maxDepth", "maxMessageBytes", "maxTemplateItems", "maxPointerBytes", "maxPointerSegments"];
|
|
64
|
+
pub const LIMIT_VALUES: &[&str] = &["20000", "48", "4194304", "10000", "1024", "64"];
|
|
65
|
+
pub const COMPONENT_LITE: &[bool] = &[true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, false, false, true, false, true, true, false, true, true, true, false, true, true, false, false, false, false, false, false, false, false, true, true, true, true, true, true, true, false, true, false, false, false, true, true, true, false, true, true, true, true, true, true, true, false, false, true, false, true, true, true, true, true, true, true, true, true, true, false, false];
|
|
66
|
+
/// The Icon prop's vocabulary (packages/icons/icons.json at generate time).
|
|
67
|
+
pub const ICON_NAMES: &[&str] = &["a-large-small", "action-chat", "action-create", "action-default", "action-repository", "action-run", "action-suggestion", "activity", "anchor", "app-editor-chat", "archive", "arrow-down", "arrow-down-left", "arrow-left", "arrow-left-right", "arrow-right", "arrow-up-right", "at-sign", "atom", "auth-passkey", "award", "ban", "bell", "bell-off", "bold", "book-open", "bookmark", "bot", "boxes", "braces", "brain", "briefcase", "brush-cleaning", "bug", "building", "building-2", "calculator", "calendar", "calendar-days", "camera", "car", "chart-line", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-up-down", "circle", "circle-arrow-up", "circle-check", "circle-dashed", "circle-dot", "circle-minus", "circle-question-mark", "circle-slash", "circle-stop", "circle-user", "circle-x", "clipboard-list", "clock", "cloud", "code", "coding-assistant", "coding-command", "coding-compact", "coding-diff", "coding-ended", "coding-in-review", "coding-needs-input", "coding-plan", "coding-running", "coding-stop", "coding-subagent", "coding-tool", "coffee", "compass", "computer", "copy", "corner-down-right", "cpu", "credit-card", "crown", "database", "download", "droplet", "dumbbell", "editor-bold", "editor-clear-formatting", "editor-code", "editor-emoji", "editor-heading-1", "editor-heading-2", "editor-heading-3", "editor-image", "editor-issue-ref", "editor-italic", "editor-link", "editor-list", "editor-list-ordered", "editor-list-todo", "editor-mention", "editor-quote", "editor-strikethrough", "editor-text", "editor-text-format", "editor-unlink", "ellipsis", "ellipsis-vertical", "event-assignee-changed", "event-board-moved", "event-estimate-changed", "event-label-added", "event-label-removed", "event-priority-changed", "event-relation-added", "event-relation-removed", "event-status-changed", "event-title-changed", "external-link", "eye", "eye-off", "fast-forward", "file", "file-diff", "file-pen-line", "file-text", "fingerprint", "flag", "flame", "flask-conical", "fold-vertical", "folder", "folder-kanban", "folder-open", "gamepad-2", "gauge", "gem", "gift", "git-branch", "git-merge", "git-pull-request", "github", "globe", "graduation-cap", "guide-changes", "hammer", "hard-drive", "hash", "heading-1", "heading-2", "heading-3", "headphones", "heart", "heart-off", "history", "hourglass", "house", "image", "images", "inbox", "info", "italic", "key", "landmark", "laptop", "layers", "layers-2", "layout-grid", "leaf", "lightbulb", "link", "link-2", "list", "list-checks", "list-end", "list-ordered", "list-todo", "list-tree", "loader-circle", "lock", "lock-open", "log-in", "log-out", "mail", "map", "map-pin", "maximize-2", "media-fast-forward", "media-rewind", "media-skip-next", "media-skip-previous", "media-volume-down", "media-volume-mute", "media-volume-off", "media-volume-up", "megaphone", "menu", "message-circle", "message-square", "message-square-plus", "message-square-reply", "mic", "microscope", "minimize-2", "minus", "monitor", "monitor-off", "moon", "mountain", "move", "music", "nav-account", "nav-actions", "nav-admin", "nav-apps", "nav-boards", "nav-changelog", "nav-computer", "nav-create-issue", "nav-devices", "nav-drafts", "nav-files", "nav-getting-started", "nav-inbox", "nav-issues", "nav-my-issues", "nav-notifications", "nav-rail-collapse", "nav-rail-expand", "nav-report-bug", "nav-search", "nav-settings", "nav-sign-out", "nav-source-control", "nav-team-switcher", "nav-terminal", "nav-threads", "newspaper", "notification-agent-message", "notification-issue-assigned", "notification-issue-comment", "notification-issue-created", "notification-issue-mention", "notification-issue-status-changed", "notification-mark-read", "notification-mute", "notification-pr-merged", "notification-pr-opened", "notification-reporter-reply", "notification-session-blocked", "os-apple", "os-linux", "os-windows", "package", "paintbrush", "palette", "panel-left-close", "panel-left-open", "paperclip", "pause", "pen-tool", "pencil", "phone", "pin", "pin-off", "plane", "play", "plug", "plus", "pr-batch", "pr-closed", "pr-draft", "pr-merged", "pr-open", "pr-stack", "printer", "priority-high", "priority-low", "priority-medium", "priority-none", "priority-urgent", "progress-1-4", "progress-1-5", "progress-2-4", "progress-2-5", "progress-3-4", "progress-3-5", "progress-4-5", "puzzle", "quote", "refresh-cw", "relation-blocked-by", "relation-blocks", "relation-duplicate", "relation-parent", "relation-related", "relation-section", "relation-sub-issue", "remove-formatting", "repeat", "rewind", "rocket", "rotate-ccw", "run-pause", "run-resume", "sc-push", "scale", "search", "search-x", "send", "server", "session-shell", "session-tree", "settings", "settings-about", "settings-account", "settings-agents", "settings-api", "settings-billing", "settings-boards", "settings-general", "settings-import", "settings-issues", "settings-labels", "settings-licenses", "settings-local-repos", "settings-mcp", "settings-members", "settings-notifications", "settings-rate", "settings-repositories", "settings-servers", "settings-sessions", "settings-statuses", "settings-storage", "settings-sync", "settings-tools", "settings-widget", "share-2", "shield", "shield-check", "shield-question-mark", "shopping-bag", "shopping-cart", "signal-high", "signal-low", "signal-medium", "skip-back", "skip-forward", "sliders-horizontal", "smartphone", "smile", "sparkles", "square-kanban", "square-pen", "square-slash", "square-terminal", "star", "star-half", "star-off", "status-backlog", "status-cancelled", "status-done", "status-duplicate", "status-in-progress", "status-in-review", "status-todo", "stethoscope", "store", "strikethrough", "sun", "support-open", "support-resolved", "tag", "target", "terminal", "tool-script", "trace-background", "trace-chevron", "trace-completed", "trace-edit", "trace-failed", "trace-fetch", "trace-read", "trace-reasoning", "trace-search", "trace-subagent", "trace-task-done", "trace-task-pending", "trace-task-running", "trace-terminal", "trace-todo", "trace-tool", "trash-2", "tree-pine", "triangle-alert", "trigger-event", "trigger-schedule", "trophy", "truck", "type", "ui-add", "ui-agent-source", "ui-archive", "ui-arrow-down", "ui-arrow-right", "ui-assignee", "ui-attach", "ui-avatar-placeholder", "ui-back", "ui-branch", "ui-check", "ui-checklist", "ui-chevron-down", "ui-chevron-left", "ui-chevron-right", "ui-chevron-up", "ui-clean", "ui-clear", "ui-clock", "ui-close", "ui-cloud", "ui-copy", "ui-delete", "ui-delete-account", "ui-device", "ui-device-default", "ui-device-offline", "ui-dock-side", "ui-docs", "ui-download", "ui-due-date", "ui-edit", "ui-empty-search", "ui-error", "ui-estimate", "ui-external-link", "ui-favorite-off", "ui-file", "ui-float", "ui-folder", "ui-folder-open", "ui-fullscreen", "ui-fullscreen-exit", "ui-github", "ui-help", "ui-hide", "ui-history", "ui-icon-placeholder", "ui-indeterminate", "ui-info", "ui-invite", "ui-issue", "ui-link", "ui-loading", "ui-mail", "ui-mcp", "ui-member", "ui-menu", "ui-minus", "ui-more", "ui-more-vertical", "ui-offline", "ui-organization", "ui-owner", "ui-permission", "ui-pin", "ui-print", "ui-private", "ui-properties", "ui-queued", "ui-redock", "ui-refresh", "ui-remove-member", "ui-repeat", "ui-repository", "ui-selected", "ui-selector", "ui-send", "ui-server", "ui-share", "ui-sign-in", "ui-sign-out", "ui-staging", "ui-star-half", "ui-star-off", "ui-stop", "ui-submit", "ui-subscribe", "ui-success", "ui-swap", "ui-team", "ui-unassigned", "ui-undo", "ui-undock", "ui-unlock", "ui-unpin", "ui-unselected", "ui-unsubscribe", "ui-update", "ui-usage", "ui-warning", "ui-watch", "ui-widget", "undo-2", "unlink", "upload", "user", "user-minus", "user-plus", "user-x", "users", "video", "volume-1", "volume-2", "volume-off", "volume-x", "wallet", "wifi-off", "work-faces", "work-results", "workflow", "wrench", "x", "zap"];
|
|
68
|
+
/// The catalog source files, embedded (minified, `$comment`s dropped); parse once at startup.
|
|
69
|
+
pub const CORE_CATALOG_JSON: &str = r####"{"id":"https://ui.exponential.at/catalogs/core/v1","liteId":"https://ui.exponential.at/catalogs/core-lite/v1","name":"Exponential UI core","version":"1","unknownComponent":"Unknown","enums":{"variant":["default","secondary","outline","ghost","destructive","link"],"size":["sm","default","lg","icon"],"tone":["neutral","primary","success","warning","danger","info"],"gap":["none","xs","sm","md","lg","xl"],"align":["start","center","end","stretch"],"justify":["start","center","end","between","around","evenly"],"textVariant":["body","caption","muted","lead","code","label","title"],"headingLevel":["h1","h2","h3","h4"],"imageFit":["contain","cover","fill","none","scaleDown"],"orientation":["horizontal","vertical"],"side":["top","right","bottom","left"],"inputType":["text","email","password","number","search","url","tel"],"validateOn":["change","blur","submit"],"alertType":["info","success","warning","error"],"controlSize":["sm","default","lg"],"spinnerSize":["xs","sm","default","lg"],"tabClosable":["none","hover","always"],"groupType":["single","multiple"],"rowChevron":["none","right","selector"],"rowSurface":["flat","card"],"chipShape":["pill","rect"],"density":["default","compact"],"listDirection":["vertical","horizontal"],"chartKind":["bar","stackedBar","line","area","pie","donut","sparkline"],"segmentedVariant":["segmented","toggles","outline","bar"],"liveTone":["live","attention","done","unread","idle","muted"],"menuItemKind":["item","checkbox","separator","label","submenu"],"openOn":["press","hover"],"menuOpenOn":["press","contextmenu"],"live":["off","polite","assertive"],"selectable":["none","single","multiple"],"cellType":["text","number","date","boolean","badge","slot","currency","percent","relativeTime"],"sortDirection":["asc","desc"],"imageLoading":["lazy","eager"],"scrollDirection":["vertical","horizontal","both"],"collapseBelow":["never","sm","md","lg","xl"],"codeLanguage":["plain","json","js","ts","tsx","rust","swift","kotlin","python","bash","html","css","sql","yaml","markdown","ansi"],"codeToken":["plain","keyword","string","number","comment","punctuation","operator","type","function","property","tag","attribute","success","warning","error"],"codeBlockVariant":["default","destructive"],"codeBlockSize":["default","sm"],"traceStatus":["running","error","pending"],"traceSize":["default","sm"]},"defs":{"option":{"properties":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true},"icon":{"type":"icon"},"disabled":{"type":"boolean"},"description":{"type":"string"},"image":{"type":"url"}}},"check":{"properties":{"condition":{"type":"boolean","required":true,"bindable":true},"message":{"type":"string","required":true}}},"tab":{"properties":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true},"icon":{"type":"icon"},"count":{"type":"number"}}},"menuItem":{"properties":{"label":{"type":"string"},"value":{"type":"string"},"kind":{"type":"enum","enum":"menuItemKind","default":"item"},"icon":{"type":"icon"},"shortcut":{"type":"string"},"checked":{"type":"boolean","bindable":true},"destructive":{"type":"boolean"},"disabled":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","shape":"menuItem"},"bindable":true},"searchable":{"type":"boolean"},"placeholder":{"type":"string"}}},"searchItem":{"properties":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true},"icon":{"type":"icon"},"identifier":{"type":"string"},"disabled":{"type":"boolean"}}},"accordionItem":{"properties":{"title":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true},"count":{"type":"number"}}},"segment":{"properties":{"value":{"type":"number","required":true},"tone":{"type":"enum","enum":"tone"},"label":{"type":"string"}}},"series":{"properties":{"name":{"type":"string","required":true},"values":{"type":"array","items":{"type":"number"},"required":true},"tone":{"type":"enum","enum":"tone"}}},"pageItem":{"properties":{"title":{"type":"string"}}},"step":{"properties":{"label":{"type":"string","required":true},"description":{"type":"string"}}},"column":{"properties":{"key":{"type":"string","required":true},"label":{"type":"string","required":true},"type":{"type":"enum","enum":"cellType","default":"text"},"slot":{"type":"string"},"width":{"type":"number"},"align":{"type":"enum","values":["start","center","end"],"default":"start"},"sortable":{"type":"boolean","default":false},"currency":{"type":"string"},"decimals":{"type":"number"}}},"sort":{"properties":{"key":{"type":"string","required":true},"direction":{"type":"enum","enum":"sortDirection","required":true}}},"panel":{"properties":{"min":{"type":"number"},"max":{"type":"number"},"collapsible":{"type":"boolean"}}},"file":{"properties":{"name":{"type":"string","required":true},"size":{"type":"number"},"type":{"type":"string"},"url":{"type":"url"}}}},"functions":{"names":["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter"],"core":{"percent":{"args":{"value":"number","max":"number"},"returns":"string"},"add":{"args":{"a":"number","b":"number"},"returns":"number"},"sub":{"args":{"a":"number","b":"number"},"returns":"number"},"eq":{"args":{"a":"any","b":"any"},"returns":"boolean"},"lt":{"args":{"a":"number","b":"number"},"returns":"boolean"},"clamp":{"args":{"value":"number","min":"number","max":"number"},"returns":"number"},"cond":{"args":{"if":"any","then":"any","else":"any"},"returns":"any"},"fallback":{"args":{"value":"any","default":"any"},"returns":"any"},"concat":{"args":{"values":"array"},"returns":"string"},"coalesce":{"args":{"values":"array"},"returns":"any"},"text":{"args":{"value":"any"},"returns":"string"},"map":{"args":{"value":"any","cases":"object","default":"any"},"returns":"any"},"len":{"args":{"value":"any"},"returns":"number"},"fill":{"args":{"template":"string","params":"object"},"returns":"string"},"set":{"args":{"path":"string","value":"any"},"returns":"void"},"formatPercent":{"args":{"value":"number","decimals":"number"},"returns":"string"},"formatRelativeTime":{"args":{"value":"any","now":"any"},"returns":"string"},"filter":{"args":{"items":"array","query":"string","fields":"array","where":"object"},"returns":"array"}},"basic":{"required":{"args":{"value":"any"},"returns":"boolean"},"regex":{"args":{"value":"string","pattern":"string"},"returns":"boolean"},"length":{"args":{"value":"string","min":"number","max":"number"},"returns":"boolean"},"numeric":{"args":{"value":"number","min":"number","max":"number"},"returns":"boolean"},"email":{"args":{"value":"string"},"returns":"boolean"},"formatString":{"args":{"value":"string"},"returns":"string"},"formatNumber":{"args":{"value":"number","decimals":"number","grouping":"boolean"},"returns":"string"},"formatCurrency":{"args":{"value":"number","currency":"string","decimals":"number","grouping":"boolean"},"returns":"string"},"formatDate":{"args":{"value":"any","format":"string"},"returns":"string"},"pluralize":{"args":{"value":"number","zero":"string","one":"string","two":"string","few":"string","many":"string","other":"string"},"returns":"string"},"openUrl":{"args":{"url":"string"},"returns":"void"},"and":{"args":{"values":"array"},"returns":"boolean"},"or":{"args":{"values":"array"},"returns":"boolean"},"not":{"args":{"value":"any"},"returns":"boolean"}}},"builtinIcons":{"Accordion.trigger":"ui-chevron-down","Carousel.previous":"ui-chevron-left","Carousel.next":"ui-chevron-right","Checkbox.check":"ui-check","ChipInput.remove":"ui-close","CodeBlock.copy":"ui-copy","CodeBlock.copied":"ui-check","Composer.attachment":"ui-attach","Composer.send":"ui-send","Composer.stop":"ui-stop","DatePicker.trigger":"calendar","DatePicker.previousMonth":"ui-chevron-left","DatePicker.nextMonth":"ui-chevron-right","DateRangePicker.trigger":"calendar","Dialog.close":"ui-close","Menu.check":"ui-check","Menu.submenuIndicator":"ui-chevron-right","FileUpload.icon":"upload","FileUpload.file":"ui-file","FileUpload.remove":"ui-close","Image.fallback":"ui-icon-placeholder","NumberField.decrement":"ui-minus","NumberField.increment":"ui-add","Select.trigger":"ui-selector","Select.search":"search","Select.check":"ui-check","SearchList.search":"search","SearchList.check":"ui-check","Table.sortIcon.asc":"ui-chevron-up","Table.sortIcon.desc":"ui-chevron-down","Tabs.close":"ui-close","Tabs.new":"ui-add","TimePicker.trigger":"ui-clock","Toast.close":"ui-close","Toast.icon.info":"ui-info","Toast.icon.success":"ui-success","Toast.icon.warning":"ui-warning","Toast.icon.error":"ui-error","Unknown.root":"ui-warning"},"components":{"Box":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"style":{"type":"style"},"pressable":{"type":"boolean"}},"events":["press"]},"Stack":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"vertical","responsive":true,"bindable":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"align":{"type":"enum","enum":"align","responsive":true,"bindable":true},"justify":{"type":"enum","enum":"justify","default":"start","responsive":true,"bindable":true},"wrap":{"type":"boolean","default":false,"responsive":true},"style":{"type":"style"}}},"Grid":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"columns":{"type":"number","default":2,"responsive":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"style":{"type":"style"}}},"Card":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"title":{"type":"string"},"description":{"type":"string"},"padded":{"type":"boolean","default":true},"style":{"type":"style"}}},"Separator":{"kind":"macro","group":"layout","lite":true,"children":"none","props":{"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"List":{"kind":"native","group":"layout","lite":true,"children":"many","slots":["section"],"slotScope":"row","props":{"direction":{"type":"enum","enum":"listDirection","default":"vertical"},"gap":{"type":"enum","enum":"gap","default":"none"},"divided":{"type":"boolean","default":false},"sectionBy":{"type":"string"},"stickyHeaders":{"type":"boolean","default":false},"style":{"type":"style"}}},"Resizable":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"horizontal","responsive":true},"sizes":{"type":"array","items":{"type":"number"},"bindable":true},"panels":{"type":"array","items":{"type":"object","shape":"panel"}},"handle":{"type":"boolean","default":false},"style":{"type":"style"}},"events":["change"]},"ScrollArea":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"scrollDirection","default":"vertical"},"maxHeight":{"type":"number"},"style":{"type":"style"}}},"Sidebar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["sidebar"],"props":{"side":{"type":"enum","values":["left","right"],"default":"left"},"width":{"type":"number","default":240},"collapseBelow":{"type":"enum","enum":"collapseBelow","default":"md"},"collapsed":{"type":"boolean","default":false,"bindable":true}}},"SplitView":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["list"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"width":{"type":"number","default":320}},"events":["back"]},"AppBar":{"kind":"macro","group":"layout","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false}},"events":["back"]},"Page":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false},"padded":{"type":"boolean","default":true}},"events":["back"]},"Toolbar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["trailing"],"props":{"gap":{"type":"enum","enum":"gap","default":"sm"}}},"Section":{"kind":"macro","group":"list","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"count":{"type":"number","bindable":true},"icon":{"type":"icon"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":true,"bindable":true},"tint":{"type":"enum","enum":"tone","default":"neutral"},"tree":{"type":"boolean","default":false},"loading":{"type":"boolean","default":false,"bindable":true},"style":{"type":"style"}},"events":["change"]},"Group":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string"},"footer":{"type":"string"}}},"Text":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"textVariant","default":"body"},"align":{"type":"enum","values":["start","center","end"]},"lines":{"type":"number"},"tone":{"type":"enum","enum":"tone"},"shimmer":{"type":"boolean","default":false},"live":{"type":"enum","enum":"live","default":"off"},"style":{"type":"style"}}},"Heading":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"level":{"type":"enum","enum":"headingLevel","default":"h2"}}},"Markdown":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"markdown","required":true,"bindable":true},"lines":{"type":"number"},"style":{"type":"style"}}},"CodeBlock":{"kind":"native","group":"text","lite":true,"children":"none","props":{"code":{"type":"string","required":true,"bindable":true},"language":{"type":"enum","enum":"codeLanguage","default":"plain"},"title":{"type":"string"},"lineNumbers":{"type":"boolean","default":false},"wrap":{"type":"boolean","default":false},"copyable":{"type":"boolean","default":true},"highlight":{"type":"array","items":{"type":"number"}},"maxLines":{"type":"number"},"variant":{"type":"enum","enum":"codeBlockVariant","default":"default","bindable":true},"size":{"type":"enum","enum":"codeBlockSize","default":"default"}}},"Kbd":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"keys":{"type":"string","required":true}}},"Label":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"for":{"type":"string"},"required":{"type":"boolean","default":false}}},"Image":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","bindable":true},"alt":{"type":"string","required":true,"bindable":true},"fit":{"type":"enum","enum":"imageFit","default":"cover"},"width":{"type":"number"},"height":{"type":"number"},"aspectRatio":{"type":"number"},"fallback":{"type":"icon"},"loading":{"type":"enum","enum":"imageLoading","default":"lazy"},"focalX":{"type":"number"},"focalY":{"type":"number"},"style":{"type":"style"}}},"Icon":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"icon","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","bindable":true},"label":{"type":"string"}}},"Video":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"poster":{"type":"url"},"durationMs":{"type":"number"},"autoplay":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":1.7777778},"style":{"type":"style"}}},"AudioPlayer":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"title":{"type":"string"},"durationMs":{"type":"number"}}},"Avatar":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"src":{"type":"url","bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"seed":{"type":"string"}}},"Carousel":{"kind":"native","group":"media","lite":false,"children":"many","props":{"page":{"type":"number","default":0,"bindable":true},"loop":{"type":"boolean","default":false},"indicators":{"type":"boolean","default":true}},"events":["change"]},"Tabs":{"kind":"native","group":"navigation","lite":true,"children":"many","props":{"tabs":{"type":"array","items":{"type":"object","shape":"tab"},"required":true},"value":{"type":"string","bindable":true},"fill":{"type":"boolean","default":false},"closable":{"type":"enum","enum":"tabClosable","default":"none"},"addable":{"type":"boolean","default":false}},"events":["change","close","new"]},"Segmented":{"kind":"native","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"variant":{"type":"enum","enum":"segmentedVariant","default":"segmented"},"size":{"type":"enum","enum":"controlSize","default":"default"},"fill":{"type":"boolean","default":false}},"events":["change"]},"Accordion":{"kind":"native","group":"navigation","lite":false,"children":"many","props":{"items":{"type":"array","items":{"type":"object","shape":"accordionItem"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true}},"events":["change"]},"Collapsible":{"kind":"macro","group":"navigation","lite":true,"children":"many","props":{"title":{"type":"string","required":true},"open":{"type":"boolean","default":false,"bindable":true},"count":{"type":"number"}},"events":["change"]},"Trace":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"size":{"type":"enum","enum":"traceSize","default":"default"}}},"TraceItem":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string","required":true,"bindable":true},"icon":{"type":"icon"},"description":{"type":"string"},"status":{"type":"enum","enum":"traceStatus"},"size":{"type":"enum","enum":"traceSize","default":"default"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["change"]},"Pagination":{"kind":"macro","group":"navigation","lite":false,"children":"none","props":{"totalPages":{"type":"number","required":true},"page":{"type":"number","default":1,"bindable":true}},"events":["change"]},"Breadcrumb":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true}},"events":["select"]},"Stepper":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"steps":{"type":"array","items":{"type":"object","shape":"step"},"required":true},"current":{"type":"number","default":0,"bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"Dialog":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"dismissible":{"type":"boolean","default":true}},"events":["change"]},"Drawer":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom","responsive":true},"dismissible":{"type":"boolean","default":true},"dragToDismiss":{"type":"boolean","default":true}},"events":["change"]},"DockCard":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["footer"],"props":{"label":{"type":"string","required":true,"bindable":true},"title":{"type":"string","required":true,"bindable":true},"caption":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"icon":{"type":"icon"},"tone":{"type":"enum","enum":"tone","default":"neutral"},"open":{"type":"boolean","default":false,"bindable":true}},"events":["press","change"]},"AlertDialog":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"title":{"type":"string","required":true},"description":{"type":"string"},"confirmLabel":{"type":"string","default":"$string.confirm"},"cancelLabel":{"type":"string","default":"$string.cancel"},"destructive":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["confirm","cancel","change"]},"Popover":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom"},"openOn":{"type":"enum","enum":"openOn","default":"press"}},"events":["change"]},"Tooltip":{"kind":"native","group":"overlay","lite":false,"children":"many","props":{"content":{"type":"string","required":true},"side":{"type":"enum","enum":"side","default":"top"}}},"Menu":{"kind":"native","group":"overlay","lite":false,"children":"one","props":{"label":{"type":"string"},"icon":{"type":"icon"},"items":{"type":"array","items":{"type":"object","shape":"menuItem"},"required":true},"openOn":{"type":"enum","enum":"menuOpenOn","default":"press"}},"events":["select"]},"Toast":{"kind":"native","group":"overlay","lite":false,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"type":{"type":"enum","enum":"alertType","default":"info"},"open":{"type":"boolean","default":true,"bindable":true},"duration":{"type":"number","default":5000},"actionLabel":{"type":"string"},"dismissible":{"type":"boolean","default":true}},"events":["dismiss","action","change"]},"Badge":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"variant","default":"default","bindable":true},"icon":{"type":"icon"}}},"Alert":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"title":{"type":"string","required":true},"message":{"type":"string"},"type":{"type":"enum","enum":"alertType","default":"info"}}},"Chip":{"kind":"macro","group":"feedback","lite":true,"children":"none","slots":["leading"],"props":{"label":{"type":"string","required":true,"bindable":true},"shape":{"type":"enum","enum":"chipShape","default":"pill"},"selected":{"type":"boolean","default":false},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"dot":{"type":"color"},"icon":{"type":"icon"},"image":{"type":"url"},"detail":{"type":"string"},"removable":{"type":"boolean","default":false},"pressable":{"type":"boolean","default":false}},"events":["press","remove"]},"EmptyState":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"icon":{"type":"icon","required":true},"title":{"type":"string","required":true},"description":{"type":"string"},"actionLabel":{"type":"string"},"size":{"type":"enum","values":["page","list"],"default":"page"}},"events":["press"]},"Progress":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"max":{"type":"number","default":100},"label":{"type":"string"},"tone":{"type":"enum","enum":"tone","default":"primary"}}},"Meter":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"segments":{"type":"array","items":{"type":"object","shape":"segment"},"required":true},"max":{"type":"number","default":100},"label":{"type":"string"},"value":{"type":"string"}}},"Ring":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","default":"primary"},"label":{"type":"string"}}},"Spinner":{"kind":"native","group":"feedback","lite":false,"children":"none","props":{"size":{"type":"enum","enum":"spinnerSize","default":"default"},"label":{"type":"string"}}},"Skeleton":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"width":{"type":"string"},"height":{"type":"string"},"rounded":{"type":"boolean","default":false},"rows":{"type":"number"},"rowHeight":{"type":"number"},"dot":{"type":"boolean","default":true}}},"Table":{"kind":"native","group":"data","lite":false,"children":"none","slots":["*"],"slotScope":"row","props":{"columns":{"type":"array","items":{"type":"object","shape":"column"},"required":true},"rows":{"type":"array","items":{"type":"object"},"required":true,"bindable":true},"rowKey":{"type":"string","default":"id"},"sort":{"type":"object","shape":"sort","bindable":true},"selectable":{"type":"enum","enum":"selectable","default":"none"},"selected":{"type":"array","items":{"type":"string"},"bindable":true},"caption":{"type":"string"},"emptyText":{"type":"string","default":"$string.noResults"},"striped":{"type":"boolean","default":false},"density":{"type":"enum","enum":"density","default":"default"},"stickyHeader":{"type":"boolean","default":false}},"events":["sort","select","rowPress"]},"Chart":{"kind":"native","group":"data","lite":false,"children":"none","props":{"kind":{"type":"enum","enum":"chartKind","required":true},"categories":{"type":"array","items":{"type":"string"},"bindable":true},"series":{"type":"array","items":{"type":"object","shape":"series"},"required":true,"bindable":true},"title":{"type":"string"},"height":{"type":"number","default":200},"xLabel":{"type":"string"},"yLabel":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"showAxes":{"type":"boolean","default":true},"showGrid":{"type":"boolean","default":true},"showLegend":{"type":"boolean","default":true},"showValues":{"type":"boolean","default":false}}},"Sparkline":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"values":{"type":"array","items":{"type":"number"},"required":true,"bindable":true},"tone":{"type":"enum","enum":"tone","default":"primary"},"height":{"type":"number","default":24}}},"StatTile":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true,"bindable":true},"delta":{"type":"string","bindable":true},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"trend":{"type":"array","items":{"type":"number"},"bindable":true}}},"Button":{"kind":"native","group":"action","lite":true,"children":"one","props":{"label":{"type":"string","bindable":true},"icon":{"type":"icon","bindable":true},"variant":{"type":"enum","enum":"variant","default":"default"},"size":{"type":"enum","enum":"size","default":"default"},"disabled":{"type":"boolean","default":false,"bindable":true},"loading":{"type":"boolean","default":false},"pendingLabel":{"type":"string"},"submit":{"type":"boolean","default":false}},"events":["press"]},"Link":{"kind":"native","group":"action","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"href":{"type":"url"},"external":{"type":"boolean","default":false}},"events":["press"]},"Toggle":{"kind":"native","group":"action","lite":false,"children":"none","props":{"label":{"type":"string","required":true},"icon":{"type":"icon"},"pressed":{"type":"boolean","default":false,"bindable":true},"variant":{"type":"enum","values":["default","outline"],"default":"default"},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Form":{"kind":"native","group":"input","lite":true,"children":"many","props":{"name":{"type":"string","required":true},"disabled":{"type":"boolean","default":false,"bindable":true},"busy":{"type":"boolean","default":false,"bindable":true},"summary":{"type":"boolean","default":false}},"events":["submit","invalid","change"]},"FieldGroup":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"columns":{"type":"number","default":2}}},"FormActions":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"submit":{"type":"string","required":true,"bindable":true},"cancel":{"type":"boolean","default":false},"destructive":{"type":"boolean","default":false}},"events":["cancel"]},"Input":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"type":{"type":"enum","enum":"inputType","default":"text"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Textarea":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"placeholder":{"type":"string"},"rows":{"type":"number","default":3},"autosize":{"type":"boolean","default":false},"maxRows":{"type":"number"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","focus","blur"]},"NumberField":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"value":{"type":"number","bindable":true},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"precision":{"type":"number"},"unit":{"type":"string"},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Checkbox":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Radio":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"value":{"type":"string","bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"vertical"},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"ChoiceTiles":{"kind":"native","group":"input","lite":false,"children":"none","props":{"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"columns":{"type":"number","default":2},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Switch":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"description":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"Slider":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"min":{"type":"number","default":0,"bindable":true},"max":{"type":"number","required":true,"bindable":true},"step":{"type":"number","default":1},"value":{"type":"number","bindable":true}},"events":["change"]},"Rating":{"kind":"macro","group":"input","lite":true,"children":"none","props":{"value":{"type":"number","default":0,"bindable":true},"max":{"type":"number","default":5,"minimum":1,"maximum":100},"readOnly":{"type":"boolean","default":false},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Select":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"source":{"type":"string"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"multiple":{"type":"boolean","default":false},"searchable":{"type":"boolean","default":false},"emptyText":{"type":"string","default":"$string.noResults"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"change"}},"events":["change","search"]},"SearchList":{"kind":"native","group":"input","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"searchItem"},"required":true,"bindable":true},"query":{"type":"string","bindable":true},"placeholder":{"type":"string","default":"$string.search"},"value":{"type":"string","bindable":true},"emptyText":{"type":"string","default":"$string.noResults"},"maxRows":{"type":"number","default":8},"showCount":{"type":"boolean","default":true}},"events":["search","select"]},"ChipInput":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"values":{"type":"array","items":{"type":"string"},"bindable":true},"suggestions":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"placeholder":{"type":"string"},"max":{"type":"number"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change","add","remove"]},"DatePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"DateRangePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"start":{"type":"date","bindable":true},"end":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"TimePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"string","bindable":true},"min":{"type":"string"},"max":{"type":"string"},"step":{"type":"number","default":15},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"FileUpload":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"accept":{"type":"string"},"multiple":{"type":"boolean","default":false},"maxSize":{"type":"number"},"files":{"type":"array","items":{"type":"object","shape":"file"},"bindable":true},"hint":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["upload","remove"]},"Composer":{"kind":"native","group":"input","lite":true,"children":"none","props":{"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.send"},"attachments":{"type":"boolean","default":false},"busy":{"type":"boolean","default":false}},"events":["submit","change","stop"]},"Row":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"identifier":{"type":"string","bindable":true},"subtitle":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"value":{"type":"string","bindable":true},"placeholder":{"type":"string"},"icon":{"type":"icon","bindable":true},"chevron":{"type":"enum","enum":"rowChevron","default":"none","bindable":true},"selected":{"type":"boolean","default":false,"bindable":true},"density":{"type":"enum","enum":"density","default":"default"},"surface":{"type":"enum","enum":"rowSurface","default":"flat"},"pressable":{"type":"boolean","default":false},"depth":{"type":"number","default":0}},"events":["press"]},"TreeGuides":{"kind":"native","group":"list","lite":true,"children":"none","hidden":true,"props":{"depth":{"type":"number","required":true},"elbowAt":{"type":"number"},"tee":{"type":"boolean","default":false},"passThrough":{"type":"array","items":{"type":"number"}}}},"Unknown":{"kind":"native","group":"feedback","lite":true,"children":"none","hidden":true,"props":{"component":{"type":"string","required":true},"catalogId":{"type":"string"}}}}}"####;
|
|
70
|
+
pub const MACROS_JSON: &str = r####"{"macros":{"Stack":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"flexWrap":{"$cond":["props.wrap","wrap","nowrap"]},"gap":"$spacing.{props.gap|md}","alignItems":{"$coalesce":["{props.align}",{"$map":{"from":"props.direction","cases":{"horizontal":"center"},"default":"stretch"}}]},"justifyContent":{"$map":{"from":"props.justify","cases":{"between":"space-between","around":"space-around","evenly":"space-evenly"},"default":"{props.justify|start}"}}},"children":["$children"]}},"Grid":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))","gap":"$spacing.{props.gap|md}"},"children":["$children"]}},"Card":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.xl","overflow":"hidden"},"children":[{"part":"header","component":"Box","$any":["props.title","props.description"],"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","paddingTop":"$spacing.lg","paddingHorizontal":"$spacing.lg"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"title"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Separator":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"separator"},"style":{"alignSelf":"stretch","flexShrink":0,"width":{"$map":{"from":"props.orientation","cases":{"vertical":1},"default":"auto"}},"height":{"$map":{"from":"props.orientation","cases":{"vertical":"auto"},"default":1}}}}},"Section":{"recipeProps":["tint","tree","open","collapsible"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.sm"},"children":[{"part":"header","component":"Box","$if":["props.title",{"$not":"props.collapsible"}],"$a11y":{"role":"heading","level":3},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"header","component":"Box","$if":["props.title","props.collapsible"],"$a11y":{"role":"button","expanded":"{props.open|true}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":{"$not":"props.open|true"}},"$set":{"press":{"prop":"open","value":{"$not":"props.open|true"}}},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"body","component":"List","$if":"props.open|true","$a11y":{"role":{"$cond":["props.tree","tree","list"]}},"props":{"divided":true,"gap":"none","style":"{props.style}"},"children":["$children"]}]}},"Group":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}","description":"{props.footer}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"label"},"style":{"paddingHorizontal":"$spacing.md"}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.lg","overflow":"hidden"},"children":["$children"]},{"part":"footer","component":"Text","$if":"props.footer","props":{"text":"{props.footer}","variant":"muted"},"style":{"paddingHorizontal":"$spacing.md"}}]}},"Heading":{"recipeProps":["level"],"root":{"part":"root","component":"Text","$a11y":{"role":"heading","level":{"$map":{"from":"props.level","cases":{"h1":1,"h2":2,"h3":3,"h4":4},"default":2}}},"props":{"text":"{props.text}","variant":"title"}}},"Collapsible":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":"$control.row","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md"},"$recipe":{"open":"{props.open|false}"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$recipe":{"open":"{props.open|false}"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}}]},{"part":"body","component":"Box","$if":"props.open","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","paddingHorizontal":"$spacing.sm"},"children":["$children"]}]}},"Trace":{"recipeProps":["size"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0},"children":["$children"]}},"TraceItem":{"recipeProps":["status","size","collapsible","open"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"line","component":"Box","$if":{"$not":"props.collapsible"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}}]},{"part":"line","component":"Box","$if":"props.collapsible","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"chevron","component":"Icon","props":{"name":"trace-chevron","size":"sm"},"$recipe":{"open":"{props.open|false}"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0,"marginLeft":{"$map":{"from":"props.size","cases":{"sm":-2},"default":-4}}}}]},{"part":"content","component":"Box","$if":["props.collapsible","props.open"],"style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0,"marginTop":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"marginBottom":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}},"marginLeft":{"$map":{"from":"props.size","cases":{"sm":6},"default":7}},"borderLeftWidth":1,"paddingLeft":{"$map":{"from":"props.size","cases":{"sm":13},"default":16}},"paddingRight":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}}},"children":["$children"]}]}},"Pagination":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.pagination"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"prev","component":"Button","props":{"icon":"ui-chevron-left","variant":"outline","size":"icon","label":"$string.previous","disabled":{"$not":{"$lt":[1,"{props.page|1}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}}}},{"part":"label","component":"Text","props":{"text":"{props.page|1} / {props.totalPages}","variant":"muted"},"$a11y":{"role":"status","label":{"$fill":["$string.pageOf",{"page":"{props.page|1}","total":"{props.totalPages}"}]}}},{"part":"next","component":"Button","props":{"icon":"ui-chevron-right","variant":"outline","size":"icon","label":"$string.next","disabled":{"$not":{"$lt":["{props.page|1}","{props.totalPages}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}}}}]}},"Badge":{"recipeProps":["variant"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","height":"$control.badge","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.full","alignSelf":"flex-start"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.text}","variant":"caption","lines":1}}]}},"Alert":{"recipeProps":["type"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$map":{"from":"props.type","cases":{"warning":"alert","error":"alert"},"default":"status"}}},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.lg"},"children":[{"part":"icon","component":"Icon","props":{"name":{"$map":{"from":"props.type","cases":{"success":"ui-success","warning":"ui-warning","error":"ui-error"},"default":"ui-info"}},"size":"sm","tone":{"$map":{"from":"props.type","cases":{"success":"success","warning":"warning","error":"danger"},"default":"info"}}}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label"}},{"part":"message","component":"Text","$if":"props.message","props":{"text":"{props.message}","variant":"muted"}}]}]}},"Chip":{"recipeProps":["shape","selected","tone"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"pressed":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","paddingHorizontal":"$spacing.sm","alignSelf":"flex-start","height":{"$map":{"from":"props.shape","cases":{"rect":"$control.chip"},"default":"$control.pill"}},"borderRadius":{"$map":{"from":"props.shape","cases":{"rect":"$radius.md"},"default":"$radius.full"}}},"children":["$slot:leading",{"part":"dot","component":"Box","$if":"props.dot","style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"{props.dot}","flexShrink":0}},{"part":"image","component":"Image","$if":"props.image","props":{"src":"{props.image}","alt":"{props.label}","width":16,"height":16,"fit":"cover"},"style":{"borderRadius":"$radius.full"}},{"part":"icon","component":"Icon","$if":["props.icon","!props.image"],"props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","lines":1}},{"part":"detail","component":"Text","$if":"props.detail","props":{"text":"{props.detail}","variant":"muted","lines":1}},{"part":"remove","component":"Button","$if":"props.removable","props":{"icon":"ui-close","variant":"ghost","size":"icon","label":"$string.remove"},"$on":{"press":"remove"}}]}},"EmptyState":{"recipeProps":["size"],"root":{"part":"root","component":"Box","$a11y":{"role":"status"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"list":"$spacing.xs"},"default":"$spacing.md"}},"paddingVertical":{"$map":{"from":"props.size","cases":{"list":"$spacing.xl"},"default":"$spacing.xl3"}},"paddingHorizontal":{"$map":{"from":"props.size","cases":{"list":"$spacing.md"},"default":"$spacing.xl"}}},"children":[{"part":"disc","component":"Box","$if":{"$not":{"$eq":["{props.size|page}","list"]}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":48,"height":48,"borderRadius":"$radius.full","flexShrink":0},"children":[{"part":"icon","component":"Icon","props":{"name":"{props.icon}","size":"lg","tone":"neutral"}}]},{"part":"icon","component":"Icon","$if":{"$eq":["{props.size|page}","list"]},"props":{"name":"{props.icon}","size":"default","tone":"neutral"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":{"$map":{"from":"props.size","cases":{"list":"muted"},"default":"title"}},"align":"center"}},{"part":"description","component":"Text","$if":["props.description",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"text":"{props.description}","variant":"muted","align":"center"}},{"part":"action","component":"Button","$if":["props.actionLabel",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"label":"{props.actionLabel}","variant":"outline"},"$on":{"press":"press"}}]}},"Progress":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","$a11y":{"role":"progressbar","label":"{props.label}","valueNow":"{props.value}","valueMin":0,"valueMax":"{props.max|100}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"}},{"part":"track","component":"Box","style":{"height":"$control.progress","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"fill","component":"Box","style":{"height":"100%","width":{"$percent":["{props.value}","{props.max|100}"]},"borderRadius":"$radius.full"}}]}]}},"Meter":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"meter","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"header","component":"Box","$any":["props.label","props.value"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"},"style":{"flexGrow":1,"minWidth":0}},{"part":"value","component":"Text","$if":"props.value","props":{"text":"{props.value}","variant":"muted"}}]},{"part":"track","component":"Box","style":{"display":"flex","flexDirection":"row","height":"$control.meter","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"segment","component":"Box","$each":"props.segments","$as":"item","style":{"height":"100%","width":{"$percent":["{item.value}","{props.max|100}"]}},"$recipe":{"tone":"{item.tone|neutral}"}}]}]}},"Row":{"recipeProps":["selected","density","surface","depth"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"selected":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":{"$map":{"from":"props.density","cases":{"compact":"$control.rowCompact"},"default":"$control.row"}},"paddingHorizontal":"$spacing.md","borderRadius":{"$map":{"from":"props.surface","cases":{"card":"$radius.lg"},"default":"$radius.md"}}},"children":[{"part":"guides","component":"TreeGuides","$if":{"$lt":[0,"{props.depth|0}"]},"props":{"depth":"{props.depth}"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"identifier","component":"Text","$if":"props.identifier","props":{"text":"{props.identifier}","variant":"code","lines":1},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0,"paddingVertical":{"$map":{"from":"props.surface","cases":{"card":"$spacing.md"},"default":"$spacing.xs"}}},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"body","lines":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}},{"part":"value","component":"Text","$any":["props.value","props.placeholder"],"props":{"text":{"$coalesce":["{props.value}","{props.placeholder}"]},"variant":{"$cond":["props.value","body","muted"]},"lines":1,"align":"end"}},"$slot:trailing",{"part":"chevron","component":"Icon","$if":{"$not":{"$eq":["{props.chevron|none}","none"]}},"props":{"name":{"$map":{"from":"props.chevron","cases":{"selector":"ui-selector"},"default":"ui-chevron-right"}},"size":"sm","tone":"neutral"}}]}},"ScrollArea":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"region"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"overflowX":{"$map":{"from":"props.direction","cases":{"horizontal":"auto","both":"auto"},"default":"hidden"}},"overflowY":{"$map":{"from":"props.direction","cases":{"vertical":"auto","both":"auto"},"default":"hidden"}},"minWidth":0,"minHeight":0,"maxHeight":"{props.maxHeight}"},"children":["$children"]}},"Sidebar":{"recipeProps":["side"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.side","cases":{"right":"row-reverse"},"default":"row"}},"alignItems":"stretch","width":"100%","minHeight":0},"children":[{"part":"sidebar","component":"Box","$if":"!props.collapsed","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|240}","flexShrink":0,"minHeight":0,"@media (max-width: $breakpoint.{props.collapseBelow|md})":{"$cond":[{"$not":{"$eq":["{props.collapseBelow|md}","never"]}},{"display":"none"}]}},"children":["$slot:sidebar"]},{"part":"main","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0},"children":["$children"]}]}},"AppBar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"banner"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.appBar","paddingHorizontal":"$spacing.md","width":"100%"},"children":[{"part":"back","component":"Button","$if":"props.back","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"}},"$slot:leading",{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"title","lines":1},"$a11y":{"role":"heading","level":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},"$slot:trailing"]}},"Kbd":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","height":"$control.badge","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","alignSelf":"flex-start"},"children":[{"part":"label","component":"Text","props":{"text":"{props.keys}","variant":"code","lines":1}}]}},"Label":{"recipeProps":["required"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs"},"children":[{"part":"text","component":"Text","props":{"text":"{props.text}","variant":"label"}},{"part":"mark","component":"Text","$if":"props.required","props":{"text":"*","variant":"label","tone":"danger"}}]}},"Breadcrumb":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.breadcrumb"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","flexWrap":"wrap","gap":"$spacing.xs"},"children":[{"part":"item","component":"Box","$each":"props.items","$as":"item","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs"},"$recipe":{"current":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"children":[{"part":"separator","component":"Icon","$if":{"$lt":[0,"{index}"]},"props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$a11y":{"hidden":true}},{"part":"link","component":"Button","$if":{"$not":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"props":{"label":"{item.label}","icon":"{item.icon}","variant":"link","size":"sm"},"$on":{"press":"select"},"$context":{"value":"{item.value}"}},{"part":"current","component":"Text","$if":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]},"props":{"text":"{item.label}","variant":"label","lines":1},"$a11y":{"current":"page"}}]}]}},"Stepper":{"recipeProps":["orientation"],"root":{"part":"root","component":"Box","$a11y":{"role":"list"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"column"},"default":"row"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"stretch"},"default":"flex-start"}},"gap":"$spacing.md","width":"100%"},"children":[{"part":"step","component":"Box","$each":"props.steps","$as":"step","style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"row"},"default":"column"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"flex-start"},"default":"center"}},"gap":"$spacing.xs","flexGrow":1,"flexBasis":0,"minWidth":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"$a11y":{"role":"listitem","current":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"step",false]},"label":{"$fill":[{"$cond":[{"$lt":["{index}","{props.current|0}"]},"$string.stepDone",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"$string.stepCurrent","$string.stepUpcoming"]}]},{"step":{"$add":["{index}",1]},"total":"{len(props.steps)}","label":"{step.label}"}]}},"children":[{"part":"marker","component":"Box","$a11y":{"hidden":true},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":"$control.iconLg","height":"$control.iconLg","borderRadius":"$radius.full","flexShrink":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"children":[{"part":"check","component":"Icon","$if":{"$lt":["{index}","{props.current|0}"]},"props":{"name":"ui-check","size":"sm"}},{"part":"number","component":"Text","$if":{"$not":{"$lt":["{index}","{props.current|0}"]}},"props":{"text":{"$text":{"$add":["{index}",1]}},"variant":"caption"},"$recipe":{"status":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"label","component":"Text","props":{"text":"{step.label}","variant":"label","lines":1},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}}},{"part":"description","component":"Text","$if":"step.description","props":{"text":"{step.description}","variant":"muted","lines":2}}]}]}]}},"Rating":{"recipeProps":["size","readOnly"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.readOnly","img","group"]},"label":{"$cond":["props.readOnly",{"$fill":["$string.ratingValue",{"value":"{props.value|0}","max":"{props.max|5}"}]}]}},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","alignSelf":"flex-start"},"children":[{"part":"star","component":"Box","$each":"range(props.max|5)","$as":"star","props":{"pressable":{"$not":"props.readOnly"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}},"$a11y":{"role":{"$cond":["props.readOnly","hidden","button"]},"label":{"$fill":["$string.ratingStar",{"value":{"$add":["{index}",1]},"max":"{props.max|5}"}]},"pressed":{"$eq":[{"$add":["{index}",1]},"{props.value|0}"]}},"$on":{"press":"change"},"$context":{"value":{"$add":["{index}",1]}},"$set":{"press":{"prop":"value","value":{"$add":["{index}",1]}}},"children":[{"part":"icon","component":"Icon","props":{"name":"star","size":"{props.size|default}"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}}}]}]}},"AlertDialog":{"recipeProps":["destructive"],"root":{"part":"root","component":"Dialog","$a11y":{"role":"alertdialog"},"props":{"title":"{props.title}","description":"{props.description}","open":"{props.open|false}","dismissible":false},"slots":{"trigger":"$slot:trigger","footer":{"part":"footer","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"cancel","component":"Button","props":{"label":"{props.cancelLabel|$string.cancel}","variant":"outline"},"$a11y":{"autoFocus":true},"$on":{"press":"cancel"},"$set":{"press":{"prop":"open","value":false}}},{"part":"confirm","component":"Button","props":{"label":"{props.confirmLabel|$string.confirm}","variant":{"$cond":["props.destructive","destructive","default"]}},"$on":{"press":"confirm"},"$set":{"press":{"prop":"open","value":false}}}]}},"$on":{"change":"change"},"children":["$children"]}},"DockCard":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","label":"{props.label}: {props.title}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.xl"},"$on":{"press":"press"},"$set":{"press":{"prop":"open","value":true}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm","tone":"{props.tone|neutral}"},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","tone":"{props.tone|neutral}","lines":1}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}}]},{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}}]}]}]},{"part":"sheet","component":"Drawer","props":{"title":"{props.label}","description":"{props.caption}","open":"{props.open|false}","side":"bottom"},"slots":{"footer":"$slot:footer"},"$on":{"change":"change"},"children":["$children"]}]}},"Sparkline":{"recipeProps":["tone"],"root":{"part":"root","component":"Chart","props":{"kind":"sparkline","series":[{"name":"","values":"{props.values}","tone":"{props.tone|primary}"}],"height":"{props.height|24}","showAxes":false,"showGrid":false,"showLegend":false},"style":{"width":"100%"}}},"Page":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"width":"100%"},"children":[{"part":"header","component":"AppBar","props":{"title":"{props.title}","subtitle":"{props.subtitle}","back":"{props.back|false}"},"slots":{"leading":"$slot:leading","trailing":"$slot:trailing"},"$on":{"back":"back"}},{"part":"body","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"overflowY":"auto","gap":"$spacing.lg","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Toolbar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","alignItems":"flex-end","gap":"$spacing.{props.gap|sm}","width":"100%"},"children":["$children",{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]}},"SplitView":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"stretch","width":"100%","flexGrow":1,"minHeight":0},"children":[{"part":"list","component":"Box","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|320}","flexShrink":0,"minHeight":0,"overflowY":"auto","@media (max-width: $breakpoint.md)":{"width":"100%","flexShrink":1,"display":{"$cond":["props.open","none","flex"]}}},"children":["$slot:list"]},{"part":"divider","component":"Separator","props":{"orientation":"vertical"},"style":{"@media (max-width: $breakpoint.md)":{"display":"none"}}},{"part":"detail","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0,"@media (max-width: $breakpoint.md)":{"display":{"$cond":["props.open","flex","none"]}}},"children":[{"part":"backBar","component":"Box","style":{"display":"none","flexDirection":"row","alignItems":"center","height":"$control.appBar","paddingHorizontal":"$spacing.sm","@media (max-width: $breakpoint.md)":{"display":"flex"}},"children":[{"part":"back","component":"Button","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"},"$set":{"press":{"prop":"open","value":false}}}]},"$children"]}]}},"FieldGroup":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"grid","gridTemplateColumns":"repeat(1, minmax(0, 1fr))","gap":"$spacing.md","alignItems":"start","@media (min-width: $breakpoint.md)":{"gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))"}},"children":["$children"]}},"FormActions":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","justifyContent":"flex-end","alignItems":"center","gap":"$spacing.sm","width":"100%"},"children":["$children",{"part":"cancel","component":"Button","$if":"props.cancel","props":{"label":"$string.cancel","variant":"outline"},"$on":{"press":"cancel"}},{"part":"submit","component":"Button","props":{"label":"{props.submit}","variant":{"$cond":["props.destructive","destructive","default"]},"submit":true}}]}},"StatTile":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"muted","lines":1},"style":{"flexGrow":1,"flexShrink":1,"minWidth":0}},{"part":"delta","component":"Text","$if":"props.delta","props":{"text":"{props.delta}","variant":"caption","tone":"{props.tone|neutral}"}}]},{"part":"value","component":"Text","props":{"text":"{props.value}","variant":"title","lines":1}},{"part":"trend","component":"Sparkline","$if":"props.trend","props":{"values":"{props.trend}","height":32}}]}]}}}}"####;
|
|
71
|
+
pub const BASIC_MAP_JSON: &str = r####"{"from":"https://a2ui.org/specification/v0_9/basic_catalog.json","to":"https://ui.exponential.at/catalogs/core/v1","version":"v0.9","placeholderIcon":"ui-icon-placeholder","components":{"Text":{"to":"Text","props":{"text":"text"},"transform":"textVariant"},"Image":{"to":"Image","props":{"src":"url","alt":{"from":"description","default":""},"fit":{"from":"fit","default":"cover"}},"transform":"imageVariant"},"Icon":{"to":"Icon","props":{},"transform":"iconName"},"Video":{"to":"Video","props":{"src":"url"}},"AudioPlayer":{"to":"AudioPlayer","props":{"src":"url","title":"description"}},"Row":{"to":"Stack","children":"children","props":{"direction":{"const":"horizontal"},"justify":{"from":"justify","map":{"spaceBetween":"between","spaceAround":"around","spaceEvenly":"evenly","stretch":"start"},"default":"start"},"align":{"from":"align","default":"stretch"},"gap":{"const":"sm"}}},"Column":{"to":"Stack","children":"children","props":{"direction":{"const":"vertical"},"justify":{"from":"justify","map":{"spaceBetween":"between","spaceAround":"around","spaceEvenly":"evenly","stretch":"start"},"default":"start"},"align":{"from":"align","default":"stretch"},"gap":{"const":"sm"}}},"List":{"to":"List","children":"children","props":{"direction":{"from":"direction","default":"vertical"},"gap":{"const":"sm"}}},"Card":{"to":"Card","children":"child","props":{}},"Tabs":{"to":"Tabs","props":{},"transform":"tabs"},"Modal":{"to":"Dialog","props":{},"transform":"modal"},"Divider":{"to":"Separator","props":{"orientation":{"from":"axis","default":"horizontal"}}},"Button":{"to":"Button","props":{"variant":{"from":"variant","map":{"primary":"default","default":"secondary","borderless":"ghost"},"default":"secondary"}},"transform":"buttonChild"},"TextField":{"to":"Input","props":{"label":"label","value":"value","checks":"checks"},"transform":"textField"},"CheckBox":{"to":"Checkbox","props":{"label":"label","checked":"value","checks":"checks"},"transform":"fieldName"},"ChoicePicker":{"to":"Radio","props":{"label":"label","options":"options","checks":"checks"},"transform":"choicePicker"},"Slider":{"to":"Slider","props":{"label":"label","min":{"from":"min","default":0},"max":"max","value":"value"}},"DateTimeInput":{"to":"DatePicker","props":{"label":"label","value":"value","min":"min","max":"max"},"transform":"fieldName"}},"transforms":{"textVariant":"variant h1..h4 → Heading{level}; h5 → Text{variant: label}; caption → Text{variant: caption}; body or absent → Text{variant: body}.","imageVariant":"variant avatar → Avatar{src: url, name: description}; icon → style width/height 24; smallFeature → style width/height 120; mediumFeature or absent → style width 100%, aspectRatio 1.7777778; largeFeature → the same; header → style width 100%, aspectRatio 3.","iconName":"name string → icons[name] (null or absent → placeholderIcon); name {path} (a custom glyph) → placeholderIcon.","tabs":"tabs[i] → props.tabs[i] = {label: title, value: child id}; children = the tab child ids in order; value = the first tab's child id.","modal":"trigger → slots.trigger; content → children[0]; props.open = false.","buttonChild":"child Text → props.label = its text (the Text node is consumed); child Icon → props.icon = the mapped icon name (consumed); any other child → children[0]; action → on.press (an A2UI Action verbatim); size icon when icon and no label.","textField":"name = id; variant longText → Textarea{label, value, checks}; number → Input{type: number}; obscured → Input{type: password}; shortText or absent → Input{type: text}; validationRegexp → one more check {condition: {call: regex, args: {value: {path: <the value binding's path, or the id>}, pattern}}, message: 'Invalid value'}.","fieldName":"name = id.","choicePicker":"name = id; options keep label/value; value (a list) → the first entry for single choice, comma-joined for multiple; filterable → Select{searchable: true, multiple: variant == multipleSelection}; else displayStyle chips → Segmented{type: single|multiple by variant, variant: outline, items: options}; else variant multipleSelection → Select{multiple: true}; else → Radio."},"icons":{"accountCircle":"ui-assignee","add":"ui-add","arrowBack":"ui-back","arrowForward":"ui-arrow-right","attachFile":"ui-attach","calendarToday":"calendar","call":"phone","camera":"camera","check":"ui-check","close":"ui-close","delete":"ui-delete","download":"ui-download","edit":"ui-edit","event":"ui-due-date","error":"ui-error","fastForward":"media-fast-forward","favorite":"heart","favoriteOff":"ui-favorite-off","folder":"ui-folder","help":"ui-help","home":"house","info":"ui-info","locationOn":"map-pin","lock":"ui-private","lockOpen":"ui-unlock","mail":"ui-mail","menu":"ui-menu","moreVert":"ui-more-vertical","moreHoriz":"ui-more","notificationsOff":"ui-unsubscribe","notifications":"ui-subscribe","pause":"run-pause","payment":"credit-card","person":"ui-avatar-placeholder","phone":"smartphone","photo":"image","play":"action-run","print":"ui-print","refresh":"ui-refresh","rewind":"media-rewind","search":"nav-search","send":"ui-send","settings":"nav-settings","share":"ui-share","shoppingCart":"shopping-cart","skipNext":"media-skip-next","skipPrevious":"media-skip-previous","star":"star","starHalf":"ui-star-half","starOff":"ui-star-off","stop":"ui-stop","upload":"sc-push","visibility":"ui-watch","visibilityOff":"ui-hide","volumeDown":"media-volume-down","volumeMute":"media-volume-mute","volumeOff":"media-volume-off","volumeUp":"media-volume-up","warning":"ui-warning"},"functions":{"required":"required","regex":"regex","length":"length","numeric":"numeric","email":"email","formatString":"formatString","formatNumber":"formatNumber","formatCurrency":"formatCurrency","formatDate":"formatDate","pluralize":"pluralize","openUrl":"openUrl","and":"and","or":"or","not":"not"}}"####;
|
|
72
|
+
pub const RECIPES_JSON: &str = r####"{"states":["hover","pressed","focus","disabled","checked","open","selected","invalid","dragover"],"keys":["backgroundColor","color","borderColor","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderStyle","padding","paddingHorizontal","paddingVertical","gap","width","height","minWidth","minHeight","fontSize","fontWeight","lineHeight","fontFamily","letterSpacing","textDecoration","textTransform","fontStyle","boxShadow","opacity","transition","transitionEasing","transform","backdropBlur","animation","native"],"native":{"Box":{"parts":["root"],"props":["pressable"]},"List":{"parts":["root","divider","section"],"props":["direction","divided","stickyHeaders"]},"Resizable":{"parts":["root","panel","handle","grip"],"props":["direction","handle"]},"Text":{"parts":["root"],"props":["variant","tone"]},"Markdown":{"parts":["root","paragraph","heading","link","code","codeBlock","quote","table","listItem"],"props":[]},"Image":{"parts":["root","fallback"],"props":["fit"]},"Icon":{"parts":["root"],"props":["size","tone"]},"Video":{"parts":["root","controls","poster"],"props":["autoplay"]},"AudioPlayer":{"parts":["root","controls","track"],"props":[]},"Avatar":{"parts":["root","image","fallback"],"props":["size"]},"Carousel":{"parts":["root","page","indicator","controls","previous","next"],"props":["loop","indicators"]},"Tabs":{"parts":["root","list","tab","indicator","content","close","new"],"props":["fill","closable","addable"]},"Segmented":{"parts":["root","item","icon","label"],"props":["type","variant","size","fill"]},"Accordion":{"parts":["root","item","trigger","content","count"],"props":["type"]},"Dialog":{"parts":["overlay","content","title","description","footer","close"],"props":["dismissible"]},"Drawer":{"parts":["overlay","content","handle","title","description","footer"],"props":["side","dismissible"]},"Popover":{"parts":["content","arrow"],"props":["side","openOn"]},"Tooltip":{"parts":["content","arrow","anchor"],"props":["side"]},"Menu":{"parts":["trigger","content","item","separator","label","shortcut","check","submenuIndicator","head","search","count","list","empty","fade"],"props":["openOn"]},"Toast":{"parts":["root","icon","title","description","action","close"],"props":["type"]},"Ring":{"parts":["root","track","fill","label"],"props":["size","tone"]},"Spinner":{"parts":["root"],"props":["size"]},"Skeleton":{"parts":["root","row","dot","bar"],"props":["rounded","dot"]},"Chart":{"parts":["root","title","axis","grid","legend","tooltip","valueLabel"],"props":["kind"]},"Table":{"parts":["root","caption","header","headerCell","sortIcon","row","cell","checkbox","empty","body"],"props":["selectable","striped","density","stickyHeader","align"]},"Button":{"parts":["root","icon","label","spinner"],"props":["variant","size","disabled","loading"]},"Link":{"parts":["root"],"props":["external"]},"Toggle":{"parts":["root","icon","label"],"props":["variant","size","pressed"]},"Form":{"parts":["root","summary"],"props":["disabled","busy"]},"Input":{"parts":["root","label","field","placeholder","description","error"],"props":["type","disabled"]},"Textarea":{"parts":["root","label","field","placeholder","description","error"],"props":["disabled"]},"NumberField":{"parts":["root","label","field","decrement","increment","unit","description","error","input"],"props":["disabled"]},"Checkbox":{"parts":["root","box","check","label","description"],"props":["checked","disabled"]},"Radio":{"parts":["root","item","dot","label","items"],"props":["orientation"]},"ChoiceTiles":{"parts":["root","tile","picture","label","description"],"props":["type","columns"]},"Switch":{"parts":["root","track","thumb","label","description","body"],"props":["checked","disabled"]},"Slider":{"parts":["root","track","range","thumb","label","value","header"],"props":[]},"Select":{"parts":["root","label","trigger","placeholder","content","search","item","check","empty"],"props":["multiple","searchable","disabled"]},"SearchList":{"parts":["root","head","search","count","list","item","icon","identifier","label","check","empty","fade"],"props":[]},"ChipInput":{"parts":["root","label","field","chip","chipLabel","remove","placeholder","description","error","input"],"props":["disabled"]},"DatePicker":{"parts":["root","label","trigger","calendar","day"],"props":[]},"DateRangePicker":{"parts":["root","label","trigger","calendar","day","range"],"props":[]},"TimePicker":{"parts":["root","label","trigger","placeholder","list","item"],"props":["disabled"]},"FileUpload":{"parts":["root","label","dropzone","icon","hint","file","fileName","fileMeta","remove","description","error","title","browse","fileIcon"],"props":["multiple","disabled"]},"CodeBlock":{"parts":["root","header","title","copy","gutter","line","lineNumber","token","body","code"],"props":["lineNumbers","wrap","kind","variant","size"]},"Composer":{"parts":["root","field","placeholder","attachment","send"],"props":["attachments","busy"]},"TreeGuides":{"parts":["root","line"],"props":["tee"]},"Unknown":{"parts":["root","label"],"props":[]}}}"####;
|
|
73
|
+
pub const STYLE_JSON: &str = r####"{"layout":{"display":{"enum":["flex","grid","block","none"]},"flexDirection":{"enum":["row","column","row-reverse","column-reverse"]},"flexWrap":{"enum":["nowrap","wrap","wrap-reverse"]},"justifyContent":{"enum":["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},"alignItems":{"enum":["flex-start","flex-end","start","end","center","stretch","baseline"]},"alignContent":{"enum":["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},"alignSelf":{"enum":["flex-start","flex-end","start","end","center","stretch","baseline"]},"justifySelf":{"enum":["flex-start","flex-end","start","end","center","stretch","baseline"]},"flexGrow":{"type":"number"},"flexShrink":{"type":"number"},"flexBasis":{"type":"length"},"gap":{"type":"length"},"rowGap":{"type":"length"},"columnGap":{"type":"length"},"direction":{"enum":["ltr","rtl"]},"overflow":{"enum":["visible","hidden","clip","scroll","auto"]},"overflowX":{"enum":["visible","hidden","clip","scroll","auto"]},"overflowY":{"enum":["visible","hidden","clip","scroll","auto"]},"width":{"type":"length"},"height":{"type":"length"},"minWidth":{"type":"length"},"minHeight":{"type":"length"},"maxWidth":{"type":"length"},"maxHeight":{"type":"length"},"aspectRatio":{"type":"ratio"},"position":{"enum":["relative","absolute","sticky"]},"top":{"type":"length"},"right":{"type":"length"},"bottom":{"type":"length"},"left":{"type":"length"},"inset":{"type":"length"},"insetInlineStart":{"type":"length"},"insetInlineEnd":{"type":"length"},"insetBlockStart":{"type":"length"},"insetBlockEnd":{"type":"length"},"padding":{"type":"length"},"paddingTop":{"type":"length"},"paddingRight":{"type":"length"},"paddingBottom":{"type":"length"},"paddingLeft":{"type":"length"},"paddingHorizontal":{"type":"length"},"paddingVertical":{"type":"length"},"paddingInlineStart":{"type":"length"},"paddingInlineEnd":{"type":"length"},"margin":{"type":"length"},"marginTop":{"type":"length"},"marginRight":{"type":"length"},"marginBottom":{"type":"length"},"marginLeft":{"type":"length"},"marginHorizontal":{"type":"length"},"marginVertical":{"type":"length"},"marginInlineStart":{"type":"length"},"marginInlineEnd":{"type":"length"},"gridTemplateColumns":{"type":"tracks"},"gridTemplateRows":{"type":"tracks"},"gridTemplateAreas":{"type":"areas"},"gridArea":{"type":"string"},"gridColumn":{"type":"string"},"gridRow":{"type":"string"}},"visual":{"backgroundColor":{"type":"color"},"backgroundGradient":{"type":"gradient"},"color":{"type":"color"},"borderWidth":{"type":"number","layoutEffect":true},"borderTopWidth":{"type":"number","layoutEffect":true},"borderRightWidth":{"type":"number","layoutEffect":true},"borderBottomWidth":{"type":"number","layoutEffect":true},"borderLeftWidth":{"type":"number","layoutEffect":true},"borderColor":{"type":"color"},"borderStyle":{"enum":["solid","dashed","dotted"]},"borderRadius":{"type":"length"},"borderTopLeftRadius":{"type":"length"},"borderTopRightRadius":{"type":"length"},"borderBottomRightRadius":{"type":"length"},"borderBottomLeftRadius":{"type":"length"},"opacity":{"type":"number"},"boxShadow":{"type":"token","group":"shadow"},"fontSize":{"type":"length"},"fontWeight":{"enum":[300,400,500,600,700,800]},"lineHeight":{"type":"length"},"letterSpacing":{"type":"length"},"textAlign":{"enum":["left","right","center","start","end","justify"]},"textDecoration":{"enum":["none","underline","line-through"]},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"]},"fontStyle":{"enum":["normal","italic"]},"fontFamily":{"type":"token","group":"type.family"},"transition":{"type":"token","group":"motion"},"transitionEasing":{"type":"token","group":"ease"},"transform":{"type":"transform"},"visibility":{"enum":["visible","hidden"]},"pointerEvents":{"enum":["auto","none"]},"userSelect":{"enum":["auto","none","text"]},"cursor":{"enum":["auto","default","pointer","text","not-allowed","grab","grabbing","move","col-resize","row-resize"]},"backdropBlur":{"type":"token","group":"blur"},"animation":{"enum":["pulse","spin","fade-in","slide-in-up","slide-in-down","slide-in-left","slide-in-right","shimmer"]},"animationDuration":{"type":"token","group":"motion"}},"animations":{"pulse":{"duration":"$motion.slow","factor":7,"easing":"$ease.standard","iterations":"infinite","rest":0,"keyframes":[{"offset":0,"opacity":1},{"offset":0.5,"opacity":0.5},{"offset":1,"opacity":1}]},"spin":{"duration":"$motion.slow","factor":4,"easing":"linear","iterations":"infinite","rest":0,"keyframes":[{"offset":0,"rotate":0},{"offset":1,"rotate":360}]},"fade-in":{"duration":"$motion.standard","factor":1,"easing":"$ease.decelerate","iterations":1,"rest":1,"keyframes":[{"offset":0,"opacity":0},{"offset":1,"opacity":1}]},"slide-in-up":{"duration":"$motion.standard","factor":1,"easing":"$ease.decelerate","iterations":1,"rest":1,"keyframes":[{"offset":0,"opacity":0,"translateY":8},{"offset":1,"opacity":1,"translateY":0}]},"slide-in-down":{"duration":"$motion.standard","factor":1,"easing":"$ease.decelerate","iterations":1,"rest":1,"keyframes":[{"offset":0,"opacity":0,"translateY":-8},{"offset":1,"opacity":1,"translateY":0}]},"slide-in-left":{"duration":"$motion.standard","factor":1,"easing":"$ease.decelerate","iterations":1,"rest":1,"keyframes":[{"offset":0,"opacity":0,"translateX":8},{"offset":1,"opacity":1,"translateX":0}]},"slide-in-right":{"duration":"$motion.standard","factor":1,"easing":"$ease.decelerate","iterations":1,"rest":1,"keyframes":[{"offset":0,"opacity":0,"translateX":-8},{"offset":1,"opacity":1,"translateX":0}]},"shimmer":{"duration":"$motion.slow","factor":5,"easing":"linear","iterations":"infinite","rest":0,"keyframes":[{"offset":0,"band":-1},{"offset":1,"band":1}],"band":{"color":"$color.background","stops":[{"offset":0,"alpha":0},{"offset":0.5,"alpha":0.5},{"offset":1,"alpha":0}]}}},"conditions":{"media":"^@media \\((min-width|max-width|min-height|max-height): (\\d+(\\.\\d+)?px|\\$breakpoint\\.[a-zA-Z0-9]+)\\)$|^@media \\(orientation: (portrait|landscape)\\)$|^@media \\(hover: (hover|none)\\)$|^@media \\(prefers-reduced-motion: (reduce|no-preference)\\)$","states":[":hover",":focus-visible",":pressed"],"transform":"^((translate\\(-?\\d+(\\.\\d+)?px, -?\\d+(\\.\\d+)?px\\)|scale\\(-?\\d+(\\.\\d+)?\\)|rotate\\(-?\\d+(\\.\\d+)?deg\\))( (?=\\S)|$))+$"},"textShimmer":{"durationMs":2000,"angleDeg":20,"spreadPx":60,"highlightLightnessMin":0.8,"highlightLightnessBoost":0.4,"highlightAlphaBoost":0.4,"lightAlphaFactor":0.2}}"####;
|
|
74
|
+
pub const TOKENS_JSON: &str = r####"{"color":["background","foreground","card","cardForeground","popover","popoverForeground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","accent","accentForeground","destructive","destructiveForeground","success","successForeground","warning","warningForeground","info","infoForeground","border","input","ring","chart1","chart2","chart3","chart4","chart5","chart6","chart7","chart8"],"spacing":["none","xxs","xs","sm","md","lg","xl","xl2","xl3"],"radius":["none","sm","md","lg","xl","xl2","xl3","full"],"type":{"size":["xs","sm","base","lg","xl","xl2","xl3"],"lineHeight":["xs","sm","base","lg","xl","xl2","xl3"],"weight":["regular","medium","semibold","bold"],"family":["sans","mono"]},"control":["buttonSm","buttonMd","buttonLg","buttonIcon","input","textarea","row","rowCompact","pill","badge","chip","toggle","switch","checkbox","slider","progress","meter","avatarSm","avatarMd","avatarLg","iconSm","iconMd","iconLg","hairline","appBar","tabBar","toast"],"shadow":["none","sm","md","lg","xl"],"opacity":["primary","secondary","tertiary","quaternary","disabled"],"border":["none","hairline","thick"],"motion":["fast","standard","slow"],"breakpoint":["sm","md","lg","xl"],"ease":["standard","decelerate","accelerate"],"density":["compact","comfortable"],"blur":["sm","md","lg","xl"],"scale":["press","popoverFrom"]}"####;
|
|
75
|
+
pub const STRINGS_JSON: &str = r####"{"strings":{"back":"Back","breadcrumb":"Breadcrumb","browse":"Browse","cancel":"Cancel","carousel":"Carousel","chartSummary":"Chart of {series}, values from {min} to {max}","choose":"Choose","clear":"Clear","close":"Close","closeTab":"Close {name}","codeBlock":"Code","collapse":"Collapse","confirm":"Confirm","copied":"Copied","copy":"Copy","decrement":"Decrease","dialog":"Dialog","dismiss":"Dismiss","dropFiles":"Drop files here","expand":"Expand","fileTooLarge":"File too large","fileTooLargeNamed":"{name}: File too large","increment":"Increase","invalidFields":"Check the highlighted fields","invalidValue":"Invalid value","loading":"Loading","menu":"Menu","message":"Message","more":"More","newTab":"New tab","next":"Next","nextMonth":"Next month","noResults":"No results","optional":"Optional","pageOf":"Page {page} of {total}","pagination":"Pagination","previous":"Previous","previousMonth":"Previous month","ratingStar":"{value} of {max}","ratingValue":"Rated {value} of {max}","remove":"Remove","removeItem":"Remove {name}","required":"Required","resize":"Resize","search":"Search…","selectAll":"Select all","selectedCount":"{count} selected","selectRow":"Select row","send":"Send","showLess":"Show less","showMore":"Show more","slide":"Slide","sortAscending":"Sort ascending","sortByAscending":"{name}: Sort ascending","sortByDescending":"{name}: Sort descending","sortDescending":"Sort descending","sparklineSummary":"Trend from {first} to {last}, low {min}, high {max}","stepCurrent":"Step {step} of {total}: {label}, current","stepDone":"Step {step} of {total}: {label}, completed","stepUpcoming":"Step {step} of {total}: {label}","stop":"Stop","submit":"Submit","table":"Table","today":"Today","unknownComponent":"Unknown component","unsupportedFile":"Unsupported file","unsupportedFileNamed":"{name}: Unsupported file"}}"####;
|
|
76
|
+
pub const LOCALE_JSON: &str = r####"{"default":"en-US","weekStart":{"default":1,"regions":{"0":["AG","AS","BD","BR","BS","BT","BW","BZ","CA","CN","CO","DM","DO","ET","GT","GU","HK","HN","ID","IL","IN","JM","JP","KE","KH","KR","LA","MH","MM","MO","MT","MX","MZ","NI","NP","PA","PE","PH","PK","PR","PT","PY","SA","SG","SV","TH","TT","TW","UM","US","VE","VI","WS","YE","ZA","ZW"],"5":["MV"],"6":["AE","AF","BH","DJ","DZ","EG","IQ","IR","JO","KW","LY","OM","QA","SD","SY"]}},"likelyRegion":{"af":"ZA","am":"ET","ar":"EG","az":"AZ","be":"BY","bg":"BG","bn":"BD","bs":"BA","ca":"ES","ckb":"IQ","cs":"CZ","cy":"GB","da":"DK","de":"DE","dv":"MV","el":"GR","en":"US","es":"ES","et":"EE","eu":"ES","fa":"IR","fi":"FI","fil":"PH","fr":"FR","ga":"IE","gl":"ES","gu":"IN","ha":"NG","he":"IL","hi":"IN","hr":"HR","hu":"HU","hy":"AM","id":"ID","ig":"NG","is":"IS","it":"IT","ja":"JP","jv":"ID","ka":"GE","kk":"KZ","km":"KH","kn":"IN","ko":"KR","ku":"TR","ky":"KG","lo":"LA","lt":"LT","lv":"LV","mk":"MK","ml":"IN","mn":"MN","mr":"IN","ms":"MY","mt":"MT","my":"MM","nb":"NO","ne":"NP","nl":"NL","nn":"NO","no":"NO","or":"IN","pa":"IN","pl":"PL","ps":"AF","pt":"BR","ro":"RO","ru":"RU","sd":"PK","si":"LK","sk":"SK","sl":"SI","so":"SO","sq":"AL","sr":"RS","sv":"SE","sw":"TZ","ta":"IN","te":"IN","th":"TH","tl":"PH","tr":"TR","ug":"CN","uk":"UA","ur":"PK","uz":"UZ","vi":"VN","yi":"001","yo":"NG","zh":"CN","zu":"ZA"},"languageAliases":{"in":"id","iw":"he","ji":"yi","jw":"jv","mo":"ro","tl":"fil"},"rtl":["ar","ckb","dv","fa","he","ps","sd","ug","ur","yi"],"rtlMirroredIcons":["ui-back","ui-chevron-left","ui-chevron-right","ui-arrow-right","ui-send","ui-undo","ui-external-link","arrow-left","arrow-right","chevron-left","chevron-right","send","undo-2","external-link"],"englishFallback":{"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dayPeriods":["AM","PM"],"currencyPrefix":{"USD":"$","EUR":"€","GBP":"£","JPY":"¥","CNY":"CN¥","INR":"₹","KRW":"₩","CAD":"CA$","AUD":"A$","MXN":"MX$","BRL":"R$","ILS":"₪","NZD":"NZ$","HKD":"HK$","TWD":"NT$","VND":"₫","PHP":"₱","XAF":"FCFA ","XOF":"F CFA "},"currencyDigits":{"JPY":0,"KRW":0,"VND":0,"CLP":0,"ISK":0,"UGX":0,"PYG":0,"XAF":0,"XOF":0,"BHD":3,"IQD":3,"JOD":3,"KWD":3,"OMR":3,"TND":3},"relative":{"units":{"second":["second","seconds"],"minute":["minute","minutes"],"hour":["hour","hours"],"day":["day","days"],"week":["week","weeks"],"month":["month","months"],"year":["year","years"]},"auto":{"second":{"0":"now"},"day":{"1":"tomorrow","-1":"yesterday"},"week":{"1":"next week","-1":"last week"},"month":{"1":"next month","-1":"last month"},"year":{"1":"next year","-1":"last year"}},"past":"{value} {unit} ago","future":"in {value} {unit}"},"unknownCurrency":"{code} ","datePatterns":{"short":"M/d/yy","medium":"MMM d, y","long":"MMMM d, y","full":"EEEE, MMMM d, y"},"timePattern":"h:mm a","dateTimeJoin":{"short":"{date}, {time}","medium":"{date}, {time}","long":"{date} at {time}","full":"{date} at {time}"}}}"####;
|
|
77
|
+
pub const CODE_JSON: &str = r####"{"defaults":{"operators":"+-*/%=&|<>!?^~:@#","punctuation":"()[]{},.;"},"languages":{"plain":{"plain":true},"json":{"strings":["\""],"keywords":["true","false","null"],"keyStrings":true},"js":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\"","'","`"],"multiline":["`"],"types":"capitalized","keywords":["async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","if","import","in","instanceof","let","new","null","of","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]},"ts":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\"","'","`"],"multiline":["`"],"types":"capitalized","typeNames":["any","bigint","boolean","never","number","object","string","symbol","unknown"],"keywords":["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},"tsx":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\"","'","`"],"multiline":["`"],"types":"capitalized","typeNames":["any","bigint","boolean","never","number","object","string","symbol","unknown"],"keywords":["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},"rust":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\""],"multiline":["\""],"types":"capitalized","typeNames":["bool","char","f32","f64","i8","i16","i32","i64","i128","isize","str","u8","u16","u32","u64","u128","usize"],"keywords":["as","async","await","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","Self","static","struct","super","trait","true","type","unsafe","use","where","while"]},"swift":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\""],"types":"capitalized","keywords":["any","as","associatedtype","async","await","break","case","catch","class","continue","default","defer","do","else","enum","extension","fallthrough","false","for","func","guard","if","import","in","init","inout","internal","is","let","nil","private","protocol","public","repeat","rethrows","return","self","Self","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","var","where","while"]},"kotlin":{"lineComment":["//"],"blockComment":[["/*","*/"]],"strings":["\"","'"],"types":"capitalized","keywords":["as","break","by","catch","class","companion","constructor","continue","data","do","else","enum","false","finally","for","fun","if","import","in","init","interface","internal","is","lateinit","null","object","open","override","package","private","protected","public","return","sealed","super","suspend","this","throw","true","try","typealias","val","var","when","while"]},"python":{"lineComment":["#"],"strings":["\"","'"],"types":"capitalized","keywords":["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","self","try","while","with","yield"]},"bash":{"lineComment":["#"],"strings":["\"","'"],"multiline":["\"","'"],"keywords":["case","do","done","echo","elif","else","esac","exit","export","fi","for","function","if","in","local","readonly","return","then","until","while"]},"html":{"markup":true,"blockComment":[["<!--","-->"]],"strings":["\"","'"],"numbers":false},"css":{"blockComment":[["/*","*/"]],"strings":["\"","'"],"identExtra":"-@","keyIdents":true,"operators":"+*/%=&|<>!?^~:#","keywords":["@container","@font-face","@import","@keyframes","@layer","@media","@supports","auto","important","inherit","initial","none","unset"]},"sql":{"lineComment":["--"],"blockComment":[["/*","*/"]],"strings":["'","\""],"caseInsensitive":true,"keywords":["all","alter","and","as","asc","between","by","case","create","default","delete","desc","distinct","drop","else","end","exists","foreign","from","group","having","in","index","inner","insert","into","is","join","key","left","like","limit","not","null","offset","on","or","order","outer","primary","references","returning","right","select","set","table","then","union","update","values","when","where","with"]},"yaml":{"lineComment":["#"],"strings":["\"","'"],"keyIdents":true,"identExtra":"-","keywords":["true","false","null","yes","no"]},"markdown":{"lineKinds":{"#":"keyword",">":"comment"},"strings":["`"],"numbers":false,"operators":"","punctuation":""},"ansi":{"ansi":true,"numbers":false,"operators":"","punctuation":"","lineKinds":{"$ ":"comment","> ":"comment","BUILD SUCCESSFUL":"success","BUILD FAILED":"error","PASS ":"success","FAIL ":"error","FAILED":"error","(pass)":"success","(fail)":"error","test result: ok":"success","test result: FAILED":"error","error:":"error","error[":"error","Error:":"error","warning:":"warning","✓":"success","✔":"success","✗":"error","✘":"error"}}}}"####;
|
|
78
|
+
pub const A11Y_JSON: &str = r####"{"roles":["alert","alertdialog","banner","button","checkbox","combobox","dialog","document","form","group","heading","hidden","img","link","list","listitem","main","menu","meter","navigation","none","progressbar","radio","radiogroup","region","separator","slider","spinbutton","status","switch","tablist","table","text","textbox","tooltip","tree","treeitem"],"rules":["Every interactive node is reachable by Tab in reading order (tree order; a node's resolved `direction` flips its rows) and shows a focus ring only for keyboard focus (`:focus-visible`, recipe state `focus`).","A field's label, description and every error are linked to it (aria-labelledby / aria-describedby, contentDescription, accessibilityLabel/Hint); an error has the id `<node id>.error`.","`visible: false` removes the node from the accessibility tree; `visibility: hidden` hides it too; `display: none` likewise.","Icon-only buttons and standalone Icons take their `label` (or `accessibility.label`) as the accessible name; decorative icons are hidden.","`accessibility.label`/`description` on any node override the computed name/description.","Animations honour reduced motion: with `prefers-reduced-motion: reduce` transitions run at 0 ms, the Spinner/Skeleton shimmer stops and every style `animation` shows its rest keyframe.","Text and accessible names follow the NODE's direction (an inner `direction` box included): reading order, `textAlign` start/end and the bidi paragraph direction."],"commands":{"focus":{"args":["id"],"description":"Moves keyboard focus to the node with this id (the first focusable descendant of a non-focusable node); ignored when it is not rendered."},"announce":{"args":["text","live"],"description":"Speaks the text through the platform's live region (`polite` waits, `assertive` interrupts) without showing anything."},"scrollIntoView":{"args":["id"],"description":"Scrolls the nearest scrolling ancestor (List, ScrollArea, the surface) so the node is visible."},"scrollToIndex":{"args":["id","index","align"],"description":"Scrolls the List or Table `id` so its item (data index, before any local sort) is in view: `align` start | center | end | nearest (default), the pinned section header subtracted; a windowed list renders it first (src/list.ts scrollOffsetForIndex)."}},"components":{"Box":{"role":"none","notes":"group (button when pressable). A pressable Box is a button.","keys":["Enter, Space: press (pressable only)"]},"Stack":{"role":"none","notes":"none (layout only)","keys":[]},"Grid":{"role":"none","notes":"none (layout only)","keys":[]},"Card":{"role":"group","notes":"group labelled by its title","keys":[]},"Separator":{"role":"separator","notes":"separator","keys":[]},"ScrollArea":{"role":"region","notes":"region (scrollable, focusable when it overflows)","keys":["Arrow keys, PageUp/PageDown, Home/End scroll while focused"]},"Section":{"role":"group","notes":"group; the header a heading (level 3) with the caption and count in its name, or a button with aria-expanded when collapsible; the rows a list (a tree when `tree`) of listitems","keys":["Enter, Space: fold when collapsible"]},"Group":{"role":"group","notes":"group labelled by its title, described by its footer","keys":[]},"Heading":{"role":"heading","notes":"heading (level from h1–h4)","keys":[]},"Kbd":{"role":"text","notes":"text (the shortcut spelled out)","keys":[]},"Label":{"role":"text","notes":"label of the control named by `for`","keys":["Pressing it focuses that control"]},"Badge":{"role":"text","notes":"text (status)","keys":[]},"Alert":{"role":"alert","notes":"alert for warning/error, status otherwise. alert for warning/error, status otherwise ($a11y).","keys":[]},"EmptyState":{"role":"status","notes":"status; the action = button","keys":["Enter, Space on the action"]},"Progress":{"role":"progressbar","notes":"progressbar (valuenow/valuemax, labelled by its label)","keys":[]},"Meter":{"role":"meter","notes":"meter (value of max, labelled by its label)","keys":[]},"Sparkline":{"role":"img","notes":"img with a generated summary (first, last, min, max). The Chart painter names it with `sparklineSummary` (first, last, min, max).","keys":[]},"List":{"role":"list","notes":"list; each item a listitem with its position in the WHOLE list (aria-setsize/posinset, also when windowed); a section header is a heading (level 3) and stays first in reading order while pinned","keys":["Tab moves through the rows' controls; the list itself is one scroll region"]},"Resizable":{"role":"group","notes":"group; each handle a focusable separator (aria-orientation = the line's, valuenow = the size of the panel before it, valuemin/max = its limits, controls = that panel), named `$string.resize`","keys":["Arrow keys on a handle: move it on screen by 10 points (Left/Right horizontal, Up/Down vertical; rtl: ArrowRight shrinks the first panel)","Home / End: the panel before the handle to its min / max","Enter: collapse or reopen a collapsible panel"]},"Text":{"role":"text","notes":"text (a live region when `live` is not off)","keys":[]},"Markdown":{"role":"document","notes":"document fragment (headings, lists, links, tables keep their roles)","keys":["Tab moves through the links"]},"CodeBlock":{"role":"region","notes":"region (code), copy = button","keys":["Tab reaches the copy button; Enter, Space: copy and announce `copied`"]},"Image":{"role":"img","notes":"img (alt = name; decorative when alt is empty)","keys":[]},"Icon":{"role":"img","notes":"img when labelled, hidden otherwise","keys":[]},"Video":{"role":"group","notes":"video with the platform's controls","keys":["Space: play/pause; ArrowLeft/ArrowRight: seek 5 s"]},"AudioPlayer":{"role":"group","notes":"audio with the platform's controls","keys":["Space: play/pause; ArrowLeft/ArrowRight: seek 5 s"]},"Avatar":{"role":"img","notes":"img (name)","keys":[]},"Carousel":{"role":"region","notes":"region, roledescription carousel; each page a group `page i of n`","keys":["ArrowLeft/ArrowRight: previous/next page while focus is inside","Home/End: first/last page"]},"Tabs":{"role":"tablist","notes":"tablist / tab / tabpanel","keys":["Roving tab stop on the tabs","ArrowLeft/ArrowRight: previous/next tab, activating it (wraps)","Home/End: first/last tab","Tab: into the active panel","Each close glyph (labelled `closeTab`, revealed by keyboard focus too) is a button after its tab; the + button (labelled `newTab`) follows the last tab"]},"Segmented":{"role":"radiogroup","notes":"radiogroup (single) or toolbar of toggle buttons (multiple); `bar` = navigation of buttons, the selected one aria-current=page","keys":["Roving tab stop","ArrowLeft/ArrowRight (ArrowUp/ArrowDown): move focus (wraps)","Home/End: first/last","Space, Enter: toggle the focused item"]},"Accordion":{"role":"group","notes":"headers = buttons with aria-expanded controlling regions","keys":["Enter, Space: toggle the focused section","ArrowDown/ArrowUp: next/previous header","Home/End: first/last header"]},"Dialog":{"role":"dialog","notes":"dialog (modal)","keys":["Opening moves focus to the first focusable child (else the dialog)","Tab cycles inside the dialog (focus trap)","Escape: close when dismissible","Closing returns focus to the trigger"]},"Drawer":{"role":"dialog","notes":"dialog (modal)","keys":["As Dialog; a swipe toward the edge closes when dragToDismiss"]},"DockCard":{"role":"button","notes":"trigger = button named `label: title` ($a11y); the sheet is a Drawer (dialog, modal).","keys":["Enter, Space: open the sheet","As Drawer once open"]},"Popover":{"role":"dialog","notes":"dialog (non-modal)","keys":["Enter, Space on the trigger: open","Escape: close and return focus to the trigger","openOn hover also opens on trigger focus"]},"Tooltip":{"role":"tooltip","notes":"tooltip describing its anchor","keys":["Shows on hover AND keyboard focus of the anchor (after the platform delay); Escape hides"]},"Menu":{"role":"menu","notes":"menu / menuitem / menuitemcheckbox / group / separator; `openOn: contextmenu` opens at the pointer","keys":["Enter, Space, ArrowDown on the trigger: open on the first item; ArrowUp: open on the last","Shift+F10 or the Menu key on the focused child (contextmenu): open at the child","ArrowDown/ArrowUp: next/previous item (wraps, skips disabled)","Home/End: first/last item","Enter, Space: run the item (a checkbox item toggles and stays open)","ArrowRight on a submenu: open it; ArrowLeft or Escape inside: close it","A searchable submenu opens with its filter input focused: typing filters, ArrowDown/ArrowUp move the active row, Enter picks it, ArrowLeft with the caret at the start or Escape closes it","Escape: close and return focus to the trigger","Typing a letter: the next item starting with it"]},"Toast":{"role":"status","notes":"status (polite); alert (assertive) for type error","keys":["Never takes focus on appear; Tab reaches its action and close","Escape on a focused toast: dismiss","Hover or focus pauses the duration timer"]},"Ring":{"role":"progressbar","notes":"progressbar (value 0..1 as percent)","keys":[]},"Spinner":{"role":"progressbar","notes":"progressbar (indeterminate) labelled `loading` by default","keys":[]},"Skeleton":{"role":"hidden","notes":"hidden (the parent announces busy)","keys":[]},"Table":{"role":"table","notes":"table (grid when selectable): columnheader with aria-sort, row with aria-selected","keys":["Enter, Space on a sortable header: cycle the sort (asc, desc)","Space on a row checkbox: toggle the row; on the header checkbox: select all","Enter on a focused row: rowPress","Tab moves through headers, checkboxes and cell controls"]},"Chart":{"role":"img","notes":"img with a generated summary (kind, series, ranges); a data table fallback for screen readers. The painter names it with `chartSummary` (series, min, max) and offers a data table fallback.","keys":["ArrowLeft/ArrowRight while focused: move the tooltip between categories"]},"Button":{"role":"button","notes":"button (aria-busy while loading)","keys":["Enter, Space: press","A `submit` button submits the enclosing Form"]},"Link":{"role":"link","notes":"link","keys":["Enter: open / press"]},"Toggle":{"role":"button","notes":"button with aria-pressed","keys":["Enter, Space: toggle"]},"Form":{"role":"form","notes":"form","keys":["Enter in a single-line field: submit","A failed submit focuses the first invalid field and announces `invalidFields`"]},"Input":{"role":"textbox","notes":"textbox","keys":["Enter: submit (fires `submit`, submits the Form)"]},"Textarea":{"role":"textbox","notes":"textbox (multiline)","keys":["Enter: newline"]},"NumberField":{"role":"spinbutton","notes":"spinbutton (valuemin/valuemax/valuenow)","keys":["ArrowUp/ArrowDown: ± step (Shift: ×10)","PageUp/PageDown: ± 10 steps","Home/End: min/max","Enter or blur: commit and clamp"]},"Checkbox":{"role":"checkbox","notes":"checkbox","keys":["Space: toggle"]},"Radio":{"role":"radiogroup","notes":"radiogroup / radio","keys":["Roving tab stop on the checked option","ArrowDown/ArrowRight: next option, selecting it (wraps)","ArrowUp/ArrowLeft: previous option"]},"ChoiceTiles":{"role":"radiogroup","notes":"radiogroup of radio tiles (single) or a group of checkbox tiles (multiple); the picture is decorative, the label names the tile","keys":["Roving tab stop on the picked tile (the first when none)","ArrowRight/ArrowLeft, ArrowDown/ArrowUp: move focus (wraps); single: picks","Space, Enter: toggle the focused tile"]},"Switch":{"role":"switch","notes":"switch; the label (and description) first, the switch at the end; the whole row toggles","keys":["Space, Enter: toggle"]},"Slider":{"role":"slider","notes":"slider","keys":["ArrowRight/ArrowUp: + step; ArrowLeft/ArrowDown: - step","PageUp/PageDown: ± 10 steps","Home/End: min/max"]},"Select":{"role":"combobox","notes":"combobox + listbox / option","keys":["Enter, Space, ArrowDown: open on the selected option","ArrowDown/ArrowUp: move the active option; Home/End: first/last","Enter: choose (multiple: toggle and stay open)","Escape: close without change","Typing: jump to the next matching option; with `searchable`, typing filters, focus stays in the search field and arrows move the active option (aria-activedescendant)"]},"SearchList":{"role":"combobox","notes":"combobox (the input) controlling a listbox of options; the highlighted row = aria-activedescendant, the count a polite status","keys":["Focus stays in the input","ArrowDown/ArrowUp: move the highlighted row (no wrap, no animation)","Enter or Tab: pick the highlighted row (fires `select`)","Typing: filters; the top row is highlighted again"]},"ChipInput":{"role":"textbox","notes":"textbox with a list of removable chips","keys":["Enter or comma: add the typed entry","Backspace in an empty field: focus the last chip, again: remove it","ArrowLeft/ArrowRight: move between chips; Delete, Backspace: remove the focused chip","ArrowDown: open the suggestions (as Select)"]},"DatePicker":{"role":"combobox","notes":"combobox opening a dialog with a grid of days","keys":["Enter, Space, ArrowDown: open on the selected (else today's) day","Arrow keys: ± 1 day / ± 1 week","PageUp/PageDown: previous/next month (Shift: year)","Home/End: start/end of the week (locale week start)","Enter, Space: choose; Escape: close"]},"DateRangePicker":{"role":"combobox","notes":"as DatePicker; the second choice ends the range","keys":["As DatePicker; the first Enter sets the start, the second the end"]},"TimePicker":{"role":"combobox","notes":"combobox + listbox","keys":["As Select; typing `HH:mm` into the field commits on Enter or blur"]},"FileUpload":{"role":"button","notes":"button (the drop zone) + a list of files with remove buttons","keys":["Enter, Space on the drop zone: open the file picker","Tab reaches each file's remove button"]},"Composer":{"role":"textbox","notes":"textbox (multiline) + send button","keys":["Enter: submit; Shift+Enter: newline","Escape while busy: stop"]},"TreeGuides":{"role":"hidden","notes":"hidden (decorative; a Row part)","keys":[]},"Unknown":{"role":"group","notes":"group labelled `unknownComponent`","keys":[]},"Collapsible":{"role":"group","notes":"trigger = button with aria-expanded. The trigger is a button with aria-expanded = open ($a11y).","keys":["Enter, Space: toggle"]},"Pagination":{"role":"navigation","notes":"navigation of two buttons and a status. Labelled `pagination`; previous/next buttons and a status labelled `pageOf` ($a11y).","keys":["Enter, Space on previous/next"]},"Breadcrumb":{"role":"navigation","notes":"navigation (breadcrumb); the last item aria-current=page. Labelled `breadcrumb`; the last item aria-current=page ($a11y).","keys":["Tab through the links; Enter: select"]},"Stepper":{"role":"list","notes":"list; the current step aria-current=step. Each step a listitem labelled `stepDone`/`stepCurrent`/`stepUpcoming`; the current one aria-current=step ($a11y).","keys":[]},"Rating":{"role":"group","notes":"A group of star buttons: each labelled `ratingStar` (\"3 of 5\"), the chosen one aria-pressed; read-only stars leave the tree and the group is an img labelled `ratingValue` ($a11y).","keys":["Tab through the stars; Enter, Space: rate"]},"AlertDialog":{"role":"alertdialog","notes":"alertdialog. The cancel button takes focus on open (`autoFocus`, $a11y).","keys":["Opening focuses the cancel button","Escape: cancel; clicks outside are ignored"]},"Sidebar":{"role":"none","notes":"navigation landmark (the sidebar slot) beside main. Layout only; its `sidebar` part is a navigation landmark, its `main` part the main landmark ($a11y).","keys":[]},"AppBar":{"role":"banner","notes":"banner (heading level 1 = the title). The title is heading level 1; the back button is labelled `back` ($a11y).","keys":["Enter, Space on back"]},"Row":{"role":"button","notes":"button (aria-selected when selected) when pressable, a group of its texts otherwise ($a11y); the guides are decorative","keys":["Enter, Space: press (pressable only)"]},"Trace":{"role":"none","notes":"Layout only: a column of TraceItem lines.","keys":[]},"TraceItem":{"role":"group","notes":"A collapsible line is a button with aria-expanded = open ($a11y); a plain line is text; the icon is decorative.","keys":["Enter, Space: toggle (collapsible only)"]},"Chip":{"role":"button","notes":"button with aria-pressed (= selected) when pressable, text otherwise ($a11y); remove = button labelled `remove`","keys":["Enter, Space: press; Delete, Backspace: remove when removable"]},"Page":{"role":"none","notes":"Layout only: its header is the AppBar (banner, the title heading level 1), its body the main landmark ($a11y).","keys":["Enter, Space on back"]},"Toolbar":{"role":"group","notes":"group of controls in reading order; the trailing action last","keys":[]},"SplitView":{"role":"none","notes":"Layout only: the `list` part is a navigation landmark, the `detail` part the main landmark; the phone back button is labelled `back` ($a11y).","keys":["Enter, Space on back"]},"FieldGroup":{"role":"group","notes":"group of fields; each field keeps its own label","keys":[]},"FormActions":{"role":"group","notes":"group: Cancel, then the submit (the last in focus order)","keys":["Enter, Space on a button"]},"StatTile":{"role":"group","notes":"group labelled by its label; the sparkline is an img with the generated summary","keys":[]}}}"####;
|
|
79
|
+
pub const LAYOUT_JSON: &str = r####"{"windowThreshold":50,"windowOverscan":5,"resizeStep":10,"panelMin":10,"resizeHandleHit":8,"fieldIntrinsicWidth":160,"mediaIntrinsicWidth":320,"mediaAspectRatio":1.7777778,"treeGuideColumn":14,"treeGuideRadius":3,"treeGuideBridge":1,"pendingDelayMs":150,"skeletonPulseMs":1600,"skeletonOpacityLow":0.45,"skeletonOpacityHigh":0.9,"skeletonReducedOpacity":0.6,"searchListFade":24}"####;
|
|
80
|
+
pub const LIMITS_JSON: &str = r####"{"maxComponents":20000,"maxDepth":48,"maxMessageBytes":4194304,"maxTemplateItems":10000,"maxPointerBytes":1024,"maxPointerSegments":64}"####;
|