neba 1.19.1 → 1.20.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.
@@ -1 +1 @@
1
- {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://neba.cdget.com/a2ui/1.19/catalog.json","protocolVersion":"1.0","catalogId":"https://neba.cdget.com/a2ui/1.19/catalog.json","components":{"Flex":{"type":"object","properties":{"component":{"const":"Flex"},"children":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/ChildList"},"direction":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"spacing":{"type":"number","default":0},"justifyContent":{"type":"string","enum":["start","center","end","space-between","space-around","space-evenly","stretch"],"default":"start"},"alignItems":{"type":"string","enum":["start","center","end","stretch","baseline"],"default":"stretch"},"wrap":{"type":"boolean","default":false}},"required":["component","children"]},"Card":{"type":"object","properties":{"component":{"const":"Card"},"child":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Child"},"title":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"subtitle":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"elevation":{"type":"integer","enum":[0,1,2,3],"default":0}},"required":["component"]},"Divider":{"type":"object","properties":{"component":{"const":"Divider"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"}},"required":["component"]},"Typography":{"type":"object","properties":{"component":{"const":"Typography"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"level":{"type":"string","enum":["h1","h2","h3","h4","h5","h6","body","lead","caption","overline"],"default":"body"},"weight":{"type":"string","enum":["regular","medium","semibold","bold"],"default":"regular"},"align":{"type":"string","enum":["start","center","end","justify"]},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"]},"lines":{"type":"integer","minimum":1}},"required":["component","text"]},"Image":{"type":"object","properties":{"component":{"const":"Image"},"src":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"alt":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"ratio":{"type":"number"},"fit":{"type":"string","enum":["cover","contain","fill","none","scale-down"],"default":"cover"},"rounded":{"type":"string","enum":["xs","sm","md","lg","xl"]}},"required":["component","src","alt"]},"Chip":{"type":"object","properties":{"component":{"const":"Chip"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"count":{"type":"number"},"selected":{"type":"boolean","default":false}},"required":["component","text"]},"Avatar":{"type":"object","properties":{"component":{"const":"Avatar"},"src":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"name":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"shape":{"type":"string","enum":["circle","square"],"default":"circle"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"}},"required":["component"]},"Statistic":{"type":"object","properties":{"component":{"const":"Statistic"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"unit":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"caption":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"previousValue":{"type":"number"},"delta":{"type":"string","enum":["percent","absolute","both","none"],"default":"percent"},"betterWhen":{"type":"string","enum":["up","down"],"default":"up"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"align":{"type":"string","enum":["start","center","end"],"default":"start"}},"required":["component","value"]},"DataList":{"type":"object","properties":{"component":{"const":"DataList"},"items":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["label","value"],"additionalProperties":false}},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"dividers":{"type":"boolean","default":false},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"density":{"type":"string","enum":["default","compact"],"default":"default"}},"required":["component","items"]},"Alert":{"type":"object","properties":{"component":{"const":"Alert"},"child":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Child"},"title":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"info"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"density":{"type":"string","enum":["default","compact"],"default":"default"}},"required":["component"]},"Button":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Button"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"action":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Action"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"solid"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"elevation":{"type":"integer","enum":[0,1,2,3],"default":0},"loading":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","text","action"]}]},"TextField":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"TextField"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"placeholder":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"multiline":{"type":"boolean","default":false},"rows":{"type":"integer","minimum":1,"default":3},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","label"]}]},"NumberField":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"NumberField"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false}},"required":["component","label"]}]},"Checkbox":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Checkbox"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"checked":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"required":["component","label"]}]},"Switch":{"type":"object","properties":{"component":{"const":"Switch"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"checked":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"disabled":{"type":"boolean","default":false}},"required":["component","label"]},"RadioGroup":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"RadioGroup"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"type":"string"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"disabled":{"type":"boolean","default":false}},"required":["label","value"],"additionalProperties":false}},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"vertical"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"required":["component","label","options"]}]},"Select":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Select"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"placeholder":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"type":"string"},"group":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"disabled":{"type":"boolean","default":false}},"required":["value"],"additionalProperties":false}},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","label","options"]}]},"Slider":{"type":"object","properties":{"component":{"const":"Slider"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"min":{"type":"number","default":0},"max":{"type":"number","default":100},"step":{"type":"number","default":1},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"disabled":{"type":"boolean","default":false}},"required":["component","label"]}},"functions":{"required":{"type":"object","properties":{"call":{"const":"required"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["value"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"},"length":{"type":"object","properties":{"call":{"const":"length"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"}},"required":["value"],"unevaluatedProperties":false,"anyOf":[{"required":["min"]},{"required":["max"]}]}},"required":["call","args"],"returnType":"boolean"},"regex":{"type":"object","properties":{"call":{"const":"regex"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"pattern":{"type":"string"}},"required":["value","pattern"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"},"numeric":{"type":"object","properties":{"call":{"const":"numeric"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"}},"required":["value"],"unevaluatedProperties":false,"anyOf":[{"required":["min"]},{"required":["max"]}]}},"required":["call","args"],"returnType":"boolean"},"email":{"type":"object","properties":{"call":{"const":"email"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["value"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"},"formatString":{"type":"object","properties":{"call":{"const":"formatString"},"args":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"string"},"formatNumber":{"type":"object","properties":{"call":{"const":"formatNumber"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"decimals":{"type":"number"},"grouping":{"type":"boolean","default":true}},"required":["value"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"string"},"formatCurrency":{"type":"object","properties":{"call":{"const":"formatCurrency"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"currency":{"type":"string"},"decimals":{"type":"number"},"grouping":{"type":"boolean","default":true}},"required":["value","currency"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"string"},"formatDate":{"type":"object","properties":{"call":{"const":"formatDate"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"format":{"type":"string"}},"required":["value","format"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"string"},"pluralize":{"type":"object","properties":{"call":{"const":"pluralize"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"zero":{"type":"string"},"one":{"type":"string"},"two":{"type":"string"},"few":{"type":"string"},"many":{"type":"string"},"other":{"type":"string"}},"required":["value","other"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"string"},"openUrl":{"type":"object","properties":{"call":{"const":"openUrl"},"args":{"type":"object","properties":{"url":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["url"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"void","allowedCallers":"rendererOnly","requiresUserActivation":true},"and":{"type":"object","properties":{"call":{"const":"and"},"args":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"minItems":2}},"required":["values"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"},"or":{"type":"object","properties":{"call":{"const":"or"},"args":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"minItems":2}},"required":["values"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"},"not":{"type":"object","properties":{"call":{"const":"not"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"}},"required":["value"],"unevaluatedProperties":false}},"required":["call","args"],"returnType":"boolean"}},"$defs":{"anyComponent":{"oneOf":[{"$ref":"#/components/Flex"},{"$ref":"#/components/Card"},{"$ref":"#/components/Divider"},{"$ref":"#/components/Typography"},{"$ref":"#/components/Image"},{"$ref":"#/components/Chip"},{"$ref":"#/components/Avatar"},{"$ref":"#/components/Statistic"},{"$ref":"#/components/DataList"},{"$ref":"#/components/Alert"},{"$ref":"#/components/Button"},{"$ref":"#/components/TextField"},{"$ref":"#/components/NumberField"},{"$ref":"#/components/Checkbox"},{"$ref":"#/components/Switch"},{"$ref":"#/components/RadioGroup"},{"$ref":"#/components/Select"},{"$ref":"#/components/Slider"}],"discriminator":{"propertyName":"component"}},"anyFunction":{"oneOf":[{"$ref":"#/functions/required"},{"$ref":"#/functions/length"},{"$ref":"#/functions/regex"},{"$ref":"#/functions/numeric"},{"$ref":"#/functions/email"},{"$ref":"#/functions/formatString"},{"$ref":"#/functions/formatNumber"},{"$ref":"#/functions/formatCurrency"},{"$ref":"#/functions/formatDate"},{"$ref":"#/functions/pluralize"},{"$ref":"#/functions/openUrl"},{"$ref":"#/functions/and"},{"$ref":"#/functions/or"},{"$ref":"#/functions/not"}]}}}
1
+ {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://neba.cdget.com/a2ui/1.20/catalog.json","protocolVersion":"1.0","catalogId":"https://neba.cdget.com/a2ui/1.20/catalog.json","components":{"Flex":{"type":"object","properties":{"component":{"const":"Flex"},"children":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/ChildList"},"direction":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"spacing":{"type":"number","default":0},"justifyContent":{"type":"string","enum":["start","center","end","space-between","space-around","space-evenly","stretch"],"default":"start"},"alignItems":{"type":"string","enum":["start","center","end","stretch","baseline"],"default":"stretch"},"wrap":{"type":"boolean","default":false}},"required":["component","children"]},"Card":{"type":"object","properties":{"component":{"const":"Card"},"child":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Child"},"title":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"subtitle":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"elevation":{"type":"integer","enum":[0,1,2,3],"default":0}},"required":["component"]},"Divider":{"type":"object","properties":{"component":{"const":"Divider"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"}},"required":["component"]},"Typography":{"type":"object","properties":{"component":{"const":"Typography"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"level":{"type":"string","enum":["h1","h2","h3","h4","h5","h6","body","lead","caption","overline"],"default":"body"},"weight":{"type":"string","enum":["regular","medium","semibold","bold"],"default":"regular"},"align":{"type":"string","enum":["start","center","end","justify"]},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"]},"lines":{"type":"integer","minimum":1}},"required":["component","text"]},"Image":{"type":"object","properties":{"component":{"const":"Image"},"src":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"alt":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"ratio":{"type":"number"},"fit":{"type":"string","enum":["cover","contain","fill","none","scale-down"],"default":"cover"},"rounded":{"type":"string","enum":["xs","sm","md","lg","xl"]}},"required":["component","src","alt"]},"Chip":{"type":"object","properties":{"component":{"const":"Chip"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"count":{"type":"number"},"selected":{"type":"boolean","default":false}},"required":["component","text"]},"Avatar":{"type":"object","properties":{"component":{"const":"Avatar"},"src":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"name":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"shape":{"type":"string","enum":["circle","square"],"default":"circle"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"}},"required":["component"]},"Statistic":{"type":"object","properties":{"component":{"const":"Statistic"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"unit":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"caption":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"previousValue":{"type":"number"},"delta":{"type":"string","enum":["percent","absolute","both","none"],"default":"percent"},"betterWhen":{"type":"string","enum":["up","down"],"default":"up"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"align":{"type":"string","enum":["start","center","end"],"default":"start"}},"required":["component","value"]},"DataList":{"type":"object","properties":{"component":{"const":"DataList"},"items":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["label","value"],"additionalProperties":false}},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"},"dividers":{"type":"boolean","default":false},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"density":{"type":"string","enum":["default","compact"],"default":"default"}},"required":["component","items"]},"Alert":{"type":"object","properties":{"component":{"const":"Alert"},"child":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Child"},"title":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"info"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"density":{"type":"string","enum":["default","compact"],"default":"default"}},"required":["component"]},"Button":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Button"},"text":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"action":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Action"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"solid"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"elevation":{"type":"integer","enum":[0,1,2,3],"default":0},"loading":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","text","action"]}]},"TextField":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"TextField"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"placeholder":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"multiline":{"type":"boolean","default":false},"rows":{"type":"integer","minimum":1,"default":3},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","label"]}]},"NumberField":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"NumberField"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false}},"required":["component","label"]}]},"Checkbox":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Checkbox"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"checked":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"required":["component","label"]}]},"Switch":{"type":"object","properties":{"component":{"const":"Switch"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"checked":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"disabled":{"type":"boolean","default":false}},"required":["component","label"]},"RadioGroup":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"RadioGroup"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"type":"string"},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"disabled":{"type":"boolean","default":false}},"required":["label","value"],"additionalProperties":false}},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"vertical"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"required":["component","label","options"]}]},"Select":{"type":"object","allOf":[{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/Checkable"},{"type":"object","properties":{"component":{"const":"Select"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"placeholder":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"type":"string"},"group":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"disabled":{"type":"boolean","default":false}},"required":["value"],"additionalProperties":false}},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"variant":{"type":"string","enum":["solid","outline","text"],"default":"outline"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"density":{"type":"string","enum":["default","compact"],"default":"default"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"fullWidth":{"type":"boolean","default":false}},"required":["component","label","options"]}]},"Slider":{"type":"object","properties":{"component":{"const":"Slider"},"label":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"min":{"type":"number","default":0},"max":{"type":"number","default":100},"step":{"type":"number","default":1},"description":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"size":{"type":"string","enum":["xs","sm","md","lg","xl"],"default":"md"},"color":{"type":"string","enum":["primary","secondary","success","warning","danger","info"],"default":"primary"},"disabled":{"type":"boolean","default":false}},"required":["component","label"]}},"functions":{"required":{"type":"object","properties":{"@call":{"const":"required"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["value"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"validationResult"},"length":{"type":"object","properties":{"@call":{"const":"length"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"}},"required":["value"],"unevaluatedProperties":false,"anyOf":[{"required":["min"]},{"required":["max"]}]}},"required":["@call","args"],"returnType":"validationResult"},"regex":{"type":"object","properties":{"@call":{"const":"regex"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"pattern":{"type":"string"}},"required":["value","pattern"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"validationResult"},"numeric":{"type":"object","properties":{"@call":{"const":"numeric"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"min":{"type":"number"},"max":{"type":"number"}},"required":["value"],"unevaluatedProperties":false,"anyOf":[{"required":["min"]},{"required":["max"]}]}},"required":["@call","args"],"returnType":"validationResult"},"email":{"type":"object","properties":{"@call":{"const":"email"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["value"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"validationResult"},"formatString":{"type":"object","properties":{"@call":{"const":"formatString"},"args":{"type":"object","properties":{"value":{"type":"string"}},"required":["value"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"string"},"formatNumber":{"type":"object","properties":{"@call":{"const":"formatNumber"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"decimals":{"type":"number"},"grouping":{"type":"boolean","default":true}},"required":["value"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"string"},"formatCurrency":{"type":"object","properties":{"@call":{"const":"formatCurrency"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"currency":{"type":"string"},"decimals":{"type":"number"},"grouping":{"type":"boolean","default":true}},"required":["value","currency"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"string"},"formatDate":{"type":"object","properties":{"@call":{"const":"formatDate"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"},"format":{"type":"string"}},"required":["value","format"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"string"},"pluralize":{"type":"object","properties":{"@call":{"const":"pluralize"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicNumber"},"zero":{"type":"string"},"one":{"type":"string"},"two":{"type":"string"},"few":{"type":"string"},"many":{"type":"string"},"other":{"type":"string"}},"required":["value","other"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"string"},"openUrl":{"type":"object","properties":{"@call":{"const":"openUrl"},"args":{"type":"object","properties":{"url":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicString"}},"required":["url"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"void","allowedCallers":"rendererOnly","requiresUserActivation":true},"and":{"type":"object","properties":{"@call":{"const":"and"},"args":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"minItems":2}},"required":["values"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"boolean"},"or":{"type":"object","properties":{"@call":{"const":"or"},"args":{"type":"object","properties":{"values":{"type":"array","items":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"},"minItems":2}},"required":["values"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"boolean"},"not":{"type":"object","properties":{"@call":{"const":"not"},"args":{"type":"object","properties":{"value":{"$ref":"https://a2ui.org/specification/v1_0/common_types.json#/$defs/DynamicBoolean"}},"required":["value"],"unevaluatedProperties":false}},"required":["@call","args"],"returnType":"boolean"}},"$defs":{"anyComponent":{"oneOf":[{"$ref":"#/components/Flex"},{"$ref":"#/components/Card"},{"$ref":"#/components/Divider"},{"$ref":"#/components/Typography"},{"$ref":"#/components/Image"},{"$ref":"#/components/Chip"},{"$ref":"#/components/Avatar"},{"$ref":"#/components/Statistic"},{"$ref":"#/components/DataList"},{"$ref":"#/components/Alert"},{"$ref":"#/components/Button"},{"$ref":"#/components/TextField"},{"$ref":"#/components/NumberField"},{"$ref":"#/components/Checkbox"},{"$ref":"#/components/Switch"},{"$ref":"#/components/RadioGroup"},{"$ref":"#/components/Select"},{"$ref":"#/components/Slider"}],"discriminator":{"propertyName":"component"}},"anyFunction":{"oneOf":[{"$ref":"#/functions/required"},{"$ref":"#/functions/length"},{"$ref":"#/functions/regex"},{"$ref":"#/functions/numeric"},{"$ref":"#/functions/email"},{"$ref":"#/functions/formatString"},{"$ref":"#/functions/formatNumber"},{"$ref":"#/functions/formatCurrency"},{"$ref":"#/functions/formatDate"},{"$ref":"#/functions/pluralize"},{"$ref":"#/functions/openUrl"},{"$ref":"#/functions/and"},{"$ref":"#/functions/or"},{"$ref":"#/functions/not"}]}}}
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://neba.cdget.com/a2ui/1.19/catalog.json",
3
+ "$id": "https://neba.cdget.com/a2ui/1.20/catalog.json",
4
4
  "protocolVersion": "1.0",
5
5
  "title": "Neba",
6
6
  "description": "The subset of the Neba component library an agent can describe: eighteen components whose every prop is a literal, an enumerated value or a reference to another component by ID.",
7
- "catalogId": "https://neba.cdget.com/a2ui/1.19/catalog.json",
8
- "instructions": "Neba is a React component library. Every component below is a real one, and what you write here is turned into that component rather than into markup.\n\n## Laying a surface out\n\nNothing has a margin of its own. Two components sit beside each other only inside a `Flex`, and the gutter between them is that `Flex`'s `spacing`. Nest a vertical `Flex` inside a horizontal one to build a grid.\n\nA component that takes a child takes an **ID**, never an inline definition, and a `Card` and an `Alert` take exactly one — wrap several in a `Flex` and pass that.\n\n## Colour means something here\n\n`color` is one of six semantic families and never a decorative choice. `success`, `warning` and `danger` say how something went; `info` is a note; `primary` is the product's own accent and `secondary` is the quiet one. Do not reach for a family because a screen needs variety, and do not use `danger` for anything but something that failed or something that destroys.\n\nThere is **one** `solid` control in a view — the action the view exists for. Everything else is `outline` or `text`.\n\n## One ladder\n\n`size` is the same five steps on every component, so an `md` Button, an `md` TextField and an `md` Select are the same height and line up in a row. Pick one size for a screen and stay on it; `density` is the prop for making something tighter, and it changes padding only.\n\n## Fields carry their own words\n\nA `TextField`, a `Select`, a `Checkbox` and the rest each draw their own label, helper line and error message. Never add a `Typography` above a field to label it, and never add one below it to show an error — put the message in the field's own `checks`. Give every check a `message` that says what to fix: one without a message shows \"Validation failed\", which tells the reader nothing.\n\n## Text\n\nEvery string a reader sees is a `Typography`. Its `level` says what the text *is* rather than how big it should be: use `h1`…`h6` in order for real headings, and do not pick a heading level because you want larger text.\n\n## Building a sentence out of a value\n\nThere are no operators. `formatString(\"Hello ${/user/name}\")` is how a value is put into a sentence, and `formatNumber`, `formatCurrency`, `formatDate` and `pluralize` are how a number or a date is written in the reader's own language. Never assemble a date out of its parts.",
7
+ "catalogId": "https://neba.cdget.com/a2ui/1.20/catalog.json",
8
+ "instructions": "Neba is a React component library. Every component below is a real one, and what you write here is turned into that component rather than into markup.\n\n## Laying a surface out\n\nNothing has a margin of its own. Two components sit beside each other only inside a `Flex`, and the gutter between them is that `Flex`'s `spacing`. Nest a vertical `Flex` inside a horizontal one to build a grid.\n\nA component that takes a child takes an **ID**, never an inline definition, and a `Card` and an `Alert` take exactly one — wrap several in a `Flex` and pass that.\n\n## Colour means something here\n\n`color` is one of six semantic families and never a decorative choice. `success`, `warning` and `danger` say how something went; `info` is a note; `primary` is the product's own accent and `secondary` is the quiet one. Do not reach for a family because a screen needs variety, and do not use `danger` for anything but something that failed or something that destroys.\n\nThere is **one** `solid` control in a view — the action the view exists for. Everything else is `outline` or `text`.\n\n## One ladder\n\n`size` is the same five steps on every component, so an `md` Button, an `md` TextField and an `md` Select are the same height and line up in a row. Pick one size for a screen and stay on it; `density` is the prop for making something tighter, and it changes padding only.\n\n## Fields carry their own words\n\nA `TextField`, a `Select`, a `Checkbox` and the rest each draw their own label, helper line and error message. Never add a `Typography` above a field to label it, and never add one below it to show an error — put the message in the field's own `checks`. Give every check a `message` that says what to fix, in the language of the page: one without a message shows a generic English line such as \"Validation failed\" or \"This field is required.\"\n\n## Text\n\nEvery string a reader sees is a `Typography`. Its `level` says what the text *is* rather than how big it should be: use `h1`…`h6` in order for real headings, and do not pick a heading level because you want larger text.\n\n## Building a sentence out of a value\n\nThere are no operators. `formatString(\"Hello ${/user/name}\")` is how a value is put into a sentence, and `formatNumber`, `formatCurrency`, `formatDate` and `pluralize` are how a number or a date is written in the reader's own language. Never assemble a date out of its parts.",
9
9
  "components": {
10
10
  "Flex": {
11
11
  "type": "object",
@@ -1379,9 +1379,9 @@
1379
1379
  "functions": {
1380
1380
  "required": {
1381
1381
  "type": "object",
1382
- "description": "True when the value is not empty. The check to put on every field that has to be answered.",
1382
+ "description": "Passes when the value is not empty. The check to put on every field that has to be answered.",
1383
1383
  "properties": {
1384
- "call": {
1384
+ "@call": {
1385
1385
  "const": "required"
1386
1386
  },
1387
1387
  "args": {
@@ -1398,16 +1398,16 @@
1398
1398
  }
1399
1399
  },
1400
1400
  "required": [
1401
- "call",
1401
+ "@call",
1402
1402
  "args"
1403
1403
  ],
1404
- "returnType": "boolean"
1404
+ "returnType": "validationResult"
1405
1405
  },
1406
1406
  "length": {
1407
1407
  "type": "object",
1408
- "description": "True when the value is at least `min` and at most `max` characters long. Give at least one of the two.",
1408
+ "description": "Passes when the value is at least `min` and at most `max` characters long. Give at least one of the two.",
1409
1409
  "properties": {
1410
- "call": {
1410
+ "@call": {
1411
1411
  "const": "length"
1412
1412
  },
1413
1413
  "args": {
@@ -1442,16 +1442,16 @@
1442
1442
  }
1443
1443
  },
1444
1444
  "required": [
1445
- "call",
1445
+ "@call",
1446
1446
  "args"
1447
1447
  ],
1448
- "returnType": "boolean"
1448
+ "returnType": "validationResult"
1449
1449
  },
1450
1450
  "regex": {
1451
1451
  "type": "object",
1452
- "description": "True when the value matches the pattern. Reach for `email` before writing one of these.",
1452
+ "description": "Passes when the value matches the pattern. Reach for `email` before writing one of these.",
1453
1453
  "properties": {
1454
- "call": {
1454
+ "@call": {
1455
1455
  "const": "regex"
1456
1456
  },
1457
1457
  "args": {
@@ -1472,16 +1472,16 @@
1472
1472
  }
1473
1473
  },
1474
1474
  "required": [
1475
- "call",
1475
+ "@call",
1476
1476
  "args"
1477
1477
  ],
1478
- "returnType": "boolean"
1478
+ "returnType": "validationResult"
1479
1479
  },
1480
1480
  "numeric": {
1481
1481
  "type": "object",
1482
- "description": "True when the value is a number at least `min` and at most `max`. Give at least one of the two.",
1482
+ "description": "Passes when the value is a number at least `min` and at most `max`. Give at least one of the two.",
1483
1483
  "properties": {
1484
- "call": {
1484
+ "@call": {
1485
1485
  "const": "numeric"
1486
1486
  },
1487
1487
  "args": {
@@ -1516,16 +1516,16 @@
1516
1516
  }
1517
1517
  },
1518
1518
  "required": [
1519
- "call",
1519
+ "@call",
1520
1520
  "args"
1521
1521
  ],
1522
- "returnType": "boolean"
1522
+ "returnType": "validationResult"
1523
1523
  },
1524
1524
  "email": {
1525
1525
  "type": "object",
1526
- "description": "True when the value looks like an email address.",
1526
+ "description": "Passes when the value looks like an email address.",
1527
1527
  "properties": {
1528
- "call": {
1528
+ "@call": {
1529
1529
  "const": "email"
1530
1530
  },
1531
1531
  "args": {
@@ -1542,16 +1542,16 @@
1542
1542
  }
1543
1543
  },
1544
1544
  "required": [
1545
- "call",
1545
+ "@call",
1546
1546
  "args"
1547
1547
  ],
1548
- "returnType": "boolean"
1548
+ "returnType": "validationResult"
1549
1549
  },
1550
1550
  "formatString": {
1551
1551
  "type": "object",
1552
1552
  "description": "Fills the `${…}` placeholders in the string with what they point at in the data model. It is the only way to build a sentence out of a value: there is no string concatenation anywhere in this catalog.",
1553
1553
  "properties": {
1554
- "call": {
1554
+ "@call": {
1555
1555
  "const": "formatString"
1556
1556
  },
1557
1557
  "args": {
@@ -1568,7 +1568,7 @@
1568
1568
  }
1569
1569
  },
1570
1570
  "required": [
1571
- "call",
1571
+ "@call",
1572
1572
  "args"
1573
1573
  ],
1574
1574
  "returnType": "string"
@@ -1577,7 +1577,7 @@
1577
1577
  "type": "object",
1578
1578
  "description": "Writes a number in the language the renderer was built for, with the digit grouping that language uses.",
1579
1579
  "properties": {
1580
- "call": {
1580
+ "@call": {
1581
1581
  "const": "formatNumber"
1582
1582
  },
1583
1583
  "args": {
@@ -1603,7 +1603,7 @@
1603
1603
  }
1604
1604
  },
1605
1605
  "required": [
1606
- "call",
1606
+ "@call",
1607
1607
  "args"
1608
1608
  ],
1609
1609
  "returnType": "string"
@@ -1612,7 +1612,7 @@
1612
1612
  "type": "object",
1613
1613
  "description": "Writes an amount of money, with the symbol and the placement that language uses.",
1614
1614
  "properties": {
1615
- "call": {
1615
+ "@call": {
1616
1616
  "const": "formatCurrency"
1617
1617
  },
1618
1618
  "args": {
@@ -1643,7 +1643,7 @@
1643
1643
  }
1644
1644
  },
1645
1645
  "required": [
1646
- "call",
1646
+ "@call",
1647
1647
  "args"
1648
1648
  ],
1649
1649
  "returnType": "string"
@@ -1652,7 +1652,7 @@
1652
1652
  "type": "object",
1653
1653
  "description": "Writes a date or a time through a pattern. The names of months and weekdays are written in the language the renderer was built for, and the pattern decides their order, so write one in the order the reader's language uses.",
1654
1654
  "properties": {
1655
- "call": {
1655
+ "@call": {
1656
1656
  "const": "formatDate"
1657
1657
  },
1658
1658
  "args": {
@@ -1675,7 +1675,7 @@
1675
1675
  }
1676
1676
  },
1677
1677
  "required": [
1678
- "call",
1678
+ "@call",
1679
1679
  "args"
1680
1680
  ],
1681
1681
  "returnType": "string"
@@ -1684,7 +1684,7 @@
1684
1684
  "type": "object",
1685
1685
  "description": "Picks the wording that goes with a count, by the plural category of the language the renderer was built for. English needs `one` and `other`; other languages use up to six categories, and `other` is the one that is always required.",
1686
1686
  "properties": {
1687
- "call": {
1687
+ "@call": {
1688
1688
  "const": "pluralize"
1689
1689
  },
1690
1690
  "args": {
@@ -1721,7 +1721,7 @@
1721
1721
  }
1722
1722
  },
1723
1723
  "required": [
1724
- "call",
1724
+ "@call",
1725
1725
  "args"
1726
1726
  ],
1727
1727
  "returnType": "string"
@@ -1730,7 +1730,7 @@
1730
1730
  "type": "object",
1731
1731
  "description": "Opens an address. It is an action rather than a value, and it is the renderer that decides whether a new tab is involved.",
1732
1732
  "properties": {
1733
- "call": {
1733
+ "@call": {
1734
1734
  "const": "openUrl"
1735
1735
  },
1736
1736
  "args": {
@@ -1747,7 +1747,7 @@
1747
1747
  }
1748
1748
  },
1749
1749
  "required": [
1750
- "call",
1750
+ "@call",
1751
1751
  "args"
1752
1752
  ],
1753
1753
  "returnType": "void",
@@ -1758,7 +1758,7 @@
1758
1758
  "type": "object",
1759
1759
  "description": "True when every one of two or more values is.",
1760
1760
  "properties": {
1761
- "call": {
1761
+ "@call": {
1762
1762
  "const": "and"
1763
1763
  },
1764
1764
  "args": {
@@ -1779,7 +1779,7 @@
1779
1779
  }
1780
1780
  },
1781
1781
  "required": [
1782
- "call",
1782
+ "@call",
1783
1783
  "args"
1784
1784
  ],
1785
1785
  "returnType": "boolean"
@@ -1788,7 +1788,7 @@
1788
1788
  "type": "object",
1789
1789
  "description": "True when any one of two or more values is.",
1790
1790
  "properties": {
1791
- "call": {
1791
+ "@call": {
1792
1792
  "const": "or"
1793
1793
  },
1794
1794
  "args": {
@@ -1809,7 +1809,7 @@
1809
1809
  }
1810
1810
  },
1811
1811
  "required": [
1812
- "call",
1812
+ "@call",
1813
1813
  "args"
1814
1814
  ],
1815
1815
  "returnType": "boolean"
@@ -1818,7 +1818,7 @@
1818
1818
  "type": "object",
1819
1819
  "description": "The opposite.",
1820
1820
  "properties": {
1821
- "call": {
1821
+ "@call": {
1822
1822
  "const": "not"
1823
1823
  },
1824
1824
  "args": {
@@ -1835,7 +1835,7 @@
1835
1835
  }
1836
1836
  },
1837
1837
  "required": [
1838
- "call",
1838
+ "@call",
1839
1839
  "args"
1840
1840
  ],
1841
1841
  "returnType": "boolean"
@@ -1,21 +1,28 @@
1
1
  import type { ReactComponentImplementation } from '@a2ui/react/v0_9';
2
- export declare const A2uiFlex: ReactComponentImplementation;
3
- export declare const A2uiCard: ReactComponentImplementation;
4
- export declare const A2uiDivider: ReactComponentImplementation;
5
- export declare const A2uiAlert: ReactComponentImplementation;
6
- export declare const A2uiTypography: ReactComponentImplementation;
7
- export declare const A2uiImage: ReactComponentImplementation;
8
- export declare const A2uiChip: ReactComponentImplementation;
9
- export declare const A2uiAvatar: ReactComponentImplementation;
10
- export declare const A2uiStatistic: ReactComponentImplementation;
11
- export declare const A2uiDataList: ReactComponentImplementation;
12
- export declare const A2uiButton: ReactComponentImplementation;
13
- export declare const A2uiTextField: ReactComponentImplementation;
14
- export declare const A2uiNumberField: ReactComponentImplementation;
15
- export declare const A2uiCheckbox: ReactComponentImplementation;
16
- export declare const A2uiSwitch: ReactComponentImplementation;
17
- export declare const A2uiRadioGroup: ReactComponentImplementation;
18
- export declare const A2uiSelect: ReactComponentImplementation;
19
- export declare const A2uiSlider: ReactComponentImplementation;
20
- /** Every implementation, in the order the catalog lists them. */
2
+ import { type ProtocolVersion } from './schema.js';
3
+ export declare const A2uiFlex: ReactComponentImplementation<import("zod").ZodTypeAny>;
4
+ export declare const A2uiCard: ReactComponentImplementation<import("zod").ZodTypeAny>;
5
+ export declare const A2uiDivider: ReactComponentImplementation<import("zod").ZodTypeAny>;
6
+ export declare const A2uiAlert: ReactComponentImplementation<import("zod").ZodTypeAny>;
7
+ export declare const A2uiTypography: ReactComponentImplementation<import("zod").ZodTypeAny>;
8
+ export declare const A2uiImage: ReactComponentImplementation<import("zod").ZodTypeAny>;
9
+ export declare const A2uiChip: ReactComponentImplementation<import("zod").ZodTypeAny>;
10
+ export declare const A2uiAvatar: ReactComponentImplementation<import("zod").ZodTypeAny>;
11
+ export declare const A2uiStatistic: ReactComponentImplementation<import("zod").ZodTypeAny>;
12
+ export declare const A2uiDataList: ReactComponentImplementation<import("zod").ZodTypeAny>;
13
+ export declare const A2uiButton: ReactComponentImplementation<import("zod").ZodTypeAny>;
14
+ export declare const A2uiTextField: ReactComponentImplementation<import("zod").ZodTypeAny>;
15
+ export declare const A2uiNumberField: ReactComponentImplementation<import("zod").ZodTypeAny>;
16
+ export declare const A2uiCheckbox: ReactComponentImplementation<import("zod").ZodTypeAny>;
17
+ export declare const A2uiSwitch: ReactComponentImplementation<import("zod").ZodTypeAny>;
18
+ export declare const A2uiRadioGroup: ReactComponentImplementation<import("zod").ZodTypeAny>;
19
+ export declare const A2uiSelect: ReactComponentImplementation<import("zod").ZodTypeAny>;
20
+ export declare const A2uiSlider: ReactComponentImplementation<import("zod").ZodTypeAny>;
21
+ /**
22
+ * Every implementation, in the order the catalog lists them, with the schemas
23
+ * of A2UI v1.0 — the version the catalog is written against. A v0.9 catalog
24
+ * draws the same views through `componentsFor('v0.9')`.
25
+ */
21
26
  export declare const nebaComponents: ReactComponentImplementation[];
27
+ /** The eighteen implementations, with the schemas of one protocol version. */
28
+ export declare function componentsFor(version: ProtocolVersion): ReactComponentImplementation[];
@@ -1 +1 @@
1
- "use client";import{jsx as e,Fragment as i,jsxs as t}from"react/jsx-runtime";import*as r from"react";import{createComponentImplementation as o}from"@a2ui/react/v0_9";import{Alert as l}from"../components/alert/Alert.js";import{Avatar as n}from"../components/avatar/Avatar.js";import{Button as s}from"../components/button/Button.js";import{Card as a}from"../components/card/Card.js";import{Checkbox as d}from"../components/checkbox/Checkbox.js";import{Chip as c}from"../components/chip/Chip.js";import{DataList as p,DataListItem as u}from"../components/data-list/DataList.js";import{Divider as m}from"../components/divider/Divider.js";import{Flex as b}from"../components/flex/Flex.js";import{Image as h}from"../components/image/Image.js";import{NumberField as v}from"../components/number-field/NumberField.js";import{Radio as y,RadioGroup as A}from"../components/radio-group/RadioGroup.js";import{Select as x}from"../components/select/Select.js";import{Slider as f}from"../components/slider/Slider.js";import{Statistic as g}from"../components/statistic/Statistic.js";import{Switch as C}from"../components/switch/Switch.js";import{TextField as z}from"../components/text-field/TextField.js";import{Typography as j}from"../components/typography/Typography.js";import S from"./adapter-catalog.json"with{type:"json"};import{componentSchema as k}from"./schema.js";function Children({list:t,buildChild:o}){if(!Array.isArray(t))return null;const l=new Map;return e(i,{children:t.map(i=>{const t="string"==typeof i?i:i.id,n="string"==typeof i?void 0:i.basePath,s=void 0===n?t:`${t}@${n}`,a=l.get(s)??0;return l.set(s,a+1),e(r.Fragment,{children:o(t,n)},0===a?s:`${s}#${a}`)})})}function F(i){const t=r.useId(),o=i.accessibility?.label||void 0,l=i.accessibility?.description||void 0;return{label:o,describedBy:l?t:void 0,note:l?e("span",{id:t,hidden:!0,children:l}):null}}function w(e,i){const[t,o]=r.useState(e),[l,n]=r.useState(e);return Object.is(e,l)||(n(e),o(e)),[t,e=>{o(e),i?.(e)}]}function V(e){return e.validationErrors?.[0]}function q(e,i){const t={name:e,schema:k(e,S.components[e])};return o(t,i)}export const A2uiFlex=q("Flex",({props:r,buildChild:o})=>{const l=r,n=F(l);return t(i,{children:[e(b,{role:n.label?"group":void 0,"aria-label":n.label,"aria-describedby":n.describedBy,direction:l.direction,spacing:l.spacing,justifyContent:l.justifyContent,alignItems:l.alignItems,wrap:l.wrap,children:e(Children,{list:l.children,buildChild:o})}),n.note]})});export const A2uiCard=q("Card",({props:r,buildChild:o})=>{const l=r,n=F(l);return t(i,{children:[e(a,{role:n.label?"group":void 0,"aria-label":n.label,"aria-describedby":n.describedBy,title:l.title,subtitle:l.subtitle,variant:l.variant,size:l.size,color:l.color,density:l.density,elevation:l.elevation,children:l.child?o(l.child):null}),n.note]})});export const A2uiDivider=q("Divider",({props:i})=>{const t=i;return e(m,{orientation:t.orientation,size:t.size,children:t.label})});export const A2uiAlert=q("Alert",({props:i,buildChild:t})=>{const r=i;return e(l,{title:r.title,color:r.color,variant:r.variant,size:r.size,density:r.density,children:r.child?t(r.child):null})});export const A2uiTypography=q("Typography",({props:i})=>{const t=i;return e(j,{level:t.level,weight:t.weight,align:t.align,color:t.color,lines:t.lines,children:t.text})});export const A2uiImage=q("Image",({props:r})=>{const o=r,l=F(o);return t(i,{children:[e(h,{src:o.src??"",alt:o.alt??"","aria-describedby":l.describedBy,ratio:o.ratio,fit:o.fit,rounded:o.rounded}),l.note]})});export const A2uiChip=q("Chip",({props:i})=>{const t=i;return e(c,{variant:t.variant,size:t.size,color:t.color,count:t.count,selected:t.selected,children:t.text})});export const A2uiAvatar=q("Avatar",({props:i})=>{const t=i;return e(n,{src:t.src,name:t.name,shape:t.shape,size:t.size,color:t.color})});export const A2uiStatistic=q("Statistic",({props:i})=>{const t=i,r=t.value??"",o=void 0!==t.previousValue&&/^[-+]?(\d+\.?\d*|\.\d+)(e[-+]?\d+)?$/i.test(r.trim())?Number(r):r;return e(g,{label:t.label,value:o,unit:t.unit,caption:t.caption,previousValue:t.previousValue,delta:t.delta,betterWhen:t.betterWhen,size:t.size,align:t.align})});export const A2uiDataList=q("DataList",({props:i})=>{const t=i;return e(p,{orientation:t.orientation,dividers:t.dividers,size:t.size,density:t.density,children:(t.items??[]).map((i,t)=>e(u,{label:i.label,children:i.value},`${i.label}-${t}`))})});export const A2uiButton=q("Button",({props:r})=>{const o=r,l=F(o);return t(i,{children:[e(s,{"aria-label":o.text?void 0:l.label,"aria-describedby":l.describedBy,onClick:o.action,variant:o.variant,size:o.size,color:o.color,density:o.density,elevation:o.elevation,loading:o.loading,disabled:o.disabled||!1===o.isValid,fullWidth:o.fullWidth,children:o.text}),l.note]})});export const A2uiTextField=q("TextField",({props:i})=>{const t=i,[r,o]=w(t.value??"",t.setValue);return e(z,{label:t.label,value:r,onChange:e=>o(e.target.value),placeholder:t.placeholder,description:t.description,error:V(t),multiline:t.multiline,rows:t.rows,variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,readOnly:t.readOnly,fullWidth:t.fullWidth})});export const A2uiNumberField=q("NumberField",({props:i})=>{const t=i,[r,o]=w(t.value??null,t.setValue);return e(v,{label:t.label,value:r,onValueChange:o,description:t.description,error:V(t),min:t.min,max:t.max,step:t.step,variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,readOnly:t.readOnly})});export const A2uiCheckbox=q("Checkbox",({props:i})=>{const t=i,[r,o]=w(t.checked??!1,t.setChecked);return e(d,{label:t.label,checked:r,onCheckedChange:o,description:t.description,error:V(t),size:t.size,color:t.color,required:t.required,disabled:t.disabled})});export const A2uiSwitch=q("Switch",({props:i})=>{const t=i,[r,o]=w(t.checked??!1,t.setChecked);return e(C,{label:t.label,checked:r,onCheckedChange:o,description:t.description,size:t.size,color:t.color,disabled:t.disabled})});export const A2uiRadioGroup=q("RadioGroup",({props:i})=>{const t=i,[r,o]=w(t.value??null,e=>t.setValue?.(e??""));return e(A,{label:t.label,value:r,onValueChange:e=>o(String(e)),description:t.description,error:V(t),orientation:t.orientation,size:t.size,color:t.color,required:t.required,disabled:t.disabled,children:(t.options??[]).map(i=>e(y,{value:i.value,label:i.label??i.value,description:i.description,disabled:i.disabled},i.value))})});export const A2uiSelect=q("Select",({props:i})=>{const t=i,[r,o]=w(t.value??null,e=>t.setValue?.(e??""));return e(x,{label:t.label,value:r,onValueChange:e=>o(null===e?null:String(e)),placeholder:t.placeholder,items:(t.options??[]).map(e=>({value:e.value,label:e.label,group:e.group,disabled:e.disabled})),description:t.description,error:V(t),variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,fullWidth:t.fullWidth})});export const A2uiSlider=q("Slider",({props:i})=>{const t=i,[r,o]=w(t.value??t.min??0,t.setValue);return e(f,{label:t.label,value:r,onValueChange:e=>o(Array.isArray(e)?e[0]:e),min:t.min,max:t.max,step:t.step,description:t.description,size:t.size,color:t.color,disabled:t.disabled})});export const nebaComponents=[A2uiFlex,A2uiCard,A2uiDivider,A2uiTypography,A2uiImage,A2uiChip,A2uiAvatar,A2uiStatistic,A2uiDataList,A2uiAlert,A2uiButton,A2uiTextField,A2uiNumberField,A2uiCheckbox,A2uiSwitch,A2uiRadioGroup,A2uiSelect,A2uiSlider];
1
+ "use client";import{jsx as e,Fragment as i,jsxs as t}from"react/jsx-runtime";import*as r from"react";import{createComponentImplementation as o}from"@a2ui/react/v0_9";import{Alert as n}from"../components/alert/Alert.js";import{Avatar as l}from"../components/avatar/Avatar.js";import{Button as s}from"../components/button/Button.js";import{Card as a}from"../components/card/Card.js";import{Checkbox as d}from"../components/checkbox/Checkbox.js";import{Chip as c}from"../components/chip/Chip.js";import{DataList as p,DataListItem as u}from"../components/data-list/DataList.js";import{Divider as m}from"../components/divider/Divider.js";import{Flex as b}from"../components/flex/Flex.js";import{Image as h}from"../components/image/Image.js";import{NumberField as v}from"../components/number-field/NumberField.js";import{Radio as y,RadioGroup as A}from"../components/radio-group/RadioGroup.js";import{Select as f}from"../components/select/Select.js";import{Slider as x}from"../components/slider/Slider.js";import{Statistic as g}from"../components/statistic/Statistic.js";import{Switch as C}from"../components/switch/Switch.js";import{TextField as z}from"../components/text-field/TextField.js";import{Typography as j}from"../components/typography/Typography.js";import S from"./adapter-catalog.json"with{type:"json"};import{componentSchema as F}from"./schema.js";function Children({list:t,buildChild:o}){if(!Array.isArray(t))return null;const n=new Map;return e(i,{children:t.map(i=>{const t="string"==typeof i?i:i.id,l="string"==typeof i?void 0:i.basePath,s=void 0===l?t:`${t}@${l}`,a=n.get(s)??0;return n.set(s,a+1),e(r.Fragment,{children:o(t,l)},0===a?s:`${s}#${a}`)})})}function k(i){const t=r.useId(),o=i.accessibility?.label||void 0,n=i.accessibility?.description||void 0;return{label:o,describedBy:n?t:void 0,note:n?e("span",{id:t,hidden:!0,children:n}):null}}function w(e,i){const[t,o]=r.useState(e),[n,l]=r.useState(e);return Object.is(e,n)||(l(e),o(e)),[t,e=>{o(e),i?.(e)}]}function V(e){return e.validationErrors?.[0]}const q=new Map;function B(e,i,t){const r={name:e,schema:F(e,S.components[e],t)};return o(r,i)}function D(e,i){return q.set(e,i),B(e,i,"v1.0")}export const A2uiFlex=D("Flex",({props:r,buildChild:o})=>{const n=r,l=k(n);return t(i,{children:[e(b,{role:l.label?"group":void 0,"aria-label":l.label,"aria-describedby":l.describedBy,direction:n.direction,spacing:n.spacing,justifyContent:n.justifyContent,alignItems:n.alignItems,wrap:n.wrap,children:e(Children,{list:n.children,buildChild:o})}),l.note]})});export const A2uiCard=D("Card",({props:r,buildChild:o})=>{const n=r,l=k(n);return t(i,{children:[e(a,{role:l.label?"group":void 0,"aria-label":l.label,"aria-describedby":l.describedBy,title:n.title,subtitle:n.subtitle,variant:n.variant,size:n.size,color:n.color,density:n.density,elevation:n.elevation,children:n.child?o(n.child):null}),l.note]})});export const A2uiDivider=D("Divider",({props:i})=>{const t=i;return e(m,{orientation:t.orientation,size:t.size,children:t.label})});export const A2uiAlert=D("Alert",({props:i,buildChild:t})=>{const r=i;return e(n,{title:r.title,color:r.color,variant:r.variant,size:r.size,density:r.density,children:r.child?t(r.child):null})});export const A2uiTypography=D("Typography",({props:i})=>{const t=i;return e(j,{level:t.level,weight:t.weight,align:t.align,color:t.color,lines:t.lines,children:t.text})});export const A2uiImage=D("Image",({props:r})=>{const o=r,n=k(o);return t(i,{children:[e(h,{src:o.src??"",alt:o.alt??"","aria-describedby":n.describedBy,ratio:o.ratio,fit:o.fit,rounded:o.rounded}),n.note]})});export const A2uiChip=D("Chip",({props:i})=>{const t=i;return e(c,{variant:t.variant,size:t.size,color:t.color,count:t.count,selected:t.selected,children:t.text})});export const A2uiAvatar=D("Avatar",({props:i})=>{const t=i;return e(l,{src:t.src,name:t.name,shape:t.shape,size:t.size,color:t.color})});export const A2uiStatistic=D("Statistic",({props:i})=>{const t=i,r=t.value??"",o=void 0!==t.previousValue&&/^[-+]?(\d+\.?\d*|\.\d+)(e[-+]?\d+)?$/i.test(r.trim())?Number(r):r;return e(g,{label:t.label,value:o,unit:t.unit,caption:t.caption,previousValue:t.previousValue,delta:t.delta,betterWhen:t.betterWhen,size:t.size,align:t.align})});export const A2uiDataList=D("DataList",({props:i})=>{const t=i;return e(p,{orientation:t.orientation,dividers:t.dividers,size:t.size,density:t.density,children:(t.items??[]).map((i,t)=>e(u,{label:i.label,children:i.value},`${i.label}-${t}`))})});export const A2uiButton=D("Button",({props:r})=>{const o=r,n=k(o);return t(i,{children:[e(s,{"aria-label":o.text?void 0:n.label,"aria-describedby":n.describedBy,onClick:o.action,variant:o.variant,size:o.size,color:o.color,density:o.density,elevation:o.elevation,loading:o.loading,disabled:o.disabled||!1===o.isValid,fullWidth:o.fullWidth,children:o.text}),n.note]})});export const A2uiTextField=D("TextField",({props:i})=>{const t=i,[r,o]=w(t.value??"",t.setValue);return e(z,{label:t.label,value:r,onChange:e=>o(e.target.value),placeholder:t.placeholder,description:t.description,error:V(t),multiline:t.multiline,rows:t.rows,variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,readOnly:t.readOnly,fullWidth:t.fullWidth})});export const A2uiNumberField=D("NumberField",({props:i})=>{const t=i,[r,o]=w(t.value??null,t.setValue);return e(v,{label:t.label,value:r,onValueChange:o,description:t.description,error:V(t),min:t.min,max:t.max,step:t.step,variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,readOnly:t.readOnly})});export const A2uiCheckbox=D("Checkbox",({props:i})=>{const t=i,[r,o]=w(t.checked??!1,t.setChecked);return e(d,{label:t.label,checked:r,onCheckedChange:o,description:t.description,error:V(t),size:t.size,color:t.color,required:t.required,disabled:t.disabled})});export const A2uiSwitch=D("Switch",({props:i})=>{const t=i,[r,o]=w(t.checked??!1,t.setChecked);return e(C,{label:t.label,checked:r,onCheckedChange:o,description:t.description,size:t.size,color:t.color,disabled:t.disabled})});export const A2uiRadioGroup=D("RadioGroup",({props:i})=>{const t=i,[r,o]=w(t.value??null,e=>t.setValue?.(e??""));return e(A,{label:t.label,value:r,onValueChange:e=>o(String(e)),description:t.description,error:V(t),orientation:t.orientation,size:t.size,color:t.color,required:t.required,disabled:t.disabled,children:(t.options??[]).map(i=>e(y,{value:i.value,label:i.label??i.value,description:i.description,disabled:i.disabled},i.value))})});export const A2uiSelect=D("Select",({props:i})=>{const t=i,[r,o]=w(t.value??null,e=>t.setValue?.(e??""));return e(f,{label:t.label,value:r,onValueChange:e=>o(null===e?null:String(e)),placeholder:t.placeholder,items:(t.options??[]).map(e=>({value:e.value,label:e.label,group:e.group,disabled:e.disabled})),description:t.description,error:V(t),variant:t.variant,size:t.size,color:t.color,density:t.density,required:t.required,disabled:t.disabled,fullWidth:t.fullWidth})});export const A2uiSlider=D("Slider",({props:i})=>{const t=i,[r,o]=w(t.value??t.min??0,t.setValue);return e(x,{label:t.label,value:r,onValueChange:e=>o(Array.isArray(e)?e[0]:e),min:t.min,max:t.max,step:t.step,description:t.description,size:t.size,color:t.color,disabled:t.disabled})});export const nebaComponents=[A2uiFlex,A2uiCard,A2uiDivider,A2uiTypography,A2uiImage,A2uiChip,A2uiAvatar,A2uiStatistic,A2uiDataList,A2uiAlert,A2uiButton,A2uiTextField,A2uiNumberField,A2uiCheckbox,A2uiSwitch,A2uiRadioGroup,A2uiSelect,A2uiSlider];let T;export function componentsFor(e){return"v1.0"===e?nebaComponents:T??=nebaComponents.map(i=>B(i.name,q.get(i.name),e))}