@derelicious/ds 0.0.0-stage → 0.2.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/CHANGELOG.md +22 -0
- package/LICENSE +21 -0
- package/README.md +147 -2
- package/dist/a2ui/Surface.css +140 -0
- package/dist/a2ui/Surface.css.d.ts +22 -0
- package/dist/a2ui/Surface.css.js +29 -0
- package/dist/a2ui/Surface.d.ts +56 -0
- package/dist/a2ui/Surface.js +1411 -0
- package/dist/a2ui/catalog.d.ts +93 -0
- package/dist/a2ui/catalog.js +1666 -0
- package/dist/a2ui/clientMessages.d.ts +36 -0
- package/dist/a2ui/clientMessages.js +65 -0
- package/dist/a2ui/examples.d.ts +8 -0
- package/dist/a2ui/examples.js +877 -0
- package/dist/a2ui/functions.d.ts +55 -0
- package/dist/a2ui/functions.js +341 -0
- package/dist/a2ui/ids.d.ts +5 -0
- package/dist/a2ui/ids.js +7 -0
- package/dist/a2ui/index.d.ts +16 -0
- package/dist/a2ui/index.js +12 -0
- package/dist/a2ui/jsonl.d.ts +41 -0
- package/dist/a2ui/jsonl.js +127 -0
- package/dist/a2ui/links.d.ts +17 -0
- package/dist/a2ui/links.js +29 -0
- package/dist/a2ui/pointer.d.ts +22 -0
- package/dist/a2ui/pointer.js +85 -0
- package/dist/a2ui/processor.d.ts +126 -0
- package/dist/a2ui/processor.js +497 -0
- package/dist/a2ui/react.d.ts +2 -0
- package/dist/a2ui/react.js +1 -0
- package/dist/a2ui/toTsx.d.ts +9 -0
- package/dist/a2ui/toTsx.js +1389 -0
- package/dist/a2ui/types.d.ts +96 -0
- package/dist/a2ui/validate.d.ts +90 -0
- package/dist/a2ui/validate.js +750 -0
- package/dist/a2ui-catalog.json +4369 -0
- package/dist/a2ui-conformance.json +71 -0
- package/dist/components/Accordion/Accordion.css +58 -0
- package/dist/components/Accordion/Accordion.css.d.ts +5 -0
- package/dist/components/Accordion/Accordion.css.js +10 -0
- package/dist/components/Accordion/Accordion.d.ts +23 -0
- package/dist/components/Accordion/Accordion.docs.d.ts +19 -0
- package/dist/components/Accordion/Accordion.docs.js +43 -0
- package/dist/components/Accordion/Accordion.js +55 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/AiLabel/AiLabel.css +70 -0
- package/dist/components/AiLabel/AiLabel.css.d.ts +8 -0
- package/dist/components/AiLabel/AiLabel.css.js +11 -0
- package/dist/components/AiLabel/AiLabel.d.ts +29 -0
- package/dist/components/AiLabel/AiLabel.docs.d.ts +19 -0
- package/dist/components/AiLabel/AiLabel.docs.js +51 -0
- package/dist/components/AiLabel/AiLabel.js +41 -0
- package/dist/components/AiLabel/index.d.ts +1 -0
- package/dist/components/AiLabel/index.js +1 -0
- package/dist/components/Alert/Alert.css +76 -0
- package/dist/components/Alert/Alert.css.d.ts +9 -0
- package/dist/components/Alert/Alert.css.js +23 -0
- package/dist/components/Alert/Alert.d.ts +21 -0
- package/dist/components/Alert/Alert.docs.d.ts +19 -0
- package/dist/components/Alert/Alert.docs.js +57 -0
- package/dist/components/Alert/Alert.js +55 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Alert/index.js +1 -0
- package/dist/components/Avatar/Avatar.css +42 -0
- package/dist/components/Avatar/Avatar.css.d.ts +3 -0
- package/dist/components/Avatar/Avatar.css.js +12 -0
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.docs.d.ts +19 -0
- package/dist/components/Avatar/Avatar.docs.js +43 -0
- package/dist/components/Avatar/Avatar.js +31 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +1 -0
- package/dist/components/Avatar/initials.d.ts +2 -0
- package/dist/components/Avatar/initials.js +8 -0
- package/dist/components/Badge/Badge.css +63 -0
- package/dist/components/Badge/Badge.css.d.ts +5 -0
- package/dist/components/Badge/Badge.css.js +16 -0
- package/dist/components/Badge/Badge.d.ts +15 -0
- package/dist/components/Badge/Badge.docs.d.ts +19 -0
- package/dist/components/Badge/Badge.docs.js +52 -0
- package/dist/components/Badge/Badge.js +24 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.css +40 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.css.d.ts +5 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.css.js +10 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.docs.d.ts +19 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.docs.js +38 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +48 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/index.js +1 -0
- package/dist/components/Button/Button.css +101 -0
- package/dist/components/Button/Button.css.d.ts +72 -0
- package/dist/components/Button/Button.css.js +35 -0
- package/dist/components/Button/Button.d.ts +53 -0
- package/dist/components/Button/Button.docs.d.ts +19 -0
- package/dist/components/Button/Button.docs.js +71 -0
- package/dist/components/Button/Button.js +68 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Card/Card.css +122 -0
- package/dist/components/Card/Card.css.d.ts +12 -0
- package/dist/components/Card/Card.css.js +25 -0
- package/dist/components/Card/Card.d.ts +306 -0
- package/dist/components/Card/Card.docs.d.ts +19 -0
- package/dist/components/Card/Card.docs.js +65 -0
- package/dist/components/Card/Card.js +53 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +1 -0
- package/dist/components/ChatMessage/ChatMessage.css +56 -0
- package/dist/components/ChatMessage/ChatMessage.css.d.ts +7 -0
- package/dist/components/ChatMessage/ChatMessage.css.js +15 -0
- package/dist/components/ChatMessage/ChatMessage.d.ts +35 -0
- package/dist/components/ChatMessage/ChatMessage.docs.d.ts +19 -0
- package/dist/components/ChatMessage/ChatMessage.docs.js +45 -0
- package/dist/components/ChatMessage/ChatMessage.js +49 -0
- package/dist/components/ChatMessage/index.d.ts +1 -0
- package/dist/components/ChatMessage/index.js +1 -0
- package/dist/components/Checkbox/Checkbox.css +70 -0
- package/dist/components/Checkbox/Checkbox.css.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.css.js +6 -0
- package/dist/components/Checkbox/Checkbox.d.ts +28 -0
- package/dist/components/Checkbox/Checkbox.docs.d.ts +19 -0
- package/dist/components/Checkbox/Checkbox.docs.js +53 -0
- package/dist/components/Checkbox/Checkbox.js +63 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Code/Code.css +12 -0
- package/dist/components/Code/Code.css.d.ts +1 -0
- package/dist/components/Code/Code.css.js +5 -0
- package/dist/components/Code/Code.d.ts +7 -0
- package/dist/components/Code/Code.docs.d.ts +19 -0
- package/dist/components/Code/Code.docs.js +26 -0
- package/dist/components/Code/Code.js +12 -0
- package/dist/components/Code/index.d.ts +1 -0
- package/dist/components/Code/index.js +1 -0
- package/dist/components/CodeBlock/CodeBlock.css +76 -0
- package/dist/components/CodeBlock/CodeBlock.css.d.ts +12 -0
- package/dist/components/CodeBlock/CodeBlock.css.js +21 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +19 -0
- package/dist/components/CodeBlock/CodeBlock.docs.d.ts +19 -0
- package/dist/components/CodeBlock/CodeBlock.docs.js +47 -0
- package/dist/components/CodeBlock/CodeBlock.js +82 -0
- package/dist/components/CodeBlock/highlight.d.ts +28 -0
- package/dist/components/CodeBlock/highlight.js +118 -0
- package/dist/components/CodeBlock/index.d.ts +1 -0
- package/dist/components/CodeBlock/index.js +1 -0
- package/dist/components/Container/Container.css +21 -0
- package/dist/components/Container/Container.css.d.ts +3 -0
- package/dist/components/Container/Container.css.js +12 -0
- package/dist/components/Container/Container.d.ts +295 -0
- package/dist/components/Container/Container.docs.d.ts +19 -0
- package/dist/components/Container/Container.docs.js +31 -0
- package/dist/components/Container/Container.js +12 -0
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.js +1 -0
- package/dist/components/Dialog/Dialog.css +94 -0
- package/dist/components/Dialog/Dialog.css.d.ts +9 -0
- package/dist/components/Dialog/Dialog.css.js +17 -0
- package/dist/components/Dialog/Dialog.d.ts +29 -0
- package/dist/components/Dialog/Dialog.docs.d.ts +19 -0
- package/dist/components/Dialog/Dialog.docs.js +50 -0
- package/dist/components/Dialog/Dialog.js +90 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +1 -0
- package/dist/components/Divider/Divider.css +41 -0
- package/dist/components/Divider/Divider.css.d.ts +6 -0
- package/dist/components/Divider/Divider.css.js +16 -0
- package/dist/components/Divider/Divider.d.ts +11 -0
- package/dist/components/Divider/Divider.docs.d.ts +19 -0
- package/dist/components/Divider/Divider.docs.js +43 -0
- package/dist/components/Divider/Divider.js +30 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +1 -0
- package/dist/components/Grid/Grid.css +11 -0
- package/dist/components/Grid/Grid.css.d.ts +8 -0
- package/dist/components/Grid/Grid.css.js +8 -0
- package/dist/components/Grid/Grid.d.ts +18 -0
- package/dist/components/Grid/Grid.docs.d.ts +19 -0
- package/dist/components/Grid/Grid.docs.js +41 -0
- package/dist/components/Grid/Grid.js +22 -0
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Grid/index.js +1 -0
- package/dist/components/Heading/Heading.css +44 -0
- package/dist/components/Heading/Heading.css.d.ts +3 -0
- package/dist/components/Heading/Heading.css.js +17 -0
- package/dist/components/Heading/Heading.d.ts +298 -0
- package/dist/components/Heading/Heading.docs.d.ts +19 -0
- package/dist/components/Heading/Heading.docs.js +48 -0
- package/dist/components/Heading/Heading.js +20 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/Heading/index.js +1 -0
- package/dist/components/Icon/Icon.css +25 -0
- package/dist/components/Icon/Icon.css.d.ts +4 -0
- package/dist/components/Icon/Icon.css.js +13 -0
- package/dist/components/Icon/Icon.d.ts +16 -0
- package/dist/components/Icon/Icon.docs.d.ts +19 -0
- package/dist/components/Icon/Icon.docs.js +56 -0
- package/dist/components/Icon/Icon.js +25 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/index.js +1 -0
- package/dist/components/IconButton/IconButton.css +70 -0
- package/dist/components/IconButton/IconButton.css.d.ts +57 -0
- package/dist/components/IconButton/IconButton.css.js +27 -0
- package/dist/components/IconButton/IconButton.d.ts +46 -0
- package/dist/components/IconButton/IconButton.docs.d.ts +19 -0
- package/dist/components/IconButton/IconButton.docs.js +48 -0
- package/dist/components/IconButton/IconButton.js +44 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/index.js +1 -0
- package/dist/components/Image/Image.css +53 -0
- package/dist/components/Image/Image.css.d.ts +7 -0
- package/dist/components/Image/Image.css.js +18 -0
- package/dist/components/Image/Image.d.ts +23 -0
- package/dist/components/Image/Image.docs.d.ts +19 -0
- package/dist/components/Image/Image.docs.js +48 -0
- package/dist/components/Image/Image.js +75 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Image/index.js +1 -0
- package/dist/components/Inline/Inline.css +38 -0
- package/dist/components/Inline/Inline.css.d.ts +4 -0
- package/dist/components/Inline/Inline.css.js +18 -0
- package/dist/components/Inline/Inline.d.ts +300 -0
- package/dist/components/Inline/Inline.docs.d.ts +19 -0
- package/dist/components/Inline/Inline.docs.js +48 -0
- package/dist/components/Inline/Inline.js +13 -0
- package/dist/components/Inline/index.d.ts +1 -0
- package/dist/components/Inline/index.js +1 -0
- package/dist/components/Link/Link.css +57 -0
- package/dist/components/Link/Link.css.d.ts +5 -0
- package/dist/components/Link/Link.css.js +14 -0
- package/dist/components/Link/Link.d.ts +19 -0
- package/dist/components/Link/Link.docs.d.ts +19 -0
- package/dist/components/Link/Link.docs.js +51 -0
- package/dist/components/Link/Link.js +39 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.js +1 -0
- package/dist/components/List/List.css +39 -0
- package/dist/components/List/List.css.d.ts +5 -0
- package/dist/components/List/List.css.js +14 -0
- package/dist/components/List/List.d.ts +294 -0
- package/dist/components/List/List.docs.d.ts +19 -0
- package/dist/components/List/List.docs.js +43 -0
- package/dist/components/List/List.js +25 -0
- package/dist/components/List/index.d.ts +1 -0
- package/dist/components/List/index.js +1 -0
- package/dist/components/Menu/Menu.css +65 -0
- package/dist/components/Menu/Menu.css.d.ts +5 -0
- package/dist/components/Menu/Menu.css.js +9 -0
- package/dist/components/Menu/Menu.d.ts +60 -0
- package/dist/components/Menu/Menu.docs.d.ts +19 -0
- package/dist/components/Menu/Menu.docs.js +53 -0
- package/dist/components/Menu/Menu.js +192 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Menu/index.js +1 -0
- package/dist/components/NavBar/NavBar.css +187 -0
- package/dist/components/NavBar/NavBar.css.d.ts +16 -0
- package/dist/components/NavBar/NavBar.css.js +19 -0
- package/dist/components/NavBar/NavBar.d.ts +31 -0
- package/dist/components/NavBar/NavBar.docs.d.ts +19 -0
- package/dist/components/NavBar/NavBar.docs.js +53 -0
- package/dist/components/NavBar/NavBar.js +110 -0
- package/dist/components/NavBar/index.d.ts +1 -0
- package/dist/components/NavBar/index.js +1 -0
- package/dist/components/Popover/Popover.css +28 -0
- package/dist/components/Popover/Popover.css.d.ts +3 -0
- package/dist/components/Popover/Popover.css.js +8 -0
- package/dist/components/Popover/Popover.d.ts +40 -0
- package/dist/components/Popover/Popover.docs.d.ts +19 -0
- package/dist/components/Popover/Popover.docs.js +50 -0
- package/dist/components/Popover/Popover.js +69 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +1 -0
- package/dist/components/Progress/Progress.css +106 -0
- package/dist/components/Progress/Progress.css.d.ts +10 -0
- package/dist/components/Progress/Progress.css.js +24 -0
- package/dist/components/Progress/Progress.d.ts +23 -0
- package/dist/components/Progress/Progress.docs.d.ts +19 -0
- package/dist/components/Progress/Progress.docs.js +43 -0
- package/dist/components/Progress/Progress.js +54 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/Progress/index.js +1 -0
- package/dist/components/PromptInput/PromptInput.css +25 -0
- package/dist/components/PromptInput/PromptInput.css.d.ts +5 -0
- package/dist/components/PromptInput/PromptInput.css.js +8 -0
- package/dist/components/PromptInput/PromptInput.d.ts +65 -0
- package/dist/components/PromptInput/PromptInput.docs.d.ts +19 -0
- package/dist/components/PromptInput/PromptInput.docs.js +45 -0
- package/dist/components/PromptInput/PromptInput.js +91 -0
- package/dist/components/PromptInput/index.d.ts +1 -0
- package/dist/components/PromptInput/index.js +1 -0
- package/dist/components/Quote/Quote.css +31 -0
- package/dist/components/Quote/Quote.css.d.ts +5 -0
- package/dist/components/Quote/Quote.css.js +9 -0
- package/dist/components/Quote/Quote.d.ts +13 -0
- package/dist/components/Quote/Quote.docs.d.ts +19 -0
- package/dist/components/Quote/Quote.docs.js +30 -0
- package/dist/components/Quote/Quote.js +26 -0
- package/dist/components/Quote/index.d.ts +1 -0
- package/dist/components/Quote/index.js +1 -0
- package/dist/components/RadioGroup/RadioGroup.css +70 -0
- package/dist/components/RadioGroup/RadioGroup.css.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.css.js +12 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +32 -0
- package/dist/components/RadioGroup/RadioGroup.docs.d.ts +19 -0
- package/dist/components/RadioGroup/RadioGroup.docs.js +47 -0
- package/dist/components/RadioGroup/RadioGroup.js +85 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +1 -0
- package/dist/components/Select/Select.css +17 -0
- package/dist/components/Select/Select.css.d.ts +3 -0
- package/dist/components/Select/Select.css.js +7 -0
- package/dist/components/Select/Select.d.ts +26 -0
- package/dist/components/Select/Select.docs.d.ts +19 -0
- package/dist/components/Select/Select.docs.js +35 -0
- package/dist/components/Select/Select.js +57 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +1 -0
- package/dist/components/SideNav/SideNav.css +74 -0
- package/dist/components/SideNav/SideNav.css.d.ts +7 -0
- package/dist/components/SideNav/SideNav.css.js +12 -0
- package/dist/components/SideNav/SideNav.d.ts +23 -0
- package/dist/components/SideNav/SideNav.docs.d.ts +19 -0
- package/dist/components/SideNav/SideNav.docs.js +43 -0
- package/dist/components/SideNav/SideNav.js +55 -0
- package/dist/components/SideNav/index.d.ts +1 -0
- package/dist/components/SideNav/index.js +1 -0
- package/dist/components/Skeleton/Skeleton.css +45 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.css.js +11 -0
- package/dist/components/Skeleton/Skeleton.d.ts +25 -0
- package/dist/components/Skeleton/Skeleton.docs.d.ts +19 -0
- package/dist/components/Skeleton/Skeleton.docs.js +43 -0
- package/dist/components/Skeleton/Skeleton.js +27 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +1 -0
- package/dist/components/Spinner/Spinner.css +46 -0
- package/dist/components/Spinner/Spinner.css.d.ts +5 -0
- package/dist/components/Spinner/Spinner.css.js +13 -0
- package/dist/components/Spinner/Spinner.d.ts +24 -0
- package/dist/components/Spinner/Spinner.docs.d.ts +19 -0
- package/dist/components/Spinner/Spinner.docs.js +44 -0
- package/dist/components/Spinner/Spinner.js +46 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +1 -0
- package/dist/components/Stack/Stack.css +21 -0
- package/dist/components/Stack/Stack.css.d.ts +2 -0
- package/dist/components/Stack/Stack.css.js +10 -0
- package/dist/components/Stack/Stack.d.ts +296 -0
- package/dist/components/Stack/Stack.docs.d.ts +19 -0
- package/dist/components/Stack/Stack.docs.js +48 -0
- package/dist/components/Stack/Stack.js +13 -0
- package/dist/components/Stack/index.d.ts +1 -0
- package/dist/components/Stack/index.js +1 -0
- package/dist/components/Stat/Stat.css +59 -0
- package/dist/components/Stat/Stat.css.d.ts +13 -0
- package/dist/components/Stat/Stat.css.js +18 -0
- package/dist/components/Stat/Stat.d.ts +20 -0
- package/dist/components/Stat/Stat.docs.d.ts +19 -0
- package/dist/components/Stat/Stat.docs.js +52 -0
- package/dist/components/Stat/Stat.js +49 -0
- package/dist/components/Stat/index.d.ts +1 -0
- package/dist/components/Stat/index.js +1 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.css +46 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.css.d.ts +5 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.css.js +13 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.d.ts +22 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.docs.d.ts +19 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.docs.js +43 -0
- package/dist/components/StreamingIndicator/StreamingIndicator.js +31 -0
- package/dist/components/StreamingIndicator/index.d.ts +1 -0
- package/dist/components/StreamingIndicator/index.js +1 -0
- package/dist/components/Switch/Switch.css +89 -0
- package/dist/components/Switch/Switch.css.d.ts +4 -0
- package/dist/components/Switch/Switch.css.js +9 -0
- package/dist/components/Switch/Switch.d.ts +21 -0
- package/dist/components/Switch/Switch.docs.d.ts +19 -0
- package/dist/components/Switch/Switch.docs.js +36 -0
- package/dist/components/Switch/Switch.js +51 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +1 -0
- package/dist/components/TabBar/TabBar.css +94 -0
- package/dist/components/TabBar/TabBar.css.d.ts +7 -0
- package/dist/components/TabBar/TabBar.css.js +12 -0
- package/dist/components/TabBar/TabBar.d.ts +23 -0
- package/dist/components/TabBar/TabBar.docs.d.ts +19 -0
- package/dist/components/TabBar/TabBar.docs.js +43 -0
- package/dist/components/TabBar/TabBar.js +50 -0
- package/dist/components/TabBar/index.d.ts +1 -0
- package/dist/components/TabBar/index.js +1 -0
- package/dist/components/Table/Table.css +75 -0
- package/dist/components/Table/Table.css.d.ts +10 -0
- package/dist/components/Table/Table.css.js +22 -0
- package/dist/components/Table/Table.d.ts +32 -0
- package/dist/components/Table/Table.docs.d.ts +19 -0
- package/dist/components/Table/Table.docs.js +49 -0
- package/dist/components/Table/Table.js +69 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +1 -0
- package/dist/components/Tabs/Tabs.css +79 -0
- package/dist/components/Tabs/Tabs.css.d.ts +6 -0
- package/dist/components/Tabs/Tabs.css.js +14 -0
- package/dist/components/Tabs/Tabs.d.ts +33 -0
- package/dist/components/Tabs/Tabs.docs.d.ts +19 -0
- package/dist/components/Tabs/Tabs.docs.js +56 -0
- package/dist/components/Tabs/Tabs.js +90 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Tabs/index.js +1 -0
- package/dist/components/Tag/Tag.css +63 -0
- package/dist/components/Tag/Tag.css.d.ts +5 -0
- package/dist/components/Tag/Tag.css.js +10 -0
- package/dist/components/Tag/Tag.d.ts +13 -0
- package/dist/components/Tag/Tag.docs.d.ts +19 -0
- package/dist/components/Tag/Tag.docs.js +39 -0
- package/dist/components/Tag/Tag.js +35 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +1 -0
- package/dist/components/Text/Text.css +86 -0
- package/dist/components/Text/Text.css.d.ts +6 -0
- package/dist/components/Text/Text.css.js +39 -0
- package/dist/components/Text/Text.d.ts +310 -0
- package/dist/components/Text/Text.docs.d.ts +19 -0
- package/dist/components/Text/Text.docs.js +52 -0
- package/dist/components/Text/Text.js +12 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/Text/index.js +1 -0
- package/dist/components/TextArea/TextArea.css +8 -0
- package/dist/components/TextArea/TextArea.css.d.ts +1 -0
- package/dist/components/TextArea/TextArea.css.js +5 -0
- package/dist/components/TextArea/TextArea.d.ts +15 -0
- package/dist/components/TextArea/TextArea.docs.d.ts +19 -0
- package/dist/components/TextArea/TextArea.docs.js +31 -0
- package/dist/components/TextArea/TextArea.js +33 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextArea/index.js +1 -0
- package/dist/components/TextField/TextField.d.ts +14 -0
- package/dist/components/TextField/TextField.docs.d.ts +19 -0
- package/dist/components/TextField/TextField.docs.js +59 -0
- package/dist/components/TextField/TextField.js +32 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextField/index.js +1 -0
- package/dist/components/Timeline/Timeline.css +100 -0
- package/dist/components/Timeline/Timeline.css.d.ts +10 -0
- package/dist/components/Timeline/Timeline.css.js +15 -0
- package/dist/components/Timeline/Timeline.d.ts +22 -0
- package/dist/components/Timeline/Timeline.docs.d.ts +19 -0
- package/dist/components/Timeline/Timeline.docs.js +39 -0
- package/dist/components/Timeline/Timeline.js +42 -0
- package/dist/components/Timeline/index.d.ts +1 -0
- package/dist/components/Timeline/index.js +1 -0
- package/dist/components/Toast/Toast.css +106 -0
- package/dist/components/Toast/Toast.css.d.ts +11 -0
- package/dist/components/Toast/Toast.css.js +25 -0
- package/dist/components/Toast/Toast.d.ts +30 -0
- package/dist/components/Toast/Toast.docs.d.ts +19 -0
- package/dist/components/Toast/Toast.docs.js +49 -0
- package/dist/components/Toast/Toast.js +68 -0
- package/dist/components/Toast/ToastProvider.d.ts +12 -0
- package/dist/components/Toast/ToastProvider.js +140 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/toast-context.d.ts +21 -0
- package/dist/components/Toast/toast-context.js +11 -0
- package/dist/components/Tooltip/Tooltip.css +18 -0
- package/dist/components/Tooltip/Tooltip.css.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.css.js +5 -0
- package/dist/components/Tooltip/Tooltip.d.ts +45 -0
- package/dist/components/Tooltip/Tooltip.docs.d.ts +19 -0
- package/dist/components/Tooltip/Tooltip.docs.js +47 -0
- package/dist/components/Tooltip/Tooltip.js +93 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +1 -0
- package/dist/icons/index.d.ts +293 -0
- package/dist/icons/index.js +395 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +59 -0
- package/dist/internal/Field.d.ts +31 -0
- package/dist/internal/Field.js +54 -0
- package/dist/internal/field-ids.d.ts +7 -0
- package/dist/internal/field-ids.js +18 -0
- package/dist/internal/field.css +131 -0
- package/dist/internal/field.css.d.ts +16 -0
- package/dist/internal/field.css.js +22 -0
- package/dist/internal/floating-geometry.d.ts +42 -0
- package/dist/internal/floating-geometry.js +55 -0
- package/dist/internal/floating.css +36 -0
- package/dist/internal/floating.css.d.ts +8 -0
- package/dist/internal/floating.css.js +6 -0
- package/dist/internal/floating.d.ts +27 -0
- package/dist/internal/floating.js +118 -0
- package/dist/internal/useControllableState.d.ts +16 -0
- package/dist/internal/useControllableState.js +28 -0
- package/dist/internal/useOverflow.d.ts +7 -0
- package/dist/internal/useOverflow.js +24 -0
- package/dist/internal/usePopover.d.ts +28 -0
- package/dist/internal/usePopover.js +91 -0
- package/dist/manifest.json +12308 -0
- package/dist/patterns/dashboard-overview.docs.d.ts +22 -0
- package/dist/patterns/dashboard-overview.docs.js +80 -0
- package/dist/patterns/empty-state.docs.d.ts +22 -0
- package/dist/patterns/empty-state.docs.js +60 -0
- package/dist/patterns/index.d.ts +6 -0
- package/dist/patterns/index.js +14 -0
- package/dist/patterns/profile-card.docs.d.ts +22 -0
- package/dist/patterns/profile-card.docs.js +72 -0
- package/dist/patterns/settings-page.docs.d.ts +22 -0
- package/dist/patterns/settings-page.docs.js +76 -0
- package/dist/patterns/sign-in-form.docs.d.ts +22 -0
- package/dist/patterns/sign-in-form.docs.js +84 -0
- package/dist/primitives/VisuallyHidden.d.ts +13 -0
- package/dist/primitives/VisuallyHidden.js +18 -0
- package/dist/providers/LinkProvider.d.ts +18 -0
- package/dist/providers/LinkProvider.js +23 -0
- package/dist/providers/StringsProvider.d.ts +14 -0
- package/dist/providers/StringsProvider.js +25 -0
- package/dist/providers/link-context.d.ts +12 -0
- package/dist/providers/link-context.js +15 -0
- package/dist/providers/strings.d.ts +64 -0
- package/dist/providers/strings.js +38 -0
- package/dist/registry/gaps.d.ts +30 -0
- package/dist/registry/gaps.js +208 -0
- package/dist/registry/generated.d.ts +5 -0
- package/dist/registry/generated.js +2821 -0
- package/dist/registry/index.d.ts +36 -0
- package/dist/registry/index.js +201 -0
- package/dist/registry/types.d.ts +84 -0
- package/dist/styles/base.css +9 -0
- package/dist/styles/base.css.d.ts +1 -0
- package/dist/styles/base.css.js +1 -0
- package/dist/styles/layout.css +33 -0
- package/dist/styles/layout.css.d.ts +1 -0
- package/dist/styles/layout.css.js +17 -0
- package/dist/styles/shared.css +16 -0
- package/dist/styles/shared.css.d.ts +35 -0
- package/dist/styles/shared.css.js +5 -0
- package/dist/styles.css +3406 -0
- package/dist/themes/blueprint.css +115 -0
- package/dist/themes/contrast.d.ts +26 -0
- package/dist/themes/contrast.js +114 -0
- package/dist/themes/define.d.ts +9 -0
- package/dist/themes/define.js +29 -0
- package/dist/themes/dtcg.d.ts +126 -0
- package/dist/themes/dtcg.js +268 -0
- package/dist/themes/index.d.ts +19 -0
- package/dist/themes/index.js +21 -0
- package/dist/themes/letterpress.css +115 -0
- package/dist/themes/letterpress.d.ts +7 -0
- package/dist/themes/letterpress.js +187 -0
- package/dist/themes/presets/blueprint.d.ts +6 -0
- package/dist/themes/presets/blueprint.js +183 -0
- package/dist/themes/runtime/browser.d.ts +47 -0
- package/dist/themes/runtime/browser.js +164 -0
- package/dist/themes/runtime/cache.d.ts +43 -0
- package/dist/themes/runtime/cache.js +87 -0
- package/dist/themes/runtime/css.d.ts +43 -0
- package/dist/themes/runtime/css.js +89 -0
- package/dist/themes/runtime/diff.d.ts +22 -0
- package/dist/themes/runtime/diff.js +43 -0
- package/dist/themes/types.d.ts +59 -0
- package/dist/themes/values.d.ts +12 -0
- package/dist/themes/values.js +40 -0
- package/dist/tokens/blueprint.dark.tokens.json +1361 -0
- package/dist/tokens/blueprint.light.tokens.json +1361 -0
- package/dist/tokens/contract.d.ts +252 -0
- package/dist/tokens/contract.js +249 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/letterpress.dark.tokens.json +1391 -0
- package/dist/tokens/letterpress.light.tokens.json +1391 -0
- package/dist/tokens/tokens.css +117 -0
- package/dist/tokens/tokens.css.d.ts +128 -0
- package/dist/tokens/tokens.css.js +121 -0
- package/dist/utils/cx.d.ts +7 -0
- package/dist/utils/cx.js +14 -0
- package/dist/utils/space.d.ts +5 -0
- package/dist/utils/space.js +7 -0
- package/package.json +104 -3
|
@@ -0,0 +1,4369 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://derekwatson.site/derelicious-ds/a2ui/v0.9/catalog.json",
|
|
4
|
+
"title": "Derelicious A2UI catalog",
|
|
5
|
+
"description": "The A2UI v0.9 basic catalog rendered with Derelicious components, plus Derelicious types. Common types are copied into $defs, so the document validates offline.",
|
|
6
|
+
"catalogId": "https://derekwatson.site/derelicious-ds/a2ui/v0.9/catalog.json",
|
|
7
|
+
"extends": "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json",
|
|
8
|
+
"version": "v0.9",
|
|
9
|
+
"rules": [
|
|
10
|
+
"Every message is one JSON object: {\"version\": \"v0.9\"} plus exactly one of createSurface, updateComponents, updateDataModel, or deleteSurface.",
|
|
11
|
+
"Start a surface with createSurface: {\"surfaceId\": \"...\", \"catalogId\": \"https://derekwatson.site/derelicious-ds/a2ui/v0.9/catalog.json\"}.",
|
|
12
|
+
"updateComponents sends a flat list of components. Each has a unique \"id\" and a \"component\" type from this catalog. Exactly one component has the id \"root\".",
|
|
13
|
+
"Parents point at children by id, never by nesting objects: \"children\": [\"a\", \"b\"] for lists, and \"child\", \"trigger\", or \"content\" for one id.",
|
|
14
|
+
"For repeated items, use a template child list: \"children\": {\"path\": \"/items\", \"componentId\": \"item\"}. The template renders once per item in the list at that path.",
|
|
15
|
+
"Bind any dynamic value to the data model with {\"path\": \"/json/pointer\"}. Inside a template, a path without a leading slash, like {\"path\": \"title\"}, reads from the current item.",
|
|
16
|
+
"updateDataModel sets data: {\"surfaceId\": \"...\", \"path\": \"/items\", \"value\": [...]}. Omit path to replace the whole model.",
|
|
17
|
+
"Inputs bind their value to a path, and edits write back to it.",
|
|
18
|
+
"Buttons act with \"action\": {\"event\": {\"name\": \"...\", \"context\": {...}}} or {\"functionCall\": {\"call\": \"openUrl\", \"args\": {\"url\": \"...\"}}}. Context values can be bindings.",
|
|
19
|
+
"Use only the types and props in this catalog. Unknown types and props are rejected.",
|
|
20
|
+
"Links and image URLs must be site paths like \"/work/anvil2\" or https URLs you were given.",
|
|
21
|
+
"Components may arrive before their children. The client shows a placeholder until each one arrives."
|
|
22
|
+
],
|
|
23
|
+
"components": {
|
|
24
|
+
"Text": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Body text, a caption, a small label, or a heading. The text supports simple Markdown: **bold**, *italic*, `code`, and lines that start with \"- \".",
|
|
27
|
+
"x-derelicious": {
|
|
28
|
+
"origin": "basic",
|
|
29
|
+
"renders": [
|
|
30
|
+
"Text",
|
|
31
|
+
"Heading"
|
|
32
|
+
],
|
|
33
|
+
"status": "stable",
|
|
34
|
+
"usage": [
|
|
35
|
+
"Use one heading per surface or per card, then body text.",
|
|
36
|
+
"Keep body text to one or two short sentences. Put longer explanations in the chat reply, not the surface."
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"properties": {
|
|
40
|
+
"id": {
|
|
41
|
+
"$ref": "#/$defs/ComponentId"
|
|
42
|
+
},
|
|
43
|
+
"component": {
|
|
44
|
+
"const": "Text"
|
|
45
|
+
},
|
|
46
|
+
"accessibility": {
|
|
47
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
48
|
+
},
|
|
49
|
+
"weight": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"minimum": 0,
|
|
52
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
53
|
+
},
|
|
54
|
+
"text": {
|
|
55
|
+
"$ref": "#/$defs/DynamicString",
|
|
56
|
+
"description": "The text to show."
|
|
57
|
+
},
|
|
58
|
+
"variant": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"enum": [
|
|
61
|
+
"h1",
|
|
62
|
+
"h2",
|
|
63
|
+
"h3",
|
|
64
|
+
"h4",
|
|
65
|
+
"h5",
|
|
66
|
+
"caption",
|
|
67
|
+
"body",
|
|
68
|
+
"lede",
|
|
69
|
+
"eyebrow"
|
|
70
|
+
],
|
|
71
|
+
"description": "h1 to h5 are headings; levels are relative to where the surface sits. caption is small muted text. lede is a larger intro line and eyebrow a small uppercase label (Derelicious additions).",
|
|
72
|
+
"default": "body"
|
|
73
|
+
},
|
|
74
|
+
"tone": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"enum": [
|
|
77
|
+
"default",
|
|
78
|
+
"muted",
|
|
79
|
+
"accent",
|
|
80
|
+
"positive",
|
|
81
|
+
"warning",
|
|
82
|
+
"danger",
|
|
83
|
+
"info"
|
|
84
|
+
],
|
|
85
|
+
"description": "Text color. Derelicious extension."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"id",
|
|
90
|
+
"component",
|
|
91
|
+
"text"
|
|
92
|
+
],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
95
|
+
"Image": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"description": "An image with alt text, framed to a size variant.",
|
|
98
|
+
"x-derelicious": {
|
|
99
|
+
"origin": "basic",
|
|
100
|
+
"renders": [
|
|
101
|
+
"Image"
|
|
102
|
+
],
|
|
103
|
+
"status": "stable",
|
|
104
|
+
"usage": [
|
|
105
|
+
"Only use image URLs you were given. Never invent one."
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"properties": {
|
|
109
|
+
"id": {
|
|
110
|
+
"$ref": "#/$defs/ComponentId"
|
|
111
|
+
},
|
|
112
|
+
"component": {
|
|
113
|
+
"const": "Image"
|
|
114
|
+
},
|
|
115
|
+
"accessibility": {
|
|
116
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
117
|
+
},
|
|
118
|
+
"weight": {
|
|
119
|
+
"type": "number",
|
|
120
|
+
"minimum": 0,
|
|
121
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
122
|
+
},
|
|
123
|
+
"url": {
|
|
124
|
+
"$ref": "#/$defs/DynamicImageUrl",
|
|
125
|
+
"description": "A site path or an https URL."
|
|
126
|
+
},
|
|
127
|
+
"description": {
|
|
128
|
+
"$ref": "#/$defs/DynamicString",
|
|
129
|
+
"description": "Alt text: what the image shows. Leave empty only for decoration."
|
|
130
|
+
},
|
|
131
|
+
"fit": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": [
|
|
134
|
+
"contain",
|
|
135
|
+
"cover",
|
|
136
|
+
"fill",
|
|
137
|
+
"none",
|
|
138
|
+
"scaleDown"
|
|
139
|
+
],
|
|
140
|
+
"description": "How the image fills its frame, like CSS object-fit.",
|
|
141
|
+
"default": "fill"
|
|
142
|
+
},
|
|
143
|
+
"variant": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"enum": [
|
|
146
|
+
"icon",
|
|
147
|
+
"avatar",
|
|
148
|
+
"smallFeature",
|
|
149
|
+
"mediumFeature",
|
|
150
|
+
"largeFeature",
|
|
151
|
+
"header"
|
|
152
|
+
],
|
|
153
|
+
"description": "Size and shape: icon is tiny, avatar is a circle, header is a wide banner.",
|
|
154
|
+
"default": "mediumFeature"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"id",
|
|
159
|
+
"component",
|
|
160
|
+
"url"
|
|
161
|
+
],
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
},
|
|
164
|
+
"Icon": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"description": "A small outline icon. Takes a Derelicious icon name like \"check\" or \"arrow-right\", a basic-catalog name like \"calendarToday\", or {\"svgPath\": \"...\"}.",
|
|
167
|
+
"x-derelicious": {
|
|
168
|
+
"origin": "basic",
|
|
169
|
+
"renders": [
|
|
170
|
+
"Icon"
|
|
171
|
+
],
|
|
172
|
+
"status": "stable",
|
|
173
|
+
"usage": [
|
|
174
|
+
"Icons are decorative unless accessibility.label is set. Pair them with text."
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"properties": {
|
|
178
|
+
"id": {
|
|
179
|
+
"$ref": "#/$defs/ComponentId"
|
|
180
|
+
},
|
|
181
|
+
"component": {
|
|
182
|
+
"const": "Icon"
|
|
183
|
+
},
|
|
184
|
+
"accessibility": {
|
|
185
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
186
|
+
},
|
|
187
|
+
"weight": {
|
|
188
|
+
"type": "number",
|
|
189
|
+
"minimum": 0,
|
|
190
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
191
|
+
},
|
|
192
|
+
"name": {
|
|
193
|
+
"$ref": "#/$defs/IconName",
|
|
194
|
+
"description": "Which icon."
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"id",
|
|
199
|
+
"component",
|
|
200
|
+
"name"
|
|
201
|
+
],
|
|
202
|
+
"additionalProperties": false
|
|
203
|
+
},
|
|
204
|
+
"Video": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"description": "A video. Derelicious has no player, so this renders a link to the file.",
|
|
207
|
+
"x-derelicious": {
|
|
208
|
+
"origin": "basic",
|
|
209
|
+
"renders": [
|
|
210
|
+
"Link"
|
|
211
|
+
],
|
|
212
|
+
"status": "fallback",
|
|
213
|
+
"usage": [
|
|
214
|
+
"Avoid. Use a Link to the page that hosts the video."
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"properties": {
|
|
218
|
+
"id": {
|
|
219
|
+
"$ref": "#/$defs/ComponentId"
|
|
220
|
+
},
|
|
221
|
+
"component": {
|
|
222
|
+
"const": "Video"
|
|
223
|
+
},
|
|
224
|
+
"accessibility": {
|
|
225
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
226
|
+
},
|
|
227
|
+
"weight": {
|
|
228
|
+
"type": "number",
|
|
229
|
+
"minimum": 0,
|
|
230
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
231
|
+
},
|
|
232
|
+
"url": {
|
|
233
|
+
"$ref": "#/$defs/DynamicImageUrl",
|
|
234
|
+
"description": "An https URL to the video."
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"required": [
|
|
238
|
+
"id",
|
|
239
|
+
"component",
|
|
240
|
+
"url"
|
|
241
|
+
],
|
|
242
|
+
"additionalProperties": false
|
|
243
|
+
},
|
|
244
|
+
"AudioPlayer": {
|
|
245
|
+
"type": "object",
|
|
246
|
+
"description": "Audio. Derelicious has no player, so this renders a link to the file.",
|
|
247
|
+
"x-derelicious": {
|
|
248
|
+
"origin": "basic",
|
|
249
|
+
"renders": [
|
|
250
|
+
"Link"
|
|
251
|
+
],
|
|
252
|
+
"status": "fallback",
|
|
253
|
+
"usage": [
|
|
254
|
+
"Avoid. Use a Link to the page that hosts the audio."
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"properties": {
|
|
258
|
+
"id": {
|
|
259
|
+
"$ref": "#/$defs/ComponentId"
|
|
260
|
+
},
|
|
261
|
+
"component": {
|
|
262
|
+
"const": "AudioPlayer"
|
|
263
|
+
},
|
|
264
|
+
"accessibility": {
|
|
265
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
266
|
+
},
|
|
267
|
+
"weight": {
|
|
268
|
+
"type": "number",
|
|
269
|
+
"minimum": 0,
|
|
270
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
271
|
+
},
|
|
272
|
+
"url": {
|
|
273
|
+
"$ref": "#/$defs/DynamicImageUrl",
|
|
274
|
+
"description": "An https URL to the audio."
|
|
275
|
+
},
|
|
276
|
+
"description": {
|
|
277
|
+
"$ref": "#/$defs/DynamicString",
|
|
278
|
+
"description": "A title or summary."
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"id",
|
|
283
|
+
"component",
|
|
284
|
+
"url"
|
|
285
|
+
],
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
"Row": {
|
|
289
|
+
"type": "object",
|
|
290
|
+
"description": "Children side by side. Rows wrap onto new lines when space runs out, so they work on phones.",
|
|
291
|
+
"x-derelicious": {
|
|
292
|
+
"origin": "basic",
|
|
293
|
+
"renders": [
|
|
294
|
+
"Inline"
|
|
295
|
+
],
|
|
296
|
+
"status": "stable",
|
|
297
|
+
"usage": [
|
|
298
|
+
"Use a Row for a few small things: tags, badges, buttons, or an icon and its label.",
|
|
299
|
+
"For equal columns of cards or stats, use Grid instead.",
|
|
300
|
+
"Set weight on a child to let it take the remaining space."
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"properties": {
|
|
304
|
+
"id": {
|
|
305
|
+
"$ref": "#/$defs/ComponentId"
|
|
306
|
+
},
|
|
307
|
+
"component": {
|
|
308
|
+
"const": "Row"
|
|
309
|
+
},
|
|
310
|
+
"accessibility": {
|
|
311
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
312
|
+
},
|
|
313
|
+
"weight": {
|
|
314
|
+
"type": "number",
|
|
315
|
+
"minimum": 0,
|
|
316
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
317
|
+
},
|
|
318
|
+
"children": {
|
|
319
|
+
"$ref": "#/$defs/ChildList",
|
|
320
|
+
"description": "The components in the row."
|
|
321
|
+
},
|
|
322
|
+
"justify": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"enum": [
|
|
325
|
+
"center",
|
|
326
|
+
"end",
|
|
327
|
+
"spaceAround",
|
|
328
|
+
"spaceBetween",
|
|
329
|
+
"spaceEvenly",
|
|
330
|
+
"start",
|
|
331
|
+
"stretch"
|
|
332
|
+
],
|
|
333
|
+
"description": "Horizontal distribution. spaceBetween pushes the first and last child apart.",
|
|
334
|
+
"default": "start"
|
|
335
|
+
},
|
|
336
|
+
"align": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"enum": [
|
|
339
|
+
"start",
|
|
340
|
+
"center",
|
|
341
|
+
"end",
|
|
342
|
+
"stretch"
|
|
343
|
+
],
|
|
344
|
+
"description": "Vertical alignment of children.",
|
|
345
|
+
"default": "stretch"
|
|
346
|
+
},
|
|
347
|
+
"gap": {
|
|
348
|
+
"type": "integer",
|
|
349
|
+
"enum": [
|
|
350
|
+
0,
|
|
351
|
+
1,
|
|
352
|
+
2,
|
|
353
|
+
3,
|
|
354
|
+
4,
|
|
355
|
+
6,
|
|
356
|
+
8
|
|
357
|
+
],
|
|
358
|
+
"description": "Space between children, as a step of the space scale (3 is 0.75rem, 4 is 1rem). Derelicious extension.",
|
|
359
|
+
"default": 3
|
|
360
|
+
},
|
|
361
|
+
"wrap": {
|
|
362
|
+
"type": "boolean",
|
|
363
|
+
"description": "Wrap onto new lines when space runs out. Derelicious extension.",
|
|
364
|
+
"default": true
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"required": [
|
|
368
|
+
"id",
|
|
369
|
+
"component",
|
|
370
|
+
"children"
|
|
371
|
+
],
|
|
372
|
+
"additionalProperties": false
|
|
373
|
+
},
|
|
374
|
+
"Column": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"description": "Children stacked vertically with even space between them.",
|
|
377
|
+
"x-derelicious": {
|
|
378
|
+
"origin": "basic",
|
|
379
|
+
"renders": [
|
|
380
|
+
"Stack"
|
|
381
|
+
],
|
|
382
|
+
"status": "stable",
|
|
383
|
+
"usage": [
|
|
384
|
+
"The usual root: a Column holding the parts of the answer."
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
"properties": {
|
|
388
|
+
"id": {
|
|
389
|
+
"$ref": "#/$defs/ComponentId"
|
|
390
|
+
},
|
|
391
|
+
"component": {
|
|
392
|
+
"const": "Column"
|
|
393
|
+
},
|
|
394
|
+
"accessibility": {
|
|
395
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
396
|
+
},
|
|
397
|
+
"weight": {
|
|
398
|
+
"type": "number",
|
|
399
|
+
"minimum": 0,
|
|
400
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
401
|
+
},
|
|
402
|
+
"children": {
|
|
403
|
+
"$ref": "#/$defs/ChildList",
|
|
404
|
+
"description": "The components in the column."
|
|
405
|
+
},
|
|
406
|
+
"justify": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"enum": [
|
|
409
|
+
"start",
|
|
410
|
+
"center",
|
|
411
|
+
"end",
|
|
412
|
+
"spaceBetween",
|
|
413
|
+
"spaceAround",
|
|
414
|
+
"spaceEvenly",
|
|
415
|
+
"stretch"
|
|
416
|
+
],
|
|
417
|
+
"description": "Vertical distribution when the column is taller than its children.",
|
|
418
|
+
"default": "start"
|
|
419
|
+
},
|
|
420
|
+
"align": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"enum": [
|
|
423
|
+
"center",
|
|
424
|
+
"end",
|
|
425
|
+
"start",
|
|
426
|
+
"stretch"
|
|
427
|
+
],
|
|
428
|
+
"description": "Horizontal alignment of children.",
|
|
429
|
+
"default": "stretch"
|
|
430
|
+
},
|
|
431
|
+
"gap": {
|
|
432
|
+
"type": "integer",
|
|
433
|
+
"enum": [
|
|
434
|
+
0,
|
|
435
|
+
1,
|
|
436
|
+
2,
|
|
437
|
+
3,
|
|
438
|
+
4,
|
|
439
|
+
6,
|
|
440
|
+
8
|
|
441
|
+
],
|
|
442
|
+
"description": "Space between children, as a step of the space scale (3 is 0.75rem, 4 is 1rem). Derelicious extension.",
|
|
443
|
+
"default": 3
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"required": [
|
|
447
|
+
"id",
|
|
448
|
+
"component",
|
|
449
|
+
"children"
|
|
450
|
+
],
|
|
451
|
+
"additionalProperties": false
|
|
452
|
+
},
|
|
453
|
+
"List": {
|
|
454
|
+
"type": "object",
|
|
455
|
+
"description": "A list of components, usually built from a template over data.",
|
|
456
|
+
"x-derelicious": {
|
|
457
|
+
"origin": "basic",
|
|
458
|
+
"renders": [
|
|
459
|
+
"List",
|
|
460
|
+
"Inline"
|
|
461
|
+
],
|
|
462
|
+
"status": "stable",
|
|
463
|
+
"usage": [
|
|
464
|
+
"Use a template child list for repeated items: {\"path\": \"/items\", \"componentId\": \"item\"}."
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"properties": {
|
|
468
|
+
"id": {
|
|
469
|
+
"$ref": "#/$defs/ComponentId"
|
|
470
|
+
},
|
|
471
|
+
"component": {
|
|
472
|
+
"const": "List"
|
|
473
|
+
},
|
|
474
|
+
"accessibility": {
|
|
475
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
476
|
+
},
|
|
477
|
+
"weight": {
|
|
478
|
+
"type": "number",
|
|
479
|
+
"minimum": 0,
|
|
480
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
481
|
+
},
|
|
482
|
+
"children": {
|
|
483
|
+
"$ref": "#/$defs/ChildList",
|
|
484
|
+
"description": "The list items."
|
|
485
|
+
},
|
|
486
|
+
"direction": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"enum": [
|
|
489
|
+
"vertical",
|
|
490
|
+
"horizontal"
|
|
491
|
+
],
|
|
492
|
+
"description": "Stack items or lay them in a row.",
|
|
493
|
+
"default": "vertical"
|
|
494
|
+
},
|
|
495
|
+
"align": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"enum": [
|
|
498
|
+
"start",
|
|
499
|
+
"center",
|
|
500
|
+
"end",
|
|
501
|
+
"stretch"
|
|
502
|
+
],
|
|
503
|
+
"description": "Cross-axis alignment.",
|
|
504
|
+
"default": "stretch"
|
|
505
|
+
},
|
|
506
|
+
"marker": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"enum": [
|
|
509
|
+
"none",
|
|
510
|
+
"bullet",
|
|
511
|
+
"number",
|
|
512
|
+
"check"
|
|
513
|
+
],
|
|
514
|
+
"description": "Item markers for vertical lists. Derelicious extension.",
|
|
515
|
+
"default": "none"
|
|
516
|
+
},
|
|
517
|
+
"gap": {
|
|
518
|
+
"type": "integer",
|
|
519
|
+
"enum": [
|
|
520
|
+
0,
|
|
521
|
+
1,
|
|
522
|
+
2,
|
|
523
|
+
3,
|
|
524
|
+
4,
|
|
525
|
+
6,
|
|
526
|
+
8
|
|
527
|
+
],
|
|
528
|
+
"description": "Space between children, as a step of the space scale (3 is 0.75rem, 4 is 1rem). Derelicious extension.",
|
|
529
|
+
"default": 2
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"required": [
|
|
533
|
+
"id",
|
|
534
|
+
"component",
|
|
535
|
+
"children"
|
|
536
|
+
],
|
|
537
|
+
"additionalProperties": false
|
|
538
|
+
},
|
|
539
|
+
"Card": {
|
|
540
|
+
"type": "object",
|
|
541
|
+
"description": "A bordered surface that groups related content. Derelicious adds a title, an eyebrow, and href, which makes the whole card a link.",
|
|
542
|
+
"x-derelicious": {
|
|
543
|
+
"origin": "basic",
|
|
544
|
+
"renders": [
|
|
545
|
+
"Card"
|
|
546
|
+
],
|
|
547
|
+
"status": "stable",
|
|
548
|
+
"usage": [
|
|
549
|
+
"Give each card a title and put the details in its child Column.",
|
|
550
|
+
"A card that links to a page should set href and title instead of holding a separate Link."
|
|
551
|
+
]
|
|
552
|
+
},
|
|
553
|
+
"properties": {
|
|
554
|
+
"id": {
|
|
555
|
+
"$ref": "#/$defs/ComponentId"
|
|
556
|
+
},
|
|
557
|
+
"component": {
|
|
558
|
+
"const": "Card"
|
|
559
|
+
},
|
|
560
|
+
"accessibility": {
|
|
561
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
562
|
+
},
|
|
563
|
+
"weight": {
|
|
564
|
+
"type": "number",
|
|
565
|
+
"minimum": 0,
|
|
566
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
567
|
+
},
|
|
568
|
+
"child": {
|
|
569
|
+
"$ref": "#/$defs/ComponentId",
|
|
570
|
+
"description": "The one component inside. Use a Column for several."
|
|
571
|
+
},
|
|
572
|
+
"title": {
|
|
573
|
+
"$ref": "#/$defs/DynamicString",
|
|
574
|
+
"description": "Card heading. Derelicious extension."
|
|
575
|
+
},
|
|
576
|
+
"eyebrow": {
|
|
577
|
+
"$ref": "#/$defs/DynamicString",
|
|
578
|
+
"description": "Small label above the title. Derelicious extension."
|
|
579
|
+
},
|
|
580
|
+
"href": {
|
|
581
|
+
"$ref": "#/$defs/DynamicHref",
|
|
582
|
+
"description": "Make the card a link. Needs a title, which becomes the link text. Derelicious extension."
|
|
583
|
+
},
|
|
584
|
+
"variant": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"enum": [
|
|
587
|
+
"outlined",
|
|
588
|
+
"filled",
|
|
589
|
+
"elevated"
|
|
590
|
+
],
|
|
591
|
+
"description": "outlined has a border, filled a muted fill, elevated a shadow. Derelicious extension.",
|
|
592
|
+
"default": "outlined"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"required": [
|
|
596
|
+
"id",
|
|
597
|
+
"component",
|
|
598
|
+
"child"
|
|
599
|
+
],
|
|
600
|
+
"additionalProperties": false
|
|
601
|
+
},
|
|
602
|
+
"Tabs": {
|
|
603
|
+
"type": "object",
|
|
604
|
+
"description": "Related views that share one space. One tab shows at a time.",
|
|
605
|
+
"x-derelicious": {
|
|
606
|
+
"origin": "basic",
|
|
607
|
+
"renders": [
|
|
608
|
+
"Tabs"
|
|
609
|
+
],
|
|
610
|
+
"status": "stable",
|
|
611
|
+
"usage": [
|
|
612
|
+
"Use two to five short tab titles."
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
"properties": {
|
|
616
|
+
"id": {
|
|
617
|
+
"$ref": "#/$defs/ComponentId"
|
|
618
|
+
},
|
|
619
|
+
"component": {
|
|
620
|
+
"const": "Tabs"
|
|
621
|
+
},
|
|
622
|
+
"accessibility": {
|
|
623
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
624
|
+
},
|
|
625
|
+
"weight": {
|
|
626
|
+
"type": "number",
|
|
627
|
+
"minimum": 0,
|
|
628
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
629
|
+
},
|
|
630
|
+
"tabs": {
|
|
631
|
+
"type": "array",
|
|
632
|
+
"description": "The tabs, in order.",
|
|
633
|
+
"items": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"title": {
|
|
637
|
+
"$ref": "#/$defs/DynamicString",
|
|
638
|
+
"description": "The tab label."
|
|
639
|
+
},
|
|
640
|
+
"child": {
|
|
641
|
+
"$ref": "#/$defs/ComponentId",
|
|
642
|
+
"description": "The component shown when the tab is selected."
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"required": [
|
|
646
|
+
"title",
|
|
647
|
+
"child"
|
|
648
|
+
],
|
|
649
|
+
"additionalProperties": false
|
|
650
|
+
},
|
|
651
|
+
"minItems": 1,
|
|
652
|
+
"maxItems": 8
|
|
653
|
+
},
|
|
654
|
+
"label": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"description": "Names the tab list for screen readers. Derelicious extension."
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
"required": [
|
|
660
|
+
"id",
|
|
661
|
+
"component",
|
|
662
|
+
"tabs"
|
|
663
|
+
],
|
|
664
|
+
"additionalProperties": false
|
|
665
|
+
},
|
|
666
|
+
"Modal": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"description": "A dialog that opens when its trigger is pressed. The trigger is usually a Button.",
|
|
669
|
+
"x-derelicious": {
|
|
670
|
+
"origin": "basic",
|
|
671
|
+
"renders": [
|
|
672
|
+
"Dialog"
|
|
673
|
+
],
|
|
674
|
+
"status": "stable",
|
|
675
|
+
"usage": [
|
|
676
|
+
"Give it a title. Keep dialog content short."
|
|
677
|
+
]
|
|
678
|
+
},
|
|
679
|
+
"properties": {
|
|
680
|
+
"id": {
|
|
681
|
+
"$ref": "#/$defs/ComponentId"
|
|
682
|
+
},
|
|
683
|
+
"component": {
|
|
684
|
+
"const": "Modal"
|
|
685
|
+
},
|
|
686
|
+
"accessibility": {
|
|
687
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
688
|
+
},
|
|
689
|
+
"weight": {
|
|
690
|
+
"type": "number",
|
|
691
|
+
"minimum": 0,
|
|
692
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
693
|
+
},
|
|
694
|
+
"trigger": {
|
|
695
|
+
"$ref": "#/$defs/ComponentId",
|
|
696
|
+
"description": "The component that opens the dialog, usually a Button."
|
|
697
|
+
},
|
|
698
|
+
"content": {
|
|
699
|
+
"$ref": "#/$defs/ComponentId",
|
|
700
|
+
"description": "The component shown inside the dialog."
|
|
701
|
+
},
|
|
702
|
+
"title": {
|
|
703
|
+
"$ref": "#/$defs/DynamicString",
|
|
704
|
+
"description": "Dialog heading. Derelicious extension."
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"required": [
|
|
708
|
+
"id",
|
|
709
|
+
"component",
|
|
710
|
+
"trigger",
|
|
711
|
+
"content"
|
|
712
|
+
],
|
|
713
|
+
"additionalProperties": false
|
|
714
|
+
},
|
|
715
|
+
"Divider": {
|
|
716
|
+
"type": "object",
|
|
717
|
+
"description": "A thin rule between groups of content.",
|
|
718
|
+
"x-derelicious": {
|
|
719
|
+
"origin": "basic",
|
|
720
|
+
"renders": [
|
|
721
|
+
"Divider"
|
|
722
|
+
],
|
|
723
|
+
"status": "stable",
|
|
724
|
+
"usage": [
|
|
725
|
+
"Use sparingly. Space usually separates groups well enough."
|
|
726
|
+
]
|
|
727
|
+
},
|
|
728
|
+
"properties": {
|
|
729
|
+
"id": {
|
|
730
|
+
"$ref": "#/$defs/ComponentId"
|
|
731
|
+
},
|
|
732
|
+
"component": {
|
|
733
|
+
"const": "Divider"
|
|
734
|
+
},
|
|
735
|
+
"accessibility": {
|
|
736
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
737
|
+
},
|
|
738
|
+
"weight": {
|
|
739
|
+
"type": "number",
|
|
740
|
+
"minimum": 0,
|
|
741
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
742
|
+
},
|
|
743
|
+
"axis": {
|
|
744
|
+
"type": "string",
|
|
745
|
+
"enum": [
|
|
746
|
+
"horizontal",
|
|
747
|
+
"vertical"
|
|
748
|
+
],
|
|
749
|
+
"description": "Orientation.",
|
|
750
|
+
"default": "horizontal"
|
|
751
|
+
},
|
|
752
|
+
"label": {
|
|
753
|
+
"type": "string",
|
|
754
|
+
"description": "Short text in the middle. Derelicious extension."
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"required": [
|
|
758
|
+
"id",
|
|
759
|
+
"component"
|
|
760
|
+
],
|
|
761
|
+
"additionalProperties": false
|
|
762
|
+
},
|
|
763
|
+
"Button": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"description": "Does something when pressed: sends an event, opens a URL, or, with href, navigates.",
|
|
766
|
+
"x-derelicious": {
|
|
767
|
+
"origin": "basic",
|
|
768
|
+
"renders": [
|
|
769
|
+
"Button",
|
|
770
|
+
"IconButton"
|
|
771
|
+
],
|
|
772
|
+
"status": "stable",
|
|
773
|
+
"usage": [
|
|
774
|
+
"Needs an action or an href.",
|
|
775
|
+
"One primary button per surface.",
|
|
776
|
+
"Use href for navigation, and an event action for anything the app should handle."
|
|
777
|
+
],
|
|
778
|
+
"requireOneOf": [
|
|
779
|
+
[
|
|
780
|
+
"action",
|
|
781
|
+
"href"
|
|
782
|
+
]
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"properties": {
|
|
786
|
+
"id": {
|
|
787
|
+
"$ref": "#/$defs/ComponentId"
|
|
788
|
+
},
|
|
789
|
+
"component": {
|
|
790
|
+
"const": "Button"
|
|
791
|
+
},
|
|
792
|
+
"accessibility": {
|
|
793
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
794
|
+
},
|
|
795
|
+
"weight": {
|
|
796
|
+
"type": "number",
|
|
797
|
+
"minimum": 0,
|
|
798
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
799
|
+
},
|
|
800
|
+
"child": {
|
|
801
|
+
"$ref": "#/$defs/ComponentId",
|
|
802
|
+
"description": "A Text for the label, or an Icon for an icon-only button (then set accessibility.label)."
|
|
803
|
+
},
|
|
804
|
+
"variant": {
|
|
805
|
+
"type": "string",
|
|
806
|
+
"enum": [
|
|
807
|
+
"default",
|
|
808
|
+
"primary",
|
|
809
|
+
"borderless"
|
|
810
|
+
],
|
|
811
|
+
"description": "primary is the main action. borderless looks like a link.",
|
|
812
|
+
"default": "default"
|
|
813
|
+
},
|
|
814
|
+
"action": {
|
|
815
|
+
"$ref": "#/$defs/Action",
|
|
816
|
+
"description": "What pressing it does."
|
|
817
|
+
},
|
|
818
|
+
"checks": {
|
|
819
|
+
"$ref": "#/$defs/Checks",
|
|
820
|
+
"description": "Conditions that must all be true for the button to be enabled."
|
|
821
|
+
},
|
|
822
|
+
"href": {
|
|
823
|
+
"$ref": "#/$defs/DynamicHref",
|
|
824
|
+
"description": "Make the button a link to this site path or URL. Derelicious extension."
|
|
825
|
+
},
|
|
826
|
+
"icon": {
|
|
827
|
+
"$ref": "#/$defs/DsIconName",
|
|
828
|
+
"description": "Icon before the label. Derelicious extension."
|
|
829
|
+
},
|
|
830
|
+
"loading": {
|
|
831
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
832
|
+
"description": "While true, shows a spinner and ignores presses, like after a form is sent. Bind it to a path. Derelicious extension."
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"required": [
|
|
836
|
+
"id",
|
|
837
|
+
"component",
|
|
838
|
+
"child"
|
|
839
|
+
],
|
|
840
|
+
"additionalProperties": false
|
|
841
|
+
},
|
|
842
|
+
"TextField": {
|
|
843
|
+
"type": "object",
|
|
844
|
+
"description": "A labeled text input. Bind value to the data model to read what was typed.",
|
|
845
|
+
"x-derelicious": {
|
|
846
|
+
"origin": "basic",
|
|
847
|
+
"renders": [
|
|
848
|
+
"TextField",
|
|
849
|
+
"TextArea"
|
|
850
|
+
],
|
|
851
|
+
"status": "stable",
|
|
852
|
+
"usage": [
|
|
853
|
+
"Always bind value to a path so the input keeps what was typed."
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"properties": {
|
|
857
|
+
"id": {
|
|
858
|
+
"$ref": "#/$defs/ComponentId"
|
|
859
|
+
},
|
|
860
|
+
"component": {
|
|
861
|
+
"const": "TextField"
|
|
862
|
+
},
|
|
863
|
+
"accessibility": {
|
|
864
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
865
|
+
},
|
|
866
|
+
"weight": {
|
|
867
|
+
"type": "number",
|
|
868
|
+
"minimum": 0,
|
|
869
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
870
|
+
},
|
|
871
|
+
"label": {
|
|
872
|
+
"$ref": "#/$defs/DynamicString",
|
|
873
|
+
"description": "Visible label. Placeholders are not labels."
|
|
874
|
+
},
|
|
875
|
+
"value": {
|
|
876
|
+
"$ref": "#/$defs/DynamicString",
|
|
877
|
+
"description": "The value. Bind it, like {\"path\": \"/form/name\"}."
|
|
878
|
+
},
|
|
879
|
+
"variant": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"enum": [
|
|
882
|
+
"longText",
|
|
883
|
+
"number",
|
|
884
|
+
"shortText",
|
|
885
|
+
"obscured"
|
|
886
|
+
],
|
|
887
|
+
"description": "longText is a multi-line area. obscured hides the text, for passwords.",
|
|
888
|
+
"default": "shortText"
|
|
889
|
+
},
|
|
890
|
+
"validationRegexp": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"format": "regex",
|
|
893
|
+
"maxLength": 200,
|
|
894
|
+
"description": "A regular expression the value must match. Repeated groups that repeat or alternate inside, like \"(a+)+\", are refused."
|
|
895
|
+
},
|
|
896
|
+
"checks": {
|
|
897
|
+
"$ref": "#/$defs/Checks",
|
|
898
|
+
"description": "Rules with messages shown when they fail."
|
|
899
|
+
},
|
|
900
|
+
"hint": {
|
|
901
|
+
"$ref": "#/$defs/DynamicString",
|
|
902
|
+
"description": "Help text under the label. Derelicious extension."
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"required": [
|
|
906
|
+
"id",
|
|
907
|
+
"component",
|
|
908
|
+
"label"
|
|
909
|
+
],
|
|
910
|
+
"additionalProperties": false
|
|
911
|
+
},
|
|
912
|
+
"CheckBox": {
|
|
913
|
+
"type": "object",
|
|
914
|
+
"description": "A labeled checkbox for one yes or no choice.",
|
|
915
|
+
"x-derelicious": {
|
|
916
|
+
"origin": "basic",
|
|
917
|
+
"renders": [
|
|
918
|
+
"Checkbox"
|
|
919
|
+
],
|
|
920
|
+
"status": "stable",
|
|
921
|
+
"usage": [
|
|
922
|
+
"For an instant on/off setting, use Switch instead."
|
|
923
|
+
]
|
|
924
|
+
},
|
|
925
|
+
"properties": {
|
|
926
|
+
"id": {
|
|
927
|
+
"$ref": "#/$defs/ComponentId"
|
|
928
|
+
},
|
|
929
|
+
"component": {
|
|
930
|
+
"const": "CheckBox"
|
|
931
|
+
},
|
|
932
|
+
"accessibility": {
|
|
933
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
934
|
+
},
|
|
935
|
+
"weight": {
|
|
936
|
+
"type": "number",
|
|
937
|
+
"minimum": 0,
|
|
938
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
939
|
+
},
|
|
940
|
+
"label": {
|
|
941
|
+
"$ref": "#/$defs/DynamicString",
|
|
942
|
+
"description": "The label."
|
|
943
|
+
},
|
|
944
|
+
"value": {
|
|
945
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
946
|
+
"description": "Checked state. Bind it to a path."
|
|
947
|
+
},
|
|
948
|
+
"checks": {
|
|
949
|
+
"$ref": "#/$defs/Checks",
|
|
950
|
+
"description": "Rules with messages shown when they fail."
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"required": [
|
|
954
|
+
"id",
|
|
955
|
+
"component",
|
|
956
|
+
"label",
|
|
957
|
+
"value"
|
|
958
|
+
],
|
|
959
|
+
"additionalProperties": false
|
|
960
|
+
},
|
|
961
|
+
"ChoicePicker": {
|
|
962
|
+
"type": "object",
|
|
963
|
+
"description": "Pick one option (radio buttons) or several (checkboxes) from a short list.",
|
|
964
|
+
"x-derelicious": {
|
|
965
|
+
"origin": "basic",
|
|
966
|
+
"renders": [
|
|
967
|
+
"RadioGroup",
|
|
968
|
+
"Checkbox"
|
|
969
|
+
],
|
|
970
|
+
"status": "stable",
|
|
971
|
+
"usage": [
|
|
972
|
+
"For more than about seven single choices, use Select."
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
"properties": {
|
|
976
|
+
"id": {
|
|
977
|
+
"$ref": "#/$defs/ComponentId"
|
|
978
|
+
},
|
|
979
|
+
"component": {
|
|
980
|
+
"const": "ChoicePicker"
|
|
981
|
+
},
|
|
982
|
+
"accessibility": {
|
|
983
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
984
|
+
},
|
|
985
|
+
"weight": {
|
|
986
|
+
"type": "number",
|
|
987
|
+
"minimum": 0,
|
|
988
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
989
|
+
},
|
|
990
|
+
"label": {
|
|
991
|
+
"$ref": "#/$defs/DynamicString",
|
|
992
|
+
"description": "The question, shown as the legend."
|
|
993
|
+
},
|
|
994
|
+
"variant": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"enum": [
|
|
997
|
+
"multipleSelection",
|
|
998
|
+
"mutuallyExclusive"
|
|
999
|
+
],
|
|
1000
|
+
"description": "Allow several choices, or exactly one.",
|
|
1001
|
+
"default": "mutuallyExclusive"
|
|
1002
|
+
},
|
|
1003
|
+
"options": {
|
|
1004
|
+
"type": "array",
|
|
1005
|
+
"description": "The choices.",
|
|
1006
|
+
"items": {
|
|
1007
|
+
"type": "object",
|
|
1008
|
+
"properties": {
|
|
1009
|
+
"label": {
|
|
1010
|
+
"$ref": "#/$defs/DynamicString",
|
|
1011
|
+
"description": "What the person sees."
|
|
1012
|
+
},
|
|
1013
|
+
"value": {
|
|
1014
|
+
"type": "string",
|
|
1015
|
+
"description": "The stable value stored."
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": [
|
|
1019
|
+
"label",
|
|
1020
|
+
"value"
|
|
1021
|
+
],
|
|
1022
|
+
"additionalProperties": false
|
|
1023
|
+
},
|
|
1024
|
+
"minItems": 1,
|
|
1025
|
+
"maxItems": 30
|
|
1026
|
+
},
|
|
1027
|
+
"value": {
|
|
1028
|
+
"$ref": "#/$defs/DynamicStringList",
|
|
1029
|
+
"description": "Selected values. Bind it to a string array."
|
|
1030
|
+
},
|
|
1031
|
+
"displayStyle": {
|
|
1032
|
+
"type": "string",
|
|
1033
|
+
"enum": [
|
|
1034
|
+
"checkbox",
|
|
1035
|
+
"chips"
|
|
1036
|
+
],
|
|
1037
|
+
"description": "chips lays the options in a row.",
|
|
1038
|
+
"default": "checkbox"
|
|
1039
|
+
},
|
|
1040
|
+
"filterable": {
|
|
1041
|
+
"type": "boolean",
|
|
1042
|
+
"description": "Show a filter field above long lists.",
|
|
1043
|
+
"default": false
|
|
1044
|
+
},
|
|
1045
|
+
"checks": {
|
|
1046
|
+
"$ref": "#/$defs/Checks",
|
|
1047
|
+
"description": "Rules with messages shown when they fail."
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
"required": [
|
|
1051
|
+
"id",
|
|
1052
|
+
"component",
|
|
1053
|
+
"options",
|
|
1054
|
+
"value"
|
|
1055
|
+
],
|
|
1056
|
+
"additionalProperties": false
|
|
1057
|
+
},
|
|
1058
|
+
"Slider": {
|
|
1059
|
+
"type": "object",
|
|
1060
|
+
"description": "Pick a number in a range by dragging. Renders a native range input with a label and the current value.",
|
|
1061
|
+
"x-derelicious": {
|
|
1062
|
+
"origin": "basic",
|
|
1063
|
+
"renders": [],
|
|
1064
|
+
"status": "stable",
|
|
1065
|
+
"usage": [
|
|
1066
|
+
"Always set a label."
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
"properties": {
|
|
1070
|
+
"id": {
|
|
1071
|
+
"$ref": "#/$defs/ComponentId"
|
|
1072
|
+
},
|
|
1073
|
+
"component": {
|
|
1074
|
+
"const": "Slider"
|
|
1075
|
+
},
|
|
1076
|
+
"accessibility": {
|
|
1077
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1078
|
+
},
|
|
1079
|
+
"weight": {
|
|
1080
|
+
"type": "number",
|
|
1081
|
+
"minimum": 0,
|
|
1082
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1083
|
+
},
|
|
1084
|
+
"label": {
|
|
1085
|
+
"$ref": "#/$defs/DynamicString",
|
|
1086
|
+
"description": "The label."
|
|
1087
|
+
},
|
|
1088
|
+
"min": {
|
|
1089
|
+
"type": "number",
|
|
1090
|
+
"description": "Smallest value.",
|
|
1091
|
+
"default": 0
|
|
1092
|
+
},
|
|
1093
|
+
"max": {
|
|
1094
|
+
"type": "number",
|
|
1095
|
+
"description": "Largest value."
|
|
1096
|
+
},
|
|
1097
|
+
"step": {
|
|
1098
|
+
"type": "number",
|
|
1099
|
+
"description": "Step between values. Derelicious extension."
|
|
1100
|
+
},
|
|
1101
|
+
"value": {
|
|
1102
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
1103
|
+
"description": "The value. Bind it to a path."
|
|
1104
|
+
},
|
|
1105
|
+
"checks": {
|
|
1106
|
+
"$ref": "#/$defs/Checks",
|
|
1107
|
+
"description": "Rules with messages shown when they fail."
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
"required": [
|
|
1111
|
+
"id",
|
|
1112
|
+
"component",
|
|
1113
|
+
"value",
|
|
1114
|
+
"max"
|
|
1115
|
+
],
|
|
1116
|
+
"additionalProperties": false
|
|
1117
|
+
},
|
|
1118
|
+
"DateTimeInput": {
|
|
1119
|
+
"type": "object",
|
|
1120
|
+
"description": "A labeled date, time, or date and time input.",
|
|
1121
|
+
"x-derelicious": {
|
|
1122
|
+
"origin": "basic",
|
|
1123
|
+
"renders": [
|
|
1124
|
+
"TextField"
|
|
1125
|
+
],
|
|
1126
|
+
"status": "stable",
|
|
1127
|
+
"usage": [
|
|
1128
|
+
"Set enableDate, enableTime, or both."
|
|
1129
|
+
]
|
|
1130
|
+
},
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"id": {
|
|
1133
|
+
"$ref": "#/$defs/ComponentId"
|
|
1134
|
+
},
|
|
1135
|
+
"component": {
|
|
1136
|
+
"const": "DateTimeInput"
|
|
1137
|
+
},
|
|
1138
|
+
"accessibility": {
|
|
1139
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1140
|
+
},
|
|
1141
|
+
"weight": {
|
|
1142
|
+
"type": "number",
|
|
1143
|
+
"minimum": 0,
|
|
1144
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1145
|
+
},
|
|
1146
|
+
"value": {
|
|
1147
|
+
"$ref": "#/$defs/DynamicString",
|
|
1148
|
+
"description": "ISO 8601 value. Bind it to a path."
|
|
1149
|
+
},
|
|
1150
|
+
"enableDate": {
|
|
1151
|
+
"type": "boolean",
|
|
1152
|
+
"description": "Let people pick a date.",
|
|
1153
|
+
"default": false
|
|
1154
|
+
},
|
|
1155
|
+
"enableTime": {
|
|
1156
|
+
"type": "boolean",
|
|
1157
|
+
"description": "Let people pick a time.",
|
|
1158
|
+
"default": false
|
|
1159
|
+
},
|
|
1160
|
+
"min": {
|
|
1161
|
+
"$ref": "#/$defs/DynamicString",
|
|
1162
|
+
"description": "Earliest allowed, ISO 8601."
|
|
1163
|
+
},
|
|
1164
|
+
"max": {
|
|
1165
|
+
"$ref": "#/$defs/DynamicString",
|
|
1166
|
+
"description": "Latest allowed, ISO 8601."
|
|
1167
|
+
},
|
|
1168
|
+
"label": {
|
|
1169
|
+
"$ref": "#/$defs/DynamicString",
|
|
1170
|
+
"description": "The label."
|
|
1171
|
+
},
|
|
1172
|
+
"checks": {
|
|
1173
|
+
"$ref": "#/$defs/Checks",
|
|
1174
|
+
"description": "Rules with messages shown when they fail."
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"required": [
|
|
1178
|
+
"id",
|
|
1179
|
+
"component",
|
|
1180
|
+
"value"
|
|
1181
|
+
],
|
|
1182
|
+
"additionalProperties": false
|
|
1183
|
+
},
|
|
1184
|
+
"Heading": {
|
|
1185
|
+
"type": "object",
|
|
1186
|
+
"description": "A title in the display face.",
|
|
1187
|
+
"x-derelicious": {
|
|
1188
|
+
"origin": "derelicious",
|
|
1189
|
+
"renders": [
|
|
1190
|
+
"Heading"
|
|
1191
|
+
],
|
|
1192
|
+
"status": "stable",
|
|
1193
|
+
"usage": [
|
|
1194
|
+
"Never skip levels."
|
|
1195
|
+
]
|
|
1196
|
+
},
|
|
1197
|
+
"properties": {
|
|
1198
|
+
"id": {
|
|
1199
|
+
"$ref": "#/$defs/ComponentId"
|
|
1200
|
+
},
|
|
1201
|
+
"component": {
|
|
1202
|
+
"const": "Heading"
|
|
1203
|
+
},
|
|
1204
|
+
"accessibility": {
|
|
1205
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1206
|
+
},
|
|
1207
|
+
"weight": {
|
|
1208
|
+
"type": "number",
|
|
1209
|
+
"minimum": 0,
|
|
1210
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1211
|
+
},
|
|
1212
|
+
"text": {
|
|
1213
|
+
"$ref": "#/$defs/DynamicString",
|
|
1214
|
+
"description": "The heading text."
|
|
1215
|
+
},
|
|
1216
|
+
"level": {
|
|
1217
|
+
"type": "integer",
|
|
1218
|
+
"enum": [
|
|
1219
|
+
1,
|
|
1220
|
+
2,
|
|
1221
|
+
3,
|
|
1222
|
+
4
|
|
1223
|
+
],
|
|
1224
|
+
"description": "Outline level relative to where the surface sits. 1 is the top level of the surface.",
|
|
1225
|
+
"default": 1
|
|
1226
|
+
},
|
|
1227
|
+
"size": {
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"enum": [
|
|
1230
|
+
"display",
|
|
1231
|
+
"3xl",
|
|
1232
|
+
"2xl",
|
|
1233
|
+
"xl",
|
|
1234
|
+
"lg",
|
|
1235
|
+
"md"
|
|
1236
|
+
],
|
|
1237
|
+
"description": "Visual size. Defaults follow the level."
|
|
1238
|
+
},
|
|
1239
|
+
"tone": {
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"enum": [
|
|
1242
|
+
"default",
|
|
1243
|
+
"accent"
|
|
1244
|
+
],
|
|
1245
|
+
"description": "accent colors the heading."
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
"required": [
|
|
1249
|
+
"id",
|
|
1250
|
+
"component",
|
|
1251
|
+
"text"
|
|
1252
|
+
],
|
|
1253
|
+
"additionalProperties": false
|
|
1254
|
+
},
|
|
1255
|
+
"Stat": {
|
|
1256
|
+
"type": "object",
|
|
1257
|
+
"description": "One headline number with a label and an optional change.",
|
|
1258
|
+
"x-derelicious": {
|
|
1259
|
+
"origin": "derelicious",
|
|
1260
|
+
"renders": [
|
|
1261
|
+
"Stat"
|
|
1262
|
+
],
|
|
1263
|
+
"status": "stable",
|
|
1264
|
+
"usage": [
|
|
1265
|
+
"Put two to four Stats in a Grid with min \"10rem\".",
|
|
1266
|
+
"Copy numbers exactly as given. Never round or invent them."
|
|
1267
|
+
]
|
|
1268
|
+
},
|
|
1269
|
+
"properties": {
|
|
1270
|
+
"id": {
|
|
1271
|
+
"$ref": "#/$defs/ComponentId"
|
|
1272
|
+
},
|
|
1273
|
+
"component": {
|
|
1274
|
+
"const": "Stat"
|
|
1275
|
+
},
|
|
1276
|
+
"accessibility": {
|
|
1277
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1278
|
+
},
|
|
1279
|
+
"weight": {
|
|
1280
|
+
"type": "number",
|
|
1281
|
+
"minimum": 0,
|
|
1282
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1283
|
+
},
|
|
1284
|
+
"label": {
|
|
1285
|
+
"$ref": "#/$defs/DynamicString",
|
|
1286
|
+
"description": "What is measured."
|
|
1287
|
+
},
|
|
1288
|
+
"value": {
|
|
1289
|
+
"$ref": "#/$defs/DynamicString",
|
|
1290
|
+
"description": "The formatted number, like \"50%\" or \"5% → 50%\"."
|
|
1291
|
+
},
|
|
1292
|
+
"delta": {
|
|
1293
|
+
"$ref": "#/$defs/DynamicString",
|
|
1294
|
+
"description": "Change, like \"+12%\"."
|
|
1295
|
+
},
|
|
1296
|
+
"trend": {
|
|
1297
|
+
"type": "string",
|
|
1298
|
+
"enum": [
|
|
1299
|
+
"up",
|
|
1300
|
+
"down",
|
|
1301
|
+
"flat"
|
|
1302
|
+
],
|
|
1303
|
+
"description": "Direction of the change."
|
|
1304
|
+
},
|
|
1305
|
+
"tone": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"enum": [
|
|
1308
|
+
"positive",
|
|
1309
|
+
"danger",
|
|
1310
|
+
"neutral"
|
|
1311
|
+
],
|
|
1312
|
+
"description": "Whether the change is good."
|
|
1313
|
+
},
|
|
1314
|
+
"description": {
|
|
1315
|
+
"$ref": "#/$defs/DynamicString",
|
|
1316
|
+
"description": "A short note, like the time frame."
|
|
1317
|
+
},
|
|
1318
|
+
"variant": {
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"enum": [
|
|
1321
|
+
"card",
|
|
1322
|
+
"plain"
|
|
1323
|
+
],
|
|
1324
|
+
"description": "card is a bordered tile.",
|
|
1325
|
+
"default": "card"
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
"required": [
|
|
1329
|
+
"id",
|
|
1330
|
+
"component",
|
|
1331
|
+
"label",
|
|
1332
|
+
"value"
|
|
1333
|
+
],
|
|
1334
|
+
"additionalProperties": false
|
|
1335
|
+
},
|
|
1336
|
+
"Badge": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"description": "A short status label.",
|
|
1339
|
+
"x-derelicious": {
|
|
1340
|
+
"origin": "derelicious",
|
|
1341
|
+
"renders": [
|
|
1342
|
+
"Badge"
|
|
1343
|
+
],
|
|
1344
|
+
"status": "stable",
|
|
1345
|
+
"usage": [
|
|
1346
|
+
"Use for status, like \"Current\" or \"Beta\". Use Tag for keywords."
|
|
1347
|
+
]
|
|
1348
|
+
},
|
|
1349
|
+
"properties": {
|
|
1350
|
+
"id": {
|
|
1351
|
+
"$ref": "#/$defs/ComponentId"
|
|
1352
|
+
},
|
|
1353
|
+
"component": {
|
|
1354
|
+
"const": "Badge"
|
|
1355
|
+
},
|
|
1356
|
+
"accessibility": {
|
|
1357
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1358
|
+
},
|
|
1359
|
+
"weight": {
|
|
1360
|
+
"type": "number",
|
|
1361
|
+
"minimum": 0,
|
|
1362
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1363
|
+
},
|
|
1364
|
+
"text": {
|
|
1365
|
+
"$ref": "#/$defs/DynamicString",
|
|
1366
|
+
"description": "One or two words."
|
|
1367
|
+
},
|
|
1368
|
+
"tone": {
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"enum": [
|
|
1371
|
+
"neutral",
|
|
1372
|
+
"accent",
|
|
1373
|
+
"positive",
|
|
1374
|
+
"warning",
|
|
1375
|
+
"danger",
|
|
1376
|
+
"info"
|
|
1377
|
+
],
|
|
1378
|
+
"description": "Meaning and color.",
|
|
1379
|
+
"default": "neutral"
|
|
1380
|
+
},
|
|
1381
|
+
"variant": {
|
|
1382
|
+
"type": "string",
|
|
1383
|
+
"enum": [
|
|
1384
|
+
"soft",
|
|
1385
|
+
"outline"
|
|
1386
|
+
],
|
|
1387
|
+
"description": "Fill style.",
|
|
1388
|
+
"default": "soft"
|
|
1389
|
+
},
|
|
1390
|
+
"dot": {
|
|
1391
|
+
"type": "boolean",
|
|
1392
|
+
"description": "Status dot before the label.",
|
|
1393
|
+
"default": false
|
|
1394
|
+
},
|
|
1395
|
+
"icon": {
|
|
1396
|
+
"$ref": "#/$defs/DsIconName",
|
|
1397
|
+
"description": "Icon before the label."
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"required": [
|
|
1401
|
+
"id",
|
|
1402
|
+
"component",
|
|
1403
|
+
"text"
|
|
1404
|
+
],
|
|
1405
|
+
"additionalProperties": false
|
|
1406
|
+
},
|
|
1407
|
+
"Tag": {
|
|
1408
|
+
"type": "object",
|
|
1409
|
+
"description": "A keyword chip, optionally a link.",
|
|
1410
|
+
"x-derelicious": {
|
|
1411
|
+
"origin": "derelicious",
|
|
1412
|
+
"renders": [
|
|
1413
|
+
"Tag"
|
|
1414
|
+
],
|
|
1415
|
+
"status": "stable",
|
|
1416
|
+
"usage": [
|
|
1417
|
+
"Group tags in a Row with gap 2."
|
|
1418
|
+
]
|
|
1419
|
+
},
|
|
1420
|
+
"properties": {
|
|
1421
|
+
"id": {
|
|
1422
|
+
"$ref": "#/$defs/ComponentId"
|
|
1423
|
+
},
|
|
1424
|
+
"component": {
|
|
1425
|
+
"const": "Tag"
|
|
1426
|
+
},
|
|
1427
|
+
"accessibility": {
|
|
1428
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1429
|
+
},
|
|
1430
|
+
"weight": {
|
|
1431
|
+
"type": "number",
|
|
1432
|
+
"minimum": 0,
|
|
1433
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1434
|
+
},
|
|
1435
|
+
"text": {
|
|
1436
|
+
"$ref": "#/$defs/DynamicString",
|
|
1437
|
+
"description": "The keyword."
|
|
1438
|
+
},
|
|
1439
|
+
"href": {
|
|
1440
|
+
"$ref": "#/$defs/DynamicHref",
|
|
1441
|
+
"description": "Make the tag a link."
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"required": [
|
|
1445
|
+
"id",
|
|
1446
|
+
"component",
|
|
1447
|
+
"text"
|
|
1448
|
+
],
|
|
1449
|
+
"additionalProperties": false
|
|
1450
|
+
},
|
|
1451
|
+
"Avatar": {
|
|
1452
|
+
"type": "object",
|
|
1453
|
+
"description": "A person's photo or initials in a circle.",
|
|
1454
|
+
"x-derelicious": {
|
|
1455
|
+
"origin": "derelicious",
|
|
1456
|
+
"renders": [
|
|
1457
|
+
"Avatar"
|
|
1458
|
+
],
|
|
1459
|
+
"status": "stable",
|
|
1460
|
+
"usage": [
|
|
1461
|
+
"Without a photo URL, the initials show."
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
"properties": {
|
|
1465
|
+
"id": {
|
|
1466
|
+
"$ref": "#/$defs/ComponentId"
|
|
1467
|
+
},
|
|
1468
|
+
"component": {
|
|
1469
|
+
"const": "Avatar"
|
|
1470
|
+
},
|
|
1471
|
+
"accessibility": {
|
|
1472
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1473
|
+
},
|
|
1474
|
+
"weight": {
|
|
1475
|
+
"type": "number",
|
|
1476
|
+
"minimum": 0,
|
|
1477
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1478
|
+
},
|
|
1479
|
+
"name": {
|
|
1480
|
+
"$ref": "#/$defs/DynamicString",
|
|
1481
|
+
"description": "Full name. Initials come from it."
|
|
1482
|
+
},
|
|
1483
|
+
"src": {
|
|
1484
|
+
"$ref": "#/$defs/DynamicImageUrl",
|
|
1485
|
+
"description": "Photo URL. Only use one you were given."
|
|
1486
|
+
},
|
|
1487
|
+
"size": {
|
|
1488
|
+
"type": "string",
|
|
1489
|
+
"enum": [
|
|
1490
|
+
"sm",
|
|
1491
|
+
"md",
|
|
1492
|
+
"lg",
|
|
1493
|
+
"xl"
|
|
1494
|
+
],
|
|
1495
|
+
"description": "Size.",
|
|
1496
|
+
"default": "md"
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
"required": [
|
|
1500
|
+
"id",
|
|
1501
|
+
"component",
|
|
1502
|
+
"name"
|
|
1503
|
+
],
|
|
1504
|
+
"additionalProperties": false
|
|
1505
|
+
},
|
|
1506
|
+
"Quote": {
|
|
1507
|
+
"type": "object",
|
|
1508
|
+
"description": "A pull quote with attribution.",
|
|
1509
|
+
"x-derelicious": {
|
|
1510
|
+
"origin": "derelicious",
|
|
1511
|
+
"renders": [
|
|
1512
|
+
"Quote"
|
|
1513
|
+
],
|
|
1514
|
+
"status": "stable",
|
|
1515
|
+
"usage": [
|
|
1516
|
+
"Only quote words that appear in your sources."
|
|
1517
|
+
]
|
|
1518
|
+
},
|
|
1519
|
+
"properties": {
|
|
1520
|
+
"id": {
|
|
1521
|
+
"$ref": "#/$defs/ComponentId"
|
|
1522
|
+
},
|
|
1523
|
+
"component": {
|
|
1524
|
+
"const": "Quote"
|
|
1525
|
+
},
|
|
1526
|
+
"accessibility": {
|
|
1527
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1528
|
+
},
|
|
1529
|
+
"weight": {
|
|
1530
|
+
"type": "number",
|
|
1531
|
+
"minimum": 0,
|
|
1532
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1533
|
+
},
|
|
1534
|
+
"text": {
|
|
1535
|
+
"$ref": "#/$defs/DynamicString",
|
|
1536
|
+
"description": "The quoted words, without quotation marks."
|
|
1537
|
+
},
|
|
1538
|
+
"attribution": {
|
|
1539
|
+
"$ref": "#/$defs/DynamicString",
|
|
1540
|
+
"description": "Who said it."
|
|
1541
|
+
},
|
|
1542
|
+
"source": {
|
|
1543
|
+
"$ref": "#/$defs/DynamicString",
|
|
1544
|
+
"description": "Their role, or where it was said."
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
"required": [
|
|
1548
|
+
"id",
|
|
1549
|
+
"component",
|
|
1550
|
+
"text"
|
|
1551
|
+
],
|
|
1552
|
+
"additionalProperties": false
|
|
1553
|
+
},
|
|
1554
|
+
"Timeline": {
|
|
1555
|
+
"type": "object",
|
|
1556
|
+
"description": "Events in order along a vertical rail, like a career.",
|
|
1557
|
+
"x-derelicious": {
|
|
1558
|
+
"origin": "derelicious",
|
|
1559
|
+
"renders": [
|
|
1560
|
+
"Timeline"
|
|
1561
|
+
],
|
|
1562
|
+
"status": "stable",
|
|
1563
|
+
"usage": [
|
|
1564
|
+
"Use for a career or a sequence of steps."
|
|
1565
|
+
]
|
|
1566
|
+
},
|
|
1567
|
+
"properties": {
|
|
1568
|
+
"id": {
|
|
1569
|
+
"$ref": "#/$defs/ComponentId"
|
|
1570
|
+
},
|
|
1571
|
+
"component": {
|
|
1572
|
+
"const": "Timeline"
|
|
1573
|
+
},
|
|
1574
|
+
"accessibility": {
|
|
1575
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1576
|
+
},
|
|
1577
|
+
"weight": {
|
|
1578
|
+
"type": "number",
|
|
1579
|
+
"minimum": 0,
|
|
1580
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1581
|
+
},
|
|
1582
|
+
"items": {
|
|
1583
|
+
"title": "a list of {title, meta, description, current} or a binding",
|
|
1584
|
+
"description": "Events, newest first, or a {\"path\"} binding to a list.",
|
|
1585
|
+
"oneOf": [
|
|
1586
|
+
{
|
|
1587
|
+
"type": "array",
|
|
1588
|
+
"description": "Events.",
|
|
1589
|
+
"items": {
|
|
1590
|
+
"type": "object",
|
|
1591
|
+
"properties": {
|
|
1592
|
+
"title": {
|
|
1593
|
+
"$ref": "#/$defs/DynamicString",
|
|
1594
|
+
"description": "The event, like a role and company."
|
|
1595
|
+
},
|
|
1596
|
+
"meta": {
|
|
1597
|
+
"$ref": "#/$defs/DynamicString",
|
|
1598
|
+
"description": "When, like \"2021 – 2024\"."
|
|
1599
|
+
},
|
|
1600
|
+
"description": {
|
|
1601
|
+
"$ref": "#/$defs/DynamicString",
|
|
1602
|
+
"description": "One sentence."
|
|
1603
|
+
},
|
|
1604
|
+
"current": {
|
|
1605
|
+
"type": "boolean",
|
|
1606
|
+
"description": "Marks the current item.",
|
|
1607
|
+
"default": false
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
"required": [
|
|
1611
|
+
"title"
|
|
1612
|
+
],
|
|
1613
|
+
"additionalProperties": false
|
|
1614
|
+
},
|
|
1615
|
+
"minItems": 1,
|
|
1616
|
+
"maxItems": 30
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"$ref": "#/$defs/DataBinding"
|
|
1620
|
+
}
|
|
1621
|
+
]
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
"required": [
|
|
1625
|
+
"id",
|
|
1626
|
+
"component",
|
|
1627
|
+
"items"
|
|
1628
|
+
],
|
|
1629
|
+
"additionalProperties": false
|
|
1630
|
+
},
|
|
1631
|
+
"Table": {
|
|
1632
|
+
"type": "object",
|
|
1633
|
+
"description": "A data table with a caption, columns, and rows.",
|
|
1634
|
+
"x-derelicious": {
|
|
1635
|
+
"origin": "derelicious",
|
|
1636
|
+
"renders": [
|
|
1637
|
+
"Table"
|
|
1638
|
+
],
|
|
1639
|
+
"status": "stable",
|
|
1640
|
+
"usage": [
|
|
1641
|
+
"Keep it to four columns or fewer so it fits a phone.",
|
|
1642
|
+
"Use for comparisons. Use Stats or a List for a few values."
|
|
1643
|
+
]
|
|
1644
|
+
},
|
|
1645
|
+
"properties": {
|
|
1646
|
+
"id": {
|
|
1647
|
+
"$ref": "#/$defs/ComponentId"
|
|
1648
|
+
},
|
|
1649
|
+
"component": {
|
|
1650
|
+
"const": "Table"
|
|
1651
|
+
},
|
|
1652
|
+
"accessibility": {
|
|
1653
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1654
|
+
},
|
|
1655
|
+
"weight": {
|
|
1656
|
+
"type": "number",
|
|
1657
|
+
"minimum": 0,
|
|
1658
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1659
|
+
},
|
|
1660
|
+
"caption": {
|
|
1661
|
+
"$ref": "#/$defs/DynamicString",
|
|
1662
|
+
"description": "Names the table."
|
|
1663
|
+
},
|
|
1664
|
+
"columns": {
|
|
1665
|
+
"type": "array",
|
|
1666
|
+
"description": "Columns, in order.",
|
|
1667
|
+
"items": {
|
|
1668
|
+
"type": "object",
|
|
1669
|
+
"properties": {
|
|
1670
|
+
"key": {
|
|
1671
|
+
"type": "string",
|
|
1672
|
+
"description": "The row field this column shows."
|
|
1673
|
+
},
|
|
1674
|
+
"header": {
|
|
1675
|
+
"$ref": "#/$defs/DynamicString",
|
|
1676
|
+
"description": "Column heading."
|
|
1677
|
+
},
|
|
1678
|
+
"align": {
|
|
1679
|
+
"type": "string",
|
|
1680
|
+
"enum": [
|
|
1681
|
+
"start",
|
|
1682
|
+
"center",
|
|
1683
|
+
"end"
|
|
1684
|
+
],
|
|
1685
|
+
"description": "Cell alignment."
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1688
|
+
"required": [
|
|
1689
|
+
"key",
|
|
1690
|
+
"header"
|
|
1691
|
+
],
|
|
1692
|
+
"additionalProperties": false
|
|
1693
|
+
},
|
|
1694
|
+
"minItems": 1,
|
|
1695
|
+
"maxItems": 8
|
|
1696
|
+
},
|
|
1697
|
+
"rows": {
|
|
1698
|
+
"title": "a list of row objects or a binding",
|
|
1699
|
+
"description": "One object per row with a value for each column key, or a {\"path\"} binding to such a list.",
|
|
1700
|
+
"oneOf": [
|
|
1701
|
+
{
|
|
1702
|
+
"type": "array",
|
|
1703
|
+
"description": "Rows.",
|
|
1704
|
+
"items": {
|
|
1705
|
+
"type": "object",
|
|
1706
|
+
"additionalProperties": {
|
|
1707
|
+
"type": [
|
|
1708
|
+
"string",
|
|
1709
|
+
"number",
|
|
1710
|
+
"boolean",
|
|
1711
|
+
"null"
|
|
1712
|
+
]
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
"maxItems": 50
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"$ref": "#/$defs/DataBinding"
|
|
1719
|
+
}
|
|
1720
|
+
]
|
|
1721
|
+
},
|
|
1722
|
+
"rowHeader": {
|
|
1723
|
+
"type": "string",
|
|
1724
|
+
"description": "Column key whose cells name each row."
|
|
1725
|
+
},
|
|
1726
|
+
"density": {
|
|
1727
|
+
"type": "string",
|
|
1728
|
+
"enum": [
|
|
1729
|
+
"comfortable",
|
|
1730
|
+
"compact"
|
|
1731
|
+
],
|
|
1732
|
+
"description": "Cell padding.",
|
|
1733
|
+
"default": "comfortable"
|
|
1734
|
+
},
|
|
1735
|
+
"striped": {
|
|
1736
|
+
"type": "boolean",
|
|
1737
|
+
"description": "Tint every other row.",
|
|
1738
|
+
"default": false
|
|
1739
|
+
},
|
|
1740
|
+
"hideCaption": {
|
|
1741
|
+
"type": "boolean",
|
|
1742
|
+
"description": "Hide the caption visually.",
|
|
1743
|
+
"default": false
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"required": [
|
|
1747
|
+
"id",
|
|
1748
|
+
"component",
|
|
1749
|
+
"caption",
|
|
1750
|
+
"columns",
|
|
1751
|
+
"rows"
|
|
1752
|
+
],
|
|
1753
|
+
"additionalProperties": false
|
|
1754
|
+
},
|
|
1755
|
+
"Alert": {
|
|
1756
|
+
"type": "object",
|
|
1757
|
+
"description": "A short message about a state, with a tone.",
|
|
1758
|
+
"x-derelicious": {
|
|
1759
|
+
"origin": "derelicious",
|
|
1760
|
+
"renders": [
|
|
1761
|
+
"Alert"
|
|
1762
|
+
],
|
|
1763
|
+
"status": "stable",
|
|
1764
|
+
"usage": [
|
|
1765
|
+
"Set a title, a text, or both."
|
|
1766
|
+
],
|
|
1767
|
+
"requireOneOf": [
|
|
1768
|
+
[
|
|
1769
|
+
"title",
|
|
1770
|
+
"text"
|
|
1771
|
+
]
|
|
1772
|
+
]
|
|
1773
|
+
},
|
|
1774
|
+
"properties": {
|
|
1775
|
+
"id": {
|
|
1776
|
+
"$ref": "#/$defs/ComponentId"
|
|
1777
|
+
},
|
|
1778
|
+
"component": {
|
|
1779
|
+
"const": "Alert"
|
|
1780
|
+
},
|
|
1781
|
+
"accessibility": {
|
|
1782
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1783
|
+
},
|
|
1784
|
+
"weight": {
|
|
1785
|
+
"type": "number",
|
|
1786
|
+
"minimum": 0,
|
|
1787
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1788
|
+
},
|
|
1789
|
+
"tone": {
|
|
1790
|
+
"type": "string",
|
|
1791
|
+
"enum": [
|
|
1792
|
+
"info",
|
|
1793
|
+
"positive",
|
|
1794
|
+
"warning",
|
|
1795
|
+
"danger"
|
|
1796
|
+
],
|
|
1797
|
+
"description": "Meaning, color, and icon.",
|
|
1798
|
+
"default": "info"
|
|
1799
|
+
},
|
|
1800
|
+
"title": {
|
|
1801
|
+
"$ref": "#/$defs/DynamicString",
|
|
1802
|
+
"description": "One line that says what happened."
|
|
1803
|
+
},
|
|
1804
|
+
"text": {
|
|
1805
|
+
"$ref": "#/$defs/DynamicString",
|
|
1806
|
+
"description": "Details or next steps."
|
|
1807
|
+
}
|
|
1808
|
+
},
|
|
1809
|
+
"required": [
|
|
1810
|
+
"id",
|
|
1811
|
+
"component"
|
|
1812
|
+
],
|
|
1813
|
+
"additionalProperties": false
|
|
1814
|
+
},
|
|
1815
|
+
"Progress": {
|
|
1816
|
+
"type": "object",
|
|
1817
|
+
"description": "A labeled progress bar.",
|
|
1818
|
+
"x-derelicious": {
|
|
1819
|
+
"origin": "derelicious",
|
|
1820
|
+
"renders": [
|
|
1821
|
+
"Progress"
|
|
1822
|
+
],
|
|
1823
|
+
"status": "stable",
|
|
1824
|
+
"usage": [
|
|
1825
|
+
"Use for real progress toward a known total."
|
|
1826
|
+
]
|
|
1827
|
+
},
|
|
1828
|
+
"properties": {
|
|
1829
|
+
"id": {
|
|
1830
|
+
"$ref": "#/$defs/ComponentId"
|
|
1831
|
+
},
|
|
1832
|
+
"component": {
|
|
1833
|
+
"const": "Progress"
|
|
1834
|
+
},
|
|
1835
|
+
"accessibility": {
|
|
1836
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1837
|
+
},
|
|
1838
|
+
"weight": {
|
|
1839
|
+
"type": "number",
|
|
1840
|
+
"minimum": 0,
|
|
1841
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1842
|
+
},
|
|
1843
|
+
"label": {
|
|
1844
|
+
"$ref": "#/$defs/DynamicString",
|
|
1845
|
+
"description": "What is in progress."
|
|
1846
|
+
},
|
|
1847
|
+
"value": {
|
|
1848
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
1849
|
+
"description": "Current value. Omit for indeterminate."
|
|
1850
|
+
},
|
|
1851
|
+
"max": {
|
|
1852
|
+
"type": "number",
|
|
1853
|
+
"description": "Value that means done.",
|
|
1854
|
+
"default": 100
|
|
1855
|
+
},
|
|
1856
|
+
"tone": {
|
|
1857
|
+
"type": "string",
|
|
1858
|
+
"enum": [
|
|
1859
|
+
"accent",
|
|
1860
|
+
"positive",
|
|
1861
|
+
"warning",
|
|
1862
|
+
"danger"
|
|
1863
|
+
],
|
|
1864
|
+
"description": "Bar color.",
|
|
1865
|
+
"default": "accent"
|
|
1866
|
+
},
|
|
1867
|
+
"valueText": {
|
|
1868
|
+
"$ref": "#/$defs/DynamicString",
|
|
1869
|
+
"description": "Spoken value, like \"3 of 5 steps\"."
|
|
1870
|
+
},
|
|
1871
|
+
"description": {
|
|
1872
|
+
"$ref": "#/$defs/DynamicString",
|
|
1873
|
+
"description": "Detail under the bar."
|
|
1874
|
+
},
|
|
1875
|
+
"showValue": {
|
|
1876
|
+
"type": "boolean",
|
|
1877
|
+
"description": "Show the percentage.",
|
|
1878
|
+
"default": true
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1881
|
+
"required": [
|
|
1882
|
+
"id",
|
|
1883
|
+
"component",
|
|
1884
|
+
"label"
|
|
1885
|
+
],
|
|
1886
|
+
"additionalProperties": false
|
|
1887
|
+
},
|
|
1888
|
+
"Link": {
|
|
1889
|
+
"type": "object",
|
|
1890
|
+
"description": "A text link. Site paths navigate inside the site; https URLs open in a new tab.",
|
|
1891
|
+
"x-derelicious": {
|
|
1892
|
+
"origin": "derelicious",
|
|
1893
|
+
"renders": [
|
|
1894
|
+
"Link"
|
|
1895
|
+
],
|
|
1896
|
+
"status": "stable",
|
|
1897
|
+
"usage": [
|
|
1898
|
+
"Only link to paths and URLs you were given."
|
|
1899
|
+
]
|
|
1900
|
+
},
|
|
1901
|
+
"properties": {
|
|
1902
|
+
"id": {
|
|
1903
|
+
"$ref": "#/$defs/ComponentId"
|
|
1904
|
+
},
|
|
1905
|
+
"component": {
|
|
1906
|
+
"const": "Link"
|
|
1907
|
+
},
|
|
1908
|
+
"accessibility": {
|
|
1909
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1910
|
+
},
|
|
1911
|
+
"weight": {
|
|
1912
|
+
"type": "number",
|
|
1913
|
+
"minimum": 0,
|
|
1914
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1915
|
+
},
|
|
1916
|
+
"text": {
|
|
1917
|
+
"$ref": "#/$defs/DynamicString",
|
|
1918
|
+
"description": "Link text that says where it goes."
|
|
1919
|
+
},
|
|
1920
|
+
"href": {
|
|
1921
|
+
"$ref": "#/$defs/DynamicHref",
|
|
1922
|
+
"description": "A site path like \"/work/anvil2\" or an https URL."
|
|
1923
|
+
},
|
|
1924
|
+
"variant": {
|
|
1925
|
+
"type": "string",
|
|
1926
|
+
"enum": [
|
|
1927
|
+
"inline",
|
|
1928
|
+
"standalone"
|
|
1929
|
+
],
|
|
1930
|
+
"description": "standalone stands on its own line with an arrow.",
|
|
1931
|
+
"default": "standalone"
|
|
1932
|
+
},
|
|
1933
|
+
"icon": {
|
|
1934
|
+
"$ref": "#/$defs/DsIconName",
|
|
1935
|
+
"description": "Icon after the text."
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
"required": [
|
|
1939
|
+
"id",
|
|
1940
|
+
"component",
|
|
1941
|
+
"text",
|
|
1942
|
+
"href"
|
|
1943
|
+
],
|
|
1944
|
+
"additionalProperties": false
|
|
1945
|
+
},
|
|
1946
|
+
"Grid": {
|
|
1947
|
+
"type": "object",
|
|
1948
|
+
"description": "Equal columns that adapt to the width: as many as fit, then they wrap.",
|
|
1949
|
+
"x-derelicious": {
|
|
1950
|
+
"origin": "derelicious",
|
|
1951
|
+
"renders": [
|
|
1952
|
+
"Grid"
|
|
1953
|
+
],
|
|
1954
|
+
"status": "stable",
|
|
1955
|
+
"usage": [
|
|
1956
|
+
"Use for Stats (min \"10rem\") and Cards (min \"14rem\" or wider)."
|
|
1957
|
+
]
|
|
1958
|
+
},
|
|
1959
|
+
"properties": {
|
|
1960
|
+
"id": {
|
|
1961
|
+
"$ref": "#/$defs/ComponentId"
|
|
1962
|
+
},
|
|
1963
|
+
"component": {
|
|
1964
|
+
"const": "Grid"
|
|
1965
|
+
},
|
|
1966
|
+
"accessibility": {
|
|
1967
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
1968
|
+
},
|
|
1969
|
+
"weight": {
|
|
1970
|
+
"type": "number",
|
|
1971
|
+
"minimum": 0,
|
|
1972
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
1973
|
+
},
|
|
1974
|
+
"children": {
|
|
1975
|
+
"$ref": "#/$defs/ChildList",
|
|
1976
|
+
"description": "The cells."
|
|
1977
|
+
},
|
|
1978
|
+
"min": {
|
|
1979
|
+
"type": "string",
|
|
1980
|
+
"enum": [
|
|
1981
|
+
"8rem",
|
|
1982
|
+
"10rem",
|
|
1983
|
+
"12rem",
|
|
1984
|
+
"14rem",
|
|
1985
|
+
"16rem",
|
|
1986
|
+
"20rem"
|
|
1987
|
+
],
|
|
1988
|
+
"description": "Narrowest a column may get.",
|
|
1989
|
+
"default": "16rem"
|
|
1990
|
+
},
|
|
1991
|
+
"maxColumns": {
|
|
1992
|
+
"type": "integer",
|
|
1993
|
+
"minimum": 1,
|
|
1994
|
+
"maximum": 6,
|
|
1995
|
+
"description": "Most columns however wide it gets."
|
|
1996
|
+
},
|
|
1997
|
+
"gap": {
|
|
1998
|
+
"type": "integer",
|
|
1999
|
+
"enum": [
|
|
2000
|
+
0,
|
|
2001
|
+
1,
|
|
2002
|
+
2,
|
|
2003
|
+
3,
|
|
2004
|
+
4,
|
|
2005
|
+
6,
|
|
2006
|
+
8
|
|
2007
|
+
],
|
|
2008
|
+
"description": "Space between children, as a step of the space scale (3 is 0.75rem, 4 is 1rem). Derelicious extension.",
|
|
2009
|
+
"default": 4
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"required": [
|
|
2013
|
+
"id",
|
|
2014
|
+
"component",
|
|
2015
|
+
"children"
|
|
2016
|
+
],
|
|
2017
|
+
"additionalProperties": false
|
|
2018
|
+
},
|
|
2019
|
+
"Accordion": {
|
|
2020
|
+
"type": "object",
|
|
2021
|
+
"description": "Sections that expand and collapse.",
|
|
2022
|
+
"x-derelicious": {
|
|
2023
|
+
"origin": "derelicious",
|
|
2024
|
+
"renders": [
|
|
2025
|
+
"Accordion"
|
|
2026
|
+
],
|
|
2027
|
+
"status": "stable",
|
|
2028
|
+
"usage": [
|
|
2029
|
+
"Use for details people may skip."
|
|
2030
|
+
]
|
|
2031
|
+
},
|
|
2032
|
+
"properties": {
|
|
2033
|
+
"id": {
|
|
2034
|
+
"$ref": "#/$defs/ComponentId"
|
|
2035
|
+
},
|
|
2036
|
+
"component": {
|
|
2037
|
+
"const": "Accordion"
|
|
2038
|
+
},
|
|
2039
|
+
"accessibility": {
|
|
2040
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2041
|
+
},
|
|
2042
|
+
"weight": {
|
|
2043
|
+
"type": "number",
|
|
2044
|
+
"minimum": 0,
|
|
2045
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2046
|
+
},
|
|
2047
|
+
"items": {
|
|
2048
|
+
"type": "array",
|
|
2049
|
+
"description": "Sections, in order.",
|
|
2050
|
+
"items": {
|
|
2051
|
+
"type": "object",
|
|
2052
|
+
"properties": {
|
|
2053
|
+
"title": {
|
|
2054
|
+
"$ref": "#/$defs/DynamicString",
|
|
2055
|
+
"description": "The section title."
|
|
2056
|
+
},
|
|
2057
|
+
"child": {
|
|
2058
|
+
"$ref": "#/$defs/ComponentId",
|
|
2059
|
+
"description": "The component shown when open."
|
|
2060
|
+
},
|
|
2061
|
+
"open": {
|
|
2062
|
+
"type": "boolean",
|
|
2063
|
+
"description": "Start open.",
|
|
2064
|
+
"default": false
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
"required": [
|
|
2068
|
+
"title",
|
|
2069
|
+
"child"
|
|
2070
|
+
],
|
|
2071
|
+
"additionalProperties": false
|
|
2072
|
+
},
|
|
2073
|
+
"minItems": 1,
|
|
2074
|
+
"maxItems": 12
|
|
2075
|
+
},
|
|
2076
|
+
"exclusive": {
|
|
2077
|
+
"type": "boolean",
|
|
2078
|
+
"description": "Only one section open at a time.",
|
|
2079
|
+
"default": false
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"required": [
|
|
2083
|
+
"id",
|
|
2084
|
+
"component",
|
|
2085
|
+
"items"
|
|
2086
|
+
],
|
|
2087
|
+
"additionalProperties": false
|
|
2088
|
+
},
|
|
2089
|
+
"CodeBlock": {
|
|
2090
|
+
"type": "object",
|
|
2091
|
+
"description": "A block of code with a copy button.",
|
|
2092
|
+
"x-derelicious": {
|
|
2093
|
+
"origin": "derelicious",
|
|
2094
|
+
"renders": [
|
|
2095
|
+
"CodeBlock"
|
|
2096
|
+
],
|
|
2097
|
+
"status": "stable",
|
|
2098
|
+
"usage": [
|
|
2099
|
+
"Keep it short."
|
|
2100
|
+
]
|
|
2101
|
+
},
|
|
2102
|
+
"properties": {
|
|
2103
|
+
"id": {
|
|
2104
|
+
"$ref": "#/$defs/ComponentId"
|
|
2105
|
+
},
|
|
2106
|
+
"component": {
|
|
2107
|
+
"const": "CodeBlock"
|
|
2108
|
+
},
|
|
2109
|
+
"accessibility": {
|
|
2110
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2111
|
+
},
|
|
2112
|
+
"weight": {
|
|
2113
|
+
"type": "number",
|
|
2114
|
+
"minimum": 0,
|
|
2115
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2116
|
+
},
|
|
2117
|
+
"code": {
|
|
2118
|
+
"$ref": "#/$defs/DynamicString",
|
|
2119
|
+
"description": "The code, as plain text."
|
|
2120
|
+
},
|
|
2121
|
+
"language": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"description": "Language label, like \"tsx\"."
|
|
2124
|
+
},
|
|
2125
|
+
"title": {
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"description": "File name or caption."
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
"required": [
|
|
2131
|
+
"id",
|
|
2132
|
+
"component",
|
|
2133
|
+
"code"
|
|
2134
|
+
],
|
|
2135
|
+
"additionalProperties": false
|
|
2136
|
+
},
|
|
2137
|
+
"Switch": {
|
|
2138
|
+
"type": "object",
|
|
2139
|
+
"description": "An on/off setting that takes effect right away.",
|
|
2140
|
+
"x-derelicious": {
|
|
2141
|
+
"origin": "derelicious",
|
|
2142
|
+
"renders": [
|
|
2143
|
+
"Switch"
|
|
2144
|
+
],
|
|
2145
|
+
"status": "stable",
|
|
2146
|
+
"usage": [
|
|
2147
|
+
"For a choice that is submitted later, use CheckBox."
|
|
2148
|
+
]
|
|
2149
|
+
},
|
|
2150
|
+
"properties": {
|
|
2151
|
+
"id": {
|
|
2152
|
+
"$ref": "#/$defs/ComponentId"
|
|
2153
|
+
},
|
|
2154
|
+
"component": {
|
|
2155
|
+
"const": "Switch"
|
|
2156
|
+
},
|
|
2157
|
+
"accessibility": {
|
|
2158
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2159
|
+
},
|
|
2160
|
+
"weight": {
|
|
2161
|
+
"type": "number",
|
|
2162
|
+
"minimum": 0,
|
|
2163
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2164
|
+
},
|
|
2165
|
+
"label": {
|
|
2166
|
+
"$ref": "#/$defs/DynamicString",
|
|
2167
|
+
"description": "What the switch turns on."
|
|
2168
|
+
},
|
|
2169
|
+
"value": {
|
|
2170
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
2171
|
+
"description": "On or off. Bind it to a path."
|
|
2172
|
+
},
|
|
2173
|
+
"hint": {
|
|
2174
|
+
"$ref": "#/$defs/DynamicString",
|
|
2175
|
+
"description": "Help text."
|
|
2176
|
+
}
|
|
2177
|
+
},
|
|
2178
|
+
"required": [
|
|
2179
|
+
"id",
|
|
2180
|
+
"component",
|
|
2181
|
+
"label",
|
|
2182
|
+
"value"
|
|
2183
|
+
],
|
|
2184
|
+
"additionalProperties": false
|
|
2185
|
+
},
|
|
2186
|
+
"Select": {
|
|
2187
|
+
"type": "object",
|
|
2188
|
+
"description": "A labeled dropdown for one choice from a longer list.",
|
|
2189
|
+
"x-derelicious": {
|
|
2190
|
+
"origin": "derelicious",
|
|
2191
|
+
"renders": [
|
|
2192
|
+
"Select"
|
|
2193
|
+
],
|
|
2194
|
+
"status": "stable",
|
|
2195
|
+
"usage": [
|
|
2196
|
+
"For two to five choices, use ChoicePicker."
|
|
2197
|
+
]
|
|
2198
|
+
},
|
|
2199
|
+
"properties": {
|
|
2200
|
+
"id": {
|
|
2201
|
+
"$ref": "#/$defs/ComponentId"
|
|
2202
|
+
},
|
|
2203
|
+
"component": {
|
|
2204
|
+
"const": "Select"
|
|
2205
|
+
},
|
|
2206
|
+
"accessibility": {
|
|
2207
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2208
|
+
},
|
|
2209
|
+
"weight": {
|
|
2210
|
+
"type": "number",
|
|
2211
|
+
"minimum": 0,
|
|
2212
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2213
|
+
},
|
|
2214
|
+
"label": {
|
|
2215
|
+
"$ref": "#/$defs/DynamicString",
|
|
2216
|
+
"description": "Visible label."
|
|
2217
|
+
},
|
|
2218
|
+
"options": {
|
|
2219
|
+
"type": "array",
|
|
2220
|
+
"description": "The choices.",
|
|
2221
|
+
"items": {
|
|
2222
|
+
"type": "object",
|
|
2223
|
+
"properties": {
|
|
2224
|
+
"label": {
|
|
2225
|
+
"$ref": "#/$defs/DynamicString",
|
|
2226
|
+
"description": "What the person sees."
|
|
2227
|
+
},
|
|
2228
|
+
"value": {
|
|
2229
|
+
"type": "string",
|
|
2230
|
+
"description": "The stable value stored."
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
"required": [
|
|
2234
|
+
"label",
|
|
2235
|
+
"value"
|
|
2236
|
+
],
|
|
2237
|
+
"additionalProperties": false
|
|
2238
|
+
},
|
|
2239
|
+
"minItems": 1,
|
|
2240
|
+
"maxItems": 100
|
|
2241
|
+
},
|
|
2242
|
+
"value": {
|
|
2243
|
+
"$ref": "#/$defs/DynamicString",
|
|
2244
|
+
"description": "Selected value. Bind it to a path."
|
|
2245
|
+
},
|
|
2246
|
+
"placeholder": {
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"description": "Empty first option."
|
|
2249
|
+
},
|
|
2250
|
+
"hint": {
|
|
2251
|
+
"$ref": "#/$defs/DynamicString",
|
|
2252
|
+
"description": "Help text."
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
"required": [
|
|
2256
|
+
"id",
|
|
2257
|
+
"component",
|
|
2258
|
+
"label",
|
|
2259
|
+
"options"
|
|
2260
|
+
],
|
|
2261
|
+
"additionalProperties": false
|
|
2262
|
+
},
|
|
2263
|
+
"IconButton": {
|
|
2264
|
+
"type": "object",
|
|
2265
|
+
"description": "A round button with only an icon and a required label.",
|
|
2266
|
+
"x-derelicious": {
|
|
2267
|
+
"origin": "derelicious",
|
|
2268
|
+
"renders": [
|
|
2269
|
+
"IconButton"
|
|
2270
|
+
],
|
|
2271
|
+
"status": "stable",
|
|
2272
|
+
"usage": [
|
|
2273
|
+
"Use in a NavBar or toolbar. Needs an action or an href."
|
|
2274
|
+
],
|
|
2275
|
+
"requireOneOf": [
|
|
2276
|
+
[
|
|
2277
|
+
"action",
|
|
2278
|
+
"href"
|
|
2279
|
+
]
|
|
2280
|
+
]
|
|
2281
|
+
},
|
|
2282
|
+
"properties": {
|
|
2283
|
+
"id": {
|
|
2284
|
+
"$ref": "#/$defs/ComponentId"
|
|
2285
|
+
},
|
|
2286
|
+
"component": {
|
|
2287
|
+
"const": "IconButton"
|
|
2288
|
+
},
|
|
2289
|
+
"accessibility": {
|
|
2290
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2291
|
+
},
|
|
2292
|
+
"weight": {
|
|
2293
|
+
"type": "number",
|
|
2294
|
+
"minimum": 0,
|
|
2295
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2296
|
+
},
|
|
2297
|
+
"icon": {
|
|
2298
|
+
"$ref": "#/$defs/DsIconName",
|
|
2299
|
+
"description": "The icon."
|
|
2300
|
+
},
|
|
2301
|
+
"label": {
|
|
2302
|
+
"type": "string",
|
|
2303
|
+
"minLength": 1,
|
|
2304
|
+
"description": "What it does."
|
|
2305
|
+
},
|
|
2306
|
+
"action": {
|
|
2307
|
+
"$ref": "#/$defs/Action",
|
|
2308
|
+
"description": "What pressing it does."
|
|
2309
|
+
},
|
|
2310
|
+
"href": {
|
|
2311
|
+
"$ref": "#/$defs/DynamicHref",
|
|
2312
|
+
"description": "Make it a link."
|
|
2313
|
+
},
|
|
2314
|
+
"tone": {
|
|
2315
|
+
"type": "string",
|
|
2316
|
+
"enum": [
|
|
2317
|
+
"neutral",
|
|
2318
|
+
"ghost",
|
|
2319
|
+
"primary",
|
|
2320
|
+
"danger"
|
|
2321
|
+
],
|
|
2322
|
+
"description": "Style.",
|
|
2323
|
+
"default": "neutral"
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
"required": [
|
|
2327
|
+
"id",
|
|
2328
|
+
"component",
|
|
2329
|
+
"icon",
|
|
2330
|
+
"label"
|
|
2331
|
+
],
|
|
2332
|
+
"additionalProperties": false
|
|
2333
|
+
},
|
|
2334
|
+
"NavBar": {
|
|
2335
|
+
"type": "object",
|
|
2336
|
+
"description": "An app top bar with a brand, up to five links, and actions. It collapses to a menu when narrow.",
|
|
2337
|
+
"x-derelicious": {
|
|
2338
|
+
"origin": "derelicious",
|
|
2339
|
+
"renders": [
|
|
2340
|
+
"NavBar"
|
|
2341
|
+
],
|
|
2342
|
+
"status": "stable",
|
|
2343
|
+
"usage": [
|
|
2344
|
+
"Use only as the first child of a full screen."
|
|
2345
|
+
]
|
|
2346
|
+
},
|
|
2347
|
+
"properties": {
|
|
2348
|
+
"id": {
|
|
2349
|
+
"$ref": "#/$defs/ComponentId"
|
|
2350
|
+
},
|
|
2351
|
+
"component": {
|
|
2352
|
+
"const": "NavBar"
|
|
2353
|
+
},
|
|
2354
|
+
"accessibility": {
|
|
2355
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2356
|
+
},
|
|
2357
|
+
"weight": {
|
|
2358
|
+
"type": "number",
|
|
2359
|
+
"minimum": 0,
|
|
2360
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2361
|
+
},
|
|
2362
|
+
"brand": {
|
|
2363
|
+
"type": "string",
|
|
2364
|
+
"minLength": 1,
|
|
2365
|
+
"description": "Product name."
|
|
2366
|
+
},
|
|
2367
|
+
"mark": {
|
|
2368
|
+
"type": "string",
|
|
2369
|
+
"maxLength": 3,
|
|
2370
|
+
"description": "Short mark in an accent square, like \"DW\"."
|
|
2371
|
+
},
|
|
2372
|
+
"links": {
|
|
2373
|
+
"type": "array",
|
|
2374
|
+
"description": "Primary destinations.",
|
|
2375
|
+
"items": {
|
|
2376
|
+
"type": "object",
|
|
2377
|
+
"properties": {
|
|
2378
|
+
"label": {
|
|
2379
|
+
"type": "string",
|
|
2380
|
+
"description": "Link text."
|
|
2381
|
+
},
|
|
2382
|
+
"href": {
|
|
2383
|
+
"$ref": "#/$defs/Href",
|
|
2384
|
+
"description": "Where it goes."
|
|
2385
|
+
},
|
|
2386
|
+
"current": {
|
|
2387
|
+
"type": "boolean",
|
|
2388
|
+
"description": "The page the person is on.",
|
|
2389
|
+
"default": false
|
|
2390
|
+
}
|
|
2391
|
+
},
|
|
2392
|
+
"required": [
|
|
2393
|
+
"label",
|
|
2394
|
+
"href"
|
|
2395
|
+
],
|
|
2396
|
+
"additionalProperties": false
|
|
2397
|
+
},
|
|
2398
|
+
"maxItems": 5
|
|
2399
|
+
},
|
|
2400
|
+
"actions": {
|
|
2401
|
+
"$ref": "#/$defs/ChildList",
|
|
2402
|
+
"description": "IconButtons on the right."
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
"required": [
|
|
2406
|
+
"id",
|
|
2407
|
+
"component",
|
|
2408
|
+
"brand"
|
|
2409
|
+
],
|
|
2410
|
+
"additionalProperties": false
|
|
2411
|
+
},
|
|
2412
|
+
"TabBar": {
|
|
2413
|
+
"type": "object",
|
|
2414
|
+
"description": "Bottom navigation for phone screens.",
|
|
2415
|
+
"x-derelicious": {
|
|
2416
|
+
"origin": "derelicious",
|
|
2417
|
+
"renders": [
|
|
2418
|
+
"TabBar"
|
|
2419
|
+
],
|
|
2420
|
+
"status": "stable",
|
|
2421
|
+
"usage": [
|
|
2422
|
+
"Use only as the last child of a phone screen."
|
|
2423
|
+
]
|
|
2424
|
+
},
|
|
2425
|
+
"properties": {
|
|
2426
|
+
"id": {
|
|
2427
|
+
"$ref": "#/$defs/ComponentId"
|
|
2428
|
+
},
|
|
2429
|
+
"component": {
|
|
2430
|
+
"const": "TabBar"
|
|
2431
|
+
},
|
|
2432
|
+
"accessibility": {
|
|
2433
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2434
|
+
},
|
|
2435
|
+
"weight": {
|
|
2436
|
+
"type": "number",
|
|
2437
|
+
"minimum": 0,
|
|
2438
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2439
|
+
},
|
|
2440
|
+
"items": {
|
|
2441
|
+
"type": "array",
|
|
2442
|
+
"description": "Three to five destinations.",
|
|
2443
|
+
"items": {
|
|
2444
|
+
"type": "object",
|
|
2445
|
+
"properties": {
|
|
2446
|
+
"label": {
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"description": "Link text."
|
|
2449
|
+
},
|
|
2450
|
+
"href": {
|
|
2451
|
+
"$ref": "#/$defs/Href",
|
|
2452
|
+
"description": "Where it goes."
|
|
2453
|
+
},
|
|
2454
|
+
"icon": {
|
|
2455
|
+
"$ref": "#/$defs/DsIconName",
|
|
2456
|
+
"description": "The icon."
|
|
2457
|
+
},
|
|
2458
|
+
"current": {
|
|
2459
|
+
"type": "boolean",
|
|
2460
|
+
"description": "The screen the person is on.",
|
|
2461
|
+
"default": false
|
|
2462
|
+
}
|
|
2463
|
+
},
|
|
2464
|
+
"required": [
|
|
2465
|
+
"label",
|
|
2466
|
+
"href",
|
|
2467
|
+
"icon"
|
|
2468
|
+
],
|
|
2469
|
+
"additionalProperties": false
|
|
2470
|
+
},
|
|
2471
|
+
"minItems": 2,
|
|
2472
|
+
"maxItems": 5
|
|
2473
|
+
}
|
|
2474
|
+
},
|
|
2475
|
+
"required": [
|
|
2476
|
+
"id",
|
|
2477
|
+
"component",
|
|
2478
|
+
"items"
|
|
2479
|
+
],
|
|
2480
|
+
"additionalProperties": false
|
|
2481
|
+
},
|
|
2482
|
+
"SideNav": {
|
|
2483
|
+
"type": "object",
|
|
2484
|
+
"description": "Vertical navigation grouped into titled sections.",
|
|
2485
|
+
"x-derelicious": {
|
|
2486
|
+
"origin": "derelicious",
|
|
2487
|
+
"renders": [
|
|
2488
|
+
"SideNav"
|
|
2489
|
+
],
|
|
2490
|
+
"status": "stable",
|
|
2491
|
+
"usage": [
|
|
2492
|
+
"Use for wide screens with many destinations."
|
|
2493
|
+
]
|
|
2494
|
+
},
|
|
2495
|
+
"properties": {
|
|
2496
|
+
"id": {
|
|
2497
|
+
"$ref": "#/$defs/ComponentId"
|
|
2498
|
+
},
|
|
2499
|
+
"component": {
|
|
2500
|
+
"const": "SideNav"
|
|
2501
|
+
},
|
|
2502
|
+
"accessibility": {
|
|
2503
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2504
|
+
},
|
|
2505
|
+
"weight": {
|
|
2506
|
+
"type": "number",
|
|
2507
|
+
"minimum": 0,
|
|
2508
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2509
|
+
},
|
|
2510
|
+
"label": {
|
|
2511
|
+
"type": "string",
|
|
2512
|
+
"minLength": 1,
|
|
2513
|
+
"description": "Names the navigation."
|
|
2514
|
+
},
|
|
2515
|
+
"sections": {
|
|
2516
|
+
"type": "array",
|
|
2517
|
+
"description": "Groups of links.",
|
|
2518
|
+
"items": {
|
|
2519
|
+
"type": "object",
|
|
2520
|
+
"properties": {
|
|
2521
|
+
"title": {
|
|
2522
|
+
"type": "string",
|
|
2523
|
+
"description": "Section title."
|
|
2524
|
+
},
|
|
2525
|
+
"items": {
|
|
2526
|
+
"type": "array",
|
|
2527
|
+
"description": "Links.",
|
|
2528
|
+
"items": {
|
|
2529
|
+
"type": "object",
|
|
2530
|
+
"properties": {
|
|
2531
|
+
"label": {
|
|
2532
|
+
"type": "string",
|
|
2533
|
+
"description": "Link text."
|
|
2534
|
+
},
|
|
2535
|
+
"href": {
|
|
2536
|
+
"$ref": "#/$defs/Href",
|
|
2537
|
+
"description": "Where it goes."
|
|
2538
|
+
},
|
|
2539
|
+
"current": {
|
|
2540
|
+
"type": "boolean",
|
|
2541
|
+
"description": "The page the person is on.",
|
|
2542
|
+
"default": false
|
|
2543
|
+
}
|
|
2544
|
+
},
|
|
2545
|
+
"required": [
|
|
2546
|
+
"label",
|
|
2547
|
+
"href"
|
|
2548
|
+
],
|
|
2549
|
+
"additionalProperties": false
|
|
2550
|
+
},
|
|
2551
|
+
"minItems": 1,
|
|
2552
|
+
"maxItems": 12
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
"required": [
|
|
2556
|
+
"items"
|
|
2557
|
+
],
|
|
2558
|
+
"additionalProperties": false
|
|
2559
|
+
},
|
|
2560
|
+
"minItems": 1,
|
|
2561
|
+
"maxItems": 8
|
|
2562
|
+
}
|
|
2563
|
+
},
|
|
2564
|
+
"required": [
|
|
2565
|
+
"id",
|
|
2566
|
+
"component",
|
|
2567
|
+
"label",
|
|
2568
|
+
"sections"
|
|
2569
|
+
],
|
|
2570
|
+
"additionalProperties": false
|
|
2571
|
+
},
|
|
2572
|
+
"Breadcrumbs": {
|
|
2573
|
+
"type": "object",
|
|
2574
|
+
"description": "The path from the top of a site to the current page.",
|
|
2575
|
+
"x-derelicious": {
|
|
2576
|
+
"origin": "derelicious",
|
|
2577
|
+
"renders": [
|
|
2578
|
+
"Breadcrumbs"
|
|
2579
|
+
],
|
|
2580
|
+
"status": "stable",
|
|
2581
|
+
"usage": [
|
|
2582
|
+
"Use at the top of a page that sits inside a hierarchy."
|
|
2583
|
+
]
|
|
2584
|
+
},
|
|
2585
|
+
"properties": {
|
|
2586
|
+
"id": {
|
|
2587
|
+
"$ref": "#/$defs/ComponentId"
|
|
2588
|
+
},
|
|
2589
|
+
"component": {
|
|
2590
|
+
"const": "Breadcrumbs"
|
|
2591
|
+
},
|
|
2592
|
+
"accessibility": {
|
|
2593
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2594
|
+
},
|
|
2595
|
+
"weight": {
|
|
2596
|
+
"type": "number",
|
|
2597
|
+
"minimum": 0,
|
|
2598
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2599
|
+
},
|
|
2600
|
+
"items": {
|
|
2601
|
+
"type": "array",
|
|
2602
|
+
"description": "Top level first; the last item is the current page.",
|
|
2603
|
+
"items": {
|
|
2604
|
+
"type": "object",
|
|
2605
|
+
"properties": {
|
|
2606
|
+
"label": {
|
|
2607
|
+
"type": "string",
|
|
2608
|
+
"description": "Page name."
|
|
2609
|
+
},
|
|
2610
|
+
"href": {
|
|
2611
|
+
"$ref": "#/$defs/Href",
|
|
2612
|
+
"description": "Link. Omit for the current page."
|
|
2613
|
+
}
|
|
2614
|
+
},
|
|
2615
|
+
"required": [
|
|
2616
|
+
"label"
|
|
2617
|
+
],
|
|
2618
|
+
"additionalProperties": false
|
|
2619
|
+
},
|
|
2620
|
+
"minItems": 1,
|
|
2621
|
+
"maxItems": 8
|
|
2622
|
+
}
|
|
2623
|
+
},
|
|
2624
|
+
"required": [
|
|
2625
|
+
"id",
|
|
2626
|
+
"component",
|
|
2627
|
+
"items"
|
|
2628
|
+
],
|
|
2629
|
+
"additionalProperties": false
|
|
2630
|
+
},
|
|
2631
|
+
"Menu": {
|
|
2632
|
+
"type": "object",
|
|
2633
|
+
"description": "A button that opens a short list of actions or links, like \"More\" on a row. Arrow keys move through the items.",
|
|
2634
|
+
"x-derelicious": {
|
|
2635
|
+
"origin": "derelicious",
|
|
2636
|
+
"renders": [
|
|
2637
|
+
"Menu",
|
|
2638
|
+
"Button",
|
|
2639
|
+
"IconButton"
|
|
2640
|
+
],
|
|
2641
|
+
"status": "stable",
|
|
2642
|
+
"usage": [
|
|
2643
|
+
"Use for three to eight secondary actions. Put the main action on its own Button.",
|
|
2644
|
+
"Put destructive items last, with tone \"danger\"."
|
|
2645
|
+
]
|
|
2646
|
+
},
|
|
2647
|
+
"properties": {
|
|
2648
|
+
"id": {
|
|
2649
|
+
"$ref": "#/$defs/ComponentId"
|
|
2650
|
+
},
|
|
2651
|
+
"component": {
|
|
2652
|
+
"const": "Menu"
|
|
2653
|
+
},
|
|
2654
|
+
"accessibility": {
|
|
2655
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2656
|
+
},
|
|
2657
|
+
"weight": {
|
|
2658
|
+
"type": "number",
|
|
2659
|
+
"minimum": 0,
|
|
2660
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2661
|
+
},
|
|
2662
|
+
"trigger": {
|
|
2663
|
+
"$ref": "#/$defs/ComponentId",
|
|
2664
|
+
"description": "The Button or IconButton that opens the menu. Its own action is ignored."
|
|
2665
|
+
},
|
|
2666
|
+
"label": {
|
|
2667
|
+
"type": "string",
|
|
2668
|
+
"maxLength": 80,
|
|
2669
|
+
"description": "Names the menu. Defaults to the trigger text."
|
|
2670
|
+
},
|
|
2671
|
+
"items": {
|
|
2672
|
+
"type": "array",
|
|
2673
|
+
"description": "The items, in order. Give each an action or an href.",
|
|
2674
|
+
"items": {
|
|
2675
|
+
"type": "object",
|
|
2676
|
+
"properties": {
|
|
2677
|
+
"label": {
|
|
2678
|
+
"type": "string",
|
|
2679
|
+
"minLength": 1,
|
|
2680
|
+
"maxLength": 60,
|
|
2681
|
+
"description": "What the item does."
|
|
2682
|
+
},
|
|
2683
|
+
"icon": {
|
|
2684
|
+
"$ref": "#/$defs/DsIconName",
|
|
2685
|
+
"description": "Icon before the label."
|
|
2686
|
+
},
|
|
2687
|
+
"tone": {
|
|
2688
|
+
"type": "string",
|
|
2689
|
+
"enum": [
|
|
2690
|
+
"default",
|
|
2691
|
+
"danger"
|
|
2692
|
+
],
|
|
2693
|
+
"description": "danger for destructive items.",
|
|
2694
|
+
"default": "default"
|
|
2695
|
+
},
|
|
2696
|
+
"disabled": {
|
|
2697
|
+
"type": "boolean",
|
|
2698
|
+
"description": "Shown but not available.",
|
|
2699
|
+
"default": false
|
|
2700
|
+
},
|
|
2701
|
+
"href": {
|
|
2702
|
+
"$ref": "#/$defs/Href",
|
|
2703
|
+
"description": "Make the item a link."
|
|
2704
|
+
},
|
|
2705
|
+
"action": {
|
|
2706
|
+
"$ref": "#/$defs/Action",
|
|
2707
|
+
"description": "What choosing it does."
|
|
2708
|
+
}
|
|
2709
|
+
},
|
|
2710
|
+
"required": [
|
|
2711
|
+
"label"
|
|
2712
|
+
],
|
|
2713
|
+
"additionalProperties": false
|
|
2714
|
+
},
|
|
2715
|
+
"minItems": 1,
|
|
2716
|
+
"maxItems": 12
|
|
2717
|
+
},
|
|
2718
|
+
"placement": {
|
|
2719
|
+
"type": "string",
|
|
2720
|
+
"enum": [
|
|
2721
|
+
"bottom",
|
|
2722
|
+
"top",
|
|
2723
|
+
"start",
|
|
2724
|
+
"end"
|
|
2725
|
+
],
|
|
2726
|
+
"description": "Which side of the trigger it opens on. It flips when there is no room.",
|
|
2727
|
+
"default": "bottom"
|
|
2728
|
+
},
|
|
2729
|
+
"align": {
|
|
2730
|
+
"type": "string",
|
|
2731
|
+
"enum": [
|
|
2732
|
+
"start",
|
|
2733
|
+
"center",
|
|
2734
|
+
"end"
|
|
2735
|
+
],
|
|
2736
|
+
"description": "How it lines up with the trigger along that side.",
|
|
2737
|
+
"default": "start"
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
"required": [
|
|
2741
|
+
"id",
|
|
2742
|
+
"component",
|
|
2743
|
+
"trigger",
|
|
2744
|
+
"items"
|
|
2745
|
+
],
|
|
2746
|
+
"additionalProperties": false
|
|
2747
|
+
},
|
|
2748
|
+
"Popover": {
|
|
2749
|
+
"type": "object",
|
|
2750
|
+
"description": "A small panel that opens next to a button, for details or a short form that should not leave the page.",
|
|
2751
|
+
"x-derelicious": {
|
|
2752
|
+
"origin": "derelicious",
|
|
2753
|
+
"renders": [
|
|
2754
|
+
"Popover",
|
|
2755
|
+
"Button",
|
|
2756
|
+
"IconButton"
|
|
2757
|
+
],
|
|
2758
|
+
"status": "stable",
|
|
2759
|
+
"usage": [
|
|
2760
|
+
"Keep the content short. Use Modal for anything that needs focus."
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2763
|
+
"properties": {
|
|
2764
|
+
"id": {
|
|
2765
|
+
"$ref": "#/$defs/ComponentId"
|
|
2766
|
+
},
|
|
2767
|
+
"component": {
|
|
2768
|
+
"const": "Popover"
|
|
2769
|
+
},
|
|
2770
|
+
"accessibility": {
|
|
2771
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2772
|
+
},
|
|
2773
|
+
"weight": {
|
|
2774
|
+
"type": "number",
|
|
2775
|
+
"minimum": 0,
|
|
2776
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2777
|
+
},
|
|
2778
|
+
"trigger": {
|
|
2779
|
+
"$ref": "#/$defs/ComponentId",
|
|
2780
|
+
"description": "The Button or IconButton that opens it. Its own action is ignored."
|
|
2781
|
+
},
|
|
2782
|
+
"title": {
|
|
2783
|
+
"$ref": "#/$defs/DynamicString",
|
|
2784
|
+
"description": "Panel heading."
|
|
2785
|
+
},
|
|
2786
|
+
"label": {
|
|
2787
|
+
"type": "string",
|
|
2788
|
+
"maxLength": 80,
|
|
2789
|
+
"description": "Names the panel when it has no title."
|
|
2790
|
+
},
|
|
2791
|
+
"child": {
|
|
2792
|
+
"$ref": "#/$defs/ComponentId",
|
|
2793
|
+
"description": "The component inside. Use a Column for several."
|
|
2794
|
+
},
|
|
2795
|
+
"placement": {
|
|
2796
|
+
"type": "string",
|
|
2797
|
+
"enum": [
|
|
2798
|
+
"bottom",
|
|
2799
|
+
"top",
|
|
2800
|
+
"start",
|
|
2801
|
+
"end"
|
|
2802
|
+
],
|
|
2803
|
+
"description": "Which side of the trigger it opens on. It flips when there is no room.",
|
|
2804
|
+
"default": "bottom"
|
|
2805
|
+
},
|
|
2806
|
+
"align": {
|
|
2807
|
+
"type": "string",
|
|
2808
|
+
"enum": [
|
|
2809
|
+
"start",
|
|
2810
|
+
"center",
|
|
2811
|
+
"end"
|
|
2812
|
+
],
|
|
2813
|
+
"description": "How it lines up with the trigger along that side.",
|
|
2814
|
+
"default": "start"
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"required": [
|
|
2818
|
+
"id",
|
|
2819
|
+
"component",
|
|
2820
|
+
"trigger",
|
|
2821
|
+
"child"
|
|
2822
|
+
],
|
|
2823
|
+
"additionalProperties": false
|
|
2824
|
+
},
|
|
2825
|
+
"Tooltip": {
|
|
2826
|
+
"type": "object",
|
|
2827
|
+
"description": "A short hint that shows when a button is hovered or focused, like what an icon button does.",
|
|
2828
|
+
"x-derelicious": {
|
|
2829
|
+
"origin": "derelicious",
|
|
2830
|
+
"renders": [
|
|
2831
|
+
"Tooltip"
|
|
2832
|
+
],
|
|
2833
|
+
"status": "stable",
|
|
2834
|
+
"usage": [
|
|
2835
|
+
"Never put information only in a tooltip. Touch screens may not show it."
|
|
2836
|
+
]
|
|
2837
|
+
},
|
|
2838
|
+
"properties": {
|
|
2839
|
+
"id": {
|
|
2840
|
+
"$ref": "#/$defs/ComponentId"
|
|
2841
|
+
},
|
|
2842
|
+
"component": {
|
|
2843
|
+
"const": "Tooltip"
|
|
2844
|
+
},
|
|
2845
|
+
"accessibility": {
|
|
2846
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2847
|
+
},
|
|
2848
|
+
"weight": {
|
|
2849
|
+
"type": "number",
|
|
2850
|
+
"minimum": 0,
|
|
2851
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2852
|
+
},
|
|
2853
|
+
"content": {
|
|
2854
|
+
"type": "string",
|
|
2855
|
+
"minLength": 1,
|
|
2856
|
+
"maxLength": 160,
|
|
2857
|
+
"description": "The hint, a few words."
|
|
2858
|
+
},
|
|
2859
|
+
"child": {
|
|
2860
|
+
"$ref": "#/$defs/ComponentId",
|
|
2861
|
+
"description": "The Button or IconButton it describes. Other types show without the hint."
|
|
2862
|
+
},
|
|
2863
|
+
"placement": {
|
|
2864
|
+
"type": "string",
|
|
2865
|
+
"enum": [
|
|
2866
|
+
"bottom",
|
|
2867
|
+
"top",
|
|
2868
|
+
"start",
|
|
2869
|
+
"end"
|
|
2870
|
+
],
|
|
2871
|
+
"description": "Which side of the trigger it opens on. It flips when there is no room.",
|
|
2872
|
+
"default": "bottom"
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
"required": [
|
|
2876
|
+
"id",
|
|
2877
|
+
"component",
|
|
2878
|
+
"content",
|
|
2879
|
+
"child"
|
|
2880
|
+
],
|
|
2881
|
+
"additionalProperties": false
|
|
2882
|
+
},
|
|
2883
|
+
"Spinner": {
|
|
2884
|
+
"type": "object",
|
|
2885
|
+
"description": "A small turning ring that says something is loading.",
|
|
2886
|
+
"x-derelicious": {
|
|
2887
|
+
"origin": "derelicious",
|
|
2888
|
+
"renders": [
|
|
2889
|
+
"Spinner"
|
|
2890
|
+
],
|
|
2891
|
+
"status": "stable",
|
|
2892
|
+
"usage": [
|
|
2893
|
+
"Use for a wait of a few seconds. Use Progress when the total is known, and Skeleton where content will appear."
|
|
2894
|
+
]
|
|
2895
|
+
},
|
|
2896
|
+
"properties": {
|
|
2897
|
+
"id": {
|
|
2898
|
+
"$ref": "#/$defs/ComponentId"
|
|
2899
|
+
},
|
|
2900
|
+
"component": {
|
|
2901
|
+
"const": "Spinner"
|
|
2902
|
+
},
|
|
2903
|
+
"accessibility": {
|
|
2904
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2905
|
+
},
|
|
2906
|
+
"weight": {
|
|
2907
|
+
"type": "number",
|
|
2908
|
+
"minimum": 0,
|
|
2909
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2910
|
+
},
|
|
2911
|
+
"label": {
|
|
2912
|
+
"$ref": "#/$defs/DynamicString",
|
|
2913
|
+
"description": "What is loading, read by screen readers, like \"Loading invoices\"."
|
|
2914
|
+
},
|
|
2915
|
+
"size": {
|
|
2916
|
+
"type": "string",
|
|
2917
|
+
"enum": [
|
|
2918
|
+
"sm",
|
|
2919
|
+
"md",
|
|
2920
|
+
"lg"
|
|
2921
|
+
],
|
|
2922
|
+
"description": "Size.",
|
|
2923
|
+
"default": "md"
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2926
|
+
"required": [
|
|
2927
|
+
"id",
|
|
2928
|
+
"component"
|
|
2929
|
+
],
|
|
2930
|
+
"additionalProperties": false
|
|
2931
|
+
},
|
|
2932
|
+
"Skeleton": {
|
|
2933
|
+
"type": "object",
|
|
2934
|
+
"description": "A gray placeholder in the shape of content that is still loading, so the layout does not jump.",
|
|
2935
|
+
"x-derelicious": {
|
|
2936
|
+
"origin": "derelicious",
|
|
2937
|
+
"renders": [
|
|
2938
|
+
"Skeleton"
|
|
2939
|
+
],
|
|
2940
|
+
"status": "stable",
|
|
2941
|
+
"usage": [
|
|
2942
|
+
"Match the size of the content it stands in for."
|
|
2943
|
+
]
|
|
2944
|
+
},
|
|
2945
|
+
"properties": {
|
|
2946
|
+
"id": {
|
|
2947
|
+
"$ref": "#/$defs/ComponentId"
|
|
2948
|
+
},
|
|
2949
|
+
"component": {
|
|
2950
|
+
"const": "Skeleton"
|
|
2951
|
+
},
|
|
2952
|
+
"accessibility": {
|
|
2953
|
+
"$ref": "#/$defs/AccessibilityAttributes"
|
|
2954
|
+
},
|
|
2955
|
+
"weight": {
|
|
2956
|
+
"type": "number",
|
|
2957
|
+
"minimum": 0,
|
|
2958
|
+
"description": "Share of the remaining space in a Row or Column, like CSS flex-grow. Only on direct children of a Row or Column."
|
|
2959
|
+
},
|
|
2960
|
+
"variant": {
|
|
2961
|
+
"type": "string",
|
|
2962
|
+
"enum": [
|
|
2963
|
+
"text",
|
|
2964
|
+
"rect",
|
|
2965
|
+
"circle"
|
|
2966
|
+
],
|
|
2967
|
+
"description": "Lines of text, a block, or a circle like an avatar.",
|
|
2968
|
+
"default": "text"
|
|
2969
|
+
},
|
|
2970
|
+
"lines": {
|
|
2971
|
+
"type": "integer",
|
|
2972
|
+
"minimum": 1,
|
|
2973
|
+
"maximum": 12,
|
|
2974
|
+
"description": "Lines, for text."
|
|
2975
|
+
},
|
|
2976
|
+
"width": {
|
|
2977
|
+
"type": "string",
|
|
2978
|
+
"pattern": "^\\d+(\\.\\d+)?(rem|em|ch|px|%)$",
|
|
2979
|
+
"maxLength": 12,
|
|
2980
|
+
"description": "Width, like \"12rem\" or \"60%\"."
|
|
2981
|
+
},
|
|
2982
|
+
"height": {
|
|
2983
|
+
"type": "string",
|
|
2984
|
+
"pattern": "^\\d+(\\.\\d+)?(rem|em|ch|px|%)$",
|
|
2985
|
+
"maxLength": 12,
|
|
2986
|
+
"description": "Height, for rect and circle, like \"8rem\"."
|
|
2987
|
+
}
|
|
2988
|
+
},
|
|
2989
|
+
"required": [
|
|
2990
|
+
"id",
|
|
2991
|
+
"component"
|
|
2992
|
+
],
|
|
2993
|
+
"additionalProperties": false
|
|
2994
|
+
}
|
|
2995
|
+
},
|
|
2996
|
+
"functions": {
|
|
2997
|
+
"required": {
|
|
2998
|
+
"type": "object",
|
|
2999
|
+
"description": "True when the value is not null, undefined, or empty.",
|
|
3000
|
+
"x-derelicious": {
|
|
3001
|
+
"origin": "basic"
|
|
3002
|
+
},
|
|
3003
|
+
"properties": {
|
|
3004
|
+
"call": {
|
|
3005
|
+
"const": "required"
|
|
3006
|
+
},
|
|
3007
|
+
"args": {
|
|
3008
|
+
"type": "object",
|
|
3009
|
+
"properties": {
|
|
3010
|
+
"value": {
|
|
3011
|
+
"$ref": "#/$defs/DynamicValue",
|
|
3012
|
+
"description": "The value to check."
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
"required": [
|
|
3016
|
+
"value"
|
|
3017
|
+
],
|
|
3018
|
+
"additionalProperties": false
|
|
3019
|
+
},
|
|
3020
|
+
"returnType": {
|
|
3021
|
+
"const": "boolean"
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
"required": [
|
|
3025
|
+
"call",
|
|
3026
|
+
"args"
|
|
3027
|
+
],
|
|
3028
|
+
"additionalProperties": false
|
|
3029
|
+
},
|
|
3030
|
+
"regex": {
|
|
3031
|
+
"type": "object",
|
|
3032
|
+
"description": "True when the value matches a regular expression.",
|
|
3033
|
+
"x-derelicious": {
|
|
3034
|
+
"origin": "basic"
|
|
3035
|
+
},
|
|
3036
|
+
"properties": {
|
|
3037
|
+
"call": {
|
|
3038
|
+
"const": "regex"
|
|
3039
|
+
},
|
|
3040
|
+
"args": {
|
|
3041
|
+
"type": "object",
|
|
3042
|
+
"properties": {
|
|
3043
|
+
"value": {
|
|
3044
|
+
"$ref": "#/$defs/DynamicString",
|
|
3045
|
+
"description": "The text to test."
|
|
3046
|
+
},
|
|
3047
|
+
"pattern": {
|
|
3048
|
+
"type": "string",
|
|
3049
|
+
"format": "regex",
|
|
3050
|
+
"maxLength": 200,
|
|
3051
|
+
"description": "The regular expression. Keep it simple: repeated groups that repeat or alternate inside, like \"(a+)+\", and backreferences are refused."
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
"required": [
|
|
3055
|
+
"value",
|
|
3056
|
+
"pattern"
|
|
3057
|
+
],
|
|
3058
|
+
"additionalProperties": false
|
|
3059
|
+
},
|
|
3060
|
+
"returnType": {
|
|
3061
|
+
"const": "boolean"
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
"required": [
|
|
3065
|
+
"call",
|
|
3066
|
+
"args"
|
|
3067
|
+
],
|
|
3068
|
+
"additionalProperties": false
|
|
3069
|
+
},
|
|
3070
|
+
"length": {
|
|
3071
|
+
"type": "object",
|
|
3072
|
+
"description": "True when the text length is within min and max.",
|
|
3073
|
+
"x-derelicious": {
|
|
3074
|
+
"origin": "basic"
|
|
3075
|
+
},
|
|
3076
|
+
"properties": {
|
|
3077
|
+
"call": {
|
|
3078
|
+
"const": "length"
|
|
3079
|
+
},
|
|
3080
|
+
"args": {
|
|
3081
|
+
"type": "object",
|
|
3082
|
+
"properties": {
|
|
3083
|
+
"value": {
|
|
3084
|
+
"$ref": "#/$defs/DynamicString",
|
|
3085
|
+
"description": "The text to measure."
|
|
3086
|
+
},
|
|
3087
|
+
"min": {
|
|
3088
|
+
"type": "integer",
|
|
3089
|
+
"minimum": 0,
|
|
3090
|
+
"description": "Shortest allowed."
|
|
3091
|
+
},
|
|
3092
|
+
"max": {
|
|
3093
|
+
"type": "integer",
|
|
3094
|
+
"minimum": 0,
|
|
3095
|
+
"description": "Longest allowed."
|
|
3096
|
+
}
|
|
3097
|
+
},
|
|
3098
|
+
"required": [
|
|
3099
|
+
"value"
|
|
3100
|
+
],
|
|
3101
|
+
"additionalProperties": false
|
|
3102
|
+
},
|
|
3103
|
+
"returnType": {
|
|
3104
|
+
"const": "boolean"
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
"required": [
|
|
3108
|
+
"call",
|
|
3109
|
+
"args"
|
|
3110
|
+
],
|
|
3111
|
+
"additionalProperties": false
|
|
3112
|
+
},
|
|
3113
|
+
"numeric": {
|
|
3114
|
+
"type": "object",
|
|
3115
|
+
"description": "True when the number is within min and max.",
|
|
3116
|
+
"x-derelicious": {
|
|
3117
|
+
"origin": "basic"
|
|
3118
|
+
},
|
|
3119
|
+
"properties": {
|
|
3120
|
+
"call": {
|
|
3121
|
+
"const": "numeric"
|
|
3122
|
+
},
|
|
3123
|
+
"args": {
|
|
3124
|
+
"type": "object",
|
|
3125
|
+
"properties": {
|
|
3126
|
+
"value": {
|
|
3127
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3128
|
+
"description": "The number to check."
|
|
3129
|
+
},
|
|
3130
|
+
"min": {
|
|
3131
|
+
"type": "number",
|
|
3132
|
+
"description": "Smallest allowed."
|
|
3133
|
+
},
|
|
3134
|
+
"max": {
|
|
3135
|
+
"type": "number",
|
|
3136
|
+
"description": "Largest allowed."
|
|
3137
|
+
}
|
|
3138
|
+
},
|
|
3139
|
+
"required": [
|
|
3140
|
+
"value"
|
|
3141
|
+
],
|
|
3142
|
+
"additionalProperties": false
|
|
3143
|
+
},
|
|
3144
|
+
"returnType": {
|
|
3145
|
+
"const": "boolean"
|
|
3146
|
+
}
|
|
3147
|
+
},
|
|
3148
|
+
"required": [
|
|
3149
|
+
"call",
|
|
3150
|
+
"args"
|
|
3151
|
+
],
|
|
3152
|
+
"additionalProperties": false
|
|
3153
|
+
},
|
|
3154
|
+
"email": {
|
|
3155
|
+
"type": "object",
|
|
3156
|
+
"description": "True when the value looks like an email address.",
|
|
3157
|
+
"x-derelicious": {
|
|
3158
|
+
"origin": "basic"
|
|
3159
|
+
},
|
|
3160
|
+
"properties": {
|
|
3161
|
+
"call": {
|
|
3162
|
+
"const": "email"
|
|
3163
|
+
},
|
|
3164
|
+
"args": {
|
|
3165
|
+
"type": "object",
|
|
3166
|
+
"properties": {
|
|
3167
|
+
"value": {
|
|
3168
|
+
"$ref": "#/$defs/DynamicString",
|
|
3169
|
+
"description": "The text to check."
|
|
3170
|
+
}
|
|
3171
|
+
},
|
|
3172
|
+
"required": [
|
|
3173
|
+
"value"
|
|
3174
|
+
],
|
|
3175
|
+
"additionalProperties": false
|
|
3176
|
+
},
|
|
3177
|
+
"returnType": {
|
|
3178
|
+
"const": "boolean"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
"required": [
|
|
3182
|
+
"call",
|
|
3183
|
+
"args"
|
|
3184
|
+
],
|
|
3185
|
+
"additionalProperties": false
|
|
3186
|
+
},
|
|
3187
|
+
"formatString": {
|
|
3188
|
+
"type": "object",
|
|
3189
|
+
"description": "Fills ${/absolute/path}, ${relative/path}, and ${fn(name: value)} expressions in the text. Escape a literal ${ as \\${.",
|
|
3190
|
+
"x-derelicious": {
|
|
3191
|
+
"origin": "basic"
|
|
3192
|
+
},
|
|
3193
|
+
"properties": {
|
|
3194
|
+
"call": {
|
|
3195
|
+
"const": "formatString"
|
|
3196
|
+
},
|
|
3197
|
+
"args": {
|
|
3198
|
+
"type": "object",
|
|
3199
|
+
"properties": {
|
|
3200
|
+
"value": {
|
|
3201
|
+
"$ref": "#/$defs/DynamicString",
|
|
3202
|
+
"description": "The template text."
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
"required": [
|
|
3206
|
+
"value"
|
|
3207
|
+
],
|
|
3208
|
+
"additionalProperties": false
|
|
3209
|
+
},
|
|
3210
|
+
"returnType": {
|
|
3211
|
+
"const": "string"
|
|
3212
|
+
}
|
|
3213
|
+
},
|
|
3214
|
+
"required": [
|
|
3215
|
+
"call",
|
|
3216
|
+
"args"
|
|
3217
|
+
],
|
|
3218
|
+
"additionalProperties": false
|
|
3219
|
+
},
|
|
3220
|
+
"formatNumber": {
|
|
3221
|
+
"type": "object",
|
|
3222
|
+
"description": "Formats a number with grouping and fixed decimals.",
|
|
3223
|
+
"x-derelicious": {
|
|
3224
|
+
"origin": "basic"
|
|
3225
|
+
},
|
|
3226
|
+
"properties": {
|
|
3227
|
+
"call": {
|
|
3228
|
+
"const": "formatNumber"
|
|
3229
|
+
},
|
|
3230
|
+
"args": {
|
|
3231
|
+
"type": "object",
|
|
3232
|
+
"properties": {
|
|
3233
|
+
"value": {
|
|
3234
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3235
|
+
"description": "The number."
|
|
3236
|
+
},
|
|
3237
|
+
"decimals": {
|
|
3238
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3239
|
+
"description": "Decimal places."
|
|
3240
|
+
},
|
|
3241
|
+
"grouping": {
|
|
3242
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
3243
|
+
"description": "Use thousands separators. Defaults to true."
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
"required": [
|
|
3247
|
+
"value"
|
|
3248
|
+
],
|
|
3249
|
+
"additionalProperties": false
|
|
3250
|
+
},
|
|
3251
|
+
"returnType": {
|
|
3252
|
+
"const": "string"
|
|
3253
|
+
}
|
|
3254
|
+
},
|
|
3255
|
+
"required": [
|
|
3256
|
+
"call",
|
|
3257
|
+
"args"
|
|
3258
|
+
],
|
|
3259
|
+
"additionalProperties": false
|
|
3260
|
+
},
|
|
3261
|
+
"formatCurrency": {
|
|
3262
|
+
"type": "object",
|
|
3263
|
+
"description": "Formats a number as money.",
|
|
3264
|
+
"x-derelicious": {
|
|
3265
|
+
"origin": "basic"
|
|
3266
|
+
},
|
|
3267
|
+
"properties": {
|
|
3268
|
+
"call": {
|
|
3269
|
+
"const": "formatCurrency"
|
|
3270
|
+
},
|
|
3271
|
+
"args": {
|
|
3272
|
+
"type": "object",
|
|
3273
|
+
"properties": {
|
|
3274
|
+
"value": {
|
|
3275
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3276
|
+
"description": "The amount."
|
|
3277
|
+
},
|
|
3278
|
+
"currency": {
|
|
3279
|
+
"$ref": "#/$defs/DynamicString",
|
|
3280
|
+
"description": "ISO 4217 code, like \"USD\"."
|
|
3281
|
+
},
|
|
3282
|
+
"decimals": {
|
|
3283
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3284
|
+
"description": "Decimal places."
|
|
3285
|
+
},
|
|
3286
|
+
"grouping": {
|
|
3287
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
3288
|
+
"description": "Use thousands separators. Defaults to true."
|
|
3289
|
+
}
|
|
3290
|
+
},
|
|
3291
|
+
"required": [
|
|
3292
|
+
"value",
|
|
3293
|
+
"currency"
|
|
3294
|
+
],
|
|
3295
|
+
"additionalProperties": false
|
|
3296
|
+
},
|
|
3297
|
+
"returnType": {
|
|
3298
|
+
"const": "string"
|
|
3299
|
+
}
|
|
3300
|
+
},
|
|
3301
|
+
"required": [
|
|
3302
|
+
"call",
|
|
3303
|
+
"args"
|
|
3304
|
+
],
|
|
3305
|
+
"additionalProperties": false
|
|
3306
|
+
},
|
|
3307
|
+
"formatDate": {
|
|
3308
|
+
"type": "object",
|
|
3309
|
+
"description": "Formats a date with a Unicode pattern: yyyy, yy, MMMM, MMM, MM, M, dd, d, EEEE, E, HH, H, hh, h, mm, ss, a, and 'quoted' literals.",
|
|
3310
|
+
"x-derelicious": {
|
|
3311
|
+
"origin": "basic"
|
|
3312
|
+
},
|
|
3313
|
+
"properties": {
|
|
3314
|
+
"call": {
|
|
3315
|
+
"const": "formatDate"
|
|
3316
|
+
},
|
|
3317
|
+
"args": {
|
|
3318
|
+
"type": "object",
|
|
3319
|
+
"properties": {
|
|
3320
|
+
"value": {
|
|
3321
|
+
"$ref": "#/$defs/DynamicValue",
|
|
3322
|
+
"description": "An ISO 8601 date or a timestamp."
|
|
3323
|
+
},
|
|
3324
|
+
"format": {
|
|
3325
|
+
"$ref": "#/$defs/DynamicString",
|
|
3326
|
+
"description": "The pattern, like \"MMM d, yyyy\"."
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"required": [
|
|
3330
|
+
"value",
|
|
3331
|
+
"format"
|
|
3332
|
+
],
|
|
3333
|
+
"additionalProperties": false
|
|
3334
|
+
},
|
|
3335
|
+
"returnType": {
|
|
3336
|
+
"const": "string"
|
|
3337
|
+
}
|
|
3338
|
+
},
|
|
3339
|
+
"required": [
|
|
3340
|
+
"call",
|
|
3341
|
+
"args"
|
|
3342
|
+
],
|
|
3343
|
+
"additionalProperties": false
|
|
3344
|
+
},
|
|
3345
|
+
"pluralize": {
|
|
3346
|
+
"type": "object",
|
|
3347
|
+
"description": "Picks text by the plural category of a count. For English, give one and other.",
|
|
3348
|
+
"x-derelicious": {
|
|
3349
|
+
"origin": "basic"
|
|
3350
|
+
},
|
|
3351
|
+
"properties": {
|
|
3352
|
+
"call": {
|
|
3353
|
+
"const": "pluralize"
|
|
3354
|
+
},
|
|
3355
|
+
"args": {
|
|
3356
|
+
"type": "object",
|
|
3357
|
+
"properties": {
|
|
3358
|
+
"value": {
|
|
3359
|
+
"$ref": "#/$defs/DynamicNumber",
|
|
3360
|
+
"description": "The count."
|
|
3361
|
+
},
|
|
3362
|
+
"zero": {
|
|
3363
|
+
"$ref": "#/$defs/DynamicString",
|
|
3364
|
+
"description": "Text for zero."
|
|
3365
|
+
},
|
|
3366
|
+
"one": {
|
|
3367
|
+
"$ref": "#/$defs/DynamicString",
|
|
3368
|
+
"description": "Text for one."
|
|
3369
|
+
},
|
|
3370
|
+
"two": {
|
|
3371
|
+
"$ref": "#/$defs/DynamicString",
|
|
3372
|
+
"description": "Text for two."
|
|
3373
|
+
},
|
|
3374
|
+
"few": {
|
|
3375
|
+
"$ref": "#/$defs/DynamicString",
|
|
3376
|
+
"description": "Text for few."
|
|
3377
|
+
},
|
|
3378
|
+
"many": {
|
|
3379
|
+
"$ref": "#/$defs/DynamicString",
|
|
3380
|
+
"description": "Text for many."
|
|
3381
|
+
},
|
|
3382
|
+
"other": {
|
|
3383
|
+
"$ref": "#/$defs/DynamicString",
|
|
3384
|
+
"description": "Text for everything else."
|
|
3385
|
+
}
|
|
3386
|
+
},
|
|
3387
|
+
"required": [
|
|
3388
|
+
"value",
|
|
3389
|
+
"other"
|
|
3390
|
+
],
|
|
3391
|
+
"additionalProperties": false
|
|
3392
|
+
},
|
|
3393
|
+
"returnType": {
|
|
3394
|
+
"const": "string"
|
|
3395
|
+
}
|
|
3396
|
+
},
|
|
3397
|
+
"required": [
|
|
3398
|
+
"call",
|
|
3399
|
+
"args"
|
|
3400
|
+
],
|
|
3401
|
+
"additionalProperties": false
|
|
3402
|
+
},
|
|
3403
|
+
"openUrl": {
|
|
3404
|
+
"type": "object",
|
|
3405
|
+
"description": "Opens a URL. Use it as a Button action.",
|
|
3406
|
+
"x-derelicious": {
|
|
3407
|
+
"origin": "basic"
|
|
3408
|
+
},
|
|
3409
|
+
"properties": {
|
|
3410
|
+
"call": {
|
|
3411
|
+
"const": "openUrl"
|
|
3412
|
+
},
|
|
3413
|
+
"args": {
|
|
3414
|
+
"type": "object",
|
|
3415
|
+
"properties": {
|
|
3416
|
+
"url": {
|
|
3417
|
+
"$ref": "#/$defs/Href",
|
|
3418
|
+
"description": "A site path or an https URL."
|
|
3419
|
+
}
|
|
3420
|
+
},
|
|
3421
|
+
"required": [
|
|
3422
|
+
"url"
|
|
3423
|
+
],
|
|
3424
|
+
"additionalProperties": false
|
|
3425
|
+
},
|
|
3426
|
+
"returnType": {
|
|
3427
|
+
"const": "void"
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3430
|
+
"required": [
|
|
3431
|
+
"call",
|
|
3432
|
+
"args"
|
|
3433
|
+
],
|
|
3434
|
+
"additionalProperties": false
|
|
3435
|
+
},
|
|
3436
|
+
"and": {
|
|
3437
|
+
"type": "object",
|
|
3438
|
+
"description": "True when every value is true.",
|
|
3439
|
+
"x-derelicious": {
|
|
3440
|
+
"origin": "basic"
|
|
3441
|
+
},
|
|
3442
|
+
"properties": {
|
|
3443
|
+
"call": {
|
|
3444
|
+
"const": "and"
|
|
3445
|
+
},
|
|
3446
|
+
"args": {
|
|
3447
|
+
"type": "object",
|
|
3448
|
+
"properties": {
|
|
3449
|
+
"values": {
|
|
3450
|
+
"type": "array",
|
|
3451
|
+
"description": "Two or more values.",
|
|
3452
|
+
"items": {
|
|
3453
|
+
"$ref": "#/$defs/DynamicBoolean"
|
|
3454
|
+
},
|
|
3455
|
+
"minItems": 2,
|
|
3456
|
+
"maxItems": 20
|
|
3457
|
+
}
|
|
3458
|
+
},
|
|
3459
|
+
"required": [
|
|
3460
|
+
"values"
|
|
3461
|
+
],
|
|
3462
|
+
"additionalProperties": false
|
|
3463
|
+
},
|
|
3464
|
+
"returnType": {
|
|
3465
|
+
"const": "boolean"
|
|
3466
|
+
}
|
|
3467
|
+
},
|
|
3468
|
+
"required": [
|
|
3469
|
+
"call",
|
|
3470
|
+
"args"
|
|
3471
|
+
],
|
|
3472
|
+
"additionalProperties": false
|
|
3473
|
+
},
|
|
3474
|
+
"or": {
|
|
3475
|
+
"type": "object",
|
|
3476
|
+
"description": "True when any value is true.",
|
|
3477
|
+
"x-derelicious": {
|
|
3478
|
+
"origin": "basic"
|
|
3479
|
+
},
|
|
3480
|
+
"properties": {
|
|
3481
|
+
"call": {
|
|
3482
|
+
"const": "or"
|
|
3483
|
+
},
|
|
3484
|
+
"args": {
|
|
3485
|
+
"type": "object",
|
|
3486
|
+
"properties": {
|
|
3487
|
+
"values": {
|
|
3488
|
+
"type": "array",
|
|
3489
|
+
"description": "Two or more values.",
|
|
3490
|
+
"items": {
|
|
3491
|
+
"$ref": "#/$defs/DynamicBoolean"
|
|
3492
|
+
},
|
|
3493
|
+
"minItems": 2,
|
|
3494
|
+
"maxItems": 20
|
|
3495
|
+
}
|
|
3496
|
+
},
|
|
3497
|
+
"required": [
|
|
3498
|
+
"values"
|
|
3499
|
+
],
|
|
3500
|
+
"additionalProperties": false
|
|
3501
|
+
},
|
|
3502
|
+
"returnType": {
|
|
3503
|
+
"const": "boolean"
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
"required": [
|
|
3507
|
+
"call",
|
|
3508
|
+
"args"
|
|
3509
|
+
],
|
|
3510
|
+
"additionalProperties": false
|
|
3511
|
+
},
|
|
3512
|
+
"not": {
|
|
3513
|
+
"type": "object",
|
|
3514
|
+
"description": "Negates a value.",
|
|
3515
|
+
"x-derelicious": {
|
|
3516
|
+
"origin": "basic"
|
|
3517
|
+
},
|
|
3518
|
+
"properties": {
|
|
3519
|
+
"call": {
|
|
3520
|
+
"const": "not"
|
|
3521
|
+
},
|
|
3522
|
+
"args": {
|
|
3523
|
+
"type": "object",
|
|
3524
|
+
"properties": {
|
|
3525
|
+
"value": {
|
|
3526
|
+
"$ref": "#/$defs/DynamicBoolean",
|
|
3527
|
+
"description": "The value to negate."
|
|
3528
|
+
}
|
|
3529
|
+
},
|
|
3530
|
+
"required": [
|
|
3531
|
+
"value"
|
|
3532
|
+
],
|
|
3533
|
+
"additionalProperties": false
|
|
3534
|
+
},
|
|
3535
|
+
"returnType": {
|
|
3536
|
+
"const": "boolean"
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
"required": [
|
|
3540
|
+
"call",
|
|
3541
|
+
"args"
|
|
3542
|
+
],
|
|
3543
|
+
"additionalProperties": false
|
|
3544
|
+
},
|
|
3545
|
+
"now": {
|
|
3546
|
+
"type": "object",
|
|
3547
|
+
"description": "The current date and time as an ISO 8601 string.",
|
|
3548
|
+
"x-derelicious": {
|
|
3549
|
+
"origin": "derelicious"
|
|
3550
|
+
},
|
|
3551
|
+
"properties": {
|
|
3552
|
+
"call": {
|
|
3553
|
+
"const": "now"
|
|
3554
|
+
},
|
|
3555
|
+
"args": {
|
|
3556
|
+
"type": "object",
|
|
3557
|
+
"properties": {},
|
|
3558
|
+
"additionalProperties": false
|
|
3559
|
+
},
|
|
3560
|
+
"returnType": {
|
|
3561
|
+
"const": "string"
|
|
3562
|
+
}
|
|
3563
|
+
},
|
|
3564
|
+
"required": [
|
|
3565
|
+
"call"
|
|
3566
|
+
],
|
|
3567
|
+
"additionalProperties": false
|
|
3568
|
+
},
|
|
3569
|
+
"showToast": {
|
|
3570
|
+
"type": "object",
|
|
3571
|
+
"description": "Shows a short message in a toast, like \"Saved.\" Use it as a button action: {\"functionCall\": {\"call\": \"showToast\", \"args\": {\"message\": \"Saved.\"}}}.",
|
|
3572
|
+
"x-derelicious": {
|
|
3573
|
+
"origin": "derelicious"
|
|
3574
|
+
},
|
|
3575
|
+
"properties": {
|
|
3576
|
+
"call": {
|
|
3577
|
+
"const": "showToast"
|
|
3578
|
+
},
|
|
3579
|
+
"args": {
|
|
3580
|
+
"type": "object",
|
|
3581
|
+
"properties": {
|
|
3582
|
+
"message": {
|
|
3583
|
+
"$ref": "#/$defs/DynamicString",
|
|
3584
|
+
"description": "One short sentence."
|
|
3585
|
+
},
|
|
3586
|
+
"tone": {
|
|
3587
|
+
"type": "string",
|
|
3588
|
+
"enum": [
|
|
3589
|
+
"info",
|
|
3590
|
+
"positive",
|
|
3591
|
+
"warning",
|
|
3592
|
+
"danger"
|
|
3593
|
+
],
|
|
3594
|
+
"description": "Meaning and color.",
|
|
3595
|
+
"default": "info"
|
|
3596
|
+
},
|
|
3597
|
+
"action": {
|
|
3598
|
+
"type": "object",
|
|
3599
|
+
"properties": {
|
|
3600
|
+
"label": {
|
|
3601
|
+
"type": "string",
|
|
3602
|
+
"minLength": 1,
|
|
3603
|
+
"maxLength": 40,
|
|
3604
|
+
"description": "Button text, like \"Undo\"."
|
|
3605
|
+
},
|
|
3606
|
+
"event": {
|
|
3607
|
+
"type": "object",
|
|
3608
|
+
"description": "The event the button sends, like a Button action event.",
|
|
3609
|
+
"properties": {
|
|
3610
|
+
"name": {
|
|
3611
|
+
"type": "string",
|
|
3612
|
+
"minLength": 1,
|
|
3613
|
+
"maxLength": 100
|
|
3614
|
+
},
|
|
3615
|
+
"context": {
|
|
3616
|
+
"type": "object",
|
|
3617
|
+
"additionalProperties": {
|
|
3618
|
+
"$ref": "#/$defs/DynamicValue"
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
},
|
|
3622
|
+
"required": [
|
|
3623
|
+
"name"
|
|
3624
|
+
],
|
|
3625
|
+
"additionalProperties": false
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
"required": [
|
|
3629
|
+
"label",
|
|
3630
|
+
"event"
|
|
3631
|
+
],
|
|
3632
|
+
"additionalProperties": false
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
"required": [
|
|
3636
|
+
"message"
|
|
3637
|
+
],
|
|
3638
|
+
"additionalProperties": false
|
|
3639
|
+
},
|
|
3640
|
+
"returnType": {
|
|
3641
|
+
"const": "void"
|
|
3642
|
+
}
|
|
3643
|
+
},
|
|
3644
|
+
"required": [
|
|
3645
|
+
"call",
|
|
3646
|
+
"args"
|
|
3647
|
+
],
|
|
3648
|
+
"additionalProperties": false
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
"$defs": {
|
|
3652
|
+
"ComponentId": {
|
|
3653
|
+
"title": "a component id",
|
|
3654
|
+
"type": "string",
|
|
3655
|
+
"minLength": 1,
|
|
3656
|
+
"maxLength": 100,
|
|
3657
|
+
"description": "The id of another component in the same surface."
|
|
3658
|
+
},
|
|
3659
|
+
"ChildList": {
|
|
3660
|
+
"title": "a list of component ids or a template {\"path\": \"/list\", \"componentId\": \"id\"}",
|
|
3661
|
+
"oneOf": [
|
|
3662
|
+
{
|
|
3663
|
+
"type": "array",
|
|
3664
|
+
"items": {
|
|
3665
|
+
"$ref": "#/$defs/ComponentId"
|
|
3666
|
+
},
|
|
3667
|
+
"maxItems": 60
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"type": "object",
|
|
3671
|
+
"properties": {
|
|
3672
|
+
"componentId": {
|
|
3673
|
+
"$ref": "#/$defs/ComponentId"
|
|
3674
|
+
},
|
|
3675
|
+
"path": {
|
|
3676
|
+
"type": "string",
|
|
3677
|
+
"description": "Path to a list in the data model."
|
|
3678
|
+
}
|
|
3679
|
+
},
|
|
3680
|
+
"required": [
|
|
3681
|
+
"componentId",
|
|
3682
|
+
"path"
|
|
3683
|
+
],
|
|
3684
|
+
"additionalProperties": false
|
|
3685
|
+
}
|
|
3686
|
+
]
|
|
3687
|
+
},
|
|
3688
|
+
"DataBinding": {
|
|
3689
|
+
"title": "a {\"path\": \"/json/pointer\"} binding",
|
|
3690
|
+
"type": "object",
|
|
3691
|
+
"properties": {
|
|
3692
|
+
"path": {
|
|
3693
|
+
"type": "string",
|
|
3694
|
+
"maxLength": 300,
|
|
3695
|
+
"description": "A JSON Pointer into the data model. Relative inside templates."
|
|
3696
|
+
}
|
|
3697
|
+
},
|
|
3698
|
+
"required": [
|
|
3699
|
+
"path"
|
|
3700
|
+
],
|
|
3701
|
+
"additionalProperties": false
|
|
3702
|
+
},
|
|
3703
|
+
"FunctionCall": {
|
|
3704
|
+
"title": "a function call {\"call\", \"args\"}",
|
|
3705
|
+
"type": "object",
|
|
3706
|
+
"properties": {
|
|
3707
|
+
"call": {
|
|
3708
|
+
"type": "string",
|
|
3709
|
+
"enum": [
|
|
3710
|
+
"required",
|
|
3711
|
+
"regex",
|
|
3712
|
+
"length",
|
|
3713
|
+
"numeric",
|
|
3714
|
+
"email",
|
|
3715
|
+
"formatString",
|
|
3716
|
+
"formatNumber",
|
|
3717
|
+
"formatCurrency",
|
|
3718
|
+
"formatDate",
|
|
3719
|
+
"pluralize",
|
|
3720
|
+
"openUrl",
|
|
3721
|
+
"and",
|
|
3722
|
+
"or",
|
|
3723
|
+
"not",
|
|
3724
|
+
"now",
|
|
3725
|
+
"showToast"
|
|
3726
|
+
],
|
|
3727
|
+
"description": "The function name."
|
|
3728
|
+
},
|
|
3729
|
+
"args": {
|
|
3730
|
+
"type": "object",
|
|
3731
|
+
"description": "Named arguments."
|
|
3732
|
+
},
|
|
3733
|
+
"returnType": {
|
|
3734
|
+
"type": "string",
|
|
3735
|
+
"enum": [
|
|
3736
|
+
"string",
|
|
3737
|
+
"number",
|
|
3738
|
+
"boolean",
|
|
3739
|
+
"array",
|
|
3740
|
+
"object",
|
|
3741
|
+
"any",
|
|
3742
|
+
"void"
|
|
3743
|
+
],
|
|
3744
|
+
"description": "The expected return type."
|
|
3745
|
+
}
|
|
3746
|
+
},
|
|
3747
|
+
"required": [
|
|
3748
|
+
"call"
|
|
3749
|
+
],
|
|
3750
|
+
"additionalProperties": false
|
|
3751
|
+
},
|
|
3752
|
+
"DynamicString": {
|
|
3753
|
+
"title": "text, a {\"path\"} binding, or a function call",
|
|
3754
|
+
"oneOf": [
|
|
3755
|
+
{
|
|
3756
|
+
"type": "string",
|
|
3757
|
+
"maxLength": 4000
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
"type": "number"
|
|
3761
|
+
},
|
|
3762
|
+
{
|
|
3763
|
+
"$ref": "#/$defs/DataBinding"
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
"$ref": "#/$defs/FunctionCall"
|
|
3767
|
+
}
|
|
3768
|
+
]
|
|
3769
|
+
},
|
|
3770
|
+
"DynamicNumber": {
|
|
3771
|
+
"title": "a number, a {\"path\"} binding, or a function call",
|
|
3772
|
+
"oneOf": [
|
|
3773
|
+
{
|
|
3774
|
+
"type": "number"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"$ref": "#/$defs/DataBinding"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"$ref": "#/$defs/FunctionCall"
|
|
3781
|
+
}
|
|
3782
|
+
]
|
|
3783
|
+
},
|
|
3784
|
+
"DynamicBoolean": {
|
|
3785
|
+
"title": "true or false, a {\"path\"} binding, or a function call",
|
|
3786
|
+
"oneOf": [
|
|
3787
|
+
{
|
|
3788
|
+
"type": "boolean"
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"$ref": "#/$defs/DataBinding"
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
"$ref": "#/$defs/FunctionCall"
|
|
3795
|
+
}
|
|
3796
|
+
]
|
|
3797
|
+
},
|
|
3798
|
+
"DynamicStringList": {
|
|
3799
|
+
"title": "a list of strings, a {\"path\"} binding, or a function call",
|
|
3800
|
+
"oneOf": [
|
|
3801
|
+
{
|
|
3802
|
+
"type": "array",
|
|
3803
|
+
"items": {
|
|
3804
|
+
"type": "string"
|
|
3805
|
+
},
|
|
3806
|
+
"maxItems": 100
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"$ref": "#/$defs/DataBinding"
|
|
3810
|
+
},
|
|
3811
|
+
{
|
|
3812
|
+
"$ref": "#/$defs/FunctionCall"
|
|
3813
|
+
}
|
|
3814
|
+
]
|
|
3815
|
+
},
|
|
3816
|
+
"DynamicValue": {
|
|
3817
|
+
"title": "a literal value, a {\"path\"} binding, or a function call",
|
|
3818
|
+
"oneOf": [
|
|
3819
|
+
{
|
|
3820
|
+
"type": "string",
|
|
3821
|
+
"maxLength": 4000
|
|
3822
|
+
},
|
|
3823
|
+
{
|
|
3824
|
+
"type": "number"
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
"type": "boolean"
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"type": "array",
|
|
3831
|
+
"maxItems": 100
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"$ref": "#/$defs/DataBinding"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"$ref": "#/$defs/FunctionCall"
|
|
3838
|
+
}
|
|
3839
|
+
]
|
|
3840
|
+
},
|
|
3841
|
+
"Href": {
|
|
3842
|
+
"title": "a site path like \"/work/anvil2\" or an https URL",
|
|
3843
|
+
"type": "string",
|
|
3844
|
+
"maxLength": 2000,
|
|
3845
|
+
"pattern": "^(?:/(?!/)\\S*|https://\\S+|mailto:\\S+|#[\\w-]*)$"
|
|
3846
|
+
},
|
|
3847
|
+
"DynamicHref": {
|
|
3848
|
+
"title": "a site path, an https URL, or a {\"path\"} binding",
|
|
3849
|
+
"oneOf": [
|
|
3850
|
+
{
|
|
3851
|
+
"$ref": "#/$defs/Href"
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"$ref": "#/$defs/DataBinding"
|
|
3855
|
+
}
|
|
3856
|
+
]
|
|
3857
|
+
},
|
|
3858
|
+
"DynamicImageUrl": {
|
|
3859
|
+
"title": "a site path, an https URL, or a {\"path\"} binding",
|
|
3860
|
+
"oneOf": [
|
|
3861
|
+
{
|
|
3862
|
+
"title": "a site path or an https URL",
|
|
3863
|
+
"type": "string",
|
|
3864
|
+
"maxLength": 2000,
|
|
3865
|
+
"pattern": "^(?:/(?!/)\\S*|https://\\S+)$"
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"$ref": "#/$defs/DataBinding"
|
|
3869
|
+
}
|
|
3870
|
+
]
|
|
3871
|
+
},
|
|
3872
|
+
"DsIconName": {
|
|
3873
|
+
"title": "a Derelicious icon name",
|
|
3874
|
+
"type": "string",
|
|
3875
|
+
"enum": [
|
|
3876
|
+
"arrow-right",
|
|
3877
|
+
"arrow-left",
|
|
3878
|
+
"arrow-up",
|
|
3879
|
+
"arrow-down",
|
|
3880
|
+
"arrow-up-right",
|
|
3881
|
+
"chevron-down",
|
|
3882
|
+
"chevron-up",
|
|
3883
|
+
"chevron-right",
|
|
3884
|
+
"chevron-left",
|
|
3885
|
+
"check",
|
|
3886
|
+
"close",
|
|
3887
|
+
"plus",
|
|
3888
|
+
"minus",
|
|
3889
|
+
"search",
|
|
3890
|
+
"menu",
|
|
3891
|
+
"more",
|
|
3892
|
+
"info",
|
|
3893
|
+
"warning",
|
|
3894
|
+
"error",
|
|
3895
|
+
"check-circle",
|
|
3896
|
+
"copy",
|
|
3897
|
+
"external",
|
|
3898
|
+
"link",
|
|
3899
|
+
"sun",
|
|
3900
|
+
"moon",
|
|
3901
|
+
"user",
|
|
3902
|
+
"settings",
|
|
3903
|
+
"home",
|
|
3904
|
+
"mail",
|
|
3905
|
+
"calendar",
|
|
3906
|
+
"clock",
|
|
3907
|
+
"map-pin",
|
|
3908
|
+
"bell",
|
|
3909
|
+
"star",
|
|
3910
|
+
"heart",
|
|
3911
|
+
"edit",
|
|
3912
|
+
"trash",
|
|
3913
|
+
"download",
|
|
3914
|
+
"upload",
|
|
3915
|
+
"send",
|
|
3916
|
+
"filter",
|
|
3917
|
+
"lock",
|
|
3918
|
+
"eye",
|
|
3919
|
+
"chart",
|
|
3920
|
+
"folder",
|
|
3921
|
+
"file",
|
|
3922
|
+
"image",
|
|
3923
|
+
"inbox",
|
|
3924
|
+
"grid",
|
|
3925
|
+
"list",
|
|
3926
|
+
"code",
|
|
3927
|
+
"sparkle",
|
|
3928
|
+
"play",
|
|
3929
|
+
"pause",
|
|
3930
|
+
"stop",
|
|
3931
|
+
"skip-back",
|
|
3932
|
+
"skip-forward",
|
|
3933
|
+
"volume",
|
|
3934
|
+
"volume-off",
|
|
3935
|
+
"phone",
|
|
3936
|
+
"cart",
|
|
3937
|
+
"credit-card",
|
|
3938
|
+
"eye-off",
|
|
3939
|
+
"unlock",
|
|
3940
|
+
"refresh",
|
|
3941
|
+
"bell-off"
|
|
3942
|
+
]
|
|
3943
|
+
},
|
|
3944
|
+
"IconName": {
|
|
3945
|
+
"title": "an icon name, {\"svgPath\": \"...\"}, or a {\"path\"} binding",
|
|
3946
|
+
"oneOf": [
|
|
3947
|
+
{
|
|
3948
|
+
"type": "string",
|
|
3949
|
+
"enum": [
|
|
3950
|
+
"arrow-right",
|
|
3951
|
+
"arrow-left",
|
|
3952
|
+
"arrow-up",
|
|
3953
|
+
"arrow-down",
|
|
3954
|
+
"arrow-up-right",
|
|
3955
|
+
"chevron-down",
|
|
3956
|
+
"chevron-up",
|
|
3957
|
+
"chevron-right",
|
|
3958
|
+
"chevron-left",
|
|
3959
|
+
"check",
|
|
3960
|
+
"close",
|
|
3961
|
+
"plus",
|
|
3962
|
+
"minus",
|
|
3963
|
+
"search",
|
|
3964
|
+
"menu",
|
|
3965
|
+
"more",
|
|
3966
|
+
"info",
|
|
3967
|
+
"warning",
|
|
3968
|
+
"error",
|
|
3969
|
+
"check-circle",
|
|
3970
|
+
"copy",
|
|
3971
|
+
"external",
|
|
3972
|
+
"link",
|
|
3973
|
+
"sun",
|
|
3974
|
+
"moon",
|
|
3975
|
+
"user",
|
|
3976
|
+
"settings",
|
|
3977
|
+
"home",
|
|
3978
|
+
"mail",
|
|
3979
|
+
"calendar",
|
|
3980
|
+
"clock",
|
|
3981
|
+
"map-pin",
|
|
3982
|
+
"bell",
|
|
3983
|
+
"star",
|
|
3984
|
+
"heart",
|
|
3985
|
+
"edit",
|
|
3986
|
+
"trash",
|
|
3987
|
+
"download",
|
|
3988
|
+
"upload",
|
|
3989
|
+
"send",
|
|
3990
|
+
"filter",
|
|
3991
|
+
"lock",
|
|
3992
|
+
"eye",
|
|
3993
|
+
"chart",
|
|
3994
|
+
"folder",
|
|
3995
|
+
"file",
|
|
3996
|
+
"image",
|
|
3997
|
+
"inbox",
|
|
3998
|
+
"grid",
|
|
3999
|
+
"list",
|
|
4000
|
+
"code",
|
|
4001
|
+
"sparkle",
|
|
4002
|
+
"play",
|
|
4003
|
+
"pause",
|
|
4004
|
+
"stop",
|
|
4005
|
+
"skip-back",
|
|
4006
|
+
"skip-forward",
|
|
4007
|
+
"volume",
|
|
4008
|
+
"volume-off",
|
|
4009
|
+
"phone",
|
|
4010
|
+
"cart",
|
|
4011
|
+
"credit-card",
|
|
4012
|
+
"eye-off",
|
|
4013
|
+
"unlock",
|
|
4014
|
+
"refresh",
|
|
4015
|
+
"bell-off",
|
|
4016
|
+
"accountCircle",
|
|
4017
|
+
"add",
|
|
4018
|
+
"arrowBack",
|
|
4019
|
+
"arrowForward",
|
|
4020
|
+
"attachFile",
|
|
4021
|
+
"calendarToday",
|
|
4022
|
+
"call",
|
|
4023
|
+
"camera",
|
|
4024
|
+
"delete",
|
|
4025
|
+
"event",
|
|
4026
|
+
"fastForward",
|
|
4027
|
+
"favorite",
|
|
4028
|
+
"favoriteOff",
|
|
4029
|
+
"help",
|
|
4030
|
+
"locationOn",
|
|
4031
|
+
"lockOpen",
|
|
4032
|
+
"moreVert",
|
|
4033
|
+
"moreHoriz",
|
|
4034
|
+
"notificationsOff",
|
|
4035
|
+
"notifications",
|
|
4036
|
+
"payment",
|
|
4037
|
+
"person",
|
|
4038
|
+
"photo",
|
|
4039
|
+
"print",
|
|
4040
|
+
"rewind",
|
|
4041
|
+
"share",
|
|
4042
|
+
"shoppingCart",
|
|
4043
|
+
"skipNext",
|
|
4044
|
+
"skipPrevious",
|
|
4045
|
+
"starHalf",
|
|
4046
|
+
"starOff",
|
|
4047
|
+
"visibility",
|
|
4048
|
+
"visibilityOff",
|
|
4049
|
+
"volumeDown",
|
|
4050
|
+
"volumeMute",
|
|
4051
|
+
"volumeOff",
|
|
4052
|
+
"volumeUp"
|
|
4053
|
+
]
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"type": "object",
|
|
4057
|
+
"properties": {
|
|
4058
|
+
"svgPath": {
|
|
4059
|
+
"type": "string",
|
|
4060
|
+
"maxLength": 4000,
|
|
4061
|
+
"pattern": "^[MmLlHhVvCcSsQqTtAaZz0-9eE.,\\s+-]+$"
|
|
4062
|
+
}
|
|
4063
|
+
},
|
|
4064
|
+
"required": [
|
|
4065
|
+
"svgPath"
|
|
4066
|
+
],
|
|
4067
|
+
"additionalProperties": false
|
|
4068
|
+
},
|
|
4069
|
+
{
|
|
4070
|
+
"$ref": "#/$defs/DataBinding"
|
|
4071
|
+
}
|
|
4072
|
+
]
|
|
4073
|
+
},
|
|
4074
|
+
"Action": {
|
|
4075
|
+
"title": "an action {\"event\": {\"name\", \"context\"}} or {\"functionCall\": {...}}",
|
|
4076
|
+
"oneOf": [
|
|
4077
|
+
{
|
|
4078
|
+
"type": "object",
|
|
4079
|
+
"properties": {
|
|
4080
|
+
"event": {
|
|
4081
|
+
"type": "object",
|
|
4082
|
+
"properties": {
|
|
4083
|
+
"name": {
|
|
4084
|
+
"type": "string",
|
|
4085
|
+
"minLength": 1,
|
|
4086
|
+
"maxLength": 100,
|
|
4087
|
+
"description": "The event name."
|
|
4088
|
+
},
|
|
4089
|
+
"context": {
|
|
4090
|
+
"type": "object",
|
|
4091
|
+
"description": "Values sent with the event. Literals or bindings.",
|
|
4092
|
+
"additionalProperties": {
|
|
4093
|
+
"$ref": "#/$defs/DynamicValue"
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
},
|
|
4097
|
+
"required": [
|
|
4098
|
+
"name"
|
|
4099
|
+
],
|
|
4100
|
+
"additionalProperties": false
|
|
4101
|
+
}
|
|
4102
|
+
},
|
|
4103
|
+
"required": [
|
|
4104
|
+
"event"
|
|
4105
|
+
],
|
|
4106
|
+
"additionalProperties": false
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"type": "object",
|
|
4110
|
+
"properties": {
|
|
4111
|
+
"functionCall": {
|
|
4112
|
+
"$ref": "#/$defs/FunctionCall"
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
"required": [
|
|
4116
|
+
"functionCall"
|
|
4117
|
+
],
|
|
4118
|
+
"additionalProperties": false
|
|
4119
|
+
}
|
|
4120
|
+
]
|
|
4121
|
+
},
|
|
4122
|
+
"CheckRule": {
|
|
4123
|
+
"title": "a check {\"condition\", \"message\"}",
|
|
4124
|
+
"type": "object",
|
|
4125
|
+
"properties": {
|
|
4126
|
+
"condition": {
|
|
4127
|
+
"$ref": "#/$defs/DynamicBoolean"
|
|
4128
|
+
},
|
|
4129
|
+
"message": {
|
|
4130
|
+
"type": "string",
|
|
4131
|
+
"maxLength": 200
|
|
4132
|
+
}
|
|
4133
|
+
},
|
|
4134
|
+
"required": [
|
|
4135
|
+
"condition",
|
|
4136
|
+
"message"
|
|
4137
|
+
],
|
|
4138
|
+
"additionalProperties": false
|
|
4139
|
+
},
|
|
4140
|
+
"Checks": {
|
|
4141
|
+
"title": "a list of checks",
|
|
4142
|
+
"type": "array",
|
|
4143
|
+
"items": {
|
|
4144
|
+
"$ref": "#/$defs/CheckRule"
|
|
4145
|
+
},
|
|
4146
|
+
"maxItems": 10
|
|
4147
|
+
},
|
|
4148
|
+
"AccessibilityAttributes": {
|
|
4149
|
+
"title": "accessibility attributes {\"label\", \"description\"}",
|
|
4150
|
+
"type": "object",
|
|
4151
|
+
"properties": {
|
|
4152
|
+
"label": {
|
|
4153
|
+
"$ref": "#/$defs/DynamicString",
|
|
4154
|
+
"description": "A short accessible name."
|
|
4155
|
+
},
|
|
4156
|
+
"description": {
|
|
4157
|
+
"$ref": "#/$defs/DynamicString",
|
|
4158
|
+
"description": "Extra information for assistive technology."
|
|
4159
|
+
}
|
|
4160
|
+
},
|
|
4161
|
+
"additionalProperties": false
|
|
4162
|
+
},
|
|
4163
|
+
"theme": {
|
|
4164
|
+
"type": "object",
|
|
4165
|
+
"description": "Derelicious surfaces follow the page theme, so theme values are ignored.",
|
|
4166
|
+
"properties": {
|
|
4167
|
+
"primaryColor": {
|
|
4168
|
+
"type": "string",
|
|
4169
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
4170
|
+
},
|
|
4171
|
+
"iconUrl": {
|
|
4172
|
+
"type": "string"
|
|
4173
|
+
},
|
|
4174
|
+
"agentDisplayName": {
|
|
4175
|
+
"type": "string"
|
|
4176
|
+
}
|
|
4177
|
+
},
|
|
4178
|
+
"additionalProperties": true
|
|
4179
|
+
},
|
|
4180
|
+
"anyComponent": {
|
|
4181
|
+
"oneOf": [
|
|
4182
|
+
{
|
|
4183
|
+
"$ref": "#/components/Text"
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
"$ref": "#/components/Image"
|
|
4187
|
+
},
|
|
4188
|
+
{
|
|
4189
|
+
"$ref": "#/components/Icon"
|
|
4190
|
+
},
|
|
4191
|
+
{
|
|
4192
|
+
"$ref": "#/components/Video"
|
|
4193
|
+
},
|
|
4194
|
+
{
|
|
4195
|
+
"$ref": "#/components/AudioPlayer"
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"$ref": "#/components/Row"
|
|
4199
|
+
},
|
|
4200
|
+
{
|
|
4201
|
+
"$ref": "#/components/Column"
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"$ref": "#/components/List"
|
|
4205
|
+
},
|
|
4206
|
+
{
|
|
4207
|
+
"$ref": "#/components/Card"
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"$ref": "#/components/Tabs"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"$ref": "#/components/Modal"
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
"$ref": "#/components/Divider"
|
|
4217
|
+
},
|
|
4218
|
+
{
|
|
4219
|
+
"$ref": "#/components/Button"
|
|
4220
|
+
},
|
|
4221
|
+
{
|
|
4222
|
+
"$ref": "#/components/TextField"
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
"$ref": "#/components/CheckBox"
|
|
4226
|
+
},
|
|
4227
|
+
{
|
|
4228
|
+
"$ref": "#/components/ChoicePicker"
|
|
4229
|
+
},
|
|
4230
|
+
{
|
|
4231
|
+
"$ref": "#/components/Slider"
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
"$ref": "#/components/DateTimeInput"
|
|
4235
|
+
},
|
|
4236
|
+
{
|
|
4237
|
+
"$ref": "#/components/Heading"
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
"$ref": "#/components/Stat"
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"$ref": "#/components/Badge"
|
|
4244
|
+
},
|
|
4245
|
+
{
|
|
4246
|
+
"$ref": "#/components/Tag"
|
|
4247
|
+
},
|
|
4248
|
+
{
|
|
4249
|
+
"$ref": "#/components/Avatar"
|
|
4250
|
+
},
|
|
4251
|
+
{
|
|
4252
|
+
"$ref": "#/components/Quote"
|
|
4253
|
+
},
|
|
4254
|
+
{
|
|
4255
|
+
"$ref": "#/components/Timeline"
|
|
4256
|
+
},
|
|
4257
|
+
{
|
|
4258
|
+
"$ref": "#/components/Table"
|
|
4259
|
+
},
|
|
4260
|
+
{
|
|
4261
|
+
"$ref": "#/components/Alert"
|
|
4262
|
+
},
|
|
4263
|
+
{
|
|
4264
|
+
"$ref": "#/components/Progress"
|
|
4265
|
+
},
|
|
4266
|
+
{
|
|
4267
|
+
"$ref": "#/components/Link"
|
|
4268
|
+
},
|
|
4269
|
+
{
|
|
4270
|
+
"$ref": "#/components/Grid"
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"$ref": "#/components/Accordion"
|
|
4274
|
+
},
|
|
4275
|
+
{
|
|
4276
|
+
"$ref": "#/components/CodeBlock"
|
|
4277
|
+
},
|
|
4278
|
+
{
|
|
4279
|
+
"$ref": "#/components/Switch"
|
|
4280
|
+
},
|
|
4281
|
+
{
|
|
4282
|
+
"$ref": "#/components/Select"
|
|
4283
|
+
},
|
|
4284
|
+
{
|
|
4285
|
+
"$ref": "#/components/IconButton"
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
"$ref": "#/components/NavBar"
|
|
4289
|
+
},
|
|
4290
|
+
{
|
|
4291
|
+
"$ref": "#/components/TabBar"
|
|
4292
|
+
},
|
|
4293
|
+
{
|
|
4294
|
+
"$ref": "#/components/SideNav"
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
"$ref": "#/components/Breadcrumbs"
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"$ref": "#/components/Menu"
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
"$ref": "#/components/Popover"
|
|
4304
|
+
},
|
|
4305
|
+
{
|
|
4306
|
+
"$ref": "#/components/Tooltip"
|
|
4307
|
+
},
|
|
4308
|
+
{
|
|
4309
|
+
"$ref": "#/components/Spinner"
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
"$ref": "#/components/Skeleton"
|
|
4313
|
+
}
|
|
4314
|
+
]
|
|
4315
|
+
},
|
|
4316
|
+
"anyFunction": {
|
|
4317
|
+
"oneOf": [
|
|
4318
|
+
{
|
|
4319
|
+
"$ref": "#/functions/required"
|
|
4320
|
+
},
|
|
4321
|
+
{
|
|
4322
|
+
"$ref": "#/functions/regex"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"$ref": "#/functions/length"
|
|
4326
|
+
},
|
|
4327
|
+
{
|
|
4328
|
+
"$ref": "#/functions/numeric"
|
|
4329
|
+
},
|
|
4330
|
+
{
|
|
4331
|
+
"$ref": "#/functions/email"
|
|
4332
|
+
},
|
|
4333
|
+
{
|
|
4334
|
+
"$ref": "#/functions/formatString"
|
|
4335
|
+
},
|
|
4336
|
+
{
|
|
4337
|
+
"$ref": "#/functions/formatNumber"
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
"$ref": "#/functions/formatCurrency"
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"$ref": "#/functions/formatDate"
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
"$ref": "#/functions/pluralize"
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
"$ref": "#/functions/openUrl"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"$ref": "#/functions/and"
|
|
4353
|
+
},
|
|
4354
|
+
{
|
|
4355
|
+
"$ref": "#/functions/or"
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
"$ref": "#/functions/not"
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
"$ref": "#/functions/now"
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
"$ref": "#/functions/showToast"
|
|
4365
|
+
}
|
|
4366
|
+
]
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
}
|